flex as action script