I’m having trouble with scenes and wondering if someone can give a really good indepth link.
I have a movie. From the root on frame 2 I can create a button1.
Button one can have handler code that will allow:
gotoAndPlay(“scene2”,“start”);
works fine.
However, if on root - on frame 2 I have a movie that is playing, and inside that movie there is a button that has
gotoAndPlay(“scene2”,“start”);
it will not work - the button will work (verified via trace), however, it will not jump to scene 2.
AND - yes I tried all the “_root.scene 2” … etc. etc. etc.
I really would rather find a good indepth explanation of - WHY - this doesn’t work?
I also have worked out a scenerio, where this will not work, and then does work when using a movie clip that has a mouse handler. However, as the above is probably good enough to get at what I’m looking for… please post if you have some good info.
There HAS to be correctly documented somewhere as to what is really going on.
There seems to be just way to many “tutorials” that claim - it is weird and scenes have errors and don’t use them etc. surely macromedia has to document what works and why.
But this is my point - you said"AS users don’t use them."
That doesn’t make sense, they should.
Once someone defines how they work, then that should be good enough to allow us to use them fine all the time.
However, when I search most people say:
“Just try this:… bunch of different things” (1/2 of which are acually quite odd and dont work). Then the reason they say it should work is that Macro was stupid, or weird, or there is a bug in MX etc. etc.
This doesn’t make sense to me. I suspect if there was a bug:
Macro would have said so - then we would know for sure.
If there isn’t a bug, then there should be an exact reason why, and thus a correct way to use them and AS guys should NEVER say - oh, we AVOID them…
But, yes - my point was I have a way to make it work. But I was looking for someone that has a good explanation.
For example one time I was trying to figure out why I could go
_root.gootandplay(5);
It was always going to frame 6 (of my current scene2)!!! The solution was in realizing flash combines all the scenes into one, so scene1 frame 1 = 1, scene 2 frame 1 = 2, scene 2 frame 2 = 3 etc. and thus the reason why 5 =6.
No, I didn’t answer my question - I figured out how to get around it. But I haven’t tried it will mc instances etc. it will problaby work there… But, that is why I was looking for a link to a good indepth article that didn’t refer to them as being a mystery.