Skip to main content

MediaEvent

Base event type in Excalibur that all other event types derive from. Not all event types are thrown on all Excalibur game objects, some events are unique to a type, others are not.

Hierarchy

Index

Constructors

constructor

  • Parameters

    • target: Sound
    • _name: string = 'MediaEvent'

    Returns MediaEvent

Properties

publicother

other: Sound = null

Other target object for this event

publictarget

target: Sound

Target object for this event.

Accessors

publicbubbles

  • get bubbles(): boolean
  • set bubbles(_value: boolean): void
  • Media event cannot bubble


    Returns boolean

  • Media event cannot bubble


    Parameters

    • _value: boolean

    Returns void

Methods

publicaction

  • action(): void
  • Action, that calls when event happens


    Returns void

publiclayPath

  • layPath(_actor: Actor): void
  • Parameters

    Returns void

publicpropagate

  • propagate(): void
  • Propagate event further through event path


    Returns void

publicstopPropagation

  • stopPropagation(): void
  • Prevents event from bubbling


    Returns void