How can reference you main timeline from within a symbol within a symbol?

The scenario is the following, I have a symbol (TitlePage) on my main timeline.  Inside of the symbol (TitlePage), there is a button "play".  How can I set a click event on this symbol that access the main labels timeline (stage)?

You can select the JavaScript API to the breast to animate it by selecting 'Help' > 'edge animate the JavaScript API.

http://www.Adobe.com/devnet-docs/edgeanimate/API/current/index.html

-Elaine

Tags: Edge Animate

Similar Questions

  • Toolbox for CreateJS: how to control the main timeline from outside the canvas.

    Hey everybody,

    I'm currently doing something simple, but my animation film breaks whenever I try to change my code. I created a basic animation in Flash where an object moves from the left side of the canvas, to the right and then loops of the last frame of the first image. Nothing else. The animation is simply placed on the main timeline. I exported the animation with the Toolbox for CreateJS through the extension of the Flash and animation series as it should. I'm trying to start and stop (reboot of the first image) the animation with the mouse on and off mouse events. I want that the events to fire when wriggling over/stop a div outside the animation canvas tag. Is this possible with CreateJS? I'm trying to find a way to control the main timeline without being inside the canvas tag.

    HTML example:

    http://www.thephotoncore.com/testing/example_test.html

    Example Code:

    < id article 'container' = >

    < canvas id = "canvas" width = "550" height = "400" style = "background-color: #cccccc" > < / canvas >

    < section id = "animation_control" >

    < p > hover over to start and stop animation. < /p >

    < / section >

    < / section >

    Thanks again for the help!

    -DJ

    Hi DjPhantasy5,

    All the clips on the scene are children of the scene,

    So now the "mouseover" all clips on the stage could be stopped with stop and on the "mouseout/mouseouthandler()" all the children could be restarted with gotoAndPlay like this:

    function Stop()

    {

    If (stage & stage.children)

    {

    var t = stage.children.length;

    for (i = 0; i< l;="">

    {

    child var = stage.children [i];

    If ('stop' in child)

    Child.Stop ();

    }

    }

    }

    function Restart()

    {

    If (stage & stage.children)

    {

    var t = stage.children.length;

    for (i = 0; i< l;="">

    {

    child var = stage.children [i];

    If ("gotoAndPlay" children)

    child.gotoAndPlay (0);

    }

    }

    }

    See http://www.liauw.nl/forums/adobe/djfantasy5/index.html

    But it is also possible to expose "ball1", for example, by adding it to the document.

    This can be done by adding the code for "ball1" as follows:

    / * js

    document.ball1 = this;

    */

    Then stop the animation would look like:

    function Stop()

    {

    If ('ball1' in the document)

    document.ball1.stop ();

    }

    etc.

    Have fun!

    Ronald

  • referencing the main timeline from a loaded swf file

    I just poked around google as both of these forums, but the only answer I see that was a success, is kglad, and for some reason that its messages are not, I just see ":" and then the guy say thank you! Not uber useful.

    In any case, I'm just trying to understand how to reference an image tag on my main timeline to a swf loaded (through my imageLoader). Does anyone have a link or can tell me what I should look for in? dispatchers of the event?

    to reference the main timeline of the SWF loading from the main timeline of the swf file that is loaded, use:

    MovieClip (this.parent.parent)

  • How to return to the main stage from inside a symbol

    Greetings,

    I'm going absolutely crazy trying to get back to the main stage from inside a symbol.

    To open the symbol on a click of the main stage...

    var mySymbolObject = sym.createChildSymbol ("practiceScene", "Stage");

    It works, I get the symbol

    To return to the main stage from within the symbol on a click...

    sym.getComposition () .getStage () .play () [0]; or sym.getComposition () .getStage () .play ('home');

    This does NOT work, I can't get the symbol.

    Help, please!

    R

    Obliously your symbols are hiding the main timeline. If you put this in your steps, click on events, it will remove the symbols and go to home label.

    I put a square home and hide it when not on the House. Thus, it shows only there.

    sym.getComposition () .getStage () .stop ('home');

    sym.deleteSymbol ();

    So basically, you will need to remove the symbols and recreate them when you need.

    But I could be wrong.

    Here is your file with this correction: I once on home and the other at the opening.

    sym.getComposition () .getStage () .stop ('open');

    sym.deleteSymbol ();

    https://app.box.com/s/aj0zapp11mc98gz3ghtj

  • How to set a variable in the main timeline of in a symbol?

    Just get started with Animate and coming from Flash, it may be apparent to my question. How do you define a variable for the main timeline of in a symbol?

    I have 24 pairs of clickable elements, each in their own symbols, and 24 of these symbols to sit inside another symbol. I want every 24 to set the global variable even when you click on it. I do not find that this question is anywhere, which makes me think that I can be stuck in a mentality from Flash and approaching the task in a bad way. (However, there are MANY discussions address showing how objects to different levels in the hierarchy.) Which is well covered).

    By the way, how to access a function on the main timeline of in a symbol?

    Adobe should consider putting on foot (or pages) support just for people migration form Flash. In the documents that I've met so far there seems to be a studied effort to refrain from mentioning Flash somehow. I imagine that there are many people out there like me who have a deep background in coding Flash, but start with Animate. We don't need help with most of the basic concepts, but we still have some pretty basic questions on how to achieve certain things in Animate because our knowledge of Flash gets in the way.

    Hi Bill,

    There are a lot of discussions here on the scope, but here's a way to create a global variable:

    code on Stage.compositionReady

    sym.myGlobalVar = 1;

    Then, anywhere in your project, you can check/set this var as follows:

    sym.getComposition () .getStage () .myGlobalVar = 2;

    And here is a way to create a global function:

    code on Stage.compositionReady

    sym.myGlobalFunction = function() {}

    Console.log ('myGlobalFunction');

    }

    Then, anywhere in your project, you can call this function as follows:

    sym.getComposition () .getStage () .myGlobalFunction ();

  • How can I move a movie from my mac to my iphone 6 using itunes 12.4.3.1?

    How can I move a movie from my mac to my iphone 6 using itunes 12.4.3.1? I know that you can synchronize, but where I put the (m4v) movie on my computer, and then how I do I synchronize? I tried to drop, but my phone doesn't pair with my Mac Pro 5.1...

    Have you tried to put the movie in area iTunes movies?

  • How can I transfer my texts from my iPhone to my MacBook?

    How can I transfer my texts from my iPhone to my MacBook?

    Hello Harelug,

    Thank you for using communities of Apple Support.

    From your post, I understand that you want to transfer your text messages from your iPhone to your MacBook Pro. I know how it is important to keep a copy of your messages. Currently, there is not a method to transfer your messages to your MacBook Pro from your iPhone. You can, however, set of continuity that will allow your messages will appear on your Mac in the future. This article has measures to implement continuity:

    Continuity of use to connect your iPhone, iPad, iPod touch and Mac

    For messages specifically follow these steps:

    SMS

    With continuity, all SMS and MMS text messages that you send and receive on your iPhone may also appear on your Mac, iPad, and iPod touch. You can also meet your contacts from any device is closer to you, including your iPad or Mac.

    You can start a conversation in the Messages application or click on a phone number in Safari, Contacts, or calendar.

    Set up SMS and MMS with continuity

    1. You need to iOS 8 or later version on your device iOS and OS X Yosemite or later version on your Mac.
    2. Connect to the iMessage with the same Apple ID on your iPhone, your other iOS devicesand your Mac.
    3. On your iPhone, go to settings > Messages > Send and receive. Add a control to both your phone number and email address. Then go to settings > Messages > text Message Forwarding and activate the device or devices that you want to transfer the messages.
    4. Looking for a code on the Mac, iPad, or iPod touch that you enabled. Then enter this code to check on your iPhone.

    See you soon

  • How can I remove an application from the App Store in the section update application?

    How can I remove an application from the App Store in the section update application?

    You can not delete Apps from the update tab. It's just a list

    The list is just for information purposes. Finally, they are deleted from the list on their own.

  • How can I remove the button from menu? The custom option doesn't seem to work for this.

    How can I remove the button from menu? [This IChing looking for three line on the toolbar icon].

    The tool bar Customize option doesn't seem to work, and it seems a waste to have a button that duplicates the menus. I would trade on the NoScript icon.

    Hi, I can not recommend that you do, but if you are really determined, this article can help.

  • How can I start my iMac from a different drive?

    MY SSD drive seems to be kaput, but my HD can also be used as a startup disk. How can I force the iMac from the HD?

    Hold down the Option key when starting. You will be presented with a list of bootable disks to choose.

  • Hi all.. can someone here can help me how can I unlock my iphone from icloud account?

    Hi all.. can someone here can help me how can I unlock my iphone from icloud account?

    If you have forgotten the password for your iPhone, iPad or iPod touch, or your device is disabled - Apple supports

  • The windows of the bar of Windows are already a form of tabs, so I need them in Firefox. How can I turn off completely from the 23 of Firefox?

    RE: TABS ARE WINDOWS!
    The windows bar already functions as a tab bar. These tabs are called "windows". So, I find windows superfluous Firefox tab. How can I turn off completely from the 23 of Firefox? I don't need to what are essentially the bars of TWO Windows covering the entire width of the image of my screen! I already have a Windows bar at the bottom of my screen, and if I really wanted to, I could change ITS position towards the top of the screen, so that it would LOOK at the windows of Firefox tabs bar. Firefox TABS are, essentially, a SECOND bar Windows superfluous.

    Here are my reasons why I prefer to use Mozilla's Firefox, Microsoft Internet Explorer or Google Chrome. I love and admire Firefox intended to Mozilla on good security for Personas Firefox Add-on and for free use of Firefox in the Add on Ad-Block, which, as you know, has the merit of separate to reduce the size of the screen - the last is my reason for wanting to get rid of "windows" Firefox SUPERFLUOUS tabs bar. I'm terribly sick companies forcing bars (most representative of marketing campaigns, trying to sell me something) in my browser (and in my throat) whenever I download something. (In case you haven't guessed, I have deliberately talking about your bar of Firefox tabs as a '' windows' tabs Firefox bar', because the TABS are WINDOWS!)

    You can also have an addon to open new tabs in a new window.

  • How can I delete a message from the community of apple support

    How can I delete a message from the community of apple support

    You can not

    Why do you want?

  • How can I remove my name from the top right of the screen. I have a 2015 13 "MacBook Pro running 10.11.4

    How can I remove my name from the top right of the screen. I have a 2015 13 "MacBook Pro running 10.11.4

    At the top right of the menu bar shows the current user who is logged in and allows quick change of user accounts.

    You can disable the display of menu bar in system preferences > users and groups. Or order just drag it out of the bar.

  • I would like to have at least 1 of my toolbars that are displayed at the bottom of my browser open screen. How can I move a toolbar from the top to the bottom of the page?

    I would like to have at least one of my toolbars that are displayed at the BOTTOM of my browser open screen. How can I move a toolbar from the top to the bottom of the page? I don't want to do this by using an extension, and when I read about the extension, I really have not seen how it would move the toolbar to the top-down any browser page open.
    Thanks in advance for the supply, the answer and the procedure to get this accomplished.

    You can't drag an entire toolbar to the bottom of the window. The Bar of the Addon is a "toolbar", drag whatever you want from the Palette to customize or a toolbar up to the bar of the Addon.

Maybe you are looking for

  • Please I need help

    Hi, I need help from you

  • Come on Apple to fix this, the links don't work and crashes it on ios

    iPhone 6 s 128 GB started having the same problem. Updated to ios 9.3 always the same.  As many have done, I tried all reasonable things to solve the problem. Nothing has worked so far. He isn't supposed to go back to factory settings and then restor

  • False positive

    Hi all Is this a false positive? I just did a clean install of Win 7 64-bit Ultimate on my Dimension 8400 on a new hard drive installed MSE, windows update, download and installed msn version 9 the fly butter, downloaded a driver for my wireless card

  • How to set the version of the application

    Hello! I've looked everywhere (OK, maybe not everywhere ) but I can't find how to set the version of the application, so that it does not appear in the Application Loader and the Manager on the phone. Eclipse-> project properties seems to work, but t

  • Smartphones blackBerry maybe some fix simple since the last OS upgrade you can help with?

    First of all, as I do scroll up and down, it's an annoying rattling noise, he was not used to. How to disable that? Secondly, I get the error now "there are insufficient network coverage for your request. Please try again later. "I checked all my set