Flash help for replay button

I have a simple movie that consists of 1 scene with some
layers. Each layer
contains a movie clip and there's an actions layer with a
stop action. All
the clips play at once. The clip that contains the ending
sequence contains
a replay button. The actionscript is as follows:
on (release) {
gotoAndPlay("Scene 1", 1);
With simple buttons enabled within flash, it does what is
expected, but when
I save as a .swf, it goes back to the first frame of the
movie clip it's
contained in, not the movie itself. How do I add a replay
button to a movie
set up the way I have it?
Thanks
-mark

Thanks for that. I got it to work by simply having the button
reload the
movie. I got to thinking that since all the clips play
through and then stop
at their respective endings. Going back to the first frame of
the root may
not work as the root only has 1 frame and the clips have
already played
through. Figured I should reload the movie.
But I'll try your solution and see if it also works.
-mark
> on(release){
> _root.gotoAndPlay(1);
> }
>
> You don't need to specify a scene name unless you are
moving outside of the
> scene.
>
> The _root sends the action to the root timeline, so if
this is inside of a
> movie clip, the action will happen at the root level.
>

Similar Messages

  • Want to create F1 Help for radio button in my report

    Hi All,
          I want to create F1 Help for radio button in my report program. Which function module should i call in <b>at selection screen on help-request</b>
          Also do I need to define the texts somewhere or I can pass it directly to the function module.

    Try DYN_FIELD_F1_HELP,
    ~Suresh
    that is only for Dic fields..
    Pl take alook at this<a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/79/34a243d9b511d1950e0000e8353423/frameset.htm">SAP Help</a>
    ~Suresh
    Message was edited by: Suresh Datti

  • Actionscript Help for Simple Button Events

    Hey everyone,
    I'm pretty new to flash and I think this is a fairly simple animation, but I'm not quite sure how to write out the action script for it. I have a website that has very similiar animations to www.cookstreet.net. I have shapes and text that fly in from the bottom when a button is clicked, but I want to get them to fly back out of the top of the screen when any other button is clicked before any new content loads back in from the bottom. What should I add to the action script to tell flash to first check and see if there is content loaded on the screen when a button is clicked, and if there is, to go to the animation that flies that content out of the top and then return to the animation of the new content coming in from the bottom? What I currently have set up for my buttons is:
    function handleClick( pEvent:MouseEvent):void
        if( pEvent.target == reel )
            gotoAndPlay("Reel");
        else if( pEvent.target == home)
            gotoAndPlay("Home");
        else if( pEvent.target == news)
            gotoAndPlay("News");
        else if( pEvent.target == film)
            gotoAndPlay("Film")
        else if( pEvent.target == about)
            gotoAndPlay("About")
        else if( pEvent.target == contact)
            gotoAndPlay("Contact")
    reel. addEventListener(MouseEvent .CLICK, handleClick );
    home. addEventListener(MouseEvent .CLICK, handleClick );
    news. addEventListener(MouseEvent .CLICK, handleClick );
    film. addEventListener(MouseEvent .CLICK, handleClick );
    about. addEventListener(MouseEvent .CLICK, handleClick );
    contact. addEventListener(MouseEvent .CLICK, handleClick );
    Thanks for the help!
    -Sofi

    What you can probably do is have a variable that you use to keep track of who's present on the stage, starting it off as a null value.  That way when you click a button if the value is null is skips processing a moving out scenario and jumps to the moving in one.  So your event listeners would be calling a different handler function that first takes care of the moving out needs, if any, which in turn calls the moving in function after the moving out activity is done (or the timeline for moving out does... I don't know how you plan to implement the moving out stuff).  If it is a functiob to function process, the moving out function could pass the event.target to the moving in function so that wouldn't have to change at all, except to add in somewhere wha the new variable value should be.
    If what I just offered is one big ball of confusion... take your time and inch your way thru it.

  • F1 help for radio buttons

    Hello All,
       I am getting F1 help when the radio buttons are in display mode but i am not getting F1 help when the buttons are in input mode. what cud be the problem?
    can anyone please help me. required urgerntly
    Thanks & Regards
    Amarender Reddy B

    Hi,
        use  event
       at selection-screen on  HELP-REQUEST FOR 
       rb_radio                                                                               
    As with the addition ON VALUE-REQUEST the field psel_low_high  
    is either the name of a report parameter or of the form sel-LOW
    or sel-HIGH, where sel is the name of a selection criterion.   
    When the user presses F1 on the relevant field, the subsequent 
    processing block is executed. You can thus implement a         
    self-programmed help for the input/output fields of the        
    selection screen. If the program contains such an event and the
    user presses F1, the system processes this rather than         
    displaying the documentation of the Dictionary field - even if 
    the report parameter or the selection option with LIKE or FOR  
    points to a Dictionary field.                                  
    Regards
    amole

  • Creating a Replay Button for a Flash Video

    I want to replay a flash video by clicking on a "replay" button. I know how to creat the buttons. I can't figure out how to create the action script. Thanks in advance for any help.
    I know how to create the Action Script to replay flash, but when I have a flash video that I want to replay that's when I run into trouble.

    Hi,
    This snippet should hint a solution to you (NetStream class):
    netStream.seek = 0;
    netStream.resume();
    Anyway, you would need to know when the movie has finished playing.
    On a Flash Media server, there should be an event just for that.
    If you are not running on such a kind of server, make yourself a cuepoint to listen to, at the very last frame of the movie, so your app knows when its time to offer the replay functionality. You can insert cuepoints in a movie when you are in the Flash Video Encoder options.
    Design Cyboïde
    Création de sites web Montréal

  • Back button & Replay button for Flash movie on website

    Three questions all related:
    1. I need to add a "Back"  and a "Replay" button to a Flash movie that plays full screen when the link is clicked on a website. I have created the two buttons and placed them on the stage. I've given them the names back_btn and play_btn. I've tried several scripts from postings on the Forum for the replay button but all of them come up with errors such as, "1119: Access of possibly undefined property onRelease through a reference with static type flash.display:SimpleButton" when I use this script:
    stop();
    play_btn.onRelease = function()
    play();
    I also tried this script:
    stop();
    play_btn.addEventListener(MouseEvent.CLICK, playMovie);
    function playMovie(event)
    play();
    It didn't report any errors, but it didn't work.
    2. I saw a posting that said one needs to name the movie clip and reference it in the script. Would this be the file name of the movie after it is exported? I am unclear on this.
    3. For the "Back" button, would I include the whole url to get the viewers back to the previous page or is there a shortcut way to get them back there?
    If you can help, please provide detailed script as I do not know Action script.
    Thank you,
    Marilyn

    Hi, Ned:
    I have a presentation completed that is already up  on a website and now I need the "Back" button and "Replay" button, so whether I'm ready or not, I have to find a solution. I know I'm missing some important step. I have Lynda.com and I can usually figure out what's wrong with the lessons on there, but this one has me stumped.
    I did try the code change you sent and I was unable to get the movie to replay. I'm attaching two screen shots so you'll see that I did have the button instance named properly and the Action Script correctly written. You can "Ctrl" "Scroll" to enlarge the images on your screen.
    Marilyn

  • Flash video replay button

    Hi all..
    I'm working on a flash video.. I have no problem converting/linking the video, etc - however, need to have a replay button as well as another button (to go to another page and such) after the video is done playing... Can anyone help me out or diret me to a tutorial about this? I'm assuming that I need to check for when the video is done playing and than make the buttons visible?
    Thanks a bunch ahead of time!

    here's an example, it assumes you have two buttons on stage or instantiated(restartButton and goButton), and your vid file/playback linked up etc
    restartButton.addEventListener(MouseEvent.CLICK, restartVideo);
    goButton.addEventListener(MouseEvent.CLICK, goSomewhere);
    goButton.visible = false; // hiding it till you need it
    myVideoPlayBack.addEventListener(Event.COMPLETE, setGoButtonVisible);
    function restartVideo(event:MouseEvent):void
         myVideoPlayBack.stop();
         myVideoPlayBack.seek(0);
         myVideoPlayBack.play();
    function setGoButtonVisible(event:Event):void
         goButton.visible = true;
    function goSomewhere(event:MouseEvent):void
         //whatever this should do, be it load a page, go to a frame etc
    HTH

  • Problems setting up my TC. Have just bought new iMac(OS 10.6.8) and  TC. I set it up. iMac cannot find it. I have tried direct connection with an ethernet cable to Mac or my wireless router but nothing. Just a flashing orange light. Help for a simpleton p

    Problems setting up my TC. Have just bought new iMac(OS 10.6.8) and  TC. I tried to set it up. iMac cannot find it. I have tried direct connection with an ethernet cable to Mac or direct to my wireless router but nothing. Just a flashing orange light. Help for a simpleton please. Have tried reseting TC, but to no avail.

    Just updated from 10.6.7 ---> 10.6.8 and had the same issue. Despite having done a clean install from 10.6 and got everything back off my TC, now Time Machine can't find it!
    Green light is on, ethernet cable conected, network CP says its conected but nothing. Airport Utility can't find it. Hit reset button, Orange flashing light but still no show in Airport Utility.
    But I know its there, as rebooting from 10.6 SL disk shows the backups are still ok?
    Hmm, ideas anyone?
    SBB

  • I just statred Flash CC for the first time and it seems that the text within the pop-up window (dialog box) is mis-aligned and not allowing me access to the command buttons, nor all the text. (ie: the NEW Template Box, can't see but 2/3 of the content)

    I just statred Flash CC for the first time and it seems that the text within the pop-up window (dialog box) is mis-aligned and not allowing me access to the command buttons, nor all the text. (ie: the NEW Template Box, can't see but 2/3 of the content) is there a fix to this problem? using 8.1, Monitor is a high res.2560x1440.

    Another View.
    the GUI is so hard to read (so small) I enlarge my Ps UI by the instructions below...which helped a lot.

  • Need help for flash builder

    i need help for flash builder 4 and papervison 3d. I need to create a slider with it ranges of value from 10 to 50 to adjust the camera values for the camera.fov and also need to create it for the yaw of the object from 0 to 360. I try to look for any slider event and classes in this program but cant find any, btw, i need to use the AS only project file.
    here is my codes:
    can you please tell me how i should modify the codes?
    package
        import flash.display.BitmapData;
        import flash.display.Sprite;
        import flash.events.Event;
        import org.papervision3d.materials.BitmapFileMaterial;
        import org.papervision3d.materials.BitmapMaterial;
        import org.papervision3d.objects.primitives.Sphere;
        import org.papervision3d.view.BasicView;
        [SWF (width="800", height="600", backgroundColor="0x000000",frameRate="30")]
        public class EarthBitmap extends BasicView
            private var sphere:Sphere;
            public function EarthBitmap()
                super(800 , 600);
                var earthmaterial:BitmapFileMaterial = new BitmapFileMaterial("../assets/Earth.jpg");
                sphere = new Sphere(earthmaterial,100,20,18);
                camera.fov = 25;
                scene.addChild(sphere);
                addEventListener(Event.ENTER_FRAME,rotateSphere);
            public function rotateSphere(evt:Event):void
                sphere.yaw(0.2);
                singleRender();

    Turn the click handler into a full on separate function. Then store all the views in an array and use Math.rand() to randomly choose one.
    Something like this:
    <fx:Script>
         <![CDATA[
              var questionsArray:Array = {question2,question3,question5,questionRed,questionGeography};
              function buttonClickHandler(event:MouseEvent){
                   var randomProblem:int = Math.floor(Math.random()*(questionsArray.length));     //generates a random integer between 0 and the total number of questions in the array (arrays are 0-based)
                   navigator.pushView(questionsArray[randomProblem]);
         ]]>
    </fx:Script>
    <s:Button id="randomProblemButton" label="Next Problem" click="buttonClickHandler(event)" />
    Haven't tested that, but something along that line should work

  • I suddenly cannot startup Captivate 4 for reason Flash Player for Internet Explorer not installed or older version, but I have verified that Flash Player 16,0,0,235 is installed. Please help.

    Hi,
    I haven't used my Adobe Captivate 4 for a bit, but when I try to start it up, I get the following message:
    "The Flash Player for Microsoft Internet Explorer, is not installed or its an older version.
    You will automatically be redirected to the Adobe website to download the latest Flash Player.
    Please note that the Adobe Captivate cannot be used until the Flash Player is installed."
    Even if I click the OK button and reinstall the Flash Player, I still get the same message, when I try to startup Captivate.
    I have verified that I'm running Flash player 16,0,0,235, which is supposed to be the latest version.
    I'm running Windows 7 and Internet Explorer 11.
    Please help.

    The problem is that your version of Captivate 4 needs to be updated with a patch that Adobe used to supply.  (I don't have a link anymore to it.)
    Captivate 4 was unable to recognise Flash Player versions beyond a certain number.  It gives you a misleading  error message that makes it look like you have the wrong version of Flash Player.  But the real problem is that Captivate needs to be patched to recognise the latest FP versions.
    I'm hoping that someone from the Adobe Captivate team will chime in here and give us another link to download the patch.  Otherwise, you really might be forced to upgrade to a newer version of Cp.  However, if your current projects are being built in Cp4, your next issue will be that if you purchase Cp8 it will NOT be able to upgrade your Cp4 projects.  You'd need to download a trial version of Cp5 or 5.5, and do a two-step upgrade.

  • I Need Help for the popup message every time I go to safari: "Warning! Old version of Adobe Flash Player detected. Please download new version."???

    I Need Help for the popup message every time I go to safari: "Warning! Old version of Adobe Flash Player detected. Please download new version."???

    If you are talking about Safari on the iPad, there is no version of Adobe Flash for iOS and there never has been. Clear Safari, close the app and reset the iPad.
    Go to Settings>Safari>Clear History and Website Data
    In order to close apps, you have to drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app preview thumbnail to close it.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
    If you are talking about Safari on your Mac, you are in the wrong forum. But I would still clear the cache, quit Safari and restart the Mac.

  • How to Disable Check for updates button in Help/About in firefox 5.0

    Hi the user should not manually check for updates so we want to disable the Check for updates button also in Help/About.
    Thanks in advanced

    You can hide that button with code in userChrome.css below the @namespace line.
    * http://kb.mozillazine.org/userChrome.css
    * http://kb.mozillazine.org/Editing_configuration
    You can use the ChromEdit Plus or Stylish extension to have easier access to the customization files.
    * ChromEdit Plus: http://webdesigns.ms11.net/chromeditp.html
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #aboutDialog #updateBox { display:none!important; }</nowiki></pre>
    You can also choose to lock the related update pref(s) to false if you want to make sure.
    See:
    * http://kb.mozillazine.org/Locking_preferences
    * http://kb.mozillazine.org/about:config

  • How can i deinstall the rotten ADOBE HELP for Flash CS5 an install a new one (Mac OS X 10.6.8 )

    My Flah Help can't download newer Versions and Ressources. So i can't use it. And i have to. And i paied for it.
    So: How can i deinstall the rotten ADOBE HELP for Flash CS5 an install a new one (Mac OS X 10.6.8 )?

    Do you receive an error message when trying to use the help files?  What have you tried so far to resolve your difficulties?

  • Good evening I would please help me, IGood evening I would please help me, I have problems with flash player when update on my computer Flash Player for windows 8, gives me error in the installation that is not apply on my computer. Please help. Thank You

    Good evening I would please help me, IGood evening I would please help me, I have problems with flash player when update on my computer Flash Player for windows 8, gives me error in the installation that is not apply on my computer. Please help. Thank You

    First, confirm that ActiveX Filtering is configured to allow Flash content:
    https://forums.adobe.com/thread/867968
    Internet Explorer 11 introduces a number of changes both to how the browser identifies itself to remote web servers, and to how it processes JavaScript intended to target behaviors specific to Internet Explorer. Unfortunately, this means that content on some sites will be broken until the content provider changes their site to conform to the new development approach required by modern versions of IE.
    You can try to work around these issues by using Compatibility View:
    http://windows.microsoft.com/en-us/internet-explorer/use-compatibility-view#ie=ie-11
    If that is too inconvenient, using Google Chrome may be a preferable alternative.

Maybe you are looking for

  • Abap code in bw start routine

    Hi i need to reload the master data with out FM, i putted the comment on fm and relaod the data, now i having a problem, loading process is slow now as compair to before, when i was using with FM. i checked the mange on data target, it is show 112345

  • Video in a Flash file

    I have imported a video file .AVI or .SWF in to my Flash Mx 2004 and I need to know how to make it so i can play the video only when I click A button. I have other content on the stage as well so I need to know how to link the button to make the vide

  • Message while performing goods movements in PI sheet

    Dear experts, Kindly suggest way to populate the message that system provides while performing goods movment using co11n and cor6 at the time of posting the message through PI sheet. System usually populates message like 6 goods movement posted 1 fai

  • New nvidia driver!

    Hope this fixes the xgl problem with nvidia! Release Highlights:     * Added support for GeForce 8600 GTS, GeForce 8600 GT, GeForce 8500 GT, GeForce 8400 GS, and GeForce 8300 GS.     * Improved Notebook support.     * Fixed assorted minor bugs. The 1

  • Urgent Help!! error in lunching web dynpro application

    When I am tring to lunch the application after installation I am getting following error in log file. I am using version 2.0.13. !SESSION Sep 13, 2005 12:43:48.606 - java.version=1.4.2_09 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win