Availability
Flash 2.
Usage
play()
Parameters
None.
Returns
Nothing.
Description
Action; moves the playhead forward in the Timeline
Example
The following code uses an if statement to check the value of a name the user enters. If the user enters Steve, the play action is called and the playhead moves forward in the Timeline. If the user enters anything other than Steve, the movie does not play and a text field with the variable name alert is displayed
كود PHP:
stop();
if (name == "Steve") {
play();
} else {
alert="You are not Steve!";
}
الترجمة العربية:
متاح هذا الأكشن من الأصدار
Flash 2
الصيغة
play()
العوامل
لا يوجد .
ما يرجع به الأكشن
لا شيء .
الوصف
نوعه حدث Action ، يحرك رأس القراءة للأمام على خط الزمن .
مثال
الكود التالي يستخدم جملة if لاختبار قيمة أسم المستخدم المدخل .
أذا أدخل المستخدم stave ، يستدعى الحدث play و يتحرك رأس القراءة للأمام على خط الزمن .
إذا ادخل المستخدم أي شيء آخر غير stave ، مقطع الفيديو لن يشتغل / يعرض و حقل النص الممثل بالمتغير alert سيعرض النص التالي "You are not Steve!"
كود PHP:
stop();
if (name == "Steve") {
play();
} else {
alert="You are not Steve!";
}
بواسطة الأخ الأستاذ : الطرماح