I think I'm missing some context
On 5/22/2015 4:56 AM, Harbs wrote:
I have a spark DropDownList, and some of the items need to open a separate
browser window.
You mean when an item is selected in the Spark DropDownList you may
want to open a separate browser window. Is that correct? Last I
checked, DropDownLists don't cause browser windows to open on their own.
So, I suspect you have change listener on the Spark DropDownList; and
in that change listener you introspect the new selectd item and
determine whether you need to open a new window or not. Is that correct?
Ideally, the browser window should only be opened after some data is uploaded
to a server, but I’m willing to accept that that’s not an option.
How are you uploading it? Generally, I would set some sort of flag in
the change listener, trigger the upload, and open the new window in the
result handler of the upload, based on the flag.
My problem is that none of the events dispatched by DropDownList seem to allow
browser windows to be opened without being blocked.
Blocked by what?
You can open a new browser window in Flash using navigteToURL() (
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/package.html#navigateToURL()
)
navigteToURL('someurl','_blank')
If your browsers security settings are blocking that, it has nothing
to do w/ Flash or Flex or ActionScript.
--
Jeffry Houser
Technical Entrepreneur
http://www.jeffryhouser.com
203-379-0773