PDA

View Full Version : What is wrong with this very tniy code snippet?


peter5
12-07-2005, 04:30 AM
Hi, I am trying to make some functions, so far I have learnt that the order of the layers is important, but what am I doing wrong here:

I opened a new Flash document, and this is all I put into it. It should give me a "hello" in the output box shouldn't it?

nextQuestion = new function(){
trace ("hello");
};

nextQuestion();

peter5
12-07-2005, 04:37 AM
I figured it out....it was a spelling mistake...

there is no 'new' in function ;)