Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
Hasibuzi #1
GoTo Frame problems...
Well, I guess I'm just overlooking something but I can't get my script to work.
I have 9 Frames and 4 Buttons and I want to jump to the frames according to
the variables set with the buttons. So if you have pushed button 1 and 3 then I
want to go to frame 5 and if I press button 1 and 2 I want to jump to frame 2.
I thought i could archive this with a set of switches but it wont work :(
Lets say Button 1 and 2 have the Variable "Colour" attatched and set it to
values "1" or "2".
Button 3 and 4 have the variable "Camera" and Change the value of this to "1"
and "2".
Now I thought I could create a switch like this:
switch (camera)
case 1:
switch(colour)
case 1: gotoframe 5;
case 2: gotoframe 6;
break;
case 2:
switch(coulor)
case 1: gotoframe 7;
case 2: gotoframme 8;
break;
But the Problem is, I get the error that I can only use one "goto" in a
function.
If I try to archive this with "if" clauses I don't get the error but it won't
work either.
Well, I hope I've made myself a bit clear, maybe I'll solve the problem
tomorrow morning, but in case not - maybe there is someone who could help me
out? ;) Thanks.
Hasibuzi Guest
-
Collision of two objects goto frame or marker.
:light; Here is the scenario. A W3D file with two objects loaded into director MX. Object 1 is a child of the default camera and moves with the... -
goto frame in movie clip from main timeline
How do you go to a particular frame in a movieclip from a button that is on the main timeline. -
goto frame in another scene
Hi, What am I doing wrong this time? I try to load a movie into a placeholder and goto the first frame of the second scene. var layout =... -
goto a frame on mouse up
i have made a movie in which there are frames and the beginning of the frame or the first frame i have given stop statement such that the movie does... -
detect when video finished then goto next frame
i know this has been posted a lot before but i still can't find a way for it to work, i am using an mpg file with dir 8.5 but i can't get dir to...



Reply With Quote

