TestPoint example files

I am still waiting for my session on the TestPoint approach to show up on the 360Flex Conference video feed. In the mean time I have put up the source files to the examples I used during the session. You can find them at - http://renaun.com/blog/testpoint/. As I get more time I’ll be updating the TestPoint testing approach page with more information.

I also updated the RIALogger.swc and RIALoggerApp AIR application with some minor changes.

1 comment August 26th, 2008


QTIndexSwapper v1.4.2 update

This release is a bug fixed around reading atom’s that are not more than 8 bytes. Thanks to Brandt Michael for pointing out the bug. I guess it affected mp4’s coming from ffmpeg.

Add comment August 14th, 2008

Gumbo Skin mxml with Flex Builder 3 namespace error

I am using Flex Builder 3 to build Gumbo (Flex 4) application targeted for Flash Player 10. I came across this situation in the Gumbo skin file where I wanted to put a mx.controls.Image control into the skin. When trying to add both “http://ns.adobe.com/mxml/2009″ and “http://www.adobe.com/2006/mxml” namespaces I get the following error.

Only one language namespace must be specified per document. Found ‘http://ns.adobe.com/mxml/2009′ and ‘http://www.adobe.com/2006/mxml’.

To get around this you need to declare the specific package as the namespace. Like this:

xmlns:controls=”mx.controls.*”

NOTE: There is more in depth information on this namespace issues in MXML 2009 spec under “Namespaces and Component Disambiguation”.

2 comments August 5th, 2008

RIALoggerApp and RIALogger.swc updates

I have finally been able to get some time to overhaul the RIALogger and supporting logging classes. This version does not work with older versions as I change the plumbing (how the data goes across LocalConnection) drastically for performance reasons. You’ll need the new RIALogger.swc that now uses a RIALogger class instead of Logger class.

Main changes:
- multiple windows, the main window has bars that show the log identifier and how many log messages.
- popup windows show the log messages as well as features for the new TestPoint approach
- By default the RIALoggerApp is not listening for log messages, you have to turn on the connection. You can toggle it on and off now.
- Two color themes (dark,blue) for the application, maybe more in the future.
- Self updating, it checks for updates and prompts the users if they want to update.

If you want to find out more about the TestPoint approach, register for 360Flex San Jose and come to my talk.

Add comment July 26th, 2008

360Flex <30 days <$500

I’ll be speaking at 360|Flex! But don’t let that stop you from attending.

You should be attending to hang out at the eBay campus with a bunch of cool/weird/fun/nerd/weirder/hungry/bright/geek/etc… flex developers! You can figure out where Tom and John fit into the picture but you need to Register now!

1 comment July 14th, 2008

DashedLine and DashedPolyLine extending Degrafa

I needed to draw some dashed lines and polylines for something I was working on. I was already using Degrafa and wanted to create the dashed lines by extending Degrafa. It was actually easier then I thought it would be.

You can see the finished result here and the view source code is enabled through right clicking. The two new classes DashedLine and DashedPolyline extend Line and Polyline and added two new properties “dash” and “gap”. You set these two values with the value of how big you want the dash and the gap to be. In the future this could be extended to have any number of dash/gap patterns but all I needed was a simple repeating one.

This was based on the Degrafa 1.2 swc but it should work for the 2.2* latest drops.

All the extending that was needed was to inherit the Line and Polyline class and override the preDraw() method. In the overridden preDraw() method I looped through the normal x,y cords and create extra commands based on the dash and gap properties that I exposed in the two new classes DashedLine and DashedPolyline.

NOTE: I did find the use of private member variables and methods in Line and Polyline to be restrictive and had to call super.preDraw() first to make sure some things where called. It still worked for my case but if you wanted to do something total different it was impossible to set the _setBounds correctly.

Add comment June 16th, 2008

RemoteObjectAMF0 swc for Flex 3

There was a small change in Flex 3 that causes the RemoteObjectAMF0 class to not compile in Flex 3 apps. I have updated the class and the swc.

The updated RemoteObjectAMF0 code can be found in the renaun_com_RemoteObjectAMF0_flex3.swc in the zip file at - http://renaun.com/flex2/RemoteObjectAMF0/renaun_com_RemoteObjectAMF0.zip

NOTE: updated again to add a line to delete references to the responders after it is passed back.

3 comments June 16th, 2008

RIALogger updated to v1.6

The release of RIALogger v1.5 for AIR 1.0 was not very stable and was in between a transition period. I originally thought I would get around to update it quicker. Well I finally updated to be more stable and better performance when viewing large amounts of data. A new UI update will hopefully come after this.

Get the newest application here.

Add comment May 16th, 2008

AMFPHP Deserializer and POG classes

The default AMFPHP patterns for including classes defined in your AMF requests do not work for POG classes. The two default patterns that are check for class including by the AMF deserializer are:

PHP:
  1. // $mappedClass = SomeObject
  2. $mappedClass . "php" // SomeObject.php
  3. // or
  4. $mappedClass . ".class.php" //SomeObject.class.php

For POG classes the pattern is "class.someobject.php", regardless of the case of the SomeObject class.

Now to added different locations for AMFPHP to look for classes to include for deserialization of AMF requests you open up /amfphp/core/amf/io/AMFBaseDeserializer.php. Go to line 384 (as of AMFPHP 1.9 or the block of code starting with file_exists($GLOBALS['amfphp']['customMappingsPath']) and add the following code for POG classes pattern:

PHP:
  1. elseif(file_exists($GLOBALS['amfphp']['customMappingsPath'] . 'class.' . strtolower($mappedClass) . '.php'))
  2. {
  3.     $include = $GLOBALS['amfphp']['customMappingsPath'] . 'class.' . strtolower($mappedClass) . '.php';
  4. }

Now your AMF request classes passed in method parameters will be deserialized on the PHP to the correct POG class.

3 comments March 21st, 2008

RIALogger v1.5 updated for AIR 1.0

The RIALogger has been updated to the latest AIR release v1.0.

You can get the more information about the RIALogger and the custom logging target here.

Add comment March 5th, 2008

Previous Posts


Disclaimer: I work as a Flash/Flex Developer for Adobe Systems Incorporated. The opinions expressed here represent my own and not those of my employer.

My Amazon.com Wish List

Categories

Links

Feeds


Flex.org - The Directory for Flex