Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 05-01-2012, 03:32 AM   #1
JeffLebowski
Registered User
 
Join Date: Apr 2012
Posts: 7
Default AS3 Mask Entire Stage

Just a quick question that I can't seem to find a simple answer to;

How might I go about setting a mask over the entire stage so that all layers below are visible? What I'm trying to achieve is to allow the .swf to be resizable, but elements outside the original stage frame will remain hidden until they enter the stage area as originally intended.
JeffLebowski is offline   Reply With Quote
Old 05-01-2012, 06:04 PM   #2
JeremiahLight
Registered User
 
Join Date: Apr 2012
Posts: 23
Default

As far as masking all the layers goes, you can simply draw a mask the exact same dimensions of the stage, place it as the top layer, turn it into a mask, which will mask only the one layer below it, then drag all other layers up one so they are also masked.

Now, I am not sure if resizing the swf will cause a problem. I sort of think it will, however. If it does, you might try to set the mask up dynamically in an ENTER_FRAME event, which sets its dimensions to that of the stage. This way, if the size of the stage or swf is altered, the mask reacts accordingly.

JL
JeremiahLight is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:11 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.