My account: Login | Sign Up
Loading...

play to a frame based on mouse position... | Thread profile

Thread profile page for "play to a frame based on mouse position..." on http://www.kirupa.com. This report page is a snippet summary view from a single thread "play to a frame based on mouse position...", located on the Message Board at http://www.kirupa.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity, which are reported in a table below. Additional thread profile information is also shown in the following ways:

1) Top Contributing Authors
2) Related Threads on "eBay Auctions"
3) Related Threads on Other Sites

Warning: These statistics are generated using 'best efforts' and can experience delays and reporting errors at times. Please note that such statistics do not constitute a thread's popularity and/or exact posting volumes at any given reporting period.

Title: play to a frame based on mouse position...
Site: Kirupa Forum  Kirupa Forum - site profile
Forum: ActionScript 3.0  ActionScript 3.0 - forum profile
Total authors: 6 authors
Total thread posts: 12 posts
Thread activity: no new posts during last week
Domain info for: kirupa.com

Thread posts in play to a frame based on mouse position...:

1. 
Started 2 months, 1 week ago (2008-06-30 15:16:00)  by omnisine
i need to create an effect similar to this >> visit www.c-class.co.uk then click on C The Car... i'm workin on a car site..i'll be getting the 3d renders as frames...wat i want iss the car to turn in the direction of the mouse pointer...except that it wont be 360 like the c-class site...it'll need to turn jus about 45degrees. please help...
Size: 474 bytes
Customize:  Customize "play to a frame based on mouse position... :: ActionScript 3.0 :: Kirupa Forum"
2. 
Started 2 months, 1 week ago (2008-06-30 18:02:00)  by mattrock23
Seems like you would use something like gotoAndStop(stage.mouseX / stage.stageWidth * 45);
Size: 129 bytes
Customize:  Customize "<b>Reply 1</b>: play to a frame based on mouse position... :: ActionScript 3.0 :: Kirupa Forum"
3. 
Started 2 months, 1 week ago (2008-06-30 21:15:00)  by nikefido
Is it dependent on mouse distance from the object or is it purely dependent on the mouse X position? If it's based on distance, you need to use a distance function (which isn't too bad - you use Pythagorean theorem... a^2 * b^c = c^2) If it's based on x position, something like what mattrock posted is sufficient if you are talking about the color part where the finger moves to point to ...
Size: 660 bytes
Customize:  Customize "<b>Reply 2</b>: play to a frame based on mouse position... :: ActionScript 3.0 :: Kirupa Forum"
4. 
Started 2 months, 1 week ago (2008-07-01 15:31:00)  by omnisine
hey guys thnx for replying... the movieclip needs to play to the destination frame from the current frame...not jus gotoAndStop...and i got to see the 3d renders today...its not jus 45degrees any more...the camera moves almost 180 degrees both sides....and i need it to work as smooth as the c-class site... nikefido, i'm not talkin about the mouse pointer bit... wat i need to recreate is ...
Size: 778 bytes
Customize:  Customize "<b>Reply 3</b>: play to a frame based on mouse position... :: ActionScript 3.0 :: Kirupa Forum"
5. 
Started 2 months, 1 week ago (2008-07-01 17:48:00)  by mattrock23
On the C-class site I think they just use gotoAndStop and if the difference is greater than a certain amount they show a blurry frame. It looks like the blurry frame is always the same. I would probably suggest using a easing function and setting your movieclips frame to the eased amount on entering each frame, as opposed to gotoAndPlay. That way your rotation can go faster or slower ...
Size: 488 bytes
Customize:  Customize "<b>Reply 4</b>: play to a frame based on mouse position... :: ActionScript 3.0 :: Kirupa Forum"
6. 
Started 2 months, 1 week ago (2008-07-01 20:08:00)  by Anogar
I suspect they're not "showing a blurry frame", but rather just blurring the entire thing if the amount is over a certain threshold.
Size: 181 bytes
Customize:  Customize "<b>Reply 5</b>: play to a frame based on mouse position... :: ActionScript 3.0 :: Kirupa Forum"
7. 
Started 2 months, 1 week ago (2008-07-02 06:56:00)  by tarwin
Most tweening packages allow you to do a FrameTo of types. Just find out what frame you need, then do a frameTo each frame. Might sound a little silly, but will work. Try TweenFilterLight or Tweener.
Size: 253 bytes
Customize:  Customize "<b>Reply 6</b>: play to a frame based on mouse position... :: ActionScript 3.0 :: Kirupa Forum"
8. 
Started 2 months ago (2008-07-03 04:01:00)  by mattrock23
Oh, I see. Well in that case you only want to replace the second stage.stageWidth. That way your midpoint will always be centered but it will only react to a 500 pixel box.
Size: 211 bytes
Customize:  Customize "<b>Reply 7</b>: play to a frame based on mouse position... :: ActionScript 3.0 :: Kirupa Forum"
9. 
Started 2 months ago (2008-07-03 06:48:00)  by nathan99
http://www.n99creations.com/vieweg.php?id=20
Size: 160 bytes
Customize:  Customize "<b>Reply 8</b>: play to a frame based on mouse position... - Page 2 - kirupaForum :: ActionScript 3.0 :: Kirupa Forum"
10. 
Started 2 months ago (2008-07-03 07:18:00)  by omnisine
mattrock, cheers, it's workin ...it's still not perfectly centred but thas because of some oddly placed registration point...the movieclip holding the frames is 3 movieclips deep so i'm tryin to figure out which one's registration point is causing the problem...but yes the code seems to be perfect...thnx a ton!...dude if it's not too much of a pain, would it be ok to get in touch with u via ...
Size: 821 bytes
Customize:  Customize "<b>Reply 9</b>: play to a frame based on mouse position... - Page 2 - kirupaForum :: ActionScript 3.0 :: Kirupa Forum"
 

Top contributing authors for play to a frame based on mouse position...

Name Posts
omnisine 4
mattrock23 4
nikefido 1
Anogar 1
tarwin 1
nathan99 1