I started a few years back with actionscript 3 when I got out of school and the first real job I had, I had to get into actionscript 2. So after about three years of coding things into actionscript 2, I have forgotten actionscript 3. This is really mind numbing mostly because all the tutorials and etc I keep finding uses classes and public functions and the etc.
The whole idea of this a basic slide show that we can run as a swf file or exe. Most of the code is gotoAndStop or gotoAndPlay commands. The toggles and navigation mebu has driven me a bit batty becuase of the strict class features of as3.
I have one target menu that comes up when the swf file begins. You click it to go to the next step or to go advance to additional steps. This is the navmenu as refeered to the code below. A button (called "menu") toggles this menu's visibily when clicked. A prev_btn and next_btn are on adjacent sides of the menu button that will allow it to move to the next frame label or preious frame label.
Then at any time, you could hit the menu button and bring up the main menu. From here you could move to varous stages of the timeline.
So I can't figure out how to do this with keeping the same graphics and ease of use.
//fscommands that set up the exit and fullscreen functions
fscommand("fullscreen", "true");
fscommand("allowscale", "false");
fscommand("showmenu", false);
navmenu._visible=0;
menu_btn.onRelease=function()
{
navmenu._visible=1;
}
//******************Initialization When Program first starts*********************
_global.initialize=function(){
gotoAndStop("sc1-step0-0");
};
exit_btn.onRelease = function() {
fscommand("quit");
};
reset_btn.onRelease = function() {
initialize();
};
callouts_btn.onRelease = function(){
if (callouts_mc._visible == true) {
callouts_mc._visible = false;
}else{
callouts_mc._visible = true;
}
};
highlight_btn.onRelease=function(){
ToggleHighlights();
}
function ToggleHighlights(){
showHighlights = !showHighlights;
if(showHighlights){
highlights_mc.gotoAndPlay("show");
}
else{
highlights_mc.gotoAndPlay("hide");
}
}
function ShowHighlights(){
if( showHighlights ){
highlights_mc.gotoAndPlay("show");
}
else{
highlights_mc.gotoAndPlay("hide");
}
}
//*******Start Program**********
initialize();
prev_btn.onRelease=function(){
gotoAndPlay("sc1-step1-0");
}
next_btn.onRelease=function(){
gotoAndPlay("sc1-step3-0");
}