Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

loadClip: size problem

Status
Not open for further replies.

valderama

Programmer
Apr 24, 2007
3
AT
Dear Community!

I load a jpeg on a movieClip with a MovieClipLoader. I get the size of the jpeg in the onLoadInit function and resize the movieClip to the wanted size. The problem is that I just the correct size of jpeg the first time I load a jpeg in this frame and this movieClip. The size of the following jpegs are wrong, I get the size which I set after loading the first jpeg.

If I unload the movieClip before loading the new jpeg I get the size 0, 0 for the new loaded jpeg (in the onLoadInit function).

Do you have any ideas which might be the problem?

Best regards and Thanks!

Walter
 
Thanks a lot, that was the solution to my problem!

In my opinion that sizing in flash is a little bit confusing... :)
 
there are moments in the life of a programmer where you simply have to resize ;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top