AddChild(new button()) - How to add a name to this new created button

Hello,
Lost my old nickname, i was Pluda, now exPluda?.
well, tring to use a loop to add some buttons to my work, but need to reference their names so I can have diferent x positions for each. How to do that?
for ( var sm:uint = 0; sm < sub_menus.length; sm ++ ) {
        hsm.addChild(new bt_sub_menus());
        hsm.bt_sub_menus.x -= hsm.x-10;
        hsm.bt_sub_menus.y = hsm.bt_sub_menus.height+sm*15;
this does not work, i just get one button placed where I want.
Thanks!

Hello,
it works, but the first button doesn't places himself at hsm.x as he should.
this is so far one of my greatest difficulties in AS3, controling events inside loops.
in as2 we could use something like
function whatever() {
     n = 0;
     for(n = 0; n<20; n++) {
          do stuff here, like per example fade in of movieclip
          n++
in as3 I can't make this, I tried during this week to have some movieclips to place themselfs inside one sprite, using one timer to make each placement every 2 seconds. No results... they all are placed at same time.
Its been dificult this as2 to as3 transition, (I just purchase flash cs 3 a couple of monts)
Thanks

Similar Messages

  • Itunes wi-fi sync; how do I add a name for my new computer on the ipad 4?

    RE: itunes wi-fi sync;
    How do I add a name for my new macbook pro computer on the ipad 4?

    You cannot add a name for Mac on the iPad. I assume that you mean in the WiFi sync setting - not possible.

  • How do I create a Skype Name in this new environme...

    For a variety of reasons, I have created a new Microsoft Account. In attempting to set it up with Skype, I was never asked to create a Skype Name. This has created issues sining into Skype, as well as telling people how to Skype me. I do NOT want to give them my email address as my Skype contact. A Skype name is much more suited for this situation.
    How do I create a Skype name that people can use to call me?
    This beggs the question of why Loging into Skype and idnetification is co complicated. Associated with this one account there are the following methods of primary identification: Skype Name, Microsoft Account, Display Name, Skype Community Name, and there seems to be an additional display name for each Skype accont in the Community which begins with live: and then a modified form of the user's email address. That is A LOT to remember. I had a difficult time just logging in because it asks for my Skype name and the blank would not accept any of the aforementioned identifications. I had to get here by signing into Skype Desktop and then clicking a link to go through rather than signing in. The sign in would not accept my credentials.
    Bottom line is all these issues would go away if I could figure out how to get a skype name.

    See this:
    http://community.skype.com/t5/Security-Privacy-Trust-and/New-to-Skype-and-having-trouble-signing-in/...

  • How to add an image for the new form?

    I created a new form,and I want to add an [image] to the toolbar in the new form.How to add [image] for a form?
    Like:
    [image] File Edit Tool Help
    My Form
    Thanks in advance!

    Thank you!
    Maybe the message I sent yesterday have some mistakes.
    Form version 12.0.5.1
    I want it this way:
    How to add [image]?
    [image] Manager Maintenance
    Browser Open Save Help
    -- My Form --
    -----------------------------------------------------------------------------

  • MSRV* Reports: How to add Vendor name?

    howdy gurus!
    Appreciate very much for any guidelines on how to add vendor name in MSRV* reports.
    Cheers,
    Ron

    Thanks for the inputs guys.
    So there's no technique yet to include it (similar to FBL*N and CJI3/KSB1).
    No available note also in SAPNotes.
    I already developed the Z*  report but the key user requests the possiblities in MSRV*.
    Cheers,
    Ron

  • I'm a iMac new user,how to add signture to my email?

    I'm a iMac new user,how to add signture to my email?

    From the Mac Mail menu bar click Mail / Preferences then seelect the Signatures tab.
    You can add signatures from there.

  • HT5654 I have a new computer, Windows 8.  My old laptop died and I used to Sync my iPad and iPhone on that device.  Now I want to update, the new computer states that I do not have permission.  How do i change permissions to this new computer?

    I have a new computer, Windows 8.  My old laptop died and I used to Sync my iPad and iPhone on that device.  Now I want to update, the new desktop computer states that I do not have permission.  How do I change permissions to this new computer?

    Did you authorize it?

  • I bought the photoshop install online and I put it on my laptop. But now I have a new and better computer for photo and video but I can not figure out how to reinstall my photoshop on this new computer. When I bought it, they said I would be able to insta

    I bought the photoshop install online and I put it on my laptop. But now I have a new and better computer for photo and video but I can not figure out how to reinstall my photoshop on this new computer. When I bought it, they said I would be able to install it on 2 different computers. PS they are both PC computers.

    Downloadable installation files available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4, CS4 Web Standard | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 |12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7
    Lightroom:  5.7.1| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.window using the Lightroom 3 link to see those 'Important Instructions'.

  • HT4623 How can I get rid of this new update and go back to the previous one and how can I register a complaint with Apple?

    How can I get rid of this new 7.0.2 update and go back to the previous one and how can I register a complaint with Apple?

    You can't go back.
    You can leave feedback: http://www.apple.com/feedback

  • I want to create a "Play All" chapter marker that will play the video from start to finish in addition to the standard chapters I have-I guess I can auto start the DVD but would prefer a button-how and where would I put this "play all" marker??

    I want to create a "Play All" chapter marker that will play the video from start to finish in addition to the standard chapters I have…I guess I can auto start the DVD but would prefer a button…how and where would I put this "play all" marker?? Thanks..

    The start chapter button is a play the whole movie button regardless of how many other markers you have.
    Once a DVD starts playing it continues to the end.
    Chapters marker simply gives the viewer a place to start playback whether it be the start, middle or near the end.
    Al

  • I just updated to Pages 5.0 and I am writing a document that uses both, Spanish and English...I used to use the inspector to change spelling and languages. How do I do that in this new version?

    I just updated to Pages 5.0 and I am writing a document that uses both, Spanish and English...I used to use the inspector to change spelling and languages. How do I do that in this new version?...HELP!!!

    jedimaster Master wrote:
    how do I do both?
    By choosing SET UP for the "automatic" item at the bottom of the list I referred you to earlier

  • How to transfer my certificate to this new account from old acount

    how to transfer my certificate to this new account from old acount

    You don't.  Registration is a one time thing that you do the first time you install an application.  Once registered it does not need to be done again.
    You should see if yoiu can have the activations reset before you try installing on a new machine so that you still have the two activations that are available to you.  If not, you should still have an activation available for use with the new installation.
    To reset activations contact Adobe Support and ask them to reset your activations....  For the link below click the Still Need Help? option in the blue area at the bottom and choose the chat option...
    Serial number and activation chat support (non-CC)
    http://helpx.adobe.com/x-productkb/global/service1.html ( http://adobe.ly/1aYjbSC )
    To get it working on the new machine you just install and activate using the serial number you should already have.

  • How to add more than one datafile while creating tablespace

    how to add more than one datafile while creating tablespace. I know by using alter command i can add datafile but i want while creating tablespace

    Hi Dadivela,
    how to add more than one datafile while creating tablespace.Here is the syntax:
    !http://www.dba-oracle.com/images/create_tablespace.jpg!
    I do it like this:
    create tablespace myts
    datafile
    *'/u01/app/oracle/db1.dbf' size 100m,*
    *'/u02/app/oracle/db2.dbf' size 200m;*
    Here are my complete notes:
    http://www.dba-oracle.com/t_tablespace_create_alter.htm
    Hope this answers your question . . .
    Donald K. Burleosn
    Oracle Press author

  • I just bought a new computer, how can I start syncing with this computer without erasing everything already on my iphone?

    I just bought a new computer, how can I start syncing with this computer without erasing everything already on my iphone?
    Everytime I try to use the option sync manual it wants me to erase everything.
    Please help

    The iPhone can be synced to one and only one computer at a time. Before you "marry" it to your new computer, be sure your new computer contains all the old computer's information. When you sync the iPhone to a new computer, it will be erased first. Then, whatever is on your iTunes Library will be synced to the iPhone.
    Read: iTunes: How to move your music to a new computer
    You can also copy its previous backup from the old computer to the new one, then "restore from backup".
    From iTunes: About iOS backups
    Where iTunes backups are stored on your computer
    The folder where your backup data are stored varies depending on the computer's operating system. Make sure the backup folder is included in your periodic data-backup routine.
    iTunes places the backup files in the following places:
    Mac: ~/Library/Application Support/MobileSync/Backup/
    Windows XP: \Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\
    Note: To quickly access the Application Data folder, click Start, and choose Run. Type %appdata% and click OK.
    Windows Vista and Windows 7: \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\
    Note: To quickly access the AppData folder, click Start. In the search bar, type %appdata% and press the Return key.

  • My computer crashed, I recovered all my itunes files, I have them on a file on my new computer, How do I connect them to my newer version of itunes on my new computer?

    My computer crashed, I recovered all my itunes files, I have them on a file on my new computer, How do I connect them to my newer version of itunes on my new computer?

    Any music purchased through the iTunes store can be downloaded again for free as long as you are signed in with the Apple ID you used for the original purchase.  Any other music you had in iTunes should be easily accessible in your system back up or from the CDs you ripped from originally.

Maybe you are looking for