Warning: 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:
var myTime:Timer = new Timer(1000, 3);
myTime.start;
or
var myDate:Date = new Date();
myDate.getDate;
Good Code:
var myTime:Timer = new Timer(1000, 3);
myTime.start();
or
var myDate:Date = new Date();
myDate.getDate();
As always Happy Flashing
I get this warning on a dispatchEvent
vTileList.dispatchEvent(new Event(dd_tile_list.LIST_REORDERED, vReorder));
The code works but I don’t like having the error there, and in this case adding the parentheses is not an option.
Do I have to live with it?
if (typeof fn == “function”) fn //if defined, execute it
this line cause #3553 warning too. But fn with parentheses() in the expression execute anyway that cause error.
Hi!
I want to improve my SQL knowledge.
I red so many SQL resources and would like to
read more about SQL for my occupation as db2 database manager.
What would you recommend?
Thanks,
Werutz