paulmason411
Posts: 127
|
| Posted: 10/30/2008, 6:39 AM |
|
Hi everyone,
I am building a gallery in adobe flash and need an admin section to create albums and upload photos. I know that flash has the ability when using custom libraries to connect to a mysql database, but I have a feeling its relatively unstable. I know the more common way with actionscript 3.0 is to use xml, please correct me if I am wrong.
So i was wondering if anyone has used codecharge to create an xml like database before, I don't suppose codecharge has any prebuilt code or utilities for this?
Interested in everyones feedback 
Cheers
_________________
http://paulmason.name - Web Development Blog
|
 |
 |
melvyn
Posts: 333
|
| Posted: 10/30/2008, 9:11 AM |
|
I've done. The best solution is generating xml from codecharge and pass them to xml.
Create a service page. The service will deliver you the data using a list <ul> <li> data </li> ....
you can change the ul and li tags for xml tags, so the php script will output an xml-formatted document.
From flash:
my_xml.load("http://www.mysite.com/my_app/services/gallery.php?gallery_id=1&size=20");
In the generated content is as I told you above, the above line will deliver the same as
my_xml.load("http://www.mysite.com/my_app/services/gallery.xml");
Try it.
_________________
Melvyn Perez
Puro Codigo
http://purocodigo.com |
 |
 |
paulmason411
Posts: 127
|
| Posted: 11/11/2008, 12:36 AM |
|
Thanks Melvyn, that's a nice shortcut.
_________________
http://paulmason.name - Web Development Blog
|
 |
 |
|