3553: Function value used where type void was expected. Possibly the parentheses () are missing after this function reference.

Description:
This is one of the best descriptions that I have seen for a Flash Error. This Flex/Flash Error is actually just a Flex/ Flash Warning. This error/warning means exactly what it says. You just forgot the parentheses () when you tried to make a method call.

Fix:
Add the Parenthesis

Bad Code:
[as]
var myTime:Timer = new Timer(1000, 3);
myTime.start;
[/as]
or
[as]
var myDate:Date = new Date();
myDate.getDate;
[/as]
Good Code:
[as]
var myTime:Timer = new Timer(1000, 3);
myTime.start();
[/as]
or
[as]
var myDate:Date = new Date();
myDate.getDate();
[/as]

Advertisements

One thought on “3553: Function value used where type void was expected. Possibly the parentheses () are missing after this function reference.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s