PDA

View Full Version : [Flash 8] dynamic mc on separate timeline



cup_of_tea
November 25th, 2005, 07:01 PM
What I'm trying to do is find a way to have dynamic movieclips on separate timelines but within the same level.


I tried the following but nothing is drawn on the screen:

In the main timeline, frame 1:

_root.createEmptyMovieClip("mc1",1);

On the stage is a movieclip called mcOne bought in from the file library


In mcOne's timeline, frame 1:

mc1.lineStyle(2, 0x00ee00, 100);
mc1.moveTo(0,0);
mc1.lineTo(100,100);
trace("mcOne code");



While the trace outputs the message, no line appears when I test the movie.

Any ideas? I'm pretty new to Actionscript so any advice would be a great help.

Barn
November 25th, 2005, 08:48 PM
The mc1 movieclip is probably not instantiating in time for the line drawing commands to find anything into which to place the lines.

Maybe try tracing mc1 to make sure it's there, first.