Hi all,
Just started working with composer and I can’t figure this out.
If I have a scene that calls composer.gotoScene(“otherScene”) i will get the following events:
-
create
-
show(will)
-
show(did)
Then the other scene calls composer.gotoScene(“firstScene”) and then the first scene call composer.gotoScene(“otherScene”) again and I would expect to see the “show” events again but I get this:
-
show(will)
-
show(will)
-
show(did)
-
show(did)
Doing the cycle again gives:
-
show(will)
-
show(will)
-
show(did)
-
show(will)
-
show(did)
-
show(did)
Since the create event is only fired one time, I can only assume there is actually only one instance of the otherScene, but the events seem to build up.
What am I doing wrong/missing? I’m using the standard scene template from http://docs.coronalabs.com/api/library/composer/index.html
Cheers
Martin