Use a debug build so you get line numbers.  It'll point to the line in
your code that is generating the error.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Deniz Davutoglu
Sent: Thursday, February 14, 2008 5:05 AM
To: [email protected]
Subject: [flexcoders] SetInteval Error

 

Hello Guys,
I have collection of loaders whitch I try to manipulate with
setInterval() Code works and movie clip loaded in loader goes to
prevFrame but flash player trows me error. do you have any idea why?

var objeler:int=setInterval(loadObjects,1000)

function loadObjects():void{

for (var i:int=0;i<=moods.length;i++){


moods[i].content.root.prevFrame()
}
}

TypeError: Error #1010: A term is undefined and has no properties.
at index_fla::MainTimeline/loadObjects()
at Function/http://adobe.com/AS3/2006/builtin::apply
<http://adobe.com/AS3/2006/builtin::apply> ()
at <anonymous>()
at SetIntervalTimer/onTimer()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()

 

Reply via email to