Groups | Blog | Home
all groups > flash actionscript > june 2006 >

flash actionscript : Dynamic Text With A Mask


sbryner
6/19/2006 8:46:44 PM
Hey everyone,

I've created a dynamic scrolling text field so I can update the banner in
notepad.

I don't want it to scroll across the whole page so I created a layer mask
graphic box and attached the text to it.

The problem lies in that I can't view the text if it's dynamic and in a mask.
If I drag the text out of the mask it reads the file and appears on stage
fine. Is there something I'm missing?

The code below is what I've created. Is there a scoping problem?

sky

var myLV:LoadVars = new LoadVars();
myLV.load("banner.txt");


myLV.onLoad = function(success) {
if (success) {
crazy_txt.text = myLV.banner;
}
};
sbryner
6/19/2006 10:05:55 PM
nilu_only
6/20/2006 12:00:00 AM
yachts99
6/20/2006 12:00:00 AM
You can't use a mask layer with dynamic text in the same way you would use a
mask layer with static text. It just doesn't work. Take a look at the setMask()
method in the Help section to see how to mask dynamic text.
Devendran
6/20/2006 12:00:00 AM
Masking is possible in Dynamic Text.

follow this steps

Select your "dynamic textbox".
in the property panel select "Embed".
on the list select uppercase,lowercase,numeral,punchuations. and press Ok.

Now test your movie




yachts99
6/20/2006 12:00:00 AM
AddThis Social Bookmark Button