List Info

Thread: Finding width after using loadMovie?




Finding width after using loadMovie?
user name
2006-08-25 14:57:52
Yeah my width is coming up with 0. I'm familiar with
MovieClipLoader
Class. I was just hoping that loadMovie would have something
like that.
Like return true when done. Bummer.

> -----Original Message-----
> From: flashnewbie-bounceschattyfig.figleaf.com
[mailto:flashnewbie-
> bounceschattyfig.figleaf.com] On Behalf Of Pete
> Sent: Friday, August 25, 2006 7:16 AM
> To: 'Flashnewbie Mailing List'
> Subject: RE: [Flashnewbie] Finding width after using
loadMovie?
> 
> Is your trace coming up 0? It's possible that your
tracing the width
> before
> the image loads into the holder. Try using the
MovieClipLoader Class -
> this
> has many events to listen for like the onLoadInit in
your existing
code
> which is not supported by loadMovie. This way you can
be sure the
image is
> fully loaded before you try to measuer the holder.
> 
>
http://livedocs.macromedia.com/flash/mx2
004/main_7_2/00001574.html#wp400
07
> 51
> 
> /pete
> 
> 
> 
> 
> -----Original Message-----
> From: flashnewbie-bounceschattyfig.figleaf.com
> [mailto:flashnewbie-bounceschattyfig.figleaf.com] On
Behalf Of
Sunnrunner
> Sent: Friday, August 25, 2006 2:31 AM
> To: 'Flashnewbie Mailing List'
> Subject: [Flashnewbie] Finding width after using
loadMovie?
> 
> I have this code and I can't figure out how to get the
width after
image
> is
> done loading with loadMovie. Could someone give me a
hand? Thanks
again.
> T.
> 
> function populateLarge(p_firstImage):Void {
>     	popUp_mc.imageHolder_mc.loadMovie(p_firstImage);
> 	trace("THIS IS THE currentImage " +
currentImage);
> 	popUp_mc.imageHolder_mc._x = (Stage.width/2) -
> (popUp_mc.imageHolder_mc._width/2);
> 	popUp_mc.imageHolder_mc.onLoadInit = function(){
> 		trace("??????????????????????THIS IS THE WIDTH
OF THE
IMAGE
> HOLDER LARGE " + popUp_mc.imageHolder_mc._width);
> 	}
> }
> 
> _______________________________________________
> Flashnewbiechattyfig.figleaf.com
> To change your subscription options or search the
archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashnewb
ie
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
> http://training.figleaf.c
om
> 
> 
> 
> 
> _______________________________________________
> Flashnewbiechattyfig.figleaf.com
> To change your subscription options or search the
archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashnewb
ie
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.c
om
_______________________________________________
Flashnewbiechattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashnewb
ie

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.c
om
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )