changing format of text - can't!!!


i have textfield inside mc. when roll on event triggered.



in fuction can this

code:
event.currenttarget.getchildat(0).text="fred";
and text changes - being targetted



i want change format of text thought

code:
event.currenttarget.getchildat(0).defaulttextformat=mtitle_fmt;


but, doesn't work.



it says "referenceerror: error #1037: cannot assign method settextformat on flash.text.textfield.
at index001_fla::maintimeline/overhandler()"



any pointers please



thanks

click file/publish settings/flash/permit debugging , retest.  using line number in error message confirm error message references line of code displayed here.



More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???