|
-
No more ROOT in Actionscript 3? Then how to do thie following???
Hi,
I can't find how to do the following.
On my main timeline I have 2 movieclips. mc1 and mc2
Now in mc1 there is nothing (empty at the moment) and in mc2 there is a button with a click event defined.
The clickevent should just do a mc1.graphics.lineTo(100,100);
But that seems to be a problem, since mc2 and mc1 are both added to the main stage, but they seem not to know anything about eachother.
I thought that it would be enough just to call root.mc1.graphics.lineTo(100,100) from the button in mc2, but that seems not to work.
Anyone know a good solution to be able to control movieclip1 from a button in movieclip2 if they are both movieclips on the main timeline?
Regards,
Bart
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|