mr.ekoo Posted June 20, 2013 Posted June 20, 2013 السلام عليكم بغيت استفسر عن هالكود killTimer لو كنت مسوي تايمر كذا setTimer ( function() -- code here end, 3000, 0 ) والتايمر داخل حدث وابغي سوي killTimer بحدث ثاني كيف ؟
TAPL Posted June 20, 2013 Posted June 20, 2013 حط متغير للتايمر myTimer = setTimer ( function() -- code here end, 3000, 0 ) killTimer(myTimer)
iMr.3a[Z]eF Posted June 20, 2013 Posted June 20, 2013 إعتبر killTimer مثل destroyElement يَ تابل يعني كلامي اللي فوق صح؟
TAPL Posted June 20, 2013 Posted June 20, 2013 فهو صحيح destroyElement نفس طريقة killTimer إذا كنت تقصد يسوي متغير و يستخدم الفنكشن ذا ما بيضبط لان التايمر مو المنت killTimer بدل الفنكشن destroyElement أما إذا كنت تقصد يستخدم فنكشن
RdX Posted June 22, 2013 Posted June 22, 2013 Your Timer = setTimer ( function() -- code here end, 3000, 0 ) killTimer ( Your Timer)
TAPL Posted June 22, 2013 Posted June 22, 2013 Your Timer = setTimer ( function() -- code here end, 3000, 0 ) killTimer ( Your Timer) جبت شي جديد؟ و ترا اسم المتغير ما يصير تحط فيه مسافة
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now