>>  Q: How do I reset the sprite so that it automatically adjusts to the
>>  size of its contents? (_Before_ displaying the contents, that is...)
>
>Hi Andreas,
>
>You can use the obsolete sprite property "stretch"...
>
>   sprite(x).stretch = FALSE

Hm, this might be worth a test.


>... or two lines of standard Lingo:
>
>   sprite(x).width = sprite(x).member.width
>   sprite(x).height = sprite(x).member.height

This won't work however. Either I adjust sprite size first, and then 
load the member into it, which will cause the previous image to "jump 
sizewise" or I load the new member and then set the size wich will 
make the new image jump...

Actually this seems to be a logistic problem that is pretty difficult 
to solve unless there's a way to make D wait with redrawing the stage 
until (the image member is loaded) AND (the sprite is stretched/ 
reset).

BTW: delayed screen redraw cannnot be obtained in the "usual" pause/ 
updateStage manner, because the sprite will be automatically redrawn 
both when it gets its size set and when a new member is loaded into 
it...


-A.
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to