I was so sure I had it but it looks like I have to accept defeat on this. I can trace the variable from everywhere in, out and around the code. If hard coded the db call works but it simply will not accept the variable. I'm so very disappointed but enough is enough. It just doesn't work. Period.
Thanks for all your help. -Mack --- On Fri, 5/22/09, Bob Wohl <[email protected]> wrote: From: Bob Wohl <[email protected]> Subject: Re: [Flashcoders] FlashVars - place data in a variable To: "Flash Coders List" <[email protected]> Date: Friday, May 22, 2009, 3:58 PM 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 <[email protected]> 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 <[email protected]> wrote: > > From: Bob Wohl <[email protected]> > Subject: Re: [Flashcoders] FlashVars - place data in a variable > To: "Flash Coders List" <[email protected]> > 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 > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

