Hi Marcos

Thanx for your reply. I tried exactly the way u
suggested and wrote this code:
on startMovie
  global x
  x = script("SpriteTrackMouse").new()
  sprite(2).scriptInstanceList.add(x)
--  sendsprite(2,#SpriteTrackMouse, 1)
end

but it doesnt work...don know y..
the problem is that i do not know what should the last
entry in the sendSprite be, i mean what does it
signify? when one drags and drops this behaviour from
the library pallette on a spite it asks for setting 2
parameters (that is center sprite on cursor or set
within stage) ..how do i set the same when i call it
thru lingo????
Regards
Richie


--- Marcos Trinca <[EMAIL PROTECTED]> wrote:
> Just a example from director�s help:
> 
> These statements attach the script Big Noise to
> sprite 5:
> 
> x = script("Big Noise").new()
> sprite(5).scriptInstanceList.add(x)
> Regards,
> Marcos.
> ----- Original Message -----
> From: "Richie Jindal" <[EMAIL PROTECTED]>
> To: "list" <[EMAIL PROTECTED]>
> Sent: Monday, September 10, 2001 2:54 PM
> Subject: <lingo-l> attaching predefined behaviours
> with lingo
> 
> 
> > Hi All
> > Can somebody tell me how I can attach a predefined
> > behaviour (available in
> > the library pallette) such as Sprite Track Mouse
> to a
> > sprite thru lingo at runtime????? I tried by
> reading
> > thru the script of the behaviour but it is just
> too
> > complicated to figure out anything...
> > PLEASE HELP!!!!!!!!!!
> >
> > Thanx
> > Richie
> >
> >


__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

[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