package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var color:String = getColor(); trace(color); // Displays: Red } function getColor():String { var color:String = "Red"; return color; color = "Blue"; return color; } } }