Replay Button for SWF animation

Situation: Imported animated SWF file into slide. Using
Captivate Back and Next buttons to control navigation. I want to
add a "Replay Demo" button for the animation SWF file.
Is this possible through Captivate (or Flash)? I don't want
the continuous loop animation but do I want the option for a user
to review animation again if desired.

I hate it when I post something on a forum and then I
discover the answer 10 minutes later. Ny your answer I'm guessing
the Captivate add button fweature with a Jump to slide 1 setting"
is the answer, right?
That DID fix the replay issue. Now on to second issue. The
animation blanks out once it finishes playing. While looking for
the replay answer yesterday, I noticed a post that said something
about creating a screen capture of the last slide and insert it on
the timeline or something... back to searching. Thanks for the
quick reply.

Similar Messages

  • 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

  • Exit button for .swf or projector?

    Hi All,
    I am admittedly a complete novice, so please bear with...just completed Lynda tutorial on Flash Pro cs5.
    Just trying to do a simple animation with an exit button to close out the player (projector, Flash Player). I have seen several discussions on the same, and have tried all example code to no avail. I am testing through publishing, not preview and it does not function as an exit button.
    Have tried:
    on(release){
    fscommand("quit");
    ...and...
    import flash.events.MouseEvent;
    exitButton_mc.addEventListener(MouseEvent.CLICK, function()
            fscommand("quit");
    I created the button symbol, selected it and then selected the first keyframe on that layer...entered AS3 window and tried the above code. No luck : /
    Any help would be greatly appreciated! I searched through the forum and was unable to locate the answer to this question. Apologies if I missed it somehow.
    Thanks in advance!!!

    I created an example which works just fine. You can download it here: http://dev.flashlabs.eu/examples/fscommand/source.zip
    The source looks like this:
    import flash.display.StageScaleMode;
    stage.scaleMode = StageScaleMode.NO_SCALE;
    btn_exit.addEventListener(MouseEvent.CLICK, exitBtn_clickHandler);
    function exitBtn_clickHandler(event:MouseEvent):void {
        fscommand("quit");

  • In Flex 3 how to Stop and Replay .swf animation created in Flash

    Hi
    I have an animation file that is created in Flash (I think
    CS3). In Flex if I import it inside a SWFLoader or if I import it
    as an Image. It plays once and stops. Then I can not replay it. I
    also can not pause it when its playing.
    I have tried few things based on help and code available in
    the Web to of no help. I have tried to convert the swfLoader
    instance to a movie clip like so to stop
    var c:MovieClip = swfLoaderHeaddress1.content as MovieClip;
    c.stop();
    <mx:SWFLoader x="53" y="116" width="206" height="255.3"
    visible="true"
    source="assets/animations/curatorial/ZoomHeadress_2nd.swf"
    id="swfLoaderHeaddress1"/>
    It does not work.
    I have not created the .swf animation, I am not sure how it
    is done. I belive it may not be using any ActionScript as I know
    the artist who created it does not know ActionScript. Does
    something need to be done inside the Flash to support the stop and
    play? Or is there a way to restart/replay stop a .swf animation in
    Flex 3 no matter how (and whether or not its developed using
    ActionScript) its developed in Flash?

    One way is she has to add some AS code to the animation, or
    you can do it yourself.
    In swf there must be something like this:
    var connReciever:LocalConnection = new LocalConnection();
    connReciever.client = this;
    connReciever.connect("fromFlexToSWF");
    function myFunction(parameter:SomeClass):void {...}
    And in Flex:
    var connSender:LocalConnection = new LocalConnection();
    connSender.send("fromFlexToSWF", "myFunction", [..args]);
    The other way: in case with just play/stop there is a way to
    resolve this by using that Flex Component Kit (or maybe "Flex Skin
    Design Extension", i do not remember), it is something like she
    just adding labels to animation frames then she exports it with
    Flex Kit and then you can work with it like with an object with
    "states".

  • A few questions on making animated buttons for a website Nav

    Hello, I have a few questions on creating some animated buttons for a nav.
    There are 2 actions I want to trigger on moue over.
    If I want to use a static (PNG) image that I created in Photoshop for the actual button, can I use that? I want to smoothly slide button down on mouse-over and slide back up on mouse off. If I push part of the button off the "canvas" (sorry, this is coming from a Photoshop guy) will it disappear in the final animation? Another way to put that is, if I put an animated element off the white area, will it no longer show up in the movie (.swf) when it's published?
    For the second part; you can see a bit of what I want to do if you look at this website's top Nav: http://www.photoshopsupport.com/index.html
    I need the "light" above the button and it's going to be on another colored <div> so I can't set one solid BG color for my flash document. But I want to achieve the effect of the "bar" lighting up above the button and the actual button sliding down upon moue over.
    Any help you can provide would be greatly appreciated.

    Hi,
    Regarding this button problem mentionned by kglad, it is easily overcome with a little trick.
    I call this the undesired "jumpy button". Your button starts to hesitate down-back-down-back quickly, like it's a bug, and then it settles.
    What you could do is create a simple sprite or movieclip containing only a simple shape, whatever the color, put it on top of your button's graphic, change this sprite/movieclip's alpha to 0, then add your mouse events on this invisible "target" instead of your graphic. So, when you mouse over, you have the graphic move, not the invisible "target".
    Sometimes, for this invisible target, you will be using a movieclip, not a sprite, so you can easily add your own properties on it.
    Example:
    var graphicBtn:Sprite; // your png
    var targetBtn:MovieClip; // your invisible target, created with code or not
    targetBtn.graphics.beginFill(0x000000);
    targetBtn.graphics.drawRect(0, 0, graphicBtn.width, graphicBtn.height);
    targetBtn.alpha = 0;
    targetBtn.mygraphic = graphicBtn;
    targetBtn.addEventListener(MouseEvent.MOUSE_OVER, onOver);
    targetBtn.addEventListener(MouseEvent.MOUSE_OUT, onOut);
    addChild(graphicBtn);
    addChild(targetBtn);
    function onOver(event:MouseEvent):void
         TweenLite.to(event.target.mygraphic, 0.25, {y:40, ease:Back.easeOut});
    function onOut(event:MouseEvent):void
         TweenLite.to(event.target.mygraphic, 0.25, {y:0, ease:Cubic.easeOut});
    So you see, you can have only one function (well, 1 for over, 1 for out) used for all your buttons. You can add as many properties you need on your movieclip to make that one-function flexible.
    Here I used GreenSock's tweening engine, but use the one you prefer (Here, I am moving the graphicBtn in y for 0.25 second).
    Design Cyboïde
    Création de sites web

  • 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.
    >

  • Is there a way to make state transitions/animations of a fl.control states - button for example ?

    Is there a way to make state transitions/animations of a fl.control states - button for example ?
    All I can do now is change the skin design and that's it, I can't animate between states like I can with Flash Builder skins. So is there a way to do that, any technique or I have to create a button component from scratch?
    Thanks!

    simplebuttons have upState etc properties you can use to assign movieclips to the 3 states.  you can use the currentFrame property of movieclps to (appear to) smoothly transition from one state to another.

  • What is the future of Flash CC and SWF format for 2D animation?

    My work heavily relies on Flash for 2D animation then import SWF's into AE for comping. Since I do frame by frame animation and very little tweening, SWF saved my life numerous times because of it's file size, continous rasterisation and ease of use. Although being buggy in places and Fash not seeing any of that recent AE love, it's still a key tool for me.
    So are there any plans to clean that bad boy up?

    If you are having a problem it is not clear what it is from what you have said.  If you have sugestions for improving some shortcomings you see in Flash CC then you should submit them to:
    Adobe - Wishlist & Bug Report
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • Can someone create a .swf animation for me ??i'll pay

    Can someone create a .swf animation of a running soldier for me, i need it for a powtoon presentation, It does not have to be sophisticated. i just cant use the generic guy in suit running. im willing to pay

    What direction
    Like facing forward or right or left or behind.
    I'll try my best.
    and no need to pay.
    but facing forward or backward is really hard and i cannot manage that though.

  • A quick solution for creating simple SWF animation.

    A quick solution for creating simple SWF animation.
    So you’re not an expert with Adobe flash and you need
    to create a simple animation or banner for a client. Remember that
    old school point and click animation program you found on the web a
    couple of years age. Create your animation with the old school
    program then convert the .gif file to a SWF file. It worked for me.

    ok?

  • Master On/Off Audio Button for Multiple swfs

    I need to create a “master” On/Off Audio Button
    that will control audio for a series of swfs loaded into a
    “master” swf. Each loaded swf will have a Media Display
    or FLV Playback MP3 progressive audio file supplying audio with cue
    points for that imported swf.
    What ActionScript would work for a “master”
    On/Off Audio Button in the main swf that would control audio for
    all of the loaded swfs so a setting in the “master” swf
    would effect all loaded swfs without the user needing to reset the
    On/Off Audio Button for each swf?
    Thanks!

    Use an array to store the names for each of the sound/video
    objects and then cycle through them and shut each off.

  • Common control buttons for animation+video

    I wan to be able to embed an animation like one of these http://http://www.texample.net/tikz/examples/tag/animations/, which has its own control buttons,
    alongside a regular video, and have both of them run by a common set of control buttons for play/pause/rewind.
    For example, the video could be a video of an actual object or a ball falling, and the animation could be the animated drawing of some math formula related to the fall of the object.
    Message was edited by: Maesumi

    (1) Is it possible to put 3 buttons, say A, B, C, on a PDF page so that pressing A  will be equivalent to pressing B and C?
    (2) And would Adobe Pro allow one button to be placed  on top of another one?
    The simplistic idea here is to manually perform what a program would do. So I will use A as the master control  and place B on top of the control  button for the video and put C on the control button for animation. Then when I click on A it is as if I have pressed B and C simultaneously.

  • Replay button

    hello,
    i've got a pretty simple CS3 animation. Just about at the end
    of the timeline a replay button appears. However, so far I can't
    get it to work.
    In the replay button's timeline, I have defined keyframes for
    up, over and down states. (the button is changing images properly
    when I hover the mouse over it, and press down.) For the hit state,
    I've created a keyframe. I've also tried to insert some Action
    Script there. The window for the Action Script says "Current
    selection cannot have actions applied to it." So, my first question
    is: Does CS3 allow for Action Script to appear in the timeline of a
    button? I keep reading how people are applying AS3 in button
    timelines, but I can't put my AS3 in the "hit" frame's keyframe.
    So, i've tried to get the button to work using the main
    timeline. I've given the button an instance name: btnReplay. In the
    first frame of the timeline, I've got AS that says:
    function replayClick(event:MouseEvent):void
    trace('inside onClick');
    gotoAndPlay(1); // plays the current timeline from 1
    } // end of onClick
    btnReplay.addEventListener(MouseEvent.CLICK, replayClick);
    Unfortunately, i get a compiler error with the first line.
    (I've changed my AS version to 1-2, it still gives me the error.
    So, I'm currently running AS3.)
    The compiler error says '{' expected. I've compared this
    first line (i.e., "function...") with other examples that I've
    found, and I don't see what the source of the compiler error is.
    does anyone have any advice? Thanks.

    Ned,
    thanks for looking at my FLA file. I sent it to your email.
    However, here's some comments:
    1. when I run it, I get an error on frame 103, line 1. It
    says '{' expected with this statement:
    function replayClick(event:MouseEvent):void
    2. frame 109 has some AS3 that doesn't work. Here's the code:
    var request="
    http://www.Adobe.com"
    try {
    flash.net.navigateToURL(request, "_self");
    catch (e:Error) {
    // handle error here
    // trace('e:Error: ' + e:Error);
    I'm trying to give the user about 5 seconds to hit the
    "replay" button. If the person doesn't do this, then I want the
    flash to force the calling page to load a new page. (So that the
    calling page functions as a splash page.)
    3. the replay button doesn't work.
    Thanks again for looking at my FLA. I appreciate it.

  • CP5 Project with inserted SWF animations

    We have a CP5 project with SWF Animations inserted on the slide.  The narration for the slide is on the CP5 project.  Is there a way to tell the SWF animation to pause is a student pauses the CP5 project?  I'm thinking some advanced action.  Also if they select the pause button on the SWF animation the animation's screen goes blue until the project advances to the next slide.
    As always thanks in advance for any help/ideas.
    Susan

    You won't be able to control the SWF playback with Advanced Actions in Captivate.  They're a bit limited in that respect.
    If you have access to an ActionScript developer, they might be able to create a solution for you.  AS3 is much more powerful than Advanced Actions.
    Your query seems to suggest that you have tried inserting these SWF animations in your project already and that there is a "pause button" on the SWF.  In most SWF animations that I've created in Flash and inserted into Captivate projects, the pause button on the main project also pauses the animation at the same time.
    So if your SWF is NOT pausing, it might be something to do with the way it was created.  Were these SWFs created in Flash or some other application?

Maybe you are looking for

  • HP Color Laser Jet 2840 with /mac OSX 10.6.4

    Moving everything onto a new iMac but OSX will not recognize the scanner capability of the HP. It recognizes the printing capabilities and printing is fine but it won't see the scanner. Image Capture doesn't recognize the scanner either. HP simply in

  • ITunes keeps removing music from my library! Is there any way to get this to stop?

    For the last three years or so iTunes intermittently removes parts of my library. I'm so sick of dealing with this! I'm beginning to intensely dislike Apple. There doesn't seem to be any pattern to what it's removing and I don't think it's the same s

  • How do I copy or delete a file in my machine in a Stored Procedure.

    How do I copy or delete a file in my machine in a Stored Procedure. UTL_FILE package can'nt do it? thanks

  • Damaged USB Ports - Need solution

    Hello, I am having a problem with my Macbook Pro 13-inches Early 2011           OS X Version 10.7.5           Processor 2.3 CHz Intel Core i5          Memory 4 GB 1333 MHz DDR3          Startup Sisk Macintosh HD Since about a year I noticed that one

  • Debuging procedures?

    How do you debug a creation/modification of a proc? Everytime when I encounter an error creating or modifying a proc I get the same old error: Warning: Procedure created with compilation errors. is there a log file, table or any place that I can look