If you make sure your highlite member is next after your "normal" castmember
then this is a generic script for all kinds of changing castmember things.
Have fun!!!


Just copy this script into a behaviour and attach that behaviour to your
sprite. Run Director and VOILA!!!



property mys
property myMember

on beginSprite me
    -- defining which spriteNumber this is
    mys = me.spriteNum
    
    -- remember which castmember is assigned to this sprite
    myMember = sprite(mys).memberNum
end

on mouseEnter me
    -- changing the castmember of this sprite to
    -- the next member in the castLib
    sprite(mys).member = myMember + 1
end

on mouseLeave me
    -- changing the castmember of this sprite back to
    -- the previous member assigned to this sprite
    sprite(mys).member = myMember
end






On 12-02-2002 14:12, "Douglas Seib" <[EMAIL PROTECTED]> wrote:

> Hello,
> 
> I'm new to the list and very new to director and lingo as well. I'm trying
> to create a simple rollover which will replace one cast member with another.
> Foundation director is a little fuzzy on the subject and I can't seem to
> find anything in the library either. I'm sure this should be simple, but not
> sure where to start. any help will be greatly appreciated!
> 
> TIA,
> 
> Doug
> 
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/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!]
> 

Nikaj Wiggers

araneum Interactive Productions
Tussen de bogen 113
1013 JB Amsterdam
T: +31 (0)20 6706707
F: +31 (0)20 6706701
M: +31 (0)654725584
www.araneum.nl 

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/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