Hi Mack,

The variable should still be holding the value. When you trace keyStr
right before you do your call, does it come back null?

B.

On Fri, May 22, 2009 at 2:34 PM, webmastermack <webmasterm...@yahoo.com> wrote:
> Hi Bob,
>
> Thanks for looking at my code. I really appreciate it! Below are the two 
> scenarios that result in printing the string to the stage via a text field.
>
> //Version 1
> var keyStr:String;
> keyStr = stage.loaderInfo.parameters.itemID;
> texty.text = keyStr;
> addChild(texty);
>
> //Version 2
>
>         var keyStr:String;
>         var paramObj:Object = stage.loaderInfo.parameters;
>         var path_course:String;
>
>         for (keyStr in paramObj)
>             {
>                 keyStr = String(paramObj[keyStr]);
>                 texty.text = keyStr;
>             }
>
> If I reference keyStr outsided of text field, there is no response.
>
> Example:
> gw.connect("http://www.mysite.com/amfphp/gateway.php";);
> gw.call("load_data.my_data", res, keyStr);
>
> -Mack
>
>
> --- On Fri, 5/22/09, Bob Wohl <bob.w...@gmail.com> wrote:
>
> From: Bob Wohl <bob.w...@gmail.com>
> Subject: Re: [Flashcoders] FlashVars - place data in a variable
> To: "Flash Coders List" <flashcoders@chattyfig.figleaf.com>
> Date: Friday, May 22, 2009, 2:15 PM
>
> This works just fine for me, I have an entire list of flashVars I have
> to access and set to variables to run an application. I wouldn't be
> able to loop them and know what I was accessing since they are all
> just string values. What you may want to do is trace the keyStr in
> your loop as well to see what is being looped:
>
> for (keyStr in paramObj){
> trace(keyStr+ " : "+paramObj[keyStr])
> }
>
>
> Still, you should be able to get to the loader info object and
> directly grab the flash var you want w/o looping through to get
> values.
>
> B.
>
>
>
>
>
>
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to