Press Connect
php

Download Files
Version 2.2 - 2008/03/21
PressConnect is a PHP Script I have developed to connect my Flash Website to my Wordpress Content.

The Code interrogates the Database and Returns Posts, Pages, Categories, and Creates Menus in XML

Just Updated with Better Code and New Functions.

New: I have release the .fla file my website is based on, it is available for purchase, click here
Flow Chart Example

sample.

You Still Need to Create a Flash Website... and a WordPress Site.
The Script only allows you to extract data from WordPress in an XML Format.

example.

This Simple example shows how the Blog page is loaded on tvwonline.net

A 'Page' (id 44) is created in Wordpress. This page has a custom attribute called tvw_template. It is this field the Flash website uses to determine which Template Movie Clip to use.

Each template is a different movie clip in the Library. It is added to the stage when it's required.

The Template then constructs itself, making additional requests to the server if required.

In the Blog Example, the Template knows it must load a list of previous Blog Entries to build a menu on the side, and then it must load the most recent blog entry.

Also, if you want to allow your visitors to post comments, you can use WordPress's own Comment Script. Locate the file: wp-comments-post.php, and lookup the fields required to post.

 

What's Happening in the Diagram...

  1. URL Includes Reference to Page ID in Wordpress.
  2. Flash Calls the PressConnect getPost function.
  3. PressConnect Returns Page Attributes in XML Form.
  4. Flash Creates Instance of BLOG Template MovieClip
  5. The Blog Template makes a request for the 18 most recent entries starting from the most recent.
  6. By Default, load the most recent Blog Entry from the PostList.
  7. Blog Template has completed Loading.

Diagram of How PressConnect is used on tvwonline.net

links.

  1. SWFObject [EXTERNAL SITE] - Used to Display Flash Movie.
  2. SWFAddress [EXTERNAL SITE] - Used to Update and Listen To Browser's Address Bar.