Effect

What Is It?

An effect player provides transitions on the screen. Effect players are most commonly used to make objects appear and disappear.

An effect player is playable.

Why Use It?

To add some pizzazz to a screen change.

How to Create It

To create an effect player, go to the Players toolbar and click on the Effect button. A new effect player appears in the Players window with a default effect player already in it. The default effect is a right wipe that covers the letter A with B and B with A.

To show and hide one object using your effect, name the effect as a parameter to the hide or show action request. For example, suppose you create a button player for the user to press which make a picture disappear. You can use the effect player to have the picture slowly dissolve from the screen. For this example first you create a handler on the button. Then:

  1. In the handler for the button, specify a user action that causes the handler to fire (probably a MOUSEDOWN).
  2. Pick the name of the picture player that you want to disappear for the PLAYER, then pick HIDE with the arrow next to it for the ACTION, the arrow shows that you are going to include a parameter. In this case you pick your effect to be the parameter.

To use the effect with more than one player at a time requires an extra step:

  1. At the beginning of the handler of the button, ask the mbedlet to lock. Locking saves the screen as it exists while some changes are made.
  2. Include the players with a hide/show action.
  3. Request the mbedlet to unlock using the effect. All of the specified players will unlock-and use the effect-at the same time.

Effect can also be used within a score. The example below shows text players hiding and showing with various effects. The timing is being controlled by a score.



Previous Page Next Page