How to target the element of the main stage of in a symbol

I have a symbol where I want to put an action click here to do something to another item on the main stage, how can I do this?

Check out my tutorial here:

Targeting of the symbols: discovering the mystery l EdgeHero

This was made with a previous version of Animatebut the principles still apply.

In addition, if you use the snippet window, it will give you good scope.

Tags: Edge Animate

Similar Questions

  • 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

  • Cannot target the main stage of dynamically loaded swf...

    A part of the Flash application. I'm working on right now is the following-

    Main stage load an external swf using the following function:

    function loadAsset(evt:String):void{
     var assetName:String = evt;
     if (assetName != null){
      var assetLdr:Loader = new Loader();  
      var assetURL:String = assetName;  
      var assetURLReq:URLRequest = new URLRequest(assetURL);  
      assetLdr.load(assetURLReq);  
      assetLdr.contentLoaderInfo.addEventListener( Event.INIT , loaded)  
      assetLdr.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, displayAssetLoaderProgress);   
      function loaded(event:Event):void {  
       var targetLoader:Loader = Loader(event.target.loader);  
       assetWindow.addChild(targetLoader);
      }
     }
    }
    

    The external swf file loaded, load another external swf to itself using the following function:

    function loadQuiz(evt:String):void{    
     var quizName:String = evt; 
     if (quizName != null){ 
      var quizLdr:Loader = new Loader(); 
      var quizURL:String = quizName; 
      var quizURLReq:URLRequest = new URLRequest(quizURL); 
      quizLdr.load(quizURLReq); 
      quizLdr.contentLoaderInfo.addEventListener( Event.INIT , loaded)        
      quizLdr.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, displayQuizLoaderProgress);  
      function loaded(event:Event):void { 
       var targetLoader:Loader = Loader(event.target.loader); 
       quizWindow.assetLoader.addChild(targetLoader);      
      }
     }
    }


    Everything loads fine, but at the level of quizWindow.assetLoader.addChild (targetLoader), I want to send a message/fill in an area of dynamic text on the main stage. I've been 'parenting' my brain and I'm not sure of how to communicate with that level.

    can anyone show me the correct path or the method based on the above, or have a suggestion?


    See you soon,.
    ~ Chipleh

    You make me feel nostalgic...

  • How to access the chassis lable on the main stage of a nested symbol

    All-

    I have two buttons

    btnA on the main stage

    btnB is nested inside btnA

    How to access a lable of frame on the main stage of btnB

    Hi, zontaluma-

    This should work:

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

    -Elaine

  • 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 to fix the main button to paste constantly

    How to fix the main button to paste constantly

    Short of getting a replacement from Apple or risk a repair third shop there is nothing you can do. How about a button on the home screen? Go to settings > general > accessibility > assistive touch > on.

  • How to restore the main menu (modify, display, help ect.)? He disappeared

    How to restore the main menu?

    Hello

    Restore it in what?

    in windows Explorer

    Open it and then click on organize then page Setup then menu bar

    in internet explore

    Right-click just below the address bar, and then click menu bar

    or go to tools in the upper right and select menu bar

  • How to show the main screen (home screen of blackberry)

    Hi guys,.

    I need to know how to show the main screen (home screen of the blackberry), even if it's in any screen (like saying "Calculator" etc)...

    This must be done by programming... is there a solution for this?

    Thanks in advance,

    I also had. This is to disconnect incoming call and display the main screen (home screen of the blackberry).

    EventInjector.invokeEvent (new EventInjector.KeyCodeEvent (EventInjector.KeyCodeEvent.KEY_DOWN, (char) Keypad.KEY_END, 0, 100));
    EventInjector.invokeEvent (new EventInjector.KeyCodeEvent (EventInjector.KeyCodeEvent.KEY_UP, (char) Keypad.KEY_END, 0, 100));

  • How to change the main administrator in my CC team?

    How to change the main administrator in my CC team?

    Hello

    I'm afraid that the admin can be modified to your order at the time, but you can add more than one administrator console. You can also consider to reorganize with the correct email address.

    To add multiple administrators, see help here - manage your cloud creative teams membership

    ^ Ani

  • problem with access on the main stage

    Hi, how guys I hope you fine

    Here is my problem

    I have the fla called "game.fla" file and there are a lot of images in the main stage, I want to spend

    class called "admin" in the library but how?

    I tried to this

    parent.gotoAndStop (39);

    but it doesn.t work I do not know why

    and this is the error message

    C:\Users\win7\Desktop\game1\admin1. As line 902 1061: call to a Stop method maybe not defined through a reference with static type flash.display:DisplayObjectContainer.

    right ok, I remember now

    one solution is to replace

    parent.gotoAndPlay)

    with

    MovieClip (parent) .gotoAndPlay (39)

  • Video clip of the main stage

    How can I make a clip back to the main stage, it once... It has a roll that is inside the clip...  I have a door and I want it so when you click on the door, he goes to another keyframe on the main stage

    How can I do this?

    Thank you

    Daniel

    You can always reference the main timeline to use anywhere:

    MovieClip (root)

    (even if it is not the best way of doing things).

  • Do the mounting of the main stage plays in reverse.

    Hey thanks all for research. I figured out how to do this with clips, but I can't do the things with the main stage. Can someone tell me a simple methood of telling the scene to continue to play in reverse, after a button is clicked, until it reaches a keyframe that will tell to stop? I'm trying so buttons will tell the stage to play a transition from the beginning to the end and then have it play in making the turn when you press the back"" button. I am currently looking online to find an answer, but I got no luck yet. Thanks for the help!

    :

    MovieClip (root), .gotoAndPlay (25);

    playF (MovieClip (root), MovieClip (root) .currentFrame, 1);   the root of its current to mount 1 play.

  • Dimensions of the main stage not corresponding with the rest

    Hello
    I just open a new project in Flash. Set the dimensions of the main stage at 1000 x 800.
    That I created a movie clip symbol, which will be on page 1 of the new Web site. The dimensions are 1000 x 800. I import different graphics for the design of this page. When I import this page1 (movie clip symbol) on the main stage, it is much bigger than the main stage. So that page 1 does not fit on the main stage. Could someone tell me what I did wrong or how to fix this?
    Thank you very much for any input and I apologize for this fundamental question.
    See you soon
    Janek

    When you create the instance of MovieClip, there is no canvas when you go to change his "scenario, when you drag the clip from the library to the stage on the main scenario is when you can really judge where the canvas is at... try to test your movie and see what happens. You can create an instance of MovieClip, do nothing for her, drag from the library to the center of the stage on the main timeline, then double-click it to edit it, accordingly, given the canvas gray behind her and to be able to judge where everything will happen.

  • Just the fact on the integration of 'New private window' Safari to the main stage of the choice of FILE!

    When and where 'New private window' Safari appear on the main stage of the MacBook Pro as a "choice".

    I think that Yosemite > Safari 8 (Yosemite): private browsing using windows

  • Animation of symbols on the main stage

    I have a set of symbols. Each symbol has a rollover animation applied to it.

    Now, I want to be able to animate all these symbols to enter the main stage. This animation plays fine when I hit the button to read within the program, but when I go to preview in the browser, it will not play. I do not have a trigger to stop stop or whatever it is at the beginning of the main animation, so no sense that he would not play. I note that reference is made to the time symbol on the main stage. (chevron back Gray arrows). My individual symbols have a stop at the beginning of each trigger. Only thing I can guess is that trigger the symbols stop is keeping the main animation to play. Probably missing me something simple here, but I thought the symbol only controlled symbol animations and has no effect animations of the main stage.

    All your symbols with play (0) code.

    you might have a table with your symbol names and then a loop for

    var mySymbols = ["cat", "dog", "bird", "cloud", "snake", "rain"];

    for (i = 0; i<>

    sym.getSymbol (mySymbols [i]). Play (0);

    }

Maybe you are looking for

  • Previous page "jumps".

    In my case, Google is the default search engine, maintain a normal search from the google home page, opening the possibilities of links on the same window, for example, I try and open this newspaper: https://www.google. com / webhp? hl = en & tab = X

  • Pregnant active satellite L855 - 10 p: even if the headphones are connected

    Hello I have an interesting, a very minor, but quite annoying problem.Basically, every time I start playing some audio on my laptop, and I plugged headphones, it will play through the speakers during the first few seconds and then switch on the headp

  • Satellite U840 - goes on the mode 'sleep' when you browse the internet

    Hi, I bought one of the Toshiba U840 nine ultrabook. Something is really wrong with these machines;While I surf the net, actually when I type something portable past suddenly on the mode 'sleep'? Any idea what is wrong with him? The bottom line is; I

  • Add the Internal Modem

    Hello, I have a HP P6774y computer, running Windows 7-64 bits and 32 bits (2 sheets) I want to use the fax software, but there is no internal modem. I have a 56K of my last computer modem card. The specifications for my p6774y indicate a free PCI, bu

  • Watlow F4 with GPIB connection

    Hello I have a room that uses the Watlow F4 controller with GPIB connection. I want to control it by sending a recipe of Labview. I found this driver on the Web site OR: http://sine.NI.com/apps/UTF8/niid_web_display.download_page?p_id_guid=0150785855