By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,256 Members | 1,700 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,256 IT Pros & Developers. It's quick & easy.

Two flash in same page with sound

P: 119
Hi All,

I have two flash file in the same page call as flash1 and flash2. both flash have sound on it.
What i want to do is when i click in the first flash file sound will start playing, at the same time if i click in the second flash file sound will start in the second flash file also.

i want to stop sound in flash1 if i click flash2 and visa versa. can anyone help me in this how to solve this problem..

Thanks in advance,

Aug 5 '09 #1
Share this Question
Share on Google+
5 Replies

Expert Mod 5K+
P: 5,390
i think this would be a more flash-related problem ... because javascript doesn't have a real flash-api and i guess that you cannot really do it with javascript ... because it might depend on how the sound is embedded in the swf or similar pitfalls? ... so i would suggest to ask in the flash-forum ... or in case you want to i could move this thread to that forum?

kind regards
Aug 6 '09 #2

Expert 5K+
P: 6,050
I know Youtube has a javascript -> flash API, not quite sure how they developed it, though.

Mark (going to research).
Aug 6 '09 #3

Expert Mod 5K+
P: 5,390
yes ... there are some out there like this one ... but i don't know whether such things would work in this case, because i'm not familiar with that ... i always avoid to use flash :)

kind regards
Aug 6 '09 #4

Expert 5K+
P: 6,050
You would make use of the ExternalInterface library. :)
Aug 14 '09 #5

P: 41
Ya... you are absolutely right mark... Thats the way

Aug 15 '09 #6

Post your reply

Sign in to post your reply or Sign up for a free account.