Hello,
Im having a weird problem:
Let’s say i have 4 scenes: Loading, Init, selection and Game.
In the Init scene, i define a few arrays and other init vars, everything on _root.
Then it moves to the selection where you select a type of game and then it goes to game. So far, no problem.
During the game, you can choose to go back to the selection scene and then start a new selected game.
Now here’s my pb: In the games, i have a function. When i pressed a button, i pass a local var (not defined earlier) to the function. It works fine : i can trace the var i’m passing to the function and the result is fine. But if the user comes back to the selection scene, then come back to this one, no matter what var i pass to my function, it always passes the last var (Like if i pass “3” to the function, move to the selection scene, come back, try to pass “1” and it still passes “3”).
The function is defined as _root.somefunction = …
Bottom line is : When i move back to an earlier scene where the function isn’t defined yet and then back to the next scene where i define the function, the function won’t accept any new var i’m trying to pass to it. Is that normal?
Thanks for reading