AS3: Hide elements outside the stage in loaded swf?

Adobe has a page about this, with the following code example showing you how to add a mask to the loaded clip at runtime: import flash.display. *; import flash.net. URLRequest; var rect:Shape = new Shape(); rect.graphics.

BeginFill(0xFFFFFF); rect.graphics. DrawRect(0, 0, 100, 100); addChild(rect); var ldr:Loader = new Loader(); ldr.mask = rect; var url:String = "http://www.unknown.example.com/content.swf"; var urlReq:URLRequest = new URLRequest(url); ldr.load(urlReq); addChild(ldr) Full link to the page: http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7c83.html.

Adobe has a page about this, with the following code example showing you how to add a mask to the loaded clip at runtime: import flash.display. *; import flash.net. URLRequest; var rect:Shape = new Shape(); rect.graphics.

BeginFill(0xFFFFFF); rect.graphics. DrawRect(0, 0, 100, 100); addChild(rect); var ldr:Loader = new Loader(); ldr.mask = rect; var url:String = "http://www.unknown.example.com/content.swf"; var urlReq:URLRequest = new URLRequest(url); ldr.load(urlReq); addChild(ldr); Full link to the page: http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7c83.html.

Thanks, it works. – Alex Apr 15 at 16:47.

Myapp loads an external swf and adds it to MovieClip. External swf movie has elements that are placed outside the stage (they go on the stage during swf playing). But after loading that elements are visible in the main MovieClip.

In other words, it looks like the whole space outside the stage is visible as well as the stage. How to hide elements outside the stage of loaded swf?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions