<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Index.aspx.cs" Inherits="Index" %>
<%@ Register Assembly="FlashControl" Namespace="Bewise.Web.UI.WebControls" TagPrefix="Bewise" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<script language="javascript">
function myfunc(){
window.open("http://localhost/consumerpalinc/otters/contactme.aspx","popup","width=500,height=300,scrollbars,resizable;newWindow.focus(); void(0);");
}
</script>
</head>
<body >
<form id="form1" runat="server">
<div>
<Bewise:FlashControl ID="FlashControl1" runat="server" MovieUrl="index.swf" Height="740px" Width="775px" />
<%--<BUTTON onclick="myfunc()" type="button" id="BUTTON1">OK</BUTTON>
--%>
</div>
</form>
</body>
</html>
later, in my flash file, i do
}
on (release) {
getURL("javascript:myfunc()");
}
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
From novice to tech pro — start learning today.
Open in new window