|
|
|
#1 |
|
Your site goes here
Join Date: Apr 2002
Posts: 828
|
well you see i wanted to create the effect where a man jumps from one button to another and i am trying to do this!! but i got stumped i cannot make a motion tween because my scene will just move in the direction the man is so i made it a different way with lots of keyframe of the man jumping please someone help .. Angelfire.com is hosting my files so i am not allowed direct links so to get the swf file type in your browser address http://www.angelfire.com/az3/blueblueclues/button.swf
to get the fla file type http://www.angelfire.com/az3/blueblueclues/button.fla (Copy and paste the above links into your address bar) please help me! i want to no why when my mouse is over the button the man only jumps to the second keyframe and not continuing!!!!! i am fed up and about to through my computer out the window because i just don't get it. |
|
|
|
|
|
#2 |
|
Your site goes here
Join Date: Apr 2002
Posts: 828
|
hello! anyone???!!?!?!??!?
|
|
|
|
|
|
#3 |
|
__OSX powered__
Join Date: Aug 2000
Location: Norway
Posts: 836
|
First of all: 25 min between your posts! Let people get a chance to check it out first!
Well; i downloaded the file, and found one button script repeated over all your frames: Code:
on(rollOver){
gotoAndStop(2);
}
make a movie clip with just the animation on it from frame 1->10 (as you have) , drag it to the scene and name it "man", drag a button to the stage and attach the following to it: Code:
on(rollOver){
tellTarget("_root.man"){
gotoAndPlay(2);
}
}
[Edited by nucleuz on 04-26-2002 at 08:43 PM] |
|
|
|
|
|
#4 |
|
Your site goes here
Join Date: Apr 2002
Posts: 828
|
Well i fixed one of my problems before your replie went up what i did was add play (); to each frame of the man n take away the
on(rollOver){ gotoAndStop(2); } on all of them but the first but i am still stuck with a man that can only jump to one destination i need it to be scrolling throughout the buttons i could try to find a way.... can you help me make the man able to move from button to button as many times or do i have to start from scratch again? this is only a draft so it's all good
|
|
|
|
|
|
#5 |
|
__OSX powered__
Join Date: Aug 2000
Location: Norway
Posts: 836
|
Make the jumping from each buton to button in the movie clip (each 10the frame, and add a stop on frame 10, 20++)
then register a variable telling where the man was seen last : "last_button = first" <-- on the first frame of the movie. then when you click on button 2 (and the man is on button 1): Code:
on(press){
if(_root.last_button eq "first"){
gotoAndPlay(2);
}else if _root.last_button eq "third"){
gotoAndPlay(21); //jump from third to second
}
}
Code:
on(press){
if(_root.last_button eq "first"){ //man starts at first button
_root.dont_stop_at_second = "yes";
gotoAndPlay(2);
}
}
and then on frame 10 (where he lands at the second button) have a check :
if(_root.dont_stop_at_second eq "yes"){
//do nothing -> continiue to jump
}else{
stop();
}
|
|
|
|
|
|
#6 |
|
Your site goes here
Join Date: Apr 2002
Posts: 828
|
i understand but when i go to Test Movie it says;
Symbol=Symbol 1, Layer=Layer 1, Frame=1: Line 4: '(' expected }else if _root.last_button eq "third"){ Symbol=Symbol 1, Layer=Layer 1, Frame=1: Line 16: Unexpected 'and' encountered and then on frame 10 (where he lands at the second button) have a check : |
|
|
|
|
|
#7 |
|
__OSX powered__
Join Date: Aug 2000
Location: Norway
Posts: 836
|
Line 4: '(' expected
I didn't say I would code it correctly when I just typed it in: that means you have to have a bracket like: }else if( _root.last_button eq "third"){ For the second one: don't include my comments in the code ![]() error: and then on frame 10 (where he lands at the second button) have a check |
|
|
|
![]() |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|