ActionScript Component


<?xml version=”1.0″ encoding=”utf-8″?>
<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml&#8221;
backgroundColor=”#FFFFFF”
backgroundAlpha=”0″
initialize=”addControls()”>

<mx:Script>
<![CDATA[
import mx.controls.Image;
import mx.controls.Label;

private function addControls():void {
createImage();
createPhotographer();
}

private function createImage():void {
var photo:Image = new Image();
photo.source = “assets/qq.jpg”;
this.addChild(photo);
}

private function createPhotographer():void {
var photographer:Label = new Label();
photographer.text = “Photographed by Jagan Mady’s”;
this.addChild(photographer);
}

]]>
</mx:Script>

</mx:Application>

~ by mjcprasad2000 on January 27, 2009.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

 
%d bloggers like this: