Bilbosax opened a new issue #1072:
URL: https://github.com/apache/royale-asjs/issues/1072


   I have made a very simple app that contains a main app App.mxml with a 
ResponsiveView in the MainContent.mxml.  It is an extremely simple app modeled 
on the structure of Tour De Jewel.  I am having trouble moving forward because 
I get an error that I don't understand and can't find any information about.  
The error is:
   
   "Uncaught Error: One or more content in ApplicationMainContent is not 
implementing ISelectableContent interface."
   
   I only have one component in the ApplicationMainContent that looks like this:
   
   ```
   <?xml version="1.0" encoding="utf-8"?>
   <j:Grid xmlns:fx="http://ns.adobe.com/mxml/2009";
        xmlns:mx="library://ns.apache.org/royale/mx"
        xmlns:s="library://ns.apache.org/royale/spark"
           xmlns:j="library://ns.apache.org/royale/jewel"
           xmlns:js="library://ns.apache.org/royale/basic"
           xmlns:html="library://ns.apache.org/royale/html"
        xmlns:svg="library://ns.apache.org/royale/svg" 
itemsHorizontalAlign="itemsCenter" itemsVerticalAlign="itemsCenter">
   
           <fx:Script>
               <![CDATA[
                  
               ]]>
           </fx:Script>
   
           <j:GridCell localId="mapCell" desktopNumerator="1" 
desktopDenominator="2"
               tabletNumerator="1" tabletDenominator="2"
               phoneNumerator="1" phoneDenominator="1" 
itemsHorizontalAlign="itemsCenter" itemsVerticalAlign="itemsCenter" 
height="550">
               <svg:Image localId="headerRect" src="svg/headerBar.svg" 
width="100%" height="100%"/>
           </j:GridCell>
           
           <j:GridCell localId="propListCell" desktopNumerator="1" 
desktopDenominator="2"
               tabletNumerator="1" tabletDenominator="2"
               phoneNumerator="1" phoneDenominator="1" 
itemsHorizontalAlign="itemsCenter" itemsVerticalAlign="itemsCenter">
               <j:List localId="propList" width="100%" height="550">
               </j:List>
           </j:GridCell>
   
   </j:Grid>
   ```
   
   In Tour De Jewel, you have one variable set up called private var 
currentContent:ISelectableContent, but the variable is never used.  Tour De 
Jewel compiles fine without this error, but my basic app with only one 
component in the ApplicationMainContent has it.
   
   What is ISelectableContent and what objects do I need to incorporate into my 
components to get rid of this error?  I've attached the sample app to this post.
   
[TestError.zip](https://github.com/apache/royale-asjs/files/5900696/TestError.zip)
   
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to