In ActionScript (as well as JavaScript), the boolean AND and OR operators have a special meaning. That is, they don’t necessary return true or false, but return one of the operands. var op1:Boolean = true; var op2:int = 2; var op3:Object = null; var result_1or2:Object = op1 || op2; trace(result12); // output: true var result_1and2:Object = op1 && op2; trace(result); // output: 2 var result_3or2:Object = op3 || op2; trace(result); // output: 2 var result_3and2:Object [...] Citeşte mai mult »
Uninstalling Flash Player (like, really uninstalling)
If you’ve ever installed Flash Professional on your computer you know it has that nasty habit of overwriting your debug Flash Player (ActiveX) with its own mutant half-debug version. I don’t normally mind, because the plugin version is not affected and I use Opera (which is awesome, by the way). But I started noticing Flash Builder errors whenever I would open a project and try to debug it. Once you close and reopen Flash Builder, [...] Citeşte mai mult »
Orange RO APNs for Android
Internet Name: Orange Internet APN: internet APN type: default MMS Name: Orange MMS APN: mms MMSC: http://wap.mms.orange.ro:8002 MMS proxy: 62.217.247.252 MMS port: 8799 APN type: mms
Data binding and ActionScript 3
Data binding is really easy to do in MXML. But what do you do if you need to bind some dynamic objects at runtime using ActionScript? Here’s how I solved this particular problem in the following localization example. Assume you want to add localization to a MenuBar component and the data provider is an Object. Let’s assume, for the sake of this example, that the Object that will act as dataProvider for the MenuBar component [...] Citeşte mai mult »
Progress
For mrm’s TV Guide I needed a visual representation for displaying progress (i.e., saving data to the local database), so I used the built-in ProgressBar component. What’s nice about this component is that you can use three different methods to update the progress bar. You choose one of the methods by setting the mode property in MXML to one of the following values: event The control specified by the source property must dispatch progress and [...] Citeşte mai mult »
mrm’s TV Guide
Like any respectable person in this world, I don’t watch TV. But I do like some TV shows, so I watch them online or download them from various sources and watch them offline. Lately the number of shows I had to keep track of has grown substantially so I had a hard time doing it. (Actually, I’m just really lame and remembering 8 shows’ air dates is too big an effort for me) So I [...] Citeşte mai mult »
Hello world!
Why am I a hypocrite? Well, because I always said blogs are a waste of time. But not all of them, just those “online diary” type of blogs. You know what I’m talking about, those “here’s what I did this morning”, “this is a picture of the sandwich I just ate; it was delicious”, “I’m so sad, please comfort me” etc etc. This is not going to be one of those blogs. This is going [...] Citeşte mai mult »