switch inside another symbol symbols

Hello!

I have a symbol parent (symbolA) that contain another symbol (symbolB). When I click on the inner symbolB, I want to pass with a third symbol (symbolC) still inside the symbolA

I can't find a solution yet

Thank you very much

Mirko

Hi, Miruko-

You can also use getParentSymbol().  Of symbolB:

sym.getParentSymbol () .getSymbol ("symbolC");

-Elaine

Tags: Edge Animate

Similar Questions

  • Get the ID of a dynamically created symbol library, inside another symbol.

    Hello world

    I'm trying to get the id of a dynamic created symbol library.

    When you dynamically create the symbol directly on the stage (or the level of the composition), there is no problem.

    But I can not function when you create the symbol inside another symbol.

    A few examples using 'getChildSymbols()' and 'aSymbolInstances '.

    // USING "getChildSymbols()" /////////////////////////////////////////////////////////////////////////

    ON THE STAGE

    var m_item = sym.createChildSymbol ("m_item", "Stage");

    var symbolChildren = sym.getChildSymbols ();

    console.log (symbolChildren [0] .getSymbolElement () .attr ('id')); / / ok eid_1391853893203

    / / Inside a SYMBOL OTHER

    var m_item = sym.createChildSymbol ("m_item", sym.getSymbol("holder").getSymbolElement ());

    var symbolChildren = sym.getSymbol("holder").getChildSymbols (); / / I use this maybe wrong?

    console.log (symbolChildren.Length) / / returns 0 if can't ID is

    ' USE 'aSymbolInstances "".

    ON THE STAGE

    var m_item = sym.createChildSymbol ("m_item", "Stage");

    console.log(sym.aSymbolInstances[0]); / / ok (I guess) x.fn.x.init [1] 0: #eid_1391854141436 div

    / / Inside a SYMBOL OTHER

    var m_item = sym.createChildSymbol ("m_item", sym.getSymbol("holder").getSymbolElement ());

    console.log (sym.getSymbol("holder").aSymbolInstances [0]); / / Error Javascript in the event handler. Type of event = element

    In this post http://forums.Adobe.com/message/5691824 is written: "mySym.aSymbolInstances will give you a table containing all the 'names' when you create symbols"

    Would be - this only works on the scene / composition level only and not inside a symbol?

    The following methods to obtain the same are indeed possible, but I do not simply want to use them in this case:

    (1) storing a reference to the symbol created in a table and call it later by index.

    (2) giving the elements an ID manually on the creation and use of document.getElementById () thereafter.

    I can't believe that this is not possible. I am probably missing something here.

    Forgive me that I am a newbie using Adobe Edge!
    I really hope that someone can help me here.

    Anyway, thnx in advance people!

    Kind regards

    Lester.

    OK, I solved my problem by using the (simple) code below.
    I guess that 'getChildSymbols()' and 'aSymbolInstances' only works on stage / level of the composition.

    Just thought I'd share this to everyone. Peace!

    var m_item = sym.createChildSymbol ("m_item", sym.getSymbol("holder").getSymbolElement ());

    $.each (sym.$("holder").children (), function (index, obj) {}

    Console.log ($(sym.$("holder").) ([Index] Children()) .attr ('id'));

    });

  • Trigger the chronology of a symbol by clicking on an element inside another symbol

    I've set up a "button within a symbol. I want this button to trigger the chronology of another symbol (which is also on the stage) I tried this code:

    sym.getComposition () .getStage ().getsymbol("Invent_Anim").play ("begin");  It is an action of 'click '.

    but it does not work.

    Any ideas?

    Ok. I've just updated the file.

    https://www.box.com/s/dcpe4xvdu6h9391gy5yd

  • Trying a symbol of inside another symbol show() and play()

    Hello world!


    I'm running on a problem that is driving me crazy.

    I have the following case:

    -1 symbol (_Page_Background) containing an animation with the trigger next @0 s:

    Hide the symbol
    sym.getParentSymbol ().$("_Page_Background").hide ();

    Stop it

    SYM. Stop();

    -1 element (B_TOYS), inside a symbol (BUTTONS) with the trigger 'click' next:

    Showing the symbol _Page_Background

    sym.getComposition () .getStage ().getSymbol("_Page_Background").show ();

    Start playing it

    sym.getComposition () .getStage ().getSymbol("_Page_Background").play ("INTRO");

    The _Page_Background symbol starts hidden, as it should. But when I click on the button (B_TOYS), nothing happens. Although everything worked fine before I turned my buttons in symbols...
    I guess the problems lies with the function 'show()', because I have other buttons that works properly, but they don't show/hide anything, they just play()

    Am I missing something?

    Thank you in advance for your help!

    Hi, Dimitri.

    You're close enough.  The show() command requires the jQuery handle, so you should use:

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

    Hope that helps!

    -Elaine

  • Hide/show element at the click of another symbol

    Hello

    I want to hide an element by click. The item that is clicked is inside another symbol, which one that should be hidden.

    Please tell me how I can handle this.

    Thank you very much

    // Get the symbol element "kitten_1" and hide the element "kitten_paw"
    sym.getComposition().getStage().getSymbol("kitten_1").$("kitten_paw").hide();

  • If the sign in another symbol

    I followed this tutorial, http://www.YouTube.com/watch?v=SreBTgl_JlI and everything works until I'm actually trying to place a graphic symbol in another symbol. I'm doing a character walk across the stage. Flash tells me that I can't place a symbol in itself. Why not and how can I!

    Yes, you can not take a symbol and place it inside himself. (think about it... leading to the Interior, will also be a then placed in it... to infinity... beyond capacity calculation and treatment).  The video you point is quite confusing (too complicated and maybe no need to information/activity), so maybe that is why you have a problem.

    Try to work the symbol to the top... Take the symbol that you want to place in another symbol and place it on the stage.  Right click and select Convert to symbol... as soon as you click OK, you have just placed this symbol inside another symbol... end of the tutorial.

  • Target a textfield inside a symbol?

    I have a symbol called Rectangle and a text called counter on the stage field. Inside the symbol, I have an another textfield called Counter2. For the event the symbol .click I have:

    sym.setVariable ("auditor", "1");

    SYM.$("counter").html (sym.getVariable ("Checker"));

    sym.setVariable ("auditor", "0");

    SYM.$("Counter2").html (sym.getVariable ("Checker")); error here?

    But I noticed that only one counter is changed and Counter2 was not intended. How to target Counter2 without moving in the main timeline?

    Hello

    Try this for second textfield (assuming that "Counter2" is nested in the 'meter'):

    sym.setVariable ("auditor", "0");

    sym.getSymbol("Counter").$("Counter2").html (sym.getVariable ("checker"));

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

    in the onClick for 1 symbol handler, I have:

    var sandwhichQty1 = sym.createChildSymbol ("sandQty1", "Stage");

    another symbol inside the sandQty1 has the onClick method:

    this.deleteSymbol ();

    that works well, delete sandQty1. I would like to delete and others, another button, in which case users close this way.

    I noticed that the id and class are assigned dynamically to the symbol of the child, which makes it difficult for me.

    any ideas?

    Hi, Lloydie-

    What I would do in this situation is to save a reference to the object as a variable in the symbol on the creation, then reference the variable when you want to destroy.

    So:

    var foo = sym.createChildSymbol (blahblahblah);

    sym.setVariable ("bar", foo);

    In the other symbol (assuming the two symbol instances are at the same level with regard to step):

    var foo = sym.getParentSymbol ().getSymbol("mySymbol").getVariable ("bar");

    foo.deleteSymbol ();

    Hope that helps,

    -Elaine

  • Animate the edge - how to create a hyperlink inside a symbol?

    Hello

    I am facing a problem to create a hyperlink inside symbols.

    For example - the main symbol name is "left-nav '.

    Inside of the symbol of the "left-nav', I created 3 symbols, what is" menu-1', ' menu-2' & ' menu-3'.»»» Inside of the ' menu-1', ' menu-2' & ' menu-3' symbols, I created animation.»»»

    But inside the Menu-2 & the symbol menu-3 frame, I put stop action is "sym.stop ()";

    Here, I created a button inside the symbol menu-1, when I click on this button, it should play animation menu-2.

    It is very important to me. Help, please...

    Thanks and greetings

    E. Kumar Muduli

    Use this code if you want to add to an object/button inside a symbol to play the label on the timeline

    sym.getComposition () .getStage () .play ("spinBlock");

    Use this code if you want to add to the object/button inside a symbol to control another symbol on the stage.

    sym.getComposition () .getStage ().getSymbol("star").play ();

    Use this code if you want to add to an object/button inside a symbol to control a symbol within a symbol

    sym.getComposition () .getStage ().getSymbol("starB").getSymbol ("starCent er") .play ();

  • You can have a button inside a symbol that has an event click on him?

    http://blogs.Adobe.com/edge/2012/07/18/tutorial-leveraging-independent-symbol-timelines/

    I followed the tutorial above, but I'm also keen to make "magazine covers" clickable buttons - how can I accomplish this?

    Basically I have navigation buttons that animate each 'page' on the stage (each page is inside each nav button symbol), but on the stage, I want to be able to have buttons, videos, etc., who sat inside of symbols if I followed the above method... I don't know how to click stuff if it's within a clickable symbol...

    Thank you all!

    AZA

    Use this code if you want to add to an object within a symbol to play the label on the timeline

    sym.getComposition () .getStage () .play ("spinBlock");

    Use this code if you want to add it to oppose within a symbol to control another symbol on the stage.

    sym.getComposition () .getStage ().getSymbol("star").play ();

    Use this code if you want to add to an object within a symbol to control a symbol within a symbol

    sym.getComposition () .getStage ().getSymbol("starB").getSymbol ("starCent er") .play ();

  • Why a button inside a symbol does not work?

    Hello

    I create a button, when you click with this command:

    SYM. Play ("mylabel");

    you go into the editing of the scene to the "mylabel" label... .the everything ok

    but If I have to save my button as a symbol when I press it, it do not go to the label on the stage called "mylabel."

    What I write if I whan my button inside anoter simbol work?

    Thank you

    Use this code if you want to add it to an element within a symbol to play the label on the timeline

    sym.getComposition () .getStage () .play ("spinBlock");

    Use this code if you want to add it to oppose within a symbol to control another symbol on the stage.

    sym.getComposition () .getStage ().getSymbol("star").play ();

    Use this code if you want to add to an object within a symbol to control a symbol within a symbol

    sym.getComposition () .getStage ().getSymbol("starB") .getSymbol ("starCenter") .play ();

  • _root in as2 code does not work when, inside a symbol?

    Hi I am currently using as2 on this project, I work with. I am a beginner in as2. Apparently, my problem is that _root is not working when placed inside a symbol. Is it possible to make it work?

    I tried that when he is not within a clip, it works. But I really need to be within a clip. Any way to make this work?

    It's my current setup

    I have a clip named mc01 and then mc01 includes an another movieclip named mc01in (with an instance name of mc01instance) and a button named buttonmc01. I placed the code in buttonmc01

    on {(press)

    _root.mc01instance.gotoAndStop (3);

    }

    But it does not work. I think there may be a solution for this, but since I'm just a beginner in flash, I hope you can enlighten me if it is possible to make it work like that?

    MC01 (root movieclip)-> mc01instance & buttonmc01

    You ' r to access the mc01instance of your buttonmc01 then it should be

    on {(press)

    _root. MC01.mc01instance.gotoAndStop (3);

    }

    or

    on {(press)


    mc01instance.gotoAndStop (3);


    }

  • Paste in place inside a symbol

    Here's my situation...

    My main stage is stage size 1920 x 1080.

    I am trying to copy - paste an element (Group) of the chronology of the main stage in a symbol (the symbol is also part of this scene).

    When I copy - paste in place, the element is the biggest WAY that it was in the script of the main stage.

    Does anyone know why this is?  When I hit the stick in place inside the symbol, they should be the same size as she went out the symbol.

    Thanks - Mick-

    You have a small symbol. When you paste in the main scenario 100% object, it displays now larger too.

    You can fix this by looking at the numbers of the scale. Taking a simple example, if the symbol has a scale of 200, do the thing you stick be a scale of 50. Then it will look right.

  • animation inside the symbol depends on the click counts

    Hello

    for example, there is a hammer striking the rock

    If I clicked 1 time - cracked rock (animation inside the symbol)

    twice - destroyed semi

    Triple - completely destroyed

    I have tryied this but it plays all the animations at the same time:

    -Make stop() end of each animation

    -by clicking on the symbol:

    var i = 0

    i ++

    {if(i==1)}

    Play('1000')

    }

    i ++

    {if(i==2)}

    Play('2000')

    }

    and so on

    but he plays any animation

    where is the error? =)

    Hello

    Here's a demo file: incrementingButtons.zip - Box

    I use a global variable. I put it with the Panel of compositionReady: sym.setVariable ("i", 0). You can also use the creationComplete Panel.

    Then I increment in a panel of the event (for example: click): sym.setVariable ('i', sym.getVariable ("i") + 1);

  • Adobe edge animate. Parallax inside the symbol

    Hello. Help me please do Parallax inside the symbol, not the whole

    Here is the project: Dropbox - Untitled - 4.rar

    Hello

    Here's an idea:

    code compositionReady:

    term var = sym.getDuration ();

    var width = sym.$("Stage").width ();

    sym.setVariable ('onMove', function (posX, posY) {}

    Chronology of the var = Math.round(posX/width*duration);

    sym.stopAll (timeline);

    } );

    Code of course. MouseMove:

    sym.getVariable ("onMove") (e.pageX, e.pageY);

    Note:

    sym.stopAll () target all symbols.

    If you want to target certain symbols, you can use the code below:

    term var = sym.getDuration ();

    var width = sym.$("Stage").width ();

    sym.setVariable ('onMove', function (posX, posY) {}

    Chronology of the var = Math.round(posX/width*duration);

    SYM. Stop (Timeline);

    sym.getSymbol("s1").stop (timeline);

    } );

Maybe you are looking for

  • With the iPad Pro 9.3.1 running, I do find a way to set the sleep function. I sleep in about two minutes. Help

    With the iPad Pro 9.3.1 running, I do find a way to set the sleep function. I sleep in about two minutes. Help

  • El Capitan: Compatibility with the mid 2007 iMac

    Apple support tell me my mid 2007 iMac Intel is compatible with El Capitan. My iMac only has 2 GB of RAM (spec that had been originally shipped) and is running Snow Leopard, which requires only 1 GB or RAM to run. Specification technical El Capitan i

  • Microsoft Update Error 8000FFFF

    I can't download or check the updates of windows.  I get error code 8000FFFF. There was a previous response to that proposed to solve the problems.  I tried this but it didn't work.  I looked up from my newspaper, and when it said fatal it is the mes

  • Upgrade Windows 7 stuck

    I ran the upgrade to windows 7. PC is almost new bought 2 weeks before the release of windows 7. Got my upgrade mail ran the advisior he says that every thing is fineso I went ahead with the upgrade. He was slain at 62% for nearly 10 hours.  Starting

  • Already activated Windows XP, by asking for activation.

    My computer says "must activate Windows to open a session. If I choose Yes it says "Windows is already activated.  If I, he goes to the log in page. When I then try to connect, he repeats the same thing.