PDA

View Full Version : Error 1137



Catalist
June 2nd, 2007, 10:09 PM
I continually get this error no matter what I do, I don't know why I get it either.

Error #1137, incorrect number of arguments.

My code is simple


run.as



import classes.display.text.*;

var myTextStyle:textStyle = textStyle("Veranda", "#FF0000", 18);



and

classes.display.text.textStyle.as



package classes.display.text {

public class textStyle {

public function textStyle(f:String, c:String, s:Number):void {

...




With this code alone I get that error, and Adobe gives no help here. (http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/compilerErrors.html)

Does anyone see the reason I get this error?

eudora
June 2nd, 2007, 10:39 PM
try putting new?

Catalist
June 3rd, 2007, 03:03 AM
try putting new?

Why you sly sly devil.

Thanks :p

FizixMan
June 3rd, 2007, 11:41 AM
I am seriously disappointed.


I clicked through to here 'cause I thought it was "Error 1337"












:(