Hi,
I am new to AS3…and already fasinated by it:)… I have a question though…
I am creating simple website using Flashdevelop and FLASH CS3… I always want to have a separate file (eg Main.as) which will have all my code…
Now my question is :
I have several frames whrere at 1 frame I have an intro … and 2,3,4,5, my content …
my buttons are being created at 2,3,4,5 frame but not at 1 … when I try to initiate a :
english_btn.addEventListener(Event.ADDED_TO_STAGE, goEnglish);
function goEnglish(e:MouseEvent):void
{
gotoAndStop(“Home_en”);
}
I always got the above error…
When I put the code at frame 2 then everything works fine… also when I delete the 1 frame (intro) and my buttons are initiated at 1 frame everything works again fine…
it must be very simple but I cant find how to solve it…:sen: