You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@royale.apache.org by Bilbosax <wa...@comcast.net> on 2021/01/22 05:56:19 UTC

MX PopUpManager

OK.  So the mobile app that I am trying to convert to Royale relies heavily
on PopUps.  I know that Royale has a new PopUp component, but if at all
possible, I want to keep my codebase somewhat intact, so I would prefer to
use the mx PopUpManager.  But for some reason, PopUpManager is not even
being seen in VS Code as an acceptable class.  I am getting the error:

"Definition mx.managers.PopUpManager could not be found."

Am I using the wrong namespace for mx components perhaps?





?xml version="1.0" encoding="utf-8"?>
<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
				xmlns:mx="library://ns.apache.org/royale/mx"
                xmlns:js="library://ns.apache.org/royale/express"
                xmlns:j="library://ns.apache.org/royale/jewel"
                 xmlns:local="*" 
                applicationComplete="appComplete(event)">

	<fx:Style source="cssAssets/defaults.css"/>
	
	<fx:Script>
		
	</fx:Script>
	
    <js:initialView>    	
        <js:View width="100%" height="100%">
	        <j:Group id="firstGroup" width="100%" height="100%">	        
	            <j:Label id="myLabel" text="Hello World" x="100" y="100"/>
	            <j:Button id="dimensions" text="Dimensions" x="100" y="300"
width="100" height="30" emphasis="primary" click="report(event)"/>
	        </j:Group>
        </js:View>
    </js:initialView>
</js:Application>



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/

Re: MX PopUpManager

Posted by Bilbosax <wa...@comcast.net>.
I found your discussion here https://github.com/apache/royale-asjs/issues/495 

that talks about having to change your configuration file to be able to use
mx components in a Royale app since 0.9.6 was released.  So now my test app
can see the classes and I thought everything would work.  I made a couple of
small changes to my code above that were typos, but now I am getting an
error on this line

PopUpManager.centerPopUp(cityStatePopUp);

 that says says 

"Implicit coercion of a value of type CityStatePopUp to an unrelated type
mx.core.IFlexDisplayObject"

I have run this line of code a million times in AIR, so I don't understand
why I am getting this error in Royale.  Can anybody give me a suggestion?



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/