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

Similar Messages

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

  • 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

  • Manage the mc timeline from the main

    Hi guys,
    I need to use gotoAndPlay with a timeline situated within a MC. So, how can I identify this timeline from the main one?
    P.S. could anyone advise me a good As 3.0 manual?

    Assign an instance name to the mc via the properties panel.  Let's say you name it "mc"... then to command that timeline from the main timeline you would use: mc.gotoAndPlay(?);

  • How to call a function in a class from the main timeline?

    Hey Guys
    I have a project in Flash with four external AS files, which are linked to items in the library using AS linkage.
    What I want to do is call a function in one of these files from the main timeline, how would I go about doing this? I'm not currently using a document class, most of the code is in Frame 1 of the main timeline.
    Thanks

    // change type to the class name from the instance
    ClassNameHere(this.getChildByName('instance_name')).SomeFunction();

  • How do you call a java class from the main method in another class?

    Hi all,
    How do you call a java class from the main() method in another class? Assuming the two class are in the same package.
    Thanks
    SI
    Edited by: okun on May 16, 2010 8:40 PM
    Edited by: okun on May 16, 2010 8:41 PM
    Edited by: okun on May 16, 2010 8:47 PM

    georgemc wrote:
    To answer your impending question, either the method you're calling has to be static, or you need an instance of that other class to invoke it against. Prefer the latterAnd to your impending question after that: no, don't use the Singleton pattern.

  • Access a nested symbol timeline from the main stage

    Hi all,
    Would love some help on accessing a nested symbol from the main stage please.
    To set the scene.....
    "Its an autumn day..
    no sorry...just joking...
    So i have a symbol called "NormalAnatomy" - its not on the main stage, but when a button is clicked it appears in the 'content' box which is just a rectangle on the main stage.
    Inside "NormalAnatomy" symbol is another symbol called "Scrub_all" which is an animation
    For users to view the animation they use a scrub bar like this lovely lady has invented:
    Create Click and Touch Draggable Scrubbers with Edge Animate CC | sarahjustine.com
    So for Sarah Justines scrubber to work - the main stage has a lot of actions added to it. Also the "timelinePlay" symbol is on the main stage
    Its starts:
    var symDur = sym.getSymbol("timelinePlay").getDuration();
    var mySymbol = sym.getSymbol("timelinePlay");
    var scrubber = sym.$("scrubber");
    var bar = sym.$("bar");
    sym.$("mobileHit").hide();
    var dragme = false;
    So I put my "NormalAnatomy" symbol on my main stage to see if the code would work and changed all the relevant details.. and indeed it worked!
    var symDur = sym.getSymbol("NormalAnatomy").getSymbol("Scrub_all").getDuration();
    var mySymbol = sym.getSymbol("NormalAnatomy").getSymbol("Scrub_all");
    var scrubber = sym.getSymbol("NormalAnatomy").$("scrubber");
    var bar = sym.getSymbol("NormalAnatomy").$("bar");
    sym.getSymbol("NormalAnatomy").$("mobileHit").hide();
    var dragme = false;
    But i don't want the "NormalAnatomy" symbol to be on the main stage as I want it to appear in the 'content' box only when i hit a btn
    So as soon as I took this symbol off the main stage, the scrubber doesn't work. So I click a btn, and the symbol appears in the content box but the scrubber doesn't work.
    so I tried in front of the "NormalAnatomy"
    getStage().
    getStage("content").
    getComposition().getStage().
    getSymbol("content").
    but nothing works
    The main problem must be the fact that the NormalAnatomy symbol appears inside a content box so the MainStage actions doesn't know how to find it??
    So my question is... what should I put in the main stage actions to make it access the "NormalAnatomy" symbol?
    Thanks for your help in advance!

    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 do i play games after downloading from the app store on my laptop

    How do i play games after downloading from apps on my windows 8 laptop??

    iOS applications can't be run on a computer.
    (100210)

  • 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);

  • Attach a movieclip from the main timeline inside another movieclip.

    I need help with the game I am working currently. On the main timeline Actions frame I have a loader class called myLoader. I attached that to a movieclip called currentSWF. I have a movieclip called SpinningCard in the library which I dynamically attached to the stage. Inside the SpinningCard movieclip there is another movieclip Card. In the Card movieclip I have 10 frames and on each frame I want to attach a different instance of the movieclip currentSWF. How can I do achieve that?
    here's what I have till now...
    On the main timeline Actions frame...
    var loader:Loader=new Loader();
    loader.load(new URLRequest("CardGraphics.swf"))
    var currentSWF:MovieClip;
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded);
       function swfLoaded(e:Event):void {
       currentSWF = MovieClip(loader.contentLoaderInfo.content);
       addChild(currentSWF);
    Inside the Card movieclip on the first frame I have this code...
    var a1:MovieClip = MovieClip(parent.parent.getChildByName('currentSWF'));
    CardFrame1.addChild(a1);
    //CardFrame1 is an empty movieclip which is there on the frame 1 of Card Moveiclip.
    I am getting error : Parameter must be non-null. How can I solve. Can anyone please help me.

    Hi Nabren
    I'm also looking to load a library based movie-clip into a stage based movie-clip, so that I can inturn swap it with other movie clips to act as different pages (page2_mc etc) which will be used in different sections of the application to give chapters as such.
    I've had a go at the above but can't get a result, though it did not throw an error. I also had a trace() on each side and both of those triggered.
    The stage based mc I called pageMC and the content mc I called content the same as your example
    trace('loader - cx');
    var loader:Loader=new Loader();
    var pageMC:MovieClip;
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded);
    function swfLoaded(e:Event):void {
    pageMC = MovieClip(loader.contentLoaderInfo.content);
    pageMC.name = "pageMC";
    addChild(pageMC);
    trace("Menu 4");
    I'd appreciate some assistance. I would like to use internal MC's as I want to put the application to iOS and Android and believe by using movieclips I should be able to have some code with them whereas importing swf's I can't.
    Thanks

  • How do I play all my Movies from the iTunes'  Library?

    How do I play all the Movies from within my LIBRARY without having to click PLAY everytime on each individual movie? All my movies in the Library have the check marks on them already.
    When I play my "Music" LIBRARY, as soon as a song is over the next one starts up. Fine. Great! But, the same is not happening from within my "Movies" LIBRARY.
    This play-all-Movies type of action works fine from within each of my playlists. Once selected a movie to play from any playlist, other movies will keep on playing, one after another, until told to stop. But, I also would like to play all movies from my library.
    It would seem redundant to copy my entire library into a single playlist just to have this function available. Besides, every time I would add a new movie to the library, I would also have to remember to add it to said playlist.
    Could anyone, please, tell me if it is possible to play all movies from within the LIBRARY? (iTunes v.8.01).

    Thanks for your prompt reply, Meg. I've applied exactly your "smart playlist" directions (always wondered what that "smart playlist" was for while it worked wonders! Great going.
    "I asked for a fish and you taught me how to fish"! Thanks again!

  • How do you play a swf file from the desktop

    I have created a swf file using flash. It can be downloaded
    onto the desktop. It is zipped. When unzipped it is called
    yadayada.swf. It does not get associated to the flash player or the
    shockwave flash player which are both installed. So if i double
    click on it it won't play.
    What do I have to do to make it play from the desktop in its
    plain swf file format. I want people to be able to download it onto
    their desktop for both Mac and PC users. I published it as a
    projector .exe file but mac users cant run it.
    What should be my next step?
    I have installed Flash on my development box so this isnt an
    issue but it is for my test computer that doesnt have flash
    installed.

    HI
    mm 2 things you can do.
    1. Create a html page that loads this SWF file, This will
    work on both OS's.
    2. Create a Projector file for PC and HQX for the Mac. You
    cannot have one
    file todo both.
    Hope this helps.
    Regards
    FlashJester Support Team
    e. - [email protected]
    w. - www.flashjester.com
    "This has been one of the most impressive and thoroughly
    pleasant
    experiences of customer support I have ever come across -
    astounding!"
    Director - hedgeapple

  • How to stop and resume a subVI from the main VI?

    I am trying to write a test sequencer, I need to start a subVI (which is a test sequence) from my main VI, I'd like to control the execution of subVI by pressing the 'stop' 'resume' 'jump step' button in the main VI. Does anyone have any idea how to implement this in LV?
    Thank you.

    Yay for State Machine!! I would actually recommend the State Machine Using Events design pattern. Taking advantage of the Event Structure will allow you to replace the "Idle" state in the traditional state diagram design pattern. Instead, we are not waking LabVIEW to handle particular events on the front panel.
    More information regarding the State Machine design pattern as well as design patterns in general are available:
    NIDZ Tutorial: Changing the Face of Design Patterns with LabVIEW 7 Express Event Structure
    NIDZ Tutorial: Applicati
    on Design Patterns: State Machines
    LabVIEW Application Design Patterns
    Good luck.

  • My movie symbol not working in main timeline

    The symbol works in its own movie timeline, the keyframe length is the same length on both the movie symbol timeline and the main timeline.
    But movie symbol refuses to play on the main timeline.
    Any ideas?

    If it is a movieclip symbol, it doesn't need to have any more than one frame in whatever timeline you place it in to be able to play in its entirety.  What controls are you using to make it play?  Does the movieclip have any stop() command in its first frame(s)?

  • How do I set a variable on the main timeline from within a symbol?

    Just getting started with Animate and coming to it from Flash, as may be apparent from my question. How do you set a variable to the main timeline from within a symbol?
    I have 24 pairs of clickable elements, each in their own symbols, and all 24 of those symbols sit inside another symbol. I want all 24 to be able to set the same global variable when clicked. I can't find that this question is addressed anywhere, which makes me think I may be stuck in a Flash mindset and approaching the task in the wrong way. (There are however MANY discussions of how to address objects at different levels in the hierarchy. That's well covered.)
    Relatedly, how do you access a function on the main timeline from within a symbol?
    Adobe should consider putting together a support page (or pages) just for folks migrating form Flash. In the materials I've encountered so far there seems to be a studied effort to refrain from mentioning Flash in any way. I imagine there are a lot of people out there like me who have a deep background in Flash coding, but are just getting started with Animate. We don't need help with most of the basic concepts, but we may still have some pretty basic questions about how to accomplish some things in Animate because our Flash knowledge is getting in the way.

    Hi Bill,
    There are plenty of threads on here about scope, but here's one way to create a global variable:
    // code on Stage.compositionReady
    sym.myGlobalVar = 1;
    Then, anywhere in your project, you can check/set that var like so:
    sym.getComposition().getStage().myGlobalVar = 2;
    And here's one way to create a global function:
    // code on Stage.compositionReady
    sym.myGlobalFunction = function(){
              console.log('myGlobalFunction');
    Then, anywhere in your project, you can call that function like so:
    sym.getComposition().getStage().myGlobalFunction();

Maybe you are looking for

  • Help me to solve this. select statement!

    hello alll is there any functional module which gives me the BELNR(of bseg) by passing the vbeln. yeah ...we can do tht by passing bseg table ,,,,but its taking loads of time to give me the output as its not a primary key or secondary key..... when i

  • I am having many problems with Firefox 5 how do I go back to Firefox 4

    Whenever I log on to mymsn via Firefox I get this error message: TpyeError: Components. classes[cid] is undefined. Also I used to be able to type in an address or select one from the drop down menu and it would go to the site now I have to click the

  • Quicktime crashes while watching video uploaded to pc from digital camera

    I have several clips that I uploaded to my computer from my digital camera. They upload as quicktime movies. If I just double click on the movie to open it, it opens using Quicktime (version 7.5 with latest security updates also done). The video is v

  • Save first 45 day 4G iPhone deserted owners

    Hello everyone. I am trying to understand the mindset of those who offer Cheese to the whiners and talk smack at them. The iPhone is a ground breaking product. Apple is famous for its rock-solid products both on the hardware and software fronts that

  • Recommended lowest Mac Specifications for 32-Channel Recording.

    I've been looking a lot into using Logic for Multi-Track recording our bands in a Live setting. I mix on a Yamaha M7CL and just purchased two MY16-AT Expansion cards that each give us 16 Channels of Digital Direct Out output, 32 Channels output in to