Play Animation

I want to play the animation from the stage. I used this -> sym.play("complete");
to call the animation.
"complete" refers to the label which I put in the timeline. I do not know why this does not work. The animation will not play. Usually the animations will work fine when I used that set of codes to call for it.
I have also tried this set of codes -> sym.getSymbol("tower_sym").play("fade-in");
: this is because, the animation is actually the tower_sym, and it will play accordingly at the "complete" mark in the animation.
These are a portion of my codes.
//BOX FOR RIVET
                            }else if(_this.name=="box-for-rivet"){
                                        //console.log("drag :"+model.get("draggedRivet")+" heated: "+model.get("heatedRivet")+" dropped: "+model.get("droppedRivet"));
                                        if(item==="rivet"&&rivetHeated==true){
                                                  //console.log("hahaha4");
                                                  controller.setRivetPlaced(true);
                                                  sym.getComposition().getStage().getSymbol("down-arrow").play("st and-still");
                                                  if(rivetHeadHeated==false){
                                                            sym.getComposition().getStage().getSymbol("flame-arrow").pl ay("indicate-burn");
                                                  }else if(rivetHeadPlaced==false){
                                                            sym.getComposition().getStage().getSymbol("up-arrow").play( "indicate-up");
                                                  }else{          //both heated and placed
                                                            sym.$("datadiv").data("progress","done");
                                                            sym.getComposition().getStage().getSymbol("flame-arrow").pl ay("disappear");
                                                            sym.getComposition().getStage().getSymbol("box").play("disa ppear");
                                                            sym.getComposition().getStage().getSymbol("box-for-rivet"). play("disappear");
                                                            sym.getComposition().getStage().getSymbol("box-for-head").p lay("disappear");
                                                            sym.getComposition().getStage().getSymbol("down-arrow").pla y("indicate-press");
                                                            sym.$("rivet").draggable( "option", "disabled", true );
                                                            sym.$("rivet-head").draggable( "option", "disabled", true );
//PLAY THE TOWER ANIMATION - i want the tower animation to play here
sym.getComposition().getStage().getSymbol("tower").play();
                                                  } //end of BOX FOR RIVET
                                                  sym.$("rivet").css({top:-170,left:-180});
                                        }else if(item==="rivet-head"&&rivetHeadHeated===true){
                                                  sym.getComposition().getStage().getSymbol("up-arrow").play("indi cate-up");
                                        }else if(rivetHeated==false||rivetHeadHeated==false){
                                                  sym.getComposition().getStage().getSymbol("flame-arrow").play("i ndicate-burn");
          //BOX FOR RIVET HEAD: EDIT CURSOR POSITION HERE
                        }else if(_this.name=="box-for-head"){
                    if(item==="rivet-head"&&rivetHeadHeated==true){
                                                  controller.setRivetHeadPlaced(true);
                                                  sym.getComposition().getStage().getSymbol("up-arrow").play("stan d-still");
                                                  if(rivetHeated==false){
                                                            sym.getComposition().getStage().getSymbol("flame-arrow").pl ay("indicate-burn");
                                                  }else if(rivetPlaced==false){
                                                            sym.getComposition().getStage().getSymbol("down-arrow").pla y("indicate-down");
                                                  }else{          //both heated and placed
                                                            sym.$("datadiv").data("progress","done");
                                                            sym.getComposition().getStage().getSymbol("flame-arrow").pl ay("disappear");
                                                            sym.getComposition().getStage().getSymbol("box").play("disa ppear");
                                                            sym.getComposition().getStage().getSymbol("box-for-rivet"). play("disappear");
                                                            sym.getComposition().getStage().getSymbol("box-for-head").p lay("disappear");
                                                            sym.getComposition().getStage().getSymbol("down-arrow").pla y("indicate-press");
                                                            sym.$("rivet").draggable( "option", "disabled", true );
                                                            sym.$("rivet-head").draggable( "option", "disabled", true );
//but the animation will only play here, but it will gove me other errors then. Like displaying text overlays on click reset.
                                                  sym.$("rivet-head").css({top:210,left:250});
                                        }else if(item==="rivet"&&rivetHeated===true){
                                                  sym.getComposition().getStage().getSymbol("down-arrow").play("in dicate-down");
                                        }else if(rivetHeated==false||rivetHeadHeated==false){
                                                  sym.getComposition().getStage().getSymbol("flame-arrow").play("i ndicate-burn");
}//end of box for rivet head
Does anyone ever encounter this kind of error?
Thank you.

Hi there,
  It might help the community better if you post a link to a .zip file of your Edge Animate files. That way people can take a closer look to help you troubleshoot this issue. : )
Thanks!

Similar Messages

  • Can the iPod (30 GB Video version) play animated .GIF files/pictures?

    When I go into the pictures folder, it only shows the first frame. Can it play animations?

    "Importing" .gif files is a very old QT Pro "trick" and was made available in the first "Pro" version of QT (3).
    I still use the feature to add logos or other, older animations to some of my newer QT "movies".
    Some of the older QT tricks can still be used today:
    http://homepage.mac.com/kkirkster/QT_Fun2/
    I've been focusing my skill (very little) on the QuickTime discussions pages but visit these "iPod" discussions pages every now and then.
    Since the new iPod can also "do" the .mov format I thought I'd observe and comment for the newer users.
    Happy New Year!
    Oh, btw, QuickTime can also do some magic with your Photoshop files.

  • Pause & Play Animation When i'm using movie clips- filters

    Pause & Play Animation When i am using movie clips-
    filters
    Graphic and movieclips are using for my animation
    When i Press the pause the movieclip animation not stopped.
    Any way to apply the filters on graphic
    I want to apply the filters for particular graphics or movie
    clips. with navigational button working.
    Please help me.
    Thanks
    S.Satheesh Kumar

    Audio on the timeline, especially stream, tends to play very reliably. Is this project under any NDA or can you provide a FLA to examine? Let me know if you want to private message it and I'll shoot you a message.
    What version of Flash Player are you targeting and is this AS2 or AS3?

  • Click to play animation

    Hi,
    I'm a novice in Director 3D and in Lingo in general. I'm not
    trying to
    do anything too complicated. Am here to ask for help doing
    the
    following:
    I have created a 3D model in Max with various things that
    animate. The
    user can click on one model and it will animate, then
    another, and it
    will animate. This is easily done with the Play Animation 3D
    Action
    behavior. What I want is once you've clicked all of the
    models, another
    animation plays. So, how do I go about this?
    My animation is just keyframed made in Max.
    Thanks.
    Stu.

    stu wrote:
    > I've managed to put a global variable into the Play
    Animation behavior to
    > count the animations played. But, I'm really just
    counting the animations
    > activated. I need a way to test if an animation has
    finished playing. How
    > do I do that?
    Hi Stu,
    When an animation starts playing the 'currentTime' property
    ticks over and
    then goes back to 0 when the motion is complete. If you have
    recorded when
    the animation starts, you just need to check when it's
    finished. You could
    have something like the following (in a script after you know
    the animation
    has been started):
    if
    member("3DcastName").model("modelName").keyframePlayer.currentTime
    = 0
    then go to "animComplete"
    regards
    Dean
    Director Lecturer / Consultant / Director Enthusiast
    http://www.deansdirectortutorials.com/
    http://www.multimediacreative.com.au
    email: [email protected]

  • Does the iPhone play animated GIFs?

    Hi,
    Does the iPhone play animated GIFs? Sorry for asking such a basic question but I can't seem to find the answer on the web or within this forum.
    Also how do you implement it into your code? Do you need to use a UIWebView or can you just declare it like a regular png or jpg (e.g. UIImage *image = [[UIImage imageNamed:@"photo.gif"])
    Thanks for any help.

    you can play gif in webView ,just the same way you load a jpeg or png..
    NSString *path = [[NSBundle mainBundle] pathForResource:@"santa" ofType:@"gif"];
    NSURL *url = [NSURL fileURLWithPath:path isDirectory:NO];
    /* Load the request. */
    [myWebView loadRequest:[NSURLRequest requestWithURL:url]];
    the gif that is locally saved will be loaded.

  • How do I stop playing animated GIF's within web pages?

    Various websites display numerous images available for download. Some of those images are animated GIF files. These files take time to load and chew up a lot of my limited upload/download usage. IE Explorer let me see a single image for the GIF but doesn't load or play the GIF. How do I get that same setting in Mozilla Fire Fox?

    hello vyoumans,
    i found a couple different ways this can be done.
    1. this firefox addon, [https://addons.mozilla.org/en-US/firefox/addon/toggle-animated-gifs/ Toggle animated GIFs], seems to work pretty good. ctrl+m toggles the animations on and off.
    2. if you don't want to install an addon, you can go to your browser configuration file. type ''about:config'' in the address bar and find the entry ''image.animation_mode''. double click it and set its value to ''none''. this should disable all GIF animations

  • IMovie HD doesn't play animated .gif's

    why doesn't it play them? all I get is a still of the first frame, no animation. Can anybody clue me in? If you want the files to play with, they're here:
    http://perfectionconstruction.com/test/naruto.html

    Hi
    To move projects to external hard disks can be near to fatal.
    Eternal hard disk
    • *SHOULD BE* a FireWire one - USB/USB2 performs badly
    • *HAS TO BE* - Mac OS Exstended formatted
    (Usually not but UNIX/DOS/FAT32/Mac OS Exchange which doesn't work)
    (Even so if it's bought at Apple Store - a bad thing)
    If so You need
    • Other Space to move Your project to
    • Lennart Thelander repair kit
    If You re-format Your hard disk - IT WILL BE ERASED - Totally
    Yours Bengt W

  • Play animation that is happening inside symbol_2 by clicking on symbol_1 which is situated in stage

    So basically i want exactly what the title says.I have the stage and two symbols...each symbols contain their own elements.Symbol_1 has some static elements which will act as buttons and Symbol_2 has some images that are animated...at the beginning of each animation of every element i've put a label(such as image1_start,image2_start etc).And I want that when i click on one of the buttons whic are sittuated in Symbol_1 to start an animation from a specific label that is happening inside Symbol_2.How do i do that?...If they are all in the same timeline it's simple by using the sym.play("image1_start") command but that's not really what i am looking for.I hope I was specific enough.THANK YOU IN ADVANCE!
    P.S.Mostly it's about how can I make two different timelines to communicate properly.

    // insert code to be run when the composition is fully loaded here
    sym.getSymbol('symbol_1').$('btn1').click(function(){
              sym.getSymbol('symbol_2').play('image1_start');
    sym.getSymbol('symbol_1').$('btn2').click(function(){
              sym.getSymbol('symbol_2').play('image2_start');
    sym.getSymbol('symbol_1').$('btn3').click(function(){
              sym.getSymbol('symbol_2').play('image3_start');
    here is the sample:
    https://www.box.com/s/dcpe4xvdu6h9391gy5yd

  • How to play Animation with site loading in background to reveal website?

    So I know there are pre loaders and you can make that with edge... But they are so small and just a little circle moving around or something... I more mean a full page pre-loader then I guess...
    I have created an animation of a M with marquee lights going around and slowly zooming in... Then I have the M fade out and I have a black solid layer move up and another black solid layer move down to reveal the blank stage below...
    What I want to happen is maybe with some java script but to have the solids move out of the way to reveal my site bellow... Anyone know how to accomplish this?
    Thanks so much! I think being able to do things like this in native html and css and java will be huge for giving websites a "Font Door" or Opening Title like we have in movies... Thanks so much!

    first I recommend that you use mouseenter and mouseleave instead.
    second: if you have a symbol that has let's say one animation you can do
    on mouse enter
    sym.getSymbol('symbolname').play();
    on mouseleave:
    sym.getSymbol('symbolname').playReverse();
    you may have to add
    sym.getComposition().getStage().getSymbol('symbolname').play();
    sym.getComposition().getStage().getSymbol('symbolname').playReverse();
    or you can put the event in stage/compositionreday
    sym.getSymbol('symbolname').mouseenter(function(){
    sym.getSymbol('symbolname').play();
    sym.getSymbol('symbolname').mouseleave(function(){
    sym.getSymbol('symbolname').play();

  • Quicktime having trouble playing animated movies

    I have a few movies I downloaded from DC++ that I want to play, but quicktime says it's unable to play them because it's missing software. I have the newest update of QT, and the movies I have trouble playing are only animated ones, such as corpse bride, team america, and final fantasy. Whats up?

    If QuickTime can open the files then go to the Window menu and select Show Movie Info to see the Format: for information on what animation codec may have been used, then try to find a suitable QuickTime component for playback... the link below may help with that.
    http://discussions.apple.com/thread.jspa?messageID=1558248

  • Play animation on main timeline from within a mc

    this is probably the most basic question of the day, but how
    do you get the main timeline to play from within a mc?
    say I have a mc called jolly_mc and within it is an action on
    it's timeline at keyframe 10. That action needs to jump to a
    certain frame on the main timeline and play.
    I've tried
    _level0.gotoAndPlay(492);
    _root.gotoAndPlay(492);
    _level0.gotoAndPlay("animation");
    _root.gotoAndPlay("animation");
    and non of these work, can anyone clear the haze in my day :)
    thanks in advance.

    _root.mainText = "Obtain 0.2 grams of Ascorbic Acid using the
    Spattula.";
    This line is fine. It's fine to have full-stops inside a
    string. It doesn't effect the code.
    this._root.bkg.gotoAndStop(3);
    Your pathing is a little strange in this line. As you can't
    go any further up the hierarchical tree than _root, if you're
    referencing objects via the root, it should be the first object in
    the target. So if you want to refer to your target using an
    absolute reference(ie by using root) then your line should read:
    _root.bkg.gotoAndStop(3);
    alternatively, since your AS is in a movieclip inside bkg,
    you can refer to your target using a relative reference like so:
    this._parent.gotoAndStop(3);
    this._level0.bkg.power.powerOne.gotoAndStop(2);
    similar story here. _level0 is the highest up you can go, so
    putting this before it is a little strange. Fixing this using
    absolute referencing:
    _level0.bkg.power.powerOne.gotoAndStop(2);
    or:
    _root.bkg.power.powerOne.gotoAndStop(2);
    or relative referencing(assuming the movieclip where the AS
    is is not power):
    this._parent.power.powerOne.gotoAndStop(2);
    if it is power then you could have simply written:
    powerOne.gotoAndStop(2);
    yes, the syntax you suggested for trace is correct.
    but anyway, i don't think that any of this advice is helping
    you with your problem. sorry i can't see the solution with the
    information you've provided. maybe upload?
    how'd you go with sourcing a flash book?

  • Play animation (movie clip) randomly as3

    Hello,
    Could anyone out there tell me what as3 code i should be using to make this happen.
    I want the animation (shooting star) to play at random times.
    Many thanks indeed.
    Damien

    on the last frame of your movieclip attach:
    stop();
    this.dispatchEvent(new Event("finished"));
    right click your movieclip in the library, click linkage, tick export for actionscript and assign a class (eg, Starmove).
    you can then use:
    var minTime:uint = 1000;
    var maxTime:uint = 3000;
    var timer:Timer=new Timer(timeF(),0);
    timer.addEventListener(TimerEvent.TIMER,starF);
    timer.start();
    function starF(e:TimerEvent){
    var star:Starmove=new Starmove();
    addChild(star);
    star.x = Math.floor(Math.random()(stage.stageWidth-star.width));  // these two will probably need adjustment
    star.y = Math.floor(Math.random()(stage.stageHeight-star.height)); // ditto
    star.addEventListener("finished",removeStarF);
    timer.delay = timeF();
    function removeStarF(e:Event){
    removeChild(e.currentTarget);
    e.currentTarget.removeEventListener("finished",removeStarF);
    e.currentTarget=null;
    function timeF():uint{
    return minTime+Math.floor(Math.random()*(maxTime-minTime));

  • Play animation in reverse

    Hey. Im a total noob at actionscript and flash so please explain to me like I´m a seven year old!
    I made a flash banner that includes a videofile and some vector animations. I would like this banner to play from fram 1 to the last fram and then reverse play back to frame 1 ad infinitum (the whole movie should do this that is). I cant just reverse the frames though, because of the videofile (at least I think so?) - so Im guessing I must write some kind of script that tells the movie how to play. Any ideas on how to accomplish this?
    Thanks

    first frame:
    import flash.events.Event;
    var boolVal=true;
    addEventListener(Event.ENTER_FRAME,fEnter);
    function fEnter(evt:Event)
    if(boolVal)
        nextFrame();
    else
      prevFrame();
    and to the last frame:
    var boolVal=false;

  • How to Play animation on Mouseover and Reverse on Mouseout?

    0down votefavorite
    I am trying to create a simple animated navigation bar. I want to mouseover an image and have an animation play, then when you mouseout the animation will play in reverse.
    I can get the animation to play on mouseover, but as soon as I put in the mouseout code it doesn't work. I'm completely new to Edge, so if someone can give me a simple explanation on how to play/reverse an animation on mouseover/out, I would really appreciate it.
    Right now I have an image, converted to a symbol, with another image (nav_on_1) nested inside. The image nested inside is animated with the label "nav_on_1_play".
    My code for mouseover is below:
    sym.$("nav_on_1").show();
    sym.play("nav_on_1_play");

    first I recommend that you use mouseenter and mouseleave instead.
    second: if you have a symbol that has let's say one animation you can do
    on mouse enter
    sym.getSymbol('symbolname').play();
    on mouseleave:
    sym.getSymbol('symbolname').playReverse();
    you may have to add
    sym.getComposition().getStage().getSymbol('symbolname').play();
    sym.getComposition().getStage().getSymbol('symbolname').playReverse();
    or you can put the event in stage/compositionreday
    sym.getSymbol('symbolname').mouseenter(function(){
    sym.getSymbol('symbolname').play();
    sym.getSymbol('symbolname').mouseleave(function(){
    sym.getSymbol('symbolname').play();

  • Please help... On click event play animation, only once animation has ended, launch lightbox

    Hey all,
    I could really use some advise, I have been searching for a good few hours and have come up with nothing.
    I was hoping to play a small animation and launch the edge commons spotlight as soon as the animation ends.
    My code:
    // insert code for mouse click here
    sym.getSymbol("no17").play();
          // Open spotlight overlay
    // Set up configuration
    var config = {
        width: 1400,
        height: 900,
        type: "animate",
        source: "http://new.oliverrice.co.uk/folio.html"
    // Open the overlay
    EC.Spotlight.open( config );
    The code launches the spotlight as the animation begins. I would like the 2 second animation to play out first before launching the spotlight.
    Im sure the answer is really simple, though im new to JavaScript and am struggling to work out how to achieve this.
    Are there any clever people that maybe able to help me?

    Hi, thanks for the reply, I had a think about it today and placed the spotlight code:
    // Open spotlight overlay
    // Set up configuration
    var config = {
        width: 1400,
        height: 900,
        type: "animate",
        source: "http://new.oliverrice.co.uk/folio.html"
    // Open the overlay
    EC.Spotlight.open( config );
    In a trigger at the end of my animation which has done the trick!
    so:
    1-  I click on animation
    2- it plays
    3- then launches spotlight lightbox

Maybe you are looking for

  • Does anyone know how to limit the number of emails in the mail app? I'm using iPod touch 5.

    I remember I did this before when I had ios 6 but I can't find that option anymore in ios 7.

  • ORA-22288: file or LOB operation FILEOPEN failed Permission denied

    I have installed Oracle XE (Universal) on Fedora Core 8 I am trying to update Apex to 3.1.1. I have downloaded and extracted the zip file using unizp apex_3.1.1.zip I ran @apexins SYSAUX SYSAUX TEMP /i/ and @apxchpwd Both were successful Now when I a

  • Gallery shuts down

    When opening gallery on IPAD2 the pictures show up but when I double tap to open one up, the whole program closes and goes back tothe home screen. Doesn't happen on line on my imac.  Any help  appreciated.

  • Usage of CompoundEdit

    I have written a text editor which supports the undo facility. The text editor also supports the "Replace" option. Whenever a word is replaced with another, the document predictably fires two UndoableEdit events, one for deleting the old word from th

  • Pop-up screen location

    Hi all, i am raising the pop-up screen for MIGO process.currently the pop-up screen is located in coordinates that are lower than the screen can show.i want display the pop-up screens at the top left corner of the screen. How to do this?can anyone he