Publishing for Flash Player 5 in MX 2004

I have a work in hands that's being published for flash player 5.
Using attachMovie(), and having to use the target path to the movie clip later, I stored the reference to the attached movie like I always do:

Actionscript:
  1. temp_mc = target_mc.attachMovie("ball_mc", "ball_mc", 1);

Well... this doesn't work in FP5!
But the same can be achieved with an extra line of code:

Actionscript:
  1. target_mc. attachMovie("ball_mc", "ball_mc", 1);
  2. temp_mc = target_mc.ball_mc;

The only problem is that it took me some minutes to figure this out.

Another curious situation is owning Flash MX 2004 and not being able to save a file for Flash 5... nevertheless I can publish it for that version.

About nuno mira

flash developer
This entry was posted in Uncategorized. Bookmark the permalink.

Comments are closed.