Skip to main content
Participating Frequently
March 1, 2007
Question

Update variables in Movie Clip

  • March 1, 2007
  • 1 reply
  • 246 views
Hi!

Is there anybody who can help me with a simple (?) problem:

I have loded a movieclip into a movie:

var mcl:MovieClipLoader = new MovieClipLoader();
mcl.loadClip("Legend_movie.swf",legend_mc);

In the main movie a variable is changed by on EnterFrame:

figure_mc.onEnterFrame = function() {
size = circle_map_mc._width;
}

The variable "size" is also used by the movie clip.

Can anybody tell me how the movie clip can be updated for each "onEnterFrame"?

At the moment the movie Clip only reads the variable "size" at the first frame...

tm
This topic has been closed for replies.

1 reply

Inspiring
March 1, 2007
if size is declared on your main timeline, access it from your mc using _root.size
terjemiAuthor
Participating Frequently
March 1, 2007
Hi!

Actually it is circle_map_mc that is declared on the main timeline and changes in a motion tween....

In my movie clip I have tried:

shadow_mc._width = _level0.circle_map_mc._width;

and

shadow_mc._width = _root.size;

Both updates the movie clip once, but I need a continous updating as long the variable is changing (along the time line) in the main movie... Any cloue?