Skip to main content
July 15, 2008
Answered

Replacing TellTarget ()

  • July 15, 2008
  • 2 replies
  • 447 views
Back in Flash 5, “The last time I did any action scripting” I would use the function “tellTarget(_parent) { myVar1 = 0;}” in a keyframe of a loaded movie clips timeline called “myMovie” to change the value of the “myVar1” variable to a value of “0” in the main timeline.

In AS3 I have figured out how to change the value of the “myVar2” in the loaded “myMovie” using this command & syntax “myMovie1.myVar2 = 1;” from the main timeline but I haven’t figured out how to change the “myVar1” in the main timeline from the loaded movie clip.

Can someone help me understand how to change the value of a variable in the main timeline from a loaded clips timeline?
This topic has been closed for replies.
Correct answer robdillon
Try:

MovieClip(parent).myVar1 = 0;

2 replies

July 21, 2008
Thanks that worked great! - That was the key to solving my problem!
robdillon
robdillonCorrect answer
Participating Frequently
July 16, 2008
Try:

MovieClip(parent).myVar1 = 0;