Play All button using scripts
by GH1919
on
Aug 23, 2006 at 5:27:00 pm
I have a menu that has 2 separate tracks with their own buttons as well as a Play all button that i created using scripts in Studio Pro 4. It works great except that when you choose to play track #1 alone, when it is finished, it continues right into track 2. I would like it to go back to the menu. Is there aything I can do? When I change the end jump for that track, it messes up my play all button...
Re: Play All button using scripts by GH1919 on Aug 24, 2006 at 3:44:09 pm
That's where i am getting confused...I have used the compare command with value 1 on all my scripts. Currently I have my track end jump set to go to the next track, it's the only way i can get the Play All button to work. I know i am missing a step, just not sure where.
Re: Play All button using scripts by GH1919 on Aug 28, 2006 at 8:33:09 pm
Eric,
Sorry to sound like such a dumb@#*, but how do I copy my scipts onto this forum? I don't see any attachments, I'm not sure how to get the script info duplicated so you can see it. I am really curious to see how the whole script process works and what step i am leaving out. Thanks again for your input.
Re: Play All button using 2 scripts by Brad Elliott on Aug 29, 2006 at 6:26:32 pm
Here is one way you could do it.
I would suggest using 3 short scripts
Play all set script
post script for track 1
pre script for your menu.
Play all button jumps to play all script
Play All script: 2 lines
move an immediate value of 1 to an unused gprm(gprm 0 for this example.)
jump to 1st track you want to play
Set jump of 1st track to track 1 post script (2 lines)
If gprm 0 = 1 jump to track 2
jump to menu
If gprm 0 doesn't = 1 the line will be ignored and then the second command line will run. You need to reset the value of gprm 1 so that track 1 will play by itself if track 1 button is selected again.
Menu pre script: 1 line
mov an immediate value of 0 to gprm 0.
remember that the menu prescript must be assigned in the menu property inspector prescript section otherwise the the menu pre-script won't be recognized and play all will always be turned on.