ActionScript 1:1 - Use Arrays to Access Objects on the Stage (episode 36)
Uploader Comments (AdobeActionScript)
All Comments (7)
-
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,
very good as usual....
sayweb 1 year ago
@sayweb - thanks!
AdobeActionScript 1 year ago