Just created a new component and tried to pack it into a swc, the
component is named "TheComponent.as" and the swc is named "test.swc"

Got two questions.

1. The custom component never shows up in Design View, just like those
FB2 built-in components did.

Actually no matter it's packed in a swc file or just direct import the
component actionscript file, it just won't display in Design View,
hence user can't live preview and manipulate it right on the stage.

2. Code hint for custom class/component never showed up.

When I created a new project and drop the test.swc in and add it to
the library path, then use following code to put it on stage:

var t:TheComponent = new TheComponent();
this.addChild( t );

Or

<ns1:TheComponent />

The component will appear on stage, but all code hint for it was gone,
normally when I type

t. <-- there should be a drop down list of code hints for t right
after . (dot), but nothing showed up

or

<ns1:TheComponent <-- after typing the space, there should be a code hint

It failed me in both ways.

Any one could shed a light on these two questions ? thanks.

Btw, I have tried to pack the swc using both Library project and
compc, also tried various combinations of -namespace, -source-path and
manifest xmls.


Jeremy.






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


Reply via email to