• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3233
  • Last Modified:

Opening Jquery Colorbox from button inside flash

How do I open a ColorBox iframe (http://colorpowered.com/colorbox) when a user clicks on a flashbutton in my .swf? I have seen examples using thickbox and lightbox but can't find any using Colorbox.Can anyone help?
  • 2
1 Solution
You can try to call this function :
function menu() {
&nbsp;$('<a />').colorbox({fixedWidth:"widthpx", fixedHeight:"heightpx",
iframe:true, href:"yourPage.php", bgOpacity:0, open:true}); return false;
Resource : http://groups.google.com/group/colorbox/browse_thread/thread/588e009adfa66e8a/f4fad06eb1178234?lnk=gst&q=Flash#f4fad06eb1178234
ShopSetupAuthor Commented:
Ok, so if I have understood correctly all I have to dois call this javascript function using getURL("javascript:menu();"); ?
Not sure whether its AS2 or AS3, how do I call the function when user presses the button if its AS3?
ShopSetupAuthor Commented:
Implemented the geturl and the javascript function provided. After modifying the function, deleted the last part "return false;" it worked.
Thanks a bunch for support.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now