Page 1 of 1

Attach movieclip on p2f page?

Posted: Tue Apr 08, 2008 10:56 am
by cambiata
Hi!

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();
Could anyone give me a clue to what's wrong?

Jonas

Re: Attach movieclip on p2f page?

Posted: Thu Jan 19, 2012 8:23 pm
by xylaexley
Great! Thanks for this one!

Re: Attach movieclip on p2f page?

Posted: Mon Aug 27, 2012 1:50 am
by chardroyston
anyone? I have the same problem.