How do you access a child element in Actionscript 2?

I have the following Flash structure.
Main Timeline
---test_menu (Movie Clip)
------test_menu_sub (Movie Clip)
---------submenu_item (Button)
On Main Timeline (2nd frame), I added this code:
test_menu.test_menu_sub.submenu_item.onPress = function () {
      trace("clicked");
However, this doesn't work. Please see the following files for reference. Any help will be appreciated.
FLA - https://dl.dropbox.com/u/92494048/test.fla
SWF - https://dl.dropbox.com/u/92494048/test.swf

if that code doesn't work, you probably have an incorrect path/name.  to test if that is the issue, use:
trace(test_menu.test_menu_sub.submenu_item)
to see is the movieclip is found.  if not, you have an incorrect path/name.  if it is, you are not clicking that button.

Similar Messages

  • Please Help - How do you access/read an element in array of strings

    Hi,
    I want to load up some VI's into subpanels and I have created a for next loop.  Outside the loop is my files and a build array function.  How do you read the first element of the string array?
    I have been programming in Agilent VEE Pro for several years and I am only just learning LabVIEW.  It seems very different!  In VEE, you could use a formula to pass the first element of an array. eg. Array[Element No]
    TIA

    Hi,
    Well, I did try this but I get this error message:
    You have connected a scalar (non-array) data type to an array of the same data type. This type conflict may be resolved by building the scalar type into an array. Check for a tunnel on a loop that has indexing incorrectly disabled.
    The type of the source is string.
    The type of the sink is 1-D array of
    double [64-bit real (~15 digit precision)].
    Attachments:
    MyCode.vi ‏8 KB

  • How do you connect your photoshop elements on your computer to your account online? and how do you create a customized url? how does the gallery work and how do you access it? i have trouble signing in on my program from my computer to connect to the onli

    how do you connect your photoshop elements on your computer to your account online? and how do you create a customized url? how does the gallery work and how do you access it? i have trouble signing in on my program from my computer to connect to the online photoshop, and I really want to create my own customized url and post photos to my gallery and share them with the world, family, and friends, but i need help because i can't figure how to do any of this, would really appreciate feedback and assistance, thanks, - claire conlon

    To add to sig's reply, "calibrating" does not calibrate Lithiu-Ion batteries, it calibrates the charge reporting circuitry.  If you look at the effect of deep discharging Lithium-Ion batteries in the data from the independent test group, Battery University, you will see that doing so shortens the life of the battery significantly. It looks like an optimum balance between use and life is at a discharge level of 50%.

  • How can I access the selected element of a DropDownByIndex-box?

    Hi,
    I want to create a WebDynpro with two web services. I created the first request with the first web service and the results are displayed in a DropDownByIndex-Box. Now the user should choose one of the results and I would like to use this for the request with my second web service. How can I access the selected Element of a DropDownByIndexBox in the Code?
    Thank you!!
    Julia

    Hi Julia,
    when user select one element in drop down it automatically set lead selection of node binded to dropdown.
    For example if you bind a dropdown to node myNode with value attribute myAttribute the lead selection of node myNode is set in the position of element choose from user.
    So to take this chooised element use this code:
    wdContext.currentMyNodeElement.getmyAttribute()
    bye
    Andrea

  • Silent Config: How do I create a child element

    Hello,
    I want to now how to refer to a child element of a new created object. The I want
    to be able to set some of the parameters of the child object:
    i.e.
    create Server "myserver" as s1;
    create Server.WebServer "myserver.mywebserver" as ws1; (???)
    How is this done?? Is it mandatory that I previously define the child element
    in the template or I can create it on the fly.
    Regards
    Cristina

    Cristina,
    Did you manage to solve this issue? I am facing the same situation.
    Best,
    Oscar

  • How do you access updates to apps from the App store after changing to a new ID because the password on the old ID was changed and you don't know what it is now?

    How do you access updates to apps from the App store after changing to a new ID because the password on the old ID was changed by the former husband and you don't know what it is now?  And you set up your own new ID and account but can NOT access the updates, from the App store for the many apps that you already have, because they require that you sign in with that former now inaccessible ID and account and password?  Call it a problem of modern times and changing relationships, if you want to be charitable.

    So I guess it will only be new apps that I download that are allowed to give me their updates while 13 updates wait for me on an ID I can no longer access.
    Yes...  sorry.
    In the future, if need be, you can re download your purchases for free  >  Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Good rule of thumb is to back up your purchases regardless  >  Mac App Store: Backing up your app purchases

  • How do you access files from an external harddrive connected to TC through USB from iPad or windows computer?

    How do you access external hard drive data that is connected to TimeCapsule through USB from iPad or knows based computer?

    Filebrowser for the iPad does this very well.
    FileBrowser - Access files on remote computers for iPhone, iPod ...
    Cannot help on Windows, but another PC guy might be able to answer. Some possible clues here:
    http://support.apple.com/kb/HT1331

  • Iphone ios5..I upgraded to ios5 on my iphone 4 and in the demo video on the Apple website it shows a cute animation screen with the user dragging what appears to be balloons on a string how do you access this screen?

    iphone ios5..I upgraded to ios5 on my iphone 4 and in the demo video on the Apple website it shows a cute animation screen with the user dragging what appears to be balloons on a string how do you access this screen?
    Not sure if this is a game or app or not...it shows nothing about it and explains nothing about it...but it is there on the demo video on the apple website for the add to upgrade to ios 5...it shows the user dragging threads and the little icon monster at the bottom of the screen catches them

    Yea thats a game called "Cut the Rope" and it can be found in the App Store for $0.99 or you can buy the Lite version for free.

  • HT4847 How do you access your pictures that you stored on icloud from your ipod touch? I lost my ipod touch and want to get my photos from icloud but i cant seem to find any ******* help. where the **** is icloud and how do you get your stored pictures ba

    How do you access your pictures that you stored on icloud from your ipod?

    sunshinecowgill wrote:
    We have three operational computers, one does not have iTunes on it.  Since Apple is saying I have more than 5 authorized computers, and I can't imagine what they are, I am afraid to deauthorize all my computers.  See what I mean?  I just wanted to ask the question about how I can find out WHICH computers Apple thinks I have authorized, so I can decide if it's safe to deauthorize them all or not. 
    You could have more 5 computers authorized if you ever, for example, reformatted a hard drive or replaced a hard drive without deauthorizing the computer first. Apple's system would see that as a different computer, even though you don't. There's nothing to be afraid of in deauthorizing everything and the reauthorizing what you actually have. You won't lose any data. Mistimp is correct, they can't tell you which computers are authorized.

  • How can you access the printer settings in CS5 when using Epson 4900?

    How can you access the printer settings when using Epson 4900 with CS5 12.1 x 64

    Open the print dialog box, click "print settings".

  • How do you access folders/files in other users Finder list?

    How do you access folders in other users finder list, once you have shared the folder or file

    You should be able to open and view the contents of any directories you have access permissions to using FInder, by navigating the directory tree to the folders in question and opening them as you would your own folders. If you know the full path-name of the directory, you can enter it into the Finder navigator opened by Apple-Shift-G; the dialog that pops up uses the same directory listing method as all unix systems, and has tab completion for ease of use. In general, all users have their home directories in /Users/, or you can simply use ~/../<name> to go to the home folder of a user via the parent (..) directory of your home (~) directory. If you are experiencing bugs or errors with this, as opposed to simply not knowing how to do this, please post any details of your experience so that others can help troubleshoot your problems.

  • How do you access 'finder' when building Smart Previews in Lr5.

    How do you access 'finder' when building Smart Previews in Lr5

    C,
    What type of backup was it? I'm hoping you were using Time Machine or creating a Bootable Clone using Super Duper or Carbon Copy Cloner. If that is the case then I'd recommend starting over so you can restore all your data, applications, settings etc... You missed your first chance when you turned on the new system and it asked if you had another Mac you wanted to migrate from. You can get a  second chance to do this and migrate. Please carefully look over Pondini's Lion Setup Assistant tips beginning where he talks about Second Chance....and make sure you have the proper cable before starting. If your backup EHD has a USB connection that will be fine if it has a FireWIre 400 connection you will a cable like this one from Amazon.
    You can find these at your local computer store, Walmart, Radio Shack etc..

  • How do you access "trouble shoot" for mail.  My AOL account is set up on the mail icon but it some how defaulted to another Wi fi account and could not receive email.  We reset the the Wifi but somehow didn't complete the process.

    How do you access "trouble shoot" for mail.  Our AOL account is set up on the mail icon but somehow it defaulted onto another nearby Wifi account while everything else that was running stayed on our router.  We were unable to receive email on the AOL account and were directed to trouble shoot.  We reset the Wifi account but somehow didn't save it correctly.  Now we cannot get back in to reset it again.  Direction??

    Hello
    I don't really understand your question. The Mail application cannot independently access a different wifi network from the one your computer is using.
    Are you trying to troubleshoot your wifi (ie, you can't get into your own wireless network), or the Mail program (you can't get email)? Are there any error messages you see when you try to do one or the other?
    Matt

  • How do you access your itunes library from any computer

    how do you access your itunes account from another computer?

    You have asked two different questions?
    Your account is just a user name and password.  You can access that to buy content from any computer with itunes, just sign it.
    Your library wil only be where your put it. Yo can copy it from one computer to another, or from your backup copy of your computer ot another computer. In some countries you can download some past itunes purchases.
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • How do you access files on your time capsule from your mac?

    how do you access files on your time capsule from your mac?

    i had an old macbook pro that i had all the pictures on and i backed it up to my time capsule through time machine. i got a new macbook pro retina display recently and im wanting to see if i can get some of the pictures off of my time capsule now but i dont want all of them.

Maybe you are looking for