Posted By

GunnarHKarlsson on 10/15/11


Tagged


Versions (?)

passing and reading context between views


 / Published in: ActionScript 3
 

  1. 1. Pass a context to MyView:
  2.  
  3. var contextObj:Object = new Object();
  4. contextObj.isFullScren = true;
  5.  
  6. navigator.pushView(MyView, nextPhoto, contextObj, leftSlide);
  7.  
  8.  
  9. 2. Reading context in MyView:
  10.  
  11. if(navigator.context)_isFullScreen = navigator.context.isFullScreen;
  12.  
  13. note that context is a property of navigator.

Report this snippet  

You need to login to post a comment.