Re: Scripte sind Objekte


[ Zettels Traum ] [ search / suche ]

von Daniel am 22.Dezember 96 um 15:19:35:

zu: Scripte sind Objekte von Daniel am 22.Dezember 96 um 15:11:49:

Interesting discussion... quick note that the events that Director automatically
generates (mouse events, frame events etc) do not have a parameter passed along
with them.

Here are some ways to pass identity along to a sequence of actions triggered by
such an event:

>> property myLastTime
>>
>> on exitFrame
>> set me to the frameScript
>> CheckTimeouts me
>> UpdateScore me
>> go the frame
>> end
>>
>> on CheckTimeouts me
>> if myLastTime > 200 then.... etc


>> on mouseUp
>> set me to the member of sprite (the clickOn)
>> ProcessData me
>> end
>>
>> on ProcessData me....


jd




Dazu:























D. Plänitz