Many thanks to Scott and Bert, we now have a "Kid Friendly" "bullet-proof' (except for bugs I introduced) tool to export images.

Stephen

On Mon, Apr 4, 2011 at 3:24 PM, Bert Freudenberg <bert@freudenbergs.de> wrote:

On 04.04.2011, at 20:12, Scott Wallace wrote:

> On Apr 4, 2011, at 10:36 AM, Steve Thomas wrote:
>>
>> Now how go I set my myPlayer variable to the BookMorph in its "owner chain" (if that's the common terminology)?
>
>       myPlayer := (myPlayer costume ownerThatIsA: BookMorph) topRendererOrSelf player.

... and with a bit of bullet-proofing:

script5
       (myPlayer costume renderedMorph isKindOf: BookMorph)
               ifFalse: [(myPlayer costume ownerThatIsA: BookMorph)
                       ifNotNilDo: [:book | myPlayer := book topRendererOrSelf assuredPlayer]]

- Bert -


_______________________________________________
squeakland mailing list
squeakland@squeakland.org
http://lists.squeakland.org/mailman/listinfo/squeakland