The Line Rider and Free Rider 2 source files were never released, so there is nowhere to obtain them. That is the short answer.
The better answer is to build your own version, and the parts you need are all free:
Adobe Flex 3 — the free compiler and SDK.
A physics library — look up Box2D AS3 or APE, both of which handle the sledding and ragdoll behaviour these games rely on.
Some ActionScript knowledge — an ECMAScript-style language, so JavaScript experience transfers.
Patience — this is the part people underestimate.
You can also use Flash CS3 or CS4 if you own them, but the free toolchain above does the same job.