At 9:29 AM +0100 10/27/00, Zacc wrote:
>Hi Lingo Fellows!
>I'm trying to implement the following script into Director.
>
>I keep getting one script error. The area of the error is 'on initBox' and
>the 'gCorners' text is sends a script error!
>Can anyone help!!!
>Zacc
>
>- ---------First of all, we can put the following script into movie script
>of
>the projector.
>
>
>  global gCorners, gCenter, gRectList, gRotate, gPlane
>
>on startMovie
>   -- initialize lists for a cube
>   initBox
>end
>
>on frameScript
>   -- add to rotation based on mouse location
>   gRotate = gRotate - (float(the mouseH-320)/30)*pi()/100
>
>   -- calc plane tilt based on mouse location
>   gPlane = - (float(the mouseV-240)/30)*pi()/20
>   drawSides
>end
>
>on initBox
>   -- list of corners with x, y and z coordinates
>   gCorners =
>[[-60,-60,-60],[60,-60,-60],[60,60,-60],[-60,60,-60],[-60,-60,60],[60,-60,60
>
>

If you want to continue a line of code onto another line (like the 
line above), you need to end your line with a continuation character. 
In Director 7, the continuation character was an Option/Alt Return. 
In Director 8, it is a slash character.  So, in D8, your line should 
look like this:

   gCorners = \
         [[-60,-60,-60],[60,-60,-60],[60,60,-60],[-60,60,-60],[-60,-60,60], \
         [60,-60,60],[60,60,60],[-60,60,60]]

Irv
-- 
Lingo / Director / Shockwave development for all occasions.

        (Over two millions lines of Lingo code served!)

[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