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

#1 2011-11-30 15:43:50

EricAndJeff
New Scratcher
Registered: 2011-11-06
Posts: 5

functional difference in online JAVA player

I apologize if this isn't advanced enough, but I found a difference in the way the JAVA player handles variable types.  This caused one of my project not to work in the JAVA player.

My project has a list that is created with all the list item values set to "false."  Later, particular item values are replaced with "true." 

The JAVA player, and NOT the development player or the FLASH player, replaces the item values with the number 1 instead of the string "true."

So from now on I'll use the numbers 0 and 1 rather than the strings "true" and "false."

Here is a project that uses this difference (a bug really) to detect the JAVA player.  I know there are other ways to detect this.  The point of my post is to point out this functional difference.

http://scratch.mit.edu/projects/EricAndJeff/2186140

My son and I are loving scratch - too much really,
Jeff

Offline

 

#2 2011-11-30 18:05:56

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: functional difference in online JAVA player

Yeah, this problem seems to have stuck to the Java player. Though sadly, the Java player has been discontinued and the Scratch Team is programming the player in Flash now.

http://scratch.mit.edu/forums/viewtopic.php?id=57148 <- Though of course you already know that.  smile

Last edited by Magnie (2011-11-30 18:10:59)

Offline

 

Board footer