Archive for 'Flex'
Debug [server + client] LCDS Java HelloWorld in Flex Builder
2 September 2009Prerequisites
Install Flex Builder
Install LCDS Data Services
Install WTP in Flex Builder
Here’s a simple project that shows you how to create a simple Hello World for Flex + Java via LCDS. I’ll also show you how to debug the server [java] code as we move along.
File->New->Flex Project
For application server type select J2EE
User remote object access
LiveCycle […]
VerifyError: Error #1053: Illegal override of removeChild Bridge in mx.managers.SystemManagerProxy.
25 March 2009Ran into this error recently when using automation testing (RunTimeLoading.html/swf).
Turned out to be a recently updated SWC (library) that was compiled under a newer SDK than the main app.
With the mixed SDKs main app / SWC(s) RunTimeLoading.swf was unable to load regardless of which SDK version RunTimeLoading was compiled under.
Flex 4 (Gumbo) Compiler Benchmark
21 November 2008‘Benchmark’ is being used pretty loosely here. I just got back from MAX and thought I’d check out the new compiler performance.
In addition to the exciting new display logic separation (Spark Framework), the SDK team has worked on speeding up compilation.
I compiled (incremental build) a project containing 57K lines of code (34K […]
AdvancedDataGrid - Adventures in Binding
18 September 2008Quick post on AdvancedDataGrid dataProviders.
If your using a HierarchicalData provider for you AdvancedDataGrid (Flex) binding changes may (will) not be picked up by the AdvancedDataGrid.
For example
<mx:AdvancedDataGrid id=”grid” bottom=”10″ top=”40″ left=”10″
designViewDataType=”tree” width=”379″>
<mx:dataProvider>
<mx:HierarchicalData source=”{grades}”
[…]
Bindable Read-Only Getters
8 September 2008I had the opportunity to clear up some confusion on ‘bindable’ read-only ‘getters’ so I thought I’d post.
If you mark your ActionScript class [Bindable], the compiler will generate propertyChange events for the class’s public variables and properties exposed through getters and setters.
When a property exposed through a get / set pair is modified, […]
Flex Modules, Watch Your Scope!!
14 August 2008Here’s another help hint for those working with Modules in Flex: Watch your variable scope!!
When loading modules, you have a number of options for loading the SWF including the ModuleLoader and ModuleManager. If neither of those fit your needs you always have access to Flash’s Loader class. ModuleManger can be used for fine […]
Flex, Java Remoting, and JMS [null message body]
7 August 2008So I was pounding out some code this afternoon, ran into a small snag and thought I’d post. Neuro-physiologists tell us that we better remember what we write down so here goes.
Similar to my post a few months ago, I made a simple omission in my coding flurry.
I was working with a backend Java […]
Dashboards… Flex’s ‘Sweet Spot’
6 August 2008Thanks Adobe!!!
I’ve taken on a number of Flex projects over the past 2-3 years. In that time I’ve used Flex to meet many types of business needs. I’ve spent the last few months working on a enterprise dashboard application built with Flex. This past week the time came for the executives’ ’sneek […]
AMFPHP Class Mapping Primer [1.9 beta]
1 July 2008Thought I’d post a simple AMFPHP class mapping primer.
I ran into a wall after re-arranging my VO / DAO package structure on the server, learned a few things in the process and thought I’d post .
I’m assuming your using AMFPHP 1.9 beta.
Class mapping allows your php backend and actionscript frontend to pass […]
AMFPHP Complex Classes - Yeah I knew that
19 June 2008Just blew half an hour tracking down something I *knew* I’d done before. Thought I’d post here for future ‘lapses.’
To return a typed object from PHP to the flashplayer the process is simple, declare a variable called $_expicitType in your PHP class
e.g.
class SummaryVO
{
var $_explicitType = “com.dl.SummaryVO”;
$standards = […]
Pipe Demo: Mortgage App
17 June 2008I’ve posted a pipes version of the mortgage app.
Things to note:
You can load / unload the modules dynamically.
A junction mediator is defined for each ‘player.’ In the mortgage app context that’s a mediator for the application itself, the Acme widget and the Foo widget.
ApplicationJunctionMediator
ModuleJunctionMediator (Acme)
ModuleJunctionMediator (Foo)
To make our lives easier when it comes […]
Pipe Architecture
13 June 2008Here’s a working architecture for modular applications utilizing PureMVC pipes.
This allows you to have modules that load modules that load modules, etc. The modules communicate to each other via Pipes.
The sample diagram illustrates a parent, child, grandchild relationship (An app that loads a module that loads module). You can of […]
Dynamic Modules … General Tips
21 May 2008Okay, for those of you getting ready to work with dynamic modules, I thought I’d share a few minor points I picked up on this past week.
Your application must include a reference to any interfaces the module implements.
<mx:Moudule implements”com.company.project.SomeInterface”>
You’d want a reference to com.company.project.SomeInterface in your main app.
Likewise if the module has subclassed Module
public class […]
Dynamic Flex Modules with PureMVC
19 May 2008I’m rolling out a large project, and I wanted to utilize dynamic modules for scalability.
For those who aren’t familiar will modules, basically, there a great way to encapsulate “pieces” of your application. A trivial example would be a small ’shell application’ that once the user logs in, loaded the appropriate use-case module. […]
Flex Canvas - Rounded Corners & cornerRadius
4 March 2008After struggling to get my custom components (based on canvas) to render with rounded corners, I found this link.
Problem
Even after utilizing the cornerRadius property, my containers were not rendering with rounded corners.
Solution
You simply need to ensure that borderStyle property is set to solid. If a border is not desired, set the borderThickness to zero.
Client.Data.UnderFlow with AMFPHP
13 February 2008I ran across the following error today, Client.Data.UnderFlow undefined? I’m using AMFPHP to enable my RPC calls. As it turns out, I the variable I was returning was of a different type than I had declared in my methodTable.
Flex Architecture Frameworks
3 January 2008I’m gearing up to start some medium scale enterprise projects and thought I’d look up this “Cairngorm” thing I heard talked about at the MAX conference in Chicago. The developers either loved or hated it, so I figured I should check it out. Basically Cairngorm is a design pattern framework for flex, an architect’s […]
