View Full Version : simple: line to, help!
superramesh
10-21-2002, 09:58 PM
hey everyone,
im writing code that looks like as follows:
lineStyle (50, F8FBFC, 100);
moveTo(prevxpos, prevypos);
lineTo (xpos, ypos);
I am able to access prevxpos, xpos, prevypos, and ypos but no line appears. does anyone have any idea why? this is most frustrating!
thanks, please let me know
Ramesh
pinkaboo
10-22-2002, 08:24 AM
hmm, well not the problem, but your colour should be set using 0xF8FBFC not just F8FBFC. That 0x is all important else you'll just get a default black line.
However, I am unclear as to why you aren't getting a line if as you say those variables are being picked up because I just ran a few tests and couldn't get it to not work. Double, triple check!
You might want to strip down your file, zip it, and attach it here for someone to take a look at. Though, if you just create a new movie and cut and paste your code into it (not forgetting to declare those variables) you should get a result so it must be something else going on in your fla.
Of course, I am presuming that you are using Flash MX? The API advanced drawing methods are only available in MX you see.
-pinK
superramesh
10-22-2002, 05:21 PM
hi there,
Yup I checked all that and still cant get anything to work.
the function I made looks like:
function drawLineWeb(idx)
{
//can't get this fctn to work...
if(idx==1) //speed
{
xtransform = prevxpos - xpos;
ytransform = prevypos - ypos;
lineStyle (50, 0xFF00FF, 100);
trace("line web locally, prevxpos:"+prevxpos+"prevypos"+prevypos+"xposcurr"+xpos+"yposcurr"+ypos);
moveTo (xtransform, ytransform);
lineTo (xpos, ypos);
}
any thoughts?
thanks so much,
Ramesh
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.