|
Hmm now I see. You should do this:
<mx:Button click="onTest(event)"
/>
and then your function will be like
this:
public function onTest(event:Event) :
void {
var myText:TextField = new TextField(); myText.x = 100; myText.y = 100; myText.width = 75; myText.autoSize = TextFieldAutoSize. myText.height = 50; myText.width = 200; myText.backgroundCo myText.text = "Test Test Test Test Test Test"; var format1:TextFormat = new TextFormat() format1.color = 0xFF0000; myText.setTextForma event.currentTarget.addChild(myText) } Van: [email protected] [mailto:[EMAIL PROTECTED] Namens richmcgillicuddy Verzonden: maandag 7 augustus 2006 19:11 Aan: [email protected] Onderwerp: [flexcoders] Simple TextField Question I have a simple app that I want to have text show up using a
TextField. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
__,_._,___ |
- RE: [flexcoders] Simple TextField Question Joost Nuijten
- RE: [flexcoders] Simple TextField Question Joost Nuijten
- RE: [flexcoders] Simple TextField Question Gordon Smith
- RE: [flexcoders] Simple TextField Question Gordon Smith
- RE: [flexcoders] Simple TextField Question Joost Nuijten
- Re: [flexcoders] Simple TextField Question Daniel Freiman
- RE: [flexcoders] Simple TextField Question Gordon Smith

