3 Replies Latest reply on Feb 16, 2007 12:16 AM by stanymi2

    Combined many mxml applications

    stanymi2
      Hello,

      What is the best way to combined many applications mxml on a webpage ?

      Ok I try to explain :
      I have two applications (1.mxml & 2.mxml) which work perfectly but I don't know how add these ones in an only webpage because the HTTPService are different.

      1.mxml :
      [code]
      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" xmlns="*" layout="vertical" initialize="init()" creationComplete="alimXML.send()" viewSourceURL="srcview/index.html">
      <mx:HTTPService id="alimXML" url="https://hlgrlin1/fluxP/FLEX/request.php" method="POST" useProxy="false">

      </mx:HTTPService>

      ...
      [/code]

      2.mxml
      [code]
      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" creationComplete="AlimXML.send()">
      <mx:HTTPService id="AlimXML" url="https://hlgrlin1/fluxP/FLEX/request_multicriteres.php" method="POST" useProxy="false" >

      </mx:HTTPService>

      ...
      [/code]

      Is it possible to have a page index.php for example and include 1.mxml + include 2.mxml, ... ?
      Hop you understand to me... my english is pathetic, sorry :/

      thx U so much,
      Stan
        • 2. Re: Combined many mxml applications
          peterent Level 2
          You need to write your own HTML wrapper for your applications. Look at the HTML wrapper Flex Builder generates, copy that, then use some HTML editor to position another <object>/<embed> sequence in another location on the page.

          Remember that the Flex application is a SWF which is displayed in the Flash Player - that's just a rectangular area of the page. You can have any number of them. In other words, do the same thing as you would placing 2 <table> tags on the page. The difference is that we generate the <object/<embed> tags with JavaScript because IE requires you to click on any ActiveX control to use it; writing the tags in JavaScript gets around that problem.

          • 3. Re: Combined many mxml applications
            stanymi2 Level 1
            quote:

            Originally posted by: peterent
            You need to write your own HTML wrapper for your applications. Look at the HTML wrapper Flex Builder generates, copy that, then use some HTML editor to position another <object>/<embed> sequence in another location on the page.

            Remember that the Flex application is a SWF which is displayed in the Flash Player - that's just a rectangular area of the page. You can have any number of them. In other words, do the same thing as you would placing 2 <table> tags on the page. The difference is that we generate the <object/<embed> tags with JavaScript because IE requires you to click on any ActiveX control to use it; writing the tags in JavaScript gets around that problem.




            Thx U so much :)