Scripting 3D in Flash tutorial

I found this tutorial:

http://www.kirupa.com/developer/actionscript/shape_camera.htm

And I wanna know how to migrate that code to AS3, example:

attachMovie do not exist anymore.

I wanna create the stars example with AS3, but I don’t know how.

[SIZE=2][FONT=Courier New, Courier, mono][COLOR=#000080]Link to examples:

http://www.kirupa.com/developer/actionscript/3dindex.htm

How to set camera View, focalLenght with target.

[/COLOR][/FONT][/SIZE]