Mailing List
Home
Forum Home
Flash Pro
Subjects
Subject: RE: Firework Effect
Web Service Results
Flash Interface with 10mb xml file
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash MX 2004 Sucks
Reading and displaying RSS feeds in Flash MX
Flash and QuickTime VR
Textfield prototype question
XML to Object help
Order of events per frame
MX2004 Dataset itemClassName
memory management removeMovieClip /
Event Dispatcher between classes
Help: MX 2004 How to script a print button to print the entire sli
ScrollPane component doesn 't auto update
setInterval bug identified and fixed
setInterval bug identified and fixed
Listener Object 's best practice
 
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)