Skip to main content
May 19, 2009
Answered

lightbox revisited

  • May 19, 2009
  • 1 reply
  • 778 views

i'm starting a new thread because i want to start fresh and explain what may be impossible to do (i hope not).

i have a swf. In that swf, i have a button. i want this button to call a lightbox. in this lightbox, i want a html page to appear. not an image, or a gallery, an html page.

so what i did is this:

in the html, i wrote this:

<script type="text/javascript" src="javascript/prototype.js"></script>
<script type="text/javascript" src="javascript/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="javascript/lightwindow.js"></script>
<link rel="stylesheet" href="css/lightwindow.css" type="text/css" media="screen" />

and in my flash button, i wrote this:

on (release) {
getURL("javascript:myLightWindow.activateWindow({href:'http://www.opentable.com/single.aspx?rid=31627&restref=31627', class:'lightwindow', title:'TITLE', author:'AUTHOR', caption:'CAPTION'});")
}

it doesnt give me any error. but it wont work. NOW, when i replaced my http address by an address to a local "swf", it worked. is it because html will not work? or i have the AS wrong? does anyone see a mistake somewehre?

thanks guys

This topic has been closed for replies.
Correct answer kglad

go here an allow your file to access the internet zone:   http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html

1 reply

kglad
Community Expert
Community Expert
May 19, 2009

if you're trying to access a non-local file, you may have a cross-domain security issue.  what's the url of you flash'es html?

May 19, 2009

for now its local...