On 12/21/12 12 :08PM, "Alex Harui" <aha...@adobe.com> wrote:

>Don't you still need a class to have the name Spacer in ActionScript?  I
>think the manifest trick only works in MXML.
>
True.

Carol

>
>On 12/21/12 9:05 AM, "Carol Frampton" <cfram...@adobe.com> wrote:
>
>> I'm not commenting on whether or not there should be a s:Spacer but you
>> don't need a new class - you just need a new manifest entry to do the
>> mapping.  If you look in frameworks/spark-manifest.com you will see
>>others
>> there.
>> 
>> Carol
>> 
>> On 12/21/12 9 :44AM, "Kessler CTR Mark J" <mark.kessler....@usmc.mil>
>> wrote:
>> 
>>>   Just curious if we could add a simple component that used to exist in
>>> MX but not in Spark.  The spacer component was just a simple UI
>>> extension.  We can do the exact same thing now with the s:Rect
>>> (primitive), but it doesn't have an intuitive name.  I think it would
>>>be
>>> nice to add the spacer back in.
>>> 
>>> 
>>> 
>>> <s:Rect width="100%" />
>>> 
>>> --Same as--
>>> 
>>> <s:Spacer width="100%" />
>>> 
>>> 
>>> Class:
>>> 
>>> //Declare package.
>>> package spark.components
>>> {
>>>   //Create child class of the Rect class.
>>>   public class Spacer extends Rect
>>>   {
>>>      //----------------------------------------
>>>      //  Constructor
>>>      //----------------------------------------
>>> 
>>>      public function Spacer()
>>>      {
>>>         super();
>>>      }
>>> 
>>>   }
>>> 
>>> }
>>> 
>>> 
>>> 
>>> -Mark
>> 
>
>-- 
>Alex Harui
>Flex SDK Team
>Adobe Systems, Inc.
>http://blogs.adobe.com/aharui
>

Reply via email to