Those beads or their equivalent are baked in to the emulation components.

FlexGlobals.topLevelApplication.parameters exists in the emulation components.  
It may not be wired up correctly yet, but if not, it will be.  However, it will 
be wired by default to the URL parameters for the hosting webpage.  I don’t 
think we’ve dealt with flashvars yet.  If your hosting web page has set up your 
flashvars to be different from the URL parameters then you may tweak some code 
in the hosting web page.  If this is the case, can you share more about how you 
determine your flashvars?  I couldn’t quite get it from the snippets you 
provided.  It wasn’t clear if the JSP was putting the flashvars into a global 
or local variable and when it got passed to the SWFObject.  There won’t be a 
SWFObject in Royale.  Maybe we’ll make it so the parameters first look for a 
global flashvars variable or something like that.

Let us know,
-Alex

From: Carlos Rovira <carlosrov...@apache.org>
Reply-To: "users@royale.apache.org" <users@royale.apache.org>
Date: Thursday, October 25, 2018 at 9:46 AM
To: "users@royale.apache.org" <users@royale.apache.org>
Subject: Re: How to use FlexGlobals.topLevelApplication.parameters? 
Alternatives?

Hi Ulrich,

please check ApplicationParametersBead and
ApplicationParametersCaseInsensitiveBead


and
https://github.com/apache/royale-asjs/issues/129<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Froyale-asjs%2Fissues%2F129&data=02%7C01%7Caharui%40adobe.com%7Cd8ef537ae0574651058d08d63a9972e2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636760828063298266&sdata=j5r6zjlKRj%2BEu6CHIBBC%2Fv94JB0LkZqBADMMkMJCHac%3D&reserved=0>

I still didn't use it so others could hopefully give more detail

Best

Carlos




El jue., 25 oct. 2018 a las 17:36, 
<ulrich.muel...@carnet-gmbh.de<mailto:ulrich.muel...@carnet-gmbh.de>> escribió:
Hello,

first of all: Many thanks to all contributers of Apache Royale. It looks very 
promising.  Thanks.

We have a large set of customer specific Flex applications targeted to Flash 
output. We are currently evaluating if we can use Royale/JS to replace them 
without must redevelopment.

Is there an infrastructure to use FlexGlobals.topLevelApplication.parameters 
and the flashvar within the template? We have some variables filled there (by 
an Tomcat Server via an JSP page).


App.jsp

var flashvars = {};
flashvars.myvar= '<%=request.getAttribute("someindex")%>';


App.mxml

var myvar:String = FlexGlobals.topLevelApplication.parameters.myvar as String;



Mit freundlichen Grüßen / Best regards

Ulrich Müller
Dipl. Inf.


CARNET GmbH
Chemnitz, Germany





--
Carlos Rovira
http://about.me/carlosrovira<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7Cd8ef537ae0574651058d08d63a9972e2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636760828063454514&sdata=yacWLmHFX8O1u8%2FNUd%2FXjbYJsYDk5Ci866rBiOP7NyQ%3D&reserved=0>

Reply via email to