Hi guys !

I'm struggling with an issue that seems to be
uncovered yet...

How can I make my ActionScript component,
which is derived directly from UIComponent,
preview in IDE just like built-in framework components do ?
(I mean to show same appearance like during runtime)...

Here is simple example of my component:



package com.jkozniewski.comp{

   import mx.core.UIComponent;

   public class Test extends UIComponent{

      public function Test(){
         super();
      }

      override protected function
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
         super.updateDisplayList(unscaledWidth, unscaledHeight);
         draw();
      }

      public function draw():void{
         graphics.lineStyle(5,0xFFFFFF,1.0);
         graphics.drawRect(0,0,width,height);
      }


   }
}




After running flex app I can see white rect just like expected, but
there is no preview in IDE...

Another issue is that [Inspectable] props
are not showing in Flex Properties panel in Common section
even if I set category="General" (just like in source code of
framework components)..

Thanks for any help :)
(I won't be able to reply soon because I'm leaving for a while but
hope to see informative comments when I get back ;))

Regards.
Jakub Ko¼niewski.








 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcomponents/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to