A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Close button in HippoHx as2 api

  1. #1
    Banned
    Join Date
    Jan 2008
    Posts
    11

    Close button in HippoHx as2 api

    just wondering how to make a close button using hippohx in as2. i've had a read of the api documentation but it seems this is only for as3. an fla would be appreciated

  2. #2
    Lifetime Friend of Site Staff Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,766
    Normally you would call fscommand("quit", ""); to close a Flash application. In HippoHX it looks like you want to use Application.quitApplication(). Their examples are all in AS3 but they claim to have an AS2 API as well. Your best bet for help with open source tools is to contact the author directly. It's not very active, but they have a discussion list at groups.google.com too (there's a link to it on their about page).

  3. #3
    Junior Member
    Join Date
    Apr 2009
    Posts
    1
    Hi there!

    As Northcode points out, you have to use Application.quitApplication. There's pretty much no difference between AS2 and AS3, so something like this:

    Code:
    import com.hippohx.Application;
    
    myButton.onPress = Delegate.create(this,buttonHandler);
    
    function buttonHandler(){
       Application.getInstance().quitApplication();
    }
    There are AS2 samples, but are old and no longer maintained, you can find them here:

    http://code.google.com/p/hippohx/sou.../hippohx/demo/

    If you have any more problems just join the mailing list:

    http://groups.google.com/group/hippohx

    It's been a coincidence that I've come across this post : )

    Hope this helps!

    Juan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center