[flexcoders] Re: navigateToURL with multiple links
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: 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 Waguespack cjwprostar@ 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 ~-- See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/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/
[flexcoders] Re: navigateToURL with multiple links
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){ for(i=0;iurls.length;i++){ window.open(urls[i],'_blank'); } } I think the reason you can't have multiple navigateToURL's in the same function because of the way the HTTPService call works. -Chris --- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED] wrote: 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 Waguespack cjwprostar@ 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 ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/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/
[flexcoders] navigateToURL with multiple links
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 ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/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/
[flexcoders] SelectedItem of DataGrid going to null when sorted
Please see the code below for a working example. When you double click on dgOne, it does what it is supposed to, but if you first click to sort dgTwo and then double click dgOne it messes up and sets the selected item to null. Any idea what's happening? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.collections.XMLListCollection; public var xmlOne:XML= root data nameFoo/name typeNumber/type /data data nameBar/name typeString/type /data /root; public var xmlTwo:XML= root data nameFoo/name typeNumber/type /data data nameBar/name typeString/type /data /root; [Bindable] public var sourceOne:XMLListCollection=new XMLListCollection(new XMLList(xmlOne)); [Bindable] public var sourceTwo:XMLListCollection=new XMLListCollection(new XMLList(xmlTwo)); public function GotoNext():void{ if(dgOne.selectedItem!=null){ tabNav.selectedIndex=1; trace(dgOne.selectedItem); trace(dgTwo.selectedItem); dgTwo.selectedItem=dgOne.selectedItem; trace(dgTwo.selectedItem); trace(-- ); } } ]] /mx:Script mx:TabNavigator id=tabNav creationPolicy=all left=20 right=20 top=20 bottom=20 mx:Panel id=tabOne label=Tab 1 width=100% height=100% mx:DataGrid dataProvider={sourceOne.child ('data')} width=100% height=100% doubleClickEnabled=true id=dgOne doubleClick=GotoNext(); mx:columns mx:DataGridColumn headerText=Column 1 dataField=name/ mx:DataGridColumn headerText=Column 2 dataField=type/ /mx:columns /mx:DataGrid /mx:Panel mx:Panel id=tabTwo label=Tab 2 width=100% height=100% mx:DataGrid dataProvider={sourceOne.child ('data')} id=dgTwo width=100% height=100% mx:columns mx:DataGridColumn headerText=Column 1 dataField=name/ mx:DataGridColumn headerText=Column 2 dataField=type/ /mx:columns /mx:DataGrid /mx:Panel /mx:TabNavigator /mx:Application 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/