[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 409
  • Last Modified:

Make objects not on the stage invisible

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.
0
apriigem
Asked:
apriigem
  • 2
  • 2
1 Solution
 
Aneesh ChopraCommented:
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

0
 
apriigemAuthor 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.
0
 
Aneesh ChopraCommented:
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
0
 
apriigemAuthor Commented:
Thanks, that last thing totally worked. :-)
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now