Two flash in same page with sound

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • phpmagesh
    New Member
    • Nov 2008
    • 119

    Two flash in same page with sound

    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,

    Regards,
    Magesh
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5388

    #2
    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

    Comment

    • Markus
      Recognized Expert Expert
      • Jun 2007
      • 6092

      #3
      I know Youtube has a javascript -> flash API, not quite sure how they developed it, though.

      Mark (going to research).

      Comment

      • gits
        Recognized Expert Moderator Expert
        • May 2007
        • 5388

        #4
        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

        Comment

        • Markus
          Recognized Expert Expert
          • Jun 2007
          • 6092

          #5
          You would make use of the ExternalInterfa ce library. :)

          Comment

          • gopan
            New Member
            • Apr 2009
            • 41

            #6
            Originally posted by Markus
            You would make use of the ExternalInterfa ce library. :)
            Ya... you are absolutely right mark... Thats the way

            ExternalInterfa ce

            Comment

            Working...