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

#1 2011-07-18 20:29:23

IMBEEGUY
Scratcher
Registered: 2008-11-22
Posts: 7

Sensing Flash/Java/Downloaded

Hello! I have attempted making a Online/Downloaded detector in one of my projects using an Obsolete block, with a lot of other topics saying this works. When viewing in Scratch, it shows being Downloaded, and when in JAVA player, it shows being online. That is because Scratch can "skip over" Obsolete blocks, while JAVA can't. BUT, the new online Flash Player can ALSO "skip over" Obsolete blocks, complicating everything. So, I ALREADY know how to detect if in JAVA and in Scratch, how do you detect Flash????
----------------------------------------------------------------------------------------------------------------------------
This is what I used for JAVA/Scratch detection:
[blocks]
<when green flag clicked>
<set{ Player }to( Online
Obsolete!
<set{ Player }to( Downloaded
[/blocks]

Last edited by IMBEEGUY (2011-07-18 20:34:47)

Offline

 

#2 2011-07-18 20:31:11

silentslayer7
Scratcher
Registered: 2011-06-05
Posts: 100+

Re: Sensing Flash/Java/Downloaded

IMBEEGUY wrote:

Hello! I have attempted making a Online/Downloaded detector in one of my projects using an Obsolete block, with a lot of other topics saying this works. When viewing in Scratch, it shows being Downloaded, and when in JAVA player, it shows being online. That is because Scratch can "skip over" Obsolete blocks, while JAVA can't. BUT, the new online Flash Player can ALSO "skip over" Obsolete blocks, complicating everything. So, I ALREADY know how to detect if in JAVA and in Scratch, how do you detect Flash????

I would help but I can't use the flash player


http://i51.tinypic.com/dzcwpe.gif Silentslayer7: Curator from Oct. 24 to Nov. 7

Offline

 

#3 2011-07-18 20:44:08

gettysburg11
Scratcher
Registered: 2008-06-14
Posts: 1000+

Re: Sensing Flash/Java/Downloaded

I know BoltBait had a detector that worked in his Forum Tower Defense game, but it's a real doozy of a script. Here's the project if you want to look at it. The script is under the "TitlePage" sprite.


http://i256.photobucket.com/albums/hh184/mnacmilan/LOGO_ACMILAN-Splash.gif

Offline

 

Board footer