This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-01-26 20:10:16

zippynk
Scratcher
Registered: 2011-07-23
Posts: 500+

Easily Detecting Java/Flash

I haven't tested this, but I think there's a simple alternative to the complicated scripts to detect the java player.

Make a list called 'detect' and put nothing in it. Then, make a variable called 'java?' and another one called 'test'.

Next, make the following script:

Code:

-When flag clicked-
[Set (java?) to (true')]
[Set (test) to (item ('1') of (detect))]
[Set (java?) to ('false')]

https://dl.dropbox.com/u/60598636/trifocal_interlude_soundcloud_button.png

Offline

 

#2 2012-01-26 21:32:41

catfan8
Scratcher
Registered: 2008-07-23
Posts: 500+

Re: Easily Detecting Java/Flash

Interesting, I want to see if this works.


http://mag.racked.eu/cimage/i9002/Sword-In-Back+get%21/HEROBRINE+Y+U+NO+EXIST/mca.png

Offline

 

#3 2012-01-26 22:32:04

catfan8
Scratcher
Registered: 2008-07-23
Posts: 500+

Re: Easily Detecting Java/Flash

It doesn't seem to work  sad


http://mag.racked.eu/cimage/i9002/Sword-In-Back+get%21/HEROBRINE+Y+U+NO+EXIST/mca.png

Offline

 

#4 2012-01-26 23:08:20

zippynk
Scratcher
Registered: 2011-07-23
Posts: 500+

Re: Easily Detecting Java/Flash

catfan8 wrote:

It doesn't seem to work  sad

Hmm... What doesn't work about it?


https://dl.dropbox.com/u/60598636/trifocal_interlude_soundcloud_button.png

Offline

 

#5 2012-01-26 23:12:12

catfan8
Scratcher
Registered: 2008-07-23
Posts: 500+

Re: Easily Detecting Java/Flash

zippynk wrote:

catfan8 wrote:

It doesn't seem to work  sad

Hmm... What doesn't work about it?

Its not detecting any difference between the two.


http://mag.racked.eu/cimage/i9002/Sword-In-Back+get%21/HEROBRINE+Y+U+NO+EXIST/mca.png

Offline

 

#6 2012-01-27 16:40:03

treebark1313
Scratcher
Registered: 2011-05-23
Posts: 90

Re: Easily Detecting Java/Flash

I'm not sure that that would work, because there isn't any difference in the actual response to the programming besides less lag... but in online/offline, the divide by zero one works because scratch program works a tiny bit differently than the website does.


When life gives you 100 reasons to frown,
show life you have 1000 reasons to smile. - Unknown

Offline

 

#7 2012-01-27 17:55:34

CheeseMunchy
Scratcher
Registered: 2008-10-13
Posts: 1000+

Re: Easily Detecting Java/Flash

Um, there's nothing about this script that should work....?  hmm


6418,

Offline

 

#8 2012-01-27 18:46:02

zippynk
Scratcher
Registered: 2011-07-23
Posts: 500+

Re: Easily Detecting Java/Flash

CheeseMunchy wrote:

Um, there's nothing about this script that should work....?  hmm

The java player stops the script when it tries to delete items from a list that doesn't exist, or I guess maybe not.

Oh... This scripy doesn't delete. Oops!

Last edited by zippynk (2012-01-27 18:47:18)


https://dl.dropbox.com/u/60598636/trifocal_interlude_soundcloud_button.png

Offline

 

#9 2012-01-28 04:58:09

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Easily Detecting Java/Flash

I'll give a better one.

when gf clicked
set [variable v] to [Java]
obsolete!
set [variable v] to [Scratch]
wait <[sqrt v] of (-1)> secs
set [variable v] to [Flash]

Last edited by rdococ (2012-01-30 08:00:39)

Offline

 

#10 2012-01-28 09:55:48

catfan8
Scratcher
Registered: 2008-07-23
Posts: 500+

Re: Easily Detecting Java/Flash

Dang 0/0 doesn't work anymore


http://mag.racked.eu/cimage/i9002/Sword-In-Back+get%21/HEROBRINE+Y+U+NO+EXIST/mca.png

Offline

 

#11 2012-01-30 08:00:08

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Offline

 

Board footer