I have a very simple project , that consists of two mxml files , the base mxml file that contains my application tag , and one additional custom component. The custom component extends the spark SkinnableComponent and resides in the package 'dev.components'. Im using flex builder 3 in conjuction with the flex 4 sdk and flash player 10. My problem is that my custom namespace is not being recognized. My application file contains :
<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:ay="dev.components.*" layout="absolute" width="100%" height="100%" frameRate="30" viewSourceURL="./source/public.txt" creationComplete="initializePV3D(event);" resize="manageLayout(event);"> <ay:ContentBlade> </ay:ContentBlade>
my custom component :
<?xml version="1.0" encoding="utf-8"?> <!-- dev/components/ContentBlade.mxml --> <s:SkinnableComponent xmlns="spark.components.supportClasses.*" xmlns:mx="http://www.adobe.com/2006/mxml"> </s:SkinnableComponent>
However , when i attempt to instantiate a new 'ContentBlade' in my application file , i get no syntax highlighting , like it cant find the 'ay' namespace.
As well i recieve the following syntax error :
Could not resolve <ay:ContentBlade> to a component implementation.
Why is this ? Do i have to set up the componets package as a library project and export it out as a swc ? I really dont want to create a swc library for one class and assumed pointing the namespace to a simple package would translate fine.
Any insight is greatly appreciated. Thanks !
Hey nevermind guys im a complete idiot. When i created the ContentBlade.mxml file i failed to verify that the file was actually placed in the package i specified. The thing was sitting in the project root folder. :/ Sorry !! problem solved.