# Add value to main timeline variable

**URL:** https://forum.kirupa.com/t/add-value-to-main-timeline-variable/286572
**Category:** flash
**Created:** [April 17, 2009, 6:52am UTC](https://forum.kirupa.com/t/add-value-to-main-timeline-variable/286572 "2009-04-17T06:52:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![xPINKMERCEDESx](https://avatars.discourse-cdn.com/v4/letter/x/73ab20/32.png) [@xPINKMERCEDESx](https://forum.kirupa.com/u/xPINKMERCEDESx)
#### Post date: [April 17, 2009, 6:52am UTC](https://forum.kirupa.com/t/add-value-to-main-timeline-variable/286572/1 "2009-04-17T06:52:16Z")

</div>

hello…

I’m trying to add a value to a variable inside the Main .SWF from a loaded movie. More clearly,

My main movie name is Main.swf. On the main timeline of Main.Swf, I have a variable named currentMovie.

Now, I have other movies that are loaded into Main.swf. For example, cars.swf is loaded into Main.swf.

What I want to do is have code in cars.swf to add a value to the currentMovie variable in the Main.swf. I just need the correct syntax.

for example,:

MovieClip(parent.parent).currentMovie=“some\_value”; is not working for me…

I just need some direction with the syntax…thanls for any help.

x lisa x
