To know if you in design time or run time, you can access that 
property using UIComponentGlobals.designTime or 
UIComponentGlobals.designMode. Name varies from Flex 2 and Flex 3. To 
deploy your component in a similar fashion as standard components are 
deployed, you need to write manifest.xml and design.xml.
Visit the following two links for more details:
http://vizsage.com/blog/2007/07/adobe-flex-and-custom-namespace.html
http://www.igorcosta.org/?p=186

Thank you

--
Chetan 
www.riageeks.com

--- In [email protected], dorkie dork from dorktown 
<dorkiedorkfromdorkt...@...> wrote:
>
> i thought there was a property to be able to check if you are in 
design
> view?
> ps anyone know anything about third party component support in Flex 
4?
> 
> On Tue, Aug 1, 2006 at 6:20 PM, Jeremy Lu <wade...@...> wrote:
> 
> >
> > if you pack the component in swc format,
> > just add it to your project's library path, press "add swc" button 
then
> > fill in this:
> >
> > ${DOCUMENTS}\Project_Name\component.swc
> >
> > then your custom component will display in Desgin-view.
> >
> > hth,
> > Jeremy.
> >
> >
> >
> >
> > On 8/2/06, jakub_kozniewski <cont...@...> wrote:
> >>
> >>    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.
> >>
> >>
> >  
> >
>



Reply via email to