I’m trying to create component:
<?xml version="1.0"?>
<s:VGroup xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:s="library://ns.adobe.com/flex/spark">
<mx:DataGrid id="letDataGrid" width="100%" height="100%" rowCount="5">
<mx:columns>
.......
</mx:columns>
</mx:DataGrid>
<mx:Form>
.......
</mx:Form>
</s:VGroup>
code is placed into FileName.mxml. When I’m trying to use it (into ViewStack)
<s:NavigatorContent label="Blocks" width="100%" height="100%">
<comp:FileName/>
</s:NavigatorContent>
app is compiled and there’s nothing in pane where component should be. Can someone explain me what is done incorrect?
UPD if I paste content of FileName.mxml in place of <comp:FileName/> everything is ok
For those who’ll read the question: I now understand where the problemm is. I used wrong namespace. There should be
library://ns.adobe.com/flex/mx"instead ofxmlns:mx="http://www.adobe.com/2006/mxml"