8 Replies Latest reply on Oct 3, 2011 6:44 PM by Raja Thannasi

    Load a Swf  4 from jsp file.

    Raja Thannasi

      Dear All,

                   I want to  load a swf from jsp and this swf compiled using Flex 4 sdk. i can able to load a swf compiled in 3.5 but i cant able to load a flex 4 sdk complied. please help me.

       

      here my code.

      <%@ page language="java" contentType="text/html; charset=ISO-8859-1"

          pageEncoding="ISO-8859-1"%>

      <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

      <html>

      <head>

      </head>

      <body>

      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="main" width="100%" height="700px" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="100%" height="100%">

      <param name="movie" value="<%=request.getContextPath()%>/html/main.swf" />

      <param name="quality" value="high" />

      <param name=bgcolor value="006699">

      <param name="SCALE" value="exactfit">

      <embed src="<%=request.getContextPath()%>/html/main.swf" quality="high"

      width="100%" height="700px" name="test"

      align="middle"

      play="true"

      loop="false"

      quality="high"

      allowScriptAccess="sameDomain"

      type="application/x-shockwave-flash"

      pluginspage="http://www.adobe.com/go/getflashplayer">

      </embed>

      </body>

      </html>