ActionScript 2.0 :: Center LoadMovie Registration Point?

Dec 1, 2007

I'm trying to use Zoom transition for my photo Gallery which I'm using loadMovie "jpg" from Xml file.Now the problem is here. The Registration Point is set to the top upper left corner and I would like it to be in the center of my loadMovie.The Zoom transition only zoom from left corner and need to be center equal sides. How do I do this. My image size is "width 400px height 240px

View 4 Replies


Similar Posts:


Actionscript 3 :: Set Registration Point Of A MovieClip To Its Center

Mar 28, 2010

Can I set the registration point of a MovieClip (or other Display Object) to its center upon creation in AS3? the following

[Code]...

sets the registration point of myClip to its top left corner by default. Using Flash CS4 to set it to its center is just a couple of clicks, so I am wondering how I can perform the same action only with code.

View 3 Replies

ActionScript 3.0 :: Set Registration Point To Loader At Center By Using It?

Dec 28, 2010

How Can i Set registration point to to the loader at the center by using as3 ?

View 5 Replies

ActionScript 3.0 :: Top-left Registration Point To Center Conversion (2D To 3D)?

Nov 16, 2010

I'm making a 3D room builder. The user places Sprites around the 2D stage and my script converts those Sprites to Papervision3D DisplayObject3D objects. I'm having problems with the 3D object positioning because Sprites have registration points at their top-left corner and 3D objects have registration points at their center. How can I make that conversion?ere's a scheme of how the 2 different coordinate systems work:

I've tried this code:
child3D.x = child2D.x;
child3D.z = child2D.y - child2D.y - child2D.y; // just to make it negative

[code]....

View 5 Replies

ActionScript 2.0 :: Move The Registration Point From Top/left To Center?

Jul 11, 2003

I start with a question: how could I change the registration point of a movie clip created or loaded at runtime? I want to move the registration point from top/left to center.

View 2 Replies

Flash :: Center The Registration Point For Dynamically Imported MovieClip?

Mar 2, 2011

I'm trying to see if there's a way to change the registration point of a MovieClip that's importing an image dynamically?Here is my code where I add an image to an "overlayHolder":

overlayBitmap = _loader.getBitmap( _data.id + "-overlay_image" );
overlayHolder.addChild(overlayBitmap);
overlayHolder.x = _data.overlay_left;
overlayHolder.y = _data.overlay_top;

What I need to do is rotate this image later on, upon interaction from someone, but need it to rotate with a center-registration.I've seen a bunch of tutorials/forums talk about centering a registration point when you're drawing a Sprite on the stage, but not when you're importing an image.

View 1 Replies

IDE :: Change Registration Point (left Center Corner Etc) Of Object

Oct 28, 2010

When you create shape on stage and right click and chose create object you can chose Registration point for the object you chose what corner will be used as center of coordinates for this object. Now onice you create object is there way to change this registration point e.g. i created it in center now i want to to be in upper left corner?

View 5 Replies

ActionScript 3.0 :: Change Registration Point Dynamically / Rotate Any DisplayObject By It's Center?

Jun 15, 2009

The Rotations3DUtility is writed by myselft to make any DisplayObject rotate by its horizontal center, but the effect isn't perfect.[code]...

View 2 Replies

Professional :: Change Registration Point (left Center Corner Etc) Of Object?

Oct 28, 2010

When you create shape on stage and right click and chose create object you can chose Registration point for the object

you chose what corner will be used as center of coordinates for this object. Now onice you create object is there way to change this registration point e.g. i created it in center now i want to to be in upper left corner?

View 1 Replies

Flash :: Change Registration Point Of A MovieClip To Be Center Of Width And Bottom?

Oct 13, 2010

I have a MC in an AS3 animation and I want to increase its height from bottom to top which would mean that the registration point should be bottom of the MC and center of width (horizontal center).

View 2 Replies

Flex :: Changing Registration Point From Upper Left Corner To Center?

Mar 31, 2011

I want to learn how you can change the registration point for the Canvas.I want to make a zoom of this component, but the point registration in the upper left corner! How do I move to the center?

View 3 Replies

Flex :: Changing Registration Point From Upper Left Corner To Center

Mar 31, 2011

I want to learn how you can change the registration point for the Canvas. I want to make a zoom of this component, but the point registration in the upper left corner! How do I move to the center?

View 3 Replies

Flash 10 :: Change Registration Point (left Center Corner Etc) Of Object

Oct 29, 2010

When you create shape on stage and right click and chose create object you can chose Registration point for the object..you chose what corner will be used as center of coordinates for this object. Now onice you create object is there way to change this registration point e.g. i created it in center now i want to to be in upper left corner?

View 2 Replies

ActionScript 3.0 :: Finding A Point Relative To A Center Point?

Nov 9, 2010

I'm trying to figure out how to find a point relative to the center of an object, modified by its rotation. For example, in the attached swf, I've been messing around trying to draw trails to a bitmap, coming out of the thrusters. I didn't have a problem at first, but as the ship rotated, the lines that were being drawn wouldn't remain relative.

http:[url]....

I'm sure this is because I have no idea what I'm doing, and I've just been sort of idioting my way through it. That aside, is there an easy way to find the point I'm looking for? For instance, say I want a point at Y -14 of my ship, but I want that to remain relative to the ship as it rotates.

View 14 Replies

ActionScript 3.0 :: Rotation Around Center With Registration In Top Left

Jun 20, 2011

I coded an entire file based on the top left registration point of my movie clip. I want it rotate it to point at the cursor, but since the registration point isn't in the middle.. its not a perfect rotation around the center of the mc. Is there anyway to rotate it around the center of the movie clip without changing the registration point?

ActionScript Code:
stage.addEventListener(Event.ENTER_FRAME, aimBall, false, 0, true);
function aimBall(event:Event):void {
ball_mc.rotation = getAngle(ball_mc.x, ball_mc.y, mouseX, mouseY) -90;
trace(ball_mc.rotation);
} function getAngle(x1:Number, y1:Number, x2:Number, y2:Number):Number {
var radians:Number = Math.atan2(y1-y2, x1-x2);
return rad2deg(radians);
} function rad2deg(rad:Number):Number {
return rad * (180/Math.PI);
}

View 9 Replies

ActionScript 3.0 :: Scale Moveclip From Center Registration?

May 1, 2010

I am using a slider component to scale a movie clip. Currently it scales from the bottom right corner (I guess this is default). I would like the MC to scale out from the center.

Current Code

// slider
slider.addEventListener(SliderEvent.CHANGE, scaleObject);
slider.minimum = 1;

[Code]....

View 2 Replies

ActionScript 3.0 :: Auto-center Registration On Senocular Transformtool

Apr 15, 2008

I've been experimenting with senoculars transform tool for a while now. It's an awesome tool, I'm just having some issues getting it to do what I need it do. I think the problem is it does some really complex stuff but I really just needs some of the simpler features. I'm pretty close to just scrapping it and making a simpler one myself but I really don't want to do that.

My current issue is trying to get the registration point to always be the center of the object it's transforming. I was able to sort of do this by changing the line that creates the registration point to this: innerRegistration = new Point(_target.width>>1, _target.height>>1); but when the object is scaled the registration point gets messed up.

View 4 Replies

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







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