Ok, I have a project using scenes. Yes, I know, don't use scenes. Use movie
clips. I found that out after the fact, and I really just want to finish this
project now that I'm tired of it. Next time, I will "TRY" movie clips.
Promise...
Everything was working fine, until I decided I wanted to move stuff around to
make things easier & to "try" to at least turn my navigation into a movie clip,
with no success.
So... I have this lengthly animation/tutorial - almost 7 min @ 12fps.
Everything is compressed as much as possible - image files, took out uneeded
keyframes/blank frames/tweens/etc. I have a nice organized library, nice
organized layers, scenes, etc. Everything is locked & viewable when I scrub the
timeline. The file size is just under 1 MB.
Problem... when I view the swf or preview the file just recently, things
suddenly are acting funny. It's some how skipping over the 1st 35 frames (not
sure it's the number is exact, but it seems to be w/in a frame or two for EVERY
SINGLE scene.) Some of my navigation is suddenly acting funny/not working or
not consistanly. Yes, I made a few changes, but just moving some things around
on the timeline in one scene. I did not add any script. My last saved out
version is kind of old since I was checking the movie & saving over the most
recent one for the most part, but it was working. I'm so confused.
Please don't tell me this is just the craziness of using scenes that people
have warned me about after the fact. Ugh...
Any suggestions would be greatly appreciated - more than you'll know.
Rob Dillon - 22 Dec 2007 14:51 GMT
The scenes may be the problem. If you are using frame names for navigation and
you have the same frame name in more than one scene, Flash will always go to
the first one that it finds, starting from the beginning of the movie, not from
where the playback head is currently located.
Additionally, if you specify a location for the playback head to move to that
doesn't exist, the playback head will go to the beginning of the movie and
play. In other words, if the playback head doesn't know where to go, it will
start over. In CS3 this has changed, when confused the play will just stop,
which is equally as confounding.
If you are using frame numbers as navigation destinations, a different problem
comes in to play. When you use scenes, Flash concatenates all of the scenes
into one long timeline, essentially glueing each scene onto the end of the
previous scene. So, changing any scene may be causing confusion when you
compile the movie to play it back.
Be sure to save before you test the movie.
AMANDASHEA612 - 26 Dec 2007 16:42 GMT
[q][i]Originally posted by: [b][b]Rob Dillon[/b][/b][/i]
If you are using frame numbers as navigation destinations, a different problem
comes in to play. When you use scenes, Flash concatenates all of the scenes
into one long timeline, essentially glueing each scene onto the end of the
previous scene. So, changing any scene may be causing confusion when you
compile the movie to play it back.
[/q]
Ok... I guess this did work. I just named the 1st frame of each scene (scn1,
scn2, etc.) and instead of using "nextScene" or "prevScene" I used absoulte
paths on my next & back buttons. Just a little more tweeking.
THANK YOU SO MUCH!
AMANDASHEA612 - 26 Dec 2007 14:10 GMT
I realize I could be wrong, but this seems very odd to me.
At this point, I haven't named any frames, but I plan on trying that to see if
that works.
Other than that, my top navigation/direct navigation, each of them work, but
they jump to that scene's frame 36 (exactly) and plays. My bottom
navigation/next&back scene buttons, go to the scene they're suppose to, but
instead of playing, it stops. (Now I have found that out for sure. It skips
exactly 35 frames.)
AMANDASHEA612 - 26 Dec 2007 14:25 GMT
Ok... my original script looked like this:
on (release) {
gotoAndPlay("scn_2_Login", 1);
}
and
on (release) {
nextScene();
}
Then I named my frames (scn_1-scn_9).
I tried chaning the script to this:
on (release) {
gotoAndPlay("scn_2_Login", scn_2);
}
And now it doesn't do anything.
Rob Dillon - 26 Dec 2007 14:47 GMT
The frame name is also a string, so it needs to be in quotes just like the scene name.
AMANDASHEA612 - 26 Dec 2007 14:59 GMT
Thanks Rob. Ok... now it's working again, but same thing as before... It's still skipping the first 35 frames.