Ask a Question related to Macromedia Director Lingo, Design and Development.
-
billbones webforumsuser@macromedia.com #1
drawing a vector line
can someone suggest the best way to draw a line between a point and the mouseloc (mouse moving).
Using vectors in flash is perfect but I want to do something similar in Director but am struggling with the vectorlist stuff since the points are not stage relative.
Can someone point me in the right direction . Perhaps their is a technique using the quad (I have tried this but don't like the way the lines are drawing themselves: I'd like a really clean vector line if possible).
Any help or pointers to a tutorial would be much appreciated.
Bill.
billbones webforumsuser@macromedia.com Guest
-
Using cylinders for line drawing
I have been trying to use cylinders for line drawing, unfortunately I have not been able to get the results I want. I am sure the problem is... -
drawing line with actionscript
Can someone tell me please how I can draw a line with actionscript that grows longer but not wider. For example from coordinate 0,0 to 200,400. -
3d line drawing
What would be the best way to draw a free 3d spline inside the 3d world using a keyboard input (or any other input that allows accurate 3d... -
How is this done?? Line drawing.
Hi, I have recently started dabbling with Flash and I came across this site: www.caststoneuk.co.uk I really like the effect of the lines being... -
drawing a straight line!!! IS THIS ACTUALLY POSSIBLE??
don't use the shift key, and drag the line out by hand, check that the top and bottom rect points are only 1 pixel apart and you will have a... -
ExploreLearning webforumsuser@macromedia.com #2
Re: drawing a vector line
"Can someone point me in the right direction . Perhaps their is a technique using the quad (I have tried this but don't like the way the lines are drawing themselves: I'd like a really clean vector line if possible)."
One nice trick is to create a vector shape that has one anchor point at the top left corner of the stage, and the other anchor at the bottom right. You then set the regPoint of the vector to 0,0 and move it to the corner, and then just draw a vector between your starting point and ending point that have direct mappings to the stage. Below is a behavior that you can attach to a vector sprite.
property spriteNum, pFromLoc, pMem, pW, pH
on beginSprite me
pW = the stageRight - the stageLeft
pH = the stageBottom - the stageTop
pMem = sprite(spriteNum).member
pMem.vertexList = [[#vertex: point(0,0)], [#newCurve], [#vertex: point(pW,pH)]]
pMem.regPoint = point(0,0)
sprite(spriteNum).loc = point(0,0)
pFromLoc = point(80,80)
end
on exitFrame me
newLoc = the mouseLoc
-- just to keep it on the stage area run a few quick ifs
if newLoc[1] < 0 then newLoc[1] = 0
if newLoc[1] > pW then newLoc[1] = pW
if newLoc[2] < 0 then newLoc[2] = 0
if newLoc[2] > pH then newLoc[2] = pH
pMem.vertexList = [[#vertex: point(0,0)], [#newCurve], [#vertex: point(200,200)],[#newCurve],[#vertex: pFromLoc], [#vertex:newLoc]]
end
Hope that gets you pointed (so to speak) in the right direction.
Rp
-- [url]http://www.ExploreLearning.com[/url] (work)
-- [url]http://www.Outskirts.com[/url] (pointless blog)
ExploreLearning webforumsuser@macromedia.com Guest



Reply With Quote

