Link to home
Start Free TrialLog in
Avatar of tmonteit
tmonteitFlag for Afghanistan

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.swf' 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-AE6D-11cf-96B8-444553540000"
        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-shockwave-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?
Avatar of deeppra
deeppra

in the code base u can write the <c:out> statement
Avatar of tmonteit

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
Avatar of jaggernat
jaggernat

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This is the jsp page in the same dir u keep the flash file "swflash.cab"


<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
        codebase="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-shockwave-flash"
               PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
        </EMBED>
</OBJECT>
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.