Referring to a button on the main stage of within a movieclip

I'm banging my head against the wall on this.

On the main stage, I have a button that I made invisible once the file is loaded.  Inside a movieclip, I have the actionscript 3 code on frame 15

button_mc. Visible = true;

I want the button becomes visible at the end of this movieclip.  I do not use an external file as3, I put the as3 code into its own channel on the first image.

I know it has something to do with the path to the button, but I can't understand it.  If there is someone who can point me in the right direction for the referencing of the authorities with the name of the instance that reside on the main stage of inside a movieclip, I would be very grateful.

Thank you

Thepopguy

Try:

MovieClip (this.parent).button_mc.visible = true;

Tags: Adobe Animate

Similar Questions

  • ToolTips not working not inside the Embedded Movie Clip but works on the main stage

    Hey,.

    I have a clip which is a browser window, and I try to have some sensitives of the ToolTip on the buttons inside the browser window.

    If I create a button on the main stage, it hovers and works very well, but if I create the same clip inside the embedded browser window, the ToolTip is not displayed.  I have no error messages, but it is not here that I see.

    Any ideas?

    Thank you!

    Even you place your mc in another clip for example NavWindowMC:

    Write code in the maintimeline as

    Fl.transitions.easing import. *;
    Fl.transitions import. *;

    NavWindowMC. mc.addEventListener ('mouseOver', mouseRollOver);
    NavWindowMC. mc.addEventListener ("mouseout/mouseouthandler()", mouseRollOut);
    NavWindowMC. mc.addEventListener ("mouseMove", mouseMove1);

    var tooltip:Tooltip = new Tooltip();
    ToolTip.txt.Text = "Design";
    ToolTip.x = stage.mouseX;
    ToolTip.y = stage.mouseY - NavWindowMC. MC.height;

    function mouseRollOver(e:MouseEvent):void {}
    addChild (tooltip);
    var myTween:Tween = new Tween (Regular.easeIn, 0, 1, 0.5, tooltip, "alpha", true);

    }

    function mouseRollOut(e:MouseEvent):void {}
    removeChild (tooltip);
    }

    function mouseMove1(e:MouseEvent):void {}
    ToolTip.x = stage.mouseX;
    ToolTip.y = stage.mouseY - NavWindowMC. MC.height;
    }

  • 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

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

    }

  • 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

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

  • 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

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

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

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

  • Targeting of evil to a button on the main timeline for a VideoEventComplete at work

    I have a .fla file that has buttons on the main timeline that target frames in a mc named 'pages' in a table.  The 'pages' are implemented in the form of frames each five images or as a slide show where the buttons advance or return to the previous page.  I want to make invisible buttons until frame 30 video is complete (page 4).  When I insert the code below in the main timeline, the button becomes invisible, but there is no event that will finish to come back only to show the button so it sits right there with no way to advance as the buton is invisible,

    Then... How to target the button to only be invisible when it has an event video complete but not not start before 30 (page 4) image of the mc and then do it again in the 35 framework etc.

    I tried to put it in the main timeline and on the frame of the first video.  If I'm on it within the pages don't need to point the code on the main timeline to get code know where are the buttons? Something like main_timeline.nextbtn etc... ?

    The code in the settings:

    Stop()

    Import fl.video.VideoEvent;

    THIS BUTTON IS LOCATED IN THE MAINTIMELINE\\
    nextBtn.visible = false;
    addEventListener (VideoEvent.COMPLETE, doNextFrame);

    function doNextFrame(e:VideoEvent):void {}
    nextBtn.visible = true;

    pages.nextFrame)
    }

    All the code is:

    THE CODE of the MAIN SCENARIO is:

    Listeners of button

    import of flash.media.SoundMixer;// it comes to the


    nextBtn.addEventListener (MouseEvent.CLICK, nextSection);
    prevBtn.addEventListener (MouseEvent.CLICK, prevSection);

    ///////////////////////////////////////////////////////////////////////////

    function nextSection(event:MouseEvent):void {}

    var thisLabel:String = pages.currentLabel; Gets the current image under chain tag
    var thisLabelNum:String = thisLabel.replace ("sct", ""); cut the main letters off the number
    var curNumber:Number = Number (thisLabelNum); Converts this string to a real number number
    If (curNumber < 18)

    {

    var nextNum:Number = curNumber + 1;
    pages.gotoAndStop ("sct" + nextNum);

    }

    SoundMixer.stopAll (); Place it inside your functions

    }
    ///////////////////////////////////////////////////////////////////////////
    function prevSection(event:MouseEvent):void {}

    var thisLabel:String = pages.currentLabel; Gets the current image under chain tag
    var thisLabelNum:String = thisLabel.replace ("sct", ""); cut the main letters off the number
    var curNumber:Number = Number (thisLabelNum); Converts this string to a real number number
    var prevNum:Number = curNumber - 1; subtract 1 from the number, so we can go to the next image tag
    pages.gotoAndStop ("sct" + prevNum); This allows us to go to the previous image tag

    SoundMixer.stopAll (); Place it inside your functions


    }

    Please Note: it started in a previous discussion, but I think that I was confused that the question so go fresh here, thank you so much for the time on this

    I can't say I'm immune to be confused by the story you tell, but I'll take a stab to offer what could be a solution.  If the buttons are in the main scenario and the code that you want to make visible with in a movieclip which lives on the main timeline, then you can target the buttons from inside and using movie...

    MovieClip (parent).nextBtn.visible = true;

    MovieClip (parent).prevBtn.visible = true;

  • Scripts external movies to the buttons in the main movie, help please?

    I'm building a site based entirely flash using Flash CS3 and ActionScript 2. I use external movies for different pages and put the buttons that control these films in the main movie file. Normally, I would simply put the script to control the buttons on the file in the main sequence, not the external ones, but because he has more than two different pages, and I'm fading each external clip in and out, I wonder if possible put the script for the buttons on the main sequence, on the external movies.

    I hope I've explained it right, any help appreciated.

    Thank you.

    Use the following.

    var tl:MovieClip =;

    This ._parent. CV_button.onPress = function() {}

    loadMovie ("' Creative - Outrage_portfolio_goto_cv.swf ', tl");

    };

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

  • ERROR: Adding an event listener to a button in the main scenario

    I'm trying to get a simple script to work temporarily to show features. This file is a menu.swf file that loads below content.swf.

    There are 4 buttons on the main timeline and a stop at frame 40. On the same layer that my button is and frame 40, I have this code under actions. dineContent is the instance name of the button that I am referencing.

    However, I get access error 1120 property undefined.

    I know that I can add an event listener to an instance name. I have to create a film about all these buttons and then reference the instances of button inside the movie?

    I started playing with a bit more and found the solution.

    SOLUTION:
    in the property inspector to my instance of dineBtn named "dineContent", there is a contextual list under the "instance of: _" txt where you can choose between the track as button or Menu item.

    You must use the track as Menu item. the default value is button.

Maybe you are looking for