flash cs6 - How to format static text in actionscript 3.0 -
import flash.events.mouseevent; import flash.text.textformat; mytext.buttonmode = true; var myformat:textformat = new textformat; myformat.size = 24; mytext.settextformat(myformat); here mytext instance name of movieclip of static text. how format static text in flash cs6?
settextformat() method of textfield class, not of movieclip class. should call method on textfield, possibly 1 in movieclip, named mytext.
if wondering why not receive error calling method doesn't exist on movieclip: because movieclip dynamic class.
Comments
Post a Comment