Hey edrrmwc,
What Flash version are you using?
visit my site
www.flashforabuck.com or email me at admin@flashforabuckc.om
-Max
www.flashforabuck.com [quoted text, click to view] edrrmwc wrote:
> I'm using loadMovie() to load a series of images (JPEG) into Flash. I'd like
> to get the height and width of the JPEG after the load to scale it properly,
> but I can't seem to figure out how
>
> Doin
>
> form_mc.createEmptyMovieClip("viewer_mc", 50)
> viewer_mc.loadMovie(filename)
>
> loads the picture without problem, but then looking at either
> viewer_mc._height or ._width just returns 0 for any image. I've tried it with
> HTML text in a text box and get the same problem: it will only return the size
> of the text box as created, not the rescaled size
>
> Is there something I'm missing
>
I'm using loadMovie() to load a series of images (JPEG) into Flash. I'd like
to get the height and width of the JPEG after the load to scale it properly,
but I can't seem to figure out how
Doin
form_mc.createEmptyMovieClip("viewer_mc", 50)
viewer_mc.loadMovie(filename)
loads the picture without problem, but then looking at either
viewer_mc._height or ._width just returns 0 for any image. I've tried it with
HTML text in a text box and get the same problem: it will only return the size
of the text box as created, not the rescaled size
Is there something I'm missing
Yes, the image is loaded. I've gone so far as to use the MovieClipLoader
feature to only trigger getting height and width after the image is completely
loaded. (and even beyond that in case of bug, I've had it report when I click
a button after I can verify load with my eyeballs.