As for having access to a a button inside movieClip?

Well, I want this button the clicado is run off in a movie clip function, I call this pylone2 of button, he's going to appear that when button dust that this main scenario will be clicado, the button if flame drinks, that this main scenario, and another called stop, it also this main scenario, xi buttons (primary timeline) and paraMc (mounted inside movieclip) both have the function of for another animation clip called "symbol".

as009.jpg

I want to know I eat to place the action in the button paraMc he is inside movie clip for, remembering that the paraMc button only appears in the screen when user clica in green color button.

already tried to do: para.paraMc.addEventListener(MouseEvent.CLICK,simbolo);

but it did not work, the place in black color is video clip it contains a button of it inside, when clicar in the green button, the function duplicated movie clip in the gray color and film clip in black color that contains the button. the button in red color called "chega" function, the button in the color black which is inside the video clip also calls this function.

I got to do. He sees the code. I'd already thought about doing it this way, but I found that I would use the indexOf function or child

function vai(event:MouseEvent):void {}

cara.gotoAndStop (2);

If (entrada.text == "sim") {}

trace ("voce consegiu");

Saida. Text = "voce consegiu";

}

else {}

trace ("Erro, voce nao consegiu");

}

}

cara.clicador.addEventListener (MouseEvent.CLICK, vai);

Stop();

Tags: Adobe Animate

Similar Questions

  • Access to the button inside Movieclip/ScrollPane

    Hi all

    I'm trying to understand how to create a button inside a movieclip.  I have a model that has movieclips in movieclips, and when I create a button (while using AS2) the button works if I test the stage, but in the whole flash movie it does not work.  I have also a few buttons inside a ScrollPane who also do not call correctly.

    I use this code for my button:

    facebookbtn.on (release) {}

    getURL ("http://www.facebook.com/", "_blank", "GET");

    }

    ↑ This is placed on the button "facebookbtn". I also tried to use: _root.bgPages.pg1.facebookbtn.on (release), does not.

    For the one inside a ScrollPane I try to call a javascript function:

    {We (Release)}

    to import flash.external.ExternalInterface;

    ExternalInterface.call("saveglobalscore",score) ("GroupDelegate", "dayone1");

    }

    ↑ This does not work, with or without the name of the button before it (release).

    I put the FLA here so that if someone has the time, could help me with this problem quickly. Thank you!

    FLA: download FLA

    Different code depending on how you assign it. what you show seems to be mixing up both ways...

    If you place this code on the button, use:

    on (release) {}

    getURL ("http://www.facebook.com/", "_blank", "GET");

    }

    If you place this code in the script that contains the button, do not forget that you gave this name of the instance to the button (in the properties, not the library panel), and then copy the following code:

    facebookbtn.onRelease = function() {}

    getURL ("http://www.facebook.com/", "_blank", "GET");

    }

  • How can I assign keys for quick access to the front buttons and back?

    I would use the hotkeys for the front and the back browse buttons.

    Keyboard shortcuts for front and rear buttons are integrated in Firefox.
    Backward = Alt + left arrow. Forward = Alt + right arrow.

    For more information, see keyboard shortcuts .

  • pin the Favorites on the bar tasks or to make a button for quick access to Favorites how can I do this?

    pin the Favorites on the bar tasks or to make a button for quick access to Favorites how can I do this?

    Open Favorites
    CTRL + I keyboard
    It is the windows key......... CTRL + I... Press all 3 at the same time...

  • How can I get my mouse to grab things without having to click on the buttons, if I have the touch mouse on my laptop?

    How can I get my mouse to grab things without having to click on the buttons, if I have the touch mouse on my laptop?

    You will need to go to the control panel > hardware and sound > mouse and see if the settings for the mouse pad have a function called "Tap-to-click" or something similar in the description.  The exact name of this feature differs depending on the manufacturer of the software for the mouse.

    If you do not see this option to be available, you will have to probably go to the support site for the manufacturer of your PC and download the latest drivers for your model computer mouse pad and install.  Once installed, go back to the mouse settings in the Control Panel, where you will most likely available additional settings after the driver installed.  I hope that the "Tap-to-click" function will be available to turn on or off.

  • How to access a State of buttons with code

    Hello

    I already have a few buttons which I planned on using as a menu for the difficulty, easy, medium, hard. The buttons are already made with all States and graphics, then I wanted to add an event listener so that when you click on a button for example simple, if the middle button was to its state of success I have he would return back to upward, for example:

    easyButton.addEventListenere (MouseEvent.CLICK, function(e:event) {mediumButton.gotoAndStop ("up") or mediumButton.up

    but then I realized there no properties or function in the simpleButton class to change the State of the button, I know I can do a movieclip and I Stop at the top image, but is there a way to make it work like a button?

    Buttons in Flash back a long long way. In previous versions you could not access by name buttons and they were really shaking and odd. Users of dropped and developed more serious Flash from buttons of the movieclips.

    I don't really know why they did not set them when they have updated the AS3, but there you go! I guess it has something to do with the idea of keeping them simple.

    With respect to visibility, be sure that you set the visible property and not the alpha. A button with zero threshold alpha will be rolloverable, clickable, etc..

  • AddListener for a button inside a movieclip in the library?

    Could someone point me in the right direction on how to add a listener for a button inside a movieclip in the library?

    Example:
    Root-> work_mc-> workss_mc (added with Addchild) (timeline)

    There are workss_mc in the library which is charged when someone clicks on a button inside work_mc. This is achieved with addChild. In workss_mc there is a close button to close it. I encountered problems with the work of navigation with this b/c I have to declare and create a single instance of workss_mc within a scope where it is visible to both managers of click, this will place the two managers in one place. So to do this I would need them all be designating the code of navigation, the root.

    So, how can I access the root workss_mc?

    It is good news.

    Now, what happens if you just after on the main timeline - none other than the trace:

    function clickHandler(event:MouseEvent) {}

    workss_mc = new mc_workss();

    workss_mc.addEventListener ("closeButtonClick", onCloseClick);

    workss_mc.x = 225;

    workss_mc.y = 200;

    addChild (workss_mc);

    removeChild (work_mc);

    }

    function onCloseClick(e:Event):void {}

    trace ("clicked")

    }

  • How to download to iCloud for iOS for offline access device

    How can I download a file from iCloud drive iPhone 6 for offline access?

    The file would need an app to run in.  For example, a Word file could run in the application of the word iOS.  What kind of file is it?

  • How can I put an icon on your laptop MAC Book Air - i.e. Facebook (for faster access)?

    How can I put an icon on your laptop MAC Book Air - i.e. Facebook (for faster access)?

    Drag it to your desktop.

  • Extend my extreme network with another extreme - waiting for internet access

    Hello - I have a new generation Airport Extreme (let's call it Extreme1) connected to a Comcast modem and it works very well. The extreme will be the router that the modem has no router function. I'm trying to expand my network to another room with another extreme (let's call it Extreme2). I have a connection cable between two rooms. Extreme1 has an ethernet cable from one of its LAN ports connected on port WAN Extreme2. When I try to create a new network with Extreme2 (in aid of the same name, passwords, etc.) it does not work. He was suspended at the end when he is looking for a connection ("Waiting for internet access")-I did the following things based on what I read here:

    1. Changed IPv6 link local parameters
    2. Tried the whole upward on my Macbook and tried on my iphone
    3. The Wan first and then tried to change the configuration after you done for Extreme2 by creating a network
    4. Tried to create a network with Extreme2 connected directly to the modem
    5. Extreme2 factory reset after every attepmt

    And nothing works. Kicker is, I also have a reasonably new airport express and the same thing happens to her as well.

    Do I need to adjust some parameters of network that I'm not aware of? Is it possible that my LAN ports are disabled on Extreme2? It is brand new.

    Thanks for any help.

    Have you used the Apple Setup Assistant?  If you did, it had notified you that the extreme second was being configured "add using Ethernet. The wizard will automatically configure the second airport with the appropriate settings for you.  All you have to do is enter a name of device for the second AirPort Extreme.

    Here I'm assuming that you reset the second extreme to parameters by default until you set it up again and that your second Extreme is the current version of the "tower" or that of previous versions "flat or square.

    The example below shows an AirPort Express as the device which is the extension of the network, but you will see the name of your network and AirPort Extreme on your configuration screen.

    Post back if you need some tips on using the "Wizard" for your configuration.

  • Cannot access the VIDEO CALL button

    Downloaded Skype 5.8, all OK but can not access the "Video call" button (it is not highlighted). I suspect that the video can be disabled. How to check my video call button is turned on?

    What do you see when you go to Tools-> Options-> video settings?

  • Ideas for a COM active USB push button device

    Hello world

    What I want to do is very banal and straighforward, but I would like to have some ideas of the community about my question.

    Essentially what I want to do, it's some type of VISA helped COM device control program timer in my LABVIEW program. What my program is currently controls vibration motors by an Arduino MEGA, using the Labview for Arudino SDK files.

    That guys do you recommend for a sort of Staples 'Easy button' feature that can be turned on and detected as a FTDI COM device USB? Is there something out there on the market that might be easier to just buy premade, or it would be relatively easy to build such a device? The final objective is to capture the reaction time (in ms) of the subjects who are exposed to vibratory stimulus of the engine.

    Thank you!

    Check an arduino

  • What is the reward for having been a member of the Panel of feedback from Windows, and when you are eligible to receive the reward?

    I think remember that the reward was a new version of Office, but it's been about a year that I joined the Panel of feedback and had run it on my computer at all times.

    There is no reward for having been a member of the Windows feedback program.  I have been a member myself for many years and never heard a single sound on their part.

  • Windows cannot find C:\WINDOWS\system32\rundll.exe. Make sure you typed the name correstly and then try again. To search for a file check the Start button and then click search.

    I tried to launch my Spysweeper and found that is not there, then I re downloaded and I could not install it because it was already on my computer.  I went to the control panel to remove and got the message:

    Windows cannot find C:\WINDOWS\system32\rundll32.exe.  Make sure you typed the name correctly and then try again.  To search for a file, select the Start button and then check the search...

    What should I do?

    Hi gsrow,

    You can go there!

    Cannot find the Rundll32.exe file when you open the control panel:
    http://support.Microsoft.com/kb/812340

    Alternatively, copy the folder C:\Windows\System32\DllCache Rundll32.exe file to the System32 folder. Ramesh Srinivasan, Microsoft MVP [Windows Desktop Experience]

  • When trying to start the disk check procedure, I get the answer, "cannot open volume for direct access. How can I fix?

    I get the above answer everytime I turn on the computer. (This is with AutoCorrect blocks checked). If I leave blocks unchecked, it follows a procedure 3 pass without rebooting and does not produce a result.

    * original title - to try to start the procedure of checking disk I get the answer, "cannot open volume for direct access. How can I fix? I ran the GET Microsoft virus check tnd an own result.*

    The application-specific permission settings do not authorization for the application server COM with the CLSID
    {DCBCA92E-7DBE-4EDA-8B7B-3AAEA4DD412B}
    the user NT AUTHORITY\SYSTEM SID (S-1-5-18). This security permission can be modified using the Component Services administrative tool.

    In the opposite case

    http://blog.ray1.NET/2008/01/WinXP-SP3-DCOM-system-error-dcbca92e.html

    http://TechNet.Microsoft.com/en-us/network/bb545879

    http://www.blackviper.com/wiki/Network_Access_Protection_Agent

Maybe you are looking for

  • Satellite Pro P300 - no sound on Windows 7

    Hello world I had a serious problem with my Satellite Pro P300. I have all the drivers for download on the website of toshiba installed but I have no sound same with headphones. When I am playing music the spectacle of the sound icon he is read but a

  • 12.3.2 iTunes update is causing FLICKER iTunes

    I have a WINDOWS 7 OS Earlier versions of iTunes has worked without problem. This morning I updated iTunes to version 12.3.2 Once the update has been installed, iTunes information began to Flash (not the iTunes menu bar) I tried to restart the comput

  • Lenovo Z460 stops frequently

    It started last month when it shutsdown often... I brought to the store where I bought... advised me to buy a new antivirus... then I did... but the problem persists... 5 x, I went to the store to have it checked, but they don't always say theres no

  • How can I report a possible fraud attempt?

    I got a call from so-called Tech Dept for Windows operating system.  They said that 72.2% of my system was already damaged.  They wanted me to buy security software at the price of 1 year, 2 years or life.  I told them I want to come back with them. 

  • I got sudeenly. No sound. Stopped in middle of session error code: C00D11BA 80040256

    Above is codes I got sudeenly. No sound. Stopped in middle of session. Couldn't come back. Says no audio installed.