Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

lightbox revisited

Guest
May 19, 2009 May 19, 2009

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

TOPICS
ActionScript
787
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , May 19, 2009 May 19, 2009

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

Translate
Community Expert ,
May 19, 2009 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 19, 2009 May 19, 2009

for now its local...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 19, 2009 May 19, 2009

i think that may be the problem... it says something about security, but in french:P is there a solution?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 19, 2009 May 19, 2009

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 19, 2009 May 19, 2009

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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 19, 2009 May 19, 2009
LATEST

you're welcome.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines