# Access to first frame variables from SWC

**URL:** <https://forum.kirupa.com/t/access-to-first-frame-variables-from-swc/315317>\
**Category:** flash\
**Created:** [October 22, 2010, 8:17pm UTC](https://forum.kirupa.com/t/access-to-first-frame-variables-from-swc/315317 "2010-10-22T20:17:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![havarez](https://avatars.discourse-cdn.com/v4/letter/h/7993a0/32.png) [@havarez](https://forum.kirupa.com/u/havarez)\
**Post date:** [October 22, 2010, 8:17pm UTC](https://forum.kirupa.com/t/access-to-first-frame-variables-from-swc/315317/1 "2010-10-22T20:17:20Z")

</div>

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!
