A Flash Developer Resource Site

Page 1 of 2 12 LastLast
Results 1 to 20 of 22

Thread: mouse effect on picture

  1. #1
    Junior Member
    Join Date
    Mar 2004
    Posts
    3

    mouse effect on picture

    Can anyone tell me how they created the motion on vernita picture located at this link http://www.kill-bill.com/vol1/flash/index.html
    Just click on the Vernita button, and then roll your mouse over the picture.

  2. #2
    Banned by GMF ™
    FK´s Banning Machine
    jerez_z's Avatar
    Join Date
    Jun 2001
    Location
    Calgary
    Posts
    235
    pretty simple. its a matter of using mouse position and distances basically.

  3. #3
    Banned by GMF ™
    FK´s Banning Machine
    jerez_z's Avatar
    Join Date
    Jun 2001
    Location
    Calgary
    Posts
    235

    maybe a little more than 5 minutes

    but I never said 5 minutes. but here you go. All the code I used:

    code:

    onClipEvent (load) {
    ease = 10
    ease2 = -100
    }
    onClipEvent (enterFrame) {
    tx = (0-_x)/ease
    ty = (0-_y)/ease
    tx += (_root._xmouse-_x)/ease2
    ty += (_root._ymouse-_y)/ease2
    _x += tx
    //_y += ty
    }



    and attached .swf (zipped) for you
    Attached Files Attached Files

  4. #4
    Banned by GMF ™
    FK´s Banning Machine
    jerez_z's Avatar
    Join Date
    Jun 2001
    Location
    Calgary
    Posts
    235

    revised slightly

    I revised it slightly after taking a second look at the original effect:

    code:

    onClipEvent (load) {
    ease = 10
    ease2 = -75
    }
    onClipEvent (enterFrame) {
    tx = (((540/2)-_x)/ease)
    ty = (((405/2)-_y)/ease)
    tx += (_root._xmouse-_x)/ease2
    ty += (_root._ymouse-_y)/ease2
    _x += tx
    _y += ty
    }

    Attached Files Attached Files

  5. #5
    Banned by GMF ™
    FK´s Banning Machine
    jerez_z's Avatar
    Join Date
    Jun 2001
    Location
    Calgary
    Posts
    235
    but its exactly what was asked for, a slight tweeking of the easing variables would produce a slightly different effect...

  6. #6
    Banned by GMF ™
    FK´s Banning Machine
    jerez_z's Avatar
    Join Date
    Jun 2001
    Location
    Calgary
    Posts
    235
    well ya but I was working on a time limit :P

  7. #7
    Banned by GMF ™
    FK´s Banning Machine
    jerez_z's Avatar
    Join Date
    Jun 2001
    Location
    Calgary
    Posts
    235
    oh... well I'm not big on handing out code. I think people should figure things out on their own. Thats how I do it.

  8. #8
    Banned by GMF ™
    FK´s Banning Machine
    jerez_z's Avatar
    Join Date
    Jun 2001
    Location
    Calgary
    Posts
    235
    I only ever ask questions when I absolutley can't figure it out. And even then I try to just get a little nudge in the right direction

  9. #9
    Banned by GMF ™
    FK´s Banning Machine
    jerez_z's Avatar
    Join Date
    Jun 2001
    Location
    Calgary
    Posts
    235
    ok good job with the link to the coffee lounge

  10. #10
    Junior Member
    Join Date
    Mar 2004
    Posts
    3

    thanks

    thanks for the answer it work great, but if you are not big at handing out code why are in the forum. Also I believe if I can help so one I will. After all as programmers we have all been stuck on something that is very simple for someone else. Like I am not really good at animation. But I am a wiz when it comes to flash, database,XML, and interactive applications. But I understand some people only help others to please their ego. Never the less thank you....oldnewbie for pushing jerez_z

  11. #11
    Banned by GMF ™
    FK´s Banning Machine
    jerez_z's Avatar
    Join Date
    Jun 2001
    Location
    Calgary
    Posts
    235
    haha your just like me. but I think its better for a person to code it all and figure out for themselves. Its the way I feel about it. I normally post a question on the forum with hope of getting someone to correct my logic, unless the error absolutley dosen't make sense then maybe I'll give someone a look at my code.

  12. #12
    Banned by GMF ™
    FK´s Banning Machine
    flash_racer's Avatar
    Join Date
    Mar 2004
    Location
    not on FK
    Posts
    5
    this is retarded. I think your gay oldnewbie. But good job jerez_z. I liked it.

  13. #13
    Senior Member
    Join Date
    Apr 2002
    Posts
    2,849
    How ridiculous is this. Criticizing his answer and his sample files...yet every post in of oldnewbie's on this thread did NOTHING to answer the question.

    Forums are open to whoever wants to answer (even if they want to add criticism about the answers), and people here are free to answer in as much or as little detail as they want. If you think the person deserves a little more info, add to it yourself.

  14. #14
    Goodbye...
    Join Date
    Aug 2003
    Posts
    661
    I think your gay oldnewbie.
    Now how mature is that flash_racer? What are you like twelve years old?

  15. #15
    Banned by GMF ™
    FK´s Banning Machine
    jerez_z's Avatar
    Join Date
    Jun 2001
    Location
    Calgary
    Posts
    235
    ya like geez. You complimented me, but oldnewbie did as much as he could

  16. #16
    Banned by GMF ™
    FK´s Banning Machine
    jerez_z's Avatar
    Join Date
    Jun 2001
    Location
    Calgary
    Posts
    235

    to oldnewbie:

    well oldnewbie I am almost on flash_racer's side. Your posts did absolutley nothing, and your trying to take credit for the help provided.

    Please note that jerez_z didn't really post something useful (actual code) until I pushed him in doing so!
    I only provided that code because you basically said I couldn't do it. you also criticized the help that I did provide. You really need to get off your high horse.

    I've learned from personal experience that I learn best when I do it myself. So I would have been more than happy to explain what I meant with a little more detail, and explain the logic behind it, therefore helping sigtechian to learn how and why it works. The help I provided will work for him, but if he ever really needs to change it all or implement under different circumstances he might not be able to, because all he got was some code.

    So I am definatley on flash_racer's side here. Get a life. Or end the one you have. Cause its not going anywhere.
    Last edited by jerez_z; 03-26-2004 at 06:07 PM.

  17. #17
    Banned by GMF ™
    FK´s Banning Machine
    jerez_z's Avatar
    Join Date
    Jun 2001
    Location
    Calgary
    Posts
    235
    uh oh. Did I hit somebody's soft spot. Sorry. maybe you'll argue with me over the internet some more. (Cause a page of **** YOU's really hurts. Like nothing I've ever felt before. Ow)

  18. #18
    Banned by GMF ™
    FK´s Banning Machine
    jerez_z's Avatar
    Join Date
    Jun 2001
    Location
    Calgary
    Posts
    235
    oh I have a sense of humour. I just think your full of crap. I've looked at alot of help you've given people, and the only thing I've noticed is that you can search the Macromedia help files quite well. Good job.

  19. #19
    Banned by GMF ™
    FK´s Banning Machine
    jerez_z's Avatar
    Join Date
    Jun 2001
    Location
    Calgary
    Posts
    235
    so that's all you got? I thought this would be a little more fun than that.....

  20. #20
    Senior Member
    Join Date
    Apr 2002
    Posts
    2,849
    To be fair, oldnewbie has provided a lot of good information to people on these forums. However, I don't think that gives him license (or anyone else) to criticize the responses people give to questions, especially when they're intended to set someone on the right track.

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