Flash variables will not pass on enterFrame

I currently have the following code setup to pass variables to a flash when a button is clicked:
on click
     flashSprite = sprite("videoplayer")
     rootRef = flashSprite.getVariable("root1", false)
     rootRef.setUpDoc(the moviePath&"xml"&dirPath&currentMovie&"_nav.xml", the moviePath&"xml"&dirPath&currentMovie&".xml", the moviePath&"Src"&dirPath&currentMovie&".f4v")
end
The code works perfectly when called with "on click" but if I take this code and put it in the behavior frame and change "on click" to "on enterFrame" it give me the error:
"Script error: Variable used before assigned a value
rootRef.setUpDoc(the moviePath&"xml"&dirPath&currentMovie&"_nav.xml", the moviePath&"xml"&dirPath&currentMovie&".xml",
the moviePath&"Src"&dirPath&currentMovie&".f4v")"
Why does it work with "on click" but on with "on enterFrame"?
Can anyone help me with this?

This problem is probably related to the issue of Flash sprites not being fully instantiated on beginSprite. Delaying running your code should fix the problem. Something like the following untested code may work.
on beginSprite me
  tmp = timeout().new("DelaySetupDoc", 1, #DelaySetupDoc, me)
end beginSprite
on DelaySetupDoc me, timeob
  flashSprite = sprite("videoplayer")
  rootRef = flashSprite.getVariable("root1", false)
  rootRef.setUpDoc(the moviePath&"xml"&dirPath&currentMovie&"_nav.xml", the moviePath&"xml"&dirPath&currentMovie&".xml", the moviePath&"Src"&dirPath&currentMovie&".f4v")
end DelaySetupDoc

Similar Messages

  • Flash player will not work on my computer, would love advice

    I have windows vista.  When I visit a web page that requires flash, it instructs me to download it (even though I'm sure I have it ialready...).  I do so, it says it has downloaded successfully but I still cannot view the website.  I have uninstalled my current version of flash and reinstalled the latest version numerous times.  It even shows up in my list of programs.  But each time I visit a site that uses it, it tells me I need flash to view it.  Very frustrating.  And suggestions would be appreciated.  Thanks!

    This was very helpful - thank you.  I unchecked "active x filtering" and it seems to be working, under tools in IE.  a simple solution, that may have taken me days to figure out myself!  Hopefully it continues to work from thiis point forward.  Thanks!
    Date: Tue, 16 Apr 2013 12:42:26 -0700
    From: [email protected]
    To: [email protected]
    Subject: Flash player will not work on my computer, would love advice
        Re: Flash player will not work on my computer, would love advice
        created by Chris Campbell in Installing Flash Player - View the full discussion
    Do you see an animation and version number when you visit the Flash Player Version page? If you are using Internet Explorer, please verify that the following two FAQs check out. Enabling Flash Player in Internet Explorer ActiveX Filtering in Internet Explorer
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5240948#5240948
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5240948#5240948
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5240948#5240948. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Installing Flash Player by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • "Flash Player" will not work on Android 4.0.3!

    I recently purchased  new Samsung tablet 2 (10.1) which operates on Android 4.0.3 (Ice Cream Sandwich)
    I have since found out that “Flash Player” will not work on Android 4.0.3
    (Ice Cream Sandwich) as adobe is no longer supporting android OS above 4.0
    This means I now have many “apps” that I can not us because they require
    “Flash” to operate!
    Can you assist with this problem?
    Is there a patch I can buy to allow flash to work on Android 4.0.3?

    Moving this discussion to the Installing Flash Player forum.

  • Flash Files Will Not Display in Dreamweaver

    Flash files will not display in Dreamweaver or in any
    browser. If I insert a Flash button, text or other file, when I hit
    the "play" button the flash place holder disapears, and the Flash
    file never displays. In the Property Inspector, the file is always
    "undefined" even when I save the file to my root folder with a
    name. When I hit the "Edit" button, I get the message that the file
    could not be found on my local disk. It's like Dreamweaver fails to
    create or place a Flash file. Help please!

    fro:
    > <img
    >
    src="file:///Alan's/Users/alanwhelpley/Desktop/MM_DWCS3/Chapter11/Roses.jpg"
    You will have to rename the hard drive for dreamweaver to
    work properly.
    The ' is causing dw to not find the path.
    other symptoms would be dw nagging that the "homepage" is not
    within the
    local site folder so it can't build a sitemap.
    technote-
    http://kb.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14452
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • Latest flash version will not display images or video

    Latest flash version will not display images or video in 2 x Windows 7 Pro 64bit machines, 1 x Windows 7 Home Premiums, and 1 x XP SP3 under VMWare Workstation 7. Problem plagues Firefox, Chrome, and IE on all systems. Also running Norton Security from Comcast on all machines. Disabling does not appear to help. Suggestions?

    Not sure, this is the one that I really want to view. I am using the latest 11.6 ending in 168. Curious you got the images. The product ones act like they should be displaying for me but don’t. Can you do a capture of the images? The text with small images sometimes comes through and sometimes not. I wonder if there is a problem on the server end.
    When I talk to the Customer Service people they claim to have no reports of problems, but like the sports pro about to be traded, they may be the last ones to know…

  • Flash Movie will not display in Dreamweaver

    A movie that I created with Flash CS6 will not play in a webpage that I created in Dreamweaver CS6.  When I select "Live" in Dreamweaver, I get a prompt to download the Flash 11.7 player.  I've downloaded this player several times, and the movie still does not play in DW.  The movie displays when select play in Flash. 
    How can I get the movie to play in Dreamweaver?

    More to the point: Does it play in any browser on your system? If not, you may have to fix that first. In nay case, ask your question in the DW forum and provide more details like soem system information to begin with...
    Mylenium

  • Adobe flash player will not load and run.  Uninstalled and reinstalled with no change.

    Adobe flash player will not load.  Uninstalled and reinstalled with no change. 

    Adobe’s advice regarding Flash Player 13:
    http://forums.adobe.com/message/6288659

  • Adobe Flash Player will not run since installing Firefox 25.0 upgrade

    Windows 7 Home Premium X64.
    My question says it all. Within Firefox's own system it says the flash player is update and enabled. Any place I go today and want to play something the page posts "Get Adobe Flash Player". I upgraded to Firefox 25.0 just before I retired for the night. Today Flash Player will not work.
    Within Tools>Options>Content the option to turn java off and on is no longer there. I believe you folks have CREATED A BIG BUG!!!!!

    Your statement: "I missed that Firefox 25 turned on "click to play" as the default behavior for plugins. I assume you prefer to have Flash run automatically if you've approved the site in NoScript."
    I didn't read anything anywhere, nor was I aware of the fact that Firefox may have changed "my" plugin settings, or broken them. How many users do you think there might be that have NoScript set this way for one or more sites.
    I'm just saying it might have been nice to have been forewarned about this - obviously something that was KNOWN that the update was going to do!!!!!!!!!!!!!!!

  • Adobe Flash Upgrade will not install after Firefox upgrade to 3.6.7

    I upgraded to Firefox 3.6.7. After the upgrade I got a message that I needed to upgrade Adobe Flash due to security vulnerabilities. The Flash upgrade will not install. It simply sits and never installs no matter how long I wait.
    == This happened ==
    Just once or twice

    Thanks for your response. I have previously reviewed this. The only potential problem it seems to resolve is having 2 versions of Shockwave installed. I only have one. The only thing I can think of to do is just uninstall the one version and see if it will trigger an installation. When I go to the Flash install site, I agree to the terms and get the next screen that says download will start. I never get a message asking if it's ok to run or anything. No matter where I look for a download for Flash I wind up at the same place with the same problem. Any suggestions would be most appreciated.
    Thanks

  • Flash Player will not install thinks it is already installed

    Win 7 64bit
    I can not open a PDF in the latest reader. It tells me flash needs to be installed. I go to the adobe site and flash player will not install stating it is already installed.  The active x widget says not player is installed.  It is not listed in managed add ons and is not listed in installed programs.
    How can I install the program?

    Some PDFs (with Rich Media Content) require the Flash Player plugin (NPAPI) to be installed.
    I do not quite understand what you have installed, and what not.  I recommend that you uninstall Flash Player completely using the uninstaller from http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-windows.html
    then download and run both installers from
    Flash Player for Internet Exporer - ActiveX
    Flash Player for Firefox - NPAPI

  • Flash CS3 will not launch

    After years of using Flash CS3 on our Windows 7 computer, it would not launch. So we did a system recovery -(everted to factory image), re-installed Windows and updates, installed Flash CS3, then successfully did the license verification. But Flash CS3 will not launch.
    We copied the Flash Icon from the Start Menu to the TaskBar. This is the icon we clicked on to do license verification, but now we can't use it to launch Flash CS3.
    Thanks for any ideas.
    Computer specs:
    HP - Pavilion Elite Desktop
    AMD Phenom™ II Processor
    8GB Memory
    1TB Hard Drive
    Model: HPE-210y
    Window 7 with Service Pack 1; all updates applied as of 10/26/2014
    (I realize Flash CS3 is not meant to work on Win 7, but it has for years on this computer and on a Toshiba laptop, also with AMD processor)

    Well I decided to reinstall OSX to see if that would help,
    and that seemed to fix it. I'm still not sure what the problem was,
    but a fresh install seemes to have fixed it :]

  • I have a power pc g5 and it will not pass a gray screen

    I have a power pc g5 and it will not pass a gray screen, i have read resolution online but the system wont detect my keyboard. have been using a microsoft one normally. tried with an official apple keyboard and still no joy. what can i do?

    How to reset the SMU/PMU on a Power Mac G5 (Late 2004) or Power Mac G5 (Late 2005) ...
    http://support.apple.com/kb/HT1436
    Earlier G3, G4, G5 models...
    http://support.apple.com/kb/HT1939
    Does it fail all these modes?
    Does it boot into any of these modes?
    Holding Option/alt key at bootup.
    Holding SHIFT key at bootup.
    Target mode...
    http://support.apple.com/kb/HT1661
    Does it boot to Single User Mode, CMD+s keys at bootup, if so try...
    /sbin/fsck -fy
    Repeat until it shows no errors fixed.
    (Space between fsck AND -fy important).
    Resolve startup issues and perform disk maintenance with Disk Utility and fsck...
    http://docs.info.apple.com/article.html?artnum=106214
    We might get clues with verbose mode...
    http://support.apple.com/kb/HT1492

  • Flash player will not install because it is not supported on a 64 bit browser?

    What do I do?  Help please.  I have windows vista.

    Flash Player will not install on my 64 bit system with Vista also. It wants a 32 bit browser. I don't
    know what that is or I would get it ????????????????  ...Please HELP...Mine is HP Pavilion dv-1130us
    entertainment Notebook      Thanks  LS     June 22

  • Adobe flash player will not recognise my apple password? Can any one hel?

    adobe flash player will not recognise my apple password.

    OS X 10.7 Lion, 10.8 Mountain Lion, 10.9 Mavericks and 10.10 Yosemite
    Reset Password
    Start the computer,then press and hold down command and R keys to start into recovery partition.
    When you see the Apple logo, release the keys.
    Wait until  OS X Utilities window shows up.
    Move the mouse pointer to the menubar at the top and click "Utilities", then select "Terminal"
    from the drop down.
    Terminal window will appear.
    Type in   resetpassword   and press enter on the keyboard.
    Leave the Terminal window open.
    Reset Password Utility window will open with Macintosh HD selected.
    Select the user account from the popup menu box under “Select user account”.
    Enter a new password.
    Reenter the new password for the user.
    Enter a hint.
    Click the "Save" button.
    Click  in the menubar and select Restart.
    Log in.
    If Keychain dialog box appears, select “Create New Keychain”.

  • New edition of adobe flash player will not load on samsung tablet. how do i load an older version?

    newest edition of adobe flash player will not install on samsung tablet. how do i download an older version like 10.3?

    This might help - How do I manually install Flash Player on my Android device?

Maybe you are looking for

  • Help with Flash CS3 Particle Effect Tutorial Code

    I did the tutorial from http://www.schoolofflash.com/2008/03/flash-cs3-particle-effect/. I used a star to replace the circle. Here's my code: var starsArray:Array = new Array(); var maxStarss:Number = 8; function addStars(e:Event)     var stars:Stars

  • Calling an ALBPM Process as WebService from external client

    Has anyone successfully been able to call a albpm process exposed as a webservice ? I have seen some posts but they all seem to be having some issues. What I am trying to understand is why does albpm web service requests for process id and session id

  • How to reinstall mail.app using Yosemite?

    I downloaded some third party emoticons and now a windows pops up noting that the plugin is outdated. Searching for the plugin to be removed I opened the Mail.app and moved the webkit plug-in to the waste basket. accidentally emptied the trashbin and

  • Trying to update to 8.0

    i'm trying to complete the software update but i keep receiving the message 'the feature you are trying to use is on a network resource that is unavailable'. however, i have attempted to uninstall the programs and i am also receiving an error message

  • Exception in thread "main" java.lang.NoClassDefFoundError: BlueCheese

    I'm writing a simple swing application. It compiles, but I can't get it to run... I always get this error: Exception in thread "main" java.lang.NoClassDefFoundError: BlueCheese Caused by: java.lang.ClassNotFoundException: BlueCheese at java.net.URLCl