Hi, let's see if someone can give me some hints...
I have created an ".as" component that extends StyledUIBase.
When I insert this component in a ".mxml" view [1] everything works correctly
but when I isolate it in an independent ".mxml" [2] an error occurs [3].
I can't extend it from StyledUIBase, do you know what could be happening?
[1] works ok:
<trees:treePermissions localId="treePermiss" width="300" height="500"
style="border: 1px solid #d3d3d3;">
<trees:beads>
<wp:InspireTreePaginateBead paginate="true" numNodesPage="5"/>
<wp:InspireTreeCheckBoxModeBead checkboxField = "activo"
showCheckboxes="true" revertIcon="true"/>
<wp:InspireTreeIconBead />
</trees:beads>
</trees:treePermissions>
[2] Does not work
<?xml version="1.0" encoding="utf-8"?>
<wp:InspireTreeBasicControl
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:j="library://ns.apache.org/royale/jewel"
xmlns:js="library://ns.apache.org/royale/basic"
xmlns:wp="library://ns.iest.com/winplusweb"
style="border: 1px solid #d3d3d3;">
[3]
https://drive.google.com/file/d/1iurPTuXkowpt1xqC_UjlSwfbRA7LT52s/view?usp=sharing
Se produjo una excepción: TypeError: this.generateMXMLAttributes is not a
function
at new com.iest.winplusweb.views.configsystem.security.PermissionsTree
(http://localhost:8080/WNetSuitePlus/com/iest/winplusweb/views/configsystem/security/PermissionsTree.js:60:8)
at Function.org.apache.royale.utils.MXMLDataInterpreter.generateMXMLArray
(http://localhost:8080/WNetSuitePlus/org/apache/royale/utils/MXMLDataInterpreter.js:120:38)
at Function.org.apache.royale.utils.MXMLDataInterpreter.generateMXMLInstances
(http://localhost:8080/WNetSuitePlus/org/apache/royale/utils/MXMLDataInterpreter.js:265:49)
at org.apache.royale.jewel.VGroup.org.apache.royale.jewel.Group.addedToParent
(http://localhost:8080/WNetSuitePlus/org/apache/royale/jewel/Group.js:69:49) at
org.apache.royale.jewel.supportClasses.card.CardPrimaryContent.org.apache.royale.core.UIBase.addElement
(http://localhost:8080/WNetSuitePlus/org/apache/royale/core/UIBase.js:397:5)
at
org.apache.royale.jewel.supportClasses.card.CardPrimaryContent.org.apache.royale.jewel.supportClasses.group.GroupBase.addElement
(http://localhost:8080/WNetSuitePlus/org/apache/royale/jewel/supportClasses/group/GroupBase.js:165:81)
at
Function.org.apache.royale.utils.MXMLDataInterpreter.initializeStrandBasedObject
(http://localhost:8080/WNetSuitePlus/org/apache/royale/utils/MXMLDataInterpreter.js:235:12)
at Function.org.apache.royale.utils.MXMLDataInterpreter.generateMXMLArray
(http://localhost:8080/WNetSuitePlus/org/apache/royale/utils/MXMLDataInterpreter.js:121:53)
at Function.org.apache.royale.utils.MXMLDataInterpreter.generateMXMLInstances
(http://localhost:8080/WNetSuitePlus/org/apache/royale/utils/MXMLDataInterpreter.js:265:49)
at
org.apache.royale.jewel.supportClasses.card.CardPrimaryContent.org.apache.royale.jewel.Container.addedToParent
(http://localhost:8080/WNetSuitePlus/org/apache/royale/jewel/Container.js:69:49)
Thx
Hiedra.