This content has been marked as final. Show 3 replies
you can control the location (_x and _y properties) of your loaded swf by specifying the location of the target movieclip before, after or during the load process of your swf.
you can control the size (_width and _height) of the loaded swf by adjusting the target swf's size only after loading is complete. you can control the _xscale and _yscale and masking of the swf by specifying those things for the target movieclip at any time.
Okay, good. Maybe just some advice, then. I am creating a web page that has a movie clip menu bar. When the user click on an image in the bar, the movie clip will pop up into a specific-sized frame, in a specific location on the page. Clicking on another menu item will replace the first movie clip in the same location. Would it be best for me to use a mask, or _x,_y, _width, _height properties to do this. I'm not quite sure which would be the best method for doing what I want to do (there always seems to be a hundred ways of doing things, and I use about 30 at a time).
Thanks for you help, I now have a direction I can go in. REALLY appreciate it.
your decision should be based on the effect you want. if you use a mask, the loaded swf will be clipped to fit the mask. that is, it won't be resized.
if your swf is 1000 x 1000 pixels and your mask is 100 x 100 the effect will probably be unsatisfactory. you'll be viewing a 100 x 100 piece of your 1000 x 1000 swf. in this situation you'll probably want to resize your swf.
on the other hand if you have several swfs to load and they all are between 440 pixels wide and 460 pixels wide and a similarly _height range, using one mask may work better because it's easier to program and the effect would be acceptable with all your swfs.