SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Aug 2011
    0 Post(s)
    0 Thread(s)

    Play/ Pause button to Flash inside iframe


    I have a set of flash files called inside iframe. I need to put a play/ stop button into the parent html to control the flash. I tried using document.getElementById[iframename](playerId) but the JavaScript is not recognizing the flash object.

    I am using strobe media playback. Is there any way I can communicate to flash object using javascript?

    Please help! and thanks is advance

  2. #2
    Utopia, Inc. silver trophy
    ScallioXTX's Avatar
    Join Date
    Aug 2008
    The Netherlands
    153 Post(s)
    2 Thread(s)
    You sure can, but you do need to alter the flash file a little bit. If you can't do that you're out of luck I'm afraid.

    Just search for "javascript flash communication" in your favorite search engine. For example, it's explained pretty well over here: Bi-Directional Actionscript/Javascript Communication in AS3 | Viget Inspire
    (for AS3, AS2 uses different methods)
    Last edited by Mittineague; Aug 14, 2011 at 08:54. Reason: typo fix
    Rémon - Hosting Advisor

    SitePoint forums will switch to Discourse soon! Make sure you're ready for it!

    Minimal Bookmarks Tree
    My Google Chrome extension: browsing bookmarks made easy


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts