Attach movieclip on p2f page?
Posted: Tue Apr 08, 2008 10:56 am
Hi!
Maybe I'm missing something obvious here... No problem creating a new movieclip on a p2f page, but I can't attach one...
Could anyone give me a clue to what's wrong?
Jonas
Maybe I'm missing something obvious here... No problem creating a new movieclip on a p2f page, but I can't attach one...
Code: Select all
// normal attaching to a simple moviclip works fine:
mcParent.attachMovie('mcAttach', 'mcAttach', 1000);
p1 = MyDoc.getPage(1); // Get the page movie clip
// Attaching to a p2f page DOESN'T WORK...
p1.attachMovie('mcAttach', 'mcAttach', 1000);
// Creating a new movieclip on the same page works fine!:
p1.createEmptyMovieClip("mcBox", 5);
p1.mcBox.lineStyle(5,0xff0000,100);
p1.mcBox.moveTo(300,100);
p1.mcBox.beginFill(0x000000,100);
p1.mcBox.lineTo(400,100);
p1.mcBox.lineTo(400,200);
p1.mcBox.lineTo(300,200);
p1.mcBox.lineTo(300,100);
p1.mcBox.endFill();
Jonas