• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

flex in a week: run the mxml but nothing shows

Participant ,
Dec 29, 2013 Dec 29, 2013

Copy link to clipboard

Copied

hi

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.

</s:Application>

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

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

               xmlns:s="library://ns.adobe.com/flex/spark"

               xmlns:mx="library://ns.adobe.com/flex/mx"

               minWidth="955" minHeight="850">

   

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

   

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

   

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

   

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

   

   

   

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

   

    <fx:Declarations>

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

    </fx:Declarations>

   

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

   

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

             width="690" height="40"

             text="Employee Portal: Vehicle Request Form"

             styleName="titleHeader"/>

   

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

       

        <s:FormItem label="Employee:">

            <s:DropDownList/>

        </s:FormItem>

       

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

            <s:TextInput/>

        </s:FormItem>

       

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

            <s:TextInput/>

        </s:FormItem>

       

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

       

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

            <mx:DateChooser/>

        </s:FormItem>

       

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

            <mx:DateChooser/>

        </s:FormItem>

       

        <s:FormItem>

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

        </s:FormItem>

       

    </s:Form>

   

Views

812

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Participant , Jan 02, 2014 Jan 02, 2014

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?

Votes

Translate

Translate
Participant ,
Jan 02, 2014 Jan 02, 2014

Copy link to clipboard

Copied

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 05, 2014 Jan 05, 2014

Copy link to clipboard

Copied

LATEST

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.

Cheers

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines