On Friday, February 20, 2004, at 03:22 PM, roymeo wrote:


More clearly....

(Director 9.0)

I would like to be able to access the SPRITE properties like blend, locH, color, not the script property-properties.

x = #fontSize
put sprite(21).member.getProp(x)

will return my fontsize, just as if I'd typed in

put sprite(21).member.fontsize

that's the way object stuff works. So I could pass a generic function an object and a symbol and it could get and change the property that that symbol represents in the object.

Actually, such direct access of properties is not always the "right" way to work in OOP.


Having a handler on the sprite which returns its properties is.

Irv's online book has a lot of great stuff on such topics and how to accomplish them in Lingo.
--
Troy
RPSystems, Ltd.
http://www.rpsystems.net


[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