To add to what Jeremy was saying:
Pick an event handler and count the number of items you have in your list. Create a
repeat loop with a range of 1 to x, where x is the number of items in your list. Then
puppet your sprites and set their properties. The code would look something like this.
on myhandler
x = count(mylist) -- number of items in your list
repeat with i = 1 to x -- make the numbers match the range
-- of sprite channels you want to use.
puppetsprite i, 1 -- puppet the sprite channel
sprite(i).member = member("myimage") -- you image
sprite(i).loc = point(x,y) -- the location you want
end repeat
end
Don't forget to unpuppet your sprites when you don't want them to apear
--jR
-------------------------------------------------------
In a message dated 3/4/2003 8:43:04 AM Eastern Standard Time, "Jeremy" <[EMAIL
PROTECTED]> writes:
>This might help
>
>-- Find a free sprite channel to puppet
>-- Choose a range of numbers you arent using for other sprites
>-- and a range large enough to accommodate however many of them you are
>anticipating
>repeat with i = 100 to 200
> � �if sprite(i).puppet = FALSE then exit repeat
>end repeat �
>sp = sprite(i)
>-- puppet it
>sp.puppet = true
>-- set the member.
>sp.member = member("folder")
>sp.loc = point(x,y)
>sp.ink = whatever inkmode you need
>sp.blend = whatever other properties you need
>
>
>J
>
>
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] On Behalf Of John Hart
>Sent: Monday, March 03, 2003 3:20 PM
>To: [EMAIL PROTECTED]
>Subject: <lingo-l> create multiple sprite instances during runtime
>
>
>Hi all:
> �System is Win98SE, D8.5
>
>I'd like to use Lingo to create multiple sprite intances of an image
>member, during projector runtime. �The image is the typical PC folder
>icon and is positioned as sprite(4)in the score, frame 7. �The number of
>folder icons to be shown is based on a linear list of filenames I've
>already retrieved. �But...short of manually placing multiple instances
>of the member image ("folderIcon" ) offstage and relocating the points
>at runtime, I can't figure this one out. �The objective is to create a
>vertical stack of folder icons with the corresponding folder name after
>it, just like Explorer.
>
> �Any help is most appreciated.
>
>Thanks,
>John
>John Hart
>Send email, get paid!
>Sign up with my id, please:
>http://www.zwallet.com/join.html?user=johnhart
>
>
>______________________________________________________
>Get Paid... With Your Free Email at
>http://www.zwallet.com/index.html?user=johnhart
>[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!]
>
[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!]