3 Replies Latest reply: Oct 5, 2011 10:31 AM by JevgeniG RSS

    Sample : How to Installing AIR3 SDK in FlashDevelop 3 ?

    Porawee Community Member

      Hi everyone, if you not use Adobe Flash CS or Adobe FlashBuilder

      but you need to test AIR 3.0 SDK. I need to share sample that i try to other IDE as open source FlashDevelop.

       

      let's see below how to do that :

      ** For WIN version ONLY

       

      Requirement :

      1.     FlashDevelop 3.3.4 RTM  [recommend]

      2.     Flex SDK 4.5.0.19786 [recommend]

      3.     AIR 3.0 SDK

       

      Walkthrough this step :

           1. download and extract Flex SDK to "C:\flex_sdk_4.5.0.19786"

       

           2. download and extract AIR3.0 SDK to AIR3.0

       

           3. In folder AIR3.0 copy all file and paste in folder flex_sdk_4.5.0.19786.

       

           4. If you never install FlashDevelop just follow through it's installation,

                thenrun FlashDevelop goto "Project > New Project..."

       

           5. choose "AIR AS3 Projector"


           6. type your project name in text filed after "Name :"


           7. Browse.. "Location :" where you need to save your project, then click "OK"

       

           8. type your author name and click "OK",

                now your new project was created

       

           9. goto "Tools > Program Settings..."

       

           10. click "AS3Context" on left panel

       

           11. see on right panel click "Flex SDK Location"


           12. Browse.. to "C:\flex_sdk_4.5.0.19786"

       

           13. click "FlashViewer" on left panel

       

           14. see on right panel click "External Player Path"


           15. Browse.. to "C:\flex_sdk_4.5.0.19786\runtimes\player\10.2\win\FlashPlayerDebugger.exe", then click "Close"

       

           16. goto "Tools > Flash Tools > Documentation Generator..."

       

           17. goto tab "Settings"


           18. in text filed below "ASDoc location:"


           19. Browse.. to "C:\flex_sdk_4.5.0.19786\bin" , then click "Save Settings"

       

           20. see on right panel in FlashDevelop

                open file "CreateCertificate.bat"

                edit in line :

                     set PATH=%PATH%;$(FlexSDK)\bin

                change to

                     set PATH=%PATH%;C:\flex_sdk_4.5.0.19786\bin

       

           21. open file "PackageApplication.bat"

                edit in line :

                     set PATH=%PATH%;$(FlexSDK)\bin

                change to

                     set PATH=%PATH%;C:\flex_sdk_4.5.0.19786\bin

       

           22. open file "Main.as" it's place inside folder src on right panel

                add this code to test your AIR runtime version

       

                import flash.desktop.NativeApplication;

                trace(NativeApplication.nativeApplication.runtimeVersion);

       

                Example :

       

                package

                {

                    import flash.display.Sprite;

       

                    /**

                     * ...

                     * @author Porawee Raksasin

                     */

                    public class Main extends Sprite

                    {

                       import flash.desktop.NativeApplication;

                        trace(NativeApplication.nativeApplication.runtimeVersion);

                        public function Main():void

                        {

       

                        }

       

                    }

       

                }

       

           23. press F5, then you will see window adl and AIR window on screen as below :

           AIR3.0_FlashDevelop3.3.4.PNG

           24. Finally, your output is...

                Done(0)

                [Starting debug session with FDB]

                3.0.0.3880

       

           Yeah! your app now ready for AIR 3.0.

       

      Hope you enjoy with AIR 3.0

      Thanks,

      Porawee