SwishTalk.com
 

Go Back   SwishTalk.com > .:: THE HELP DESK ::. > SWiSH Max General Help

Reply
 
Thread Tools Display Modes
#1   [RESOLVED]Spinning  
 
JQuinn33's Avatar

Name: 
JQuinn33
Status: Offline
Rank: SWiSHer
Posts: 214
Old 02-13-2012, 12:54 PM Reply With Quote


Hi! I've attached a file with a round shape that I want to spin when someone rolls over it. Got that working. Now I'm wanting to know if there is a way, on rollout, to have it slow down to a stop at the original starting position so the top goes back to the top. I don't want it to "snap" to the top though.

Any help would be so appreciated!!

Thank you!!
-Jeanne




Attached Files
File Type: swi spin.swi (23.0 KB, 18 views)
 
View Public Profile Send a private message to JQuinn33 Find all posts by JQuinn33 Add JQuinn33 to Your Contacts
#2    
 
cycle1500's Avatar

Name: 
cycle1500
Status: Offline
Rank: Oberlin, Ohio, USA
Posts: 1,493
Mood: MEAN: Do's not play well
Old 02-14-2012, 03:46 AM Reply With Quote


Jeanne:

Two changes:
1:
Code:
onFrame (2) {
    stop();
}
onFrame (4) {
    _rotation +=10;
    currentrotation = '';
}
onFrame (5) {
    prevFrameAndPlay();
}
onFrame (6) {
    _rotation = Math.approach(_rotation,currentrotation + 3,0.98);// + number changees position 0.98 speed
}
onFrame (7) {
    prevFrameAndPlay();
}
onFrame (3) {
    setLabel("play");
}
onFrame (1) {
    setLabel("stop");
}
Spinner Code:
2.
Code:
on (rollOver) {
    gotoAndPlay("play");
}
on (rollOut) {
    gotoAndPlay(6);
}
Workes as forward roll past center / reverse roll before center.
I like the effect.

Wayne


__________________
The Hairy One
Wayne helps those that helps themselves.
 
View Public Profile Send a private message to cycle1500 Find all posts by cycle1500 Add cycle1500 to Your Contacts
#3    
 
JQuinn33's Avatar

Name: 
JQuinn33
Status: Offline
Rank: SWiSHer
Posts: 214
Old 02-14-2012, 10:37 AM Reply With Quote


Oh my gosh!!! This is SO perfect, Wayne!!!! THANK YOU THANK YOU THANK YOU!!! ))

-Jeanne




 
View Public Profile Send a private message to JQuinn33 Find all posts by JQuinn33 Add JQuinn33 to Your Contacts
Advertisement:





Thread Tools
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