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 <[email protected]> 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 <[email protected]> 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