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


Similar Posts:


ActionScript 3.0 :: Senocular's TransformTool - OnClick Event

Jan 27, 2009

One of the movieclips I have on the stage, Im using senocular's transformTool, to activate the transform controls (when that MC is clicked). But now I wanna have a different action if there is a SECOND click, but the MC isn't detecting any clicks anymore because the transformTool comes on top of the MC. Does it make sense or am I on crack?

View 7 Replies

ActionScript 3.0 :: Flash Senocular's TransformTool - MovieClip Is Relocated Much Smaller Than Its Original Size ?

Jul 5, 2010

I see a number of cool sites and examples using Senocular's TransformTool. Most of them look and function really well. I've downloaded and reviewed the code for a number of different examples.I can see how everyone else's works.I'm having difficulty with 2 points:

1. When I select a movieClip, the TransformTool appears in the correct spot and in the correct dimensions. But the movieClip itself is relocated much above the TransformTool and is MUCH smaller than its original size and the current (and correct) dimensions of the TransformTool. Selecting one of the handles and dragging stretches the movieClip but does not make it the same dimensions as the TransformTool

2. Releasing one of the handles seems to cause the handle to behave in the same way the movieClip did -- you can resize and move the handle.

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

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 :: 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 2.0 :: Senocular's Free Transform Tool (or Even Senocular)

Mar 14, 2007

I've been using Senocular's free transform tool: [URL] in tandem with an image upload (using the fileReference class) so that users can upload an image and the transform it.

The free transform class has a function that allows you to restrict the scaling of the movieClip that you apply the free transform to, but it works on a 'scale' rather than specific height and width properties. My problem is, that I don't know what he dimensions of each uploaded image will be, so if it's restricted to a scale, some images will be allowed to be bigger than others....

View 4 Replies

ActionScript 2.0 :: Auto Center MovieClip According To Height / Width Of Stage

Dec 5, 2009

I know normally if I want to center a movie clip I would

mcName._x = Stage.width / 2; or * 0.5;
mcName._y = Stage.height /2; or * 0.5;

my problem is I'm using a component that changes the width and height, but the real problem is that the registration point of the component is the top left. I know I seen code somewhere that gets the width of the movieclip, figures out where the center is then positions it accordingly but I'm not quite sure how it's done.

View 1 Replies

ActionScript 3.0 :: Scaling And Get The Center Window To Stay In The Center Of The Web Browser Screen

Aug 15, 2009

I have a center window and a background in my flash file. I am trying to get the center window to stay in the center of the web browser screen and get the background to expand and fill the entire web browser screen below center window layer. Sort of like this site [URL] I've currently converted the background to a movie clip and have this code.

[Code]....

View 11 Replies

ActionScript 2.0 :: Making An Auto-play/an Auto-resume?

Jan 2, 2009

I'm making an interactive film. At certain points within the film, the viewer has the ability to select from a few options that will direct them to an external video clip (they are flashback scenes). The main story pauses when the user selects a flashback scene and I'm clear on how to achieve this.

However, my issue is that once the flashback scene ends and the external video closes, I'm not sure how the main story will resume. Is it possible for it to auto-play (resume) in some way? My last resort would be to have the viewer select a play button - this is only because I do not want a break in the narrative and want to limit the amount of clicks the viewer has to make.

View 9 Replies

Keep Center Of The Movie In The Center Of The Scree Regardless Of Browser Size?

Mar 23, 2009

My flash movie is 1440x900 but the area where all the important stuff happens in within 1024x768, i am trying to keep the middle in the center regardless of browers size or aspect ratio.

I can center the page but it doesn't work as i need it to. If the browers is small (1024x768) the swf is justified against the left edge, but not keeping the middle in the middle of the brower.

[URL] is an example of exactly what i am trying to achieve.

View 13 Replies

ActionScript 2.0 :: XML Based Menu By Senocular?

Jul 31, 2007

I followed the XML based menu by senocular a long time ago and modified it to display a title when the sub menu is chosen simply a movie with an image of a menu button in it: http:[url]....I need to modify this so that when the title is hovered over it displays the sub menu. Essentially imitating the behaviour when the first menu is hovered over.

View 1 Replies

ActionScript 2.0 :: Senocular ProgressiveDrawing Listener?

Mar 18, 2008

So I picked up senocular's ProgressiveDrawing class this morning (awesome), but I'm having some issues getting an oncomplete to fire correctly. I think it has to do with my for loop,but I don't know why.

PHP Code:
for(var i:Number _msStructure.menuItems.length; i++){ var nIndex:Number mcBtn _mcTarget["mcBtn"+i]; 

View 3 Replies

ActionScript 3.0 :: Senocular KeyObject Class?

Dec 28, 2010

got a question about this class.it says:

Usage:
* var key:KeyObject = new KeyObject(stage);
* if (key.isDown(key.LEFT)) { ... }

[code].....

View 2 Replies

ActionScript 2.0 :: Object Basics By Senocular?

Jul 27, 2004

I am only at the very beginning and I want to make certain that I go through this understanding everything that can so maybe I won't have to ask as many questions in the forums and can start answering more. In this part:The code for making a standard generic object in Flash is as follows:

myObject = new Object();

The variable myObject then becomes a object variable which can then have more variables added to it using dot syntax like so.Is myObject the actual name of the variable and the = new Object simply stating that there is a new object called myObject?

View 14 Replies

ActionScript 2.0 :: Senocular's Directional Motion Blur?

Aug 31, 2010

he problem I'm having is I can't make this code reusable- I want to use it in a more linear fashion for banners rather then dynamically with mouse clicks. Has anyone had any luck using this in a timeline?This is my attempt to customize at the moment (old_loc is coming up as undefined, which in turn makes new_loc NaN):

PHP Code:
import flash.geom.*;
import flash.display.BitmapData;

[code].....

View 1 Replies

ActionScript 3.0 :: Skinning Senocular Transform Tool

Dec 27, 2010

Has anyone a chance to make custom skin for new transform tool v2 beta? Or can anyone guide me for a starting point?

View 0 Replies







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