Hi Ryan,

> sprite(100).p_number = new_number
>
> My question is, how can I manipulate a property variable of the frame
> script??? Is this possible?

It's possible. a frame's sprite number is 0

sprite(0).p_number = new_number


I must warn you though, changing an object's properties directly is
considered "bad form" by some of us OOP freaks, and a behavior is a type of
object. The OOP approach would be to setup an accessor method in the
behaviour, such as:

on setNewNumber me, new_number
   sprite(me.spriteNum).p_number = new_number
end

and then use
sendSprite(0, #setNewNumber, new_number)


Ok, so maybe it seems like too much to do all that just to change a silly
property, but there are good reasons for it, honest!  :-)
(for one, it makes debugging easier, in the long run)
(but you don't have to if you don't wanna)


Regards,
Karina Steffens,
Lead Programmer

Martello Media Ltd.
4 Islington Avenue
Sandycove
Co. Dublin

Tel: +353 1 2844668
Fax: +353 1 2803195
http://www.martellomm.ie






[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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