director class

How can i display one object on differnt scenes?

Do you mean the same object irregardless of which scene is playing?  If you don’t insert it into the displayGroup it might stay on top.  It does with Storyboard and I suspect it does with director.

And how can i save the current time of a timer, when i change scene?

There isn’t really a way to get the value of a timer.performWithDelay() timer, if that’s what your talking about.  The handle to the timer so you can cancel it is the return value:

myTimer = timer.performWithDelay(1000, doSomething, loops)  – where loops is 0 for keep looping for ever or a positive number for the number of iterations)

You can store myTimer in some form of globally available data space (see; http://www.coronalabs.com/blog/2013/05/28/tutorial-goodbye-globals/)

If your showing the value of a timer like a countdown clock, that value can also be stored in that globally available data space. )

Please keep in mind Director is not something we support at Corona Labs so I’m speculating here.  The timer is going to execute a function every time it is supposed to fire.  If the director’s scene goes away that function goes away and has the potential to kill your app.  I don’t know if Director removes it’s modules or not (I suspect it does), so you should cancel your timer and then restart it in the new scene, though you really can’t know how much time has elapsed unless you track it yourself using something like system.getTimer() to track the time yourself.

Do you mean the same object irregardless of which scene is playing?  If you don’t insert it into the displayGroup it might stay on top.  It does with Storyboard and I suspect it does with director.

And how can i save the current time of a timer, when i change scene?

There isn’t really a way to get the value of a timer.performWithDelay() timer, if that’s what your talking about.  The handle to the timer so you can cancel it is the return value:

myTimer = timer.performWithDelay(1000, doSomething, loops)  – where loops is 0 for keep looping for ever or a positive number for the number of iterations)

You can store myTimer in some form of globally available data space (see; http://www.coronalabs.com/blog/2013/05/28/tutorial-goodbye-globals/)

If your showing the value of a timer like a countdown clock, that value can also be stored in that globally available data space. )

Please keep in mind Director is not something we support at Corona Labs so I’m speculating here.  The timer is going to execute a function every time it is supposed to fire.  If the director’s scene goes away that function goes away and has the potential to kill your app.  I don’t know if Director removes it’s modules or not (I suspect it does), so you should cancel your timer and then restart it in the new scene, though you really can’t know how much time has elapsed unless you track it yourself using something like system.getTimer() to track the time yourself.