View Full Version : What Does it means?
Antonio Junior
09-24-2004, 07:27 PM
what does it means?
function loadPic(pic:String):Void {
i mean, i :Void is used for and what pic:String means?
thanks
Curly Brace
09-24-2004, 08:16 PM
This is variable and function data types. They're new in FXM2004. The pic:String expression means that the variable passed to your func should be of string type (e.g. "hello word!" is a proper string). The loadPic():Void means your function returns data of Void type (basically Void means "nothing"). There are few data types in flash. You can see the code hint showing all of types when you type ':'. The most common types are String, Number, Array and Object.
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.