Now here is the question... Which one is best, of those two methods? What
are the advantages, and disadvantages of each one? Which one can I use to
bulid a CMS based Application?
None ;-)
Remoting (and/or WebServices) is the way to go if you're serious about CMS type
applications.
And in that case I'd advise you to dump Flash and see what Flex has to offer.
It just doesn't get any easier than this:
<mx:WebService id="ws" useProxy="false" showBusyCursor="true"
wsdl="http://domain.com/service.cfc?wsdl" />
<mx:RemoteObject id="ro" destination="ColdFusion" source="path.to.remoting.Service"
showBusyCursor="true" />
And if you want to take it a step further, look into LCDS (LiveCycle
DataServices) and/or BlazeDS
http://www.adobe.com/products/livecycle/dataservices/
http://www.adobe.com/products/livecycle/dataservices/faq.html
http://labs.adobe.com/technologies/blazeds/
Remoting comes in different flavors (ColdFusion, Java, PHP, .NET, etc..).
Google "Flex remoting" to get all the info you need.
ColdFusion has remoting built in and the latest version (ColdFusion 8) also
comes with LCDS (w00h00).
Since you mentioned PHP, look into AMFPHP:
http://amfphp.org/
For use with Flex you'll need the latest version, which is AMFPHP 1.9
http://www.5etdemi.com/blog/archives/2006/12/amfphp-19-beta-get-it-now/
http://www.5etdemi.com/blog/archives/2007/01/amfphp-19-beta-2-ridiculously-faster/
WebOrb has remoting versions for PHP, .NET, JAVA.
http://www.themidnightcoders.com/weborb/
So to create an CMS I should use Flex... But it is possible to do it in
flash too? I mean if I want to make more Interactive Interfaces, and
transitions...
What makes you think "Interactive" is limited to Flash?
Oooh, transitions.. as in?
http://livedocs.adobe.com/flex/201/html/transitions_080_01.html
Have a look at these if you haven't already:
http://www.adobe.com/devnet/flex/samples/code_explorer/
http://www.adobe.com/devnet/flex/samples/flex_store_v2/
http://www.adobe.com/devnet/flex/samples/style_explorer/
regards,
Muzak
----- Original Message -----
From: "Omar Fouad" <[EMAIL PROTECTED]>
To: "Flash Coders List" <[email protected]>
Sent: Saturday, January 26, 2008 9:23 PM
Subject: [Flashcoders] Flash and Database Issue - Need Advice
Alright,
it's been two years since I begun developing flash websites, but only now I
understand the benefits of a database driven Flash online application.
I am trying to figure out the different techniques, advantages and
disadvantages of how Flash, Flex and AIR can connect to a database, and
hence read - write data to it on run time.
I've read a lot concerning this issue and what I need is some advice from
you flash experts, seen you have obviously more experience than me.
What I've understand is that:
1 - Flash can only connect to database using a serverside script such as
php;
2 - Flex can connect to database using serverside scripts and can connect to
database directly (Flex 3), but it is a very bad idea since the swf files
can be decompliled and hence, the data can be accessed by anyone;
3 - AIR can connect to a local Database (SQLite), or can connect to an
online database using serverside Scripts.
At this point, I've approached two ways to process database data with
Flash...
The first one is to Post data from flash to a php file, (with LoadVar) -->
PHP connects to the database, executes the queries, and returns to the SWF a
data string (using print or echo).
The second way (and apparently the most used) is to let php print or echo
the data queried from the database, in an XML format that flash Processes
using the XML Class or whatsoever.
Now here is the question... Which one is best, of those two methods? What
are the advantages, and disadvantages of each one? Which one can I use to
bulid a CMS based Application?
Thanks for your Time.
And Best Regards.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders