Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | FLASH: Flash 5 action script ref.guide: an error? |
From: | Guido Pesaresi |
Date: | Thu, 5 Oct 2000 20:43:46 +0100 |
I report page 81 of the action script ref.guide, downloaded from the
macromedia official site:
____________________________________________________________________________
______________
----------------------------------------------------------------------------
--------------
TO CREATE A CUSTOM CURSOR:
1 Create a movie clip to use as a custom cursor.
2 Select the movie clip instance on the Stage.
3 Choose Window > Actions to open the Object Actions panel.
4 In the Toolbox list, select Objects, then select Mouse, and drag hide to
the
Script window.
The code should look like this:
onClipEvent(load){
Mouse.hide();
}
5 In the Toolbox list, select Actions; then drag startDrag to the Script
window.
6 Select the Lock Mouse to Center box.
The code should look like this:
onClipEvent(load){
Mouse.hide()
startDrag("this",true);
}
7 Choose Control > Test Movie to use the custom cursor.
Buttons will still function when you use a custom cursor. It�s a good idea
to put
the custom cursor on the top layer of the Timeline so that it moves in front
of
buttons and other objects as you move the mouse in the movie.
For more information about the methods of the Mouse object, see their
entries in
Chapter 7, �ActionScript Dictionary.�
____________________________________________________________________________
______________
----------------------------------------------------------------------------
--------------
it doesn't work!
i've applied the script to the frame of the instance and it does work.
not satisfied i've tried to modify the script:
onClipEvent(load){
Mouse.hide()
startDrag("../this",true);
}
(i've added ../)
AND IT DOES WORK!
It is possible that is an error of the guide?
thanks and regards
__/)
.-(__(=:
| _ \)
(\__ | / \
:=)__)-|/ __/)
(/ |-(__(=:
_ | _ \)
( \ | / ) * Guido Pesaresi
__ \|/ *Web Developer at(:v
( \ | DuckCommunication
\| / ) Entertainment srl
|/ * Largo Arenula 11
| * Rome, Italy
* g [dot] pesaresiduckce [dot] com
* www.duckce.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]