Copy link to clipboard
Copied
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
go here an allow your file to access the internet zone: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
for now its local...
Copy link to clipboard
Copied
i think that may be the problem... it says something about security, but in french:P is there a solution?
Copy link to clipboard
Copied
go here an allow your file to access the internet zone: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html
Copy link to clipboard
Copied
why is it that you ALWAYS have the answer? hehe thanks a lot man. its been over i week i was about to hang myself:P
thanks again!
Copy link to clipboard
Copied
you're welcome.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more