Flash: 6 inside 5?
- Started
- Last post
- 10 Responses
- mbr
I am making a site that will have Flash video, so I need the Flash 6 player. Now, my client wants people to be able to see it everywhere. Is there a way to have 50% of the site in Flash 5, then when you want to load an animation, it will detect that the user only has flash 5 and ask them to update?
I've got Moock's snazzy little detector working, but that's all js.
Any ideas would be helpful.
Thanks.
- jevad0
we were facing teh same problem last week at work...in the end we jsut decided to brute visitors into a flash 6 upgrade...static image and explanation for those we detected were still on flash 5 - the actual site for those on 6...
so far 92% of people hitting the site have had flash 6...that's pretty high
- o0o0
so you want to load a flash 6 animation inside of a flash 5 animation? That doesn't sound possible, although I've never tried... Can you make it a separate html page, a pop up or something, then use moocks script?
- nevub0
What you want to do is totally possible.
Just publish all SWF's besides the video as V5.
Then publish your video as V6.
Inside of your V5 SWF where you would loadMovie() just add a detect in there.
if (v > 5) {
loadMovie('video.swf');
}
else {
loadMovie('upgrade.swf');
}
- jevad0
word!
why the fuck didn't we do that!
ah well - the more people that upgrade to 6 the better I say....
- mbr0
Thanks all. That would be great if it really is that simple.
I'll try a test soon.
- honda0
i would suggest using the flem engine found here: http://chattyfig.figleaf.com/fle…
#include flem.as and presto you have the ability to do all your code in flash mx, publish and a flash5 file and still keep your original mx coding.
that is the most effective workaround. less cumbersome then publishing different files with different versions.
- mbr0
nevub - thanks! It seems to work, although it's telling me that I don't have the Flash 6 Player installed.
Is there any way to test the players without uninstalling and reinstalling?
honda - thanks for the link, but I couldn't find anything specific to this. That, and I am no programmer, so much of it looks far too complex for what I need.
- ********0
I would advise that you push your viewers to get Flash 6 Player. ;)
- nevub0
mbr,
If you just copied and pasted that code I posted that won't work.
You'll need to actually parse the SWF version.See the code below.
---
function getMajorVersion() {
var playerVersion = /:$version;
var playerVersionArry = playerVersion.split(",");
var majorVersionArry = playerVersionArry[0].split(" ");
return(majorVersionArry[1]);
}var majorVer = getMajorVersion();
if (majorVer > 5) {
loadMovie('video.swf');
}
else {
loadMovie('upgrade.swf');
}---
As for the Flash Player uninstall/re-install just download this beautiful little app.
http://www.kewbee.de/FlashPlugin…
- mbr0
nevub - many thanks, I guess it's working, but it still tells me that I don't have 6 installed.
If I switch the > to a < it loads the correct movie.
No errors, at least.I would love to force them to upgrade! But my client is worried that the realestate agents won't have the new one and won't be able to upgrade. Something we both should have talked about more in the beginning, I guess.
I'll check out the switcher, that'd be nice (although I'd feel a little more comfortable if it were English).