tmonteit
asked on
Integrating JSP and Flash
I have a JSP page with an embeded flash file using the following code.
assume that '<c:out value="${myForm.resource}" />' prints: 'myLocation/myFlashFile.sw f' into the object.
I would like some code or function to send an event to the server when the myFlashFile.swf has ended.
-----------begin jsp-flash code----------
<OBJECT classid="clsid:D27CDB6E-AE 6D-11cf-96 B8-4445535 40000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="320" HEIGHT="240" id="Yourfilename" ALIGN="">
<PARAM NAME=movie VALUE="<c:out value="${myForm.resource}" />">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFCC >
<EMBED src="<c:out value="${myForm.resource}" />"
quality=high bgcolor=#FFFFCC
WIDTH="640" HEIGHT="480" NAME="<c:out value="${myForm.resource}" />"
ALIGN="" TYPE="application/x-shockw ave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>
-----------end jsp-flash code----------
How do I send HTML data triggered by this flash file ending?
assume that '<c:out value="${myForm.resource}"
I would like some code or function to send an event to the server when the myFlashFile.swf has ended.
-----------begin jsp-flash code----------
<OBJECT classid="clsid:D27CDB6E-AE
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="320" HEIGHT="240" id="Yourfilename" ALIGN="">
<PARAM NAME=movie VALUE="<c:out value="${myForm.resource}"
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFCC >
<EMBED src="<c:out value="${myForm.resource}"
quality=high bgcolor=#FFFFCC
WIDTH="640" HEIGHT="480" NAME="<c:out value="${myForm.resource}"
ALIGN="" TYPE="application/x-shockw
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>
-----------end jsp-flash code----------
How do I send HTML data triggered by this flash file ending?
in the code base u can write the <c:out> statement
ASKER
Example please. All I know of the "code base" is an example I found online. How to embed a flash in jsp.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This is the jsp page in the same dir u keep the flash file "swflash.cab"
<OBJECT classid="clsid:D27CDB6E-AE 6D-11cf-96 B8-4445535 40000"
codebase="swflash.cab#vers ion=6,0,0, 0"
WIDTH="320" HEIGHT="240" id="Yourfilename" ALIGN="">
<PARAM NAME=movie VALUE="<c:out value="${myForm.resource}" />">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFCC >
<EMBED src="<c:out value="${myForm.resource}" />"
quality=high bgcolor=#FFFFCC
WIDTH="640" HEIGHT="480" NAME="<c:out value="${myForm.resource}" />"
ALIGN="" TYPE="application/x-shockw ave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>
<OBJECT classid="clsid:D27CDB6E-AE
codebase="swflash.cab#vers
WIDTH="320" HEIGHT="240" id="Yourfilename" ALIGN="">
<PARAM NAME=movie VALUE="<c:out value="${myForm.resource}"
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFCC >
<EMBED src="<c:out value="${myForm.resource}"
quality=high bgcolor=#FFFFCC
WIDTH="640" HEIGHT="480" NAME="<c:out value="${myForm.resource}"
ALIGN="" TYPE="application/x-shockw
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>
ASKER
Can we go to the beginner level?
What's the "swflash.cab"?
So my page runs a flash.swf file after its done running I want the flash to redirect to another web page.
What's the "swflash.cab"?
So my page runs a flash.swf file after its done running I want the flash to redirect to another web page.