Blog Archives

Tiled background image in custom UIView class

Sometimes you need a repeated or tiled image in your app, often for a background. Something like these rain-drops for example: Here’s a simple UIView subclass that accepts an image parameter, and renders a repeated tiled image, even in the

Tagged with: ,
Posted in Swift

Custom components – order of parameters

A pain with parameters in custom components is that the order is set to alphabetical, and there’s nothing you can do about it. It’s a pain, because you might want better consistency to your parameters in different components, or to

Tagged with:
Posted in Flash

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

"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

CS4 component icon library bug.

I’ve been wondering why items in my library disappear occasionally – including the library buttons and column headers! I’ve narrowed the problem down to a CS4 bug. Steps to reproduce bug: 1.Create a MovieClip 2. Select ‘Component Definition’ 3. Add

Tagged with: ,
Posted in Flash