• TypeError: Error #1007: Instantiation attempted on a non-constructor

    TypeError: Error #1007: Instantiation attempted on a non-constructor. If you see this error without any obvious reason it might be one more bug of Flash Player. Flash Player doesn’t allow to instantiate internal classes in static section. Brief example:

    The only workaround – to move instantiation of B somewhere else. For example, in constructor of A:

  • describeType versus Object.prototype

    I discovered that describeType fails if you defined a methods in Object.prototype

    An example:

    This code produces exception:

    TypeError: Error #1010: A term is undefined and has no properties.

    Unfortunately I didn’t find any solution to fix it. Just try to not use Object.prototype .

  • Concise Ruby

    I started learning Ruby and it looks really awesome! For instance, I’ve just written a code that produces Fibonacci numbers:

    It is the most elegant solution I’ve ever seen!

  • “error initializing java runtime environment”

    Buggy Adobe IDE. If you get “error initializing java runtime environment” message at the Adobe Flash IDE startup, you need to fix the file c:\Documents and Settings\<username>\Local Settings\Application Data\Adobe\Flash CS5.5\en_US\Configuration\ActionScript 3.0\jvm.ini (it’s a path on XP). The memory parameter must be equal to “-Xmx128m”

  • Flash Player update on Chrome

    If you want to update your Flash Player version uder Chrome, you can do it by updating Chrome: Go “About Google Chrome” and then confirm an update of Google chrome.
    It’s nasty for flash developers…
    Any other solutions?

  • Sweet SWiX

    SWiX – is extremely useful tool that allows changing swf file without having fla-source or launching Flash IDE. The application shows you XML-like source of swf where you can see the structure and even change the data. But beware, it needs license for commercial use.

  • They made it louder!

    Adobe Flash Player 11 Public Beta is released. Try it here

  • Debug flash player crash in Mozilla Firefox 4

    If you have a problem described above here is a solution

  • Site of the day. Monet

    http://www.monet2010.com

  • Error #2046 in blank Flex application in IntelliJ IDEA 10

    Not far ago Intellij IDEA 10 was released. I downloaded it and launched blank Flex application but found this:

    “Error #2046: The loaded file did not have a valid signature”.

    This problem is described here: http://forums.adobe.com/thread/723378?decorator=print&displayFullThread=true. The reason: IDEA doesn’t pass “-static-link-runtime-shared-libraries” parameter to the compiled by default. So flash player cannot find RSL libraries in runtime. Thus if you have the same problem – just add a string “-static-link-runtime-shared-libraries=true” to you additional compiler options.

    Fun coding!