Question
global function
Hi,
is it possible to create a global function like in AS2? I tried a bit to
create a class that does it but wasn't succesfully. Well I am new to
class programming...
class rand {
public var random
public function random (to:int):int{
return Math.ceil(Math.random() * to);
}
}
is it possible to create a global function like in AS2? I tried a bit to
create a class that does it but wasn't succesfully. Well I am new to
class programming...
class rand {
public var random
public function random (to:int):int{
return Math.ceil(Math.random() * to);
}
}