Control a symbol timeline from another symbol timeline on specific condition

Hi! I have 8 animated symbol that plays on clicking over them on the main stage and i want, for example, that if symbol 1 animation is complete and i click on symbol 3, symbol 3 plays forward and symbol 1 plays on reverse and vice versa just like this: http://www.framefarm.net/eugenio/edge/example/example.html
please help!

I put together a Composition that I think does what you're asking. it's not elegant, but it works.
in the timeline of Symbol_1
place stop() triggers at the start and end
in the same triggers, set a Symbol variable that states whether the animation has finished i.e. sym.setVariable("isDone", "false");
place a trigger on the rectangle to play() or playReverse() depending on an if() statement about the variable
in the timeline of Symbol_3
place stop() triggers at the start and end
in the same triggers, set a Symbol variable that states whether the animation has finished i.e. sym.setVariable("isDone2", "false");
place a trigger on the rectangle to:
declare 2 new variables, which use sym.getVariable() to get isDone and isDone2 as above,
play() or playReverse() depending on an if() else if() else if() statement about both variables
I used the relative string to get the local variable and absolute string to get the variable from the other Symbol, i.e.
var myVariable = sym.getComposition().getStage().getSymbol("Symbol_1").getVariable("isDone");
var myVariable2 = sym.getVariable("isDone2");
I can send you the entire code if that helps.

Similar Messages

  • Targeting an object/frame in a symbol movieClip from another symbol movieClip

    I have a base flash file within it are 2 symbol>movieClips
    I did it this way so that i can coltrol my animations more
    effectively, but I am trying to have one of these access the other,
    IE one is a menu the other is a main "page"(set up as a frame. so
    as I click on something in hte menu I want it to load the correct
    page/frame from the other movieClip
    here is a sample of what I've written:
    Zachary Bobo

    I have a base flash file within it are 2 symbol>movieClips
    I did it this way so that i can coltrol my animations more
    effectively, but I am trying to have one of these access the other,
    IE one is a menu the other is a main "page"(set up as a frame. so
    as I click on something in hte menu I want it to load the correct
    page/frame from the other movieClip
    here is a sample of what I've written:
    Zachary Bobo

  • Playing an animation on the timeline within a symbol from another symbol

              Hi all
    First post, good to be here
    I have the following
    STAGE
              SYMBOL_1
                   DIV_PLAY
                        MOUSEUP(COMMAND)
                   DIV_STOP
                        MOUSEUP (COMMAND)
              SYMBOL_2
                   DIV_ANIMATION_1
                        ANIMATION_1_START (TIMELINE POSITION)
                   DIV_ANIMATION_2
                        ANIMATION_2_START (TIMELINE POSITION)
    I would like to do the following:
    play "SYMBOL_2" - "DIV_ANIMATION_1" - "ANIMATION_1_START" from within "SYMBOL1" - "DIV_PLAY" with the mouseup command
    I have tried doing this with the help of this post http://forums.adobe.com/thread/964882 but i cant crack it!!
    I know that i can sym.getComposition().getStage().getSymbol("div_animation_1").play();  from within "div_play" but how do i access a point on the timeline and play from there...
    many thanks!!

    Answered my own question,
    sym.getComposition().getStage().getSymbol("div_animation_1").play("animation1_start");

  • How do I return playback to the main stage timeline from a symbol?

    In trying to learn Edge, is there a way to return playback (play from) once an animation is complete within a symbol?
    For instance, I have the main timeline that shows a symbol animation on creationcomplete, but when the animation is finished in the symbol and I hide the symbol, the main timeline is no longer playing. What would I need to do to return playback control to resume playback of the main timeline? I have a label I would like to play from on the main timeline, but I have not found a way to call the main timeline from within the symbol.
    This was something common in Flash.
    Thanks for your help!

    Hi escargo,
    Say we use two symbols object1 and object2.
    The main timeline has an interpolation on object2 from label “mainAnim“. Its autoplay property is set to false : the playhead stops at 0 ms.
    A third symbol nested contains the interpolation on object1. Its autoplay property is set to true, so it plays directly.
    At the end of this transition, there is a trigger (pseudo-track just below the timeline)
    sym = the current symbol nested
    sym.getComposition().getStage() = the main timeline (in Edge the stage is a symbol)
    sym.getComposition().getStage().play(‘mainAnim’); = play the main timeline from the given label.
    You can download the example here : https://app.box.com/s/6svvskydh952dfxbr3xb
    Gil
    PS : threads with examples for neigboring problems
    http://forums.adobe.com/message/5410456#5410456
    http://forums.adobe.com/message/5192205#5192205

  • What is the best way to delete dynamically-generated symbols from another symbol?

    in the onClick handler for 1 symbol, I have:
    var sandwhichQty1 = sym.createChildSymbol("sandQty1", "Stage");
    another symbol inside sandQty1 has the onClick method:
    this.deleteSymbol();
    which works fine, deleting sandQty1. I'd like to delete it, and others, from another button, in the circumstance where users don't close them this way.
    I notice that id and class are dynamically assigned to the child symbol, which makes it hard for me.
    any ideas?

    Hi, I did it in this way, and functions well; maybe this is not the best way, but worked for me. Obviously this code is based on the elainafineell's correct solution.
    This is my scenario:
    In a Trigger @ xxxxms there is that:
    var i = 1;
    $.each(results, function(index, element)
         var s = sym.createChildSymbol("mySymbol", "someContainer");
         // some code here
         // Creating the variable that save my new instance of mySymbol
         sym.setVariable("var_id"+i, s);
         i++;
    // a global var, take care with the name
    numOfInstances = i;
    Then, in a click action of some button, symbol, anything that support an action, I code this:
    sym.eraseSymInstance();
    And, in the creationComplete, I code the function like this:
    sym.eraseSymInstance = function()
              for(var i = 1; i <= numOfInstances; i++)
                             var s = sym.getVariable("var_id"+i);
                             s.deleteSymbol();
    For me function well.
    I hope this can be usefull for somebody else.

  • Control a mc timeline from the main timeline

    Hi there,
    On my main timeline, I load a mc from the library with:
    text_content.attachMovie("text_content", "text_content", 10);
    There is a marker inside this mc called "news". I need a script in the main timeline that will gotoandStop "news" within the "text_content" mc.
    I have tried, amongst others unsuccesfully:
    text_content.gotoAndStop("news", 10);
    _level10.gotoAndStop("news");
    Can anyone tell me how to fix this?
    Many thanks

    Hi, thanks for your help. To describe the scenario a bit better...
    I have an empty mc on the stage called "text_content_mc".
    On the first frame of the main timeline, I load a library mc 'text_content' (identifier name: text_content) into "text_content_mc" using:
    text_content_mc.attachMovie("text_content", "text_content", 10);
    From the main timeline, I have attempted to navigate to marker "news" within the library mc, now inside "text_content_mc" using:
    text_content_mc.text_content.gotoAndStop("news");
    It is not working. What I am doing wrong?
    Hope this makes sense. Thanks.

  • Play timeline from inside symbol

    I saw a post on this issue but was not sure where to put the code I read there. I would appreciate if you can tell me how exactly to edit this code line to work
    I am inside a symbol "oneAnimation". At the end of the animation "backBtn1" appears. Inside this button, I have added an event on click. I want the stage timeline to play from the label "startNumber" when this button inside the symbol is clicked.
    So far it's not jumping back to the main time line.
    sym.getComposition().getStage().play("startNumber");

    The label seems to be in that symbol, so all you need is sym.play('startNumber');
    You code is to play a label on the same timeline.
    See my blog on edgehero.com
    http://www.edgehero.com/articles/scope

  • How do I play a symbol timeline from the main timeline

    Ive created a box, turned it into a symbol called box,
    Inside box i have a left to right animation with auto play turned off.
    I then went back to the main stage, clicked the box, added action, on click to play, yet it does nothing.
    How do i Play the symbols timeline?

    On click handler for the symbol use
    sym.getComposition().getStage().getSymbol("nameofsymbol").play();
    or
    sym.getSymbol("nameofsymbol").play();
    replace the italics with the literal name of the symbol as it appears in the Elements panel.
    Some API details found here (http://www.adobe.com/devnet-docs/edgeanimate/api/current/index.html) in the Work With Symbols section.
    Darrell

  • How to access symbol on main timeline from nested symbol

    I did read the the edge JSAPI but still no way to make it work.
    Very simple use: you click on a button, a window appears. the button that makes the window appear is supposed to hide some elements which it does. HOWEVER when I want to use a close button within the symbol (window) to make these symbols appear again, it doesnt work.
    From inside the symbol I tried:
    sym.getComposition().getStage().getSymbol("openTabButtBlack").show();
    Doesnt work.

    sym.getComposition().getStage().$("openTabButtBlack").show();

  • How to play a symbol animation from another Edge.html file

    All-
    So I have two Edge files
    home.html
    level1.html
    I'd like an animation to play in home.html once a button is clicked inside of level1.html
    How would I pass the click event to the loaded page?
    Thx,
    `Z

    In AS2 you can use loadmovie to load a .swf into another .swf.
    http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dic tionary423.html
    In AS3, something like this:
    http://www.kirupa.com/forum/showthread.php?t=269964
    Best wishes,
    Adninjastrator

  • Controlling Instanced MovieClip timelilne from another .as file

    Hi, I'm working on building a 'cover flow' similar to the scroll through iTunes uses for it's album covers.  The only difference is my 'cover' needs a background MovieClip that will sit behind it and animate when teh images are scrolled to get it a 3D effect.
    So I have a MovieClip i'm exporting called coverflowItem.  This is the movie clip that will sit behind each 'cover' image and have the timeline i want to control from a different .as file.  That file is called coverflow.as where all of the elements are assembled and animated.  What i need to do now is find out how to control each instanced coverflowItem so when the arrow buttons are clicked, not only do the covers slide to the appropriate side which they are currently doing now, but also have the associated MovieClip play giving the 3D illusion.
    I can call the functions from the coverflowItem.as in the coverflow.as but have had no luck actually getting the movie clips to play properly.
    //Create CoverflowItem
    var cover:CoverflowItem=new CoverflowItem(_data);
    this code lets me assess the functions but not actually manipulate the MovieClip.  I'm sure my logic if flawed. I'm new to working with packages so any help would be appreciated!

    if you call it from a timeline you can pass a display list item (var whatever:MyGlobal=new MyGlobal(this) ) to the constructor and assuming you're trying to reference the parent of that timeline, use:
    package
        import flash.display.MovieClip;
        public class MyGlobal extends MovieClip
            public static var _dolares:Number = 3500;
            public static var _visitantes:Number;
            public static var _retroalimentacion:String = "Info box"
            //objects
            public static var _senal:Number = 0;
            public static var _flores:Number = 0;
    private var dlObj:MovieClip;
            //my function
    public function MyGlobal(mc:MovieClip){
    dlObj=mc;
            public function decision(valor, visitantes, mensaje, irAbra, irDibujo)
                if (MyGlobal._dolares >= valor)
                    //spend money
                    MyGlobal._dolares -=  valor;
                    //visitor effect
                    MyGlobal._senal = visitantes;
                    //message for info box.
                    MyGlobal._retroalimentacion = mensaje;
                    //show info box
                    MovieClip(dlObj.root).gotoAndPlay(2);
                    //////close menu ;
                    MovieClip(dlObj.parent).objetoAbra.gotoAndStop(irAbra);
                    //Set graphic;
                    MovieClip(dlObj.parent).objetoDibujo.gotoAndStop(irDibujo);

  • Moving to a frame in Movieclip timeline from the main timeline

    I am in the learning process. Working with FlashCS5 and AS3.
    Please bear with me if the issue appears to be too simple for you. Placed a movieclip(mcassessJohn) on the main timeline and moved to the frame labelled "johnFeedback" in the movieclip timeline using the following actionscript code.
    mcassessJohn.addEventListener(MouseEvent.CLICK, onJohnClick);
    function onJohnClick(evt:MouseEvent):void {
       mcassessJohn.gotoAndPlay("johnFeedback");
    This works fine. However problem starts when I place a button "questionJohn" in the movieclip(mcassessJohn) time line at frame "johnFeedback" and try to move to another frame by clicking the button and using the following actionscript code;
    questionJohn.addEventListener(MouseEventClick,onClick);
    function onClick(evt:MouseEvent):void {
      gotoAnd Play("johnFeedback");
    Placed the above code in actions layer in the movieclip timeline at frame "johnFeedback". I had placed the button also in the movieclip timeline at Frame "johnFeedback in layer buttons. No compiler error.No runtime error. Just nothing happens when I click on the button "questionJohn".
    Would appreciate if you can let me know where I am going wrong.

    Thats because if u assign the listeners to a parent movieclip it will not pickup listener assigned to its child.
    A work around is put a invisible btn inside mcassessJohn movieclip on frame 1 and assign onJohnClick function to that.
    And one more thing, i think u r trying to perform same operation on both the btns
    http://www.darshanrane.com

  • Targeting a nested mc timeline from a main timeline

    I have a main.fla which has 3 movieclips inside it. All 3 mc's have timelines that run 40 frames. The main.fla timeline has each mc instance on a frame.
    mc_1 is on frame 1
    mc_2 is on frame 40
    mc_3 is on frame 81
    as the main timeline plays the clips each one fades to the other.
    I need to know how to target this scenerio
    after mc_3 plays I need to have a goToAndplay (20) set up so the animation inside mc_1 starts playing (frame 20) of mc_1.
    the action needs to happen when the playhead reaches the last frame of the main timeline in main.fla
    any help?
    rdefr

    you want to play frame 20 of the main timeline and frame 20 of mc_1?  if so, on the last frame of your main timeline you can use:
    stage.invalidate();
    stage.addEventListener(Event.RENDER,f);
    gotoAndPlay(20);
    function f(e:Event){
    mc_1.gotoAndPlay(20);

  • Control deployed SOA Composite from another BPEL

    Hi All,
    I am trying to control the bpel process(activate/retire) on the server, by using JAVA Embedding activity in another bpel.
    So i am using the below code.
    import java.util.Hashtable;
    import java.util.*;
    import javax.naming.Context;
    import oracle.soa.management.facade.Locator;
    import oracle.soa.management.facade.LocatorFactory;
    import oracle.soa.management.facade.Composite;
    import oracle.soa.management.facade.Service;
    Hashtable jndiProps = new Hashtable();
    jndiProps.put(Context.PROVIDER_URL, "http://sever:portno/soa-infra");
    jndiProps.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
    jndiProps.put(Context.SECURITY_PRINCIPAL, "XYZXYZXYZ");
    jndiProps.put(Context.SECURITY_CREDENTIALS, "********");
    jndiProps.put("dedicated.connection", "true");
    Locator locator = null;
    try{
    locator = LocatorFactory.createLocator(jndiProps);
    Composite composite = locator.lookupComposite("ODDev/OD_LogBPELErrors!3.0");
    System.out.println("Composite:"+composite);
    }catch(){}
    I am getting this compile time error. Error: SCAC-50012. Then i have checked the scac.log file under SCA-INF directory. No clue on the error. Please guide me if somebody have any idea.
    Thanks in advance :)
    Regards,
    Sudheer

    Can you please explain the scenario, as in, why would you like to do that ?
    Anyways, if you are trying to execute that piece of java code, then, you should first check if that works in a standalone manner.
    Then, check the classpath settings for the java embedding activity because some of the classes, you are referring to, might not be available.
    Or else, you can wrap-up the java code as a deployable war and then, use it as a partner link in your bpel.
    Hope it helps !

  • Use BOAction from another BOModel in Customer Specific BO

    Hi together,
    in our customer specific Solution and Business Object we need to use the action 'CheckProductAvailabilityAndConfirm' of the BOModel SalesOrder in Namespace /xi/AP/CRM/Global.
    We have already access to all sales orders and items in our business object and want to execute the action above for a selected sales order item from our list.
    We have created an event handler of type 'BOAction' and binded the 'CheckProductAvailabilityAndConfirm' action of the Sales Order Item.
    When activating the solution the SDK throws an error saying the action is not known in our namespace.
    What do we have to do to be able to use the action?
    Thank's a lot in advance.
    Best regards,
    Constantin

    Hi Meghna,
    thank's for you reply!
    We have built a customer specic solution with a new workcenter, where a list of sales orders and sales order positions is shown. In this workcenter the customer wants to select a sales order item in the list / table and press a button which has the same functionality like the "Check Availability" Button in the workcenter SalesOrders->spec.SalesOrder->ViewAll->Items
    Best Regards,
    Constantin

Maybe you are looking for

  • WORST CUSTOMER SERVICE AND CLIENT SUPPORT OF ANY COMPUTER COMPANY EVER

    i bought the new thinkpad and recd the end of dec 2012. I recoomended it to many in my company and am sorry they all started buying them. We all got the ultra book think pads. My was core 17-quite expensive/4333 SERIES. I bought iT with the warranty.

  • Software Updates failed to installed on Server 2008 R2

    Hello All, I have performed deployment of around 89 software updates on Windows Server 2008 Citrix Terminal Server. However, out of them only 1 of them got installed .  8 updates got downloaded in ccmcache. The updates were installing manually if we

  • How Do I Free-hand Cut an Object Out of a Pic With PSE 8?

    I want to completely free-hand cut a horse out of one pic and then save it into another pic with a different background. I can't figure out how to do this with PSE 8. It is my first time using this program. The only picture editing program I have use

  • Finding iCal data (for unclear reasons lost) in Time Machine

    When I opened iCal today all the information in my calendars was gone (except for birthdays from the addresse book). I have time machine backups but can't understand where to find this information. Could anyone advise? (I do not understand why the da

  • Error IPAD sync

    Dear all, I have itunes 9.2 installed on windows XP and syncronizing Ipod, Itouch and now Ipad but when I try to syncronize the Ipad the following error messages appear before closing the Itunes programe. Itunes has encountered a problem and needs to