[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3217
  • 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?
0
ShopSetup
Asked:
ShopSetup
  • 2
1 Solution
 
biyikCommented:
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
0
 
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?
0
 
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.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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