A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [RESOLVED] Can ayone tell me the name of this effect & how to make it?

  1. #1
    Junior Member
    Join Date
    Feb 2012
    Posts
    3

    resolved [RESOLVED] Can ayone tell me the name of this effect & how to make it?

    Hey Guys,
    I've seen couple of websites like http://www.fortminor.com/ (Now archived) & http://www.feedyourego.co.za/ in these websites the text & the objects move with the mouse moves. I just wanna know how to move the objects with mouse movement or you can say how to make an object follow the mouse (left-right-up-down)

    P.S. In the 2nd website there's a 3d character also which I don't have in my project so there's nothing to worry about 3d in flash. I've just couple of images & text

    Thanks

  2. #2
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,864
    You need to make them follow the mouse's X and Y coordinate divided by a number of choice. Make a movieclip, select it, open Actions Panel, and paste this code to try an example:

    Actionscript Code:
    onClipEvent(load){
        normalX = this._x;
    }

    onClipEvent(enterFrame){
        this._x = normalX+(_root._xmouse/10);
    }

    Then, just change 10 to something else, the lower the higher speed, and try to adjust the position of your movieclip manually by dragging it, to find the best spot. For Y coordinate, do the same, but change very x to y
    I am back, guys ... and finally 18 :P

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

  3. #3
    Junior Member
    Join Date
    Feb 2012
    Posts
    3
    Thanks a lot boy this is what I was looking for

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