Simple problem - Error 1046
Hi,
So when I publish my flash I have this error "1046: Type was not found or was not a compile-time constant: objectifs_btn."
Here's my small code...
import flash.display.*;
import flash.events.MouseEvent;
objectifs_btn.addEventListener(MouseEvent.CLICK, ouvrirPopup, false, 0, true);
function ouvrirPopup(evt:MouseEvent):void{
popup_mc.gotoAndPlay("on");
}
(objectifs = objective and ouvrirPopup = openPopup in English)
I went into my AS3 parameters to uncheck "declare automatically every instances on the stage" (might be written a bit differently, litteral translation here).
My movieclip instances are really named "objectifs_btn" and "popup_mc", no mispelling.
I looked into different forums telling me to add the first two lines (the "import" ones), which I did. But the problem is still there.
I'm pretty sure it's an obvious problem, but I just can't see it.
Thank you very much. ![]()
