2 Replies Latest reply on Jan 11, 2011 2:40 PM by flexBeginner2008

    About "Flex"

    芦鹏

      Hi:
          I met a problem on Flex,In the Flex Application,Flex embedded jsp page. In the JSP page above,this is a drop-down list. The Drop-down list was covered by the JSP page.
          I spent a long time, but also solve the problem,I‘m not good at English.

       

      Page effects:

       

      Flex problem.jpg

      http://hi.csdn.net/space-350245-do-album-picid-629230.html

       


      Code is very simple:
      ====================== Flex page code =========================
      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
          autoLayout="false" layout="absolute" width="100%" height="100%"
          xmlns:flexiframe="http://code.google.com/p/flex-iframe/">

       

          <mx:Panel width="500" height="400">
              <mx:ComboBox width="200" height="30">
                  <mx:dataProvider>
                      <mx:Array>
                          <mx:Object label="Russia" data="1"/>
                              <mx:Object label="Canada" data="2"/>
                              <mx:Object label="China" data="3"/>
                              <mx:Object label="USA" data="4"/>
                              <mx:Object label="Brazil" data="5"/>
                              <mx:Object label="Australia" data="6"/>
                      </mx:Array>
                  </mx:dataProvider>
              </mx:ComboBox>       
              <mx:Spacer height="60"/>
             
              <!-- "<flexiframe:IFrame>" Google Code flex-iframe(http://code.google.com/p/flex-iframe/) -->
              <flexiframe:IFrame id="googleIFrame" label="Google"  width="100%" height="100%"
                     source="http://localhost:8080/FlexModuleDemo/pages.jsp"/>

       

          </mx:Panel>
      </mx:Application>
      ============================================================

       

      ===================== JSP page code ===========================

       

      <%@ page language="java" pageEncoding="UTF-8"%>
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
      <html>
      <head></head>
      <body style="background:#008000;">
          This is a JSP page is embedded.(I'm not good at English.)

       

      </body>
      </html>
      ============================================================

       

       

          Thank you very much!

       

          Email:lupeng0527@163.com