[Flashcoders] Load centered images in movie clip - Heeelp!

2006-02-15 Thread Rodrigo Hentschke
Hi all, im making a gallery that load an image in a movie clip when i click in a button. All seems to work perffectly in local. My problem is when i put my gallery on-line. To me it appears not to get the width and the height untill the image is fully loaded. In the AS have some kind of

Re: [Flashcoders] Load centered images in movie clip - Heeelp!

2006-02-15 Thread Daniel Cascais
Try using a MovieClipLoader and then wait for the onLoadInit event, after that you can set the x and y based on the width and height. Daniel ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re: [Flashcoders] Load centered images in movie clip - Heeelp!

2006-02-15 Thread Ramon Tayag
The problem lies in loadMovie. Locally, the picture is already loaded, so when you ask for the pic properties, the computer can give it to you already. Online, however, you'll be downloading the picture while trying to find out its dimensions. Use MovieClipLoader, and use the listener

Re: [Flashcoders] Load centered images in movie clip - Heeelp!

2006-02-15 Thread Rodrigo Hentschke
Subject: Re: [Flashcoders] Load centered images in movie clip - Heeelp! The problem lies in loadMovie. Locally, the picture is already loaded, so when you ask for the pic properties, the computer can give it to you already. Online, however, you'll be downloading the picture while trying to find

Re: [Flashcoders] Load centered images in movie clip - Heeelp!

2006-02-15 Thread Marc Hoffman
] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, February 15, 2006 3:52 PM Subject: Re: [Flashcoders] Load centered images in movie clip - Heeelp! The problem lies in loadMovie. Locally, the picture is already loaded, so when you ask for the pic properties, the computer can