2 Replies Latest reply on Jan 5, 2014 1:11 AM by codeBeastAdobe

    flex in a week: run the mxml but nothing shows

    codeBeastAdobe Level 1


      I am doing the flex in a week course. Pain in the butt to see the design view is gone but hey no worries.

      Anyway, I run the mxml and nothing shows up. I also ran the swf that was produced and yes - empty. However the code seems to be fine so I am confused.



      <?xml version="1.0" encoding="utf-8"?>

      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"



                     minWidth="955" minHeight="850">


          <!-- Exercise 1.01: Setting up your project files -->


          <!-- Styles ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->


          <fx:Style source="Styles.css"/>


          <!-- Script ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->




          <!-- Declarations ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->



              <!-- Place non-visual elements (e.g., services, value objects) here -->



          <!-- UI components ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->


          <s:Label x="10" y="34"

                   width="690" height="40"

                   text="Employee Portal: Vehicle Request Form"



          <s:Form x="10" y="70">


              <s:FormItem label="Employee:">




              <s:FormItem label="Office Phone:">




              <s:FormItem label="Mobile Phone:">




              <s:FormHeading label="Dates Requested"/>


              <s:FormItem label="Pickup Date:">




              <s:FormItem label="Return Date:">





                  <s:Button label="Submit Request"/>





        • 1. Re: flex in a week: run the mxml but nothing shows

          Are you sure you are running the right mxml? Some times doing a clean build also helps. Sometimes the html template files (js files) are missing that cause a javascript error and nothing to load. Usually, project clean build does it. If you right click on the generated swf what does it say?

          • 2. Re: flex in a week: run the mxml but nothing shows
            codeBeastAdobe Level 1

            Hi, thanks for asnwering.

            I just started a new project from scratch and all is fine. HOWEVER, I had been reading extensively about creating dashboards and was advised to use a responsive design in html5 + css etc... but still use php and mysql. ie: Someboady advised me to stop using flex as that would not be a viable solution for tablets and mobiles and the flash player is not supported. I know we have the AIR run time but this is supoposed to be a dashboard running in the browser so teachers can log in and check out kids results. I don't know if you have any opinion about this.