While playing around with Flex 4 I've come accross FXG reusibility issue.
Here is what I would like to do. Suppose you have a Library.fxg file which contains the following content:
So I wonder if there is a way to include this *.fxg file into *.mxml file somehow and then use those shapes that I've defind in the library as if the library were defined in the *.mxml file itself. For example:
<?xml version="1.0" encoding="utf-8"?>
<!-- Somehow include that *.fxg file here or through defining namespace -->
<!-- Now use shapes defined in the library -->
The only similar *.fxg file inclution procees that I have found is:
However this approach does not let you use shapes that are defined in the <Library/> tag and is totally useless if there is only FXG library defined in that *.fxg file and nothing more.
In addition to that I'd like to know if there is a way to reuse content of one *.fxg file in another *.fxg file.
Nope, no way to do that at this time. Log it as a feature request
though...it's an interesting use case.