You are here

Flex

Bit Flags in Actionscript: An Example

It seems that when writing Actionscript I am so accustomed to doing things a certain way that often I forget there may be better ways to accomplish something. This happened recently on a project I am working on. I was creating the classes that defined the various user types and what permissions each type has. I decided that the best way to do this was to create a abstract ‘User’ class and subclass it to create each actual user type.

Content Type: 
Blog Topics: 

Flex Examples: Adding invalidation to non-visual components

Problem: How do you implement invalidation in a non-visual class?

Solution: Use an instance of UIComponent to proxy the invalidation.

Content Type: 
Blog Topics: 

Problem with WebORB and ByteArray's as parameters

I recently ran into a problem with a drawing application I am working on. It wasn’t a major problem but I am sure someone else will run into it. The problem is with sending ByteArray's through WebORB as a parameter or a variable in a ValueObject.

Content Type: 
Blog Topics: 

More on Flex, WebOrb for PHP and dates

After my first article on WebOrb and dates in PHP I ran into another problem when sending dates from Flex to a PHP class through WebORB. This time it was a date that was sent as a property of a Value Object and not a parameter of the method. I finally decided it was time to figure this out once and for all.

Content Type: 
Blog Topics: 

What is AsyncDispatcher?

While poking around in the Flex SDK source code I came across an undocumented class called AsyncDispacther under \Flex Builder 3 Plug-in\sdks\3.2.0\frameworks\projects\rpc\src\mx\rpc and it reminded me of some of the tricks we used to use before Flash Player 9 to overcome problems we encountered.

Content Type: 
Blog Topics: 

Flex Examples : Validating user input in a TextInput Component

Scenario: You need to validate user input in a TextInput component for legal values.

Solution : Use the 'textInput' event to intercept the characters a users types before they are committed and cancel the committing of the character if it is illegal.

Content Type: 
Blog Topics: 

Flex, WebORB for PHP and dates

This is a problem that I have ran into in the past but never really investigated it. This problem has 2 parts - the first comes from sending a Date object from Flex through WebORB for PHP and then using that date in a sql query and the second comes from pulling a date from a MySQL table in PHP and returning it to Flex.

Content Type: 
Blog Topics: 
Subscribe to RSS - Flex