Hi there,
I have a question about the canvas object in flex 2.
I've created a canvas, and I'm placing gifs on it with the addChildren method. The user can drag the gifs around the canvas area, and if she moves them off the right edge or the bottom edge, scrollbars appear.
I want there to be lines connecting these gifs, so I'm currently drawing them using something like:
ActionScript Code:
graphics.clear();
canvas1.graphics.lineStyle(1,0x000fff,0.3);
for each(var l:line in lines){
canvas1.graphics.moveTo(l.x1, l.y1);
canvas1.graphics.lineTo(l.x2, l.y2);
}
Now here's my problem:
Every time I move a gif off of the canvas (i.e. the scrollbars appear) the lines stay static on the screen. They don't respond to the movement of the view of the canvas at all.
Any ideas?