Use the onCreationComplete event
For example
<mx:Application
onCreationComplete="drawer()">
Regards,
Bjorn Schultheiss
Senior Flash Developer
QDC Technologies
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Adrian Ionut
Beschea
Sent: Monday, 18 September 2006 5:08 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] flex simple question call function
try posting your flex question on the flexcoders list :
http://www.flexcoders.org/index.html
----- Original Message ----
From: Caruso Canepari <[EMAIL PROTECTED]>
To: [email protected]
Sent: Monday, September 18, 2006 10:00:52 AM
Subject: [Flashcoders] flex simple question call function
Hi, a supid question.
I'm trying to use Flex Builder.
How can I call this function? I can't get it working. Thanks.
<mx:Script>
<![CDATA[
import flash.display.*;
public function drawer():void{
var mySprite:Sprite = new Sprite();
mySprite.graphics.beginFill(0xffcc00);
mySprite.graphics.drawCircle(30,30,30);
var lab:TextField = new TextField();
lab.text = "hello";
lab.x = 300;
lab.y = 300;
mySprite.addChild(lab);
addChild(mySprite);
}
]]>
</mx:Script>
__________________________________________________
Do You Yahoo!?
Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto
spazio gratuito per i tuoi file e i messaggi http://mail.yahoo.it
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com