Launching a swf from inside flash

2 messages Options
Embed this post
Permalink
combustion

Launching a swf from inside flash

Reply Threaded More More options
Print post
Permalink
I have it working perfectly to launch an img, but when I try to launch a swf, I get nothing but errors.

http://www.tams-media.com/test/shadowbox/flash.htm

Is it even possible to launch a swf from another swf?
Wizzud

Re: Launching a swf from inside flash

Reply Threaded More More options
Print post
Permalink
The default player - if unspecified, as you have - is just 'img'. Therefore images will be Shadowboxed.
If you want to utilise other players - such as the 'swf' player - then you need to include it/them in Shadowbox's init() call.
Shadowbox.init({players:['img', 'swf']});
Obviously, you also need to provide the correct player in your call from the flash movie to openShadowbox()!

PS: Your example page does not attempt to launch a swf ... it launches childrens_hospital_columbus_LO_RES.jpg as an image, which works exactly as expected!
Combine literacy with curiosity and a whole world of information opens up to you