Your DesktopX Documentation Resource Guide

Documentation Home

Quick Start

User's Guide

Developer's Guide

Resources

Tutorials


By now you should realize just w

Namespaces introduction

Namespaces identify a “node” of properties and methods. When you create a new script for an object (“New” button in the General Properties page), you are actually creating an accessible “root” namespace for that object.
Sub-spaces group common functionality for the object. For instance:
 

Object.Left Let you access (read/write) the Left property from the Object namespace
Object.State(“Mouse over”).Picture Let you read/write the Picture property for the State(“Mouse over”) namespace, that is accessed from the Object namespace
Object.Parent Let you access the root script namespace of the parent object. From here on, you can do as above: Object.Parent.Object.Left, Object.Parent.Object.State(“Mouse over”).Picture
Important: It assumes the parent object actually has a script namespace, i.e. it has a script associated. If this isn’t the case, you’ll get a script error when trying to access the parent members.
DesktopX.ScriptObject(“object01”) Let you access the root namespace for object01. This means you can access all sub namespaces like Object and Control, global variables and functions.
DesktopX.ScriptObject(“object01”).Object.Name Name property for the “object01” object.
DesktopX.ScriptObject(“object01”).myvariable1 Read/write myvariable1 declared in the “object01” script.
DesktopX.ScriptObject(“object01”).myfunc1 args Call myfunc1 declared in the “object01” script.
DesktopX.Object(“object01”) Gives straight access to the plain Object namespace. This is usually a shortcut and memory saving technique, because it let you access the Object namespace without that “object01” actually has a namespace associated.

7/29 

SkinStudio 6.2 Released

7/25 

A God Has Fallen - New Demigod Trailer Released

7/24 

Sins of a Solar Empire v1.1 Beta has Arrived

7/23 

Stardock Releases New WindowBlinds 6.2 Update

7/22 

Stardock Releases The Political Machine v1.04 with New Characters

7/22 

Stardock Releases MyColors 2.5

7/17 

DesktopX 3.5 Officially Released

7/11 

Corel WinDVD 9 and Painter X Now Available on Impulse!