Changing publish settings in flash by writing code

Actually i wanted to change action script type but without using publish settings box.Can it is possible to change it through some code?Is it possible?And how it can be done?