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. 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
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___

