Friday, January 13, 2006
Flash on Wordpress
Matt wants something called a "Lifeposter." He wants to have private interactions with individual clients, so each client must have a section on his website where they can log in and then see a history of their last communications, see pictures and post comments. He doesn't care how it works, as long as it works.
My task is making it work. I want to use Wordpress 2.0 as the base content manager and then flash as the user interface. And I have 45 minutes till I see Matt...
Luckily I've already done the base Wordpress install and am now looking at sites for how this is going to work. The best advice seems to use the xml-rpc interface to communicate with Wordpress and then format the returned content nicely in flash. I'm also going to have to play around with user permissions as the blog is essentially private.
The links I found which detail a flash frontend to wordpress are:
http://similitude.sim-designs.net/2005/8/31/how-it-works/ Only works on Wordpress 1.0 ("very, very beta"). After installation only the flash interface works - it messed up your usual wordpress install.Compl33t has a working version, but it uses php to access the database and generate a text file which flash then reads. Not what I want.
SS Design has the best one available - a full working preview of flash on top of Wordpress. However, the source code doesn't seem to be available.
So I'm left to building my own...
All I need to do is figure out how to communicate between flash and the wordpress xmlrpc. Luckily mattism.com shows how to do that using actionscript and XMP-RPC client for Actionscript 2:
import XMLRPC.Connection;
var rpc:Connection = Connection('http://www.myserver.com/rpc');
rpc.onLoad = function( menu:Array ){
trace(My menu has + menu.length + items.);
}
rpc.getMenu();
For interests sake, check out flash remoting. They have defined their own low-level protocol to exchange database between a flash client and a server - much quicker than xml but not what I need right now.
My task is making it work. I want to use Wordpress 2.0 as the base content manager and then flash as the user interface. And I have 45 minutes till I see Matt...
Luckily I've already done the base Wordpress install and am now looking at sites for how this is going to work. The best advice seems to use the xml-rpc interface to communicate with Wordpress and then format the returned content nicely in flash. I'm also going to have to play around with user permissions as the blog is essentially private.
The links I found which detail a flash frontend to wordpress are:
http://similitude.sim-designs.net/2005/8/31/how-it-works/ Only works on Wordpress 1.0 ("very, very beta"). After installation only the flash interface works - it messed up your usual wordpress install.
All I need to do is figure out how to communicate between flash and the wordpress xmlrpc. Luckily mattism.com shows how to do that using actionscript and XMP-RPC client for Actionscript 2:
import XMLRPC.Connection;
var rpc:Connection = Connection('http://www.myserver.com/rpc');
rpc.onLoad = function( menu:Array ){
trace(My menu has + menu.length + items.);
}
rpc.getMenu();
For interests sake, check out flash remoting. They have defined their own low-level protocol to exchange database between a flash client and a server - much quicker than xml but not what I need right now.
Technorati Tags: flash, wordpress, xmlrpc, actionscript