This appears to be a flash file, you cannot see a preview because flash player is no longer supoorted in browsers, but you can still download the file to study it's source code.
You can open/play the swf file with Flash Player exe
You can open/play the swf file with Flash Player exe
MBMedia (1)
AS3 Shadow Box
Loads Images or Swf files, automatically sets display sizes based on stage width and height, will always show above all content placed on stage, allows the user to download the item (optional when you call the shadow box) and can optionally show html description text. Full featured, and commercial use allowed except for flash stock.8368 downloads, 73262 views
shadow box light shadowbox lightbox popup preview image swf oop darken window lightwindow shadowwindow
Comments
You need to login to post a comment.
How can i call a html/php page within this shadowbox? Please help me. Thanks in advance.
works great, with one problem. the file that calls the shadowbox is resized using html in its div. When the frame with the code "plays" the flash file suddenly over takes the html and resizes to it original size (which is too large). Here is my AS3:
import local.display.ShadowBox;
ShadowBox.initialize(stage);
reelBTN.addEventListener(MouseEvent.CLI CK, btn1Click);
function btn1Click(event: MouseEvent) : void
{
ShadowBox.show("DannerReelPOPUP.swf");
}
stuntBTN.addEventListener(MouseEvent.MO USE_DOWN,stuntHandler);
function stuntHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("index1.html"), "_parent");
}
resumeBTN.addEventListener(MouseEvent.M OUSE_DOWN,resumeHandler);
function resumeHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("ResumeINDEX.html"), "_self");
}
prophoBTN.addEventListener(MouseEvent.M OUSE_DOWN,photoHandler);
function photoHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("ProdPhotosINDEX.html"), "_self");
}
vidBTN.addEventListener(MouseEvent.MOUS E_DOWN,vidHandler);
function vidHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("VideosIndex.html"), "_self");
}
newBTN.addEventListener(MouseEvent.MOUS E_DOWN,newsHandler);
function newsHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("newsINDEX.html"), "_self");
}
pressBTN.addEventListener(MouseEvent.MO USE_DOWN,pressHandler);
function pressHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("PressINDEX.html"), "_self");
}
conBTN.addEventListener(MouseEvent.MOUS E_DOWN,emailLink);
function emailLink(event:MouseEvent):void {
navigateToURL(new URLRequest("mailto:[email protected]"));
}
MBMedia - sorry for such a late response (3 months!!). I had no success loading a SWF that had "off-stage animations" via ShadowBox. Other, more standard SWF were no problem. I got around the issue by using a UILoader and all works fine. Thanks for your response anyway.
Electrodoc - Keyfish contacted me directly and I believe this person is good to go. It was only a matter of the path to the images (as you correctly pointed out) but also incorrect Instance Names in the code.
U probably did not include all all the as proper path to the files! usually if u use this kind of code u must manually add reference to the pics e.g (mouse.click, pic01)
pic01 shadowbox.show("pic01.jpg")
If anyone can help me, I'd be extremely appreciative. I'm having a problem loading my images. I got the ShadowBox to work, but when I click on the button that should load the shadowbox image, it loads the shadowbox, but the image is a small white box with a loading icon in it.
I also get this error: Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.
I adapted MBMedia's code used in preview.fla to my files, copied the local and pics folders into the same area as my .fla file, and put the correct directory into my script, but it still doesn't load the file.
Does anyone know how to fix this? I seem to be the only one that can't get this widget to work right, so I'm thinking it's something I'm not seeing.