Forums

ASP

This topic is locked

MM Flash Dispatcher to ASP Session Variable?

Posted 21 Mar 2003 02:04:02
1
has voted
21 Mar 2003 02:04:02 Justin Pardee posted:
Has anyone out there used MMs Flash Dispatcher? I'd like to have it set a true/false session variable that I can reference on other pages. That way I can use if/else statements to display either a SWF file or a graphic/ssi file based on the session variable. Any input would be appreciated 'cause this over my head. Thanks!! <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
-Justin

This is the code it generates:

<pre id=code><font face=courier size=2 id=code> &lt;SCRIPT LANGUAGE="VBScript"&gt;
' Check for the Flash ActiveX control.
'
' This script will be ignored by browsers that do not support
' VBScript (although Microsoft Internet Explorer will warn the
' user that a script in an unsupported language has been
' encountered if the user has checked "Show unsupported scripting
' language errors" in Preferences-&gt;Web Browser-&gt;Web Content).
'
' This technique due to Jeff Brown and Rafael M. Muñoz of
' Microsoft Corporation. Version testing adapted from Macromedia
' Flash Technical Note #12853.

Private i, x

On Error Resume Next

MM_FlashControlInstalled = False

For i = 5 To 1 Step -1
Set x = CreateObject("ShockwaveFlash.ShockwaveFlash." & i)

MM_FlashControlInstalled = IsObject(x)

If MM_FlashControlInstalled Then
MM_FlashControlVersion = CStr(i)
Exit For
End If
Next
&lt;/SCRIPT&gt;
&lt;script language="JavaScript"&gt;
&lt;!--

function MM_executeFlashDispatcher(){
var args = MM_executeFlashDispatcher.arguments;
MM_FlashDispatch(args[0],args[1],args[2],args[3],args[4],args[5],args[6],args[7]);

}
//--&gt;
&lt;/script&gt; </font id=code></pre id=code>

Replies

Replied 08 Apr 2003 06:12:18
08 Apr 2003 06:12:18 Dave Blohm replied:
Ive never heard of the flash dispatcher...but im pretty good at working with flash and dynamic server side schtuff...are you attempting to send a variable from a flash movie to an asp page and then setting a session variable?

Doc
Rangewalk Digital Studios
Replied 10 Apr 2003 19:33:51
10 Apr 2003 19:33:51 Justin Pardee replied:
No, I want to set a session variable: FlashInstalled for yes/no. So if FlashInstalled = yes then is display the flash file else it displays an image or SSI. Thanks!!
-Justin

Reply to this topic