Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get URL value from text file

Status
Not open for further replies.

73pixieGirl

Programmer
Oct 3, 2006
65
US
Hello,
I have a text file that pulls data into my flash file. I'm able to pull in text in other areas, but now I'm trying to pull in a url (to a .wmv file) but when the page opens I get a "Page cannot be found" error, with the following in the url address "
It's adding a %3C// to the url and I don't know what I'm doing wrong.

In my text file, I have the following:
&page1_news1_url=http://www.gregorygetsresults.com/Clips/Files/Clip_8878.wmv

My button has the following action:
on(release) {
getURL(_root.page1_news1_url);
}

What am I missing?
TIA!
 
Hi oldnewbie,
When I put the trace in, the .wmv file loads and works great.

The trace output is:

It's actually an .html file that I'm working with. The files reside on my computer, the site isn't live yet. The file is just used to assign data to the variables that are then called from the flash file; it's not a normal html file.

Why would the .wmv file load when the trace line of code is put into the on(release)?
 
Hi again...I think I know why it wasn't working, and I was able to fix it, yet I'm sure there's a better way. The .html file is made up of variables that start with '&',
so there are a ton of variables on the page like the following:
<//Page-1//>
&page1_news1=<u>CNBC - Power Lunch</u>
&page1_news2=<u>CNBC - Morning Call</u>

&page1_news1_url=http://www.gregorygetsresults.com/Clips/Files/Clip_9635.wmv
&page1_news2_url=http://www.gregorygetsresults.com/Clips/Files/Clip_8878.wmv

<//Page-2//>
...etc.

None of the variables have a semi-colon or some sort of character at the end, identifying the end-of-line.
The first variable, &page1_news1_url, works, but the second variable kept on reading the lines below it, which happens to be a section header that should be commented out(the <//Page-2//>).

But when I added another variable (I threw in &test=) right after &page1_news2_url, both of the links work, the .wmv files load. I'm not sure why these variables are any different, the other variables (eg. &pop_up_title1= The Team) all work great, the text is displayed in the dynamic text boxes.

For now I'll leave the &test= in the file since it seems to be working. Thanks for your help!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top