Jeff, Thx. That was just the ticket I was looking for.
-M --- In [email protected], "Battershall, Jeff" <[EMAIL PROTECTED]> wrote: > > Or you could make one bindable item: > > [Bindable] > public var myURL:String; > > private function initPackageVar():void { > myURL = 'assets/' + > Application.application.parameters.myPackage + '/clipart.xml'; > } > > <mx:HTTPService id="myClipArtService" > url={myURL}" > result="resultClipArtHandler(event)"/> > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of neoblu1 > Sent: Tuesday, September 11, 2007 3:03 PM > To: [email protected] > Subject: [flexcoders] Variables in HTTPService url via flashVars > > > I'm passing a var into Flex via flashvars and am trying to use it with > HTTPService in the url field to read an xml file where part of the path > is the variable. I am receiving the var fine, but just can't find a way > to incorporate into the url field in a way that the HTTPService will > read it. Is this possible? Everything I've tried thus far has failed. To > give you a better idea, here's a snippet of one of my tries: > > <mx:Script> > <![CDATA[ > [Bindable] > public var myPackage:String; > > private function initPackageVar():void { > myPackage = Application.application.parameters.myPackage; > } > > ]]> > </mx:Script> > > <mx:HTTPService id="myClipArtService" > url="assets/{myPackage}/clipart.xml" > result="resultClipArtHandler(event)"/> > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.com > Yahoo! Groups Links >

