# Variables from a loaded swf

**URL:** <https://forum.kirupa.com/t/variables-from-a-loaded-swf/26075>\
**Category:** Uncategorized\
**Created:** [July 19, 2003, 5:15am UTC](https://forum.kirupa.com/t/variables-from-a-loaded-swf/26075 "2003-07-19T05:15:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Illuminae](https://avatars.discourse-cdn.com/v4/letter/i/b5ac83/32.png) [@Illuminae](https://forum.kirupa.com/u/Illuminae)\
**Post date:** [July 19, 2003, 5:15am UTC](https://forum.kirupa.com/t/variables-from-a-loaded-swf/26075/1 "2003-07-19T05:15:27Z")

</div>

hey, if i set a variable from an swf that i load into the main movie, will the main movie recognize the variable?  
thanks :beam:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 19, 2003, 5:52am UTC](https://forum.kirupa.com/t/variables-from-a-loaded-swf/26075/2 "2003-07-19T05:52:08Z")

</div>

Sure, if you target it right 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 19, 2003, 5:54am UTC](https://forum.kirupa.com/t/variables-from-a-loaded-swf/26075/3 "2003-07-19T05:54:01Z")

</div>

erm. target?  
what would i need to target?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 19, 2003, 5:55am UTC](https://forum.kirupa.com/t/variables-from-a-loaded-swf/26075/4 "2003-07-19T05:55:29Z")

</div>

Target the variable 😛

To use a variable you need to target the timeline it is on.

So lets say you load a movie to an empty movie clip called “container” and inside that loaded movie is a variable on the main timeline called “myVar” you would target it as container.myVar

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 19, 2003, 5:57am UTC](https://forum.kirupa.com/t/variables-from-a-loaded-swf/26075/5 "2003-07-19T05:57:05Z")

</div>

ahha! thanks a bunch. i did not know that. :beam:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 19, 2003, 5:59am UTC](https://forum.kirupa.com/t/variables-from-a-loaded-swf/26075/6 "2003-07-19T05:59:14Z")

</div>

🙂
