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!

Center Dynamic Image - Flash 6

Status
Not open for further replies.

JurkMonkey

Programmer
Nov 23, 2004
1,731
CA
Hello,

I'm loading a movie clip with loadMovie() and once it loads, I want the Image to be centered. Right now everything is scaling to the size of the clip and it looks horrible.

I've googled for a while now and all I've seen is the MovieclipLoader but I can't use that class in this version I guess.

Any help?

thanks
 
The container clip should have a width & height of 0.
It will take on the size of the picture loaded into it.
As for centering it, you'll need to use a second nested container clip to load the picture into, and then center that nested container in the other parent container.

Regards. FLASH HELP - OPENED FOR BUSINESS!
TO GET YOUR OWN FREE WEBSITE HOSTING
 
So I create a new MovieClip dynamically and load it into the existing MovieClip already on the stage?

I'll give it a try when I get home tonight.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top