Home

Submit

Source

Feeds
Report a broken link
You are about to report the tutorial shown below for review. Please only report if there is a problem with it.
Thanks.
Adobe Flash Special Effects
StartDrag command for 1 axis only
Adobe Flash / Special Effects
This tutorial details how to have an object follow the mouse on 1 axis only (not possible with the drag command). This gives the effect of it sliding across the screen. This can be done easily by making the x/y position of the object equal to the corresponding position of the mouse. However, to make the movement look more authentic, like it is following the mouse, not just always in the same position, you can add a small piece of code which makes it lag behind a little.

Site: www.flashkit.com - Report

What's wrong with the tutorial? Write below.

Site Search

 
Categories
2D Graphics 3D Graphics Office Applications Databases Desktop Programming Web Development