[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 250
  • Last Modified:

Loading SWFs in layers in Flash MX

I'm having trouble getting SWFs to load in an "empty" movie click in MX.  I'm trying to load new backgrounds in layer 1 titled "empty", at a place in my movie called "about us" (a frame name).  When I use the below code, the SWF loads on top of the base movie, not within it.  I obviously don't want this in this case.  My code looks like this:  

on (release) {
     gotoAndStop("aboutus");
     loadMovie("aboutusphotod.swf", _empty)
}


I'm trying to load the SWF in the layer without naming the instance.  Any thoughts?
0
justin1972
Asked:
justin1972
1 Solution
 
odeathoflifeCommented:
>>on (release) {
>>    gotoAndStop("aboutus");
>>    loadMovie("aboutusphotod.swf", _empty)
>>}

IF your empty MC is called empty then use this

on (release) {
    gotoAndStop("aboutus");
    loadMovie("aboutusphotod.swf", _root.empty)
}
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now