I want to load the sound from paused position. What i should do for that. i have a code or the same but it is not helping me out.
var mySong:Sound = new Sound();
var currentPosition:Number = new Number();
var isPlaying:Boolean = true;


function myToggle() /*called function when buttonis pessed*/
{

if(isPlaying)
{

currentPosition =mySong.position;
trace("currentPosition is" +currentPosition);
stop();
isPlaying = false;
trace("Hi");

}
else
{
start(currentPosition / 1000);
trace(+currentPosition);
isPlaying = true;
trace("Hello");
}
};

trace(+currentPosition) is giving output as undefined.
Please help me