Search code examples
flashactionscript-3away3dflartoolkitargument-error

Flash Error #1063 Argument count mismatch


I'm getting the following strange error:

ArgumentError: Error #1063: Argument count mismatch on Away3DLiteSprite(). Expected 4, got 0.


Solution

  • It sounds like you're calling Away3DLiteSprite() without providing any parameters. Locate where in your code that function is being called and make sure you pass in the flarManager, viewportWidth, viewportHeight and stage parameters.