Presentation is loading. Please wait.

Presentation is loading. Please wait.

Creating Scenes A scene in flash contains one or more layers that show related objects, in the stage, that act and interact to deliver a certain idea.

Similar presentations


Presentation on theme: "Creating Scenes A scene in flash contains one or more layers that show related objects, in the stage, that act and interact to deliver a certain idea."— Presentation transcript:

1 Creating Scenes A scene in flash contains one or more layers that show related objects, in the stage, that act and interact to deliver a certain idea. المشهد الواحد في الفلاش يتكون من طبقة او اكثر لتضهر ان الاجسام ذات صلة في هذه المرحلة على هذا الفعل والتفاعل لايصال فكرة معينة A scene in flash contains one or more layers that show related objects, in the stage, that act and interact to deliver a certain idea. المشهد الواحد في الفلاش يتكون من طبقة او اكثر لتضهر ان الاجسام ذات صلة في هذه المرحلة على هذا الفعل والتفاعل لايصال فكرة معينة When creating a flash file, it will have one scene by default (named as Scene 1). عند انشاء ملف انشاء فلاش سيكون مشهد افتراضي ( واسمه مشهد 1) When creating a flash file, it will have one scene by default (named as Scene 1). عند انشاء ملف انشاء فلاش سيكون مشهد افتراضي ( واسمه مشهد 1) A created movie can have one or more scenes. A created movie can have one or more scenes. فيلم الفلاش المنتج يمكن ان يحتوي على مشهد اواكثر فيلم الفلاش المنتج يمكن ان يحتوي على مشهد اواكثر To insert a new scene into your movie: لادراج مشهد جديد على فيلم To insert a new scene into your movie: لادراج مشهد جديد على فيلم Go to (insert  scene) in the flash menubar. Go to (insert  scene) in the flash menubar.

2 Creating Scenes To delete and rename a scene in your movie: To delete and rename a scene in your movie: Go to (Window  Design Panels  Scene) in menubar Go to (Window  Design Panels  Scene) in menubar Or, Shift + F2 Or, Shift + F2 Then a new panel (scene) will be displayed. Using it, you can delete, rename, duplicate existing scenes. Then a new panel (scene) will be displayed. Using it, you can delete, rename, duplicate existing scenes. من الوحة الجديدة التي تظهر يمكن ان تستخدم لحذف, اعادة تسمية, نسخ المشهد. من الوحة الجديدة التي تظهر يمكن ان تستخدم لحذف, اعادة تسمية, نسخ المشهد. You also can insert a scene using it. You also can insert a scene using it. ويمن ان نستخدمها ايضا لاضافة مشهد ويمن ان نستخدمها ايضا لاضافة مشهد Duplicate نسخة طيق للاصل insertdelete

3 ActionScript in flash ActionScript is a way to communicate with a program. هي طريقة للتواصل مع برنامج الفلاش ActionScript is a way to communicate with a program. هي طريقة للتواصل مع برنامج الفلاش you can use it to tell Flash what to do and to ask Flash what is happening as a movie runs. يمكنك ان تقول للفلاش مالذي تريد فعله وتسال ( تحدد ) الفلاش مالذي سيحدث عندما تشغل هذا الفيلم you can use it to tell Flash what to do and to ask Flash what is happening as a movie runs. يمكنك ان تقول للفلاش مالذي تريد فعله وتسال ( تحدد ) الفلاش مالذي سيحدث عندما تشغل هذا الفيلم This two-way communication lets you create interactive movies. هذا الاتصال في الاتجاهين يمكنك من انتاج الافلام التفاعلية This two-way communication lets you create interactive movies. هذا الاتصال في الاتجاهين يمكنك من انتاج الافلام التفاعلية ActionScript is the code statements you write to interacts with flash program. اكشن سكربت هي كود بيانات تكتب ليتفاعل من خلالها مع برنامج الفلاش ActionScript is the code statements you write to interacts with flash program. اكشن سكربت هي كود بيانات تكتب ليتفاعل من خلالها مع برنامج الفلاش ActionScript can be added to frames or some flash objects (such as buttons) اكشن يمكن ان تضاف للاطارات او الاجسام ( الكائنات ) ( مثل الازرار ) ActionScript can be added to frames or some flash objects (such as buttons) اكشن يمكن ان تضاف للاطارات او الاجسام ( الكائنات ) ( مثل الازرار )

4 ActionScript in flash To open the (Actions) panel in which you can add ActionScript: لفتح لوحة الاكشن لتتمكن من اضافة الاكشن ( الكود ) To open the (Actions) panel in which you can add ActionScript: لفتح لوحة الاكشن لتتمكن من اضافة الاكشن ( الكود ) Go to (Window  Development Panels  Actions) in menubar Go to (Window  Development Panels  Actions) in menubar Or, press F9 Or, press F9 The following slides shows the different parts that compose the Action panel. الشرائح التالية تظهر الاجزاء المختلفة تتكون منها لوحة الاكشن The following slides shows the different parts that compose the Action panel. الشرائح التالية تظهر الاجزاء المختلفة تتكون منها لوحة الاكشن

5 Actions Panel Add action script code here Built-in functionalities اقترانات جاهزة Objects and frames that hold actionscript الكائنات والاطر التي يتحكم يمسك بها الاكشن The object or frame that holds The written action script الاطر او الكائنات التي يمسك بها ويكتب عليها الاكشن

6 Creating a button symbol Button symbol is used to perform some action when pressing on it. الزر الرمز يستخدم لاداء بعض الاجراءات عندما تضغط عليه Button symbol is used to perform some action when pressing on it. الزر الرمز يستخدم لاداء بعض الاجراءات عندما تضغط عليه To create a button symbol: To create a button symbol: 1. Create new flash file 2. Draw a rectangle then select it. 3. Convert it to a button symbol, call this symbol (myButton) This can be done by selecting the shape and pressing F8 This can be done by selecting the shape and pressing F8 4. Now, select the button (myButton) and press F9 to display the action script of it.

7 Creating a button symbol 5. Write action script as follows: Symbol name To print on output window (The code to be executed) Means that the the code in { } will be executed when pressing myButton

8 Creating a button symbol 6. On the Stage, double-click the logo button that you created to view the button Timeline (to enter symbol-editing mode). على المسرح اضغط مرتين على الزر الذي انشائته لعرض خط الزمن للزر ( لتدخل على التحرير للزر ) The button Timeline contains the following states: The button Timeline contains the following states: Up : the button state when it is not pressed حالة الزر غندما لايكون ضغط عليه Up : the button state when it is not pressed حالة الزر غندما لايكون ضغط عليه Over : the button state when the mouse is over it حالته عندما تمون الفارة عليه Over : the button state when the mouse is over it حالته عندما تمون الفارة عليه Down : the button state when it is pressed حالته عند الضغط عليه Down : the button state when it is pressed حالته عند الضغط عليه 7. Change the Up, Over, and Down state by inserting a key frame and changing the color on each one. لتغيير في حالة Up, Over, and Down نضيف اطار مفتاحيعند كل وحدة ونغير لون عند كل وحدة 8. Click Scene 1, above the upper left side of the Stage, to exit symbol-editing mode for the button. اضغط على المشهد 1 في الجانب الشمالي العلوي من المسرح لتخرج من التحرير للزر

9 Using Timeline functions Some useful timeline functions that controls playhead movement in a Timeline : بعض اقترانات خط الزمن المفيدة في التحكم في حركة البلاي في خط الزمن Some useful timeline functions that controls playhead movement in a Timeline : بعض اقترانات خط الزمن المفيدة في التحكم في حركة البلاي في خط الزمن stop(); stop(); It is used to stop the playhead and stop the movie playing. تستخدم لايقاف البلاي وايقاف تشغيل الفيلم It is used to stop the playhead and stop the movie playing. تستخدم لايقاف البلاي وايقاف تشغيل الفيلم 1. play(); It is used to resume the movie after stopping it. تستخدم لاعادة تشغيل الفيلم بعد ايقافه It is used to resume the movie after stopping it. تستخدم لاعادة تشغيل الفيلم بعد ايقافه 2. nextFrame(); It is used to advance to the next frame تستخدم للتقدم ( الانتقال ) الى الاطار التالي It is used to advance to the next frame تستخدم للتقدم ( الانتقال ) الى الاطار التالي 3. prevFrame(); It is used to return to the previous frame للرجوع الى الاطار السابق It is used to return to the previous frame للرجوع الى الاطار السابق

10 Using Timeline functions 1. nextScene(); It is used to advance to the next scene. للانتقال الى المشهد التالي It is used to advance to the next scene. للانتقال الى المشهد التالي 2. prevScene(); It is used to return to the previous scene للرجوع الى المشهد السابق It is used to return to the previous scene للرجوع الى المشهد السابق 3. gotoAndStop(scene_name, frame_no); It moves the playhead to the scene (scene_name) at frame number (frame_no) and stops there. لتحريك البلاي هيد للاطار الذي حددته في المشهد الذي حددته والتوقف هناك It moves the playhead to the scene (scene_name) at frame number (frame_no) and stops there. لتحريك البلاي هيد للاطار الذي حددته في المشهد الذي حددته والتوقف هناك Scene_name should be enclosed by “” اسم المشهد يجب ان يكون بين Scene_name should be enclosed by “” اسم المشهد يجب ان يكون بين Frame_no should be an integer. اسم المشهد يجب ان يكون عدد صحيح Frame_no should be an integer. اسم المشهد يجب ان يكون عدد صحيح 4. gotoAndPlay(scene_name, frame_no); The same as previous function without stopping نفس الاقتران السابق ولكن بدون التوقف The same as previous function without stopping نفس الاقتران السابق ولكن بدون التوقف

11 Using Timeline functions Ex) This example shows how to use timeline functions. 1. Create a new flash file. 2. Rename the scene to “ firstScene ” 3. Select Frame 1 of layer 1. 4. In the Actions panel, verify that Frame 1 is selected. تاكد من الاختيار الاطار 1 5. Click in the Script pane of the Actions panel, and type stop(); to add the stop action. To verify that Frame 1 is selected

12 Using Timeline functions 6. Create a new scene and name it “ newScene ” 7. In scene “ newScene ” draw a circle and make it moves from one place to another. 8. In the Action panel of the last frame of “ newScene ” add (stop();) command 9. Return to the first scene, add a button in the stage and type the following statement to the action panel of that button: gotoAndPlay( “ newScene ”,1); 10. Test the scene

13 Exercise Make a flash program that shows the steps needed to learn the subtraction process. Make a flash program that shows the steps needed to learn the subtraction process. See the file (subtraction.swf) See the file (subtraction.swf) You have to use a button to transfer from step to another. يقدم برنامج فلاش يوضح الخطوات اللازمة لتعلم عملية الطرح. انظر الصورة (subtraction.swf) يتعين عليك استخدام زر الانتقال من خطوة إلى أخرى. You have to use a button to transfer from step to another. يقدم برنامج فلاش يوضح الخطوات اللازمة لتعلم عملية الطرح. انظر الصورة (subtraction.swf) يتعين عليك استخدام زر الانتقال من خطوة إلى أخرى.


Download ppt "Creating Scenes A scene in flash contains one or more layers that show related objects, in the stage, that act and interact to deliver a certain idea."

Similar presentations


Ads by Google