1 Reply Latest reply on Oct 7, 2011 10:44 AM by Shongrunden

    Flex Mobile Best Practies

    MatteoLegittimo

      Hi to every one!!!

      I'm try to building an app for mobile with a flex mobile project.

      The UI is gonna be something like in the picture:

       

      appKreaton.jpg

      I would like to know witch is the best practies to put all the grafics element into my views.

      For example, for the bricks (that comes from an xml) i created a component, inside the component i put my fxg file in a group with a gap:

       

      My View:

      <s:VGroup gap="10">

              <customComponents:BrickComponent/>

              <customComponents:BrickComponent/>

              <customComponents:BrickComponent/>

          </s:VGroup>

       

       

      BrickComponent:

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

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

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

          <fx:Declarations>

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

          </fx:Declarations>

          <assets:Brick/>

      </s:Group>

       

      The same for the tshirt.

      It is a good way like this?

      And draw and import from flash catalyst?

       

      Thanks a lot