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.
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.
__._,_.___![]()
SPONSORED LINKS
Custom software development Database development software Embedded software development Offshore software development Software development
YAHOO! GROUPS LINKS
- Visit your group "flexcomponents" 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.
__,_._,___
- [flexcomponents] 'live preview' of custom components jakub_kozniewski
- Re: [flexcomponents] 'live preview' of custom compon... Jeremy Lu
Reply via email to
