calling one swf in another swf

Discussion of testing theory and practice, including methodologies (such as TDD, BDD, DDD, Agile, XP) and software - anything to do with testing goes here. (Formerly "The Testing Side of Development")

Moderator: General Moderators

Post Reply
adroit
Forum Commoner
Posts: 37
Joined: Fri Aug 08, 2008 1:25 am
Location: India
Contact:

calling one swf in another swf

Post by adroit »

Hi All,

I have 2 swf files A and B. In swf B there is a form in which there is a listbox control, when I run swf B it shows me the listbox, but when I try to call swf B in swf A it does not show the listbox control. please help

Thanks in advance.

Regards
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: calling one swf in another swf

Post by josh »

loadMovie command
jason.carter
Forum Commoner
Posts: 35
Joined: Sat Jan 10, 2009 10:05 am

Re: calling one swf in another swf

Post by jason.carter »

OR try

var loader:Loader = new Loader;
addChild(loader);
loader.load(new URLRequest(".//fileName.swf"));

To detect SWF finished loading
You can add a listener: loader.contentLoaderInfo.addEventListener(Event.CO MPLETE,HandleLoadedSwf);
Post Reply