von dp am 22.Dezember 96 um 19:19:38:
zu: Perlen aus dem Strom der Nachrichten im direct_L von Daniel am 22.Dezember 96 um 02:00:59:
> Actually you can puppet a nonexistent sprite, and it seems to work OK.
> Try
> puppetsprite emptyChannel, 1
> set the type of sprite emptyChannel = 1
> set the ink of sprite emptyChannel = 36 (for background transparent)
> set the forecolor of sprite emptyChannel to whateverColor
> set the backcolor of sprite emptyChannel to aDifferentColor
> set the membernum of sprite emptyChannel to myMember
> Some months ago this method was given on UpdateStage, but Gretchen
> stated this method was 'definitely NOT sanctioned by Macromedia'
In the 4.* era when I wrote that, online support always advised to put a
placeholder sprite in the channel. But now, with 5.0 and score
generation, I expect that is not still true. I defer to JT, god of things
Lingo, natch.
I just tried the following on both Win31 and Win95 and it absolutely DOES
put a visible sprite on the stage in 501 in authoring and in a projector
without anything in channel 3 prior to executing the code:
on mouseUp
puppetSprite 3,TRUE
set the member of sprite 3 to member "square"
set the forecolor of sprite 3 to 255
updatestage
end
Cast member is a paint member with regpoint centered. The default
position is 0,0 if you don't specify.
Without digging out the article, I think setting the forecolor to 255 was
key.
D. Plänitz