flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From npem <philip.med...@gmail.com>
Subject pushView to a view using a variable as the view name
Date Thu, 10 Dec 2015 17:35:39 GMT
Hi,
I am opening a new view and have access to an object with the name of the
sending view,
which I will call "fromView"

Rather than using:
*navigator.pushView(views.fromView, null, null, transition);
*

I'd like to use a variable name, such as:
*navigator.pushView(views.fromViewVariable, null, null, transition);
*

I have tried variations of:
*            var myClass:Class = getDefinitionByName("views.fromView") as
Class;
            var fromViewVariable:Object = new myClass();
            navigator.pushView(Class(fromViewVariable), null, null,
transition);*

But can't get the code to work.

Any help will be appreciated.

TIA,
Phil.



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/pushView-to-a-view-using-a-variable-as-the-view-name-tp11637.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Mime
View raw message