Groups | Blog | Home
all groups > macromedia flash sitedesign > july 2007 >

macromedia flash sitedesign : GetUrl Not Working if www. isn't used in browser


bmfrange
7/9/2007 6:58:02 PM
I made a navbar for my website using Flash CS3 Professional, ActionScript 2.0.
The navbar works fine if you visit the site by typing the url in the web
browser www. (mysiteaddress) .com. But, if the url is typed in as just
(mysiteaddress) .com. Without the www. The GetUrl links do not work.

I tries just typing in text links with html and they work fine whether or not
you use www. in the url in the web browser. This problem occurs in all web
browsers, Firefox, IE 6, IE 7, Safari.

In my coding in the Get Url a reference the absolute url, tried it without www
and tried it just as a relative url. Nothing seems to work. It wouldn't bother
me that much but, when you search in google for my site the link does not have
www.
Does anyone know how to fix this?

For reference, the site is www.brianmfrange.com. If you go to brianmfrange.com
the Flash navbar getUrl links will not work.
Franz Marksteiner
7/10/2007 12:00:00 AM
[quoted text, click to view]

http://www.yoururl.tld

Kind regards,
Rob Dillon
7/10/2007 4:23:06 PM
I took a look at your site and there seem to be many problems with it.
GetURL needs a qualified URI to work with. The address is passed to the
browser window.

While each browser client has its own set of rules for passing the
string on, only Internet Explorer is so poorly written that it won't
interpret relative addresses as web addresses. For some bizarre reason
this is an option in Internet Explorer.

I have never, ever, seen a browser that required a protocol prefix for
http.

Can you explain in more detail where this button function is located in
bmfrange
7/10/2007 5:19:35 PM
Franz Marksteiner
7/10/2007 7:28:45 PM
[quoted text, click to view]


This has nothing to do with frames. Links beginning with www are worthless,
unless you got a relative path (directory) named /www ;-)
If you are using a absolute link you have to begin with "http://", so a link
to Google would be http://www.google.de or http://google.de.


--
Kind regards,
Franz Marksteiner
Franz Marksteiner
7/11/2007 12:26:51 AM
[quoted text, click to view]

That only counts for direct input in the browser, but not ever for any kind
of clickable link.
Links, no matter if HTML or Flash, always have to have the protocol prefix.

--
Kind regards,
Franz Marksteiner
bmfrange
7/11/2007 4:11:20 AM
There are many problems with the site. But, that's because since my first post
I've been trying a lot of things to fix the problem right now the site is
extremely messed up. I tried arranging the site in frames. But, I don't like
the way it works. The links work fine without www. in the url with different
frames or with _blank in the ActionScript to open in a new window. The problem
happens only when www. is not in the url and the link opens on the same page.
Rob Dillon
7/11/2007 9:37:57 AM
If I go to your site using brianmfrange.com, I get to your site and it
works unreliably in FireFox. It works fine in Camino and SeaMonkey.
Adding the www, doesn't really change anything.

When I first read your first message, I was thinking that you were
describing a problem in the Flash movie, but the problem is with your
html.

You have a closing object tag but no opening one. This tag matters only
to Internet Explorer. The embed tag is used by every other browser to
activate the Flash plugin.

Another problem is that many of the required embed attributes are
missing.

Use the publish tool in Flash to write out the basic html needed to
properly display your Flash movie. In the HTML tab of the Publish
Settings window, use the Flash Only Template with Detect Flash Version
unchecked.

Once you have this block of html, you can then add your style
information. I usually just wrap a div around the object html block and
bmfrange
7/11/2007 2:09:07 PM
bmfrange
7/11/2007 4:11:55 PM
AddThis Social Bookmark Button