|
-
Main.swf event handler, close netStream in impoted swf
Hi FK,
I import a external SWF into a UILoader, the SWF contains a netStream that I need to close from a Main.swf event handler, slideShow_btn.
Basically from Main.swf when/if slideShow_btn event happens I need to check and close the nsStream in videoplayer.swf
Here are my event handlers in Main.swf: All good info Aprreciated!!!!
slideShow_btn.addEventListener(MouseEvent.MOUSE_DO WN, mouseDownHandler1);
function mouseDownHandler1(event:MouseEvent):void {
var swfrequest:URLRequest = new URLRequest("slideshow.swf");
myLoader.scaleContent = true;
myLoader.load(swfrequest);
}
videoLow_btn.addEventListener(MouseEvent.MOUSE_DOW N, mouseDownHandler2);
function mouseDownHandler2(event:MouseEvent):void {
var swfrequest:URLRequest = new URLRequest("videoplayer.swf");
myLoader.scaleContent = true;
myLoader.load(swfrequest);
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|