How to integrate Flash Site into CD-Rom?

I made a Flash-based website while ago for a client of mine for his designer reel, and now he wants to put his website integrated into CD-Roms. Basically what he wants is that his client can pop a CD in, automatically opens an opening Flash animation, just like the website, and end up at the navigational interface, just like the website (I know, I know. “Why can’t his client just visit the site.” Yeah, I have no idea.)

So I guess I’d like to know if anyone has done this before so I can be confident to do this. If so, how do you get a SWF file to automatically start playing when you pop a CD in.

Ohhh, while I’m writing this I’m starting to think this may not be a Flash Forum type of question. But if anyone can help me, I’d be really appreciate it.

Thanks in advance.

Xroad66

prehaps you cld just trun the swf into a projector (exe) and then make and autorun.inf pointing to it, if you think this might work i cld explain further.
that is assuming your running windows and that the site loads everything through the one file/swf

Here is the autorun code that Krusador mentioned. Just open up a text editor and put this code:

[AUTORUN]
OPEN = filename.exe

Then save it with an .inf extention, for example - Autorun.inf.

Put it in the same place as your .exe file and it will start when you put the cd in. I think you have to put these 2 files directly on the cd, not in subfolders.

Also with CD-ROM’s, I like to use the fullscreen fscommand function. I think it looks better when it fills the whole screen, that’s how most cd-roms are anyway, so maybe I’m just used to it. You might want to look into that if you haven’t already.

Thanks Krusader and Gumby19 for your help.

I have some jpeg files that are externally loaded into swf. Do you foresee any problems doing that for CD-Roms?

Also, how can I autoplay for both Windows and Macs?

Yasu

I don’t see any problem’s being created by the jpegs. Just publish your main file as an .exe file and everything else works the same way as it would on the web.

I’m sure that it’s possible, but I’ve never been able to figure out how to make a cd autorun for both Windows and Mac, which is frustrating because I work on a pc, but have a Mac at home, so I’ve screwed around with it quite a bit without finding a solution. If anyone out there does know this, I’d sure like to know. Good luck, let me know if you figure it out.