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 [email protected], "Chris Waguespack" 
<[EMAIL PROTECTED]> wrote:
>
> I'm trying to make a link button that opens multiple links in
> different windows/tabs.
> Right now I have click calling this function
> 
> private function OpenListings():void{
>      var listingData:Array=/*an array of links*/;
>      var link:String=new String();
>      for each(link in listingData){
>           navigateToURL(new URLRequest(link),'_blank');
>      }
> }
> 
> This only opens the last link in the array. Is there any way to 
open
> more than one link at once?
> 
> Thanks,
> Chris
>







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to