I am using Delphi application to launch Flex application in a browser. I want to identify that instance of the Flex application with a unique id like guid passed as a url parameter to the Flex. The guid will be generated in Delphi and I want that to be passed as a url parameter to flex.
So that I can associate further communication between Delphi and that instance of Flex using that unique id.
Is this going to be possible with Flex? Can 'Passing request data with URL fragments' be used for this purpose? Can Flex access its own URL and parameters passed to it? How can this be done...Please guide me with code snippets.
yes Flex can accept and read parameters passed to it, simplest one is accessing through Application.application.parameters
here is a nice onld post by faratta guys : http://yakovfain.javadevelopersjournal.com/passing_parameters_to_flex_that_works.htm
You pass data using the flashVars parameter. (e.g. <param name="flashVars" value="test"/>)
And you get them as levancho said with Application.application.parameters. In the above example, Application.application.parameters=="test".
However, if you need to pass multiple parameters you will do this:
<param name="flashVars" value="name=Amadeus&surname=Mozart"/>
And get them inside the Flex application with:
Application.application.parameters.name and Application.applicaition.parameters.surname.