Flash - displaying alternative content on ios...
- Started
- Last post
- 10 Responses
- CygnusZero40
Yeah Im getting a ton of push back from clients about ditching Flash. They just dont want to do it. Many of them are pretty smart and understand the browser issues with HTML5 so Im starting to have to look into this same crap with sniffers and alternate backups.
- you are not the only one.. I see a lot of people getting more and more Flash work again.monolith
- fadein110
I used swfobject - nice.
Thanks for help.
- CyBrainX0
This may be an obvious question but what about exporting video from your Flash animation and using that?
- chrisRG0
use swfobject and you're fine.
- instrmntl0
Animated headers are all the rage these days.
- monolith0
You can always sniff it like this:
by using userAgent (not really best way):
var is_iOS = ( navigator.userAgent.match(/(iPad... ? true : false );
or you can do it like this (better way):
var is_iOS = false,
_platform = navigator.platform;if( _platform === 'iPad' || _platform === 'iPhone' || _platform === 'iPod' ){
is_iOS = true;
// redirect or call non-flash stuff here
}and you can check for version like this:
var iOSversion = false,
_window = window,
_platform = navigator.platform;if( _platform === 'iPad' || _platform === 'iPhone' || _platform === 'iPod' ){
!!_window.history && !!_window.history.pushState ? iOSversion = '4+' : iOSversion = '4-';
!!_window.matchMedia ? iOSversion = '5+' : '';
}
- monolith0
your client seems like a smart person/company. They don't want to pay for building shit in HTML5 that won't work on 40% of the browsers. I can't say I blame them.
And you should be happy. Building it in Flash will make it easy for you and you can always detect whether it's an ipad with JS and you can do a custom full blown HTML5/CSS3 goodness for iOS.
This is the best approach to get widest audience, best compatibility and you can do some awesome stuff for iOS only with CSS3 and not worry about browser support clusterfuck. And I'm even certain it will take you less time too.
- lol - its a small animation on the homepage - no budget for HTML5... just need an image to replace flashfadein11
- fadein110
^ thanks - does anybody know if this will work before I implement (being lazy)
- animatedgif0
wouldn't the way swfobject (or whatever people use these days) do this. Seen as it replaces the target divs contents with flash
- fadein11
Right - a client is insisting on using a flash animation on their homepage... I have advised against but no good.
whats the best strategy for ensuring ios users see something (an image and html) in the place of the flash?
I used to use UFO but will this work for ios?
Thanks.