hey Madan ,

you can simply try like this

this is df.as which is similer to main.mxml that you use in flex app

*dr.as*
package {
    import flash.display.Sprite;
    import flash.text.TextField;

    public class df extends Sprite
    {
        public function df()
        {
            var myRemoteRef:RemoteClass= new RemoteClass()

            var mytext:TextField= new TextField()
            mytext.text = myRemoteRef.getDescription;
            this .addChild(mytext);

        }
    }
}

*RemoteClass.as*

package
{
    public class RemoteClass
    {
        public function RemoteClass()
        {
        }
        private var Description:String = "Hi im from remote";

        public function get getDescription():String
        {
            return Description;
        }

    }
}



just put the two files in the src folder (or you could create a actionscript
project from flexbuilder too :-)

and run the df.as.

you should see a text field saying that "Hi im from remote"


hope that what you seeking for ...

cheers

dinukx


On Wed, Nov 11, 2009 at 7:17 AM, Madan Narra <[email protected]>wrote:

> Hi,
>
> How could I create a Flex Application just using actionscript classes
> without the need of MXML ?
>
> I could just create a sample app totally in actionscript but having the
> main application tag defined in mxml (<mx:Application></mx:Application>).
>
> How to accomplish this ?
>
> --
> Thanks,
> Madan N
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to