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

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 no website
Listing URL none
Downloads 6398 Views 50655
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 Blooblood
Blooblood: 1 month 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: 1 month 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: 1 month 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.

user electrodoc
electrodoc: 4 months ago

Very good gallery, but a bit slow on large image load

user MBMedia
the listing author MBMedia: 4 months ago

BlooBlood: There is no such thing as invisible content as far as script is concerned (widths and heights read just the same). And there is also no such thing as a stage in any swf that is loaded into another swf (it just becomes a movieclip).

AS3 is designed to be self contained. So you have 100% control over your own swf that gets loaded in. The good part about that is that you can use other peoples scripts (like the one you downloaded here) and still have complete control over your own content. The difficult part about it is that writing a swf that is designed to be loaded requires its own knowledge and techniques.

For your swf being loaded, make it 2 frames. Make the first frame nothing but a fully transparent square that is the size you want the swf to seem. Then make it detect when itself is fully loaded, wait another second maybe, then go to your content that you want to show. Also, you'll want to mask that content at the proper size to.

These are general things you can use any time you make a swf that is designed to be loaded into another swf.

show all 51 comments