Drag the ends of a stretchy curve in Flash

I’ve been working on a simulation of a fire extinguisher in Flash. One necessary feature is the ability for the viewer to aim the end of the hose at different targets. I had seen plenty of mouse-trail following effects, with particles following the mouse’s direction, and some might almost have worked for the hose.

But what I really wanted was the ability to pick up one end of a line, and move it, exactly like moving the ends of a bezier curve in Adobe Illustrator.

It turns out there are several functions that let you do just that. A detailed description of them is HERE

A very rough draft of the fire extinguisher project is: HERE

It isn’t a finished piece by any means, but demonstrates the bezier-curve hose effect nicely.