PDA

View Full Version : Loading swfs into swfs: undesireable result


MM_monkey
02-07-2006, 03:53 PM
Situation:
I am using one swf to import other swfs dynamically based on user input (menu with buttons that are dynamically configured once the SWF has loaded).

I built the framework/base (I will refer to this as mainframe.swf) movie in Flash, I then built the populating SWFS in Swish Max (they will be called ad.swf).

When I load the swish max movies into the flash, they show up in the right location and everything, but if the imported movie (ad.swf) has items/shapes that over hang the bounds of the movie, the show up in the framework swf.

and example can be seen here, the issue is in the second ad (CFP):
https://fieldnet3.massmutual.com/fnmmfg/mmu/docs/mainframe.swf?configFile=menuconfig002-temp.xml

I want to restrict the visible area of the loaded movie to the original movie that is it populating ( I replace a content holder.swf with ad.swf using a loadMovie). In the movie I am loading int the framework, I have created a white mask to block anything outside of the grey box. This just proves to obscure the buttons, title etc. in the mainframe.swf

The buttons are loaded dynamically as movie clips and I have assigned them to a level 10 levels above the movieclip that holds the ads, this doesn't seem to make them take precedence....

Any one have any ideas on how I can make the movie clip on the edges or make the buttons raise up?

Code availabe as needed.

Allen

oldnewbie
02-07-2006, 04:37 PM
Use a masking layer (the exact same size shape as the loaded movies), to mask the container clip in which you're loading the movies...

MM_monkey
02-08-2006, 04:12 PM
Thanks for the quick reply. Quick question though, since I am attaching the clips in code (_root.attachMovieClip) , can I then attach a mask to the clip in code as well? Or do I have to attach it to the movie clip being attached? If not, what do attach the mask to? (I am a wicked noob with masks)