s it possible to attach the same movieclip twice?
for example i have two buttons and both attack Main_Page however when i test the flash and error reads “Duplicate function definition”
is there a way of attaching the same movieclip more than once?
im using this code to attach the movie but when i add this code twice on two buttons duplicate error shows:
s_next.addEventListener(MouseEvent.CLICK, attachMovieclip);
function attachMovieclip(event:MouseEvent):void {
var addPage1:Page1 = new Page1();
addPage1.x= 0
addPage1.y= 0
addChild(addPage1);
}
the smile above not suppose to be there is actualy : and P
thanks for any help