Sunday, March 28, 2010

buttonMode issue

I am trying to create a slider for a scroll bar.

I used the ''q'' wingding character as?an arrow;

var TF:TextFormat=new TextFormat();
TF.font=''wingdings 3''
TF.size=15;
TF.color=0xCCCCCC;

var txt_f:TextField=new TextField();
txt_f.selectable=false;
txt_f.text=''q'';?//small triangle pointing down
txt_f.x=8;
txt_f.y=15;
txt_f.setTextFormat(TF);
// txt_f.cacheAsBitmap=true;
slider_mc.addChild(txt_f);

slider_mc.buttonMode=true;

The hand cursor will no't appear over the txt_f?''q'' character.

It楹搒 not set to dynamicText field....

Any Ideas on why this is happening?

Thanks

Alex

buttonMode issue

Dynamically created Text field is dynamic by default.

Anyway, try to set the mouseEnabled property of the Text field to false and see if it helps.

buttonMode issue

thanks shiftless. That solved my issue.

You're welcome.

No comments:

Post a Comment