Mailing List
Home
Flash Pro
Extending Flash
Flash Macromedia Developer
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
- MX Tree component GURU

- MX Tree component GURU

2004-02-14       - By tien nguyen

 Back
Hello everyone in this fine list,

I 'm a bit of a newbie to flash components. Perhaps
those with greater understand can lend a helping hand.

Challenge:

Making the tree component V1 display non European
languages. In this case, japanese, chinese, korean
etc..

What I have done:

1. Turn off embed fonts in the following function:

FTreeSelectableItemClass.prototype.layoutContent {
this.fLabel_mc.labelField.embedFonts =
false;
}

Result: The tree can display Asian languages but all
tree icons, expander and connector lines dispeared.
furthermore, when I select one of the entries in the
tree list, the text goes blank.

2. Within
"FTreeSelectableItemClass.prototype.displayContent "

Set the Depth of "fIcon_mc " to the same as "fLabel_mc "
movie

this.attachMovie( "FLabelSymbol ", "fLabel_mc ", 2,
{hostComponent:this.controller});

if(this.fIcon_mc == undefined) {
this.attachMovie(icon, "fIcon_mc ", 2);
this.fIcon_name = icon;
}

Result:

All icons and connectors are displayed correctly,
However, the text labels have now disappeared.

>From my limited understanding of how this component
works, somehow the embed fonts and device fonts are
layered differently.

Please have a look at this challenge and any light
shed on this topic would be greatly appreciated.

Cheers, Tien :)


__ ____ ____ ____ ____ ____ ______
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104233
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)