ActionScript 2.0 :: Change The Registration Points Of A Movie Clip Say To Top Left Or To Centre?
Jan 11, 2006Is it possible to change the registration points of a movie clip say to top left or to centre for example using actionscript
View 1 RepliesIs it possible to change the registration points of a movie clip say to top left or to centre for example using actionscript
View 1 RepliesSo when you load a picture into a movie clip, it loads into the Top-Left hand corner.I really want it to load into the Top-Right hand corner. Is there a way?I am loading it via AS - not placing it manually, as I have a variety of images which are of different dimensions....
View 4 RepliesI have a fairly complex movie clip with a bunch of animations in it, and it seems that the registration point for it is at some random location in the middle of it all.
View 0 RepliesIs that possible?
View 2 RepliesWhen 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 RepliesWhen 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?
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 RepliesI posted a question regarding how to make a ladybug move around the screen and I managed to make a class that loaded a ladybug png then using a timer moves the bug around the screen...
but I have a huge problem...this has been bugging me all day and cannot find a solution...
The ladybug moves around the screen but rotates towards the moving direction before moving. The problem is that the ladybug is rotating at 0,0 axis and not at the centre of the movieClip. Is there a way to offset the registration point so that the ladybug rotates centred?
[Code]...
I have a series of thumbnails that should scroll from left to right & right to left when you roll over the movie clip buttons on either side. IT was working in another flash movie, but I moved it to a different flash file and now it's not working. The hit buttons within the movie clip buttons have this action script:
[Code]....
i've looked at several ways to centre a dynamically loaded image into a movie clip for the purpose of zooming the image once loaded. I am loading multiple images (16 in total) at a time and they are all 360 x 360 in size. So what i want to do is set 180,180 to be the centre of the loaded image.
This sounds easy to me but in practice i'm finding it impossible (although i know it isn't as i've seen similar examples doing this).
[Code]...
i am struggling to work something out here and am hoping that someone on here can put me right...i have a flash movie that uses a liquid type layout (ie all from top left to fill the stage) - part of the movie is a navigation that when clicked slides around the stage to set positions.the problem is that the nav co-ordinates (points it travels to) are all based around top left of the stage, and i need to make it work from the centre of the stage.this is an example of one slide actions on one of the buttons named CLEAR:
PHP Code:
panel.CLEAR.onRelease = function(){
yTargetMC = 325;
[code].....
i am struggling to work something out here and am hoping that someone on here can put me right...i have a flash movie that uses a liquid type layout (ie all from top left to fill the stage) - part of the movie is a navigation that when clicked slides around the stage to set positions. the problem is that the nav co-ordinates (points it travels to) are all based around top left of the stage, and i need to make it work from the centre of the stage.this is an example of one slide actions on one of the buttons named CLEAR:
PHP Code:
panel.CLEAR.onReleasefunction(){
yTargetMC 325;
[code]....
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 RepliesI'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?
I have a form with 5 mandatory fields and 2 of which are combo boxes.My problem is I can't get the required fields to work, the form works perfectly fine and goes to the form success frame and sends out all the information in the fields (even if they are left blank)I am on AS2.0. The registration form is a movie clip itself with the send button on the same level and not inside the movie clip.
"theCat_registration" & "theTSize_registration" are the combo boxes. This is the AS in my send button
Code:
on (release) {
if (theName_registration == "" || theContact_registration == "" ||[code]....
Is there a way to set the registration point of a movie clip programmatically in actionscript? I want to be able to use createEmptyMovieClip(...) and then set the registration point to the center of the clip in order to do a symmetrical rotation.
View 2 RepliesFor some reason I'm having trouble designating where my registration points are on my objects. When I create new objects the option is simply not there. Also, when I'm doing some actionscripting, my text does not change colors, even though I've set it to do so...
View 3 RepliesI have a movieclip that I reference that I want to be able to change the reference point from left to right at well on.
View 1 RepliesDo 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 RepliesI 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);
}
I'm having some troubles trying to scroll a container MovieClip across the stage.I've attached an EventListener to the stage to track the MOUSE_MOVE MouseEvent, but it scrolls in a weird way (when halfway the screen it shows about 300 px of the container, when going below the horizontal centre, it goes up and disappears from sight.This is my code:
Code:
private function moveHandler(e:MouseEvent):void
{
[code]....
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]....
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 RepliesI've got a scrolling image gallery which I have a zoom button that lets the user zoom in on the images... If they click on the stage, the scrolling stops. Now, if they try to zoom in, the image scales from the left side, since the images registration points are on the left side of the movie clip they're loaded into. This causes the images to shift right, but I want it to appear as if its a straight on zoom...
View 3 RepliesI'm working on a pathfinding algorithim using A* and using irregular polygon shapes as obstacles rather than a grid. I don't fancy plugging in all the points and links by hand and was wondering if there was some way I could just get them from a Sprite or MovieClip?
View 1 RepliesI need to have 2 kinds of masks, one with a registration point in the top left so that when I tween its height it expands downwards, and one with a registration point in the bottom left so that when I tween its height it expands upwards?how do i do that, with code ofcourse?i have made something but i dont know if its the right way:(this expands downwards, but i dont know how to get it to expand upwards)
Code:
import gs.TweenLite;
var subMask:Shape = new Shape();
[code]......
I have an image that's being moved like so:
Code:
mcSky.addEventListener(Event.ENTER_FRAME, moveSky);
function moveSky(evt:Event):void {
[code].....
I am wanting to make a scroller similar to the Flash Components 360PanVeiwer[url]...but I have no idea about how I can go about doing it. Could someone please explain how i might acheive this in AS3 alo I don't necessarily need it to be 360 I just want to be able to scroll through a movie clip that is much bigger than my stage and click on the buttons in side the clip. I hope that makes sence.
View 31 RepliesI'm trying make a jumping animation move to the left when I click the left arrow key and up arrow key and don't know how. I'm new to AS, just sorta winging it.
[Code]...
What script would I use to move a movie clip say a cm to the left?
When I say this._parent.mc._x -= 3 it just keeps moving left, but it doesnt stop. I want it to move 3 left and then stop. How can i do this?