I can't think of anything that wouldn't be acceptable using the default values. For example, visibility could be set to false, the alpha of either the UIComponent or the container it is within might be able to obscure its view, the x,y values might have pushed the visible portion of the UIComponent out or sight. If you want to post any code, I'm sure either myself or someone else could offer suggestions.

-Mark

leo4beer wrote:
Well, seems like the test case work but not the actual feature.

the component in which im using the drawing API is nested in another
component (using createChildren), it works when it's on his own but
not when inside the parent.

any ideas?

--- In [email protected], "leo4beer" <[EMAIL PROTECTED]> wrote:
  
You were right, i did not set the line style.

Thanks!

--- In [email protected], Mark Wales <stuff@> wrote:
    
Not sure which version you are using, but in Flex 2 Beta 2, I also
      
have 
  
a component that extends the UIComponent.

When you say you are using the drawing API, I presume you are doing 
something like this:

this.graphics.clear();
this.graphics.beginFill(0xff0000);
this.graphics.drawRect(-25, -25, 50, 50);

One thought is that you may not be setting the line color or line
      
width. 
    
Is that a possibility? Make sure you have something equivalent to
      
this:
  
c.graphics.lineStyle(1, 0xff0000);

-Mark

leo4beer wrote:

      
Using the drawing API inside a component.

Hi, I've made a custom component by extending the UIComponent class,
in my component I've overridden the draw() method and used
        
drawing API
  
to draw a few lines.
I've embedded my component in an MXML page but I don't see the
        
lines…I
  
must be doing something wrong, any ideas?

Thanks in advance,

Leo.







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
        
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
    
Yahoo! Groups Links









 

        






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

<*> 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/
 




  


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to