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
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...
- URL Includes Reference to Page ID in Wordpress.
- Flash Calls the PressConnect getPost function.
- PressConnect Returns Page Attributes in XML Form.
- Flash Creates Instance of BLOG Template MovieClip
- The Blog Template makes a request for the 18 most recent entries starting from the most recent.
- By Default, load the most recent Blog Entry from the PostList.
- Blog Template has completed Loading.
links.
- SWFObject [EXTERNAL SITE] - Used to Display Flash Movie.
- SWFAddress [EXTERNAL SITE] - Used to Update and Listen To Browser's Address Bar.





