Somebody please explain this to me. And quick, 'cause this needs to be done by 4pm today
Or at least it did.
I have a scene with 9 keyframes. the last 8 have a frame label corresponding to a direction- NORTH, NORTHEAST, EAST, etc. The first one decides which direction to face.
I have the following code:
the first line of code correctly prints out the name of the direction. the second line of code is supposed to bring me to the frame which has the corresponding frame label. Instead, it brings me to the frame IMMEDIATELY FOLLOWING that frame label. Let's say that frame 2 is NORTH (which has actionscript that traces the word "north"
, and frame 4 is the next key frame, NORTHEAST, meaning that frame 3 will show whatever's in the NORTH framelabel as well. My movie goes to and stops at frame 3; it displays whatever's on the screen, but it doesn't display the trace from the actionscript in frame 2.
However, if I replace
with
everything works just fine; the movie goes to and stops on frame 2.
This is seriously whacked. Can anybody explain this to me? Can I get some flash experts to weigh in on this? I know I can work around this by accounting for this and having all the important stuff on the frame immediately following the framelabel, but any errors I leave in there now will be very hard to fix.. in a few days, there will be about 100 scenes just like this one, and I don't want to have to go through each scene to fix it.
Please, can I get a sanity check. Is this a flash bug, or is there a better way to do this?
I can't use frame numbers as I'm not sure which number will be where.. and of course if this is edited later on... eeek. That's a lot of updating of gotos. Liam Morley
lmorley@gdc.wpi.edu
"light the deep, and bring silence to the world.
light the world, and bring depth to the silence."
I have a scene with 9 keyframes. the last 8 have a frame label corresponding to a direction- NORTH, NORTHEAST, EAST, etc. The first one decides which direction to face.
I have the following code:
Code:
trace(directions[dir]);
gotoAndStop(directions[dir]);
the first line of code correctly prints out the name of the direction. the second line of code is supposed to bring me to the frame which has the corresponding frame label. Instead, it brings me to the frame IMMEDIATELY FOLLOWING that frame label. Let's say that frame 2 is NORTH (which has actionscript that traces the word "north"
However, if I replace
Code:
gotoAndStop(directions[dir]);
Code:
gotoAndStop("NORTH");
This is seriously whacked. Can anybody explain this to me? Can I get some flash experts to weigh in on this? I know I can work around this by accounting for this and having all the important stuff on the frame immediately following the framelabel, but any errors I leave in there now will be very hard to fix.. in a few days, there will be about 100 scenes just like this one, and I don't want to have to go through each scene to fix it.
Please, can I get a sanity check. Is this a flash bug, or is there a better way to do this?
I can't use frame numbers as I'm not sure which number will be where.. and of course if this is edited later on... eeek. That's a lot of updating of gotos. Liam Morley
lmorley@gdc.wpi.edu
"light the deep, and bring silence to the world.
light the world, and bring depth to the silence."