I created a Flex Library Project which contains an .MXML file with one componnent (a button). It's called Button.mxml in myLibrary.views package.
Then i created a different Flex Mobile project in which i want to include the button from my library project. This project refers the previously created library.
I can't find an answer on how to achieve this.
Can i add it somehow like an mxml componnent?
<?xml version="1.0" encoding="utf-8"?>
< s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
applicationDPI="240">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<fx:Script>
<![CDATA[
import myPackage.views.Button; // this is the package containing Button.mxml
]]>
</fx:Script>
<myPackage.Views.Button id="myButton" /> // is this possbile somehow ???
</s:Application>
Thank you!