Flash Press
Update – 04-12-2009
I’ve been reworking these files to support wordpress 2.9, and to move away from interacting on the wordpress database directly. Rather I’m simply using native wordpress methods directly and returning results that way. I’ve also built in a method for calling any of the various wordpress methods available and not supported directly in any of my code.
I’ll get the new files up as soon as I can. Oh, and I’m gonna come up with some new name, as there is an existing project that although seems dead, shares the same name..
I’ve only looked at working with ZendAMF, it looks like AMFPHP is pretty much dead. Heh, I cant even get the method browser to run on my machine anymore…
Flash Press is simply an AMFPHP and Zend_AMF service for connecting to Wordpress.
The purpose of the project is to allow for using Wordpress as a CMS for Flash websites etc.
Currently it only supports read operations from the Wordpress database. However, I do want to look at adding write support.
Source Files
You can view an example of it at work here: http://www.noponies.com/dev/cloud/
Which is using a hacked version of the WP-Cumulus Wordpress plugin, from here: http://www.roytanck.com/tag-cloud/. Instead of using a PHP method to create XML, I’m just using AMFPHP to call a getTagCloud method, and using the data in a similar fashion to how the WP-Cumulus Flash file works. Clicking on either a category (white text) or a tag (grey text) calls another method that pulls the various posts that are filed under that particular category or tag. Pretty simple stuff.
Version History – Current version 0.2
0.1 – AMFPHP support
0.2 – Zend_AMF support
Source Files
Flash Press (1989) -
Requirements
Wordpress 2.7+ (untested on versions below 2.7)
Either or;
AMFPHP 1.9
Zend AMF 1.75
Let me know if there are bugs etc. I’m not really a PHP guy, nor a MYSQL guy, so I’m definitely interested in hearing about ways to improve things. This page is simply to stop the project getting buried within all the other posts on this blog.
Other Related Projects
Amfphp WordPress Integration (AWI)
FlexPress
FlexDb

March 15th, 2009 at 10:07 am
[...] It’s still in development but a nice project they are working on, so have a look. [...]
April 2nd, 2009 at 9:14 pm
Hey Dale,
Could you use this for flash to read blog posts? I am looking to feed a wordpress sites posts into flash. Is this possible?
August 3rd, 2009 at 8:52 pm
Hey There,
Thanks and Great work with this. I’m looking forward to using this to read/write to word press. Any idea when the service will support the write feature?
Cheers!
August 3rd, 2009 at 9:13 pm
I’m in two minds about adding in write support, as wordpress itself is such a nice cms. I guess it makes sense for flash to be able to write the odd thing to the wp db, but I’m not sure if I want to replicate wordpress’s write features.
August 8th, 2009 at 2:09 am
i hear ya. Maybe just a few of them? like for posting? If you need a little more motivation let me know. Working on something right now and I can get you a little something for your troubles…
August 11th, 2009 at 11:15 pm
Hey can you give me a holler? I’d like to discuss further dev on the framework…sgreen[at]wishb.com
October 11th, 2009 at 10:09 pm
HI Dale!
First, thanks for the mind blowing material!
I was trying to use your files with zend, but I donĀ“t really know how to integrate your code with zend… could you give us a light?
all the best !
bruno
November 5th, 2009 at 3:27 am
Man what a pain to get Wordpress to communicate with Flash in a fairly straightforward way. Thank you for the relief of your amfphp service, it worked on the first try, and the comments are great! No more XML-RPC, no more atom feeds, just AMF the way it’s meant to be.
Cheers,
Eric-Paul.
November 23rd, 2009 at 12:14 pm
Hi Dale,
I’m just starting out with this, setting up the “simple_demo” and I keep getting these errors. I can see what it’s asking for but don’t know how to fix, pls help.
mysql_connect(): Access denied for user ‘apache’@'localhost’ (using password: NO)
November 23rd, 2009 at 4:24 pm
actually, scratch that, founf the ConnectionHelper.php file.
is there any source files for anything inbetween the simple demo and the cumulus_demo. Big jump between the two, be good to get my head around some middle ground? Thanks!
November 24th, 2009 at 3:58 pm
@kevin,
No, nothing in between the two sorry.
November 29th, 2009 at 5:41 pm
[...] and changed so often, it’s hard to find something online that works with the current version. No ponies’ Flash press looked promising, even using AMF to speed up things, but it’s no longer compatible with the [...]
January 3rd, 2010 at 7:52 pm
[...] these nice utilities that that guy Dale at noponies.com rolled called “flashpress” (found here). I can’t remember if I’ve ever written a post about this, but the name basically says [...]
January 13th, 2010 at 1:59 pm
Hello, wonderful class, yet I can’t bend my mind over this oddity.
If you have an image with a caption in a wordpress post,
how do you trace out the caption data single handed?
Because when you trace out your object[i].post_content
you see a [caption = url…. title=”…”) but how do i access that title ?
I could post some code here but I don’t want to mess up the layout here. A friend advices to rewrite the string that this class parses out… but we can’t find anywhere where this happens.
So in short: how can I trace out the attribute of an encapsulated image in a blogpost via flash_press class
Thank you.
January 15th, 2010 at 11:17 am
Oh, getting an images attributes from within a post, as opposed to looking up the image directly. I’d have to have a look into that as I’ve not actually tried to do it.
January 15th, 2010 at 3:41 pm
Dale, I found a way of doing this. But it would demand some recoding of the way things are parsed out.
Could you please contact me email is on my site or the name here.
We could discus this over skype 4.1 through screen sharing.
Its a long explanation but it should be doable.
I tried to email you but every mail i found returns a daemon.
(delete this comment if you feel to, its irrelevant, don’t wanna mess up the site)
Thank you & i understand if you don’t find the time for it.
Peter
January 23rd, 2010 at 1:31 am
[...] http://www.blog.noponies.com/flash-press/ Recent stuff, works with the latest versions of Wordpress, supports either AmfPhp or Zend amf. [...]
January 23rd, 2010 at 1:46 am
Thanks for the files, looks great, as for the name, why not Wordprash…
PS: I have post about your work
(http://www.pixellovin.com/actionscriptstuff/wordpress-flash-integration#more-392)
February 26th, 2010 at 6:46 pm
Is there a way to grab a posts title AND first image? I see there is a there are separate services that do it (by ID). I have been trying like crazy to get my banner to show the first image and title..
March 1st, 2010 at 2:17 pm
Hi Dale,
I had been casting around for a while, looking for the best way of having a blog in a website I’m putting together, and this really seems to fit the bill.
Excellent stuff – really looking forward to the next update.
Tim
March 3rd, 2010 at 6:09 am
http://www.press2flash.com/ Similar I think? Were you still working on this?
March 4th, 2010 at 10:07 am
Hi, I developed and just released kind of a similar project to yours : http://www.press2flash.com/
It’s interesting to see how you developed something completely different than I did, started from the same concept!
March 4th, 2010 at 9:17 pm
@Erwan,
Yeah it is interesting that we both tackled the same problem. A few other people have tried the same thing in the past. I see that you went the XML method, I thought about doing that, but got sucked into using AMF. I should get the next update out soonish.
March 4th, 2010 at 9:18 pm
@Jeff,
Yeah similar, that one is XML based and more of an AS framework. Yeah, I’m still working on it, actually did some work on it today. Wont be long.