Page 1 of 1

Completely Lost : PHP>Actionscript

Posted: Wed Jun 06, 2007 12:54 am
by brasofilo
Inhabiting the middle lands of design and programing, I found a nice Flash tool and no damn explanation in the whole web.
It´s the text editor, Obedit.
There's nothing to change on actionscript side

I'm quite sure the answer relies on the file SAVE.PHP, that must change the file LOAD.PHP, which is read by Flash.
Basically: how to make SAVE.PHP write the LOAD.PHP file?
There's no mention of how-to-change-this on the little documentation, nor on Actionscript forums, neither on google...

So, here I am...

Thanks,
Rodolfo Buaiz

Posted: Wed Jun 06, 2007 4:44 am
by stereofrog
I'm not quite sure what you question is, but there's full fla source and examples in the archive.

Posted: Wed Jun 06, 2007 8:52 am
by brasofilo
thanks for your reply, stereofrog
well, I just can't make the SAVE.php replace the LOAD.php
what the SAVE is doing is simply printing the result to screen, it's not rewriting the LOAD
and this is not documented, anywhere...

Posted: Wed Jun 06, 2007 12:57 pm
by stereofrog
Sorry, but I don't get what you're asking. "save.php" receives the text as $_POST param and can do with it whatever it wants, for example store in a file or database. "load.php" takes the text from that storage (file, database) and prints it in urldecoded form. "save" should not overwrite or change "load".

Posted: Wed Jun 06, 2007 2:17 pm
by brasofilo
hi stereofrog!

I was afraid of not being clear enough on the question I have...

The scenario is:
- the load.php is suposed to be a News Section on a flash web page (news.php would be a better name)
- a flash file will read this load.php/news.phd and display it in the main page of the site
- in an administration page, I will have Obedit opening the load.php and editing it, and then saving it back using save.php

thanks for your time
Rodolfo