Hi Theo--

You can move sprites around the stage pretty easily. I'd set up some
dummy sprites--make a single-pixel bitmap, place a bunch of instances on
the stage, then move them off-stage in your prepareMovie handler.

Then, as you want to place a sprite on the stage, you can use this:

sprite(x).member = member("whatever")
sprite(x).locH = 100
sprite(x).locV = 100

Just keep track of the channels you are using in a list. You'll need
some mechanism to keep track of the sprite locations, too (you won't
want them all to appear at 100, 100).

To move them around, you don't need to change frames. Just do something
like this:

sprite(x).locH = sprite(x).locH + someOffset

Does that help?

Cordially,

Kerry Thompson

p.s.: Hope this doesn't come through as html--I just changed e-mail
programs, and I haven't figured out where you set plain text in Outlook
on the Mac.


> Hi!
> How is possible to move castmembers on the stage on the fly. I would 
> like to find the first empty frame available and place several 
> castmembers in different channels all on the fly but at the moment I 
> don't have a clue how to achieve this.
> 
> Does anyone know?
> 
> Teo
> 
> [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!]
> 
> 
> 

[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