Using AS2 and Flash 8...
I'm currently looking for a way to display a image file that is outside of the .swf in my Flash program, including a way to resize it.
I just looked through the options of using the Loader component with the .contentPath function. Even though this method displays the image perfectly, I can't for the life of me figure out how to resize the Loader.
Here's my code for this strategy if it helps:
This basically dynamically creates the "Loader" component with all of it's settings initialized. Then, using .contentPath, it displays my "banner.jpg" which is in the same directory as my .swf file.Code:image_number = 0; initialization={autoLoad:true,contentPath:"",scaleContent:true}; image_number++; current_mc_depth++; _root.attachMovie("Loader", "image"+image_number, current_mc_depth, initialization); _root["image"+image_number].contentPath = "banner.jpg";
Now I'm looking for a way to resize the thing.
Thanks for your help!




Reply With Quote
