Posts Tagged ‘jsfl’

  • Flash to Phaser JSFL Script

    Flash-to-Phaser

    What is it?

    Flash to Phaser is a JSFL script that will aid in the process of laying out scenes within the Flash IDE and converting them into Phaser JavaScript files. It works by parsing the Stage for any Bitmap or Symbol objects and then automatically builds-up a JavaScript source file including preload and create functions that accurately re-create what is seen inside the Flash IDE.

    If the script encounters a Symbol it treats it as a Phaser Group and uses the Symbol name as a Group name. Any Bitmaps within the Symbol are treated as Group children and positioned accordingly.

    Objects have their x, y, rotation and scale properties re-created in the JavaScript.

    Installation

    Download the JSFL file from Github (you’ll also find this guide as a PDF there)

    There are two ways to install JSFL scripts into the Flash IDE. One is to copy them into the Flash application data folder, specifically into the “Configuration/Commands” sub-folder. The location of this varies tremendously based on OS and Flash version. There is a slightly out dated guide available here on the Adobe site.

    An easier method is to create the script manually, which is what I’ll describe here.

    Read More