*Flash animation looping but going back to first frame {want to hold on last frame}

I came across this article on looping animations = http://www.quip.net/blog/2006/flash/how-to-loop-three-times
I'm a novice with flash and just trying to plug thru to get some ads up and running for the first time.
Everything worked for me in the article...the one thing I wanted to do but haven't found an answer to is how to stop the animation on the last frame after looping is complete, instead of automatically going back to the first frame??
What's the easiest/most effective way to do this?
The stop script does not work...still goes back to first frame.
For all my flash ads, I've imported an FLV video...so don't know if it's some function for flv's/video's that auto-rewinds to first frame...
Thanks so much, really appreciate any insight on this.
The sooner you can catch a minute to get back the better

Ok...not working for me - prob. b/c I'm missing something again.
What I did was...
1)  Renamed the instace of replay button = "replay_btn".
[not sure if that's correct...guessed b/c you reference it in the code]
2)  I placed this in the action code on action layer on last keyframe =
var loopNum:Number;
loopNum++;
if(loopNum%3==0){
stop();
your_replay_btn._visible=true;
} else {
your_replay_btn._visible=false;
3) I placed this in action code on the replay layer on last keyframe =
your_replay_btn.onRelease=function(){
this.gotoAndPlay(1);
What happens is the replay button still flashes at the end of each loop and the loops just continue...it doesn't stop at 3.
I also get this error =
Can you break down what I'm doing wrong and how to fix...need to get this out asap.
I truly appreciate your help and time so far on this...big thanks kglad!

Similar Messages

  • My iphone 4 would not back-up to to pc "because an error occurred" anyone offer any solutions to this,  I want to restore my phone to factory settings and reinstall my data but cannot back up first.

    my iphone 4 would not back-up to to pc "because an error occurred" anyone offer any solutions to this,  I want to restore my phone to factory settings and reinstall my data but cannot back up first. Original problem is that I cannot connect to any wifi system anymore - have tried resetting network settings but did not work.

    Try 1 step at a time and do a backup, if no joy then do the next step:
    1. Switching off your anti-virus and firewall.
    2. Computer iTunes menu > Edit > Preferences... > Devices > delete your backup

  • None of the apps I downloaded are opening. The screen just flashes a little, and goes back to the home screen,

    None of the apps I downloaded are opening. The screen just flashes a little, and goes back to the home screen,

    Try a Reset [Hold the Home and Sleep/Wake buttons down together for 10 seconds or so (until the Apple logo appears) and then release. The screen will go blank and then power ON again in the normal way.] It is 'appsolutely' safe!

  • When i go to move app from dock the cloud shows but goes back to dock. can you please help

    When i go to move app from dock the cloud shows but goes back to dock. can you please help

    Drag it further away and it should release. It used to be that you just had to drag it off a little bit for it to delete. The new behaviour got introduced at some point in Mountain Lion.

  • Dual g5 goes to sleep in about every 6 seconds when i,m working , i tap the key and it wakes but goes back to sleep in about 6 seconds.              when i,m working,

    dual g5 goes to sleep when i,m working on it every 6 seconds, wakes up when i tap the mouse but goes back to sleep in about 6 seconds.

    Get Temperature Monitor to see if it's heat related...
    http://www.macupdate.com/info.php/id/12381/temperature-monitor
    And/or iStat Pro...
    http://www.islayer.com/apps/istatpro/
    If you have any temps in the 70°C/160°F range, that's likely it.
    Will watch for your report.

  • Video goes back to first image

    Hello all
    I have a prob with a video mpg4 that plays in the first page of my stack, i have added a jpg sequence to play automatically at the end of the video, to stop the video that play inside the page (1024/768)
    It plays well
    but as soon as i swipe down and navigate into the below page (read other video and scrollable text), then when I come back the first page of my stack the video has go back to its first image (rather than stay with the last image of the seuquence image)
    I hope I am clear
    I have try everything, even use a whole animation in jpg sequence (which is more heavy than a MPG4) but here again it goes back to the first image as soon as I navigate to the below page
    Any idea?
    BTW it works well in the desktop viewer

    The problem here could be related to the MSO timing issues that are fixed in the Viewer Builder viewers but not in the store iPad viewer. If you can create a custom Adobe Content Viewer, it should work. Or, wait for the store viewer to be approved (any day now).
    You might want to look at Keith Gilbert's article about stopping a video on the last image: http://blog.gilbertconsulting.com/2011/09/dps-stop-video-at-last-frame.html

  • Encore CS4 Loop Point goes back to beginning

    Hi all,
    Thank you for your time reading this. I've searched the forum and didn't see a resolution for this type of issue. Please accept my apology if it is noted somewhere and I didn't find it.
    I created a Motion Menu in After Effects CS3 that is 00;05;07;00
    I then saved the layers as a psd files (I didn't create buttons within AE)
    I created the buttons I wanted within Encore.
    Turned off all of the layers in Encore except for the buttons that I created
    I created an AVI file out of the After Effects composition which is set as the Motion menu in Encore
    The only problem that I am having is that when the video ends it goes back to the very beginning of the motion menu instead of the Loop point I set at 00;00;14;00 (14 seconds if I did that right)
    I have Animate buttons checked
    Loop point: 00;00;14;00
    Loop #: Forever
    On the basic tab, for both End Action and Override I went to Specify link and chose the Motion menu(AVI) that I created. I checked the box at the bottom "Set to Loop Point"
    I'm not really sure what I'm doing wrong. This is my first time with a Motion Menu, so I'm sure I'm doing something wrong.
    Thank you for your time on this
    Best regards
    Jeff

    Jeff,
    Thanks for explaining.
    I'm now using CS5 and I'd heard the two menu thing wasn't necessary any more so:
    A week or so ago, I was trying to figure out the same thing.  I posted this question here http://forums.adobe.com/thread/852185?tstart=30.
    Unfortunately, there were no answers, and by then I had found in the Encore Help under Loop point (as you did) this group of instructions at the bottom
    "Set menu loop back
    You can set a loop point in a motion menu to a point from which you want the motion menu to loop, rather than the beginning. This is useful when the starting point and ending point of the motion menu are separated by a long interval.
    Select the menu from the Menu panel.
    On the Properties panel, set the loop point.
    Select Specify Link from the End Action Options menu.
    Select the target from the list, and then select Set To Loop Point, and click OK"
    However, I can't get this to work similar to you problem.  That is, if I select the "Play all, Scenes " menu as the target, since it has a motion menu, I can select "Set to loop point", since it's not greyed out.
    However, if I select the next menu "Scenes" with no motion menu, the "set to loop point" is greyed out.  If I select the Play all etc with the motion menu,  then the loop point doesn't work ie it still loops back to the beginning of the motion menu.
    I'm not sure what the work "taget" means from the last sentence in the suggestions.
    I was hoping an Adobe person would chime in, but so far no luck.
    I'm doing this in a SD project and not BluRay.
    Sorry to ramble.
    John

  • Album info DATED BUT goes back to default

    Dear Sony amd Sony Users,
    I have been updating my Walkman album information for a couple of times already and my patience is thinning out. Yes, I do use the Download Music Info and it is great for some selected songs. But those songs that are saved through Bluetooth needs to be updated individually. It worked fine for a period of time but recently those Songs received through bluetooth are going back to default. The album cover, album title and album artists are gone. I have to update it individually again. I have been doing it for a couple of times already alread.
    How can I save those album information PERMANENTLY? Please help. Thank you
    On the verge of losing it,
    Sirius.

    The way I do it is to transfer those files to a Pc and use a free program called mp3tag and change the embedded info then transfer them back
    For a successful technology, reality must take precedence over public relations, for Nature cannot be fooled.   Richard P. Feynman

  • Iphone 3gs restores fine but goes back to recovery logo after restarting

    i would appreciate any help that i can get, i have an iphone 3gs locked to fido and my phone carrier is also fido, so when i restore, the sim successfully unlocks it, aldo it doesnt say phone is activated, but it still takes me to the home screen and the phone and everything works fine; i can make calls, receive calls, sync with itunes and everything works perfectly. However when i restart it, it goes back to the recovery logo and although my sim is still in it, it constantly says searching... where it use to show the carrier name and remains on the restore screen and restarts itself every 10 minutes or so
    I am getting really frustrated with this, i have tried everything, hard/soft reset, restoring my phone many times, resetting network settings, but itunes either says restore again, insert a valid sim with no pin lock to activate phone, or cant activate phone at this time, try again later. i tried calling my carrier company and they even replaced my sim that i got especially for this phone by telling them that i have a 32 gb iphone 3gs, but still same this, they even tried to unlock it in their system by taking down my phones IMEI and serial Number but still no luck, it still restores fine, carrier and everything works fine but after restarting goes back to the restore screen and wont budge until i restore again
    is it a hardware issue? my phone is not under warranty, i am on 4.3.5
    i would appreciate any help
    Thank you in advance

    try using a diff computer
    if you can't try creating new user account on that computer
    if none works then your looking at a hardware condition... hope your warranty is still valid

  • Flash animation big but with no browser scrolls

    Here's my problem,
    I'm building a website that occupies full screen size (100%),
    i'm doing this so i can adapt to many resolutions and not do a
    fixed size site.
    So here's my problem. I want a flash animation banner to be
    100% too, without resizing, streching or shrinking. So what i
    thought was creating a large size animation and then simply not
    have the browser's scrollbars. Much like the images you can put in
    table cells background.
    Still i can't seem to put my large in width animation to not
    make the browsers scroll appear.
    Can someone help me out? Thanks

    It's called crashing. Unfortunatly its common but it can't be fixed. A restore will help but not fix

  • HELP! My iMessage logged out so now I sign in and it says veryfing, but goes back to the sign in page.

    HELP!!! My iMessage won't work correctly! I type in my apple ID and my password and it says verifying nf then keeps going back to the Apple ID screen!

    Try
    FaceTime, Game Center, Messages: Troubleshooting sign in issues

  • Simple scripting:  On frame (45) go back to first frame..??

    I am trying to do a simple script and I am having a huge brain fart.
    when I get to frame 45 I want the play head to go back to frame 1.  I have the below code but I am getting errors.  Can someone point my head in the right direction?
    <><><>
    onFrame (45) {
        this.gotoAndPlay(1);
    <><><>
    One error says that "is expecting semi-colon before or after first brace.....
    second possible error is "call to possible undefined method onFrame....
    Need help.

    If that is the first scene, the in the last frame (45) simply putting...
        gotoAndPlay(1);
    should work.
    If it is not the first scene, then you should label the first frame and use the label instead of the frame number...
        gotoAndPlay("firstFrameLabel");

  • OnResize - coming back to first frame

    Hello,
    I´ve done a movie with two frames controled by onResize.
    It works fine in the first frame, but when I do a resize of the
    browser staying in the second frame the movie comes back to the
    first frame.
    If I use only one frame, the result is similar. The objects
    comes back to their initial state. So the resize of the browser is
    reloading the site. I´ve tested in IE, Mozilla and Eudora,
    obteining the same result.
    Any Idea?
    Thanks in advance :)

    Hi kglad,
    A lot of time without see you :)
    the code is:
    estado=1;
    Stage.align = "LT";
    Stage.scaleMode = "noScale";
    stageListener = new Object();
    stageListener.onResize = function() {
    if(estado==1){
    expandIt1();
    if(estado==2){
    expandIt2();
    Stage.addListener(stageListener);
    expandIt1 = function () {
    back._width = Stage.width;
    back._height = Stage.height;
    logo._x = (Stage.width / 2) - (logo._width / 2);
    logo._y = Stage.height / 2;
    sun._y = Stage.height;
    sun._height = Stage.height - 100;
    sun._width = sun._height;
    sun.x = Stage.width - sun._width / 2;
    menu._width = Stage.width - 58;
    expandIt2 = function () {
    back._width = Stage.width;
    back._height = Stage.height;
    sun._y = Stage.height;
    sun._height = Stage.height - 100;
    sun._width = sun._height;
    sun.x = Stage.width - sun._width / 2;
    menu._width = Stage.width - 58;
    expandIt1();
    the "estado" variable" defines what function perform...

  • Hi for some reason my Airport Express has stopped working. It just glows Amber and occasionally flashes green but goes back to amber. AU can't see it. I have a macbook and want to connect via my existing wifi to stream music, can someone help please!

    Hi, title says it all. I have been doing this for years and don't know what has changed.....
    Reset doesn't seem to work, this includes factory! Please help.

    It certainly would not hurt to let the folks at the Apple store take a look to verify things. If the product is less than a year old, or you have AppleCare on one of your Mac, the Express may qualify for free replacement.
    The Apple Store may also some some refurbished Express devices on hand at a discount if you need to buy, or they can direct you to the Apple online store for the same thing.

  • IPad 2 7.0.4 randomly goes back into first time setup

    I have had my iPad 2 for 2 years now and I've been very happy with it, however last week I installed 7.0.4 and it forced my iPad to go into the first time setup (like what you see when you restore) and I lost all my settings, but I thought it was a one time thing the update wanted. Now, I picked it up and it wanted to go over the setup again, and again it deleted all my settings and apps. No one has touched it other than me, and the last time I used it was to listen to some music yesterday. The iPad had 75% battery when I picked it up and at no time did the battery die on it. This is very frustrating and it all started when I updated to 7.0.4.
    Has anyone else see this and if so what can I do to stop it?

    Back it up and restore it through iTunes.

Maybe you are looking for