At 9:07 PM -0400 04/27/01, Lingo-L Digest wrote: >If not importing, and you have the sprite already on stage with the >placeholder, use 'set the member of sprite' to set it to whatever new >castmember you want. If images are different sizes, you'll also need 'set >the rect of sprite' to change its dimensions. That is not entirely true. If you leave your sprites at their unstretched "natural" size, you can swap in other assets without having to explicitly set their rects. That said, if assets are different sizes, you might want to write some Lingo to make sure that the items align properly. By default, the replacement graphic's reg point will be located at the point defined by the loc of sprite. You can write Lingo to, say, maintain the upper left corner's position even when the art is swapped out. Bruce --------- Looking for an ActionScript book as good as Lingo and Director in a Nutshell? Check out "ActionScript: The Definitive Guide" from O'Reilly, written by Colin Moock, edited by Bruce Epstein. Shipping May 1st http://www.amazon.com/exec/obidos/ASIN/1565928520/zeusproductions -------- [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/LUJ/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!]
