eryx
05-06-2010, 02:58 PM
I have a strange problem with an ExternalInterface call throwing me an error when it executes.
Error Message
Line:1
Char:98
Error:'null' is null or not an object
code:0
AS3 - pretty standard I am throwing a variable just so that nothing is 'null'
function getVid(e:MouseEvent):void
{
var nothing = "abc";
ExternalInterface.call("ShowVid",nothing);
}
Here is the ASP and JavaScript code
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Login" %>
<!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>
<title>Welcome to Cheestrings.ca</title>
<link rel="stylesheet" href="/css/style.css" type="text/css" />
<link rel="stylesheet" href="/css/nyroModal.css" type="text/css" media="screen" />
<link rel="stylesheet" href="/css/style.css" type="text/css" />
<link rel="stylesheet" href="/css/nyroModal.css" type="text/css" media="screen" />
<script type="text/javascript" src="/scripts/AC_RunActiveContent.js"></script>
<script type="text/javascript" src="/scripts/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="/scripts/jquery.nyroModal-1.5.5.pack.js"></script>
<script type="text/javascript" src="/scripts/adobe_flash.js"></script>
<script type="text/javascript">
function RollOn(T) {
var newsrc = T.src.replace("_off", "_on");
T.src = newsrc;
}
function RollOff(T) {
var newsrc = T.src.replace("_on", "_off");
T.src = newsrc;
}
function ShowGame() {
$.nyroModalManual({url: '#UltimateRace'});
// document.getElementById('closeBut').style.visibili ty='visible'
}
function ShowVid(e) {
alert(e);
// $.nyroModalManual({url: '#videoOver'});
//document.getElementById('closeBut').style.visibili ty='hidden'
}
function removeVid() {
$.nyroModalRemove();
}
$(document).ready(function(){
$("#videoOver").flash({swf: 'swf/videoOverlay.swf', wmode: 'transparent', width: '700', height: '400'});
$("#UltimateRace").flash({swf: 'flashGames/swf/Main.swf', wmode: 'transparent', width: '742', height: '542'});
});
</script>
The UltimateRace works fine
but the one called with flash throws that strange error.
I am not an avid ASP guy so I am in uncharted territory here, any help would be great.
Thank
Error Message
Line:1
Char:98
Error:'null' is null or not an object
code:0
AS3 - pretty standard I am throwing a variable just so that nothing is 'null'
function getVid(e:MouseEvent):void
{
var nothing = "abc";
ExternalInterface.call("ShowVid",nothing);
}
Here is the ASP and JavaScript code
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Login" %>
<!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>
<title>Welcome to Cheestrings.ca</title>
<link rel="stylesheet" href="/css/style.css" type="text/css" />
<link rel="stylesheet" href="/css/nyroModal.css" type="text/css" media="screen" />
<link rel="stylesheet" href="/css/style.css" type="text/css" />
<link rel="stylesheet" href="/css/nyroModal.css" type="text/css" media="screen" />
<script type="text/javascript" src="/scripts/AC_RunActiveContent.js"></script>
<script type="text/javascript" src="/scripts/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="/scripts/jquery.nyroModal-1.5.5.pack.js"></script>
<script type="text/javascript" src="/scripts/adobe_flash.js"></script>
<script type="text/javascript">
function RollOn(T) {
var newsrc = T.src.replace("_off", "_on");
T.src = newsrc;
}
function RollOff(T) {
var newsrc = T.src.replace("_on", "_off");
T.src = newsrc;
}
function ShowGame() {
$.nyroModalManual({url: '#UltimateRace'});
// document.getElementById('closeBut').style.visibili ty='visible'
}
function ShowVid(e) {
alert(e);
// $.nyroModalManual({url: '#videoOver'});
//document.getElementById('closeBut').style.visibili ty='hidden'
}
function removeVid() {
$.nyroModalRemove();
}
$(document).ready(function(){
$("#videoOver").flash({swf: 'swf/videoOverlay.swf', wmode: 'transparent', width: '700', height: '400'});
$("#UltimateRace").flash({swf: 'flashGames/swf/Main.swf', wmode: 'transparent', width: '742', height: '542'});
});
</script>
The UltimateRace works fine
but the one called with flash throws that strange error.
I am not an avid ASP guy so I am in uncharted territory here, any help would be great.
Thank