Scroll bars appear on the right in Flex (as with everything else) but it can sometimes be useful to move it across to the left. This simple technique of overwriting the updateDisplayList method puts it on the left:
protected override function updateDisplayList(w:Number, h:Number):void
super.updateDisplayList(w, h);if( verticalScrollBar && verticalScrollBar.visible )
So, you’ve designed your website and got sign off on the visuals and now you’re going to start the site template in HTML and CSS, but where do you start? I find that one of the first things I do is to include a reset stylesheet, as it makes everything a whole lot easier [...]
This is a useful time saving technique for ASP.NET C# 3.0 that allows any future re-implementation of the properties.
In C# 2.0 (and often still in C# 3.0), properties of a class are defined as a private variable and encapsulated within a public getter/setter as follows. The thing is with this though is that it [...]
If you get the following compilation error in Flex Builder 3, ’1046: Type was not found or was not a compile-time constant: Vector.’, then it’s probably a lie!
This error actually comes from the type being used for the Vector, and not the Vector itself. For example, if you have the following:
There is a great thing you can use in C#.NET (the static String.Format method) to easily format strings. It gives an easily human readable string, rather than having to use + operators all over the place with a complex concatenation, which makes it tricky to see whats going on. Here is something similar I’ve built [...]