• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Lesson 26. Using a List Database > Sending Parameters

Sending Parameters

You may recall from the previous lesson that a cast member script already exists for most of the location names. These scripts were provided to give you a jump-start on this project. You will now take a look at one of those scripts to see how it works.

1.
Select cast member 26. Then click the Script button.


Figure .


The handler looks like this:

on mouseUp
  SetPlace("white nile", 5)
end

In this handler, you send the name of the view ("white nile") as the first parameter and the channel number of the sprite that was clicked (5) as the second parameter. The handler that is called, SetPlace, is the one that carries out the steps you just practiced in the Message window, which you are going to add to the movie script next.

2.
Close the Script window.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint