> All of above sprites works correctly, but alone. If I use both of
> them, my pictures don't change.

I believe it is likely not working correctly because "starttimer" is being
used in both scripts on the same frame.

For the first script you might try something like the following.  In this
script a timeOut object is created that calls a handler every 5 seconds to
change the pictures.  I believe you could take the concepts of this script
to modify your other script.

Anthony
www.lifelinestudios.com

----------------------------------------------------------------------------
property spriteNum
property psTimeOut                -- unique timeout object name
property pnTimerLength          -- length of timer expressed in milliseconds

property ch


----------------------------------------------------------------------------
on beginsprite (me)

        -- get a unique name to use as a reference to the timeout object
         psTimeOut = string(me)

        -- set timer length to 5 seconds
        pnTimerLength = 5000

        -- create a timeout object
        oTemp = timeout(psTimeOut).new(pnTimerLength , #changePicture, me)

        -- inintialize cast member number
        ch=300

end beginSprite



----------------------------------------------------------------------------
on endSprite (me)

       -- remove timout object|
        me.removeTimeOutObject()

end endSprite



----------------------------------------------------------------------------
on changePicture (me)

        ch = ch +1
        puppetTransition 50
        if ch =312 then ch = 300
        if ch =299 then ch = 311
        set the member of sprite(9) to member ch of castLib "gallery"

end changePicture



----------------------------------------------------------------------------
on removeTimeOutObject (me)

       -- remove timout object
       timeout(psTimeOut).forget()

end removeTimeOutObject



[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