# LoadVars.onLoad

#### Availability

Flash Player 6.

#### Usage

`myLoadVars``.onLoad(``success``)`

#### Parameters

`success` The parameter indicates whether the load operation ended in success (`true`) or failure (`false`).

#### Returns

A Boolean value.

#### Description

Event handler; invoked when a LoadVars.load() or LoadVars.sendAndLoad() operation has ended. If the operation was successful, the `loadVarsObject` is populated with variables downloaded by the operation, and these variables are available when this handler is invoked.

This method is undefined by default; you can define it by assigning it a callback function.

This method is similar to the XML.onLoad() method of the XML object.