Hi,

I have a website with a flash intro, after the flash intro finishes playing it shows a button within flash to enter the website. since we were changing the link to the enter page while testing, we asked the flash developer to give us an easy way to change where the button links to.

so he created a txt file where he put this text inside:

home=

and we should be able to change home to reflect the page we want to show.

this worked fine on the localhost. but when uploaded to the server it didn't work correctly and instead it was linking to an "undefined" page like this: and of course showing page not found error.

i want to mention also that the flash file is located in a subfolder with the txt file and the page we link to is on an upper level. we tried relative and full path, both worked on localhost but not on hosting server.

any ideas?
i appreciate your time.

Dani AI

Generated

Short, practical checklist for that builds on 's server questions.

Most likely causes: the SWF can't read the config text on the hosted site (so the variable is never set), the text file format/encoding is wrong for Flash, or the host is rewriting/masking URLs so the SWF ends up with a bad path. Start by proving whether the file is actually being served exactly as you expect.

Steps to try (in order):

  1. Open the TXT file directly in a browser (use the exact URL where the SWF expects it). Confirm you get HTTP 200 and the raw text (no HTML wrapper, no frames, no redirects).
  2. Make the TXT file plain and simple: a single key=value line, saved without a UTF-8 BOM (save as ANSI or "UTF-8 without BOM"). A BOM at the start will make the variable name different and result in "undefined".
  3. Check relative-path behavior: Flash/embedding pages can resolve relative loads differently than the SWF location. Temporarily hard-code a full http:// URL for the config load to rule out path resolution and masking issues.
  4. Ask the flash developer to add a tiny debug trace so the SWF logs whether the load succeeded and what value it received. For example (AS2 debug):
var cfg:LoadVars = new LoadVars();
cfg.onLoad = function(success:Boolean) { trace("ok="+success+"; home="+this.home); };
cfg.load("config.txt");

If the browser shows the file correctly but the SWF still sees undefined: check for server-side URL masking/frames (that changes the base URL), redirects, incorrect MIME types, or file permissions. If the SWF is served from another domain/subdomain, a crossdomain policy can block reads. If none of these explain it, capture the network request (browser dev tools) to see what the SWF actually requested and what response came back.

Recommended Answers

All 4 Replies

no one knows? :)

If you found solution, would you mind to share it with others? In doing so you may help somebody in the future...

EDIT:
I found you made another post and I merged them

If you found solution, would you mind to share it with others? In doing so you may help somebody in the future...

i'm sorry i still didn't find a solution! i'm using the normal linking way.

EDIT:
I found you made another post and I merged them

yea thanks the reason i created another one was because i wanted to remove the poll and i didn't know how to! but now its back again heheh you can delete the poll if you want.

Is the mysite.com your website?
The server you uploaded flash file is IIS or Apache?
If Apache did you make necessary configuration to support ASP?
The mysite.com has URL address masking which may conflict with your direct request for "aspx" document, was the flash designer aware of it?
Lastly it would be worth to have inside view on flash source file "fla" to check on the coding

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.