Posts filed under 'Adobe Flex'

New = StructuredLogTestingSDK.swc, Old = RIALogger.swc

Its come to my attention that there has been some confusion around getting the Structured Log Testing SDK up and running. The confusion has to do with the old code I used that was located along side the RIALoggerApp (an AIR application for viewing logs/structured logs). I have gone ahead an removed all the old RIALogger.swc code that was using the older RIAlogger class for logging. The new class to use is the SLog class and can be found in the StructuredLogTestingSDK.swc over on the http://structuredlogs.com site.

So in with the NEW (StructuredLogTestSDK.swc) and out with the OLD (RIALogger.swc).

Add comment May 20th, 2009


Thoughts I missed in my Session

If you didn’t catch all the good testing discussion’s we have had on the first day of 360Flex you’ll want to lookup whats going on with FlexUnit4 and Structured Log Testings.

Since yesterday and after my session there where some things that I didn’t touch on as much as I wanted to. First, Structured Log Testings was released in the wild yesterday. Structured Log Testings is meant to be a community project and any one wanting to get involved please let me know. Since the structured log format is really just JSON’d data with specific properties that need to be define this approach is not tied to a specific language. This also means its not just tied to client side but could be on the server side. For example think of gathering structured logs from your client as well as the server and then having a tool to view the data points in connection with each other. Then the next time someone has a bug they can send your the logs from the client, you find the logs on the server and see what went wrong.

A big part of this technology is the non-tech part, or the approach and mind set part. This is a new way of thinking about testing on a whole. Its meant to be very flexible in all phases of the project (development, deployment, maintenance). I hope to keep information and articles going on this progress and examples over on Structured Log Testings.

On the FlexUnit4 side if you are interested to see that project move forward with integration into next Builder release go vote.

1 comment May 19th, 2009

PHP Script for Stratus Video Phone Sample Application

Stratus is an Adobe technology up on labs that allows for Flash Player 10 and AIR 1.5 RTMFP real time communication connections. The most important features of RTMFP include low latency, end-to-end peering capability, security and scalability.

As part of the labs release there are an article and sample application.

Article 1
Stratus Sample Application

The Stratus Sample Application source files come with a cgi script for registering user’s identities (the NetConnection.nearId used for RTMFP net stream connections).

What this post is all about is a port of that cgi script to PHP. I was playing with the Stratus application on my own server and used PHP so I figured I would put the file out for others to use.

The file is renamed to a text file reg.txt but just download it and rename to reg.php to use.

Add comment April 7th, 2009

backgroundColor with showFlexChrome=”false”

I came across a scenario that I wanted an AIR app to have a background color set while systemChrome="true" but showFlexChrome="false". Here is another post describing the problem. I tried to figure out what was going on and how the green-greyish background shows up (or white background in Flex 4) but couldn't figure out where that is created. But I did notice that when showFlexChrome="false" that the backgroundAlpha style was set to 0. So the workaround for the problem is to set the backgroundAlpha back to 1 after the application has created it self (on creationComplete event).

XML:
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <mx:WindowedApplication
  3.         xmlns:mx="http://www.adobe.com/2006/mxml"
  4.         layout="vertical"
  5.         backgroundColor="0x0000FF"
  6.         creationComplete="setBG()"
  7.         showFlexChrome="false"
  8.        >
  9.     <mx:Script>
  10.         <![CDATA[
  11.             private function setBG():void
  12.             {
  13.                 this.setStyle("backgroundAlpha", 1);
  14.             }
  15.         ]]>
  16.     </mx:Script>
  17. </mx:WindowedApplication>

Is there an easy way to do this? So the easier way of setting a background color withe showFlexChrome="false" is to set the background color of the SWF.

Cookbook link for setting SWF background value.

Add comment February 5th, 2009

PS3 2.53 firmware update gives us fullscreen FP9 support

So the updated is finally here. The fullscreen on hulu.com is working, but its a little choppy on the FPS. The fullscreen doesn't fill up my 1080p screen like watching fullscreen hulu on my PC. YouTube's fullscreen that was in a page was interesting. It worked but the quality was lacking.

Other cool feature support was my friend says he was watching hulu movies on his PSP with remote play.

Either way this is good progress for the Flash Platform. And remember to go get 2.53 right now....

3 comments December 2nd, 2008

Application.application.url in Flash AS3

The solution to accessing the loader information url property is quite easy in Flash ActionScript 3. But when you Google for the solution its not obvious. Hence I am creating a post about it.

In Flex you can access the url of the SWF by accessing Application.application.url. What this value represents is the root.loaderInfo.url property. So in Flash and AS3 you would do this:

ACTIONSCRIPT:
  1. var tf:TextField = new TextField();
  2. tf.autoSize = TextFieldAutoSize.LEFT;
  3. tf.border = true;
  4. addChild(tf);
  5.  
  6. tf.appendText("params:" + "\n");
  7. try {
  8.     var keyStr:String;
  9.     var valueStr:String;
  10.     tf.appendText(LoaderInfo(this.root.loaderInfo).url + "\n");
  11.     var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
  12.     for (keyStr in paramObj) {
  13.         valueStr = String(paramObj[keyStr]);
  14.         tf.appendText("\t" + keyStr + ":\t" + valueStr + "\n");
  15.     }
  16. } catch (error:Error) {
  17.     tf.appendText(error.toString());
  18. }

The important part is accessing the root's loaderInfo object. The above code also shows how to access the FlashVar parameters in ActionScript 3.

Example code referenced from here.

Add comment October 16th, 2008

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.

5 comments 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

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

Calendar

July 2009
S M T W T F S
« May    
 1234
567891011
12131415161718
19202122232425
262728293031  

Posts by Month

Posts by Category


Flex.org - The Directory for Flex