OK...
I know that Director is really quirky when it comes to vectors, but this
one has got me stumped. I have a frame script that positions and moves
vector lines on the screen. Basically, there are four handlers:
on beginSprite me
displayVectors()
end
on enterFrame me
if data has changed then
displayVectors()
end if
end
on exitFrame me
go to the frame
end
on displayVectors
sprite(line).member.centerRegPoint = false
sprite(line).loc = point(50,40)
sprite(line).member.vertexList = [[#vertex: point(0,0)], [#vertex:
point(50,100)]]
end
Now, this is shortened for simplicity's sake, but you get the point.
When the displayVectors function is called from beginSprite, the lines
NEVER get updated on stage. If I put out the loc and vertexList, it is
all correct, but the stage doesn't show it that way. If displayVectors
is called from enterFrame everything works fine.
I've tried setting the vertexlist, and then the centerRegPoint, deleting
the vertexList then setting it, setting the originPoint, everything I
could think of, in every order. It never updates the sprites in
beginSprite.
Any clues?
Brian Romanko
Lead Developer - Neo/SCI Corporation
Member - Greater Rochester Macromedia User Group
[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!]