עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

נסיון לעשות דף מוגן בססמא בפלאש

Featured Replies

פורסם

אני מנסה לעשות דף מוגן בססמא. עקבתי אחרי מדריך, אבהל באמצע עצרתי את המדריך והתחלתי לשפר אותו.. ניסיתי לבנות את זה במקום עם IF-ים עם SWITCH, אבל משום מה זה לא מצליח...

בדקתי בHELP ורשמתי בדיוק כמו בHELP, אבל אני מקבל כל הזמן PASSWORD INCORRECT

on (release, keyPress"<ENTER>"){
switch (pass1){
case "google" :
trace("google entered as password");
break;
case "walla" :
trace("walla entered as password");
break;
default :
wrongpass.alpha=100;
trace("password incorrect");
}
}

יש משהו שעשיתי לא בסדר?

פורסם

הרבה זמן לא נגעתי בפלאש..

1) אתה בטוח שיש משתנה כזה pass1?

2) נסה לשים break; אחרי ה trace של ה default.

פורסם
  • מחבר

pass1 הוא תיבת INPUT TEXT

2. ניסיתי.. לא עובד..

פורסם

אני לא זוכר כרגע את הcase בלפאש אבל אתה בטוח שצריך להשתמש ב"default"? כי זה נשמע שהוא ילך לשם בכל מקרה...

ומה רע בלהשאיר את IF? אם הגלגל מתסובב לא צריך להמציא אותו מחדש.

פורסם
  • מחבר

CASE נראה לי קצת יותר נוח...

וכן.. צריך להשתמש בDEFAULT...

switch (condition) {
case A :
// statements
// falls through
case B :
// statements
break;
case Z :
// statements
break;
default :
// statements
break;
}

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.