3d wireframe room

Hello,
What i am trying to do is a firstperson view of a wireframe room through action script
Even though i find it relativley complex after various attempts i have done something(wrong)…
I need some help to tweak the code so it works fine :S.