Mac ScreenweaverHx getting started.

The current version of ScreenweaverHx does not seem to work out of the box for mac users, so here is a quick start to getting started. Note you are probably not allowed to redistribute the flash player with your application, so this is really just a quick fix to get your up and running.

  • Make sure you have Haxe and Neko installed and haxelib setup.
  • From a terminal window install ScreenweaverHx
    haxelib install swhx
  • Download a flash browser player, if you have any problems using the latest player you may find it easier to use an older version fp10 debug archive (zip).
    For my quick fix I used a flash player from the debug archive.
    10r32_18/flashplayer10r32_18_ub_mac_debug.dmg.zip

    first unzip it, then mount it as a dmg, then rightclick on Adobe Flash Player and select show contents and then with Archive Utility, unzip Archive.pax.gz, this will create an Archive folder on your desktop, inside is the browser plugin: Flash Player.plugin.

  • Once you have a Flash Player.plugin you can move it to one of the screenweaverHx samples files, Basic-1 where we we will test screenweaverHx.
    /usr/lib/haxe/lib/swhx/1,2,0/samples/1-basic

    ( sorry not sure of the command, I used finder to move the file )
  • Now we need to amend the Plugin.hx class to point to our local flash player. First we need to fix an error in the Plugin.hx class caused by a change in Haxe. locate Plugin.hx
    /usr/lib/haxe/lib/swhx/1,2,0/swhx/Plugin.hx
    On line 93 change
                //var data = haxe.Http.request(url);
                var data = haxe.Http.requestUrl(url);

    And now we can hard code the location of our local browser Flash Player.
    On line 47 change
            /*Mac : [ "/Library/Internet Plug-Ins/Flash player.plugin" ],*/
            Mac : [ "Flash player.plugin" ], 
  • Now we can safely compile and run our application. So in terminal navigate to 1-basic folder
    cd /usr/lib/haxe/lib/swhx/1,2,0/samples/1-basic

    Then we can compile the example
    haxe compile.hxml

    and then run the neko
    neko app.n
version #8933, modified 2010-08-02 19:58:48 by JLM