Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Registration Points.



A fast and hopefully simple question.The default registration point for dynamically created objects is at the top left corner. The question is the following: how can I set the registration point of a dynamically created object manually ? Because I'd like to set the reg point to the middle of my object...Any ideas ? Thanks.



KirupaForum > Flash > ActionScript 3.0
Posted on: 12-23-2007, 04:44 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Registration Points
Does anyone know if you can dynamically change the registration point of a movie clip at runtime.

My problem is this. I have a dummy MC which I use to load different photos into at runtime. The problem is I have to place the dummy clip at the top left at the moment. But, I don't know the exact size or orientation of the picture I'm loading so I would prefer it to be centred, therefore whatever the shape of the photo it would still be in the centre of the display area.

Can anyone help or come up with an ingenious fiddle?

Registration Points
is there an way of changing the registration of a symbol from centre to centre-left?

There must be a way but i can't find it, it just means that all my bitmaps will have to be converted all over again.

cheers!

tabrez...

MC Registration Points
Hello
I use Flash MX 04, but my college use Flash MX. I have drawn a vastly complicated map of a school, and now need to change each room into individual Movie Clips. For animation reasons that will occur later in the project (x and y scale changes), i need the registration point of each Movie Clip to be at the centre (so if a room is 100x60, the registration point will be at 50,30) and due to the number of rooms and accuracy required, i cannot simply move each one manually to the centre. Flash MX is fine for this: when you convert a shape to a movie clip, the registration point is automatically at the centre. However, in MX 04 it naturally is placed at co-ordinate 0,0 of the new movie clip.

I have searched the preferences of MX 04 (which i must admit, have never had to use before) but cannot find any such option. Is it possible to change this? Or will i have to get my hands on a copy of MX?

Thank you.

Set Registration Points With AS?
Well as the title suggests, 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.

Cheers

Registration Points
Is it possible to change the registration points of a movie clip say to top left or to centre for example using actionscript

2 Registration Points?
I created an empty movie clip to load my external swf files, however when I go to Modify>Edit Center and move the crosshairs to the upper left corner...there is still a crosshair in the middle as well. It shows 2 crosshairs. My movies end up loading in the middle one.

I'm confused. Also, I made a preloader and the bar loads from the middle outwards instead of from left to right. Similar to problem above. Could someone please help.

Registration Points
This is driving me crazy because I don't know what's wrong.

No matter where I put the registration point on a thingy (for example, say a graphic) in symbol editing mode the coordinates in properties always reference the graphic to the top left.

I've tried moving everything, that little orb that's 'supposed' to be the registration point, the crosshair or whatever, but it still keeps referencing the graphic to the top left! I would very much like to be able to change where the registration point goes on a graphic, and not have the top left every time.


Oh, and I can't seem to find the rules for these forums. Anyone know where they are?

Registration Points
Hi,
Can someone tell me how to set movieclips so that they appear on screen with the little white circle and crosshair in the top left hand corner? I have selected the top left box in the info panel, but the white circle and crosshair still appear in the middle of my mc's...do I have to position the graphics from when I create them in their own edit window?

thanks,ss

Registration Points
Hiyo! I am currently trying to make a type of expanding circle ping effect type thing. I have this code so far:

Code:

import fl.transitions.Tween;
import fl.transitions.easing.*;

// Adding a circle to the stage
var CENTERX:Number = 100;
var CENTERY:Number = 100;
var circle:Shape = new Shape();
circle.graphics.lineStyle(5, 000000, 1);
circle.graphics.drawCircle(CENTERX, CENTERY, 50);
stage.addChild(circle);

grow_btn.addEventListener(MouseEvent.CLICK, grow);


function grow(event:MouseEvent):void
{
   var zoomInX:Tween = new Tween(circle, "scaleX", None.easeNone, 0, 2, 10, false);
   var zoomInY:Tween = new Tween(circle, "scaleY", None.easeNone, 0, 2, 10, false);
   var cirleAlpha:Tween = new Tween(circle, "alpha", None.easeNone, 1, 0,10, false);
}

The problem is, I am trying to make this circle grow from the center, not move outward when it scales. With this code right now, the circle is scaling from the top left corner. Is there any way I can make it so that the circle scales at the center (move the registration point from the top-left to the center)?

Dynamic Registration Points
I've been trying to figure this one out for some time now. Is there any way to alter the registration point of a symbol automatically? The registration point is not a property (like_x, _width, and so on), so Set Property doesn't work on it.

I haven't been able to find a way to change the registration point without actually going to a symbol instance and manually resetting it. Anyone else out there know of a way around this?

Moving Registration Points
I hope I don't sound too foolish but does anyone know how to move the registration point on an instance. I'm not talking about clicking the little boxes when creating a symbol either.

Thanks for your help...if you can. DT.

Scripted Registration Points
I have used the createEmptyMovieClip() function and using script drawn a square. This is fine but when i want to rotate the square it rotates around the top left corner of the square which is its registration point. How can i move the registration point via script??
thanks
Gregorin

Registration Points With Actionscript.
Hi,

I got a blank movieclip that loads up a jpeg into itself. But when it does the registration point is assigned to the topleft-corner and the jpeg is completely off centre to where i need it. The reg point has to be in the centre of the jpeg mc as i got a zoom thingy that is ruined by the top-left reg point position.

How do i change the reg point with actionscript??

I found this but i couldnt get it to work:
http://www.flashkit.com/board/showth...at ion+points

A little help would be good as i'm running out of ideas!

Cheers

Steven.

Changing Registration Points
how can you change the registration point of a movie clip once it is already converted to a movie clip.... for example im making a flash map with a zoom feature..... when i created the map zooming clip i used the default registration point (upper left hand corner) so my zoom tool zooms to that location..... I need to change the registration point of the zooming clip so its in the center... can anyone help me.....

Inconsistant Registration Points
I'm trying to write a script that would make a yellow tile appear "randomly" on an isometric grid. So first of all I recorded the cell registration points for one of the rows in order to test my code. In the authoring environment the registration point of the yellow tile movie clip appears to be in the centre and I jotted down the x and y coordinates from the properties window. To test the script I just told the clip to position itself to the first set of coordinates in the array I created. It does move the tile, and trace reveals that its the same coordinates I expected it to move to, but its at a completely different place on the screen to where I wanted it! I have got x and y the right way round, I'm sure! The script is on a onClipEvent(load) command attached to the tile movie clip. Does that mean that it can't see the bigger picture, as in the coordinates for the main stage? If so, how should I be doing this?


onClipEvent(load){
sqr_array = new Array( [147.5, 307.5],[125.2, 296.6], [147.2, 285.6])
this._x = sqr_array[0][0];
this._y = sqr_array[0][1];
}

Symbol Registration Points
How do you change the registration point of a symbol that you already have on the stage. I have tried everything that i can think of and i am sure that it is easy.

Please any thought would be great..

Rotations And Registration Points
I know there have been a million questions about registration point adjustment, but I can't seem to find the answer to my problem. I'm trying to make a propeller clip, but the center of the image is not exactly the center of the mc. I am trying to adjust the mc contents to line up with the main timeline mc's registration point and then add a timeline effects-->transform/transition-->transform to give it a looping rotation. When I do this, the rotation seems to use the parent mc's registration point and the rotation animates slightly off.

I hope I am making sense. I am pretty new to Flash in general and I might just not be aware of a better way to animate this rotation. Anyone have any suggestions?

Dynamic Registration Points
I've seen many people curious on how to create a dynamic registration point using AS2 but their solutions do not seem to help me in my problem.

I'm creating an interactive, scrolling, zooming map. Scrolling and zooming are done but the problem i have is that when i zoom (by changing the MCs _xscale and _yscale properties) it naturally increases and decreases its size from the inital registration point.

My question is: How do i dynamically change the registration point of the MC so that when i change the _xscale and _yscale properties of the MC it scales in relation to where the users center-screen is?

Any input would be much appreciated.

Registration Points And Object Sizing
I am trying to size an image by setting its width. However, the width calculation is based off the mouse location minus the x location of the object. When I do the size, however, the width is set but the X location moves so that the new width is cetered on the reg point. I think my problem stems from the registration point and my lack of understanding of it. If this is expected, how do I change the reg point of an object. It seems like it should be simple but I cannot seem to find it. Thanks.

Registration Points... Changable Dynamically?
is it possible to change an object's registration point dynamically through a parameter of the mc?

I wanna zoom in on an mc, and if you just change the registration point to where you want to zoom in and then adjust the x and y scale you can easily achieve a zoom effect... right?

Quick Question.....registration Points
Im doing this quick animation and im using the shape tween function thing to morph these two images into something else, anyways, i want a certain point on one image to morph into the other image, is there a way i can make like key points on one image, to start the morphing on that point? im new to flash and havent figured anything out yet...hope this isnt to confusing thanks

User Manipulation And Registration Points
Hi all,

My first visit to these forums! Hopefully i'll be able to help others out at some point rather than just ask dafgt questions.

please take a look at this basic swf.

http://www.cems.uwe.ac.uk/~rtann/Ale...ity7/act72.swf

the idea is that you can drag the two end points of the line independently or click the line itself to move the whole shaboodle. It done by putting all of the 3 elements into a movieclip and altering how the events deal with a mouse hit to the "top" movieclip

You can see the problem straight away. as you move the end points the reg point of the parent clip changes away from the joining line, making the parent mc tricky to drag.

My question is, is there a work around for this problem? I've racked my brains and can't think of a way round it. Maybe i'm approaching it the wrong way?

Okay so this isn't a question about dynamically altering registration points. A quick google on this reveals a ream of comlex code i don;t understand that someone has kindly written to address the problem. The other option seems to be to botch it with nested movie clips which seems rather difficult to do well.

WHat I really don't understand is that it seems this must really limit what you can do in terms of providing a user with shapes to manipulate. It seems to me that this is something people are likely to want to acheive quite often.

So, sorry for this lengthy and kind of rambling post, any thoughts on his issue in general would be greatly appreciated

Thanks in advance...

Bottom Right Registration Points For LoadMovies?
Hello!!

I've searched high & low & tested numerous methods - but no cigar for me so far...
I'm having trouble with the following problem:

I have a main.swf which uses the loadMovie method to bring in external swfs.

I want the movies to all load in aligned to the bottom right.
So the very bottom right corner of my extrnal swf lines up to the very bottom right of my main.swf.

Is there an effective way?

Changing Registration Points With Actionscript?
Is there a way to do this? I have a movieclip that I reference that I want to be able to change the reference point from left to right at well on. Any help?

How To Center Registration Points With Xml Images?
I have this function that creates a grid of thumbnails using xml. I would like each thumbnail to grow on mouse over from the center. Currently, when the loader loads each image from xml, the registration point is the top left corner. Is there way to change the registration point?

Code:

function xmlLoaded(event:Event):void {
      
         xml = XML(event.target.data);
         xmlList = xml.children();
         
         _thumbnailsContainer = new Sprite();
         addChild(_thumbnailsContainer);
         var thumbnailContainer:Sprite;
         var thumbnailX:Number = 0;
         var thumbnailY:Number = 0;
      
         for(var i:uint = 0; i < xmlList.length(); i++) {
            imageLoader = new Loader();
            imageLoader.scaleX = 1;
            imageLoader.scaleY = 1;
            imageLoader.addEventListener(MouseEvent.CLICK, fadeThumbs);
            imageLoader.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver);
            imageLoader.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut);
            imageLoader.load(new URLRequest(xmlList[i].attribute(thumbAtt)));
            
            thumbnailContainer = new Sprite();
            thumbnailContainer.addChild(imageLoader);
            thumbnailContainer.x = thumbnailX;
            thumbnailContainer.y = thumbnailY;
            _thumbnailsContainer.addChild(thumbnailContainer);

            thumbnailX += 290;
            if((i + 1) % 3 == 0) {
               thumbnailX = 0;
               thumbnailY += 225;
            }
            imageLoader.name = xmlList[i].attribute(fullAtt);
         }
      }

How Do I Change The Registration Points Of A Movie Clip?
I want to move the crosshairs from the centre to 0,0 - I have heard it's possible but I can't find out how to do it

GREAT SITE BTW!!

My first post too.....hello everyone

Changing The Registration Points In One Symbol Between Animations
Any way to change the registration points in one symbol between animations. I have one layer that will animate in multiple ways and every time I change the reg points on the symbol it messes up all other uses of it. Thanks.

Flipping, Registration Points, Dynamic Clips
Say you have a movie-clip you dynamically added to the stage, either with createEmptyMovieClip or attachMovie. The registration point, by default, is in the top-left.

A common way to flip it horizontally it is to negate the x-scale, or you can apply a transformed Matrix to it.

In either case, the result is the same: the movie "flips" over the vertical axis (left edge). To get it to look like where it was before, you shift it over.

But that breaks the co-ordinates! What was previously an _x value of, say, 20, is now something like 142 (depending on the width of the object).

My question is: is there any way to flip a movie-clip in-place without changing its co-ordinates? That is, to make it flip, and look like it's in the exact same place, without the _x and _y values.

I've tried _xscale and Matrix transformations; I'm also 95% sure you can't move the registration point on dynamically-attached movie-clips (to make it flip about the center), is that correct?

Uber Noob Question - Registration Points
I've converted a group to a symbol, and on the stage, manually moved the pivot point so i can rotate it from an odd spot. but when I hit f6 to create another keyframe, the pivot jumps back to the center, obviously causing all sorts of animation problems. Even if I set the registration point close to the spot when converting the group to a symbol, there should be a way around it... anything ive missed?

Using Actionscript And The Drawing API To Animate A Line (2 Points) To 2 New Points
hi everybody - what is the best way to go about this?

at its most basic - i need to animate a line's beginning and end points using tweener to 2 new points somewhere else on the stage.

my first thought is to start with the excellent 3d spinning cube example that kirupa made on kirupa.com and backtrack from there.
http://www.kirupa.com/developer/acti...ces_depths.htm
but i'm hoping to find a much simpler and efficient way of accomplishing what i need.

the problem that i know i need to get around is this.... i have to find a way to have the Tweener class give me updated positions of the x and y of the two points which make up the lines. and somehow i have to use the drawing api to 'get inside of' tweener to update the stage accordingly - reason for this is that these lines will need to use the elastic tween and bounce around a bit.

i'd appreciate any help

cheers! - tom

Convert WMV File With Defined Cue Points To FLV And Keep Cue Points?
Hello, I need to know how to do this. I have wmv files with defined already cue points. I want to convert the video in to a FLV to play it over the net with flash, but I want to keep the cue points defined in the wmv. Is there a way to do this automaticaly or can I save the script lying under the WMV file defining the cue points in to a flv script. It is important that everything is done almost automaticaly because I have a lot of wmv files....


Help
thank you in advance

Finding Points Between Two Points
This seemed more likely to be answered here but if this belongs in Math and Physics please move it.

If I were given the following coordinates, how would I calculate the end points of the red segments? There's a 5 point gap between the endpoints and the corners.
EDIT: I've written the function, I just need the math.

Registration Of MCs
Is it possible to change a MCs registration without using "Convert into Symbol" again and so resetting possible actionscript and other things in it?

MC `s Registration
Can anyone tell me how to change the mc`s Registration in actionScript3.0?
thanks for your reply.

Registration...
hey there guys ! you know that registration thing when you convert an object into a movie clip? those little boxes.. heh.. well.. i just wanna know.. what do they stand for?

Registration
I was wondering if there was a way to make a flash thing 4 people 2 register to my site.

Registration Point
Does anyone know what a registration point is in relation to a movie clip in Flash???
Thanks in advance,
Damien

Registration Point Help
I'm using loadMovie to load a jpeg into a movieclip. When I resize/rotate the movieclip with the jpeg in it, it resizes/rotates only from the upperleft corner. I know that loadMovie always loads movieclips with the registration point on the upperleft corner, but what if I want to resize the from the bottomright corner or the center. Is there a way around this? Any help would be appreciated because I'm really stumped on this one.

Domain Registration
Who does the domain registration? I believe it is still 35 american dollars a year. I am looking for the actual company who houses all the names.

Registration Form Within A Swf
what is the best way to use dynamic text boxes in order to create an online registration form...
i want to have a form that people fill info into various text boxes which upon clicking the send button it would send all of the info directly to an e-mail.
can anyone help???

Registration On Symbols
i dont understand what the registration is for on symbols......can any explain it to me.....

Registration Point
I just changed to Flash 7 and I am going crazy. I need to change the registration point of a movie clip. ( I remember in Flash 5 you could move the registration point of an instance for example to change rotation pivot points.) I am creating a scroolling paneI,but my content starts at the middle inside the scrolling panel, because the registration point is at the middle of the content. I CANNOT move my content around it's registration point because it's a LONG list and if I move it to have the registration point at its upper left, half of it falls off the working area, and thus disappears when I scroll to that point (which falls off the working area.). Please, can anyone tell me how to:
1-Move the registration point ?
or
2-make the work area larger?
Thanks!!!
P.S I am unable to turn the actions window into "non expert mode" Anyone knows how?

Registration Point Changes
MX2004Pro

I've got a masked image in a movie clip that I am zooming using a direct call to transitions using a variation on the code from http://www.kirupa.com/developer/mx2...ansitions2.htm.

Works very well with the zoom point anchored at the registration point of the movie clip.

If I create the movie clip with the registration point where I want it, all works as expected.

If I move the registration point of the movie clip after creating it (transform and move small white circle), the transition zoom takes no notice and still zooms about the original reg point.

I can do it the hard way, but would prefer to find something simpler and more elegant than brute force to anchor the zoom where I want it.

Is there another way to change reg point or some other simple workaround?

Registration Point
does anyone know how to change the registration point (the center) of an MC without doing it frame-by-frame?

Registration Point
OK. This is driving me nuts. I can't seem to move the registration point to manipulate the scaling of a movie clip.

I select the movie clip - Select Modify - Select Transform - but, there's no "Edit Center Point" option.

I'm in a full version of Flash MX on Windows XP.

Any ideas why the "Edit Center" option is not available? How can I move the center point to the left edge?

Registration Point
Does anyone know how to change the registration point of a movie clip?

Lets say I have drawn an image of a baseball and I select F8 to convert to sybol and create a movie clip. The default location of registration is in the upper left hand corner. Say I forget to move the poiint to the center and click ok to save as a movie clip. How would I go about changing that if I need it to be in the center?

I know I can re-create the image, but just assume there is a more efficient manner.

Thanks,
Kerry

Scale & Registration
i'm changing the x&y scales of a mc via as but manually changing the registration point has no effect?????

Dynamic MC Registration
Hi,

Can the registration point be changed for a movieclip created with ... createEmptyMovieClip()?

NTD

Why Is There No Registration Point?
I imported a bitmap image for use in a flash file I am building. I am trying to use the Motion Guide option and I don't see a registration point on my graphic?

Any advise would be greatly appreciated.

Ketchme

Copyright © 2005-08 www.BigResource.com, All rights reserved