In my game thre is timer counter(count up) going, when the person solves the puzzle I want to store the time.
On my main page thre is a graphic symbol time on that I made a movieClip Timer, inside Timer I defined a dynamic text nTime
For action for graphic symol time thats the code
onClipEvent(load){
startTime=getTimer();
}
onClipEvent (enterFrame) {
currentTime=getTimer();
elapsedTime=Math.round((currentTime-startTime)/1000);
nTime = elapsedTime+ " secs";
}
Its showing me time. Once the puzzle is solved I’m redirecting it to frame 5 which has a dynamic text box to display time person used to solve the puzzle.
But its saying undefined .
Can anyone tell me how to reference it?