springroll.Application Class

analyticEvent

(
  • action
  • [label]
  • [value]
)

Provided by the Google Analytics module.

Defined in analyticEvent:18

Track a Google Analytics event

Parameters:

  • action String

    The action label

  • [label] String optional

    The optional label for the event

  • [value] Number optional

    The optional value for the event

currentPosition

() Object

Provided by the EaselJS Learning module.

Defined in currentPosition:112

For learning events, we want to send consistent data when sending Position. This helper method generates that data for the current stage position of mouse or touch. We are returning an object of {x:int, y:int, stage_width:int, stage_height:int} in unscaled numbers.

Returns:

Object:

{x:int, y:int, stage_width:int, stage_height:int}

normalizePosition

(
  • pos
  • [coordSpace]
)
Object

Provided by the EaselJS Learning module.

Defined in normalizePosition:55

For learning events, we want to send consistent data when sending positions. This helper method generates that data. In the future, we may return an object with known properties, but for now we are returning an object of {x:int, y:int, stage_width:int, stage_height:int} in unscaled numbers.

Parameters:

  • pos createjs.DisplayObject | createjs.Point

    A display object or point to use.

  • [coordSpace] createjs.DisplayObject optional

    The coordinate space the position is in, so it can be converted to global space. If omitted and pos is a DisplayObject, pos.parent will be used.

Returns:

Object:

{x:int, y:int, stage_width:int, stage_height:int}

normalizePosition

(
  • x
  • y
  • [coordSpace]
)
Object

Provided by the EaselJS Learning module.

Defined in normalizePosition:72

For learning events, we want to send consistent data when sending positions. This helper method generates that data. In the future, we may return an object with known properties, but for now we are returning an object of {x:int, y:int, stage_width:int, stage_height:int} in unscaled numbers.

Parameters:

  • x Number

    The x position

  • y Number

    The y position

  • [coordSpace] createjs.DisplayObject optional

    The coordinate space the position is in, so it can be converted to global space.

Returns:

Object:

{x:int, y:int, stage_width:int, stage_height:int}

onStageMouseDown

(
  • ev
)
private

Provided by the EaselJS Learning module.

Defined in onStageMouseDown:173

Fires OffClick event if click on unhandled object

Parameters:

  • ev createjs.MouseEvent

    The mouse event

onStateMouseMove

(
  • ev
)
private

Provided by the EaselJS Learning module.

Defined in onStateMouseMove:158

Fires event whenever the mouse is moved

Parameters:

  • ev createjs.MouseEvent

    The mouse event

_currentPosition

createjs.Point private

Provided by the EaselJS Learning module.

Defined in _currentPosition:18

The last interactive position

_helperPoint

createjs.Point private

Provided by the EaselJS Learning module.

Defined in _helperPoint:25

Helper point for normalizing position

_lastPointerID

Int private

Provided by the EaselJS Learning module.

Defined in _lastPointerID:48

Keep track of the last Pointer ID

kartkingdom

springroll.pbskids.KartKingdom

Provided by the Kart Kingdom module.

Defined in kartkingdom:45

The instance of the wrapper for talking to the Kart Kingdom Minigame API.

learning

springroll.Learning

Provided by the Learning module.

Defined in learning:31

The Learning Dispatcher instance

media

springroll.LearningMedia

Defined in media:20

For media conveninece methods tracking media events, such as playFeedback, playMovie, etc

offClickParams

Array

Provided by the EaselJS Learning module.

Defined in offClickParams:40

Some games need to send additional parameters to the tracker's offClick event. They may set them here as needed. These parameters are appended to the normal offClick data.

analyticEvent

Provided by the Google Analytics module.

Defined in analyticEvent:39

An event was sent for Google Analtyics

Event Payload:

  • data Object
    • category String

      The event category

    • action String

      The event action

    • [label] String optional

      Optional label

    • [value] Number optional

      Optional value

learningEvent

Provided by the Learning module.

Defined in learningEvent:21

An learning event is dispatched

Event Payload:

  • data Object

    The event data

    • game_id String

      The unique game id

    • event_id String

      The unique event id

    • event_data Object

      The data attached to event

      • event_code Int
        The code of the event