# How to pass a variable form main fla to external loaded as file?

**URL:** <https://forum.kirupa.com/t/how-to-pass-a-variable-form-main-fla-to-external-loaded-as-file/328796>\
**Category:** Uncategorized\
**Created:** [June 17, 2012, 9:10pm UTC](https://forum.kirupa.com/t/how-to-pass-a-variable-form-main-fla-to-external-loaded-as-file/328796 "2012-06-17T21:10:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![straris](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@straris](https://forum.kirupa.com/u/straris)\
**Post date:** [June 17, 2012, 9:10pm UTC](https://forum.kirupa.com/t/how-to-pass-a-variable-form-main-fla-to-external-loaded-as-file/328796/1 "2012-06-17T21:10:27Z")

</div>

Im a newbie at this,

Im trying to pass a variable from main fla to an external as file without success, i tried root.variable to the as file but still getting the undefined error. Any suggestions?
