Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reconnect method #50

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add reconnect method #50

wants to merge 2 commits into from

Conversation

lfidnl
Copy link

@lfidnl lfidnl commented May 22, 2012

Hi!
I've implemented reconnect method for Melomel. It will be useful to reconnect Melomel in browser through Javascript without reloading page.

@@ -80,6 +82,15 @@ public class MXMLMelomel implements IMXMLObject
Melomel.debug = debug;
Melomel.connect(host, port);
});

// Let reconnect Melomel to external interface with JavaScript in browser
ExternalInterface.addCallback("reconnectMelomel", reconnectMelomel);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrap this in a try/catch (of type Error) since some SWFs may not be running in an HTML page.

@benbjohnson
Copy link
Owner

Thanks for the pull request. I just made a couple minors notes.

@lfidnl
Copy link
Author

lfidnl commented May 22, 2012

Thanks for quick response. I've fixed according with your notes, but I'm not a ActionScript developer ;) I hope, that I have done everything right

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants