all groups > macromedia flash sitedesign > september 2003 >
You're in the

macromedia flash sitedesign

group:

geturl command in flash-html combo site


geturl command in flash-html combo site anicoler
9/29/2003 7:19:06 PM
macromedia flash sitedesign: Hi,

I'm doing a site that has a flash intro. (To make it simpler, the flash intro site is www.website.com) Buttons in the intro should open up html pages. The code on the buttons is as follows:

on (release) {
getURL("http://www.website.com/section1.html", "_blank");
}

The content pages are within the same domain, so do I need to put the "http://www.website.com/" Would the actionscript be:

on (release) {
getURL("section1.html", "_blank");
}

?

It doesn't work properly for me, and I'm wondering if there is something I'm missing.

Thanks.

anicoler

Re: geturl command in flash-html combo site thegreenhead
9/30/2003 3:31:11 AM
Hi

Are the web pages that you want to link to in the same directory as the
flash intro?
I'll bet this is the problem. If your html files are in your root directory
and your flash movie isn't try this (see the slash before the file):

on (release) {
getURL("/section1.html", "_blank");
}

Let me know if this helps. :)

Michael Kiely
Green Head Interactive Design
http://www.thegreenhead.com


[quoted text, click to view]
intro site is www.website.com) Buttons in the intro should open up html
pages. The code on the buttons is as follows:
[quoted text, click to view]

Re:geturl command in flash-html combo site anishu
10/1/2003 12:25:46 PM
the action is proper,
its not necessory for u to giv http path, relative path is enough

i hope u had put ur section pages in the same folder of index page

check out wether u had put ur section files in folders??

the script is proper it should work ...
relative path is enough


anish


Re:geturl command in flash-html combo site wllm
10/1/2003 2:51:49 PM
just to clear up what anish said

on (release) {
getURL("http://www.website.com/section1.html", "_blank");
}

this is an absolute path to your file, therefore, it will work,
but only if your site is *live*.

in other words, don't do this if you want to test your site.
just give it a relative link, which is what you said you've done.

there's nothing wrong with this script, therefore, make sure the
document you're linking to is in the same directory as your .swf file.

this should clear things.

hth

wllm

Re:geturl command in flash-html combo site anicoler
10/1/2003 2:57:44 PM
Yes my section pages were in the same folder as the index. The script wasn't even pulling up a blank window though, and that's what was confusing me. But I figured it out late last night: I had put a stop action on the last frame so that it wouldn't play over and over, and I hadn't rewritten the code on the instances of the buttons in that frame (the one with the stop action.)

Thank you both for your responses, even though it was a few days ago. I had begun to give up on these forums. : )


anicoler

AddThis Social Bookmark Button