How to get a data from other frame ?i

hi

im working on a side scroller game, and im in a middle of shared objects

now my problem is i cant have the data from other frame this is my codes
(i know its wrong but idk what to do)

var heroLife:Number = 10;

private function framehandler(e:Event):void
{
if(currentFrame == 1)
{
mylife.text = String(heroLife);
}

if(currentFrame == 2)
{
charLife.text = String(mylife.text);
}

}

there is an error, it just mean that it cant find charLife.text bcoz its from other frame

now i want to know if it is posible to do this.

thank you guys,

cheers
raphaelle