A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: re: Floating Images

  1. #1
    Member
    Join Date
    Jun 2000
    Posts
    97

    resolved

    Hi all,

    I'm looking to emulate the effect on http://www.sade.com

    Can anyone tell me how this is done?

    Most appreciated

  2. #2
    Retired SCORM Guru PAlexC's Avatar
    Join Date
    Nov 2000
    Location
    NJ
    Posts
    1,387
    My bad, didn't read your subject.

    That's just some simple motion and alpha tweening with a few images.
    [Edited by PAlexC on 05-13-2001 at 12:59 PM]

  3. #3
    Member
    Join Date
    Jun 2000
    Posts
    97
    I'm not talking about the way they fade in. I'm talking about the way the continuely float - And that when you click them you can drag them and throw them about.

    Anyone?

  4. #4
    Junior Member
    Join Date
    Mar 2001
    Posts
    20
    There should be an tutorial on dragable menus up there.

    You need to adapt this slightly.

    Firstly you need to remove all the y axis mouse movement stuff out of it. That will cause the object to drag along a line.

    Secondly you need a little script for momentum.

    It needs to record how far the mouse has travel over time.

    so momentum = (x coords mouse up - x coords mouse down)/ms

    With this we can tell the object to keep moving after mouse release.

    Lastly we need a friction value. This is simply momentum - friction = speed until speed = 0.

    Loop all this in symbols and you're there

  5. #5
    Member
    Join Date
    Jun 2000
    Posts
    97
    Thanks

    The one thing that I would point out though is that the floating images are not connected to the mouse in any way, does this matter?

  6. #6
    Junior Member
    Join Date
    Mar 2001
    Posts
    20
    They get connected as soon as you click on them

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center