How do I get my GUI to Control ActionScript?

Hey there I have this animation that makes patterns you can change the patterns shape and so on with the action script but I want the users to be able to change it at run time.

What I need is for a scroll bar or maybe text field to be able to change the action script.

This is the line that needs to be editable e.g the number must change.

this[newnode]._rotation=137.5;

I am at a complete loss, how do I go about doing this?

Any help is much appreciated

Many Thanks.