Members
activitySequence :module:bags/ActivitySequence.ActivitySequence
Object containing the order in which the activities should be played
- Source
basePath :string
Relative path or absolute URL to be used as a base to access files, usually in conjunction
with module:JClicPlayer.JClicPlayer#basePath
- string
- Source
code :string
Optional property that can be used by reporting systems
- string
- Source
mediaBag :module:bags/MediaBag.MediaBag
The collection of all media elements used in this project
- Source
name :string
The project's name
- string
- Source
path :string
Full path of this project
- string
- Source
reportableActs :number
Number of activities suitable to be included reports
- number
- Source
settings :module:project/ProjectSettings.ProjectSettings
Object containing the project settings
- Source
skin :module:skins/Skin.Skin
The object that builds and manages the visual interface presented to users
- Source
type :string
Optional property that can be used by reporting systems
- string
- Source
version :string
The version of the XML file format used to save the project (currently 0.1.3)
- string
- Source
zip :external:JSZip
The JSZip object where this project is stored (can be null
)
- Source
Methods
end()
Run finalizers on realized objects
- Source
getActivity(name) → {module:Activity.Activity}
Finds activities by name and builds the corresponding Activity
object.
Name | Type | Description |
---|---|---|
name | string | The name of the requested activity |
- Source
- Type:
- module:Activity.
Activity
getAttributes() → {object}
Gets a object with the basic attributes needed to rebuild this instance excluding functions,
parent references, constants and also attributes retaining the default value.
The resulting object is commonly usued to serialize elements in JSON format.
- Source
- The resulting object, with minimal attrributes
- Type:
- object
getJSON(spaceopt) → {string}
Gets a JSON string representing the content of this project. This string can be transformed later into a data
object suitable for setAttributes
.
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
space | number | <optional> | 0 | The number of white spaces to place between items. Defaults to zero (meaning all the JSON rendered in one single line) |
- Source
- The JSON text
- Type:
- string
realize(ps)
Builds the Skin
, EventSounds
and MediaBag
fonts associated to this project.
Name | Type | Description |
---|---|---|
ps | module:JClicPlayer. | The PlayStation (usually a |
- Source
setAttributes(data, path, zipopt, optionsopt) → {module:project/JClicProject.JClicProject}
Loads the project settings from a data object
Name | Type | Attributes | Description |
---|---|---|---|
data | object | The data object | |
path | string | The full path of this project | |
zip | external:JSZip | <optional> | An optional JSZip object where this project is encapsulated |
options | object | <optional> | An object with miscellaneous options |
- Source
setProperties($xml, path, zipopt, optionsopt) → {module:project/JClicProject.JClicProject}
Loads the project settings from a main jQuery XML element
Name | Type | Attributes | Description |
---|---|---|---|
$xml | external:jQuery | The XML element | |
path | string | The full path of this project | |
zip | external:JSZip | <optional> | An optional JSZip object where this project is encapsulated |
options | object | <optional> | An object with miscellaneous options |
- Source