2-D or 3-D and what program are you using to create this laser?
In blender there is a section for using python scripting for animations, i would probably create a small section of the laser and use the scripting to "extend" it out by creating duplicates of each drawn section and connecting them end to end. Alot of it would depend on you drawing of it to be able to connect each section without looking like tiling. You could probably also use a scale type function, i dont know if there is one, but as an idea try scaling it in the direction that you want it to be extended, but then you face image quality issues. I think the best way would be to create several sections, a beginning, middle and end and jsut peice them together in either python scripting or in the actual coding of your draw method.