|
From: Mike Crisp on 14 Apr 2008 11:23 Mike, I want to avoid putting a sprite on the stage (as I have 250 separate movies requiring the same bit of coding at the same position) I want the curser to change ( to Finger 280) when the user passes the cursor over a certain area of my background and revert to normal when moved outside of these co-ordinates
From: Mike Blaustein on 14 Apr 2008 11:36 You could make a script that you add to startMovie or something that creates a scripted sprite that has a blend of 0, the rect that defines the area you are referring to, and that cursor changing code. Or you could have a movie script that constantly checks the placement of the cursor and changes it if needed. That would add some overhead to the program and may sow things down if you program is complex.
From: Mike Crisp on 14 Apr 2008 12:08 Mike - I can get it to change to a finger when passing the cursor over the right place... if the mousev < 530 and the mousev> 510 then if the mouseh>216 and the mouseh<272 then sprite(1).cursor = 280 -- Sprite (1) is the background I now just need a similar bit to say if the cursor is anywhere else OR when it leaves those co-ordinates to revert to default
From: Mike Crisp on 14 Apr 2008 12:14 Fixed it. !!! Set the sprite(1).cursor = 0 then add the co-ordinates bit and it all works !! thanks for your help
From: Mike Blaustein on 14 Apr 2008 12:14 If you say: sprite(1).cursor=0 at the top of the script, then it will basically tell it to always be 0 (default) unless the outcome of your if...then statement tells it to use 280. Or you could put a few ...else... statements in there.
First
|
Prev
|
Pages: 1 2 Prev: lingo-Java Script problem with new members Next: D11: Has text input in LDM?s been fixed? |