Presentation is loading. Please wait.

Presentation is loading. Please wait.

Copyright © 2003 Pearson Education, Inc. Slide 7-1 Created by Jim Lengel, College of Communication, Boston University Web Wizard’s Guide to Shockwave.

Similar presentations


Presentation on theme: "Copyright © 2003 Pearson Education, Inc. Slide 7-1 Created by Jim Lengel, College of Communication, Boston University Web Wizard’s Guide to Shockwave."— Presentation transcript:

1

2 Copyright © 2003 Pearson Education, Inc. Slide 7-1 Created by Jim Lengel, College of Communication, Boston University Web Wizard’s Guide to Shockwave by James G. Lengel

3 Copyright © 2003 Pearson Education, Inc. Slide 7-2 Chapter 7 Creating Complex Interaction

4 Copyright © 2003 Pearson Education, Inc. Slide 7-3 Objectives To learn how to animate a sprite with a Lingo script and how to program random events into a Shockwave project To learn how to modify sprites with Lingo scripts and how to build sliders that enable the user to modify the Shockwave environment To learn how to use scripts to make text interactive To learn how to make sound interactive To learn how to make video interactive To learn how to interact with Web resources To learn how to create custom cursors To learn how to write a script for score keeping

5 Copyright © 2003 Pearson Education, Inc. Slide 7-4 Animating with Lingo Setting and changing a sprite’s location Scripting random movement Changing color, rotation, and size Switching cast members

6 Copyright © 2003 Pearson Education, Inc. Slide 7-5 Repeat loops on mouseUp repeat with x = 1 to the number of words of field "textpassage" if word x of field "textpassage" contains field "searchword" then hilite word x of field "textpassage" end if end repeat end mouseUp

7 Copyright © 2003 Pearson Education, Inc. Slide 7-6 Making sliders for user control

8 Copyright © 2003 Pearson Education, Inc. Slide 7-7 Text functions with Lingo Changing text appearance Adding text to a field Creating Hypertext systems Working with string functions

9 Copyright © 2003 Pearson Education, Inc. Slide 7-8 Creating interactive text

10 Copyright © 2003 Pearson Education, Inc. Slide 7-9 Interacting with Sound In the sound channels As a puppet sound In a sprite channel

11 Copyright © 2003 Pearson Education, Inc. Slide 7-10 Interacting with Video Prepare the video Import the video Set video properties Place video on the Stage Control the video with scripts

12 Copyright © 2003 Pearson Education, Inc. Slide 7-11 Interacting with Web resources Linking to Web resource ( goToNetPage ) Importing a Web resources

13 Copyright © 2003 Pearson Education, Inc. Slide 7-12 Creating Custom Cursors Big colorful cursors on exitframe set the locH of sprite 30 to the mouseH set the lochV of sprite 30 to the mouseV go to the frame end exitframe Little black-and-white cursors on exitframe cursor [56] end exitframe

14 Copyright © 2003 Pearson Education, Inc. Slide 7-13 Changing Cursor on Rollover set the cursor of sprite 5 to [56] Or on mouseEnter cursor [56] end mouseEnter on mouseLeave cursor –1 end mouseLeave

15 Copyright © 2003 Pearson Education, Inc. Slide 7-14 Keeping Score Incrementing a value Right answer: on mouseUp puppetsound 1, "correctsound" put value(field "score") +5 into field "score" end mouseUp Wrong answer: on mouseUp puppetsound 1, "wrongsound" put value(field "score") -5 into field "score" end mouseUp

16 Copyright © 2003 Pearson Education, Inc. Slide 7-15 Summary You can use Lingo scripts to display complex animations in response to user actions and to create random movement and other events. You can make many aspects of a sprite’s display responsive to user action. You can make text interactive in a variety of ways, including hypertext systems, in a Shockwave project. With Lingo scripts, you can make sound interactive and responsive to the user. You can also make video interactive with the help of scripting. Shockwave projects can embed Web resources such as text, graphics, and video. Shockwave projects can also link to Web pages and other Web resources. The appearance of the cursor can range widely to help create a more natural and interactive environment. Giving users feedback by including a score-keeping script can enhance your projects.


Download ppt "Copyright © 2003 Pearson Education, Inc. Slide 7-1 Created by Jim Lengel, College of Communication, Boston University Web Wizard’s Guide to Shockwave."

Similar presentations


Ads by Google