Ticket #528 (closed enhancement: fixed)
let plugins push messages in the display
| Reported by: | jeroen | Owned by: | zach |
|---|---|---|---|
| Priority: | Milestone: | Flash 5.1 | |
| Component: | Keywords: | ||
| Cc: | pablo | Forum thread: |
Description (last modified by jeroen) (diff)
Plugins that benefit from this:
- Search (no results found)
- Livestream (checking for livestream)
- Snapshot (generating snapshot)
We could use the TRACE event for this. But then we also need a mechanism to turn off these messages again (empty traces?).
Change History
comment:2 Changed 4 years ago by jeroen
- Type changed from bug to enhancement
- Description modified (diff)
- Summary changed from let plugins push messages in the display (TRACE or ERROR) to let plugins push messages in the display
comment:3 Changed 4 years ago by jeroen
- Milestone changed from Flash 4.6 to Flash 5.0
Better to add this to 5.x, as an internal call for the display component. Just like the controlbar / dock have an addButton feature.
It'd be cool to be able to set the icon too, next to the message (error, buffer, link). And of course the message must be un-set.
Note: See
TracTickets for help on using
tickets.

Add an additional argument to the TRACE data param, showInDisplay (defaults to false). The Display listens for TRACE events and shows them if showInDisplay == true.
To turn off the display trace, either send a blank trace statement, or add another argument, timeout, which specifies how long the trace should be displayed.
Last option would be to have the Display plugin expose synchronous methods: displayTrace(msg) and clearTrace():
view.getPlugin('display').displayTrace("This text goes in the display"); ... view.getPlugin('display').clearTrace(); // Message goes away.