PDA

View Full Version : dynamic text masking


gchiazna
03-19-2003, 02:02 PM
how can I mask dynamic text?

I am trying to building a dynamic menu with scrolling and a
view smaller then the total hight, so I need to mask it.

I tried setMask but it's not working. what solution do you suggest?

Billy T
03-19-2003, 09:33 PM
embed the font

and use the search button

cheers

gchiazna
03-20-2003, 07:55 AM
I did embed the fonts, but it's not working. Here is a piece
of code I use.

_root.attachMovie("menu", "menu"+i, 200+i);
my = _root["menu"+i];
_root.attachMovie("menumask", "kmask", 0);
my.setMask(_root.kmask);

Both "menu" and "menumask" are in the library.

Please help, I already lost a lot of time figuring this out.
I have less then 10 days experience in flash, please help!

Billy T
03-20-2003, 09:13 AM
upload a stripped down version of the file

btw you can't use the same mc to mask multiple other mcs (unless you do it the old way with a mask layer)

gchiazna
03-20-2003, 10:05 AM
I tried also putting the mask for the root but the same.

Here is the stripped fla. Check frame 2 -> actions for "dummy"

Billy T
03-20-2003, 11:11 AM
not sure what it is but your font wasn't embeded

also, you are attaching the menu items and then saying

this.setMask

which is masking the dummy mc

there is something else wrong as well but I can't work it out

cheers

gchiazna
03-20-2003, 12:16 PM
I finally managed to do it, thanks for help

the mistake I did is that I loaded the menu's in the _root
not in a movie under the mask