Blog Archives

Custom component for distribution – live preview detection

It’s been a while since I worked on a custom component for distribution, to auto-install in the Adobe Extension Manager. Many online tuts and official documentation assume that you want to extend the standard Flash UI Component framework. Building components

Tagged with: , ,
Posted in Flash

Strangeness in custom component parameters

I decided today to systematically analyse a problem that’s bothered me for several years: What determines whether a parameter setter for a custom component will be called? Today I’ve finally worked it out, and discovered that my lack of clarity

Tagged with: ,
Posted in Flash

Frustrating Flex problems solved #7 – Removing DragDrop animation

In Flex was building a simple drag and drop from a library list to another simple list. I also wanted to build the functionality of dragging the item out of the simple list to automatically remove the item from the

Tagged with:
Posted in Flex

Frustrating Flex problems solved #6 – Keydown

Spent some time screaming “Why can’t my component receive keyboard events? “ Crazy, I’m not sure why i never knew this, but for a component to receive keyboard events, it needs to implement IFocusMangerComponent. And then, however you’re trying to

Tagged with:
Posted in Flex

Frustrating Flex problems solved #5 – ButtonBarButton bugs

So i had a series of custom Buttons all set up perfectly in a ButtonBar, when I realised that the design dictated that one of the buttons was a different size than was happening with the automatic sizing system… So

Tagged with: ,
Posted in Flex

Component styling utility function

In addition to an earlier post here: I have put the sample code into a simple utility function that will apply a TextFormat style to any component or TextField, without needing to consider the specific syntax of the component. You

Tagged with: , , ,
Posted in Flash

"Color" component parameter

I never really understood why when you define a component parameter, you can define its type. Wouldn’t the variable type that the parameter is related to, always define the type of the parameter? Aren’t parameter and variable types synonymous? Well,

Tagged with: ,
Posted in Flash

Styling Text In Instances Of Components Using TextFormat

this is an extension of a previous entry here. Text in components or TextFields can be formatted in several ways – applying styles manually in the case of TextFields, applying a style using a TextFormat object, StyleSheets for styling html

Tagged with: , , , ,
Posted in Flash