Passing variables
Is it possible to have a movie in a webpage, such that clicking on a hotspot will take you to another webpage and pass some variables to a movie on the new page and THEN be able to click on a hotspot in the second pager that will take you back to the first and send the variable back again.
Basically, I want to be able to pass the view angle of a QTVR to a new page so that I can go back to the same view when going back to the previous page.
Thanks,
John
Re: Passing variables
So, possible, but perhaps more complicated than I had hoped. If I end up needing to go that route, I may ask you more questions. Unfortunately, I am not knowledgable about PHP.
John Riley
Re: Passing variables
Patrick,
I have been revisting this. Worked some before with XML and QTLists. I was looking over some projects from Matthew's Interactive QuickTime book (Chapter 32: DynamicSaleTag, for instance). While all of the movies that were on the disk worked fine, when I copied the projects to my HD and open the completed project and exported the movie without altering anything at all, the darned things didn't work!
Is there any sort of quick fix for this? I have a vague recollection of this sort of thing happening for some reason (old projects not working with new LSP), but I can't remember or find the solution in the archives.
Any reminders are appreciated.
John Riley
Re: Passing variables
Hi John:
I don't know of anything offhand, except it may be a LSP version issue... I do know there were lots of problems with vesion 4.1, for instance.
One thing you might do is simply recreate the project from scratch, and just copy/paste the QScript from Matthew's project.
Also, LSP seems to have issues sometimes with what I'm calling "path memory" -- I've found that copying/exporting project files from one drive to another can lead to weird glitches.
Hope this helps!
Patrick Cheatham
--
CheathamLane | spinControl:VR
Berkeley, California
VR Photography
Web, Flash & QuickTime Development
Re: Passing variables
I wasn't sure if this had something to do with having a Name and an ID or pathnames with XML or something. It seemed like a problem I remembered hearing about, but I can't find it. I will try recreating the projects from scratch and see what happens. If anything comes to mind, let me know.
John
Re: Passing variables
Do believe I have it! I have to add "ThisMovie." in front of all of the script elements that handle QTList and XML (loading from XML, getting list elements, etc., etc.)
Stagedoor has something relevant to this at http://stagedoor.totallyhip.com/kbase/kbase.asp?ACTION=Display&RESOURCE_...
Of course, this was for LSP 4.5.4 and it says that it would be fixed in the next version of LSP. Well, it isn't fixed in LSP 4.6.6, that's for darned sure!
I wish Apple would buy out LSP from TotallyHip and release it as a development kit for QuickTime instead of having it molder at TH's hands.
John Riley

Re: Passing variables
Hi John:
The short answer is yes... :)
Your best bet is to use
* The MovieQTList parameter, and
* PHP (or ASP or variant
I can see using PHP to allow you to write out the page, so that you can insert the "MovieQTList" parameter dynamically. The MovieQTList parameter will let you pass variable info to each movie. Using PHP will also let yoju write in a HotSpot"n" parameter, so you could make a certian number hotspot take you back and forth. The hotspot's URL can be of the "http://mysite.com/somePage.html?myHotspot=someVariable" variety, allowing you to attach the variables to the URL.
Does this make sense?
(if you crosspost to the QTVR mailing lists, make sure to mention this forum; I'll see it faster... :) )
Patrick Cheatham
--
CheathamLane | spinControl:VR
Berkeley, California
VR Photography
QuickTime & Web Development