Changing Font in a Component


hi,

 

i have been using both tutorial , post found on here regarding changing fonts on list component.

 

i put list componenet on stage , named it: myflashlist

 

i set font embed , set linkage described.

 

here code far:

 

 

 

import flash.text.textformat;

 

import fl.managers.stylemanager

 

import fl.controls.list

 

var stencilreg:font = new stencilreg();

 

var myformat:textformat = new textformat();

 

myformat.font = myflashlist.fontname;

 

myformat.color = 0x48b7ab;

 

myformat.size = 14;

 

myflashlist.setrendererstyle("embedfonts", true);

 

myflashlist.setrendererstyle("textformat", myformat);

 


the error getting is:
1180: call possibly undefined method stencilreg.

 

the line suggesting problem is:

 

var stencilreg:font = new stencilreg();
does 1 have thoughts here ;-)
thanks
babs

what stencilreg?  there wrong line.  makes no sense assign variable name class name.  whatever might be, more correct form of be...

 

var somefont:stencilreg = new stencilreg();



More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

Joomla site hacked, cant see front and - Joomla! Forum - community, help and support

Christian Home School Programs - Joomla! Forum - community, help and support

Trouble with PF_OutFlag_I_USE_AUDIO and PF_CHECKOUT_LAYER_AUDIO