make sure your namespacematches - yes It inherits from HBox Nope, it's not a typing mistake.
The error goes away when I save the main mxml file. However, if I edit my custom component then Builder complains again. My custom component uses another custom component in another package. My code for this component: <?xml version="1.0" encoding="utf-8"?> <mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:colorcomponents="com.nameyourfavoritecolor.graphics.*" width="100%" height="400"> <mx:Script> <![CDATA[ import flash.display.BitmapData; import flash.display.Bitmap; import mx.core.UIComponent; import flash.display.Sprite; import flash.system.Security; import flash.events.MouseEvent; [Bindable] private var colorPicked:uint; private function pickColor(displayObject:DisplayObject):void{ var bitmapData:BitmapData = new BitmapData(displayObject.width, displayObject.height); bitmapData.draw(displayObject); var point:Point = new Point(displayObject.mouseX, displayObject.mouseY); var pixel:Point = localToGlobal(point); var aColor:Number = bitmapData.getPixel32(displayObject.mouseX, displayObject.mouseY); colorPicked = aColor; //dispathEvent(new ColorEvent(colorPicked)); } ]]> </mx:Script> <colorcomponents:ColorBar id="colorbar" mouseMove="pickColor(this)" width="400" height="400" /> <mx:Canvas width="400" height="400" backgroundColor="{colorPicked}"/> </mx:HBox> --- In [email protected], "Edward Rockwell" <[EMAIL PROTECTED]> wrote: > > sorry dude .. I'm getting old .. :-) ...hope you solved your problem though > .. > > On Thu, Aug 21, 2008 at 9:27 PM, Josh McDonald <[EMAIL PROTECTED]> wrote: > > > That'd be xmlns:mycustom="com.mypackage.uicomponenets.*" > > > > :) > > > > -Josh > > > > > > On Fri, Aug 22, 2008 at 11:13 AM, Edward Rockwell < > > [EMAIL PROTECTED]> wrote: > > > >> dude .. check thoroughly for type-os, make sure your namespacematches > >> xmlns="mycustom:com.mypackage.uicomponenets.*", > >> and be sure that your CustomComponent inherits from UIComponent .. > >> > >> On Thu, Aug 21, 2008 at 5:17 PM, John Waggener <[EMAIL PROTECTED]>wrote: > >> > >>> I built a custom component that is primarily a color chooser. It also > >>> has a textbox and a numeric stepper in addition to the custom color > >>> chooser. It utilizes another custom component that I created - a color > >>> wheel. > >>> > >>> The color chooser is in a package named com.mypackage.uicomponents and > >>> referenced in my main .mxml file via a xmlns. > >>> > >>> I keep getting this error: > >>> > >>> Could not resolve <mycustom:CustomComponent> to a component > >>> implementation. > >>> > >>> I think it's a namespace issue but I don't fully understand it. Can > >>> anyone help with this? > >>> > >>> -- > >>> Johnny Waggener > >>> 678-592-2650 > >>> [EMAIL PROTECTED] > >>> www.johnnyillustrations.com/portfolio.htm > >>> > >>> > >> > >> > >> -- > >> Jamie > >> > > > > > > > > -- > > "Therefore, send not to know For whom the bell tolls. It tolls for thee." > > > > :: Josh 'G-Funk' McDonald > > :: 0437 221 380 :: [EMAIL PROTECTED] > > > > > > > > > > -- > Jamie >
