Thursday, October 6, 2011

Flashdevelop and AIR 3



Here is full list of tricks that should be done to run AIR3.0 project on Flashdevelop's 4.0 beta version:

1. Download latest Flex SDK and AirSDK, and extract it into some new folder (in same order: Flex then Air)
2. Add SDK to FlashDevelop (4.0 beta), Tools -> Programm Settings -> AS3Context -> "Installed Flex SDKs" -> Double click on the button with three dots "..." next to the value of this row, choose there your SDK
3. Create new Air 3 project. In Project properties, compiler options, put "-swf-version=13" into "Additional Compiler Options" under "Compiler options" tab
4. In Project settings, choose 3.0 in the Platform section of Output tab
5. edit application.xml:
http://ns.adobe.com/air/application/2.7">
replace with
http://ns.adobe.com/air/application/3.0">
6. empty "bin" folder of the project.

Tuesday, October 4, 2011

Smarty upgrade to 3.1.2

Upgrading Smarty to version 3.1.2 (from 3.0.* versions) might bring you some troubles:

1. If you receive "SmartyException' with message 'property 'rendered_template' does not exist." Exception, then just rename newly copied "Smarty.class.php" to the appropriate name, appearently this exceptionis thrown if you use OLD version of smarty class with it's new system classes

2. If you receive "Trying to get property of non-object" with line 1157 or smth like that, then you appearently use Smarty class extending it. So trick is that Smarty has constructor now, so please add "parent::__construct()" as first line into your child class (that extends Smarty)

Gl & Hf