PDA

View Full Version : Movie will not load


FlashFool
10-27-2005, 09:18 PM
I have a slideshow that I have created for a presentation and I just put buttons into it. There are about 9 slides and the whole thing is about 2megs large. I put buttons on the first slide and tested it, everything went well, I then tried putting buttons in the rest of the show to let smoeone navigate the thing on their own. Hoever, when I publish or export the movie in any way it locks up about half way through. I've gone through and checked my code which seems to be ok.

Here are some examples:


on (release) {
gotoAndPlay( "Welcome", "1");
}


or


on (release) {
stop();
gotoAndPlay( "Welcome", "1");
}


I also included some ActionScript in the same frame as some buttons. Just a stop global function allowing someone to read the frame and then proceed on their own.

Can anyone tell me what is freezing this?
:confused:

sophistikat
10-28-2005, 08:38 PM
are you using scenes?
to simply your life, if your using scenes or not, on the first frame of each slide make a frame label "slide1", "slide2", "slide3" etc. etc.

you buttons will like this when you're on slide 2//previous btn
on(release){
_root.gotoAndPlay("slide1");
}

//next btn
on(release){
_root.gotoAndPlay("slide3");
}

//if you don't want the timeline to play change gotoAndPlay() to gotoAndStop()

sophistikat
10-28-2005, 08:48 PM
on your first frame of your presentation
// keep track of our current slide
var currentframe = 1;

// your previous btn
on (release) {
// sub one to its current value
currentframe --;

// using our variable go back one slide
_root.gotoAndPlay("slide" + currentframe)
}

// you next btn
on (release) {
// add one to its current value
currentframe ++;

// using our variable go foward one slide
_root.gotoAndPlay("slide" + currentframe)
}

btw stay away from using scene's you're just creating headaches for yourself, instead use frame labels... you'll have more control of your projects