Groups | Blog | Home
all groups > flash actionscript > april 2004 >

flash actionscript : useHandCursor = 0; Not working


timbo313
4/30/2004 7:33:36 PM
The following script is inside a movie clip as is the object that it refers to,
Menu1. The script does not work. When I copy and paste the movie clip into
another document, it does work. Can anyone tell me why this might be?

Menu1.useHandcursor = 0;

Thanks,
Tim
Carl Fink
4/30/2004 8:40:51 PM
[quoted text, click to view]

Scope, I'm betting. You say Menu1 is part of a
MovieClip, and that the MC containing this
script is also part of that MC?

Try changing Movie1 to _parent.Movie1.
timbo313
4/30/2004 8:49:43 PM
Carl Fink
4/30/2004 8:51:51 PM
timbo313
4/30/2004 8:54:04 PM
Flashy Lady
8/18/2004 8:30:38 PM
Are both movies published under the same version number?

Flashy Lady

dondone
8/18/2004 8:57:51 PM
If I understand you right you have a movieclip and inside that movieclip you
have a button and want to remove the handcursor. Well if you haven't forgot to
give your button an instance name there shouldn't be a problem.
Like you wrote. nameOfYourButton.useHandCursor = 0; in the timeline inside
your movieclip. If you wrote in the timeline of your root and placed your
movieclip there you write yourMovieClip.buttonName.useHandCursor = 0;

If that doesn't work you have to explain a little more or share you're fla
file.
NSurveyor
8/18/2004 9:17:54 PM
dondone
8/18/2004 9:29:06 PM
Do you always have to refear to this when you write your code in the timeline?
It's a good thing to do though. But if he writes the code on his movieclip he
must use this.Menu1.useHandcursor = false or 0; as you said. Otherwise the
code doesn't understand where it is.
AddThis Social Bookmark Button