This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > July 2007 > GetUrl Not Working if www. isn't used in browser





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author GetUrl Not Working if www. isn't used in browser
bmfrange

2007-07-09, 6:15 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

2007-07-10, 6:15 am

bmfrange wrote:
> 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.


http://www.yoururl.tld

Kind regards,
Franz Marksteiner
bmfrange

2007-07-10, 6:15 pm

To fix the problem I set up my site with frames so that the links open in a new window on the same screen. I guess this doesn't really fix the problem but, it is a way around it.
Franz Marksteiner

2007-07-10, 6:15 pm

bmfrange wrote:
> To fix the problem I set up my site with frames so that the links
> open in a new window on the same screen. I guess this doesn't really
> fix the problem but, it is a way around it.



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

Rob Dillon

2007-07-10, 6:15 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
your movie's architecture?
Franz Marksteiner

2007-07-10, 10:14 pm

Rob Dillon wrote:
> 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.


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

2007-07-11, 3:14 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

2007-07-11, 6:16 pm

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
position the movie with css.
bmfrange

2007-07-11, 6:16 pm

This is extremely helpful, I will try what you say and let you know what happens.
bmfrange

2007-07-11, 6:16 pm

It works now! Thank you so much for all your help. It did turn out to be my whacked out terrible html with a gigantic piece of the code missing.
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews