Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

ActionScript 1:1 - Use Arrays to Access Objects on the Stage (episode 36)

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,090
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 20, 2010

Combine stored objects on the stage with loops and other ActionScript statements using arrays. Doug shows how to tie in movie clips with arrays.

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (AdobeActionScript)

  • very good as usual....

  • @sayweb - thanks!

see all

All Comments (7)

Sign In or Sign Up now to post a comment!
  • Is it possible to affect the moveclips directly by adding the iterator value.

    I.e something like

    for(i = 1;i <5;i++)

    {

    circle + (i).alpha = .2

    }

  • thanks, that was very interesting and help me a lot to improve and finish my car game xD

    10 lines into 2 ;)

  • @zippythewildone Yet again, I ask a question and end up figuring it out on my own, hahaha. I do that at school all the time too. Just in case anyone was wondering the same thing: var valuePotions:Number; var valueCoins:Number; var valueSpells:Number; var potionNumber:String; var coinNumber:String; var spellNumber:String; potionNumber=valuePotions+" Potions"; coinNumber=valueCoins+" Coins" spellNumber=valueSpells+" Spells" var myItems:Array=[potionNumber,co­inNumber,spellNumber];
  • This series is so helpful!

    Trouble is sometimes the material taught isn't good for practical use because its too vague. I don't blame you actionscript is definitely a skill you build upon.

    I want to make a game with an inventory... I was thinking I could use an array: myInventory to do this. Is there a way that I could make a menu detect how many of a certain item is in the array? for example... If myInventory has "Potion", "Armor", "Potion" how would I make a menu that says Potion/s 2 Armor 1?

  • Thanks very much, excellent series and what i learned is all clear and useful,

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more