nuaavee
nuaavee

Reputation: 1356

Popups in flash

How should I open a popup window from a swf?

My method - create another panel and overlay on the original swf. The problem is that the size of the original swf is small compared to the size of the popup window.

No JS call allowed which does not allow me to use window.open javascript call.


Update: I need to be able to communicate with this popup window as well. This eliminates opening a new window using navigateToURL method.

Upvotes: 1

Views: 393

Answers (2)

BoppreH
BoppreH

Reputation: 10173

If you have to communicate with the popup, you can still use the navigateToURL and use SharedObjects to pass the message between the movies. Or maybe a socket connection to 127.0.0.1 and a port for each movie. Or a LocalConnection, like gthmb said.

Upvotes: 2

gthmb
gthmb

Reputation: 808

you'll have to use navigateToURL and set the target to '_blank'

ie)

navigateToURL( new URLRequest('http://my.useful.content.not.spam.com/page.html'), '_blank')

you'll have to take care of the layout in the page.html

Upvotes: 3

Related Questions