1 person found this helpful
If you open the source file in Director, you can publish the program as shockwave instead of (or in addition to) an executable. Shockwave will play in a browser. It may be just that easy.
Of course it depends very much on how the program was made, what xtras it uses, etc... some commands and xtras are not shockwave safe, so if they are used, the program wont work without some recoding to work around these limitations.
Thanks Mike. That definitely helps me get moving in the right direction. Are there any specific functions/extras that you know of off the top of your head that will Not run with Shockwave? Also, Shockwave requires a special player just like Flash does, do you think enough people have it or would download it just to play a game? I ask because I use flash and am unsure of the popularity of Shockwave still.
Thanks for the help so far!
Also something I just thought of is the database portion. I believe the current database is programed within the files to be on the disc only? So that it is contained to the players computer, not sure. Either way we would be looking at making one Huge database for all players that is stored online (just like any flash game with a high scores board). Can this be done with PHP and MySQL like we have done with Flash games?
Really, most xtras are not shockwave safe. Anything that has to do with accessing local machine content (like BuddyAPI, FIleIO, etc) can not be shockwave safe for security purposes. And many xtra developes simply havent bothered to make their xtras for shockwave. The easiest way to find out if it works is simply to try it and hope. There will be error messages about "handler not defined" whenever you try to use a scripting xtra that is not supported.
You will of course have to make adjustments to deal with the database changes... It will not be readable off a CD or the local machine. You can put it on the internet and allow everyone to access it there. You can easily use php with MySQL to do whatever you need. Director has getNetText() and postNetTest() commands which let you communicate with PHP scripts on the web.
Okay I figued try it would be the course of action.
As for the database integration, how similar is it to integrating a database into flash? Like I said before we have set up a database to track scores and such with flash games before. Not sure how different it is with director other than the 2 code lines you mentioned.
Are there any good tutorials or websites that help with Director and database integration?
There are a bunch of good tutorials at
Don;t know if any are database-oriented, but it will help you get up tp speed on Director. There are a bunch of database-related xtras that can make things really easy for you, see the list at:
Depending on which version of Director you are using. If you have an existing PHP/MySQL site, then you dont need any xtras, and as I mentioned before, you can simply use getNetText() to communicate with it... basically, the PHP does all the heavy lifting and Director just tells it what to do and gets response back.