Hi, Mel. I think your code has nothing wrong and it worked fine for me. Maybe you should check if there are some members called "303" or "303a" in the cast. Hhmm.. it also works using sprite(1).member = member(thelist[ran])
Why are you using an on beginSprite handler on a frame script? That would be more aprropiate for a behavior script. Anyway.. it worked perfect this way. Agust�n. Mel Kloscheim wrote: > Hi > I have a frame in which I randomize a bitmap (either "303' or 303a") > but the frame script is giving me an error and I don't know why. > Here is the script I am using: > > on beginSprite me > thelist=["303","303a"] > ran=random (thelist.count) > sprite(1).member = thelist[ran] > end > > on exitFrame me > go to the frame > end > > Here is the error I am getting > > Script Error: Cast member Name expected > sprite (1). member = theList[ran] > > "303a" > > I can use a hand to figure this one out. > thanks > Mel > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > [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!] [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!]
