Re: [Flashcoders] Insert new symbol

2008-02-05 Thread Sidney de Koning
if you load your image in with a MovieClipLoader (prolly the best way to 
go), you can position the image, only with the onLoadInit handler.
Only then will you know the dimensions of the loaded in image. the you 
can shift it x of image = width of image * 0.5


something like this (AS2 example):

var containerClip:MovieClip = this.attachMovieClip("emptyClipFromLib", 
"emptyClipFromLib" this.getNextHighestDepth());

var mclListener:Object = new Object();
var imageMcl:MovieClipLoader = new MovieClipLoader();
imageMcl.addListener(mclListener);
imageMcl.loadClip("images/image1.jpg", containerClip);

trace("the clip width: " + containerClip._width);

mclListener.onLoadInit = function(targetClip:MovieClip) {
   trace("the clip width: " + targetClip._width);
};

Hope this helps,

Sid

[p e r c e p t i c o n] wrote:

because i load an image into it and animate from the middle of the
image...so if i can't control the registration point it animates from top
left...

On Feb 4, 2008 9:12 AM, Kenneth Kawamoto <[EMAIL PROTECTED]> wrote:

  

Do you mean an empty MovieClip? It's empty - why do you need to worry
about the registration point?

Kenneth Kawamoto
http://www.materiaprima.co.uk/

[p e r c e p t i c o n] wrote:


Hi all,
Can anyone explain why when you insert a new movieclip symbol using the
insert>new symbol from the menu can't choose a registration point?  very
annoying...
that's my rant for the day...
happy monday
p

  

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Insert new symbol

2008-02-04 Thread Cory Petosky
Just move the image so 0,0 is in the middle of it and animate from there.

On 2/4/08, [p e r c e p t i c o n] <[EMAIL PROTECTED]> wrote:
> because i load an image into it and animate from the middle of the
> image...so if i can't control the registration point it animates from top
> left...
>
> On Feb 4, 2008 9:12 AM, Kenneth Kawamoto <[EMAIL PROTECTED]> wrote:
>
> > Do you mean an empty MovieClip? It's empty - why do you need to worry
> > about the registration point?
> >
> > Kenneth Kawamoto
> > http://www.materiaprima.co.uk/
> >
> > [p e r c e p t i c o n] wrote:
> > > Hi all,
> > > Can anyone explain why when you insert a new movieclip symbol using the
> > > insert>new symbol from the menu can't choose a registration point?  very
> > > annoying...
> > > that's my rant for the day...
> > > happy monday
> > > p
> > >
> >
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>


-- 
Cory Petosky : Lead Developer : PUNY
1618 Central Ave NE Suite 130
Minneapolis, MN 55413
Office: 612.216.3924
Mobile: 240.422.9652
Fax: 612.605.9216
http://www.punyentertainment.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Insert new symbol

2008-02-04 Thread Kenneth Kawamoto

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Insert new symbol

2008-02-04 Thread [p e r c e p t i c o n]
because i load an image into it and animate from the middle of the
image...so if i can't control the registration point it animates from top
left...

On Feb 4, 2008 9:12 AM, Kenneth Kawamoto <[EMAIL PROTECTED]> wrote:

> Do you mean an empty MovieClip? It's empty - why do you need to worry
> about the registration point?
>
> Kenneth Kawamoto
> http://www.materiaprima.co.uk/
>
> [p e r c e p t i c o n] wrote:
> > Hi all,
> > Can anyone explain why when you insert a new movieclip symbol using the
> > insert>new symbol from the menu can't choose a registration point?  very
> > annoying...
> > that's my rant for the day...
> > happy monday
> > p
> >
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Insert new symbol

2008-02-04 Thread Kenneth Kawamoto
Do you mean an empty MovieClip? It's empty - why do you need to worry 
about the registration point?


Kenneth Kawamoto
http://www.materiaprima.co.uk/

[p e r c e p t i c o n] wrote:

Hi all,
Can anyone explain why when you insert a new movieclip symbol using the
insert>new symbol from the menu can't choose a registration point?  very
annoying...
that's my rant for the day...
happy monday
p
  


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders