Re: [Flashcoders] tracing height

2008-07-08 Thread Gabino Travassos
I suggest you use onLoadInit instead onLoadComplete, because onLoadInit is dispatched after content was fully loaded and initialized. Gabino, use this code and you'll be able to get the dimensions of your loaded movie as soon image is loaded. Best, Fábio, Yeah, that is much better than what

Re: [Flashcoders] tracing height

2008-07-08 Thread Fabio Pinatti
"Flash Coders List" > Sent: Tuesday, July 08, 2008 1:09 PM > Subject: RE: [Flashcoders] tracing height > > > > Ok - so I have tried the following: >> >> this.createEmptyMovieClip("img_mc", 999); >> var my_mcl:MovieClipLoader = new MovieCl

Re: [Flashcoders] tracing height

2008-07-08 Thread Fabio Pinatti
e the clip loads I am not getting a trace... that's really what > I need > > Ted > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Gabino > Travassos > Sent: Tuesday, July 08, 2008 11:24 AM > To: Flash Coders List > Subjec

Re: [Flashcoders] tracing height

2008-07-08 Thread Gabino Travassos
According to the help files you need: var mclListener:Object = new Object(); - Original Message - From: "Lehr, Theodore M (N-SGIS)" <[EMAIL PROTECTED]> To: "Flash Coders List" Sent: Tuesday, July 08, 2008 1:09 PM Subject: RE: [Flashcoders] tracing height

RE: [Flashcoders] tracing height

2008-07-08 Thread Lehr, Theodore M (N-SGIS)
no Travassos Sent: Tuesday, July 08, 2008 11:24 AM To: Flash Coders List Subject: Re: [Flashcoders] tracing height - Original Message - From: "Lehr, Theodore M (N-SGIS)" <[EMAIL PROTECTED]> To: "Flash Coders List" Sent: Tuesday, July 08,

Re: [Flashcoders] tracing height

2008-07-08 Thread Gabino Travassos
- Original Message - From: "Lehr, Theodore M (N-SGIS)" <[EMAIL PROTECTED]> To: "Flash Coders List" Sent: Tuesday, July 08, 2008 8:56 AM Subject: [Flashcoders] tracing height I have: _root.imageMovie.loadMovie(stepImageArray[0]); sizeImage(); functio

Re: [Flashcoders] tracing height

2008-07-08 Thread allandt bik-elliott (thefieldcomic.com)
there's an example of some code if you look at the onLoadInit link http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=1998.html On Tue, Jul 8, 2008 at 4:17 PM, allandt bik-elliott (thefieldcomic.com) < [EMAIL PROTECTED]> wrote: > you s

Re: [Flashcoders] tracing height

2008-07-08 Thread allandt bik-elliott (thefieldcomic.com)
you should look at movieClipLoader ( http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=1998.html ) this allows you to add listeners to the loader (in your case, you should use onLoadInit) to fire a method/function On Tue, Jul 8, 2008

[Flashcoders] tracing height

2008-07-08 Thread Lehr, Theodore M (N-SGIS)
I have: _root.imageMovie.loadMovie(stepImageArray[0]); sizeImage(); function sizeImage () { trace(_root.imageMovie._height); } But I keep getting 0 I am guessing because the trace is fired before the image is loaded... how can I make sure this function does not fire until the ima