We help IT Professionals succeed at work.

Make objects not on the stage invisible

apriigem
apriigem asked
on
Medium Priority
420 Views
Last Modified: 2012-06-22
I just upgraded to Flash 8 and I noticed that objects that are not on the stage are now visible when I publish the site and try to view it online. I tried using a mask, but I have text that doesnt show up when i try to use the mask to cover the areas outside of the stage. Is there any setting that I can use or are there any suggestions on what I can do? I hope this makes sense to everyone.
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2008

Commented:
you cannot use layer mask on the dyanamic text or device fonts text
although, mask using actionscript will work for you here.

1.
suppose Layer1 has the movieClip "A" that has the text you want to mask.

2.
and Layer 2 has the object that you want to use as mask..

3.
remove the layer mask if you used it.

4.
convert the Layer 2 rectangle object to MovieClip and give it a instance name "mask_mc"

5.
Now we will use "mask_mc" as mask for movieClip "A" using actionscirpt..

6.
now put the the following code on same frame where you want to mask should start..
--------
A.setMask(mask_mc);
--------

that all.


if anything is not clear to you.
I  have also uploaded a sample FLA for you
download it here
http://s38.yousendit.com/d.aspx?id=22RHD870I73TS2FW4A0TYWSJAC

Rgds
Aneesh

Author

Commented:
I don't want to mask the text exactly, I just want the objects that are outside the edges of the stage to not be visible when I publish the site. I thought using a mask would work but it didn't. Is there some way to get the objects that are not on the stage to not show up other than going back to using Flash MX. Else I will try what you suggested.
CERTIFIED EXPERT
Top Expert 2008
Commented:
another way to achieve it

1.
create a new layer on top of all layer on _root.

2.
create a big rectangle of stage background color.

3.
Make this rectangle bigger enough so that it covers all objects on stage and outside stage..

4.
now make a rectangle shape hole in it, as same only stage items can be visible, outside of rectangle items should be still covered .

5.
compile it now.. and you are done.

I hope it would be clear to you

Rgds
Aneesh

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
Thanks, that last thing totally worked. :-)
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.