- call js interface when link is clicked on chat

This commit is contained in:
Richard Alam 2013-01-11 22:26:05 +00:00
parent dac9e2e759
commit 26e07fabb7
2 changed files with 9 additions and 2 deletions

View File

@ -19,6 +19,12 @@
<script src="lib/bbb_blinker.js" language="javascript"></script>
<script src="lib/bbb_deskshare.js" language="javascript"></script>
<script src="lib/bbb_api_bridge.js" language="javascript"></script>
<script>
window.chatLinkClicked = function(url) {
window.open(url, '_blank');
window.focus();
}
</script>
</head>
<body>
<div id="content">

View File

@ -36,8 +36,9 @@
private function onLinkClick(e:TextEvent):void{
trace("Clicked on link[" + e.text + "] from chat");
var url:URLRequest = new URLRequest(e.text);
navigateToURL(url, '_blank');
if (ExternalInterface.available) {
ExternalInterface.call("chatLinkClicked", e.text);
}
}
private function onCreationComplete():void{