[jQuery] OT: Custom draggable area in HTML/HS based AIR app?

[jQuery] OT: Custom draggable area in HTML/HS based AIR app?



I've decided to try using JS for a new AIR app as I'm more comfortable with
that than I am with Actionscript 3.
I'm having trouble figuring out how to define a specific div to be the
draggable area for my app. It's fairly straightforward with Actionscript.
Define an event listener in the init method
    // initialize the draggable area for the title bar
    navBar.addEventListener(MouseEvent.MOUSE_DOWN,startMove);
The startMove method:
    // this method triggers the navbar drag functionality
    private function startMove(event:MouseEvent):void{
        stage.nativeWindow.startMove();
    }
How am I supposed to trigger this functionality? Also, is there a good,
comprehensive reference for Javascript developers who want to build AIR
apps?
















    • Topic Participants

    • lists