Forum Moderators: open

Message Too Old, No Replies

Flash Scripting Problem - Conflict with PHP

a problem with loading variable from text file

         

filip

12:58 pm on Sep 2, 2002 (gmt 0)

10+ Year Member



hello
i wan't to make a flash file to read an variable from an external text file wirh this form
stiri=<a href="http://www.informatia.ro/modules.php?name=News&file=article&sid=2261&mode=&order=0&thold=0" target="_blank">Some news text</a><br>
the problem is i thing that when the flash read name= it think I wan't to define a new variable not the initial "stiri" variable.
i removed the link.. sorry i didn'y knew it is forbiden

I hope you will help me..
Filip

PS:Sorry for my english it's not my first language

[edited by: filip at 2:27 pm (utc) on Sep. 2, 2002]

BlobFisk

1:59 pm on Sep 2, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Filip,

Welcome to WebMasterWorld! Linking to personal sites and files is against the TOS [webmasterworld.com] here, and I reckon that a Moderator will be along shortly to remove it. Reading Paynt's article for people new to WebmasterWorld [webmasterworld.com] is a must!

With regards to your question, maybe if you post up the ActionScript that you are using, it may help people to figure out where your problem is. Quick question: Is the variable (in the textfile) that you are trying to call the same as the one in your ActionScript?

filip

2:28 pm on Sep 2, 2002 (gmt 0)

10+ Year Member



the action script is:
loadVariablesNum("index.txt", 0);
and the content of index.txt is:

stiri=<a href="http://www.example.com/modules.php?name=News&file=article&sid=2261&mode=&order=0&thold=0" target="_blank">Some news text</a><br>

[edited by: tedster at 8:34 pm (utc) on Sep. 2, 2002]
[edit reason] switch url to example.com [/edit]

BlobFisk

2:33 pm on Sep 2, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is the instance of the dynamic text area are that you are loading the variable into also called stiri?

dhdweb

3:09 pm on Sep 2, 2002 (gmt 0)

10+ Year Member



Every time you put "&" Flash will think it is a new var.

I also don't belive that what you are trying to do can be done this way.

What version of Flash are you using?

filip

3:19 pm on Sep 2, 2002 (gmt 0)

10+ Year Member



so:
the dynamic text area is called stiri.. it works with a simple text like "hello world" but when I put something like
stiri=<a href="http://www.exmple.com/modules.php?name=News&file=article&sid=2261&mode=&order=0&thold=0" target="_blank">Some news text</a><br>

Is it any way to make it work because i can't remove the "&"
I am using flash 5.. Anyone can help me please..??

[edited by: tedster at 8:34 pm (utc) on Sep. 2, 2002]
[edit reason] switch url to exmple.com [/edit]

korkus2000

3:22 pm on Sep 2, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



have you tried using "%26" to replace the "&" in the variable?

here is a page I found at macromedia that may help.
[macromedia.com...]

filip

3:43 pm on Sep 2, 2002 (gmt 0)

10+ Year Member



in my case i can't do this because the file index.txt will be generated from a database of php Nuke. in anyone has another solution..

Filipe

7:52 pm on Sep 3, 2002 (gmt 0)

10+ Year Member



You can probably tweak phpNuke to create the output you want. Need to know PHP though.

(By the way, nice name filip)