non-flash fallback

beg-dev

New Member
I have an swf file on my site and i need to have a non-flash fallback to a quicktime .mov file for devices that dont have flash and after that a fallback to a still image if possible.

can anybody direct me to the correct code, i've been google-ing it alot and cant seem to find anything.

This is for an assigment btw, at the minute the only thing on the page is the working swf file.

can anybody help :confused:

thanks
 

CaldwellYSR

Member
The easiest way to do this would be to use the object tag. You can set up fallback options for if the flash fails. I've never used it personally so I don't know if it will work with quicktime (help me out someone) but you can fall back to a still image in the absence of flash.

HTML:
<object type="application/x-shockwave-flash" 
        data="path-to/flash-file.swf"
        width="xxx" height="xxx"
        <param name="movie" value="path-to/flash-file.swf" />
        <!-- Fallback goes below -->
        <img src="path-to/fallback-image.xxx" alt="xxx" />
</object>
 
Last edited:

beg-dev

New Member
thanks for reply.

yea i managed to get a still image fallback already with the method you just described and your right, it doesnt work with a quicktime movie, i'm guessing some sort of embed code might be needed but have no clue how it would go. :(
 

CaldwellYSR

Member
Can you possibly put the quicktime embed inside the object tag, between the image and the flash file?

Or maybe you could nest another object tag inside the flash object tag that is the quicktime video?

If none of these work my only other idea would be to use a try{}catch(err){} in javascript...
 
Last edited:

beg-dev

New Member
yea that makes sense.

managed to get the quicktime to play is the user dont have flash with this code

<param name="expressinstall" value="scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="flash ads/banner.swf" width="468" height="60">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="11.0.0.0" />
<param name="expressinstall" value="scripts/expressInstall.swf" />
<p><EMBED SRC="banner.mov" WIDTH=468 HEIGHT = 60 AUTOPLAY=true CONTROLLER=true LOOP=false PLUGINSPAGE =http://www.apple.com/quicktime/"></p>

if the user aint got quicktime, it asks to install it, not sure where to go from here to get it to go straight to a still image if they aint got quicktime instead of asking to install.
 

Phreaddee

Super Moderator
Staff member
Haha, this is exactly why I hate flash.
If you dont have flash, install flash, alternatively install something else.
It is invasive and annoying, and MOST people wont follow the prompts.
If the "assignment" requires you to use flash then thats also quite annoying.
However if it can be done with jquery, i'd suggest using that, much more user friendly.
 

CaldwellYSR

Member
Haha, this is exactly why I hate flash.
If you dont have flash, install flash, alternatively install something else.
It is invasive and annoying, and MOST people wont follow the prompts.
If the "assignment" requires you to use flash then thats also quite annoying.
However if it can be done with jquery, i'd suggest using that, much more user friendly.

Yeah screw flash, I didn't want to say it. Knew you would if I didn't ;)
 

sanna

New Member
Hi
Could you please help me by showing the step how to use your solution. I have a flash banner on my customer website. The problem is not many people has flash installed to view his website. I want it to make it work with out installing flash.
Thanks in Advance
 
Top