hexonaut / haxe-phaser

Haxe externs for Phaser.
MIT License
51 stars 9 forks source link

Cannot access field volume for writing on Sound. #17

Closed plicatibu closed 10 years ago

plicatibu commented 10 years ago

The official example example of Phaser named audio: works perfectly and without any warning / error.

But it's version converted to Haxe generates the error message

Cannot access field or identifier volume for writing

Original Phaser code:

if (pointer.y < 300)
{
        music.volume += 0.1;
}
else
{
        music.volume -= 0.1;
}

Haxe code:

if (pointer.y < 300)
{
    music.volume += 0.1;
}
else
{
    music.volume -= 0.1;
}