ActionScript 3.0 :: Simulate Registration Point To Behave As (0,0)?

Mar 21, 2011

There is a movie clip MyRectangle and it is being moved by a different class Test around the stage.Class Test has no idea where the registration point is of MyRectangle is, it assumes it is always at top left corner.Class MyRectangle sometimes logically changes its registration point during runtime according to some algorithm. By this I mean it changes the position of all its children, the same way as we would do it in Flash IDE. So logically, the registration point can be e.g. in the midle.The point is to write the MyRectangle class to behave correctly at all times, so that other classes, although unaware where the registration point really is (they assume it is in top left corner), are still capable to position the rectangle exactly where they want.[code]But it will not work if MyRectangle changed its registration point by moving all children by (-50,-50). In this case, only bottom right quarter of the rectangle will be visible.

I have no clue how to solve it. Tried to write setters and getters of x and y, but it doesn't work. I adjusted the registration point of MyRectangle in Flash IDE instead of doing it programatically, but the result would be the same.Also to make it easier I assume the registration point is in the middle. Once I know how to solve this problem, I'll know how to solve it for registration point anywhere.[code]But only the bottom right quarter of the rectangle is visible, despite of any assignments of x or y in class Test.

View 4 Replies


Similar Posts:


ActionScript 3.0 :: How To Set Registration Point

Feb 8, 2010

There is not setRegistration point method. So, how to set registration poing in AS3. Do any body know about it ??

View 3 Replies

IDE :: Registration Point = X,Y Coordinates?

Jan 1, 2010

Flash uses a movie clip's REGISTRATION POINT to determine the MC's X and Y coordinates, correct? If not, what is used?

View 4 Replies

ActionScript 2.0 :: Set The Registration Point Of A Mc?

Sep 9, 2005

can you set the registration point of a mc with as? I need to do this for a whole bunch of loader components, which are by default set to TL. I need CC.

View 3 Replies

Professional :: Change The Registration Point

Mar 20, 2008

I have a movie clip on my stage with various elements in it. When I edit this movie clip all the coordinates for the various elements have really random values because the registration point is not set to the top left corner of the symbol but I can't find any way to change the registration point - nothing I've found online so far works.

View 3 Replies

ActionScript 1/2 :: Repositioning The Registration Point?

Apr 20, 2009

I want to load a series .jpgs into an existing mcs. The mcs are 75 x 75 pix and the .jpgs are 50 x 50 pix. The problem is that I made the mcs with the registration point at the top left corner. This causes the mcs to load in at that point so that the margine between the .jpg and the mc is uneven. How can I change the registration point of each mc so that the CENTER of the .jpg is positioned the CENTER of the mc?

View 3 Replies

ActionScript 3.0 :: Set The Registration Point Of An Object?

Jul 23, 2009

using action script how can I set the registration point of an object. Also what import would I use.

View 1 Replies

ActionScript 3.0 :: Changing The Registration Point?

Jun 8, 2008

it posseple to change the Registration point via AS3 ?

View 11 Replies

Change Registration Point Of Uiloader?

Feb 3, 2010

How can i change registration point of uiloader?

because that loader loads images which needs to be zoomed for productional purposes, but it does not zoom the center, it zooms through to reg point.

View 5 Replies

Professional :: Change Registration Point XY?

Jul 5, 2011

how?

View 1 Replies

ActionScript 3.0 :: Setting The Registration Point?

Sep 25, 2007

How do you change the registration point of a TextField or MovieClip?Suppose you want to Twin a zoom in, I need it to happen from the middle, but I found no methods or properties that let you set it in the center.

View 9 Replies

ActionScript 3.0 :: Read The Registration Point?

Sep 15, 2009

is it possible to find out where a movieclip registration point is in comparison to the stage?for example its in the bottom left or top right...

View 2 Replies

ActionScript 2.0 :: Manually Set Mc Registration Point

Apr 19, 2006

I'm importing an image that I'll use as my pointer(arrow) in a speedometer. My problem is that I need to manually set the movieClip's registration point so that I'll get the rotation right. If I manually drag the image on stage and use F8 to convert it to a MovieClip, I can set the registration point in the dialog box popping up. The only thing I'm trying to do is just that, but with ActionScript since I create this thingie dynamically

View 3 Replies

ActionScript 2.0 :: MovieClipLoader +registration Point ?

May 9, 2008

I've got quite a few images that are being loaded into my project through the MovieClipLoader function, anyway, when they are loaded to a specific MovieClip, their registration point is set to the top left corner (0, 0).Is there any way of adjusting the registration point for this MovieClip? Or would I have to something like the following:

Code:
var pL:MovieClipLoader = new MovieClipLoader();
// loader[code]......

I don't know if the above is even possible, but thats what I'd guess, if there is no way of setting the registration point in a easier way. I feel that the above is such a waste.

View 2 Replies

IDE :: Registration Point Always Upper Left?

Mar 18, 2009

Do you usually set the registration point in the upper-left corner ?I usually have always troubles with the registration point in the center.. or is maybe useful in any situation ?

View 1 Replies

IDE :: Create A Symbol And Set The Registration Point?

Oct 7, 2009

Is it just me or is it true that once you create a symbol and set the registration point you can't ever change it? unless you make it into a new symbol?

View 2 Replies

IDE :: Placing A Registration Point Outside Of A Movieclip?

Mar 14, 2012

I have an action script for a movie clip to rotate around (instance_name.rotation -= 1. and this works fine, how ever i need it to rotate around a point outside of the movie clip. i think i need to move the registration point but i dont know how to do this.

View 1 Replies

ActionScript 2.0 :: How To Set MovieClips Registration Point

May 19, 2005

How do I set a movie clip's registration point using Action Script. Let's say I want it to be in the middle. I create my movie clip dinamical usign createEmptyMovieClip and drawing Api

View 1 Replies

ActionScript 3.0 :: Pan Sprite Which Changes Its Size And Registration Point?

Apr 26, 2009

i am succesfully panning an image so far with this code:

Code:
my_mc.addEventListener(Event.ENTER_FRAME, panMe);
function panMe(e:Event):void {

[code]....

View 10 Replies

ActionScript 2.0 :: Movie Clip Registration Point ?

Jun 4, 2009

in my dynamic gallery my empty movie clips that load the images have their registration point at the top left of frame.this means that even if i have images of different sizes, I have to make them all the same size and then with white borders if necessary so that they all display in the same place. it would be better if they were centred inside the emoty movie clip and the movie clips registration point was at the centre.. is this possible ?

View 1 Replies

ActionScript 3.0 :: Changing Registration Point Of DisplayObject?

Sep 25, 2009

is there a way to change the registration point of a DisplayObject through as3? I am loading an image through XML and the registration point defaults to top left. I need it to be in the center so my rotation tween looks right.

View 7 Replies

Changing Movie Clip's Registration Point?

Jun 9, 2009

I've received an .fla file with a design and am trying to play with it using ActionScript. I've got a symbol of a star on stage (movie clip) that I want to animate with AS. The movie clip's registration point is set to bottom right corner.
 
How can I change the registration point in Flash?

View 2 Replies

ActionScript 3.0 :: Registration Point For A Button Component?

Aug 24, 2009

I'm trying to use the Button component in Flash CS3  having issues with the registration point. The code should resize the bitton from it's center but it does from the top left corner. Is there anyway to change the registration point using action acript 3?

[Code]...

View 6 Replies

ActionScript 3.0 :: Set And Change Registration Point Of A DisplayObject?

Dec 15, 2009

analog to the Flash Authoring Tool, set and change the registration point while instancing a new DisplayObject?

View 4 Replies

Professional :: Centering Registration And Transformation Point?

Mar 15, 2010

This is giving me such a headache.I have a movie clip and it has a centered registration point but the transformation point is in the top left corner. I want both to be in the center of the MC. I want a little circle with cross-hairs in t in the middle of my MC, if at all possible without moving my MC. But I cannot get that damn cross-hair to budge from the top left corner! When I go into the info window and change the X-Y values of the transformation point, the whole MC just moves to a new position. The infuriating things is, I've done it before but I just can't seem to work out what I did. Please don't tell me to drag the registration point in free transform mode. I can do that, but I cannot drag the transformation point in the same way.

View 9 Replies

ActionScript 3.0 :: Changing The Registration Point On A Movieclip?

Apr 6, 2010

I have read a few discussions on changing the registration point on a movieclip but don't seem to work. I have a movieclip with embedded mcs. I can se that the nly way of changing the reg point is by saving as a mc again ie: creating another one and upon creation choose the reg point.

View 5 Replies

ActionScript 3.0 :: Fix Dynamic Registration Point In Movieclip?

Aug 4, 2010

How to fix dynamic registration point in movieclip?

View 9 Replies

ActionScript 3.0 :: Move Registration Point On A Uiloader?

Oct 30, 2010

Move Registration Point on a uiloader Is this possible?

View 2 Replies

Professional :: How To Change Registration Point Of Object

Dec 5, 2010

I have an object which is converted into a symbol. I double click on this object/symbol and it goes into its own seperate timeline. For my coding purposes I would like to know how to change the registration point of the symbol so it moves along or is addjustable on a symbols its own timeline so a can create animations on an objects timeline without screwing up my codeing because objects don't register when their moved away from the registration point the compiler still thinks that the registration point is where it was previously.

View 8 Replies

ActionScript 3.0 :: TLF Or Classic Text Registration Point?

Oct 29, 2011

Is there any way to set the the TLF or the classic text box registration point by some actionscript code or by any other way?

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved