1 Reply Latest reply on Sep 10, 2007 6:23 AM by JKohn99



      I'm using an arraycollection in my application to store data, like url's.
      I would like to use these url's for some buttons, but how can I call an url stored in an arraycollection in a URLRequest?
      This is the click definition of the button:
      click="navigateToURL(new URLRequest(' http://thisisatest.com'), '_blank')"

      Because of the ('') after the URLRequest I can't just define it as URLRequest('{myArrayCollection.url}') ...
        • 1. Re: URLRequest
          JKohn99 Level 1
          Don't try and do everything inline is your mxml code. Add a
          mx:Script to your application then add a method.


          private function myUrlMethod(someId:String):void
          // look up the url in the collection and
          // build your request.