0 Replies Latest reply on Nov 22, 2007 10:31 PM by Jey_Great

    Flex component in HTML

    Jey_Great Level 1
      hi ,
      I am new to flex development. I am trying to embed a .swf file inside a html table.
      The included flex component requires more space than its actual size. if i try to reduce the size of the table little
      then the included flex component's size also getting reduced or disappears.
      following is the code i am using to include the flex comp.
      <script>
      function embedFlexComp(src,projectName,width,height)
      {
      AC_FL_RunContent("src", src,"width", width,"height", height,
      "align", "middle","id", projectName,"quality", "high",
      "bgcolor", "#869ca7","name", projectName,
      "flashvars",'historyUrl=history.htm%3F&lconid=' + lc_id + '',
      "allowScriptAccess","sameDomain","type", "application/x-shockwave-flash",
      "pluginspage", " http://www.adobe.com/go/getflashplayer");
      }
      </script>
      <table width="70%" height="70%" border="1" NOWRAP >
      <tr>

      <td WIDTH="20%" VALIGN="TOP">Enter Name</td>
      <td bgcolor="gray" >
      <script>
      embedFlexComp("../flexcomp/FlexOnlyTextComp","FlexOnlyTextComp","25%","14%")
      </script>
      (Flex Text Field)
      </td>

      </tr>
      <tr>

      <td WIDTH="20%" VALIGN="TOP">Enter Age</td>
      <td bgcolor="gray" >
      <script>
      embedFlexComp("../flexcomp/FlexOnlyTextComp","FlexOnlyTextComp","25%","14%")
      </script>
      (Flex Text Field)
      </td>

      </tr>
      <tr>

      <td WIDTH="20%" VALIGN="TOP">Enter Hobby </td>
      <td bgcolor="gray" >
      <script>
      embedFlexComp("../flexcomp/FlexOnlyTextComp","FlexOnlyTextComp","25%","14%")
      </script>
      (Flex Text Field)
      </td>

      </tr>


      Thanks in advance.

      Jey