Control the timeline of a symbol

Here's what I would do:

Click play "circle."

Then again the user clicks:

in, click playReverse 'ring '.

I use the symbol as the botton to trigger it is animation. So, how do we use the same symbol to trigger the animation in reverse.

Thank you!

Hey 19, you can do this by setting a variable in the Stage.compositionReadyEvent:

SYM.direction = 'forward ';

Then the button click, check this variable:

If (sym.getComposition () .getStage () == 'forward') {}

play forward

SYM. Play();

switch to the next click var

sym.getComposition () .getStage () = 'reverse ';

} else {}

play reverse

sym.playReverse ();

switch to the next click var

sym.getComposition () .getStage () = "forward";

}

Tags: Edge Animate

Similar Questions

  • How to control the timeline in multiple compositions.

    I want to control the timeline in a different composition.

    There are two compositions.

    There is button in Comp1 and there are 3 seconds animation in Comp2. (Not AutoPlay)

    If I click on the ordi1 button, play timeline between 1 second in Comp2

    This type of workflow will work if you have these two composition inserted in a simple html page.

    And you can add the code below in the click handler during the creation of composition 1:

    stg2 var = Edge.getComposition("EDGE-ID_OF_COMPSITION_2").getStage ();

    Stg2.play ("label_in_composition2");

    HTH,

    Vivekuma

  • Controlling the timeline with Touch and ScrollTop: the combination of the two?

    Hello!

    We try to combine the two scrolling on the edge features:

    (1) scrub the timeline with scrolling (to create Parallax), and

    (2) scroll to the bottom of the page with buttons, using scrollTop

    For cleaning of the timeline, we used excellent control calendar of Tim Jaramillo with key code (found here: http://forums.adobe.com/message/5058756#5058756)

    To scroll to the bottom of the page with buttons, we found excellent Heathrowe scrollTop code (here: http://forums.adobe.com/message/4733382#4733382).

    We do not seem to combine these two methods in a way that works. In my example below, the control, the Timeline with Touch code works fine, but the scrollTop button code does not work.

    Does anyone know how to make a scrub of the timeline, combined with navigation buttons?

    Example: http://www.bartmclaughlin.com/scrollTop/stage-scroll_with_scrollTop_v1.html

    Edge project: https://www.yousendit.com/download/elNLcXl0NEhJMHVFTmNUQw

    Any help much appreciated!

    Bart mclaughlin

    I think in the btn1 and btn2 click Manager you have to scroll the scene rather than the HTML and body

    as

    SYM. $('Stage') .animate ({scrollTop: element.offset () .top}, '800'); in btn1

    and

    SYM. $('Stage') .animate ({scrollTop: element.offset () .top}, '800'); in btn2

    Hope this is useful

  • Controlling the timeline with Touch

    Hello! I use edge animated in adobe dps. I tried to control the timeline with the key (or scrolling) in the forum. Even some alternatives were considered, I have not found the perfect one. It can open so many possibilities as slideshows, Parallax, diagonal textscroll etc.

    I would like to build an extensive animation and control the scenario of scrub/shot with my finger.

    I found something that works, but it seems that directions works in adobe edge host plus. Anyone know how to fix this? Demofiles would be great.

    Here is the solution I found, which does not work on the last leg.

    http://codehandyman.blogspot.de/2011/12/Adobe-edge-animation-controlled-by.html

    And here is the result. Work on ipads in indesign dps:

    http://www.northeastmagic.com/adobeEdge/scrollbar_scrubber/test7.html

    Thank you

    Klaus

    Hey Klaus.

    Oddly, the example of codehandyman you posted don't use no events button at all, but rather slyly relies on the scroll event to control the timeline.

    I've referenced the link codehandyman, and the only change I had to do was to replace each occurrence of "this.element" with "e.currentTarget", in the Stage.scroll event. Thus, on Stage.scroll, this is the code I have (I tweaked a bit to make it more readable):

    var MonCalc = e.currentTarget.scrollLeft/(e.currentTarget.scrollWidth-e.currentTarget.clientWidth);

    var pos = Math.round (calc * sym.getDuration ());

    SYM. Stop (POS);

    The above code essentially the numbers on the scroll position, then figures this ratio depending on the length of the root timeline. This tells us when to jump to the timeline.

    You are referencing your blog link - to stop the scrolling, I had to open "xxx_edge.js" and delete this line:

    ['style', 'overflow', 'auto']

    and replace it with this:

    ['style', 'overflow-y', 'hidden'],

    ['style', 'overflow-x', 'auto']

    Example:

    www.timjaramillo.com/code/Edge/scroll_timeline

    Source:

    www.timjaramillo.com/code/Edge/_source/scroll_timeline.zip

  • How can I control the external javascript dashboard symbols?

    I came across a dozen of similar threads, but most have introduced solutions that worked in previous versions of the edge and not more working time.

    I'm trying to use Edge to create animations that can be then incorporated into cutting-edge projects either. I would then be able to control the Edge chronology or symbols of edge of items outside of the edge, as another link or button in the page.

    I can't understand how to correctly reference the stage edge or symbols.

    I have met several solutions proposed for referencing edge scene, such as:

    var comp = AdobeEdge.getComposition ("EDGE-966604542");

    var point = comp.getStage ();

    model var = $. Edge.getComposition ("EDGE-966604542");

    var point = comp.getStage ();

    var comp = Edge.getComposition ("EDGE-966604542");

    var point = comp.getStage ();

    and they DO NOTHING or raise errors related to AdobeEdge or edge or model being undefined.

    Does anyone have a solution that really works with the current version of edge animate?

    Thank you

    Scott

    Hi, Scott.

    It seems that you do not use the bootstrapCallback function, which is what you will need to get this working.  This thread from a few months (after 1.0 released) is still accurate.  He'll hope that you said in the right direction.

    http://forums.Adobe.com/message/4883264

    Hope that helps!

    -Elaine

  • Replace the code in the timeline of a symbol

    My question is:

    I built a symbol and name it videoholder. Inside the symbol, I draw a Rectangel and

    name: Rectangel.

    Iput the following code on the first image/MS:

    var video_path = sym.$("Rectangel");

    video_path.html ("< video width ="750"height ="421 "src ="example.mp4"type =" video/mp4 "controls =" orders"< / video > ');

    So I remove the symbol of the scene.

    Now, I have placed different images as symbols on the stage.

    When I click on these images, I get the videoholder_image on the stage via the library createChildSymbol.

    What I want is to put a code on each image_symbol which allows me to change the code

    inside the Rectangel videoholder:

    var video_path = sym.$("Rectangel");

    video_path.html (' < video width = "750" height = "421" src ="example_new.mp4" type = "video/mp4" controls = "orders" < / video > ');

    I appreciate all the help

    (1) your project is difficult to decipher with named Rectangle or TextCopy items. Give descriptive names, or you will get lost when you open your project in a few months

    It is more readable when the instance names for the name of the symbol. For example videoHolder_1 videoHolder instance (and if there is a second instance, you name videoHolder_2).

    (2) do not use a sym.stop () of trigger to Mrs. 0 Instead uncheck autoplay of the symbol property (can be the symbol of the scene).

    (3) in your symbol videoholder, you used a trigger at 0 m A good place for initialization is the event creationComplete of the symbol Manager.

    But for now this code must be placed in the comments, because it will be replaced by executing the chooseVideo function.

    (4) why you use Tweenmax? The first interest dashboard animate should easily tween in the timeline panel.

    (5) work-all > work01: looks like useless, a second work-all.

    (6) the first error. In your videoholder > 0 ms shutter: sym.$("Rectangel")

    But in the function chooseVideo: sym.$("Holder"); should be "Rectangel.

    (7) second mistake. you define the overall function, but nowhere it is called!

    *

    Yes, tabula rasa. A symbol of work nests two symbols w_01 and w_02, the keys of access to each of the two videos.

    Contains a symbol videoHolder

    -a title element, text that will receive the title;

    -a videoFrame, the rectangle element that will contain the tag

    -a symbol of back_btn.

    The scene has its property autoplay set to false. By clicking on one of the buttons plays on the video of the label where videoHolder_1 slides up (and works has its display property set to none). A trigger of sym.stop () in the final position.

    document.compositionready event handler:

    sym.chooseVideo = function (numChoice)

    {

    radical var = "";

    Var title = "";

    Switch (numChoice)

    {

    case 1:

    radical = "video1";

    title = "this is video 1;

    break;

    case 2:

    radical = "video2";

    title = "and this one is 2 video."

    break;

    }

    build the

    var video_tag = '

    video_tag += '.mp4" poster="video/';

    video_tag += radical;

    video_tag += '.png" type="video/mp4" controls="controls">';

    var video_H = sym.getSymbol ("videoHolder_1");

    video_H.$('videoFrame').html (video_tag);

    video_H.$('headline').html (title);

    SYM. Play ('video');

    }

    works > w_01.click event handler:

    sym.getComposition () .getStage () .chooseVideo (1);

    works > w_02.click event handler:

    sym.getComposition () .getStage () .chooseVideo (2);

    Download an example here: https://app.box.com/s/ykrvwvy3fclrdbwbwxff

    Gil

  • Control the timeline using measures of scrolling/hit ipad

    I'm looking to create a page in the digital brochure to a customer who plays a down through an animation controlled by the user of high vertical scrolling the page.

    A similar idea to present here, but on an iPad instead of a Web site: http://slaveryfootprint.org/#sthash.yoB42KR6.9AvG3q3S.DPBS

    I don't need to control anything in the actual animation, only the movement of the washing of the timeline. The finished product should be suitable for use with DPS.

    I saw a couple of similar questions on the forum, but they all appeared to be demanding a lot more interactivity. Does anyone know a simple way to address the issue?

    The example of the communes of edge is very nice!

    Here's another example which directly controls a symbol timeline, rather than take advantage of the scroll event. It works on contact, and on the desktop with drag. The code is a bit long, so I'm not going to stick here.

    Example:

    http://www.timjaramillo.com/code/edge/parallax_touch/

    Source:

    www.timjaramillo.com/code/Edge/_source/parallax_touch.zip

  • Scrub through the timeline of a symbol with an invisible cursor

    OK, I searched on through messages and messages on and off the EA forums and nothing I found actually seems to do what I need.

    What I have is a symbol ("PAN"), which contains 3 layers of animation to create a posted parallax effect is far right to 0ms is extreme left position to 1000 ms. I set compositionReady to keep up to 500 ms (the middle point of the Pan). To do this, not AutoPlay.

    I want to do this is to drag this pan left or right and have the symbol animate in a good way to show that Parallax pan.

    I think that the best way to do it is to have an element point invisible size, that can be moved left and right - limits - and who controls the chronology of the symbol of the PAN.

    I know how to do the daggable elements and limit their movements using JqueryUI. I also know how to call the position of being a movement. What I do not know how to convert this position both a chronology. Is it possible to do this using Jquery slider?

    I hope that makes sense and someone can help.

    Thank you

    Justin

    OK, I've pretty much it works thanks to a truly great piece of code I found here.

    Create Click and Touch movable scrubbers with edge CC animated | sarahjustine.com

    I'm still working on a few adjustments, but he did what I wanted

  • controlling the timeline with the scrolling of the mouse

    Hi all

    I need control the animation of the timeline with the mouse wheel.

    How is it possible

    I tried this code but I couldn't just make it work with moving the mouse, unfortunately scrolling does not work-

    composition of ready:

    this.onMove = function (posX, posY) {}

    timelinecontrol = number (posX) * 30;

    Console.log (timelinecontrol);

    SYM. Stop (timelinecontrol);

    }

    mousemove:

    this.onMove (e.pageX, e.pageY);

    I also tried this one - http://forums.adobe.com/thread/1149792

    but did not work either

    TNX a lot!

    found the answer to this topic-

    http://forums.Adobe.com/message/5628190#5628190

    It's the DS posted by Vinay-

    Here's an example - http://www.dealsdrizzle.com/research/scroll/scroll2.html

    Source - http://www.dealsdrizzle.com/research/scroll/scroll2.zip

  • An animation playing on the timeline in a symbol of another symbol

    Hi all

    First post, good to be here

    I have the following

    STADIUM

    SYMBOL_1

    DIV_PLAY

    MOUSEUP (COMMAND)

    DIV_STOP

    MOUSEUP (COMMAND)

    SYMBOL_2

    DIV_ANIMATION_1

    ANIMATION_1_START (MOUNTING POSITION)

    DIV_ANIMATION_2

    ANIMATION_2_START (MOUNTING POSITION)

    I want to do the following:

    'SYMBOL_2' - 'DIV_ANIMATION_1' - 'ANIMATION_1_START' to 'Symbole1' - 'DIV_PLAY' inside play with the mouseup command

    I tried to do this with the help of this post http://forums.adobe.com/thread/964882 but I can't break!

    I know that I can () .getStage () sym.getComposition.getSymbol("__div_animation_1__").play();  of 'div_play' but how access to a point on the timeline and play from there...

    Thank you very much!!

    Answered my own question,

    sym.getComposition () .getStage ().getSymbol("___div_animation_1___").play ('animation1_start');

  • With the help of an audio clip to control the timeline

    I have a composition that has two pieces of VO. Each has an associated text block.

    I want to play the first VO when it is clicked on the first text. Then, when the VO ends, I want to fade the first block of text to falter, the second and play the second VO when we.

    I have the updated scenario in place with labels to play through transitions at the end of the first VO. No problem there.

    I have the audio that plays when I click on the blocks of text. Everything is good.

    However, I don't know how to make the calendar before the audio clip at the end play.

    This is the code for the first block of text:

    SYM.$("RUP01_Nar_1") [0]. Play();

    SYM. Play ('Nar2');

    It plays audio but also plays the timeline instantly (so from one to the other, the blocks of text fade as soon as starts the audio).

    I tell myself that I need some kinds of code between who said, essentially, ' wait than the audio finishes then [cheek chronology]. " But like many I tried I can't find anything to do.

    Thanks for your help...

    Thanks for that,

    I gave it a try, but unfortunately it did not work. The audio could not play altogether.

    However, I managed to solve the problem by using the setTimeout function and enter the audio duration as the time-out;

    SYM.$("RUP01_Nar_1") [0]. Play();

    {setTimeout (function ()}

    SYM. (Play ('Nar2')}, 10000);

    This does not mean having to customize the time-out for each clip, but it will serve well for the moment.

  • Help to use the keys to control the timeline

    I just need to use the keys to jump all over the timeline, IE. Press 'a' and the film jumps to the 355 framework. Preferably a simple way to do this with AS2. Help, please... I'll help you with Photoshop one day.

    Here is a code to work with it to start...

    var keyListener:Object = new Object();

    Key.addListener (keyListener);

    keyListener.onKeyDown = function() {}

    trace (Key.GetCode ()); use it as a tool to determine the codes associated with the keys you press

    If (Key.GetCode () == 65) gotoAndStop (355);   65 is the code of the button "a".
    }

  • controlling the timeline with a SWF loded

    Hi, I have been here before and reviewed the response that helped me last time but it doesn't seem to work for this example.

    I have a loaded swf file, which is a short animated introduction I use the addChild method.

    I would like simply the timeline to a label "menu" after that that she played. It's the CRC on my main timeline:

    Stop();
    import flash.display. *;
    import flash.events.Event;
    import flash.media.SoundMixer;

    var Xpos:Number = 0;

    var Ypos:Number = 0;

    var swf:MovieClip;

    var loaderA:Loader = new Loader();
    var reqA:URLRequest = new URLRequest ("Nu_flute_intro.swf");


    loaderA.load (reqA);
    loaderA.x =-100;
    loaderA.y =-50;

    holder.addChild (loaderA);

    loaderA.contentLoaderInfo.addEventListener (Event.COMPLETE, loadHandler);

    function loadHandler(event:Event) {}


    holder.addChild (loaderA);

    trace (loaderA);

    }


    function eventHandler(event:Event):void {}
    holder.removeChild (loaderA);
    holder.gotoAndPlay ("menu");
    }

    This part is commented out for now
    holder.addEventListener (MouseEvent.CLICK, goMenu);
    //
    function goMenu(e:MouseEvent):void {}
    SoundMixer.stopAll ();
    holder.removeChild (loaderA);
    gotoAndStop ("menu");
    //}

    At the end of the timeline of the swf, I have this code:

    Stop();

    dispatchEvent (new Event ("eventTriggered"));

    part of the following is a recent raise an error: TypeError: Error #1034: Type constraint failed: cannot convert flash.display::Loader@3b9d53c9 to flash.display.MovieClip.
    flute / frame450)
    MovieClip (parent.parent) .nextFrame ();

    Thanks for the help

    Attempt to commit it at whatever level of memory to save the future aggravation... 1009 error indicates that one of the objects targeted by your code are out of reach.  This may mean that the object...
     
    n ' is not in the display list
    n ' is not have an instance name (or the name of the instance is misspelled)
    n ' is not in the frame where this code tries to talk to her
    -is animated in place, but is not assigned the name of the instances of each keyframe for her
    -is one of the two or more consecutive keyframes of the same objects without a name assigned in the image previous (s).
     
    To help you resolve the error... If you go to your section to publish the Flash settings and select permit debugging option, your error message should have a suite of line number the number of the frame that will help you to isolate the object that is involved.

  • Slider bar does not control the timeline?

    I'm back with yet another problem on the same project.

    This time, I'm trying to make a schedule, which should control what image of a clip on the root timeline. If relevant where the user swipes the slider bar, the appropriate information will be displayed inside that movie clip.

    Now I have really NO idea where to start the coding that will attempt to convert the location of the cursor on the scroll bar, which framework is displayed on this movieclip.

    But here's what I put inside the clip, it's the chronology:

    If (_parent.mc_timeline.ratio > = 0) {}
    gotoAndPlay ("One");
    }
    ElseIf (_parent.mc_timeline.ratio > = 33) {}
    gotoAndPlay ("Two");
    }
    ElseIf (_parent.mc_timeline.ratio > = 66) {}
    gotoAndPlay ("Three");
    }
    else {}
    gotoAndPlay ("One");
    }

    Basically what I try to inspire them to do, is go to a certain image tag (that's to say, one, two, or three) when it is at a certain time on the scroll bar.

    I've got 2 boxes of small screen in it as well, demonstrating that the scroll bar exports some sort of information. I just need to then use it to control which image appears in my video content.

    I have attached the file, please take a look. I'm sure it would be much easier to solve if you take a look.

    The questions are more than welcome.

    the following function will add parameter properties to a movieclip in order to allow a linear interpolation between two values:

    function f (mc:MovieClip, x 1: number, y1:Number, x 2: Number, y2:Number) {}

    MC.m =(Y1-Y2) /(x1-x2);

    MC.b = Y1 - mc.m * x 1;

    }

    to use f, just spent two known pairs x, y.

    for example, if your cursor (say sliderMC)

    far left is slidertrackMC._x and its

    position to the right is slidertrackMC._x + slidertrackMC._width - sliderMC._width

    and you want more position to the left of the slider to match the frame of a movieclip (say mc) 1 and its position to the right corresponds to the last image of mc (mc._totalframes), you would use:

    f (sliderMC, slidertrackMC._x, 1, slidertrackMC._x + slidertrackMC._width - sliderMC._width, mc._to talframes);

    you would then code your slider as follows:

    {sliderMC.onPress = function ()}

    this.startDrag (false, slidertrackMC._x, this ._y, slidertrackMC._x + slidertrackMC._width - MC._width slider, this ._y);

    clearInterval (current);

    Current = setInterval (dragF, 50;)

    }

    {sliderMC.onRelease = sliderMC.onReleaseOutside = function ()}

    this.stopDrag ();

    clearInterval (current);

    }

    function dragF() {}

    mc.gotoAndStop (Math.round(sliderMC.m*sliderMC._x+sliderMC.b));

    }

  • Need help to control the timeline of film with AS 2.0

    I'm trying to control a clip through the script of action thanks to a button.
    My Flash file has a master clip 'masterMC' that contains all of
    for the flash movie clips.  It's essentially a calendar that
    When the user clicks on a date a small box opens with the event (s)
    scheduled for this day here.

    Inside the "masterMC", there is a 'calendar' clip and a clip
    'events' both having similar names of instance.  In the movie 'calendar '.
    Clip are different month calendar graphics (oddly) where the
    date a grave event is a button symbol.  I have a layer the
    "masterMC" which contains the script for the action buttons.  I'm working on
    When I pressed a button triggers a specific playing image in the
    clip of 'events' which shows the box with events.  One of my
    the button code looks like:

    Oct18_btn. onRelease = function () {}
    eventsMC. gotoAndPlay ("oct18");
    }

    I checked all instance names, frame names, letter etc.... And
    can not know why when I test the movie, nothing happens when I click on
    the button.  Is there a problem in the code, or it could be something
    on the other?  Thank you.

    If the 'eventsMC' and 'calMC' are in the 'masterMC' and the button is located in "octMC" which is inside "calMC":

    This should work, I've tested it:

    action on the button inside the "octMC":

    {We (Release)}

    _root.masterMC.eventsMC.gotoAndPlay ("oct11");

    }

    There may be something wrong somwhere else?

Maybe you are looking for

  • When the Xperia Sony Tablet S become an update of Jelly Bean?

    When the Xperia Sony Tablet S become an update of Jelly Bean?

  • Video of Precision 390

    I have a dell 390 with Core2quad q6600, 2 GB of ram, 500 gb hdd and 375w psu with 1 6-pin. I wanted to ask if any of these 5770, 550ti, 4870 will work with this food or that I need to change? If yes then a standard atx PSU agree?

  • Sorting images in order of my own choice.

    How can I sort my photos into an order of my own choice to see in "slide show? Is there a way to drag a photo library and dropped in the order I want in another file or folder which can then be transformed into a slide show in the same order that I'v

  • Paintshop Pro x 4,

    Loaded Paintshop Pro x 4 log on to the computer, but when you click on it to open it it starts up but then dose not respond have to do a Ctrl-Alt-Del to get out, help any body.

  • PIX 501 NAT / PAT problem

    Have a 501 for a client configuration. All works well for a few minutes and they the PC can't get out the firewall. Looks like the NAT works very well but the PAT do not hit. This part of the config, I received an example of cisco. Can someone help m