• 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 .

  • “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!

  • About two errors in IntelliJ IDEA

    Invalid menu handle

    Error message
    If a strange error “Invalid menu handle” appears to you in IntelliJ IDEA when you are trying to run an application, it means the path of your default application executor is broken. For example, you need to reinstall the flash player if you run swf files.

    No JDK specified in Ant

    This error message can be displayed when you are trying to run ANT build. It is caused when your default Project SDK is set to non-Java SDK (Flex SDK whatever). So just open Project settings window and select any JDK in Project->Project SDK combobox.