Hi,

You need to check out flashvars .... Just read this link

http://www.actionscript.org/forums/showthread.php3?t=175951

On Apr 29, 3:59 pm, Sudhakar <[email protected]> wrote:
> Hi all
>
>            i sticked with one problem anybody please give me solution.
>
> My Targets:
>
>  1) Loading external "SelectedQuestion.swf " (which is its own
> functionality) with some parameters ( like ?QuestionId=56 )into flex
> application.
>
> My sucess:
>
>    1) able to load external SelectedQuestion.swf  into flex
> application using <mx:SWFLoader />.
>
> My fails:
>
>   1) grabbing loaded SelectedQuestion.swf parameters (?QuestionId=56 )
> from external SelectedQuestion.swf.
>
> Source codes:
>
> SelectedQuestion.swf code:
> <?xml version="1.0" encoding="utf-8"?>
> <!-- wrapper/ApplicationParameters.mxml -->
> <s:Application
>         xmlns:fx="http://ns.adobe.com/mxml/2009";
>         xmlns:mx="library://ns.adobe.com/flex/mx"
>         xmlns:s="library://ns.adobe.com/flex/spark"
>         creationComplete="initVars()"
>         width="980" height="460"
>         >
>         <fx:Script><![CDATA[
>                 import mx.controls.Alert;
>                 import mx.core.FlexGlobals;
>                 [Bindable]
>                 public var iQuestionId:String;
>                 private function initVars():void {
>                         iQuestionId =
> FlexGlobals.topLevelApplication.parameters.QuestionId;
>                 }
>         ]]></fx:Script>
>         <s:HGroup top="50" left="100">
>                 <s:Label text="Question: "/>
>                 <s:Label text="{iQuestionId}" fontWeight="bold"/>
>         </s:HGroup>
> </s:Application>
> -------------------
> Main Flex application code:
> <mx:SWFLoader x="240" y="122" source="SelectedQuestion.swf?
> QuestionId=56" />
> -----------------------------
>
> Please give me a better solution for this issue..

-- 
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