dcsimg
A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: move object to x position of mouse

  1. #1
    Junior Member
    Join Date
    May 2002
    Posts
    5
    Hi,
    I'm new to this forum and to flash. I would like some help with this.
    I want an object to move with the x position of the mouse. Can anyone shed some light on this?

    Thanks

  2. #2
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    Originally posted by 3DBB
    Hi,
    I'm new to this forum and to flash. I would like some help with this.
    I want an object to move with the x position of the mouse. Can anyone shed some light on this?

    Thanks
    Make sure your in advanced mode and use a list of actions element and set the property for the element to equal MouseX


    There are at least two examples of this at
    http://deadyeti.com/into3dfa/

  3. #3
    Junior Member
    Join Date
    May 2002
    Posts
    5
    Thanks blanius,
    I tried your solution, but I have not been able to figure out how to add the element I want to move with the mouse. The LET= command wants to see a variable not an element name. Any thoughts?

  4. #4
    Senior Member zoranvedek's Avatar
    Join Date
    Aug 2001
    Location
    Wagoner OK
    Posts
    892
    Originally posted by 3DBB
    Thanks blanius,
    I tried your solution, but I have not been able to figure out how to add the element I want to move with the mouse. The LET= command wants to see a variable not an element name. Any thoughts?
    Use a "set property" rather than "let equal", from the first drop down choose your element, from the second choose "x position", from the third(bottom) choose "mouse'x'".

    Make sure your element has properties.

    -Jason

  5. #5
    Junior Member
    Join Date
    May 2002
    Posts
    5
    Thanks zoranvedek,
    That worked great. I had to set the time of the movie to less than a second to get the movement to be smooth. I supose I should put this in a child movie.
    I whant to create something like this http://www.wireframe.co.za/default1.htm

    Thanks again
    [Edited by 3DBB on 05-06-2002 at 09:43 PM]

  6. #6
    Senior Member zoranvedek's Avatar
    Join Date
    Aug 2001
    Location
    Wagoner OK
    Posts
    892
    Originally posted by 3DBB
    Thanks zoranvedek,
    That worked great. I had to set the time of the movie to less than a second to get the movement to be smooth. I supose I should put this in a child movie.
    I whant to create something like this http://www.wireframe.co.za/default1.htm

    Thanks again
    [Edited by 3DBB on 05-06-2002 at 09:43 PM]
    That's a pretty cool effect they have there. You might be interested in this thread:

    http://board.flashkit.com/board/show...hreadid=303953

    It's about a similar movement engine, check out Bret's(blanius) coding on the second example.

    -Jason

  7. #7
    Junior Member
    Join Date
    May 2002
    Posts
    5

    Smile

    Thanks a ton zoranvedek,
    That thread is great. I will learn alot from the example movies in it.

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