Store a var to parse it to an other frame

Is it possible to store a var in a function a use it in an other frame. Ex.

In frame 1 i have stored the ID from a newsarticle in a var. But in frame 2 i want to retrieve the whole newsarticle from the ID in that function. Is that possible?

I have this on frame 2

connectie2.call(“NieuwsID.getNewsID”, responder2, id);

how can i acces var id who’s stored in frame one in this function:

    function linkEvent(event:TextEvent):void {
                var id:String = event.text;
                trace(id);
                gotoAndPlay("id");
    }