• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Push View with Context

New Here ,
Mar 05, 2012 Mar 05, 2012

Copy link to clipboard

Copied

Hi,


I am trying to push a view and pass context along with the data so my view can respond accordingly.

I am pushing the view as follows:

    

     navigator.pushView( MyViewClass, data, "myContext" );

In MyViewClass, I can access the 'data' property but the 'context' property doesnt appear to have a value.  So, either I am not using/passing it properly, or there is a bug. I suspect the former is more likely. 

I am using the Adobe Flex 2.6 SDK.


Any ideas or suggestions here?

Many thanks,

Greg

TOPICS
Developers

Views

900

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 05, 2012 Mar 05, 2012

Copy link to clipboard

Copied

LATEST

Sorry, let me add a few more details here...

In MyViewClass, in the viewActivateHandler, I get an 'undefined property' error when I try to access 'context'.  Again, I can access the 'data' property object just fine.

Txs again,

-g

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines