3 Replies Latest reply on Jul 26, 2010 11:01 AM by GordonSmith

    Hi, need some assistance over here.


      Hi guys, can i check with you guys wha

      t does this source code means?


      <?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/halo" creationComplete="init()" minWidth="1500" minHeight="1000" height="859">


          <mx:DataGrid x="19" y="368" id="playlistgrid" width="289" height="147">




                  <mx:DataGridColumn headerText="Name" dataField="name" width="180"/>


                  <mx:DataGridColumn dataField="starttime" headerText="Start" width="50"/>


                  <mx:DataGridColumn dataField="endtime" headerText="End" width="50"/>


                  <mx:DataGridColumn dataField="livesource" headerText="DVR" width="50"/>







      <mx:DataGrid x="20" y="38" id="sourcegrid" width="289" height="126">




                  <mx:DataGridColumn headerText="Name" dataField="name" width="200"/>






          <mx:Label x="18" y="16" text="Source files (on Demand)"/>


         <mx:DataGrid x="20" y="195" id="livestreamgrid" width="289" height="74">




                  <mx:DataGridColumn headerText="Name" dataField="name" width="200"/>






          <mx:DataGrid x="17" y="570" id="outputgrid" width="289" height="207">




                  <mx:DataGridColumn headerText="Name" dataField="name" width="200"/>






          <mx:Label x="15" y="548" text="Exported highlights (for on-demand CDN)"/>


          <mx:Label x="18" y="174" text="Live DVR streams"/>


          <s:Button x="19" y="312" label="Set In Point" id="setin_btn"/>


          <s:Button x="107" y="312" label="Set Out Point" id="setout_btn"/>


          <s:Button x="19" y="339" label="Add selected clip to Playlist" id="addtoplay_btn"/>


          <s:Button x="21" y="519" label="Generate on-demand file" id="generate_btn"/>


          <s:TextInput x="19" y="284" width="83" id="inpoint_txt"/>


          <s:TextInput x="106" y="284" width="93" id="outpoint_txt"/>


          <s:TextArea x="216" y="284" height="21" id="currenttimecode" editable="false" textAlign="center" width="90"/>


          <s:TextArea x="17" y="785" width="370" id="status_txt" fontSize="12" height="63"/>



      Despite this source code was copied from the tutorial guide, when i complied it to flex 4, I'm having errors on those line in bold and red.
      My question would be,
      Firstly, what does this whole source code means? Can any kind soul help me out?
      Secondly, what does the error means? The error code reported was :
      "Could not resolve <mx:DataGrid> to a component implementation.

        • 1. Re: Hi, need some assistance over here.
          NewFlo Level 1

          This mxml-code layouts some flex components... DataGrid is a table like DataContainer which is organized in rows and columns.

          The DataGridColumn defines the Data presented in one of this columns. The error you get usally means that you are missing the

          import statement for the datagrid-component(import mx.controls.DataGrid;). My advise is that maybe get a book about the new Flex 4 Framework(because a lot has changed and most tutorials, in my opinion, are outdated now) and invest some time to get you head

          around the very basics of flex before starting with this web tutorials.


          All the best.

          • 2. Re: Hi, need some assistance over here.
            Hickies Level 1

            errhhh? Hi dude, I don't quite understand.


            So what do I do now? I already have a Flex 4 book.


            It's a freaking bible. And i don't know where to begin

            • 3. Re: Hi, need some assistance over here.
              GordonSmith Level 4

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


              I believe this should be




              Gordon Smith

              Adobe Flex SDK Team