OmenKing
04-14-2008, 07:07 PM
I want to be able to add sprites and other things but not sure how to go about it. This is what I thought would work but doesn't.
How do I go about doing this?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%">
<mx:Panel id="pmain" styleName="main" width="760" height="410" title="Caption Editor">
<mx:Script>
<![CDATA[
import flash.display.Sprite;
var rwar = new Sprite();
with(rwar.graphics)
{
lineStyle(1,0x000000);
drawCircle(20,20,20,20)
}
rwar.x = 30;
rwar.y = 30;
addChild(rwar);
]]>
</mx:Script>
</mx:Panel>
</mx:Application>
How do I go about doing this?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%">
<mx:Panel id="pmain" styleName="main" width="760" height="410" title="Caption Editor">
<mx:Script>
<![CDATA[
import flash.display.Sprite;
var rwar = new Sprite();
with(rwar.graphics)
{
lineStyle(1,0x000000);
drawCircle(20,20,20,20)
}
rwar.x = 30;
rwar.y = 30;
addChild(rwar);
]]>
</mx:Script>
</mx:Panel>
</mx:Application>