-
1. Re: Test movie: ActionScript for selecting specific scenes while excluding others?
kglad Oct 26, 2016 7:59 AM (in response to johnFlashStuffs)you can test particular scenes using control>test scene (ctl-alt-enter).
and there's more specialized stuff you can do but that's not built-in.
-
2. Re: Test movie: ActionScript for selecting specific scenes while excluding others?
johnFlashStuffs Oct 26, 2016 10:41 AM (in response to kglad)Hi kglad. Thanks for responding. I'm definitely more interested in the "specialized stuff" you mentioned.
I'd like to be able to play selected scenes (for example, scenes 5 and 6, while excluding all other scenes). If you're able to construct an action script which can achieve this effect then it will be very helpful.
-
3. Re: Test movie: ActionScript for selecting specific scenes while excluding others?
kglad Oct 26, 2016 11:14 AM (in response to johnFlashStuffs)place the following in frame 1 of scene 1 and the last frame of scene 6
gotoAndPlay('scene 5',1); // assuming scene 5 is the correct name
you can then use test movie (ctl-enter)
-
4. Re: Test movie: ActionScript for selecting specific scenes while excluding others?
johnFlashStuffs Oct 26, 2016 11:12 PM (in response to kglad)Hi kglad. I've tried your instructions exactly as you've stated them (except I substituted 5 with 7), but I'm getting an error;
1067 implicit coercion of a value of type int to an unrelated type string.
-
5. Re: Test movie: ActionScript for selecting specific scenes while excluding others?
kglad Oct 27, 2016 5:46 AM (in response to johnFlashStuffs)1 person found this helpfuloops, that should be:
gotoAndPlay(1,'scene 5'); // assuming scene 5 is the correct name
-
6. Re: Test movie: ActionScript for selecting specific scenes while excluding others?
johnFlashStuffs Oct 28, 2016 12:42 AM (in response to kglad)Hi kglad. Thanks for the clarification. It's still not working for me.
Based on your instructions, I put
gotoAndPlay(1,'Scene 5');
on the frame 1 of scene 1 and on last frame of scene 6. When I then press ctl-enter the playback starts from scene 1, as usual. I've triple checked the spelling and syntax so I don't think that's the issue.
It doesn't make sense to me that the ActionScript would be the same for frame 1 of scene 1 and the last frame of scene 6, but since I don't understand AS I'm just following the instructions. What am I still missing?
-
7. Re: Test movie: ActionScript for selecting specific scenes while excluding others?
kglad Oct 28, 2016 5:45 AM (in response to johnFlashStuffs)attach a screenshot showing your scenes panel.
-
8. Re: Test movie: ActionScript for selecting specific scenes while excluding others?
johnFlashStuffs Oct 31, 2016 6:08 AM (in response to kglad)Hi Kglad. Here's the screenshot. I can't help but wonder, now that I'm looking at it, if the problem is in how I've divided up my scenes. Is the code getting confused because I've sub-divided scene 1 and 3 into three parts and because there is no scene 2?
-
9. Re: Test movie: ActionScript for selecting specific scenes while excluding others?
kglad Oct 31, 2016 6:35 AM (in response to johnFlashStuffs)1 person found this helpfulno, the problem is you have typos. letter case matters. ie, "scene 1" is not the same as "Scene 1".
fix the code or your scene names and retry.
-
10. Re: Test movie: ActionScript for selecting specific scenes while excluding others?
johnFlashStuffs Nov 14, 2016 11:33 PM (in response to kglad)Hi Kglad. I had to leave this issue for a while but I was able to come back to it. The problem wasn't typos (though there were some discrepancies). There seems to be some kind of glitch where the "gotoAndPlay" command works, but not on the first try. When the scene is published it starts from the beginning and only jumps to the specified scene/frame when I click "rewind" and start again.
Aside from that little bug, I've got it working. However, the "gotoAndPlay" script does seem to slightly skew the sound layers from the animation (by roughly 6 frames). Anyway, thanks for your contributions to this issue. As usual, you've been very helpful.