Hi all,

I'm having trouble with a little script, what I need to do is, say I
have ten items in my game and each item has three properties, properties
are name, age and colour.
I am creating each object using the following:

set objOne = new(script "buildObject","PeterPan",10,"WHITE")

I have a script castmember "buildObject", and it looks like this


on new me, n, a,c
  set myname = n
  set myage = a
set mycolor = c
  return me
  
end

what I need to know is how to get the value of objone properties,
currently I have tried objone.myname and it's not working

Any ideas would be much appreciatd..??


-JOHN-

[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