Forgive me for my lack of as3 vocabulary. I’m working on an image viewer that contains 14 projects, each being their own external swf. I am determined to get a functioning invisible next button that takes you to the next image in the current project or to the next project if you are on the last frame in that project.
The current code works well enough starting at any project and clicking until you get to the next. When the next project comes up it stops working.
next_btn.addEventListener(MouseEvent.CLICK, loadnext);
function loadnext(evt:MouseEvent):void {
if(firstswf != null) {
if(firstswf.first_mc.currentFrame == 8) {
firstLoader.unload();
secondLoader.load(new URLRequest(“development.swf”));
highlighter.x = button2.x;
}
else{
firstswf.first_mc.nextFrame();
}
}
else if(secondswf != null) {
if(secondswf.second_mc.currentFrame == 4) {
secondLoader.unload();
thirdLoader.load(new URLRequest(“pool.swf”));
highlighter.x = button3.x;
}
else{
secondswf.second_mc.nextFrame();
}
}
and it goes on through the other 12 projects. It doesn’t seem to throw out any errors… can anyone help me with what is wrong?
Thanks, Nicole