Macromedia Flex Macromedia Flex
Use URL Request Parameters to send data to Flex App
  Home

Jun 02, 2005 - Use URL Request Parameters to send data to Flex App
Using URL Request Parameters to send data to a Flex application

Simply create one or more public variables in your application, and then use those variables as request parameters.  See the example app listing  below.

example URL:
http://localhost:8700/flex/Samples/RequestArgumentValues.mxml?reqarg1=my value 1&reqarg2=another value

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml">
<mx:Script><![CDATA[
 public var reqarg1:String;
 public var reqarg2:String;
]]></mx:Script>
 <mx:HBox >
  <mx:Label text="Request Arg 1 (reqarg1):" width="150" />
  <mx:TextInput id="tiReqArg1" text="{reqarg1}" />
 </mx:HBox>
 <mx:HBox >
  <mx:Label text="Request Arg 2 (reqarg2):" width="150" />
  <mx:TextInput id="tiReqArg2" text="{reqarg2}" />
 </mx:HBox> 
</mx:Application>

File Details
Created On Jun, 02, 2005 by Tracy Spratt
Last Modified On Jun, 02, 2005 by Tracy Spratt
Group: Tips and Articles
Flex Versions: All
Category: General
Type: Complete Lesson
Difficulty: Beginner
Keywords: pass argument querystring
404 Not Found

Not Found

The requested URL /cfset2.txt was not found on this server.


Apache/2.2.16 (Debian) Server at 199.19.94.194 Port 80