954,598 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Mask a text box in Flash

Hello, I'm working on a flip page gallery in Flash (AS3). I have this video tutorial from Cartoon Smart and one problem. How to mask a text box, is it possible in Flash using AS3?
Cheers!

Moirae
Light Poster
45 posts since Sep 2009
Reputation Points: 10
Solved Threads: 0
 

Place the textbox inside a movieclip and mask the movieclip thats it! if that is not your problem. please give a brief expanation of your problem and why you need the mask of textbox and where you going to be utilize?

rajarajan07
Nearly a Posting Virtuoso
1,447 posts since May 2008
Reputation Points: 167
Solved Threads: 239
 

I have done that already but the mask doesn't work. I already have assigned a mask for page flipping, and other mask on other layer for revealing a textbox (while the page flips). Both masks are synchronised but it seems to have no effect for the text box.

I found here bigresource.com that you can't have a dynamic text behind a mask, so I'm wondering is that true?

Moirae
Light Poster
45 posts since Sep 2009
Reputation Points: 10
Solved Threads: 0
 

Its not true!! When using dynamic textbox you must embed the font to view by the user at runtime. See if you place a dynamic textbox and in the property window, select Embed button to popup the character embedding dialog box and select as it is in the screenshot attached here. Thats it, now your mask will work without the concept of movieclip.
This is the solution for dynamic textfield for masking. It works! and I tested it.

And you mentioned that you mask is overriding by another mask and there is no other option to control it without seperating your mask into two other places or create with a movieclip.

Hope this helps & also works!

rajarajan07
Nearly a Posting Virtuoso
1,447 posts since May 2008
Reputation Points: 167
Solved Threads: 239
 

Sorry I missed the attachment, here you will find it.

Attachments 1.zip (83.01KB)
rajarajan07
Nearly a Posting Virtuoso
1,447 posts since May 2008
Reputation Points: 167
Solved Threads: 239
 

Thanks a lot rajarajan, I read on some pages that you cannot mas a YB so I almost gave up. My masks are on different layers and I hope this will work fine!
Cheers

Moirae
Light Poster
45 posts since Sep 2009
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: