[Etoys-notify] #6969 NORM Opportu: Textual Player Refs in Imported Morphs

Zarro Boogs per Child bugtracker at laptop.org
Fri May 9 04:57:17 EDT 2008


#6969: Textual Player Refs in Imported Morphs
-----------------------------+----------------------------------------------
  Reporter:  dmoco           |       Owner:  etoys      
      Type:  defect          |      Status:  new        
  Priority:  normal          |   Milestone:  Opportunity
 Component:  etoys-activity  |     Version:             
Resolution:                  |    Keywords:             
  Verified:  0               |    Blocking:             
 Blockedby:                  |  
-----------------------------+----------------------------------------------

Comment(by dmoco):

 From above: '''"The problem occurs when I load morphs with textual scripts
 created in other images (3.9/3.10/dev-image, etc, ie, not *just* 3.9) into
 the OLPC image."'''

 ...but as requested, I reproduced it for SqueakLand-to-OLPC. Here's a
 step-by-step for reproducing the bug (takes about a minute):

 In SqueakLand >>>

 - drag out new rectangle morph

 - Create tile-based script to swap colours on mouse-up (very simple)

 - Show script textually

 - Replace "self" with name (obtained from text script in any other morph
 referencing this one).

 swapColour
         Rectangle1 getColor = Color blue ~~ false
                 ifTrue: [Rectangle1     setColor: Color red]
                 ifFalse: [Rectangle1 setColor: Color blue]

 - save-as-morph

 In OLPC version (detailed as I experienced it because I already had rects
 from previous attempts) >>>

 - Load-as-morph

 - Clicking swaps colour of existing morph so deleted said morph

 - Now no colour swap but also no debugger/transcript err msg, so...

 - Empty trash and try again

 - Still no colour swap, no debugger/transcript err msg

 - Discover from quick World based script that name is "Rectangle2"

 - Attempt to edit swap-colour script to use "Rectangle2"...
 (btw, all code is underlined in script from SqueakLand morph)

 ...and get "Unknown Variable: Rectangle2" when trying to "accept" the
 script. So at this point that I have to create a new script to replace it.

-- 
Ticket URL: <http://dev.laptop.org/ticket/6969#comment:9>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Etoys-notify mailing list