Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)

Reply
 
Thread Tools Rate Thread Display Modes
Old 08-26-2003, 05:11 PM   #1
Punch
Registered User
 
Join Date: Aug 2003
Posts: 4
Default How do I change mc properties from a given anchor point?

I have been following Billy's animation via actionscript tutorial and everything makes sense, is working fine, etc but I have a technical questions that isn't addressed here. If i use a myMovieClip._xscale or _x etc the clip always scales, moves to or from, whatever based on the center point of the movieclip.

So how can I specify the point that all these changes are based on? lets say I want a clip to scale both x and y from the upper left corner instead of appearing to grow from the center or I want an object to start scaling but to leave the left side stationary and grow to the right. Is there something special that I need to be doing in the script or can I use anchor points for this some how?

Thanks in advance for all the help.
Punch is offline   Reply With Quote
Old 08-26-2003, 05:14 PM   #2
webguy
Senior Member
 
webguy's Avatar
 
Join Date: May 2003
Location: west palm beach
Posts: 1,652
Send a message via ICQ to webguy Send a message via AIM to webguy
Default

when you make a movieClip it gives you an option to set the registration point in 8 positions on a square. You can also go into editing mode and use the align tool. Align to stage and you will align your clip to the registration point. If you have the registration point in the top right, it will scale from the top right.

hope that helps.
web
__________________
Reality is merely an illusion, albeit a very persistent one.
webguy is offline   Reply With Quote
Old 08-26-2003, 05:19 PM   #3
Punch
Registered User
 
Join Date: Aug 2003
Posts: 4
Default

Very much so thanks. I knew that was there but I guess I should have tried it with the script too. :-) I had always used it with tweens before.
Punch is offline   Reply With Quote
Old 08-27-2003, 12:19 PM   #4
Punch
Registered User
 
Join Date: Aug 2003
Posts: 4
Default HELP Still Doesn't Work

The registration point thing works fine when I scale any object within flash with the scale command etc. It also works when i use a tween. However Action Script seems to Ignore it When I use a AS to scale or move a movie clip it still always looks at the center point of the MC as the registration point even if I have moved the point manually else where. Can anyone help me out with this?

heres the problem http://www.getpunch.com/problem
Punch is offline   Reply With Quote
Old 08-27-2003, 12:38 PM   #5
Punch
Registered User
 
Join Date: Aug 2003
Posts: 4
Default

Ok my bad. I found it. but is there any way to change the registration point on a mc after I've created it?

thanks
Punch is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:48 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.