xman51
06-15-2005, 10:53 PM
Hello All,
This is my first post on the forum. Thanks in Advance for your future assistance.
What I need is a webpage which has an embedded swf Flash movie. I have certain fscommands built into the actionscript of the movie that gets called on certain events. What I want the webpage to do is write certain strings to a server-side access database based on the fscommands captured from the swf flash movie. I just don't know where to get started.
I am assuming that this webpage will have to be an active server page...but I know almost nothing about them. Can anyone steer me in the right direction?
Here is the basic page I have so far:
<!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" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>FlashStats3</title>
</head>
<body bgcolor="#000000">
<script language="JavaScript">
<!--
var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the FSCommand messages in a Flash movie.
function FlashStats3_DoFSCommand(command, args) {
var FlashStats3Obj = isInternetExplorer ? document.all.FlashStats3 : document.FlashStats3;
//
// Place your code here.
//
alert("Here's the command: " + command + "Here's the argument: " + args);
}
// Hook for Internet Explorer.
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
document.write('<script language=\"VBScript\"\>\n');
document.write('On Error Resume Next\n');
document.write('Sub FlashStats3_FSCommand(ByVal command, ByVal args)\n');
document.write(' Call FlashStats3_DoFSCommand(command, args)\n');
document.write('End Sub\n');
document.write('</script\>\n');
}
//-->
</script>
<!--url's used in the movie-->
<!--text used in the movie-->
<!--
<p align="left"><font face="Arial" size="8" color="#ffffff">Internet Statistics Solution by Xman</font></p>
Avg
Max
-->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="FlashStats3" width=100% height=100% align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="FlashStats3.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<embed src="FlashStats3.swf" quality="high" bgcolor="#000000" width="550" height="400" swLiveConnect=true id="FlashStats3" name="FlashStats3" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</body>
</html>
Thanks again,
This is my first post on the forum. Thanks in Advance for your future assistance.
What I need is a webpage which has an embedded swf Flash movie. I have certain fscommands built into the actionscript of the movie that gets called on certain events. What I want the webpage to do is write certain strings to a server-side access database based on the fscommands captured from the swf flash movie. I just don't know where to get started.
I am assuming that this webpage will have to be an active server page...but I know almost nothing about them. Can anyone steer me in the right direction?
Here is the basic page I have so far:
<!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" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>FlashStats3</title>
</head>
<body bgcolor="#000000">
<script language="JavaScript">
<!--
var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the FSCommand messages in a Flash movie.
function FlashStats3_DoFSCommand(command, args) {
var FlashStats3Obj = isInternetExplorer ? document.all.FlashStats3 : document.FlashStats3;
//
// Place your code here.
//
alert("Here's the command: " + command + "Here's the argument: " + args);
}
// Hook for Internet Explorer.
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
document.write('<script language=\"VBScript\"\>\n');
document.write('On Error Resume Next\n');
document.write('Sub FlashStats3_FSCommand(ByVal command, ByVal args)\n');
document.write(' Call FlashStats3_DoFSCommand(command, args)\n');
document.write('End Sub\n');
document.write('</script\>\n');
}
//-->
</script>
<!--url's used in the movie-->
<!--text used in the movie-->
<!--
<p align="left"><font face="Arial" size="8" color="#ffffff">Internet Statistics Solution by Xman</font></p>
Avg
Max
-->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="FlashStats3" width=100% height=100% align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="FlashStats3.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<embed src="FlashStats3.swf" quality="high" bgcolor="#000000" width="550" height="400" swLiveConnect=true id="FlashStats3" name="FlashStats3" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</body>
</html>
Thanks again,