Slava & others I've often come across a similar problem. Let's say you make a slideshow application that loads images from disk. If I use one sprite and change the fileName prop, the sprite will adjust its size to the new member as expected.
But if I resize the sprite (using width or rect or whatever) and load new members into it, every image will be resized to the set sprite dimensions. Compensating for this creates all kinds of flickering and inconssistent behavior for the end user. (See example* further down.) Q: How do I reset the sprite so that it automatically adjusts to the size of its contents? (_Before_ displaying the contents, that is...) ---- *Example: - sprite 1 holds a bitmap member - user resizes sprite 1 to 200% - a QT movie is loaded into sprite 1 - QT will get same size as the bitmap was - If I resize the sprite to match QT movie's original size, the user will see 200% size for a moment before the sprite has adjusted = flicker - Only way to avoid flickering is to use 2 sprites, one offstage for loading & resizing, while the other is still visible on stage. Problem: If I use this 2-sprite method on a QT, and the user starts playing and then chooses to resize, then the playing will stop when (s)he resizes the movie - because it's another sprite... - Phew. ---- -A. >I have external casts with bitmap members, all linked to tif files. >I've edited a bunch of tif files to change their dimensions. When I >play the movie, the images are displayed in their new dimensions, >and the property inspector shows correctly the new dimensions of all >images. But this: > >put member(i, "Images"). rect > >continues to show the old dimensions for all edited images. The only >explanation I can think of is that the older dimensions were stored >in the cst file and have not been refreshed after the images were >resized. > >Doing this: > >member(i, "Images"). filename = "D:\Images\FileName.tif" > >does cause the sizing info to be refreshed correctly for the >image--but looping with Lingo through all images in all casts is a >nuisance, and seems like a crude force way of doing it. I can't help >thinking there should be a smarter way to tell the cast to refresh >its info. Save and Compact the cast doesn't do it. > >Is there a smarter way? [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!]