Forum Moderators: open
Here's what needs to happen:
I have to put a web site on a CD, so the whole site will be localized on the CD itself. However, I don't want the user to have to go in and find the index file and open it manually. So I'm trying to create a simple Flash intro that will autorun and then jump the user to the local index.html file when it reaches the end frame. So all the user has to do is pop in the CD, the Flash file will run, and the web site will launch all by itself.
I'm using the "getURL" command in the Action palette, but it's not working. It launches the browser, but not the page. Here's the code:
getURL("index.html");
stop();
I've also tried:
getURL("index.html", "_blank");
stop();
Any clues as to why this isn't working? TIA
I just tried a test on a CD just to see what would happen.
It ran the Flash file without problems, when it got to the last frame it launced my default browser and then I got an error saying that it couldn't find the URL "www.index.html"
Is Flash automatically putting the "www" in front of the URL? If so, how can I turn that off! Again, I don't need the link to go out over the web, the site will be included on the CD, it needs to launch the index page that's sitting right next to the swf file in the same directory.
thanks.
Although not ideal, you might need to try that just to save yourself future headaches.
Good luck,
El
[I've used a nice & free prog. called Quick Menu Builder before when doing web designs for CD's - but the downside is that it won't autorun on a Mac, of course.]
Another plan of attack is instead of auto-loading the Flash - auto-load a web page with the flash in it, then you will be able to communicate with the page from Flash via Javascript using FScommand. When the Flash is done tell the page to redirect to the other HTML page - that would work for sure! :-D
I'm starting to wonder if this is possible at all. I couldn't even get a button to open the page in the Flash on the local drive or even to a live web site.? And I know that's possible, because I've done it before. However, not on a stand alone swf file. But even if I've never done that, I've seen it work. (sigh...)
I'm back to square one. Anyone else have a suggestion? TIA
Another way is to find a demo that does what you want and pick it apart, see how they did it and emulate the methods.
Try:
"\index.html"
and place it it the correct location from the file you're opening it from...
Or - have you found another solution yet?
El
Thanks for your help.
Site: [multidmedia.com...]
[whirlywiryweb.com...]
This little app. cleared up all my problems.
Opened a strait HTML file and did what I wanted it to do.
Thanks for the help/advise.
P