it's solved, misplacement of swc file, thanks :-)
On 7/28/06, Dan Rossi <[EMAIL PROTECTED]> wrote:
As the manual says, do you not have to add it as a namespace first ?
so xmlns:panels="components.panels.*"
will load components in flex files in components/panels/
<panels:TheComponent/>
components/panels/TheComponent.mxml
or i have some in As aswell so
xmlns="com.company.comp.*"
com/company/comp/
On 28/07/2006, at 9:10 AM, dc wrote:
> 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
>
>
>
>
>
>
__._,_.___
--
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
- 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.
__,_._,___
Reply via email to

