Hi,
i'm experimenting with the amplitudePro xtra (which is great by the way) and
i am having trouble getting rid of my objects without explicity naming them.
i have tried

global  gAmpXtra -- current instance of the object

 if sound(1).status = 0 then
      put sound(1).status
      ClearAmpObject(gAmpXtra) -- pass the object to the ClearAmpObject
handler
    end if

and

on  ClearAmpObject(theampobject)
  if objectP(theampobject) then
    theampobject= 0
    theampobject= VOID
  end if

end

i was hoping that this would substitute theampobject with a reference to the
gAmpXtra instance and then clear it but it creates theampobject as another
instance of the Parent Xtra object and then clears that instance but leaves
me with my original object instance.
Is it possible to pass my clean up handler a reference to the object i want
to destroy so i can call it for differently named objects, I know i can
substitute theampobject with gAmpXtra in my ClearAmpObject handler but i
want to have multiple objects with different names and only one cleanup
handler.
cheers
Lee Blinco
Multimedia Developer
AVR Productions
+44 (0)1462 819603


[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