- call js interface when link is clicked on chat
This commit is contained in:
parent
dac9e2e759
commit
26e07fabb7
@ -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">
|
||||
|
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user