Well I dont think there is any issue with replacing myCustIdHere with chartManagerService.lastResult.charts.paramBack2 as long as you put it in the {} brackets.
You could also just create a function that all it does is return chartManagerService.lastResult.charts.paramBack2 and embed that inside the {} . Make sure you include the () after the function name. On Mon, Feb 16, 2009 at 5:18 PM, Frank Griffin <fgrif...@prorizon.com> wrote: > Cameron, > > I didn't want to use the whole > "chartManagerService.lastResult.charts.paramBack2" because I need to > embed the string it returns into the function below instead of > {myCustIdHere}: > > private function returnToMagicHome():void > { > navigateToURL(new > URLRequest("localhost/Magic94Scripts/mgrqispi94.dll?APPNAME=Test&PRGNAME > =nav_frame&ARGUMENTS=-N{myCustIdHere}"),"_top"); > } > > I did get the following to work: > > private function getResult(event:ResultEvent):void{ > dataCollection = event.result.charts.chart > as ArrayCollection; > > textChartId.text = > chartManagerService.lastResult.charts.paramBack2; > updateGrid(); > > } > > As you can see it updates a text field named "textChartId" and I am > hoping to be able to use the data in that field in the above URLRequest. > > Thanks, > > Frank > > -----Original Message----- > From: ad...@affug.org [mailto:ad...@affug.org] On Behalf Of Cameron > Childress > Sent: Monday, February 16, 2009 4:33 PM > To: discussion@affug.com > Subject: Re: [AFFUG Discuss] Syntax for Private VAR > > On Mon, Feb 16, 2009 at 4:28 PM, Kit McCormick <kit.mccorm...@gmail.com> > wrote: >> [Bindable] >> private var ChartID : String = > chartManagerService.lastResult.charts.paramBack2; > > This will set the value of > "chartManagerService.lastResult.charts.paramBack2", into the variable > called ChartID at the time that it runs. However, it will not "bind" > ChartID to chartManagerService.lastResult.charts.paramBack2, which I > think is what you may be looking for. You should look at creating the > Bindings in the docs, or just use > chartManagerService.lastResult.charts.paramBack2 wherever you'd > normally have used ChartID. > > -Cameron > > -- > Cameron Childress > Sumo Consulting Inc > http://www.sumoc.com > --- > cell: 678.637.5072 > aim: cameroncf > email: camer...@gmail.com > > > ------------------------------------------------------------- > To unsubscribe from this list, simply email the list with unsubscribe in > the subject line > > For more info, see http://www.affug.com > Archive @ http://www.mail-archive.com/discussion%40affug.com/ > List hosted by http://www.fusionlink.com > ------------------------------------------------------------- > > > > > ------------------------------------------------------------- > To unsubscribe from this list, simply email the list with unsubscribe in the > subject line > > For more info, see http://www.affug.com > Archive @ http://www.mail-archive.com/discussion%40affug.com/ > List hosted by http://www.fusionlink.com > ------------------------------------------------------------- > > > -- http://www.atlantageek.com ------------------------------------------------------------- To unsubscribe from this list, simply email the list with unsubscribe in the subject line For more info, see http://www.affug.com Archive @ http://www.mail-archive.com/discussion%40affug.com/ List hosted by http://www.fusionlink.com -------------------------------------------------------------