A few things:
"String barn".length //10
trace(2 + "2") // 22
trace(2 + parseFloat("2")) // 4
public var hens:String = "Happy!";
public var dogg:Number = hens; //compiler error.
public var result:Int = 0
public var multiple:Int = 4
public var other:Int = 6
switch (result) {
case (miltiple*other):
trace("Open Door");
break;
case(other-multiple):
trace("Close Door");
break;
case(floor(other/multiple)):
trace("Rip Door Off Hinges");
break;
}
No comments:
Post a Comment