Why don't you just create the image object as needed & use it right then?

(pass a membername instead ...)

on updateGlobe memName
     biome = member(memName).image
     gGlobeCopy.copypixel(biome, gGlobeCopy.rect, biome.rect)
end

OR
if there's a significant savings in creating the images beforehand, 
then you could put them in a list & send imageList[theNumber]

hth

-Buzz


At 1:45 PM -0400 7/25/02, you wrote:
>Hi!,
>This is my second try to post the message on the list... Hope this time, it
>works....
>
>Can anyone help me to clearify this confusing concept with objects in Lingo?
>What I am trying to do is adding each colored biome onto a black-white
>globe map according to the user's input. So I create 9 objects called biome1
>~ biome9 from images(ex: biome1 = member("arctic").image) Then I created a
>behavior called updateGlobe(whichbiome). whichbiome's value is integer(1 -
>9). Now here is the question, how can I refer to the image object I created
>earlier from this integer?
>I tried: (of course, this doesn't work.... :(  )
>
>on updateGlobe whichbiome
>     biome= "biome" & whichbiome
>     gGlobeCopy.copypixel(biome, gGlobeCopy.rect, biome.rect)
>end
>
>This concept confuses me a lot since Lingo commands are more and more object
>oriented. I encountered the same problem while I programmed using 3D
>lingo....
>
>Thanks for any help!!!
>
>Kiki =)
>
>[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