Copy link to clipboard
Copied
Put all your texts into one movie clip and then rotate that based on mouse position. mouseX controls rotation on Y and mouseY controls rotation on X.
Here's an example - start a new movie - add an image on stage, turn it into a movieClip (make sure the reg point is on center, not upper left) and give it an instance name of bg.
Add this code to frame 1:
addEventListener(Event.ENTER_FRAME, update);
function update(e:Event):void
{
bg.rotationY = (275 - mouseX) / 30;
bg.rotationX = (200 - mouseY) /
...Copy link to clipboard
Copied
if you already have an exmaple running which tracks the mouse position you will be accessing mouseX and mouseY simply divide these values by a number to reduce the amount of tracking.
e.g.
rotationX = mouseX;
becomes
rotationX = mouseX / 2;
can't really be more helpful without code
Copy link to clipboard
Copied
Tnkz Spoboyle...
Will it be possible to post up a tutorial that specifics my kinda requirement... like i said, am a beginner & a tutorial wud help me immensly..
Thankz again.!
Copy link to clipboard
Copied
my query is:
I have Some text's on the stage.
& I want them to folow the cursor but not till the entire ends of the screen but just like a lilttle tilting to giv it a 3D effect.
you can check out the link here to get what i mean.http://www.yodabaz.com/
thanks for your help.
Copy link to clipboard
Copied
Put all your texts into one movie clip and then rotate that based on mouse position. mouseX controls rotation on Y and mouseY controls rotation on X.
Here's an example - start a new movie - add an image on stage, turn it into a movieClip (make sure the reg point is on center, not upper left) and give it an instance name of bg.
Add this code to frame 1:
addEventListener(Event.ENTER_FRAME, update);
function update(e:Event):void
{
bg.rotationY = (275 - mouseX) / 30;
bg.rotationX = (200 - mouseY) / 50;
}
This assumes the movie is 550x400 - so center is at 275,200
Copy link to clipboard
Copied
@dmennemoh... thank you so much.
this is exactly what i need.. i'l post up the link to t site soon to you once itz done. thanks agn.
@Ted... juz wanted to get help. ur reply on t otr post wz juz too complicatd to understand for a beginner. but thankz anyways. i appreciate it.
{p.s - i dont think crossposting is a prob to anybody. help wz needed, so posted it.}
Copy link to clipboard
Copied
I did not realize you had crossposted this. If I had I would not have wasted my time trying to help. Please don't crosspost.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more