Ticket #528 (closed enhancement: fixed)

Opened 4 years ago

Last modified 3 years ago

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:1 Changed 4 years 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.

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.

comment:4 Changed 4 years ago by jeroen

  • Owner changed from jeroen to zach
  • Milestone changed from Flash 5.0 to Flash 5.1

comment:5 Changed 3 years ago by pablo

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in 771.

Note: See TracTickets for help on using tickets.