Re: lingo-l overwriting lingo commands

2004-05-19 Thread Valentin Schmidt
Thanks for all your replies. For the alert-example I could use the
alertHook for the effect I want, but I was just wondering if there was
any method that would work in general. I guess there is none for
moviescripts, but I have to use parent-scripts.

Colin:
I couldn't get your solution to work, pass didn't work with alert
(nor with put) (dir mx, win xp pro).

Valentin

Troy Rollins wrote:
 On May 18, 2004, at 8:18 PM, Valentin Schmidt wrote:

 on alert any
 alert(string(any))
 end

 Don't you actually want alerthook?

[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!]


Re: lingo-l overwriting lingo commands

2004-05-18 Thread Colin Holgate
what I want to do is something like:
on alert any
alert(string(any))
end
which of course doesn't work, because it creates an recursive circle ad
infinitum.
An easy solution is:
on alert thestring,reallymeanit
  if voidp(reallymeanit) then
 alert here's what you were trying to say:  thestring,true
  else
 pass
  end if
end

[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!]


Re: lingo-l overwriting lingo commands

2004-05-18 Thread grimmwerks
Shouldn't you look into the alerthook?

[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!]


Re: lingo-l overwriting lingo commands

2004-05-18 Thread Buzz Kettles
change it slightly (see modification below
At 2:18 AM +0200 5/19/04, you wrote:
hi list,
does anyone know if/how I can overwrite an existing lingo command with a
custom function in a moviescript, but then use the original command
inside my custom function (with dir version before MX2004)?
what I want to do is something like:
on myAlert any
-- do something else
alert(string(any))
end
which of course doesn't work, because it creates an recursive circle ad
infinitum.
yes
any ideas?
valentin
[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!]
[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!]


Re: lingo-l overwriting lingo commands

2004-05-18 Thread Troy Rollins
On May 18, 2004, at 8:18 PM, Valentin Schmidt wrote:
on alert any
alert(string(any))
end
Don't you actually want alerthook?
--
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!]


Re: lingo-l overwriting lingo commands

2004-05-18 Thread Daniel Nelson
Hello Valentin,
I ran into something similar to this when defining my own ilk 
functions.  The solution I used was to declare a movie level g_ilk() 
function and to call this within objects that had an ilk() function.

Of course, this only helps with parent and behavior scripts, not movie 
scripts (pre MX2004).  But then again, it seems good policy to avoid 
movie scripts whenever practical.

Regards,
Daniel
On May 18, 2004, at 7:18 PM, Valentin Schmidt wrote:
hi list,
does anyone know if/how I can overwrite an existing lingo command with 
a
custom function in a moviescript, but then use the original command
inside my custom function (with dir version before MX2004)?

what I want to do is something like:
on alert any
alert(string(any))
end
which of course doesn't work, because it creates an recursive circle ad
infinitum.
any ideas?
valentin
[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!]