radu706
radu706

Reputation: 28

error after including as3 "expecting rightbrace before public"

I have this error after using include in as3:

1084: Syntax error: expecting rightbrace before public. game.as /game line 9

the source code for Main is:

package
{

    import flash.display.Sprite;
    include "setings\resolution.as";


    public class game extends Sprite
    {
        public function game()
        {
        }
    }
}

and the resolution.as is empty. any solution/explication?

Thanks

Upvotes: 1

Views: 76

Answers (1)

Panzercrisis
Panzercrisis

Reputation: 4750

Use /, not \. This cleared the error on my machine.

Upvotes: 1

Related Questions