Learning AS3

Soldato
Joined
25 Sep 2003
Posts
3,725
Location
Manchester
I'm trying to learn AS3 from scratch, i've done a tiny bit of Java which seems similar. I spent all of yesterday learning it as much as I could but didn't get too far. Looking for good forums or online tutorials to get me up to speed. Any recommended books would be cool too.
 
Ended up on Lynda.com with a weeks free trial access to everything. Pretty good tutorials!

I'm stuck again though and was hoping someone could help. I have a function that needs to query a variable in a movie clip but as it's in a movie it says it's undefined. I defined it as a number on the main stage but not sure how to make it global? I think that's my problem, the variable in the movie isn't associated with the main stage one even though they have the same name.

Main stage actions

var shrinkState:Number = 0;

movie clip actions

shrinkState = 1;

Error that shows is 1120: Access of undefined property shrinkState
 
Last edited:
Back
Top Bottom