I want to have an Event Theatre recording play when I turn to a new page in a book.
I know I can change the "When this script should run?" from normal to opening, that will cause the script to fire when I open a new page, but how do I get the Event Theatre to start playing?
Thanks, Stephen
On Friday 10 Sep 2010 8:50:48 am Steve Thomas wrote:
I want to have an Event Theatre recording play when I turn to a new page in a book.
I know I can change the "When this script should run?" from normal to opening, that will cause the script to fire when I open a new page, but how do I get the Event Theatre to start playing?
Event Theatre is the recorder which publishes a "tape" (PlaybackInvoker morph) of your recording. Clicking this button starts the playback. There no tiles in this button to playback but you can create a text script:
playback: self costume renderedMorph launchPlayback.
and invoke it from the book to start the playback. This will create a morph (EventPlaybackSpace) in which the "tape" will be played back.
HTH .. Subbu
On Sep 9, 2010, at 8:20 PM, Steve Thomas wrote:
I want to have an Event Theatre recording play when I turn to a new page in a book.
I know I can change the "When this script should run?" from normal to opening, that will cause the script to fire when I open a new page, but how do I get the Event Theatre to start playing?
One *should* be able to use a "fire" tile from a playback-button's viewer (a "playback-button" being the button you get after hitting "Publish" once you're satisfied with an event recording. The playback button, when pressed by the user, invokes a playback of the recording, and the halo menu of a playback button contains about a dozen options concerning playback.)
Thus, the following:
... *ought* to work, if "Example1" is a playback tile for an event recording.
However, it doesn't work, because of a missing method, which I attach herewith, hoping that some interested party will open a ticket for this and submit the fix (sorry -- I'm not set up to do this any more.)
Unless/until that missing method arrives, one can work around its absence in the existing system by using a textual script...
Hope this helps.
-- Scott
PS: In case the graphics I've pasted inline above don't come through: the first script is for the "world" and is called "world fireOnEntry"; it's set to fire on "opening" (i.e. when the project is entered), and its lone command is the tile phrase "Example1 fire"; here "Example1" is a playback button associated with an event recording. The second script is a textual version of "world fireOnEntry" that will work in the absence of the one-line patch attached below; the text of the script is "Example1 costume launchPlayback".
squeakland@lists.squeakfoundation.org