Flashpress 0.9 Released

Go here to see the small write up and get the files.

http://thereformation.co.nz/amfphp/flashpress-0-9-released/

I’ve moved Flashpress off this blog, to its new home on my NZ based design company site, http://thereformation.co.nz. Over time, all content here will migrate to that location.

Flashpress 0.9 Comments

I’m just finishing off the next version of FlashPress.

Apart from some bug fixes, the main change is the addition of a postComment, userLogin and userLogout methods.

Changes:

  • New postComment method
  • New getPostTems method (this depreciates getCategories)
  • New userLogin method
  • New userLogout method
  • Addition of customTax property on PostVO object, to handle custom taxonomies on post objects
  • Slight changes to TermVO object properties. One additional property added
  • Bug fixes for getPost method
  • Bug fixes for getUser methods and WpUserVO object
  • Adjustments to the search method so it searches custom post types as well as built in

Some thoughts about the postComments method.
This is currently working fine in dev. I’m curious as to how you would like this method exposed. It does write to the DB, so I’m in half a mind to wrap it within the current writeable variables. However, in doing so, you make available the rest of the writeable methods, which might not be that desirable to all users. I’m hesitant to go down this path.

So, what about a new global constant that either allows/ restricts comments? Or I can simply hook into the wordpress options and check what is set within the ‘Discussion’ panel and on a per post basis and allow / restrict comments based off that?

At the moment the method does not validate against users. Any new comments are placed into the moderation queue. A subsequent comment from a commenter that has an approved comment is automatically approved. Which is left up to the wordpress commenting mechanism.

Commenting really requires basic user management. Do you want to see this in FlashPress. Something like a login / logout method? Which I’ve added.

Commenting now hooks into the WordPress options settings, honoring either the blog wide and or individual post commenting settings.

Any other methods that you think should be in? If not, I’ll freeze the API and just clean up the classes documentation, fix bugs and roll out a version 1 release along with some examples. Happy times.

FlashPress needs a new name

There is another, seemingly dead WordPress – Flash project out there called FlashPress.

I’ve never gotten around to coming up with another name for what I’m doing.

Anyone got any ideas?

Simple Flash to browser console logging

If you are like me, you like to be able to trace out commands etc from Flash into your browser container. I generally use FlashTracer on Firefox or a more full featured debugger.

However, sometimes I simply want to trace elements into the console of either Safari or Firefox. This is as simple as using ExternalInterface and a small javascript method that takes a single parameter and writes it to the browsers console, via console.log(). Which can then be inspected via Safari’s debug panel or within Firebug on Firefox. And yes, I realise I could use Flashbug or something similar, but to be honest, I hardly ever use Firefox, hence the desire for something that works in Safari.

Simple example file is attached.

Source files
Simple Flash logging (1258)

Jquery Fullbrowser Background Images

I seem to be spending more and more time using jQuery than I do Flash, but I think that is just the nature of my current job. I’m actually really enjoying jQuery, it’s a breeze to use and in most instances you can do what you can do in Flash with javascript, only quicker.

To cut a long story short, I had a project come up that needed a javascript full browser background image class, and being the nerd I am, I thought I’d roll my own rather than use any existing jQuery plugins.

I approached it from a Flash standpoint, and tried to replicate the way I use my Flash full browser classes. So rather than operating on a container of image urls as most jQuery full browser plugins do I set this one up to respond to a method call, and load and display each image as requested. The reason for this approach was that I wanted the plugin to only load what images were requested, by me when I wanted them. I’m thinking however of adding in the ‘operate on a container of image urls’ approach to a future iteration.

As this is my first attempt at writing a jQuery plugin I’ve probably made a ton of noob mistakes. Let me know how it works and any bugs you encounter.

Plugin Features

  • Set Fade in time
  • Center image within browser window on x axis
  • Callback methods

An example of loading a single image;.
http://www.noponies.com/dev/jquery-npfullbrowser/static.htm

An example of setting up a slideshow;
http://www.noponies.com/dev/jquery-npfullbrowser/slideshow.htm

Source Files
Here is the relevant source file; jquery Full Browser Background Images (1490)

By downloading, you agree to the terms of use, outlined here: http://www.blog.noponies.com/terms-and-conditions

Dependencies
Zero

Moved to England

After 30 odd hours of flying, transit lounges and endless spinach pasta stodge, I’m in London.

Now to find a job, if anyone knows of any Flash work going over here, drop me a line.

I have a job, house, etc thanks to all the people who posted links. Now I just need the weather to warm up.

Getting Ripped off on Flash Template Sites

I recently discovered a user at http://flashden.net was using one of my files as a paid template, an older version of my FullBrowser Content file.

While I give most of my files away, I do stipulate that they are not used as the base for making money off of, by turning them into templates etc that are on sold multiple times. Generally this is a good faith agreement, between myself and whoever uses my files. I have received alot of help from various blogs and forums with learning ActionScript, and this blog is a means to return some of that help.

What was and is most frustrating about this experience, has been my dealings with Flash Den, and the user who ‘borrowed’ my file. It was pretty clear cut to me, that this user had stolen my source. I mean, I decompiled his preview and had a look at it to see.

Seems that FlashDen were just taking their time, and have since removed this offenders and another’s from the site. So, well done to them.

Check out this for similarities:

His file contains these constants;

public static const BG_LOADING:String = "newslideloading";
public static const UNLOAD_BG:String = "unloadbg";
public static const BG_LOADED:String = "newslideloaded";

My file contains these constants:

public static  const BG_LOADED:String  = "newslideloaded";
public static  const BG_LOADING:String  = "newslideloading";
public static  const UNLOAD_BG:String  = "unloadbg";

His has these vars (just some of them)

private var YminStageSize:int;
private var useMinStageSize:Boolean;
private var XminStageSize:int;
private var imageScaleProp:Number;

Mine has these vars (again, just some of them)

private var useMinStageSize:Boolean;//use a minimum stage size?
private var XminStageSize:int;
private var YminStageSize:int;
private var imageScaleProp:Number;

You get the idea. Not only were the constants, vars the same, but the method names were the same, along with the functionality of each method.?Ǭ†The only change was the shift from tweenLite to tweener for some animation, and the removal of all the garbage collection methods and event handling. The guy was so crap, that he left the constants in there, not understanding that they were for custom event dispatches, but deleted the custom event handling. The user was adamant that he didn’t use my file, when clearly he had. After a few emails, he decided to delete ‘my’ file once he realised he had been caught out.

I decided to report him to FlashDen, and provided the FlashDen staff with my source files, and a link to his. Their response was that no copyright infringement occurred, and that the user probably just deleted his file to “make some modifications”. I couldn’t believe it, I mean, clearly his file is totally based off of mine. This user is still happily uploading new files.

So, in the end, its worked out OK. FlashDen took their time, which I guess is OK. As they investigate any issues, rather than issuing instant take down notices if someone thinks something is copyright.

On another forum, some other user posted class files from the Martha Mclean website I wrote, trying to get help with the mess the decompiler made of it all. I recognised the code instantly and questioned where it came from. What an idiot. If the dude actually just tried to learn how to do it, then he would be set, its not even that hard..

Next Page »