  | | | Loss of _global scope? | Loss of _global scope? 2004-03-16 - By Brook Davies
Back This is strange. I have a swf loaded with loadmovie() that includes the tabbar component. At one point, tabbing between screens, I lose the _global scope! When I trace:
for (i in _global){ trace(i + ':' + _global[i]) }
I get nothing!
When the window first loads, this trace returns a sh*t load of information. The global scope IS still available to other parts of the movie once I close this window.
Does this have something to do with the Object receiving the tabbar click event? When a user clicks that tabbar I have a listener object, that calls the handler to show a different screen which is a movieclip:
tabBarManager = new Object(); tabBarManager.timeline=timeline tabBarManager.owner = this; tabBarManager.change = function(eventObj){
trace(eventObj.target.getItemAt(eventObj.newIndex).data);
trace('Property Manager Data'); for (i in _global.propertyManager){ trace(i + ':' + _global.propertyManager[i]) }
this.owner.showScreen(eventObj.target.getItemAt(eventObj.newIndex).data,this .timeline); }
When the tabbat is clicked, the output for _global is correct, but in showScreen(), the same _global trace returns nothing.
Does anyone have any insights into this?
Brook Davies logiforms.com
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Supported by Fig Leaf Software =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Be sure to check the archives and the wiki: http://chattyfig.figleaf.com/ =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:107167 =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe send a blank e-mail to: Normal Mode: flashcoders-unsubscribe@(protected) Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |