• Disable bounce and pull effects on Flex Scroller component

    Today I stumbled on a problem with Flex Spark Scroller and List components while developing an AIR mobile application. Scroller component has a nice bounce effect when you pull it and it works the same way as you’ll expect the scrolling to work on iPhone (read here). You don’t always need this behavior, and for some reason you can’t disable this effect. Another problem is that all the possible properties and methods on the Scroller class, which might allow you to change this functionality are eighter private or protected. The only possible way to go is extending the Scroller class…

    Read More…

  • Using AIR 3.3 SDK with Flash Builder 4.6

    Just a few steps showing you how to setup AIR 3.3 in Flash Builder 4.6 on Windows: Download AIR 3.3 SDK – air-sdk-download Navigate to your SDKs folder (under Flash Builder 4.6 installation directory). For 64x Windows: C:Program Files (x86)AdobeAdobe Flash Builder 4.6sdks For 32x Windows: C:Program FilesAdobeAdobe Flash Builder 4.6sdks Clone SDK 4.6 folder and rename it (Example: 4.6.0_AIR_3.3) Extract AIR SDK zip inside the new folder and overwrite all matches. Download Playerglobal SWC for Flash Player 11.3 Go to /frameworks/libs/player/ inside your new SDK folder, create a new folder and name it “11.3” and place the SWC file…

    Read More…

  • Introducing Starling

    Very nice examples with Starling Framework. There is also a book 😉 Download it from here.

    Read More…

  • Creating an image only mobile button skins for Flex 4 (AIR Mobile)

    One of the main differences when creating mobile Flex AIR apps from normal Flex Apps is that it’s better to use ActionScript only skins. With that in mind I’ve created a simple skin for image buttons. Why this skin is better than using the default spark.skins.mobile.ButtonSkin? The answer is quite simple – performance. Since this is going to be an image only skin, we don’t need label element and all the other functionality the default mobile button skin has. In order to use the class you just create a new skin extending the ImageButtonSkin. The properties you have to set…

    Read More…

  • JavaScript .Net like String formatting function

    Just a simple extend to the JavaScript String prototype which makes things much more readable 🙂 String.prototype.beginsWith = function(str) {return (this.match(“^”+str)==str)} String.prototype.endsWith = function(str) {return (this.match(str+”$”)==str)} String.prototype.format = function() { var s = this, i = arguments.length; while (i–) { s = s.replace(new RegExp(‘\{‘ + i + ‘\}’, ‘gm’), arguments[i]); } return s; }; Example: var str = ‘Just a {0} test to {1} if things works. Really {0}, isn’t it?’; alert(str.format(‘simple’, ‘see’);

    Read More…

  • Overlay the AIR 3.2 SDK in Flash Professional CS5.5

    Although adding AIR 3.2 in Flash Builder is an easy task, the situation with Flash CS 5.5 is not the same. This article really helped me. It’s a little bit hacky, but who cares when it works 🙂

    Read More…

  • Flash Player Debug crash under Firefox (solved)

    Open Firefox config with writing about:config in address bar.Change these values: dom.ipc.plugins.enabled to false dom.ipc.plugins.timeoutSecs to -1 This will allow you to dismiss errors and debug under Firefox. Enjoy.

    Read More…

  • Flash Builder 4 on Ubuntu

    Link: Flash Builder 4 on Ubuntu Nice. I’ll definitely try this 🙂

    Read More…

  • How to fix sound/video problems in Ubuntu

    For all of you out there struggling to fix their Ubuntu sound issues 🙂 Fixing sound (microphone): sudo gedit /etc/modprobe.d/blacklist Fixing video driver (tpm error at startup) sudo gedit /etc/modprobe.d/blacklist  Add the following lines: #trusted platform moduleblacklist tpmblacklist tpm_biosblacklist tpm_infineonblacklist tpm_tis Fixing output sound from headphones sudo gedit /etc/modprobe.d/alsa-base.conf Add these lines at end of file: options snd-hda-intel model=3stack enable=yesoptions snd-hda-intel model=auto position_fix=1 enable=yes Fixing SKYPE 2.2 video to work Run skype using this command (change links in menu) bash -c ‘LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so skype’

    Read More…

Angel Vladov

Programmer living in Bulgaria