[osflash] loadmovie registration point and FUSE "bounce" tween.

Jim Tann Jim at avtgroup.com
Wed Feb 1 07:11:58 EST 2006


I cant see where you are using the bounce animation in your movie but I
think your problem can be solved realy easily. When you load the image
into the icon movie it is loaded automatically at cords x:0 y:0 so it
will always scale from the top corner. If you want it to scale from the
middle you neeed to move it to x:-1/2 image.jpg width y: -1/2 image.jpg
height. This means that the scaling will happen from the center of the
image.

Hope this helped.

Jim


-----Original Message-----
From: osflash-bounces at osflash.org [mailto:osflash-bounces at osflash.org]
On Behalf Of grant at bluetube.com
Sent: 01 February 2006 05:45
To: osflash at osflash.org
Subject: [osflash] loadmovie registration point and FUSE "bounce" tween.


Hi osflashers, 

I have a project where I load an image into a movie called "icon" using

loadMovie("image.jpg, icon);

the icon is an empty movie clip in the library.

When I scale the image its scaled from the top left, how can I set this
up so its scaled from the middle ?

The effect I'm trying to get it this bounce :

http://www.c-k.com/ck_site.html

I'm using the fuse animations :
bounceUp =  { scale:130, ease:'easeOutBounce', seconds:.5};
bounceDown =  { scale:100, ease:'easeOutBounce', seconds:.5};

and it looks like this :

http://bluetubecom.web123.discountasp.net/clients/soapbox/indexBeta.html
(work in progress)

click on the who are we link and on the "our staff" sub menu, then roll
over an image 

it does bounce, but its not smooth like the c-k.com site and I have that
issue where it scales from the top left instead of the middle.

if anyone as ideas please let me know :)

grant.





More information about the osflash mailing list