Forum Topic: Detecting Flash 8

(368 views • 6 replies)

This topic is 1 page long.

<< < > >>
None

McBean

Reply To Post Reply & Quote

Posted at: 9/19/05 02:56 PM

McBean NEUTRAL LEVEL 35

Sign-Up: 07/08/03

Posts: 130

I want to submit some movies to the portal that have been compiled with flash 8. The problem is though that not everyone has flash 8 player yet, and even if you put write something about it in the author's comments, there will still be those dense few who will casually remain ignorant and wonder why they only see a blank movie. They see the blank movie and then vote 0, thus lowering the score.
So , is there a script for that will stop someone from viewing a movie and tell them to upgrade their player first?

BBS Signature

None

Inglor

Reply To Post Reply & Quote

Posted at: 9/19/05 02:58 PM

Inglor NEUTRAL LEVEL 17

Sign-Up: 01/26/03

Posts: 10,957

on newgrounds the when you view an entry you get alarmed about an
outdated flash plugin.
The problem is the alarm is outdated itself so people don't get it for
flash movies/games made
in flash 8. If you could fix that it would be a great help to everyone
using flash 8.

this is the specific code btw :

codebase="http://download.macromedia.com/p
ub/shockwave/cabs/flash/swflash.cab#versio
n=7,0,19,0"

Yours.
Inglor

From: liljim <liljim@newgrounds.com>

Reply-To: liljim <liljim@newgrounds.com>
To: inglor@gmail.com
Date: Sep 18, 2005 6:57 PM
Subject: Re: Annoying OutDated Plugin Problem :(

Thanks for the pointer, I've updated that stuff.

James

- Show quoted text -


None

liaaaam

Reply To Post Reply & Quote

Posted at: 9/19/05 03:00 PM

liaaaam NEUTRAL LEVEL 21

Sign-Up: 12/11/04

Posts: 12,766

if (System.capabilities.version != "WIN 8,0,22,0" || System.capabilities.version != "MAC 8,0,22,0") {
//do actions
}

Replace do actions with the actual actions, like show a textbox that says "You cannot view this movie, please upgrade to Flash Player 8. [LINK]." or whatever.. oh and I haven't tried it but it should work.

If there are any errors then just fix the errors, they will only be linebreaks (so join the lines back up again, should be obvious).


None

Afro-Ninja

Reply To Post Reply & Quote

Posted at: 9/19/05 03:05 PM

Afro-Ninja EVIL LEVEL 35

Sign-Up: 03/02/02

Posts: 13,171

you could do something like

if(int(substring(getVersion(),5,1))<8)goto
AndStop("updatePlayer");

don't see why it wouldn't work, but I haven't tried it

BBS Signature

None

NegativeONE

Reply To Post Reply & Quote

Posted at: 9/19/05 03:18 PM

NegativeONE DARK LEVEL 42

Sign-Up: 02/15/03

Posts: 7,392

At 9/19/05 03:00 PM, -liam- wrote: if (System.capabilities.version != "WIN 8,0,22,0" || System.capabilities.version != "MAC 8,0,22,0") {
//do actions
}

The System.capabilities part could very well be right, but the logic is not. At least one of those conditions will be true, so the statement as a whole will never be false.

BBS Signature

None

TwinsenDudeghgh

Reply To Post Reply & Quote

Posted at: 9/19/05 03:25 PM

TwinsenDudeghgh NEUTRAL LEVEL 01

Sign-Up: 09/18/05

Posts: 36

At 9/19/05 03:18 PM, NegativeONE wrote:
At 9/19/05 03:00 PM, -liam- wrote: if (System.capabilities.version != "WIN 8,0,22,0" || System.capabilities.version != "MAC 8,0,22,0") {
//do actions
}
The System.capabilities part could very well be right, but the logic is not. At least one of those conditions will be true, so the statement as a whole will never be false.

Easier
function flashVersion() {
return $version.toString().split(" ")[1].split(",")[0]
}
if(flashVersion() == 8) {
//do shit
}

Havn't tried it, should work though


None

liaaaam

Reply To Post Reply & Quote

Posted at: 9/19/05 03:38 PM

liaaaam NEUTRAL LEVEL 21

Sign-Up: 12/11/04

Posts: 12,766

At 9/19/05 03:18 PM, NegativeONE wrote: The System.capabilities part could very well be right, but the logic is not.

Ah yeah, my mistake :P I was going to make it so if you have windows and not flash 8, do actions or if you have a mac and not flash 8 then do actions.. but I was rushing it.


All times are Eastern Standard Time (GMT -5) | Current Time: 11:22 AM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!