Warning

 

Close
Confirm Action

Are you sure you wish to do this?

Cancel Confirm
AR15.COM
12/16/2008 5:48:25 AM EDT
I have a client who I had set up a domain and a temporary website for.  They hired someone to create and maintain their permanenet website (which is what I expected them to do) but the person they chose works strictly in Flash development.

The developer hard coded the IP address of the website in all of the links in the SWF files. they told me that Flash files "require" a fully qualified pathname and can't use any sort of absolute reference, so they had to hard code the IP address of the website to get it to work, since until the new site was up the business URL would point to the temp site I had configured.

After they told me the new site was fully functional I redirected the nameservers.  The only problem is, the site now only works if you access it by IP address and not by the domain name.

When I go into the site and edit all of the available HTML files and change any reference to the IP address to the doman name, those pages work fine.  The SWF files don't link properly, I believe, because they have the hard coded IP address (though they work if you access them that way).

So is it true that SWF files only work with the fully qualified pathname and can't work if you just reference them locally?  I don't know Flash at all other than having used a few tools to build animated menus.

Any ideas on these issues would be appreciated.
12/16/2008 7:07:22 AM EDT
[#1]
You can use host names in flash.  I don't know why they told you that.  

When you say the flash files don't link, but they do by IP, that makes me think the embedding code is wack.  Can you post the source of the page here?

edit: speeling
12/16/2008 8:14:10 AM EDT
[#2]
Quoted:
You can use host names in flash.  I don't know why they told you that.  


I've worked with alot of developers who don't understand the concept of DNS, thou, all of them access Google via www.google.com and not 74.125.47.147, 74.125.47.99, 74.125.47.103 or 74.125.47.104.  
12/16/2008 10:33:28 AM EDT
[#3]
Quoted:
You can use host names in flash.  I don't know why they told you that.  

When you say the flash files don't link, but they do by IP, that makes me think the embedding code is wack.  Can you post the source of the page here?

edit: speeling



I don't have the source for the Flash files; I was just presuming the code was oddly done. I also don't think their developer understands what the domain name service actually does, either, based on the conversations I have had with her.

It's also not so much using host names, but requiring a fully qualified path for every SWF link.  is that a requirement? They can't jsut use local referents?
12/16/2008 2:46:16 PM EDT
[#4]
Yeah they could.

It's a simple as:

<object width="550" height="400">
<param name="movie" value="/flash/somefilename.swf">
<embed src="/flash/somefilename.swf" width="550" height="400">
</embed>
</object>


instead of:

<object width="550" height="400">
<param name="movie" value="http://127.0.0.1/flash/somefilename.swf">
<embed src="http://127.0.0.1/flash/somefilename.swf" width="550" height="400">
</embed>
</object>



You could just change the object tags, that would fix it.  

12/17/2008 3:28:48 AM EDT
[#5]
Quoted:
Yeah they could.

It's a simple as:

<object width="550" height="400">
<param name="movie" value="/flash/somefilename.swf">
<embed src="/flash/somefilename.swf" width="550" height="400">
</embed>
</object>


instead of:

<object width="550" height="400">
<param name="movie" value="http://127.0.0.1/flash/somefilename.swf">
<embed src="http://127.0.0.1/flash/somefilename.swf" width="550" height="400">
</embed>
</object>



You could just change the object tags, that would fix it.  




That's what I thought.  Thanks.