I'm trying to incorporate Lightwindow into a flash project of mine. I just want to be able to launch it from flash. It can use a javascript function to call it, is this possible in flash? Any advice would be great help, thanks.
Printable View
I'm trying to incorporate Lightwindow into a flash project of mine. I just want to be able to launch it from flash. It can use a javascript function to call it, is this possible in flash? Any advice would be great help, thanks.
look into external interafce
I think that will do the trick. I'm pretty new at this and I can't figure out the syntax.
The function I need to call is:
So would I do something like this on a button...Code:myLightWindow.activateWindow({
href: 'http://stickmanlabs.com/images/kevin_vegas.jpg',
title: 'Waiting for the show to start in Las Vegas',
author: 'Jazzmatt',
caption: 'Mmmmmm Margaritas! And yes, this is me...',
left: 300
});"
Am I going in the right direction?Code:onMouseDown = function(myLightWindow){
ExternalInterface.call("general_JS_call", "String to return to Flash:");
Did you ever figure this out? I'm having the same problem...
To call this function from Flash:You would use:Code:myLightWindow.activateWindow({
href: 'http://stickmanlabs.com/images/kevin_vegas.jpg',
title: 'Waiting for the show to start in Las Vegas',
author: 'Jazzmatt',
caption: 'Mmmmmm Margaritas! And yes, this is me...',
left: 300
});"
Code:ExternalInterface.call("myLightWindow.activateWindow", "{href: 'http://stickmanlabs.com/images/kevin_vegas.jpg', title: 'Waiting for the show to start in Las Vegas', author: 'Jazzmatt', caption: 'Mmmmmm Margaritas! And yes, this is me...', left: 300}");
Thanks, I managed to get something like that working the other day. Do you have any experience with LightWindow? Only problem I'm having now is that the lightwindow is loading into an iFrame for some reason in IE, which is messing up the css styling. Works fine in other browsers.Quote:
Originally Posted by MyFriendIsATaco
Not personally with Lightwindow, no.