Hi,

The problem is happening because you are scaling your movie clip. The scale does not seem to get passed down to the components - the problem does not happen if you use the code below, but on your site the scale of the uc movie is set to 70. You may need to style the "List Component" which draws the out of scale text...

You may be able to workaround this by creating a CellRenderer which changes the way the contents of each list cell are drawn, but it will probably be less painful not scaling your movieclip if you can help it.

   Glen

Laurent CUCHET wrote:
I meet a special problem with set style and attached movie. I apply a font
size to 9 and when I open it the label inside get bigger

You  can see it there : http://www.laurentcuchet.fr/flash/combobox

I done this script :
//
var maxfields=2;
sp.contentPath = "mc";
for (var i = 1; i<=maxfields; i++) {
    var uc = sp.content.attachMovie("upload_component", "uc"+i, i);
    uc._y = i == 1 ? 10 : sp.content["uc"+(i-1)]._y+uc._height;
    uc.number_txt.text = i;
    uc.my_cb1.setStyle("fontSize", "9");
    uc.my_cb2.setStyle("fontSize", "9");
}
stop();

I also try to put set style inside the UC but there is the same (very
special) problem

Thank for your reply
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to