newSwitch with spritesheet help

HI,

could some kind soul please show me how to use the newSwitch with a 2 frame spritesheet please?

I can get the button working fine with checkbox etc but just dont seem to able to load in an imagesheet?

Below is the code I am using. thank you

[lua]

local soundCheckBox = widget.newSwitch
{
    left = display.contentWidth /2 +60,
    top = 335,
    width = 80,
    height = 80,

    style = “checkbox”,
    sheet = …what goes here ???
    frameOn = 1,
    frameOff =2,
    initialSwitchState = true,
    onPress = function(e)

    local check = e.target
      if(check.isOn) then
         audio.play(bgm,{channel=1, loops = -1})
      else
         audio.stop(1)
      end
   end

[/lua]

ok seems i answered my own question here…doh!

http://forums.coronalabs.com/topic/35116-on-off-switch-help-please/

ok seems i answered my own question here…doh!

http://forums.coronalabs.com/topic/35116-on-off-switch-help-please/

Seriously, why is this not in documentation???

There are a few things that need addressed with widget.newSwitch before we can really document and support  the skinning features  of this widget.  The infrastructure is in place for most things and you’re free to look through the open source version to see what parameters need passed in (though they are subject to change) and start trying to make things work, but until we iron out all of the items, we need to, we really can’t document and support the skinning feature.

While we can’t give a date on it, it’s something we are working on.

Rob

Seriously, why is this not in documentation???

There are a few things that need addressed with widget.newSwitch before we can really document and support  the skinning features  of this widget.  The infrastructure is in place for most things and you’re free to look through the open source version to see what parameters need passed in (though they are subject to change) and start trying to make things work, but until we iron out all of the items, we need to, we really can’t document and support the skinning feature.

While we can’t give a date on it, it’s something we are working on.

Rob