[flexcoders] Re: navigateToURL with multiple links

2006-07-24 Thread Doug Lowder
Weird.  I had to throw in some callLaters.  I didn't know that's how navigateToURL() works. http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="OpenListing(0)">  --- In flexcoders@yahoogroups.com, "Chris Waguespack" <[EMAIL PROTECTED]> wrote:>> This does not work either. In fact,

[flexcoders] Re: navigateToURL with multiple links

2006-07-24 Thread Chris Waguespack
I don't know if this is the best way to do this, but this seems to work: private function OpenListings():void{ var listingData:Array=/*an array of links*/; ExternalInterface.call("openURLs",listingData); } And a function in Javascript in the wrapper: function openURLs(urls){ fo

[flexcoders] Re: navigateToURL with multiple links

2006-07-24 Thread Chris Waguespack
This does not work either. In fact, having two navigateToURL requests in the same function only triggers the last one. Anyone know of a way around this? Thanks, Chris --- In flexcoders@yahoogroups.com, "Doug Lowder" <[EMAIL PROTECTED]> wrote: > > Try iterating through the array elements: > >

[flexcoders] Re: navigateToURL with multiple links

2006-07-24 Thread Doug Lowder
Try iterating through the array elements: private function OpenListings():void{ var listingData:Array=/*an array of links*/; for (var i = 0; i < listingData.length; i++){ navigateToURL(new URLRequest(listingData[i]),'_blank'); } } --- In flexcoders@yahoogroups.com, "Chris Wag