Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 9th, 2004, 04:29 AM
Captain Planet's Avatar
Captain Planet Captain Planet is offline
Senior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 328 Captain Planet User rank is Lance Corporal (50 - 100 Reputation Level)Captain Planet User rank is Lance Corporal (50 - 100 Reputation Level)Captain Planet User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Day 14 h 15 m 15 sec
Reputation Power: 5
How to create an EASING rotation??

Hi.

I've got a button which when clicked, it rotates a movie clip called 'arrow' by 90 degrees (arrow movie clip is initially of an arrow pointing to the right). I use the very simple code below in my button Actions.

on (rollOver)
{
_root.arrow._rotation = 90;
}


Can anyone help me to create an easing effect on this, so that the arrow movie doesn't just snap from a right arrow to a down arrow?? Bear in mind I'm only using Flash 5 (if that makes any difference).

Thanks for any help.
__________________
Captain Planet.

Reply With Quote
  #2  
Old January 9th, 2004, 08:38 AM
Tann San Tann San is offline
Gotta get to the next screen..
Click here for more information.
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,457 Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)  Folding Points: 6414 Folding Title: Novice Folder
Time spent in forums: 2 Weeks 6 Days 5 h 46 m 34 sec
Reputation Power: 503
Facebook MySpace
Hi, I dont understand how you want to apply an easing effect to this. You were closer to achieving this with your old code, from your other post. Even using that it can still be tricky. I think you would have to use some form of virtual buffer. Say for example you were pointing to the right picture and the arrow was pointing there. If you should move over the down picture but then over the up picture your arrow would first have to ease to the down picture and then back up to the over picture. It sounds trickier than it really is I think, although I'm not saying it will only take 2 mins to implement.

You could use motion tweening if you constructed an three arrow animations for each picture. The idea with this one is that you manually tween the arrow easing to each picture from each other picture. This method may be easier for you to implement although it may not be as technically pleasing as the other option.
__________________
-Tann

-Vote for your favorite ActionScript editor here.

Reply With Quote
  #3  
Old January 9th, 2004, 09:31 AM
Captain Planet's Avatar
Captain Planet Captain Planet is offline
Senior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 328 Captain Planet User rank is Lance Corporal (50 - 100 Reputation Level)Captain Planet User rank is Lance Corporal (50 - 100 Reputation Level)Captain Planet User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Day 14 h 15 m 15 sec
Reputation Power: 5
Instead of it snapping to a (eg) down arrow from a right arrow, I want it to start rotating fastish, and then slow down as it gets to its designated angle of rotation.

Reply With Quote
  #4  
Old January 9th, 2004, 10:20 AM
Tann San Tann San is offline
Gotta get to the next screen..
Click here for more information.
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,457 Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)  Folding Points: 6414 Folding Title: Novice Folder
Time spent in forums: 2 Weeks 6 Days 5 h 46 m 34 sec
Reputation Power: 503
Facebook MySpace
Hi, I was just trying to point out that instead of wanting it to follow the cursor you may want to just set it to track which image button has hovered over. Otherwise you may have trouble getting it to ease to where the actual cursor is. If you set it to track the mouse location then it will be continually easing as the cursor will rarely be still.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > How to create an EASING rotation??


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway