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




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?



FlashKit > Flash Help > Flash MX
Posted on: 07-02-2004, 01:00 PM


View Complete Forum Thread with Replies

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

Registration Point Vs. Transformation Point
I'm extremely frustrated with the behavior of Flash MX 2004's registration/transformation points. I just learned that the distinction between the two just happened with the release of Flash MX 2004. I'd like to know how in the world I'm supposed to transform a symbol relative to its corner or side, seeing how the transformation point insists on being in the center of the symbol every time.

Let's say I have a 200x200 square shape. If I want the transformation point to be in the lower left corner, it looks like I have to:

1. Put the registration point in the center when I create the symbol
2. Double click on the symbol
3. Move the shape 100 px to the right
4. Move the shape -100 px up
5. Exit out of symbol editing mode

which is five times more complicated a process than if they had kept the behavior like it was. Or at the very least, change the Symbol Creation dialog box to this:



Or am I missing something?

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.

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

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

Registration Point Help
This is such a newbie question but how can I change the registration point of an object after I have created it. I can change the sizing/rotation point but the registration point seems cast in stone.

Thanks in advace for ant help.

Mark Hollas

Registration Point
Once a Movie clip is done is there a way to alter the registration point either manually or with AS etc

cheers

Registration Point
i am trying to work through a flash tutorial and it wants me to move the registration point to the far left of my image. when i try to move the cross hairs everything is moving.

how can i set the registration point to the far left with out everything moving in flash 8

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

Registration Point
I created an animation and I put the animation with copy past all the frame to new MC. but the Registration point isnt in the middle how can I put the Registration point in the middle ? in the easy and best way?

Registration Point...
how can I change the registration point of an MC once I create it? I can't for the life find a spot to change it from "center" to, say, "top left" or "bottom right"
I always ending putting it inside another movie clip with the registration point I'm looking for.

Also, is there a way to do it with ActionScript?

Set Registration Point
Hi everyone,

I know it is not possible to change the registration point of a movie clip (unless using a custom made class), but I was wondering if you can actually specify it when you create the movie clip, using New Movieclip() ?
That would make sense, I mean, there must be a way to do that... right ?

Thx.

Registration Point
Hi
I need script for change registration point of a symbol by click button or during movieclip


thanx

Registration Point?
Yeah i'm completely new to flash and was taking the first few basic tutorial. What exactly is the registration point? I dont really understand that.

also I like this site, but are there any more good tutorials that you would recommend for a flash beginner? and what would be good book for me to get? Any input would be greatly appreciated.

thank you

Johnny1time

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

Registration Point?...
alright... i have seen this asked several times...

could someone explain about lining up movie clips in the main animation so they appear right where you want them to... some have spoken in relation to the registration mark being placed in the upper left hand corner...

i'm a tad bit confused... any takers?

What Will Be The Registration Point ?
What will be the registration point of an MC created using createEmptyMovieClip() function ?

Mc Registration Point I Think
Hi all I have made an xml gallery using the examples on this site but I want my images to resize from the left intstead of the centre. I have tried changing the reg point of the movieclip but cant seem to get it to work. Do I need to cahnge something in my code? I have posted it below. Thanks


Code:
var tnNr;
spacing = 10;
container._alpha = 0;
var curLength;
var cur, slideInterval;
var slide=0;
MovieClip.prototype.loadPic = function(nr) {

clearInterval(slideInterval);

preloader._visible = 1;
info.text = "";

this._alpha = 0;

this.loadMovie(pArray[nr]);
cur = nr;

temp = this._parent.createEmptyMovieClip("temp2", 998);

temp.onEnterFrame = function() {

var t = container.getBytesTotal(), l = container.getBytesLoaded();
var per = Math.round((l/t)*100);

preloader.bar._xscale = per;

preloader.loadInfo.text = per+" % loaded";

//

if (Math.round(l/t) == 1 && container._width != 0 && container._height != 0) {
preloader._visible = 0;



var w = container._width+spacing, h = container._height+spacing;



border.resizeMe(w, h, nr);
delete this.onEnterFrame;
}
};
};

MovieClip.prototype.resizeMe = function(w, h, nr) {

var speed = 3;
container._alpha = 0;

this.onEnterFrame = function() {



this._width += (w-this._width)/speed;

this._height += (h-this._height)/speed;



if (Math.abs(this._width-w)<1 && Math.abs(this._height-h)<1) {

this._width = w;
this._height = h;

container._x = this._x-this._width/2+spacing/2;
container._y = this._y-this._height/2+spacing/2;
info._y = Math.round(this._y+this._height/2+spacing/2);
container._alpha += 5;

if (container._alpha>90) {

info.text = iArray[nr];

container._alpha = 100;



if (slide) {
slideInterval = setInterval(slideshow, 4000);
}
delete this.onEnterFrame;
}
}
};
};
function galleryChoice(q) {
pArray = new Array();
tArray = new Array();
iArray = new Array();
my_xml = new XML();

for (var j = 0; j<curLength; j++) {

this.th_nav["thmb"+j].removeMovieClip();
}

my_xml.ignoreWhite = true;

my_xml.onLoad = function(loaded) {
if (loaded) {

gallery = this.firstChild.childNodes[q];
curLength = gallery.childNodes.length;

for (var i = 0; i<gallery.childNodes.length; i++) {

pArray.push(gallery.childNodes[i].attributes.source);
tArray.push(gallery.childNodes[i].attributes.thumb);
iArray.push(gallery.childNodes[i].attributes.title);
}
}
delay = setInterval(makeButtons, 50);
};
my_xml.load("gallery.xml");
}
function makeButtons() {
tnNr = 0;


clearInterval(delay);
for (var i = 0; i<tArray.length; i++) {

var thb = th_nav.thmb.duplicateMovieClip("thmb"+i, 1000+i);
thb.id = i;
thb._x = i%25*30;
thb._y = Math.floor(i/25)*30;
}
loadButtons();
}
function loadButtons() {
var tbox = th_nav["thmb"+tnNr].box;
tbox.loadMovie(tArray[tnNr]);

temp = this.createEmptyMovieClip("tmp"+tnNr, 999);
temp.onEnterFrame = function() {

bt = tbox.getBytesTotal();
bl = tbox.getBytesLoaded();
if (bt == bl && bt>4) {
nextButton();
delete this.onEnterFrame;
}
};
}

function nextButton() {
if (tnNr<tArray.length-1) {
tnNr++;
loadButtons();
} else {
activateButtons();
}
}
function activateButtons() {
mainButtons();
for (var i = 0; i<pArray.length; i++) {
var but = th_nav["thmb"+i];
but.id = i;
but.onRelease = function() {
container.loadPic(this.id);
disButtons2(this.id);
};
}
container.loadPic(0);
disButtons2(0);
}

butArray = new Array();
butArray = ["gal1_btn", "gal2_btn", "gal3_btn", "gal4_btn"];
function mainButtons() {
for (var i = 0; i<butArray.length; i++) {
this[butArray[i]].id = i;
this[butArray[i]].onRelease = function() {
galleryChoice(this.id);
disButtons(this.id);
};
}
}
function disButtons2(d) {
for (var i = 0; i<tArray.length; i++) {
if (i != d) {
this.th_nav["thmb"+i].enabled = 1;
this.th_nav["thmb"+i].box._alpha = 100;
} else {
this.th_nav["thmb"+i].enabled = 0;
this.th_nav["thmb"+i].box._alpha = 50;
}
}
}
function disButtons(d) {
for (var i = 0; i<butArray.length; i++) {
if (i != d) {
this[butArray[i]].enabled = 1;
this[butArray[i]].gotoAndStop(1);
} else {
this[butArray[i]].enabled = 0;
this[butArray[i]].gotoAndStop(2);
}
}
}
function slideshow() {
if (cur == pArray.length-1) {
container.loadPic(0);
} else {
container.loadPic(cur+1);
}
}
play_slide.onRelease = function() {
slide = 1;
slideInterval = setInterval(slideshow, 4000);
this.gotoAndStop(2);
stop_slide.gotoAndStop(1);

};
stop_slide.onRelease = function() {
slide = 0;
clearInterval(slideInterval);
this.gotoAndStop(2);
play_slide.gotoAndStop(1);
};
disButtons(0);
galleryChoice(0);

How To Set Registration Point Via AS?
hi there,

i made this little script which draws two exactly the same squares, except for the rotation. But it seems the registration points of the squares aren't in the center (of the squares). How can i set this via AS?

thnx in advance,

grenouille.


Code:

function drawSquare(x,y,w,alpha,i,rot) {
alpha = 100;
_root.createEmptyMovieClip("mc"+i,i);
with (_root["mc"+i]) {
lineStyle(1,0x00000,alpha);
moveTo(x,y);
lineTo(x+w,y);
lineTo(x+w,y+w);
lineTo(x,y+w);
lineTo(x,y);
}
_root["mc"+i]._rotation = rot;
}
drawSquare(100,100,50,100,1,0);
drawSquare(100,100,50,100,2,45);

Registration Point
So when you load a picture into a movie clip, it loads into the Top-Left hand corner.

Ok.

Umm, 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....

What am I missing?!

Registration Point?
Right - please, someone... before i go insane.

I'm trying to draw a line that animates from being very small (the size of a dot) and then extends to a line say 200 px wide. Why oh why can i:

A) not have it so it animates from the center outwards
B) not have it so it animates from the right to the left instead of the left to right?

Is this something to do with the registration point from when i convert it to a graphic?

So for A) i would set the registration point to the middle and for B) i'd set the registration point to the right?

Yes/No ? Anyone?

Its like the simplest of things and its got me stumped.

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

Registration Point
Hello,

I have a viewport inside of _root.mc.  This viewport also contains other movieclips.  So the structure is:
_root.viewport_mc.element_mc1
_root.viewport_mc.element_mc2
...
_root.viewport_mc.element_mcn


I am trying to make a viewport effect like you see in VISIO.  I've included the ability to drag/drop the viewport as well as drag/drop particular elements).  I also added the ability to zoom (scale) in and out.  I wanted to make the zooming occur in the middle of the screen each time.  To accomplish this I started out with the registration point being in the center of the screen and then I did this:


_root.viewport_mc.onMouseDown = function(){
    dragViewportX = _root.viewport_mc._x;
    dragViewportY = _root.viewport_mc._y;
}
_root.viewport_mc.onMouseUp = function(){
    _root.viewport_mc._visible = false;

    //move list_mc back to the center of the screen
    _root.viewport_mc._x = dragViewportX;
    _root.viewport_mc._y = dragViewportY;

    //now move all elements to the correct position
    //based on the deltas
    for(var mc in _root.viewport_mc) {
        _root.viewport_mc[mc]._x += deltaX;
        _root.viewport_mc[mc]._y += deltaY;
    }
    viewport_mc._visible = true;
}

This assures that the registration point is always in the center.  This solution does not look good since, the user still sees this movement.  Is there anyway that I can just move the registration point without having to move the viewport_mc and each element_mc contained within the viewport_mc?

Thank you for any help/suggestions -
  Frank

Registration Point
when i make a symbol in flash 7 it puts the registration point in the upper center, what happened to centering all the registration points automatically when a symbol is created????

Registration Point Of MC
Moving the registration point of a MC [as]Hi guys i made a rectangle and it needs to sit on the same Y cordinates and I will be changing the x cordinates and the height of the rectangle .

Well what I need is to change the registration point so when i change the height it stays at the same Y cordinate and it grows up. so what i need is my registration point to be at the bottom of my movieclip mcClip can some one help me with this ..

My code is at the bottom

Thanks
Rob


ActionScript Code:
//creates mcClip
var mcClip:MovieClip = this.createEmptyMovieClip ("mcClip", this.getNextHigestDepth());
 
// variables of arrrays for gradient fills
var aColors:Array = [0x990000, 0xFF0000];
var aAlphas:Array = [100, 100];
var aRatios:Array = [0, 255];
var oMatrix:Object = {matrixType: "box", x: 0, y: 0, w: 100, h: 100, r: Math.PI/5};
 
 
//next line calls draw rectangle function
drawRectangle (mcClip, 15, 100, 50, 200);
 
 
//draws rectangle function
function drawRectangle (mcClip:MovieClip, nWidth:Number, nHeight:Number, x:Number, y:Number) {
    mcClip.lineStyle (0, 0, 100);
    // next line starts fill   (type, colors, alphas, ratios, matrix); matrixType, x, y, w, h, and r
    mcClip.beginGradientFill("linear", aColors, aAlphas, aRatios, oMatrix);
    mcClip.lineTo (nWidth, 0);
    mcClip.lineTo (nWidth, nHeight);
    mcClip.lineTo (0, nHeight);
    mcClip.lineTo (0, 0);
    // next line ends the fill of color
    mcClip.endFill();
    // next two lines moves the x and y location of the movie clip
    mcClip._x = x;
    mcClip._y = y;
}

Registration Point
One thing thats been bugging me for some time now is the registration point, is it possible to change it once its registered?

Change Registration Point With AS?
Is it possible to change the registration point of a movie clip from AS?

_root Registration Point
Can you alter the registration point of _root from top left to center in actionscript (or through the authoring environment)?

Thanks in advance.

An Object's Registration Point
Is it possible to change the position of an object's registration point by actionscript?

Moving Registration Point In MX
Is it possible to move the registration point after creating a symbol? I know in Flash 5, you're able to Edit Center, but I don't see an equivalent to that in MX. The only thing close is the ability to move the "transformation point", but that's strictly for scaling, rotating, etc.

Registration Point Change
Hey guys,
I would like to know how to change the registration point of a movie clip so that when you alter the movie clip, there is a more centralized transformation. Thanks guys. I remember that there used ot be an edit center command in flash 5.
But it's not there in Flash MX. Any help would be greatly appreciated. Thanks
Don

Scaling > How To Set Registration Point
hi,

i wonder how to set the "registration point" (is it called so?) of a movie to its middle, so that a scaling via actionscript will have the movie always centered.
i'm using flash mx.

anybody got an idea?

thanks!

Setting Registration Point On The Fly
How do you set the registration point of a movieclip created using createEmptyMovieClip()? It seems it defaults to the top left hand corner - and I want it in the centre.... Is there a way to do this?


Cheers

Change Registration Point
is there any way to change registration point
of a movieclip via actionscript ?

Editing Registration Point
Hi there,

Really dumb question. Once I create a Movie Clip I am able to dictate the registration point. How do I edit that point after? I cant seem to do so !!
Thanks

How Do I Move The Registration Point
Sometimes i cannot move it and sometimes i can!

Move MC Registration Point
Does anyone know of a way to move a MC's registration point via AS (in MX)?

Hope there is,
aaroneousmonk

Changing MC Registration Point
Hi. Is there any way to change a movieclip's registration (i.e. center point) in code???

I need to scale a movieclip at diffferent points.

PLEASE HELP!!!

Tracking Registration Point
Hi all

I would like to track the registration point of a movieclip. I put the movieclip orange_circle on the stage at coordinates orange_circle_x = 100, orange_circle_y = 100. I would like to be able to drag the movieclip to another location and have the variables orangle_circle_x and orange_circle_y reflect the new x and y coordinates automatically when I release the movie clip. Is this doable and can anybody give me a hint, clue and or direction.

Any help is greatly appreciated and Thank You in advance for your time.

Randy

How Do You Move The Registration Point?
I've got an object that I converted to a symbol, but when I converted it, I made the center the registration point. Now I changed my mind and want the lower center to be the registration point. How do I change this without starting over and making a brand new symbol?

Changing Te Registration Point Of An MC
Hello,

how can I change the registration point of an MC DURING a movie?

THX!

Moving The Registration Point Of A Mc
^^ How do I do this? I didit before but cant remember how I achieved it :P

Registration Point With Action?
Hi freinds
I wanna transform a movie clip that attach to stage (4 exam from 10 % to 100 %).but transformation happen from upper left cornner movie clip in attach movie. can i changed this point with action ?(4 exam from center)
(i think when we attach a movie the default registration point attach from upper left movie clip .is it true?)

Thanx
__________________

Registration Point Question
Is it possible to change the registration point of a MovieClip at runtime??

If not, can you set the registration point when you create an emptyMovieClip??

I want to create a clip as a placeholder for an image and then centre it within its parent clip at runtime...The registration point on a clip created at runtime is in the top left corner and it would be much easier if I could shift this to the centre of the clip.

Any suggestions or help greatly appreciated.

Registration Point, Dynamic MC.
The registration point for a newly created empty movie clip is the upper left corner. Is it possible to change it?

Flash Registration Point
This sounds really stupid but somehow my flash is screwed up and it is registering the far left of the movie clip in the creating mode and then in view mode it will register where the registry point is, how do i fix this?

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