Skip to main content

Posts

Showing posts from January, 2008

Flex sample example in Eclipse

This is a very basic example which makes use of Flex 3 in the frontend , MySQL for data storage and PHP to glue Flex and MySQL. There are two source files used in this example: i. flex.mxml - for the interface part <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="absolute" creationComplete="userRequest.send()"> <mx:HTTPService id="userRequest" url="http://localhost/flex/request.php" useProxy="false" method="POST"> <mx:request xmlns=""> <username>{username.text}</username><emailaddress>{emailaddress.text}</emailaddress> </mx:request> </mx:HTTPService> <mx:Form x="22" y="10" width="493"> <mx:HBox> <mx:Label text="Username"/> <mx:TextInput id="username" /> </mx:HBox> <mx:HBox