At 10:48 -0500 02/21/2002, Matthew DeSimone wrote:
>(my stack is declared on startmovie to be a linear list of 25 positions)
>
>global myStack
>
>on getStackPointer
> counter = 1
> repeat with counter = 1 to myStack.count
> if myStack[counter] = 0 then
> myStack[counter] = new(script "myScript")
> return counter
> end if
> end repeat
>end getStackPointer
>
>Everything seems straightforward here, and the script compiles without
>syntax errors. However, when I run the movie and call the handler
>myStack[counter] is always returned as VOID.
Are you sure that your script is being properly instanced?
Also if you are wanting to do something with the counter var, you
need to add ()s after you call the stack pointer script. That is,
this:
somePointer = getStackPointer
likely won't work, whereas this:
somePointer = getStackPointer()
probably will.
Why not set a breakpoint and see what's actually happening in the debugger?
--
Warren Ockrassa | http://www.nightwares.com/
Director help | Free files | Sample chapters | Freelance | Consulting
Author | Director 8.5 Shockwave Studio: A Beginner's Guide
Published by Osborne/McGraw-Hill
http://www.osborne.com/indexes/beginners_guides.shtml
[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!]