Attach movieclip on p2f page?

Wtite here if you are not sure in which category to create your topic
Post Reply
cambiata
Posts:1
Joined:Tue Apr 08, 2008 10:45 am
Attach movieclip on p2f page?

Post by cambiata » 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...

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

xylaexley
Posts:1
Joined:Thu Jan 19, 2012 8:20 pm

Re: Attach movieclip on p2f page?

Post by xylaexley » Thu Jan 19, 2012 8:23 pm

Great! Thanks for this one!

chardroyston
Posts:1
Joined:Mon Aug 27, 2012 1:35 am

Re: Attach movieclip on p2f page?

Post by chardroyston » Mon Aug 27, 2012 1:50 am

anyone? I have the same problem.

Post Reply