Hi,

You could use;

<mx:Application ... creationComplete="drawer()">
   ...
</mx:Application>

Peace, Mike

On 9/19/06, caruso_canepari <[EMAIL PROTECTED]> wrote:


Hi, I'm trying to use and understand Flex Builder.
I made up this test function but I don't understand how it can be
called "onLoad":

<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>

Could you gently tell me how can I call it?
Thanks. :-)




--
What goes up, does come down. __._,_.___

--
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
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to