A couple of comments.

First, use names, not numbers to refer to cast members.

Second, use cursor of sprite instead of the cursor command.

Third, did you mean to say that you you want to use a cursor that is 
in an external cast (not an internal cast)?

Here's a behavior to do this (untested):

property spriteNum
property pCursorList

on beginSprite me
   -- do this once
   cursorMemberNumber = member("WhateverCursorName", "CursorCastlibName").number
   cursorMaskNumber = cursorMemberNumber + 1  -- assuming its the next 
one in the castlib
   pCursorList = [pCursorMemberNumber, cursorMaskNumber]
end

on mouseEnter me
   sprite(spriteNum).cursor = pCursorList
end

on mouseLeave me
   sprite(spriteNum).cursor = 0
end

Irv



At 4:18 PM -0400 4/13/01, Alex Durlak wrote:
>i require some assistance with a lingo script. i am getting a little lost
>in relation to lingo and multiple casts. here's what i am trying to do:
>
>i have a script that creates a cursor change when you rollover a sprite,
>but only if the custom cursors' cast members are in the internal cast. What
>i was hoping to do was have a seperate cast that contains my custom cursors
>and have it linked externally to my movie so i can use it repeatedly in
>multiple movies. basically, how do i use "castLib" or some other syntax in
>the cursor script to show that the bitmap cast members for the cursor are
>in an external cast called "Cursors". here's what i have so far:
>
>on mouseEnter me
>  cursor [10,11]
>end mouseEnter
>
>
>on mouseLeave me
>  cursor 0
>end mouseLeave
>
>
>where does the castlib (or whatever) go? how is it written in this
>circumstance. thanks in advance
-- 

Lingo / Director / Shockwave development for all occasions.

   (Home-made Lingo cooked up fresh every day just for you.)

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to