Actionscript passing objects to function as parameter

function showPlaneStatus(obj:Object):void {
trace(obj.pitch);
trace(obj.roll);
trace(obj.yaw);
};
showPlaneStatus(plane);
//0
//5
//5

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.