IDE :: Change Transformation Point With AS?

Aug 11, 2009

Is there any way to dynamically change the Transformation or registration point of a MC with AS3? I'm trying to dynamically create shadows behind clips that skew to follow the sun.

View 3 Replies


Similar Posts:


Flash 9 :: Reset Transformation Point/Set Transformation Point?

Feb 8, 2008

When I right-click a symbol the options "set transformation point" and "reset transformation point" come up. They don't seem to do anything for me. I thought it would center them or something. This is not the case. I have the white transformation point in one corner in one keyframe and a different corner in another keyframe I click "reset transformation point" on both frames and they don't move.

View 3 Replies

ActionScript 2.0 :: Set Transformation Point In It?

Jul 10, 2009

How would I make this grow from right to left?[code]...

View 1 Replies

ActionScript 3.0 :: Dynamically Setting Transformation Point

Mar 7, 2009

I am creating an interface where a user can pick up "Polaroid" stle photos and shuffle them around a virtual desktop. I want to photo to shift it's transform point to match the point at which the user picked up the photo, to create a "swinging" effect as the photo is dragged.there was an AS2 workaround floating around, but I want to find the AS3 equivalent, and seem to be unable to find it in the Geom/Matrix package/classes.

View 3 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 :: Recalculate Point X / Y Value After Matrix Transformation

Jun 16, 2010

I am doing a matrix transformation on a Display Object. I got this function from another site, but basically it scales a display object around any point.
ActionScript Code:
public static function scaleAroundExternalPoint(m:Matrix, x:Number, y:Number, multiplier:Number):void{
m.translate(-x, -y);
m.scale(multiplier, multiplier);
m.translate(x, y);
}

But my problem is that I have to do multiple scales in a sequence and after scaling, the points defined in the XML no longer correspond. Let me first say that all the points being scaled around are located in an XML file. They are all relative to the display object's registration point (0,0) when it is normal, i.e. a scale of 1. Also, I have created a class that retains the target object's original Matrix so that the percentage you pass in is relative to the original scale instead of the scale after each call. But basically, with the scaleAroundExternalPoint function by itself, if I have an object that I scaled to twice it's size, the multiplier would be 2. but say I want it back to it's original size. The multiplier would NOT be 1 since that would just leave it at a scale of 2x. It would have to be .5. The important parts of the class are below.

ActionScript Code:
public function ZoomUIComponent(isKeyboardControlled:Boolean = false, disabledAlpha:Number = .25,
max:Number = 2, min:Number = .5, precision:uint = 2,
seconds:Number = 1, step:Number = .1):void{
this.disabledAlpha = disabledAlpha;
this.inControl = InteractiveObject(getChildByName("zoomIn"));
_isKeyboardControlled = isKeyboardControlled;
[Code] .....

It's retaining the original matrix and then calculating based on that EACH TIME. So how would I find the new X and Y values of the original points so that I can scale around them?

View 1 Replies

ActionScript 3.0 :: Set An Object's Transformation / Registration Point Not The IDE?

Jun 3, 2008

This is probably really trivial, but how do I set an object's ransformation/registration point in AS3, not the IDE?

View 12 Replies

ActionScript 2.0 :: FMX Rotate Symbol On Transformation Point

Nov 11, 2002

I have a triangular symbol that I want to rotate on a transformation point (the pointy tip). The effect is supposed to be like Hollywood searchlights panning around (see pic below). I've done basic rotations with actionscript before, but a transformation point wasn't involved. How is this done? Is the transformation point determined manually on the stage or with actionscript?

View 1 Replies

ActionScript 3.0 :: Sprite's Transformation Point And Insertion Origin

Aug 5, 2011

I am making application which will dynamically create sprites via action script and copy the sprite's image to a bitmapdata object via .draw() function. I would like to store the location of the sprite's transformation point and insertion origin (which would be set within the flash editor when the sprite is created/imported.) Is there a way to access the location of the transformation point and the insertion origin via ActionScript? I just want to read it, I do not need to change it.

View 5 Replies

ActionScript 3.0 :: Senocular Transformation Tool - Registration Point

Jun 27, 2010

I am fiddling around with Senocular's Transformation Tool classes, which allow for a MovieClip to be transformed (rotated, resized, skewed, etc) upon click. Just one tiny problem. I need for the MovieClip registration point to always be centered, so that when I do begin transforming in any way, it transforms from that centered registration point. Here is a picture - I need this done in As3 rather than simply creating a new MovieClip symbol and selecting the center for its registration point, as these pictures are loaded dynamically.

View 6 Replies

Actionscript 3 :: Moving A Point With Rotation Doesn't Change The Point XY?

Jul 15, 2011

i have the follow issue :

I have a point which is setted at the border on a component, with changed transform point to the center of a component in order to match the component rotation.

the important part is when i try to get the point XY after rotation - they remains the same as before rotation.

how to get XY, after rotation ( changeing point.rotation property to specific degrees of rotaion )

View 2 Replies

ActionScript 3.0 :: Change The Point From Which Something Tweens?

Feb 5, 2009

I have some images which I am loading with xml and tweening using scaleX and scaleY. They default tween from the top left. How can I make them tween from the centre using actionscript?

View 2 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

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

Change Pivot Point For A Graphic?

Jul 7, 2010

How do you change the Pivot point for a graphic on MX 2004?  It defaults to the middle and I need it on the end of the graphic.

View 3 Replies

Professional :: Change Registration Point XY?

Jul 5, 2011

how?

View 1 Replies

Professional :: How To Change Reg Point On Instance

Feb 29, 2012

When load an image into a instance, I can't align them because the reg point is different.

View 3 Replies

ActionScript 2.0 :: Change The Document (0,0) Point?

Feb 24, 2010

I guess if there is a method for change the origin (0,0 point) of a flash document.If you publish a 200x200px flash document as a 400x400px flash document (changing its size by the html height and width attributes) and set its Stage.scaleMode = 'noScale' inside the flash, the stage area will grow the additional 200px (in each dimension).

But instead of add the extra 200px AFTER the original ones flash renders a stage area with x and y ranging from -100 to 300, it is centers the original stage area in the new stage dimensions.I am trying to find a method of change the 0,0 point of the stage in real time, so I could work with a stage with dimensions ranging from 0 to 399 (in both axis) instead of -100 to 300,

View 1 Replies

ActionScript 3.0 :: Change The Skeleton's Pivot Point To Hip?

Sep 15, 2009

How do i change the skeleton's pivot point to hip?? "reset Transformation point" doesnt doin it!!

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 :: 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

Flash :: Change Position Of Registration Point In CS5?

Sep 13, 2010

Is there a way to change the position of the registration point inside a Movie Clip using Flash5 ?I've found stuff online for older Flash versions but not CS5.

View 2 Replies

Flash :: Change 3D Registration Point For Rotation In AS3

Apr 18, 2011

Has anyone got a bit of code I can use to change the center point DisplayObjects rotate around in a 3D space? I need it to work with rotationX, rotationY and rotationZ. I know theres a workaround of wrapping every object in aother sprite and offsetting the x & y positions but I'd much prefer a math solution. As an example of the problem, this code should make a star shape:

[Code]...

View 1 Replies

Change Registration Point Of A Movieclip After You've Made It?

Aug 16, 2006

Is there a way to change the registration point of a movie clip after you've made the movie clip?

View 5 Replies

ActionScript 3.0 :: Change The Rotation Point Of A Sprite?

Feb 4, 2008

I'm attempting to write a racing game. I've loaded in my image, I brought it to the stage and now, all I want to do is rotate it from its' center and not upper left corner.

The code:

racer.rotation += 5;

rotates from the upper left corner. How do I rotate from the center of the car/sprite? I've tried putting it into a container but I'm unsure on the coordinates of the container because I tried to set the x,y coordinates to half the sprite image but y'know, it's not doing what I expect it to.

ActionScript Code:
if (arrowLeft) {
var container:Sprite = new Sprite();

[Code]....

I will never sneer at another racing game! I didn't think it would be this hard to do a simple rotate of an image!

View 3 Replies

ActionScript 3.0 :: Change The Registration Point Dynamically?

May 7, 2010

How to change the registration point dynamically in As3.0

View 2 Replies

ActionScript 2.0 :: Change The Text Boregistration Point?

Mar 21, 2011

i have a textbox on stage which scrolls text from the left hand to the right side of the screen. When the textbox to other side of the screen when reaching a certain point.I would like to change the registration point of the textbox . Start on furthest left hand side not the right Or another idea is to minus the distance of the textsbox.width

box.onEnterFrame = function(){
news._x +=5;
if(news._x >= 800){

[code]......

View 0 Replies

ActionScript 2.0 :: Change The Registration Point Of An Object?

Mar 11, 2012

I want to rotate the movieclip about a point that is not on the registration point.

The current registration point is at the top left and I want to rotate it about the coordinates: _y = -178, _x = -24.5

View 8 Replies

ActionScript 3.0 :: Change Sound When Mouseover Y Point

Mar 27, 2012

I want to change a sound in my code when the mouse is over an y point.
Code:
var musica:URLRequest = new URLRequest("sensor.mp3");
var sound:Sound = new Sound();
var soundControl:SoundChannel = new SoundChannel();
sound.load(musica);
addEventListener(Event.ENTER_FRAME,update);
stage.addEventListener(MouseEvent.MOUSE_MOVE, Inicial);

Here, I need to change the sound to another one.
Code:
if(mouseY > 250){
var musica:URLRequest = new URLRequest('som2.mp3');
sound.load(musica);
}
but it isn't change.

View 6 Replies

Flash 9 :: Why Doesn't The Registration Point Change

Jan 31, 2006

I have a symbol created out of a bitmap image. When I converted the "bitmap" to a "movieclip" object, I selected the center registration point in the dialog box. After the symbol is created an placed on the stage, I can seen the registration point at the center of the movieclip. Nevertheless, if I check the coordinates of the movieclip, it refers to the top left corner instead of the registration point. The most strange thing is that if I try to check the coordinates of the movieclip using Actionscript - something like trace("x: " + mc._x + "y: " + mc._y); - it do refers to the center point of the movieclip. So how can I have the coordinates during design time the same as during runtime? Why do I always have to refer to the top left corner and not to the ACTUAL registration point?

View 9 Replies







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