- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
public function showNotAvailableAlert(str:String):void
{
var defString:String = str = "Connection with server is lost. Unfortunately you can not continue now. Please try later.";
if(str)
{
Alert.show(str, "Not connected to server");
}
else
{
Alert.show(defString, "Not connected to server");
}
}
не сказал бы, что это малая народность 🙂
Alert.show("Connection with server is lost. Unfortunately you can not continue now. Please try later.", "Not connected to server");
}
Alert.show( (str ? str : "Connection with server is lost. Unfortunately you can not continue now. Please try later."), "Not connected to server");
}
так-то лучше
так то лучше:)
Alert.show( (str || "Connection with server is lost. Unfortunately you can not continue now. Please try later."), "Not connected to server");
}