Trying to go back to frame 1 at end of FLVPlayback video

This should be super easy, but I've spent hours searching the web and trying different approaches and I can't get it to work.  Can anyone help?
I have 2 frames
1.  Frame 1: a  static image with a play button
2.  Frame 2: an flv video (FLVPlayback instance named FLVvideo)
The code I have allows the user to click the button on the first screen to start the video. 
When the video ends, I want it to automatically go back to frame 1.
On frame 1, I have AS3 code that does everything except go back to the first frame.  The  FLVvideo.addEventListener(VideoEvent.COMPLETE, moveOn); gives a #1009 error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at health_reform_2_fla::MainTimeline/frame1()
This is the code:
stop()
import fl.video.FLVPlayback;
import flash.events.Event;
import fl.video.VideoEvent;
play_button.addEventListener(MouseEvent.CLICK, fl_ClickToPlayVideo);
FLVvideo.addEventListener(VideoEvent.COMPLETE, moveOn);
function fl_ClickToPlayVideo(event:MouseEvent):void
    gotoAndStop(2);
function moveOn(event:VideoEvent):void {
     gotoAndStop(1);

Hey I think I can help. Try changing the following code:
FLVvideo.addEventListener(VideoEvent.COMPLETE, moveOn);
to this:
FLVvideo.addEventListener(Event.COMPLETE, moveOn);

Similar Messages

  • Trying to put a "jump scare" at the end of a video

    Working on a light hearted halloween video and wanted to do a jump scare at the end.  Can anyone tell me how to do the effect often used in horror movies where the image flash on the screen as a negative of itself?  Used a lot horror trailers, often accompanied by a sound effect.

    There is an emoji keyboard included by default with iOS5, no app needed.
    You've just dug up this thread from 10 months ago. Prior to iOS5 when this thread was last posted to, the Emoji keyboard was only selectable on Japanese iPhones. Various apps just 'enabled' that keyboard on non-Japanese iPhones.
    Since iOS5 the built-in Emoji keyboard is available to anyone.
    Always helps to check the date of threads you are replying to.

  • Project in Imovie 9 Only plays back still frames, wont play video

    Project in Imovie 9 Only plays back still frames
    I can see all the video clips but screen just goes black while going over the video. The video is still in the computer and has not been moved around.
    Also if i play the imported video on the "Event" board it plays over it with no information coming back to the computer. Like if the files were offline.
    any help?
    Message was edited by: Manny Figueroa
    Message was edited by: Manny Figueroa

    Hi
    *Not knowing the origin to Your problem - General approach when in trouble is as follows.*
    • Free space on internal (start-up) hard disk if it is less than 10Gb should rather have 25Gb
    • Delete iMovie pref file - or rather start a new user/account - log into this and re-try
    iMovie pref file resides.
    Mac Hard Disk (start-up HD)/Users/"Your account"/Library/Preferences
    Macintosh HD)/Users/"Your account"/Library/Preferences
    and is named.
    com.apple.iMovie.plist
    com.apple.iMovie3.plist
    com.apple.iMovie7.plist
    com.apple.iMovie8.plist
    and find com.apple.iApps.plist - trash this too
    While iMovie is NOT RUNNING - move this file/s out to desk-top.
    Now restart iMovie.
    • Hard disk is untidy. Repair Permissions, Repair Hard disk (Apple Disc Util tool)
    • Garageband-fix. Start it, Play a note and Close it. Re-try (Corrects an audio problem that hinders iMovie)
    • Screen must be set to Million-colors
    • Turn off Mac and disconnect Mains/Power for 20-30 minutes - will at least re-set FW-port
    • Third party plug-ins that doesn't work OK (not relevant for iMovie’08 or 09)
    • Problems in iPhoto Library can affect iMovie to crash on start-up. Re-build this first then try to re-start iMovie.
    This You do by
    _ close iPhoto
    _ on start up of iPhoto - Keep {cmd and alt-keys down}
    _ now select all five options presented
    _ WAIT a long long time
    • iMovie updated ?
    • QuickTime updated ?
    • Mac OS version ?
    • Program miss-match. iMovie 4 - will not work under Leopard
    • Program miss-match. iMovie 5.0.2, up to Mac OS X.4.11 AND QuickTime 7.4.1 - is OK
    • Program miss-match. iMovie 6.0.3 or 6.0.4, Mac OS X.4.11 AND QuickTime 7.4.1 - is OK (will work under Leopard and Snow-Leopard)
    • Program miss-match. iMovie’08 v. 7.1.4, Mac OS X.4.11 AND QuickTime 7.5.5 - is OK (will work under Leopard and Snow-Leopard)
    • Program miss-match. iMovie’09 v. 8.0.6, Mac OS X.5.8 AND QuickTime 7.6.4 - is OK (will work under Leopard and Snow-Leopard)
    From LKN 1935. (in this case = iMovie HD (5), I tried it all, but nothing worked.
    Your answer (above) has been helpfull insofar as all the different trials led to the conclusion that
    there was something wrong with my iMovie software. I therefore threw everything away and reinstalled
    iMovie from the HD. After that the exportation of DV videos (there has not been any problem with HDV videos)
    to my Sony camcorders worked properly as it did before.
    Lennart Thelander
    I run "Cache Out X", clear out all caches and restarts the Mac.
    Yours Bengt W

  • How to go back to frame 1 when the timeline reaches a certain frame?

    I have a timeline that has some label frames at the very end of the timeline. During the timeline a user will hit a button on a frame and will jump to one of the label frames. On the label frame is another button that when clicked - returns the user to the previous frame. How do I make the movie return to frame 1 - without a button - but before it reaches the label frames? In other words, by simply reaching a certain frame in the movie, I want the timeline to go back to frame 1.
    I am using Action Script 3 on a PC
    Thank you.

    Thanks from me as well. I'm trying to make an interactive house simulation game (basic) and hit this issue where the timeline needs to skip to the next segment as several options are available per room (listed one after the other in the timeline). Flash isn't particularly easy to use when it comes to this kind of thing. Is Flash Catalyst CS5 more suited to this?

  • My ipod touch 4g isnt letting me download apps now whenever i try to it says cannot connect to itunes, i cant find anything that works, i logged out of my apple account and tried to log back in but it wont let me! Can anyone help me

    My ipod touch 4g isnt letting me download apps now whenever i try to it says cannot connect to itunes, i cant find anything that works, i logged out of my apple account and tried to log back in but it wont let me! Can anyone help me

    Likely Apple problem
    iTunes Store - 20% of users are affected
    Users are unable to make purchases.
    http://www.apple.com/support/systemstatus/

  • Need help in the process of trying to downgrade back to iPhoto '09...

    I want to see all the exif info for my photos as I am getting into DSLR photography.  This is one of the reasons I am trying to downgrade back to iPhoto '09 from '11 amongst other reasons; one being I just preferred it (and I have been using '11 since January and still want to downgrade).  Anyway, this is what I have done so far:
    Reinstalled iPhoto '09 from an old time machine backup in December '13 from before I upgraded late December.  Then with the help of a youtube video I found I created a new iPhoto Library for '09 and was in the process of importing all my pics when 3/4 of the way through, my hard drive reached capacity and the importing quit.  When I go into iPhoto '09 now, there are no pics.  So I spent yesterday buying a large external hard drive and the past 18 or so hours formatting it for mac and moving files so now I have a bit more room on my internal 1tb hard drive. 
    So I am guessing I should next go to the newly created iPhoto library on my internal hard drive and delete all (not to mention this will free up more room on it).  Then what I want to do is create a new library for iPhoto '09 on my new 3TB external hard drive and then import all the pics there.  Can I create the iPhoto Library on an external drive?
    If I am able to do the above and import all my pics and iPhoto '09 seems to be working properly, can I then go in and delete the iPhoto '11 app without causing problems?  Am I right to believe that all my pictures, even the ones I imported to iPhoto '11 directly from a mail attachment, will not be deleted if I delete the iPhoto '11 app? 
    I don't want to find myself with 2 iPhoto programs, neither of which function.  Thanks in advance!

    You need the version of iPhoto that you wan tot use installed and then follow the IPLM directions
    http://www.fatcatsoftware.com/iplm/Help/downgrading%20a%20library%20to%20an%20ea rlier%20version%20of%20iphoto.html
    Downgrading a library to an earlier version of iPhoto
    If you have a library from a newer version of iPhoto that you simply want "downgrade" to an older version of iPhoto, the easiest way to do that is with the "Rebuild Library" command. You will want to be running iPhoto Library Manager on the machine that has the older version of iPhoto you want to convert the library to. This will create a new library and import the entire contents of the original library into the new one using the older version of iPhoto. As with any rebuild, there are some items that will not be included (most notably, hidden photos, books, calendars, and slideshows), but if you have none of these items or don't mind losing them in the downgrading process, then this is a decent option for converting a library to an older version.
    LN

  • Music files in my PC's iTunes directory have been moved around, now iTunes' index is not recognizing them and returns error messages. The files have previously been sync'd to my iPod, but when I tried to sync back from the iPod, iTunes on the PC error'd.

    I want iTunes to reconstruct its index of my music.
    We accidentally moved files around in my <<C:\Documents and Settings\Jordan\My Documents\My Music\iTunes>> directory. We tried to move them back, but anyway, the iTunes program now no longer can find/play the titles that the opened iTunes page/Library displays.
    I had previously copied/syncd all my iTunes music to my iPod. I tried syncing back to the PC from the iPod.  No improovement.
    At the moment, my dad is on my computer, logged in under his name (with administrative permissions). It seems that looking at my iTunes music under his login is still working OK.
    I do not have my music backed up to the "cloud".
    What are my options?

    The "missing file" error happens if the file is no longer where iTunes expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, or that the drive it lives on has had a change of drive letter. It is also possible that iTunes has changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout,or vice-versa, and so is looking in slightly the wrong place.
    Select a track with an exclamation mark, use Ctrl-I to get info, then cancel when asked to try to locate the track. Look on the summary tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, or a drive letter has changed, it should be possible to reverse the actions.
    If another application like Windows Media Player has moved/renamed the files then the chances are that subtle differences in naming strategies will make it hard to restore the media to the precise path that iTunes is expecting. In such cases, as long as the missing files can be found somewhere, you should be able to use my FindTracks script to reconnect them to iTunes. See this post for an explanation of how it works.
    If you have to resort to trying to pull back the library from your iPod see Recover your iTunes library from your iPod or iOS device.
    tt2

  • I restored my phone on iTunes, but when I did, all my info deleted and now it's my sister's old data. I tried to go back on iTunes and restore, but my original data isn't even an option. How do I get my old data back?

    I restored my phone on iTunes, but when I did, all my info deleted and now it's my sister's old data. I tried to go back on iTunes and restore, but my original data isn't even an option. How do I get my old data back?

    Before you did the resotore Via itunes you should of made a Back-up of your Data. But to be honest, i don't think that you would be able to get that stuff back.. Sorry mate

  • I switched to singapore on the app store, so now i am trying to get back to the U.S app store and it is saying "You have a store credit balance;you must spend your balance before you can change stores"  I am trying to save money. What do I do???

    I switched to singapore on the app store, so now i am trying to get back to the U.S app store and it is saying "You have a store credit balance;you must spend your balance before you can change stores"  I am trying to save money. What do I do???

    Contact iTunes Support - http://apple.com/emea/support/itunes/contact.html - and ask them to clear your balance.

  • I keep getting an error when trying to update an app- cannot connect to store. I logged out from my account and tried to log back in and got the same error. I am doing all this from my phone since I no longer own a personal computer (only work)

    I keep getting an error when trying to update an app- cannot connect to store. I logged out from my account and tried to log back in and got the same error. I am doing all this from my phone since I no longer own a personal computer (only work) since I use iCloud and I tunes match

    YAY!!! Saved it in my Mac's Firefox Bookmarks for easy future access!
    Hope you are having a lovely afternoon today! I'm about ready to go bobo....I have an early meeting, and I don't want to oversleep! The nice part is that I work remotely, so I only have to wake up 15 minutes or so before the meeting.... I don't even use an alarm clock anymore (really, my iPhone alarm, which is much more pleasant), unless I have to get up at 6:30 or something....
    TMI?
    GB

  • Since last update (today) I get invalid password when trying to use back to my MAC, password works everywhere else

    since last update (today) I get invalid Apple ID password when trying to use back to my MAC in Icloud app on my MAC, password works on all my other devices. GLITCH ?

    Try going to the Apple ID page on your web browser
    http://www.apple.com/support/appleid/
    and try to either retrieve or reset your password
    (obviously you had to be able to successfully log in to be able to post here)
    I was finally able to log in through my system preferences after about three or four hours. I ran a disk utility to repair permissions and restarted and it seemed to work ok.

  • FCP 7.0.3, Canon XF100, saved some clips to a portable hard drive and now they won't import?  Tried moving them back to the CompactFlash but still won't import?

    FCP 7.0.3, Canon XF100, saved some clips to a portable hard drive and now they won't import?  Tried moving them back to the CompactFlash but still won't import?  iMac, 10.6.8

    Well, for FCP to see this file structure and recognize it, you need to download the Canon XF Log and Transfer plugin...
    http://software.canon-europe.com/software/0040354.asp?model=
    >I don't have the original clips on the card.
    Meaning that they didn't back up the full card structure?  Lordy...very few shooters do this and it is maddening.  If you don't have the full card structure, even with the plugin, FCP cannot log and transfer.
    As for ClipWrap2...that should work.  Do you have the right files?

  • I had my settings on Pacific time and should have been Central time.  Now I've lost a lot of my yellow messages when it was changed to Central.  I'm trying to go back in and retrieve it

    I had my settings on Pacific time and should have been Central time.  Now I've lost a lot of my yellow notes when it was changed to Central.  I'm trying to go back in and retrieve the notes to no avail and have tried changing the settings on my Iphone 4.  No luck there either.... 

    - Are you saying that they are not listed in your Purchased section?
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    - Are they listed in your Puchases history when you log into your account on your computer?
    - Are they still available now for purchase? If not then you are out of luck
    If they are still available and listed in your Puchase History then contact iTunes
    http://www.apple.com/support/itunes/

  • I dropped my iPhone 4S on the ground and my lock screen button is jammed, I tried turning it back on by plugging it in to a charger, but it won't turn on.

    I dropped my iPhone 4S on the ground and my lock screen button is jammed, I tried turning it back on by plugging it in to a charger, but it won't turn on. Can anyone help me?

    Make an appointment at the Genius Bar. There is no magic that will fix broken hardware.

  • HT3529 My imessage signed out and I'm trying to log back in when it is verifyingit says try again so I do and it says it over and over again how do I solve it?

    My imessage signed out and I'm trying to log back in when it is verifyingit says try again so I do and it says it over and over again how do I solve it?

    Did you already check the suggestions mentioned here?
    iOS: Troubleshooting FaceTime and iMessage activation

Maybe you are looking for

  • Verify error while burning

    Saved an iDVD project as a disc image, then checked the image using the DVD player. Looked good. Burned a DVD using Disk Utility (don't have Toast), but then it failed to verify. Twice. Played them at home anyway, but both copies of the DVD have majo

  • I am downloading itunes again because it said i didn't have msvcr80.dll  and now it says i don't have mobile priveleges.  all this has happened since i upgraded a week or so ago

    when trying to correct itunes error it said to download it again, and now it says my apple mobile privileges are not sufficient i can't sync my phone or ipad can you help correct all this? i don't know what my phone is,

  • I have a problem with navigation four buttons

    I have made four buttons.  And they work, but when I click again on button 1 all tree animations are playing! When I click again on number on the start animation is displayed. In the buttons I have set the animations for 2, 3 and for to hide. How is

  • Scope of "user" in jsp

    Hi. here is some code for a jsp to pull some data out of an HTML form. <jsp:useBean id = "user" class="collect.CollectData" scope = "session"/> <jsp:setProperty name = "user" property="*"/> <%@ page import="java.util.*,java.sql.*,javax.naming.*,javax

  • Wireless USB Network Card for Mac?

    Can the iMac G4 (Flat Panel) recognize/use USB 2.0 (is it reverse compatible?) I For some reason I cannot get my wireless to connect reliably (will try the suggestion I received). My Ethernet connection is also not working. I would like to try a USB