ورود

نسخه کامل مشاهده نسخه کامل : سوال اکشن اسکریپت



syd_fattah
24-08-2011, 17:41
سلام دوستان
سوالی داشتم که اگر بتونین کمکم کنین ممنونتون میشم
من برای اینکه بخوام در فلش از فرمی به فرمی دیگه برم از فرمان



/* Click to Go to Frame and Play
Clicking on the specified symbol instance moves the playhead to the specified frame in the timeline and continues playback from that frame.
Can be used on the main timeline or on movie clip timelines.

Instructions:
1. Replace the number 5 in the code below with the frame number you would like the playhead to move to when the symbol instance is clicked.
*/

button_1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_23);

function fl_ClickToGoToAndPlayFromFrame_23(event:MouseEvent ):void
{
gotoAndPlay(5);
}


استفاده میکنم ولی خوب در این فرمان باید حتما بر روی یک باتوم کلیک شودتا فرمان اجرا شود من میخوام زمانی که نشانه گر موس بر روی باتوم رفت دستور عمل کند به صورت خودکار /
ایا باهمین دستور میشه این کارو کرد یا باید از دستور دیگه ای استفاده کرد
ممنون میشم کمکم کنین

javidflasher
24-08-2011, 18:49
برای مشاهده محتوا ، لطفا وارد شوید یا ثبت نام کنید