Go proposes an alternative approach to both of these paths for the AS3 audience: A community-generated code base that covers common needs and provides a thin compatibility layer, without limiting developer creativity. Useful and fun extensions shipped with Go will help open up animation scripting to all AS3 coders, while core features stay minimal.
So what can you do when you have to preserve the image information? Well, you have to take the slow road and always keep the alpha channel separate from the image. This means that you maintain three bitmaps - one is used to store the RGB information, one stores the alpha channel and the third one is used to be displayed on screen by joining both of them together.
Using the Binding tag to "reverse" data-binding on editable controls will make your code easier to write, understand, and more reliable. You won't have to worry if user's never touch containers on controls like Accordion or TabNavigator. And if the user does visit a form, data binding will populate the UI controls and Binding will read them.
One thing that's been discussed a lot is the hassle of embedding assets in Flex and then adding them to the stage. At the core of the issue is that everything in the Flex world IS a UIComponent. This is necessary so that the framework can "talk" to components within it through a known API (particularly with respect to Containers). So if you try to create a custom class that extends, say flash.display.Sprite, and try to add it to the stage, you get a runtime error called something like "Type Coercion Failed". This is due to line 3301 in mx.core.Container (in the addingChild method)
Online time tracking that's full featured and easy to use.
Lightweight and smart. Spend no extra time tracking your work. Organize project teams. Use it anywhere over Internet.
Tiktrac makes you feel at home when you sign in with a comprehensive dashboard view. Any tasks that you're working on can be edited in place using Ajax, so there's no time lost managing your time.
Om Malik has a post on project time tracking over at the Web Worker Daily blog. His post is only a question to the readers regarding what they use for time tracking their various projects, but the comments are filled with great suggestions including:
Flex-FLaVr - Easily Play FLV Video from Flex! - Doesn't Freeze When Attempting to Seek! - Switches Sources Without Getting Stuck!! - Can be Extended Very Reliably! - Fully Customizable - Source Code Included - Easily Play FLV Video from Flex! - Easily Play FLV Video from Flex! - Replaces VideoDisplay. *Flex 2.0
The Flex SpellCheckComponent extends the mx.controls.PopUpButton control. You can use it with a TextInput, TextArea or RichTextEditor control.
As I started to look around in web I had very low expectations to find a tool for converting Java classes to Actionscript classes.
There are at least two ways to write to all of the pixels in a BitmapData- one is to call setPixel once for every pixel, and the other is to build an appropriatedly sized ByteArray, then pass it to BitmapData.setPixels (once per frame). So, if you want your code to run as fast as possible, which should you choose?
Image files that are saved with a CMYK profile will appear with inverted colours, this includes JPEGs.
I will give you a sneak peek into one of these concepts, called Functional Programming and how it can make your life as ActionScript programmer easier.
For all those secrets in Flex, those that aren't known, those that aren't published, or those that are just hard to find for some unknown reason, like percentWidth.
I put together a little test to see how fast things really are.
VerifyError: Error #1058: Illegal operand type: * must be int.
The last few weeks my Flex Builder is becoming slower and slower. Therefore I started looking for the reasons why this happens and searched for some performance tuning tips for Flex Builder 2 and Eclipse. I found some really useful tips which increased performance quite nice.
Flex 3 gives us a great new feature, custom metadata tags.
Many of the popular programming languages such as Java, C#, Visual Basic, C, C pass objects around in much the same manner--either by reference or by value. This is quite familiar to anyone who has a background in the above languages.
In JavaScript, we have functions and we have arguments that we pass into those functions. But how JavaScript handles what you’re passing in is not always clear. When you start getting into object-oriented development, you may find yourself perplexed over why you have access to values sometimes but not other times.
I did a session on Bitmap Manipulation with Flash on the second day of FITC
I’ve been looking for a consolidated list of all Ruby and Rails naming conventions without too much luck so I’ve started my own. I find I always forget the naming convention especially as I move between projects that use different languages.
New Improved Colour Contrast Firefox Extension
One plugin that especially caught my attention is the “Smart Punch” plugin. Why? Because it is so much more usable than the “normal puch” in Fireworks. Ever had the idea to punch a vector image with a bitmap or visa versa? The “normal” Fireworks punch can’t do that, “Smart Punch” can do it. Ever had the idea to punch multiple objects? Smart punch can do it.
I've just spent a bit of time today researching the options for internationalising a big flex project that we're currently working on and I'm going to use this post to analyse the features built into Flex 3 for I18N and compare them with the requirements of the project. I'm not going to regurgitate the docs, just give a high level overview. There is a great chapter in the Flex 3 Developers guide that explains it all very clearly.
Suppose your Ruby on Rails application has several different kinds of resources that are all identified by GUIDs. For example, several images, some blog entries, and a few user-generated pages. Now suppose that you want to access these resources from the URL without having to identify the resource type in the URL.
Routes have been designed to be fully customizable by the average Ruby programmer. You’ll no longer have to be a htaccess wizard to have pretty URLs for your site.
This is just a personal preference of mine, but I like to have URLs end in .html. Fortunately rails makes this easy:
If you have a canvas with an object centered inside ( horizontal or vertical, it's the same ) and scale this object the result is that the canvas will clip left and top its contents!
Daarom is hier een lijst met zes algemene tips om betere blogs te schrijven. Hou je eraan, zodat ik minder troep hoef te lezen:
Callbacks are hooks into the lifecycle of an Active Record object that allow you to trigger logic before or after an alteration of the object state. This can be used to make sure that associated and dependent objects are deleted when destroy is called (by overwriting before_destroy) or to massage attributes before they‘re validated (by overwriting before_validation). As an example of the callbacks initiated, consider the Base#save call:
Class creation - the magical way As an educational exercise, it is definitely interesting to look at how the Magic Model’s Invisible Classes [1] are generated. Inside the gem [2], please turn to the file /lib/module.rb I’ve broken it up below too.
Today we as project group had a problem that was difficult to solve. In the end Gerard Lolkema and Ruben Swieringa also tried to fix it and finally we solved it as a group.
This calculates aggregate values in the given column: Methods for count, sum, average, minimum, and maximum have been added as shortcuts. Options such as :conditions, :order, :group, :having, and :joins can be passed to customize the query.
The break statement can also be used with a label as in this example of two counts, one nested within the other, which will be ended if the inner counter variable is equal to the variable 'x'.
I'm writing a test case to determine whether a javascript variable exists.
Basically it boils down to setting component-level styles before any components of that type have been created. The styles are created, but when the first component of that type is instantiated, it resets the component styles, and overwrites the changes that were made beforehand. Slap a button in the library of a new FLA, and add the following code:
ColorMatrix provides a way to adjust Brightness, Contrast, Saturation and Hue based on a range of numeric values as well as multiply matrices. The ColorMatrix can then be passed into ColorMatrixFilter to apply color adjustments. The added bonus of ColorMatrix is that it uses the same calculations to generate matrix values as the Flash 8 IDE (with the exception of contrast adjustment which uses linear interpolation to provide a bit more granularity).
It’s useful in situations where you want to stop listening after the first event has fired, for example. You can use it when the listener is an anonymous inner function, if you don’t know the type of the event, if the dispatcher is unknown or any combination of these.
using custom serialization with value objects in RemoteObject. This solution takes advantage of the ActionScript 3 API flash.utils.IExternalizable which is compatible with Java's java.io.IExternalizable API. By implementing these interfaces on the client and server your value objects can take control of their serialization and customize what data is sent over the wire.
With this PowerToy, in addition to seeing the icon of the application window you are switching to, you will also see a preview of the page. This helps particularly when multiple sessions of an application are open.
here is a small code snippet for how to pluralize in PHP
With Rails components being shunned throughout the Rails world we are often left to use a set of view partials to abstract out commonly used display functionality. Sometimes this necessitates the use of variables (called ‘locals’) that may or may not be relevant in all view scenarios. For instance, if I have a partial that I use to display form text fields there may be a size parameter I want to pass in to limit the field’s size
when I click on one radio button, all the observers get trigerred, so the method which the observe_field calls gets the wrong result. I just want that method to get the radio button that is clicked, which seems quite obvious, no?

Comments