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_Partsfile=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

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_Partsfile=1998.html On Tue, Jul 8, 2008 at 4:17 PM, allandt bik-elliott (thefieldcomic.com) [EMAIL PROTECTED] wrote: you

Re: [Flashcoders] tracing height

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

RE: [Flashcoders] tracing height

2008-07-08 Thread Lehr, Theodore M (N-SGIS)
: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 flashcoders@chattyfig.figleaf.com Sent: Tuesday, July 08, 2008 8:56 AM Subject: [Flashcoders] tracing height I have

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 flashcoders@chattyfig.figleaf.com Sent: Tuesday, July 08, 2008 1:09 PM Subject: RE: [Flashcoders] tracing height

Re: [Flashcoders] tracing height

2008-07-08 Thread Fabio Pinatti
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gabino 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 flashcoders

Re: [Flashcoders] tracing height

2008-07-08 Thread Fabio Pinatti
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 MovieClipLoader(); mclListener.onLoadComplete = function(target_mc:MovieClip, status:Number):Void

Re: [Flashcoders] tracing height

2008-07-08 Thread Gabino Travassos
snip 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, /snip Fábio, Yeah, that is much better