
December 6th, 2004, 06:47 AM
|
|
Junior Member
|
|
Join Date: Dec 2004
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Coldfusion & Flash variables.
Hello,
using coldfusion to control a flash movie that plays music, trick is i'm havin difficulty stopping the music when a session variable is set.
So heres the code from my music.cfm
Code:
<cfif not isdefined("session.music")>
<cfset session.music = true>
<cfelse>
<cfset session.music = false>
</cfif>
<object type="application/x-shockwave-flash" data="musictest1.swf" width="124" height="36">
<param name="movie" value="musictest1.swf">
<param name="flashvars" value="i=#session.music#">
<param name="quality" VALUE="high">
<EMBED src="musictest1.swf" quality=high bgcolor="#FFFFFF" WIDTH="100" HEIGHT="40" Name="Music"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</object>
now in the flash movie i have a layer called "actions" which has the following snippet:
Code:
if(i eq false)
{
stopAllSounds();
}
Am i missing something?
anyhelp much appreciated 
|