How do I send an even from an embeded swf and receive it from the class that called it?
Code the dispatches from account_settings.swf file.
Code:dispatchEvent(new CustomEvent(CustomEvent.ACCOUNT_INFO, {theData:pipeSize.selectedItem.data}));
Code that embeds the item and listens for event
Code:[Embed(source="/assets/account_settings.swf")] private var _accountSettingsClass:Class; var _accountSettings:MovieClip = new _accountSettingsClass as MovieClip; _window.addChild(_accountSettings); _accountSettings.addEventListener(CustomEvent.ACCOUNT_INFO, getInfo);
(the CustomEvent is just a class that extends the Event and allows me to pass information back and forth with the event)





Reply With Quote