all groups > flash actionscript > january 2004 >
You're in the

flash actionscript

group:

XML TREE 2004 ---EMBED Fonts help with functions.


XML TREE 2004 ---EMBED Fonts help with functions. soupycafe
1/16/2004 8:04:03 PM
flash actionscript: I need help.
I have a xml tree menu that was listed in the help.
It works great!
NOW...I would LOVE to find a way to embed fonts..change the font size....
and change the background.

I have gone into the 'First Run' files, but I am confused as to how to implement these changes.

Please help.

Thank you,
Emma

Re: XML TREE 2004 ---EMBED Fonts help with functions. soupycafe
1/16/2004 9:37:32 PM
ok...so I figured that part out!!!

BUT the wordwrap does not work.
I have used _width..but it affects the entire textarea...

thank you for your help,
Emma
myStyle=TextField.StyleSheet;
with(myStyle) {
fontFamily="SF Ironsides";
fontSize=15;
color=0x66633;
bold=false;
italic=false;
multiline=true;
wordWrap=true;
html = true
embedFonts=true;



}
myTreeDP.setNewTextFormat(myStyle);

Re: XML TREE 2004 ---EMBED Fonts help with functions. soupycafe
1/20/2004 12:33:41 AM
filter through it and that is what will work...
myStyle=TextField.StyleSheet;
with(myStyle) {
fontFamily="SF Ironsides";
fontSize=15;
color=0xFF7A25;
bold=false;
italic=false;
multiline=true;
wordWrap=true;
html = true
embedFonts=true;
textWidth=50;


}
myTree.setNewTextFormat(myStyle);

//init TextArea component
myTree.html = true;
myTree.label.htmlText=true;
myTree.label.wordWrap = true;
myTree.label.multiline = true;
myTree.label.width = 80;
//myTree.depthChild0._alpha=0

myTree.setStyle("backgroundColor","0x000000");
myTree.setStyle("borderStyle","none");
myTree.setStyle("rollOverColor","");
myTree.setStyle("textRollOverColor","0xF7AE30");
myTree.setStyle("textSelectedColor","0xC08E3E");
myTree.setStyle("selectionColor","none");
myTree._alpha=65;


myTree.setStyle("borderColor","0x21100D");
myTree.setStyle("highlightColor","0x21100D");

AddThis Social Bookmark Button