Ticket #528 (new enhancement)

Opened 4 months ago

Last modified 2 months ago

let plugins push messages in the display

Reported by: jeroen Owned by: zach
Milestone: Flash 5.1 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

Changed 4 months ago by pablo

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.

Changed 4 months 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

Changed 4 months 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.

Changed 2 months ago by jeroen

  • owner changed from jeroen to zach
  • milestone changed from Flash 5.0 to Flash 5.1
Note: See TracTickets for help on using tickets.