-
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
-
Lifetime Friend of Site Staff
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).
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|