Google
 
Webnews.only-4-geeks.com
Interesting places
news.only-4-geeks.com Forum Index » Flash

on release under FOR

 
Jump to:  
 
octav20xx
PostPosted: Tue Sep 02, 2008 12:34 pm    Post subject: on release under FOR
       
I have a FOR {
var temp:MovieClip = eval("but"+Number(i+1)); // this seems to be OK
temp.onRelease = function() { tx.text += i; }; ////// and, I just get i+1, at
every button release
}

suggestions?
 

 
octav20xx
PostPosted: Wed Sep 03, 2008 8:08 am    Post subject: Re: on release under FOR
       
solved... for whose who will get this problem:

for (i=0;i<big_number;i++) {
var temp:MovieClip = eval("but"+Number(i+1));
temp.id = i;
temp.onRelease = function() {
tx.text += '- '+this["id"];
};
}
 

Page 1 of 1 .:.

Google
 
Webnews.only-4-geeks.com

Windows Update | C++ | C | PHP | JavaScript | Photoshop | Programming | Windows 2000 | Python | Windows XP | Object | Flash | Flash - ActionScript | Paint Shop Pro | Excel | PowerPoint | Access | Word | Windows 98 | Internet Explorer 6.0 | CorelDraw12 | Java | XML | asm x86 | Linux Mandrake | Linux RedHat | Outlook |  | news from newsgroups |_ | s

Web Templates

Awesome Website Templates ©

HACCP prostowniki Mecze na żywo w internecie healthcare costs gps tom tom