I'm trying to time a slide presentation where I add other elements than just the slide.
I think this scrap is all that's needed to show the problem. The newSlide() is called in two places, one timed and one untimed. When outside the timer (not where I want it) the function succeeds. Inside the timer I get : Error #1010: A term is undefined and has no properties.
ActionScript Code: for each (var item in menuXML.gallery.imageFile){ newSlide(); i++; tenSecondTimer.addEventListener(TimerEvent.TIMER, unWait); function unWait(evt:TimerEvent){newSlide();} tenSecondTimer.start(); }//While we got nodes
The offending line in newSlide() is:
imageFileName = menuXML.gallery.imageFile[i].@fileTitle.toXMLString();
Both imageFileName and menuXML are declared public at the top of the document.
thankyou in advance for your help.
Scope?! problem Perhaps
Saturday, June 2, 2012
[Action Script] Scope?! problem Perhaps May,2012
Posted by Bimo Hery Prabowo at 11:13 PM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment