Ok, I'm using some flash 5 members in an 8.5 project. Basically this flash
sprite is being used as scrollbars, turning them off/on based on the amount
of text to display. Nothing fabulous or anything, simple. It does this by
flipping different scrollbar movieclips on and off. It gets it's directions
to flip these from a sprite one channel higher, a text sprite.
Both sprites set themselves on beginsprite as to the channel, etc
on beginsprite me
pBox =sprite(me.spritenum)
end
And that's fine, nothing more there. Besides the first sprite is set before
the higher one is...
Now in one case I get a function error, and that's when we jump to this
frame with a bunch of text in memory to display. On the flash sprite I've
got:
on setScrollButtons me, whichBut, whichWay
put whichBut && whichWay && pBox && pBox.member.type && ilk(whichBut)
pBox.tellTarget(whichBut)
pBox.gotoFrame(whichWay)
pBox.endTellTarget()
end scrollButtons me
and the text member does
beginsprite
finds the text to display.
sets its text
then tells the flash sprite to flip the movieclips by doing sendsprite.
When it does the setScrollButtons call I'm getting a function error, yet in
the moviewindow/debugger:
--"scrollUpMc off (sprite 10) flash string"
pBox is sprite 10 (correct)
pBox.member.type = #flash (correct)
"scrollUpMC" = movieclip to tell target (correct)
"off" = frame to go to (correct).
It's almost as if the flash movie (INTERNAL by the way), although set as a
sprite's member, seen as flash, etc, isn't seeing it's own movieclips /
ability to tell target at the very beginning of it's existence?
[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!]