To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > General Help > Scripting & Backend

Reply
 
Thread Tools Search this Thread Display Modes
Old 04-26-2002, 08:33 PM   #1
RedAbode
Your site goes here
 
RedAbode's Avatar
 
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.
RedAbode is offline   Reply With Quote
Old 04-26-2002, 08:58 PM   #2
RedAbode
Your site goes here
 
RedAbode's Avatar
 
Join Date: Apr 2002
Posts: 828
hello! anyone???!!?!?!??!?
RedAbode is offline   Reply With Quote
Old 04-26-2002, 09:34 PM   #3
nucleuz
__OSX powered__
 
nucleuz's Avatar
 
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);
}
How are you planning on going from frame 2 -> 10??

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);
    }
}
That should do it
[Edited by nucleuz on 04-26-2002 at 08:43 PM]
nucleuz is offline   Reply With Quote
Old 04-26-2002, 10:48 PM   #4
RedAbode
Your site goes here
 
RedAbode's Avatar
 
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
RedAbode is offline   Reply With Quote
Old 04-26-2002, 11:07 PM   #5
nucleuz
__OSX powered__
 
nucleuz's Avatar
 
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
   }
}
and when you want it to jump from first to third button:
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();
}
The rest should be easy to figuree out.
nucleuz is offline   Reply With Quote
Old 04-26-2002, 11:16 PM   #6
RedAbode
Your site goes here
 
RedAbode's Avatar
 
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 :

RedAbode is offline   Reply With Quote
Old 04-26-2002, 11:28 PM   #7
nucleuz
__OSX powered__
 
nucleuz's Avatar
 
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
nucleuz is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > General Help > Scripting & Backend

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:10 PM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.