Groups | Blog | Home
all groups > flash actionscript > october 2004 >

flash actionscript : _level2._totalframes


asilter
10/23/2004 8:13:43 PM
hi

i want to get total frames of a swf loaded into level2? when i use below the
codes i get undefined message.
note that i can see the swf loaded and playing in the scene.

thanx



loadMovieNum("yuklenecek1.swf", 2);
//loadMovie("yuklenecek1.swf", _root.yuklenen);
trace(_level2._totalframes);
stop();
_jrh_
10/23/2004 8:59:20 PM
You cannot check properties of the swf you're loading until it is completely
loaded into the movie. Have preload code that checks the load progress, and
when it's at 100%, you can check properties and attach objects, etc.
AddThis Social Bookmark Button