Symbol with 3 animations controlled by buttons elements within

alright this thing is bugging the crap out of me.
I have a symbol (top_nav) with elements inside that will be buttons on click (quad1, quad2, juggle_logo_nav)
each button moves to a point when clicked and then I need it to move back on a seperate click.
I have my animations on the same timeline which I thought would make it easier but I guess not.
I will also be doing this with 2 other symbols (bottom_nav, and slide_right_left) so I need to figure this out. I have spent way to much time creating and trashing this thing. Help
Here is the flle. https://www.box.com/shared/static/i3lx4xwlaad35ery0ki1.zip

Hello John,
Okay, the two ways that I'd approach something like this would be either creating a state machine where you set a variable that you check later to see if the button's been clicked, and then use a conditional to perform the correct action based upon the value of the variable and then give it a new state value (not too complex an approach, but lots of code), or simpler and probably just as effective, use getPosition() to get the current time of the playhead, and then use a conditional to perform the correct action based upon the time in milliseconds derived from getPostion(). Here's some code that you could put on the click event of your button (everything with a double forward slash is a comment, but the lines starting with sym can be uncommented (remove the double slash) and used if necessary:
var getPosition = sym.getPosition();
if (getPosition < 1) {
          sym.play();
         // you can also use getSymbol to play other symbols, like the following:
          // sym.getParentSymbol().getSymbol("mySymbol").play();
} else {
          // assuming you want to play it in reverse back to the last label/trigger
          sym.playReverse();
          // or you could just jump there, like so:
          // sym.stop(0);
But - looking at how you've set up your animation, it looks like you've already done the reverse animation and you're using triggers to control it - which makes getPosition() a bit of overkill. That's fine, and makes it even easier. So instead of using sym.play(0) as you did in juggle_logo_nav, you could just use sym.play() to advance to the next trigger with the stop action and play the reverse animation. To play symbols outside of the symbol containing the button, reference the sym.getParentSymbol().getSymbol() code above and add it to your code, using your symbol name of course. That would look something like this:
sym.play();
sym.getParentSymbol().getSymbol("slide_right_left").play();
If you want to do any interactivity in Animate, I highly recommend you refer to our Javascript API, which explains all the available commands you can use, with examples of how to use them:
http://www.adobe.com/devnet-docs/edgeanimate/api/current/index.html
hth,
Joe

Similar Messages

  • I need to control flash button states within html

    I am utilizing a flash header for navigation on a site built
    in html. I need to control the button states in my flash header
    from within my html page to facilitate breadcrumbs. The header
    works in a similar manner to an expandable banner. The sub menu
    expands over the html page. However, I cannot figure out how to get
    the primary navigation buttons in the flash header to stay in the
    "hit state" so that the user knows which section of the site they
    are in.
    Can anyone point me in the right direction?
    Thanks

    You will want to use movieclips as buttons so that you can
    control what state they are in by code.
    As far as using the html to set the state, you could devise a
    scheme using FlashVars, which get designated in the embedding code
    of the html page.
    Assuming you are not using frames, and the flash is reloaded
    for each page that you navigate to, then you will have adjust the
    FlashVars code to reflect the relevant page's button.

  • Remote Control Menu Button

    Starting from the top, I have a 1st play title menu (A) with 4 buttons that are targeted to 4 other menus (B) – each of which, have multiple motion buttons leading to individual clips (C).
    I would like to be able to click on the Remote Control Menu button anywhere within the DVD and have it return to the 1st play title menu (A). In the Disc Inspector, I have set the “Remote Control” pull down menu to the 1st play title menu (A).
    I can achieve what I want by clicking on the Remote Control “Title” button but not the “Menu” button. What am I missing?
    Thanks in advance for your help.

    Sorry - I made an assumption that you were not able to go fro a track to the title menu... what you are asking is to go from a menu to the title menu by using the ;menu' key.
    Sadly, it won't be possible - the Menu key is designed to move only between tracks and menus. If you are in a track it will take you to a menu, once there, pressing it again willr eturn you to the track.
    You need to use the 'return' key to traverse through the menus, but it isn't a robust implementation in DVDSP.
    Therefore, the only way to accomplish what you want is to use the Title key on the remote control when in a menu... unless you add a button to each sub menu that jumps to the title menu.

  • Tree node images changes.. with start and stop button

    I create the animator extends JPanel, which start and stop can be controlled with Swing Timer. It works fine with animation control over the panel.
    Now, I have a tree with each image at each node.
    when the start button clicks, one node image should be animated.
    It is implementable. If animation.gif would have worked, I did't have to do this, but animation gif has fatal error with time interval.
    any words would be appreciated. Thanks =

    Damn !
    With version 1.2.1 I think you'll have to create a new class that extends PositionPathInterpolator and add a pause() anr resume() method to it.
    i suggest something like:
    public class MyPositionPathInterpolator() extends PositionPathInterpolator {
    // add some constructors if necessary
    private float pauseAlphaValue = 0;
    // override computeTransform method
    public void computeTransform(float alphaValue, Transform3D transform) {
       float newAlphaValue = alphaValue + pauseAlphaValue; // calculate new alpha value
       if(newAlphaValue > 1)  // modify it if it is out of bounds
          newAlphaValue -= 1;
       else if (newAlphaValue < 0)
          newAlphaValue += 1;
       super.computeTransform(newAlphaValue, transform); // computeTransform with the right alpha value
    public void pause() {
       this.setEnable(false); // it won't compute transform anymore
       pauseAlphaValue = this.getAlpha().value(); // retrieve current alphavalue
    public void resume() {
       pauseAlphaValue -= this.getAlpha().value();
       this.setEnable(true) // restart computing transform
    }Now you invoke pause and resume methods on your myPositionPathInterpolator object when user clicks on the buttons.
    Of course it is a trick and it will work only with increasing alpha.
    c ya
    GnG

  • Animation couldnt control with Play pause toggle button..

    I have multiple movie clip with bg sound.I have used the code AS3 for toggling the animation ( Play & Pause ).Automatically the animation starts and button also togggled on click but couldnt control the animation .
    I need some solutions like when the intial stage the animation wont start etither the button click to play.After that the flow as it is in action ( ON Click ). Kindly anyone guide me to solve it. i'm very new to flash. this is my first project and ihave to finish it soon..
    btns.visible = false;
    btns.addEventListener(MouseEvent.CLICK,onEl);
    dfr.addEventListener(MouseEvent.MOUSE_OVER,onEls);
    dfr.addEventListener(MouseEvent.MOUSE_OUT,onEld);
    btns.addEventListener(MouseEvent.MOUSE_OVER,onEls);
    btns.addEventListener(MouseEvent.MOUSE_OUT,onEld);
    var _vrSts:int = 0;
    function onEl(eve:Event):void    {
        if(_vrSts)    {
            trace('status:'+_vrSts);
            _vrSts = 0;
            btns.gotoAndPlay(1);
        }else    {
            trace('status:'+_vrSts);
            _vrSts = 1;
            btns.gotoAndStop(2);
    function onEls(eve:Event):void    {
        btns.visible = true;
    function onEld(eve:Event):void    {
        btns.visible = false;

    Hi Ned!
    i done it. here is the solution.One issuse is" End of the animation it goes to 1st frame with pause button, but intially there has play button."
    stop();
    btns.visible = true;
    btns.addEventListener(MouseEvent.CLICK,onEl);
    dfr.addEventListener(MouseEvent.MOUSE_OVER,onEls);
    dfr.addEventListener(MouseEvent.MOUSE_OUT,onEld);
    btns.addEventListener(MouseEvent.MOUSE_OVER,onEls);
    btns.addEventListener(MouseEvent.MOUSE_OUT,onEld);
    var _vrSts:int = 0;
    function onEl(eve:Event):void    {
        if(_vrSts)    {
            //trace('status:'+_vrSts);  
            _vrSts = 0;
            //btns.label = "Play";
            btns.gotoAndPlay(1);
            btns.visible = false;
            //if(currentFrame == 445)
                //gotoAndPlay(1);
                if(currentFrame == 445) {
                gotoAndPlay(1);    
                btns.gotoAndStop(1);    
            else
               stop();
            //btns.gotoAndStop(1);
        }else    {
            //trace('status:'+_vrSts);
            //stop();
            _vrSts = 1;
            btns.gotoAndStop(2);
            //btns.label = "Pause";
               play();
    function onEls(eve:Event):void    {
        btns.visible = true;
    function onEld(eve:Event):void    {
        if(_vrSts)
            btns.visible = false;

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

  • HT201412 did a software update and now the only thing I get is the itunes logo and arrow pointing up and a lock symbol with a line going down toward the screen button.  Any suggestions to get this to open?

    Trying to get the ipad to open after doing a software update.  I only get the itunes logo with an arrow pointing toward it and a lock symbol with a line going down towards the screen button.  Any suggestions to get this to open?

    You are in Recovery Mode. Follow the instructions below to recover your iPad.
    http://support.apple.com/kb/ht4097

  • How can i add css styling to all elements within a symbol.

    How can i add css styling to all elements within a symbol.
    For instance.
    If i have a symbol call "data" and within this i have 4 elements called 1,2,3,4 how do i add styling to all these elements without having to re-write code for each element.
    I know i can style a symbol called "data" by :
    sym.$("data").css("font-family", "baumans, sans-serif", "font-size", "15px");
    ...But this does not style the content of the elements 1,2,3 and 4
    If i were using standard CSS and HTML then all div's within a div called "data" would be styled the same.
    help "my friends of the code"

    Hi Justin,
    1) You have a syntax error here: sym.$("data").css("font-family", "baumans, sans-serif", "font-size", "15px");
    sym.$("data").css({ "font-family": "baumans, sans-serif", "font-size": "15px"} ); // correct
    sym.$("data").css( "font", "15px baumans, sans-serif" ); //correct
    2) Then, loading the jQuery file is not required. You can create a class or change tags.
    How to add a class:
    Changing tags:
    You've got 2 demo files (Edge 5.0) here: class or tag.zip - Box

  • How to delete a symbol with a click of a inside button

    Hello,
    I have this Symbol with a button inside. I want to click on this button and delete the Symbol.
    I have the code below but it doesn't work.
    sym.getComposition().getStage().getSymbol("vitrine_content").$("cachedarmes_movie").delete Symbol();
    if I try to do animate the symbol. It works :
    sym.getComposition().getStage().getSymbol("vitrine_content").$("cachedarmes_movie").animat e({'left':'200px'});
    And I don't see why..
    thanks
    s.

    Thanks. I ve tried it and it deletes the uppermost Symbol just after the Stage.
    The STAGE -> vitrine_content-> cachedarmes_movie...

  • Sort up and sort Down push buttons in module pool with table control wizard

    hi,
    i have created 2 buttons for Sort up and sort Down push buttons in module pool with table control wizard
    please any one can help me.
    regards

    Hi
    Following code is to enable and disable the tbl control using two buttons. Just alter the code and for each button write the sort code.
    REPORT  YJAN27_SCREEN                                               .
    TABLES: SFLIGHT, YFLIGHT_28.
    TYPES: BEGIN OF struct1,
          carrid like sflight-carrid,
          connid like sflight-connid,
          fldate like sflight-fldate,
           END OF struct1.
    CONTROLS TBL1 TYPE TABLEVIEW USING SCREEN 2700.
    DATA: OK_CODE LIKE SY-UCOMM,
          CARRID LIKE SFLIGHT-CARRID,                                    "cols in tbl ctrl
          CONNID LIKE SFLIGHT-CONNID,
          FLDATE LIKE SFLIGHT-FLDATE,
          itab TYPE TABLE OF STRUCT1 WITH HEADER LINE,
          cols like line of TBL1-COLS,
          FLAG TYPE I.
    FLAG = 1.
    CALL SCREEN 2700.
    *&      Module  STATUS_2700  OUTPUT
    *       text
    MODULE STATUS_2700 OUTPUT.
      SET PF-STATUS 'BACK'.
    *  SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_2700  OUTPUT
    *&      Module  USER_COMMAND_2700  INPUT
    *       text
    MODULE USER_COMMAND_2700 INPUT.
    OK_CODE = SY-UCOMM.
    CASE OK_CODE.
      WHEN 'BACK'.
        LEAVE PROGRAM.
      WHEN 'DIS'.                                                         "write code for sort up
        loop AT TBL1-COLS INTO COLS.
           COLS-SCREEN-INPUT = 0.
            MODIFY TBL1-COLS FROM COLS.
        ENDLOOP.
        FLAG = 2.
      WHEN 'ENA'.                                                       "write code for sort down
        loop AT TBL1-COLS INTO COLS.
            COLS-SCREEN-INPUT = 1.
            MODIFY TBL1-COLS FROM COLS.
        ENDLOOP.
        FLAG = 1.
    ENDCASE.
    ENDMODULE.                 " USER_COMMAND_2700  INPUT
    *&      Module  GET_DATA  OUTPUT
    *       text
    MODULE GET_DATA OUTPUT.
      select carrid connid fldate from SFLIGHT into table itab.
    ENDMODULE.                 " GET_DATA  OUTPUT
    *&      Module  POPULATE_TBL  OUTPUT
    *       text
    MODULE POPULATE_TBL OUTPUT.
        MOVE-CORRESPONDING ITAB TO SFLIGHT.
    ENDMODULE.                 " POPULATE_TBL  OUTPUT
    *&      Module  CHANGE_SCREEN  OUTPUT
    *       text
    MODULE CHANGE_SCREEN OUTPUT.    " use this module if you want to hide the other button
    CASE FLAG.
      WHEN 1.
        LOOP AT SCREEN.
          IF SCREEN-NAME = 'B_ENA'.
            SCREEN-INVISIBLE = 1.
             MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
        LOOP AT SCREEN.
          IF SCREEN-NAME = 'B_DIS'.
            SCREEN-INVISIBLE = 0.
             MODIFY SCREEN.
          ENDIF.
       ENDLOOP.
      WHEN 2.
        LOOP AT SCREEN.
          IF SCREEN-NAME = 'B_DIS'.
            SCREEN-INVISIBLE = 1.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
        LOOP AT SCREEN.
          IF SCREEN-NAME = 'B_ENA'.
            SCREEN-INVISIBLE = 0.
             MODIFY SCREEN.
          ENDIF.
       ENDLOOP.
    ENDCASE.
    ENDMODULE.                 " CHANGE_SCREEN  OUTPUT
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_2700.
    MODULE CHANGE_SCREEN.     " use this if you want to display one button at a time
    MODULE GET_DATA.
    loop at itab WITH control TBL1.
        MODULE POPULATE_TBL.       " populate tbl ctrl
    endloop.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_2700.    " do the sort operations
    loop at itab.
      endloop.
    Hope this helps
    Regards,
    Jayanthi.K

  • Access "controls" or buttons on a LabVIEW VI with DLL

    Hello Experts,
    I have a LabVIEW GUI executable file and need to access "control" or buttons on it via another programming lanuguage (Visual Basic .NET) say if the user presses a "EXIT" button on the VB.NET GUI, it goes and clicks the "EXIT" button on the LabVIEW GUI. Is this possible to do using LabVIEW built DLL's ? If not, could you please guide me to the right apprach ?
    Thank you very much for your time !

    Yes, the front panel comes up after my calling but I am not able to access any "controls" or buttons on it. However, if now (after calling) I manually click on this front panel, it works but I want my VB.NET code to be able to do that.
    Our vendor owns the source code and they only provide the executable file to be able to communicate to their mechanical system. We, as a OEM, integrate their mechanical system into our system and provide our end customers with the VB code that controls the entire system.

  • Ost 5 hours and has just a battery symbol with a little red column on the screen when I press the on/off button. I don't know why its taking so long to charge. Any suggestions?

    My iPod 5th generation died and I charged it. It has been charging for almost 5 hours and just displays a battery symbol with a column of red when the on/off button is pressed. My home button also doesn't work so I cannot try to reset it that why. Any suggestions?

    Not Charge
    - See:    
    iPod touch: Hardware troubleshooting
    iPhone and iPod touch: Charging the battery
    - Try another cable. The cable for 5G iPod (lightning connector) seems to be more prone to failure than the older cable.
    - If a 5G iPod      
    Iphone 5 lightning port charging problem - SOLUTION!
    - Try another charging source
    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    - Make an appointment at the Genius Bar of an Apple store.
      Apple Retail Store - Genius Bar

  • I'm a software tester for an in-house app at my company. version 10.0.2 is not cmopatible with some controls within our software. I need the v9.0.1 download which I know works with the controls. Where can I get it?

    I'm a software tester for an in-house app at my company. version 10.0.2 is not cmopatible with some controls within our software. I need the v9.0.1 download which I know works with the controls. Where can I get it?

    Well, if you need old versions of firefox you can find them on this site:
    - http://www.oldapps.com/firefox.php
    Best regards, G-Cloud.

  • How to play 2 different symbols with one click?

    I've read through several posts that asked similar questions, but none of them seemed to have the exact same issue, and then I just couldn't wrap my head around some of the answers. So I decided to ask my own question.
    My button is buried within 2 levels of symbols and I want to play the timeline within my current symbol as well as the timeline in the symbol one level up. This is what my hierarchy looks like - stage / fullRadial / smRadial / button
    So within the actual button code, this is what I have now -
    sym.play("Blue Spin");
    sym.getComposition().getStage().getSymbol("fullRadial").play("Purple Corner");
    So I'm trying to play a label within smRadial (the symbol my button is inside of) and I want to play a label in the main symbol as well. Right now, it's skipping my first action ("Blue Spin") and it's only playing my "Purple Corner" label.
    Is there something simple I can add to have it play both? Thanks for any help you can give.
    Randall

    Hi Randall,Seems like you have a label with a space between 2 words. This is not possible. Is purple corner a label name? If yes rename your label purpleCorner instead. Same with blue spin.
    So is blue spin your button or another symbol or what.
    If you have a symbol this way:
    Stage/symbol1/symbol1a/button
    Assuming symbol1a is an animation with a label named 'start', and the main timeline with a label named 'go', I would use in composition ready
    sym.getSymbol("symbol1").getSymbol("symbol1a").$("button").click(function(){
    sym.getSymbol("symbol1").getSymbol("symbol1a").play("start");
    sym.play("go");
    Hope this helps.
    Sent from Mailbox
    On Thu, Jun 19, 2014 at 10:13 AM, TripleRRR <[email protected]>

  • Unable to plot 1-D array with a cluster of 2 elements on an XY graph

    I'm Unable to plot a 1-D array with a cluster of 2 elements on an XY graph. The data appears at the input to the graph but nothing is plotted. I'm trying to plot a line connecting each point generated.
    Solved!
    Go to Solution.
    Attachments:
    TEST11.vi ‏13 KB

    Chuck,
    0. Do not post VIs with infinite loops! Change the True constant to a control.  One of the regular participants on these Forums has commented that using the Abort button to stop a VI is like using a tree to stop a car.  It works, but may have undesired consequences!
    1. Use a shift register on the For loop also.
    2. Inserting into an empty array leaves you with an empty array.  Initialize the array outside the loop to a size greater or equal to the maximum size you will be using.  Then use Replace Array Subest inside the loop.
    3. Just make an array of the cluster of points.  No need for the extra cluster.
    Lynn
    Attachments:
    TEST11.2.vi ‏11 KB

Maybe you are looking for

  • I wish to use Apple TV's in several class rooms.

    I am thinking of setting up teachers with an iPad to stream to an Apple TV using our wireless network. Can I have two or more iPads mirroring to an separate ATV on the same wireless network? So one teacher in his/her classroom on the wireless to that

  • Prblem in readmorelink in news iview of xml form builder

    hi, i am getting portal runtime error when i click on readmore link in news iview i have taken std news i have not cahnged anything i searched in sdn the solution they have given is also not working can any body help me in this regard Portal Runtime

  • Touch Screen Not Responding

    I left my ipod charging over night (did not sync), and when I grabbed it this morning the touch screen was unresponsive and not working. I tried doing the power and volume down reset, but nothing changed. All the buttons work fine, but without a work

  • Buying iTunes Off Of More Than One Computer

    I've already figured out how to use different computers to buy things off iTunes, and be able to keep them on my iPod. My question now is, I have my computer now, and I've bought things off of it, and everything is fine. When I get my new computer, w

  • The flash video can not be loaded. The output may not be proper

    Hi there, using CP7, I changed a couple of things on some slides and now I get the above message when publishing and/or previewing. I have search the forum and found others have the issue, but no answer how to fix it...? Anyone still getting this err