1 person found this helpful
I'll assume your stage movie is named "stage" (which it will be unless you have explicitly changed it).
It's difficult to know what context to refer to - if your field named "urlpath" is in the MIAW you might try:
tFile = field "urlpath" & "tutorial1" -- reality check... put tFile window("stage").movie.go(tFile)
If your named field is in the stage's castLib you might try:
tFile = window("stage").movie.member("urlpath").text & "tutorial1" put tFile window("stage").movie.go(tFile)
In either case I have no idea why you are using gotoNetMovie since you must be running as a projector if you are using MIAWs. Just because you have Shockwave compressed your movies doesn't mean you have to use plugin commands for navigation. Also note I have dropped the ".dcr" off the filenames - it is unnecessary (and limiting) to provide the file extension.
When I try this: window("stage").movie.go(tfile) I am getting a couple of errors:
1. Director Player Error Unable to find the "stage"!
2. Then, Script error Frame not defined
Before posting originally, I had tried the window("stage') and some possible other dot syntax but keep getting the same error (which I could not resolve originally). I tried putting the windowlist and stage is not in there. It is my main movie and at that point, I got stuck. I tried (the stage), but couldn't get the cursor or the goto to work. I did not change the stage movie name as you warned (at least I don't believe I did?) Can you plase help me understand how to tell the stage without getting this error 1.
On the second script error frame not defined, I am wondering if I need something to help the script know that the string "tutorial1" is a movie name not a frame name.If I only use one parameter in the go() won't it default to the frame name? Would something like (1, tfile) fix this or something else?
Also, how do I tell the stage to cursor 4 from my tutor MIAW? window("stage").movie.cursor(4) or something like that?
What does your windowList report?
The command should perhaps be window("name").movie.go(1, "filename")
I can't imagine why your cursor isn't changing as expected.
For some reason,window("stage") or window("name") will not work for me. It's even in the Adobe documentation that way and so it "should.". When running theoffice.dcr with tutor.dcr in a MIAW and I put the window list, I only see window "tutor.dcr" . No stage or reference to anything else. To fix, I substituted: (the stage). movie.go(1,tfile) I was also able to tell the stage to change the cursor by substituting (the stage).movie.cursor(4)
Well anyhow you suggestions were very helpful as usual and much appreciated and got me on the right path - thanks as always!
Oh and one more wierd thing the Tell command which is supposedly obsolete and didn't work in one of my scripts is now working in three other places with
tell the stage to gotoNetMovie (field "urlpath" & "tutorial1.dcr") . So Tell may work or not work (just for your reference) and I can't explain why.
It's probable your 'scriptExecutionStyle' property is 9 and not 10 - that would explain the syntax failure/s.