PDA

View Full Version : Relative GoTo question


Zen
03-20-2001, 07:16 PM
I don't know how to write this an action like this:

1)

go to the frame number 70 in the next scene

(I need not to use the name of the scene in order to change scenes and order frequently)

2) It'll be helpfull also sth like

go to the frame number 70 in the next movie (swf) that is in the folder named X

Thanks, very much

MartinZen

Strok
03-20-2001, 08:34 PM
question 1
You can use tellTarget

on (release) {
tellTarget ("_level0/") {
gotoAndPlay ("hi");
}
}

Add label "hi" on the frame number 70 in your next scene


question 2
You have to load your movie on some level and play it using same action (tellTarget)

Zen
03-22-2001, 08:26 PM
Thank you Strok,

I haven't success with the "hi" labels mechanism.
The projector didn't recognize the action as goto the "hi" in the NEXT scene.

My project is a cd displaying a lot of slides (fade in, picture, fade out... next).

I moved from switching scenes to loading .swf, and I put the things in a different way, so maybe you can help me.

1) Extracting a value from a movie name

I think what I have to do is:
a) Create a variable (I named it "count")
b) Write in the value field some expression that extracts its value from the name of the swf currently loaded at level 1
(for "item115.swf", count = 115)

2) Putting the value in a movie name

Then I have to write some buttom actions:
c) load at level 1 a movie called: "item" + the first number greater than count current value (the next movie in the list can be 116 or 120...) + ".swf"
d) load at level 1 a movie called: "item" + count current value + "alt.swf"

Thanks again

MartinZen