09.12.07

Flex / Flash CS3 Error #3553

Posted in Error, Flash, Flex, errors at 5:08 am by Curtis J. Morley

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

1 Comment »

  1. werutzb said,

    October 7, 2008 at 7:39 pm

    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

Leave a Comment