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)"/>


-M


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to