This is the code.. I label anchor frames as s1 - s30...
Update mySlide on keypress. and on Next / Previous button
when i use a combo box or a in frame button.. I don't get mySlide updated.
How do is use a button in a frame
How do I update Myslide after using a combo box to change frames?
Appreciate your time.
Jackson
jskog
______
CODE
mySlide = 1;
maxSlide = 70;
trace (mySlide);
box1.changeHandler = function(){
gotoAndPlay (this.value);
trace (mySlide);
}
// I have the paramaters set here and the nav works good.
box2.changeHandler = function(){
gotoAndPlay (this.value);
// trace(mySlide); - It always traces >> 1
}
// list.addEventHandler
box3.changeHandler = function(){
gotoAndPlay (this.value);
trace(mySlide);
}
box4.changeHandler = function(){
gotoAndPlay (this.value);
}
box5.changeHandler = function(){
gotoAndPlay (this.value);
}
box6.changeHandler = function(){
gotoAndPlay (this.value);
}
box7.changeHandler = function(){
gotoAndPlay (this.value);
// trace(mySlide);
}
box8.changeHandler = function(){
gotoAndPlay (this.value);
// trace(mySlide);
}
// Next and Previous Button Action with Mouse
//Now add on keypress.
// these below work.
next_btn.onRelease = function() {
if (mySlide<maxSlide) {
mySlide = mySlide+1;
}
trace(mySlide);
gotoAndPlay("s"+mySlide);
};
previous_btn.onRelease = function() {
if (mySlide>1) {
mySlide = mySlide-1;
}
trace(mySlide);
gotoAndPlay("s"+mySlide);
};
var keyListener:Object = {};
keyListener.onKeyDown = function () {
if (mySlide<maxSlide) {
mySlide = mySlide+1;
}
gotoAndPlay("s"+mySlide);
Key.addListener( keyListener );
};
//mission_btn.on(release){
//_parent.gotoAndPlay("s49");
//}
Mod edit - Please

~BetaWar