FFILES.COM NEWS SUBMIT A FILE REGISTER CONTACT
username:
password:
register | login help
Pending listings (4)

AS3 Shadow Box

click here to view the preview
Previous overall listing: Interactive XML Canada map Previous in Photo Galleries: AS3 Gallery Next overall listing: a line in motion blur - desenfocar una linea en movimiento Next in Photo Galleries: XmlG v.2

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... more >

Keywords: shadow   box   light   shadowbox   lightbox   popup   preview   image   swf   OOP   darken   window   lightwindow   shadowwindow

user MBMedia Author URL flashden.net/user/mbme...
Listing URL flashden.madbunny.us/f...
Downloads 8099 Views 63790
MBMedia  

User ratings for AS3 Shadow Box.

Donate Add to favorites Subscribe to comments
Report listing
Download  (Flash 9, AS 3.0)

Comments

You need to LOGIN to post a comment.
user ephrem
ephrem: 2 years ago

How can i call a html/php page within this shadowbox? Please help me. Thanks in advance.

user adamcritchlow
adamcritchlow: 2 years ago

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:mail@gmail.com"));
}

user Blooblood
Blooblood: 2 years ago

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.

user electrodoc
electrodoc: 2 years ago

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")

user Keyfish
Keyfish: 2 years ago

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.

show all 53 comments