I have learning AS3. used senoculars tutorial to figure out how to compile things and such.
my question is how can I use the flex components without having to use the flex builder IDED.
someone had reccommended doing something like this:
<?xml version=“1.0” encoding=“utf-8”?>
<mx:Application xmlns:mx=“http://www.adobe.com/2006/mxml” layout=“vertical”>
<mx:Script>
--code--
</mx:Script>
<mx:TextInput x="100" y="100"></mx:TextInput>
</mx:Application>
which I in turn tried:
MXML::
<?xml version=“1.0” encoding=“utf-8”?>
<mx:Application xmlns:mx=“http://www.adobe.com/2006/mxml” layout=“vertical”>
<mx:Script>
import AppStarter;
var app = new AppStarter();
</mx:Script>
<mx:TextInput x="100" y="100"></mx:TextInput>
</mx:Application>
AS:::
package
{
import flash.text.TextField;
import flash.display.Sprite;
public class AppStarter extends Sprite
{
public function AppStarter()
{
var t:TextField = new TextField();
t.text = "test";
addChild(t);
}
}
}
that doesn’t work. is spits this out:
Warning: var ‘app’ will be scoped to the default namespace: Main: internal. It will not be visible outside of this package.
var app:AppStarter = new AppStarter();
basically i am just looking for an entry point into AS… does someone know how to do this?
thanks