If you really want a vector, instead of using #shape, try using #vectorShape.

Irv

At 11:43 AM -0400 9/18/02, Mendelsohn, Michael wrote:
>Hi all (again)...
>
>How come the addVertex line below errors?  When debugging, theShape is a
>#shape, and it's in the cast, but addVertex always errors with handler not
>defined.
>
>I always appreciate any responses.
>Thanks,
>Michael M.
>
>-------------------------------------------
>
>theShape = new(#shape)
>pShapeMember = theShape.memberNum
>theQuadList = []
>repeat with i = 1 to 4 -- make a rectangle
>     thePoint = pSp.quad[i] -- quad is only a sprite prop, so get quad &
>offset it to 0
>     theLeftOffset = pSp.rect[1]
>     theTopOffset = pSp.rect[2]
>     theOffsetPoint = thePoint - point(theLeftOffset,theTopOffset)
>     addVertex(theShape,i,theOffsetPoint) -- error...handler not defined
>end repeat
>


-- 

Lingo / Director / Shockwave development for all occasions. 
          
   (Home-made Lingo cooked up fresh every day just for you.)
[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