Hello forum!
I have maybe a strange question…
I use flashIDE(CS5) to create and organize my assets for flash game. Some movieclips need to have specific params.
I am typing them at a MC’s first frame:
[COLOR=“DimGray”]var shape :String= “circle”;
var material :String = “wood”;[/COLOR]
And then make them Export as MovieClip
For AS3 coding I use Flash Builder 4. When I create new Instance of this MC and trace values I get “null”. But if before trace gotoAndStop(1); typed then my values are ok (“wood”, “circle”).
Interesting, why this happens?
How to make my vars available from start?
Can I add something to MC’s constructor in flashIDE?
Thx!