Thanks & More to come ;)
Ted Patrick
myclass.extend( superClass )
myclass.extend(mySuperClass)
myclass.extend('mySuperClass')
| superClass | - | (s,o) class to extend the function |
myMovieClip.attach(attachobject)
myMovieClip.attach({_name:'ted', _id:'window'})
myMovieClip.attach({_name:'ted', _url:'myswf.swf', _class:window})
myMovieClip.attach({_name:'ted', _x:300, _y:100,myNum:23, myObj:{age:1)}}
| attachObject | - | defines properties of the attached movieclipDatatype |
The attachObject supports the following special properties. All other properties will be added to the attached mcd.
| _name | - | (s) name of the movieclip to be attached |
| _id | - | (s) name of the library linkage id to be attached. 'textfield' adds a textfield > requires _x, _y, _height, _width |
| _url | - | (s) url of the movie to load. When _url is used, items are added to the mcd on init and will persist loading. see MC.Load!!! |
| _class | - | (s,f) class to bind to the MCD. Does not have to inherit from MovieClip (automatic). |
| _classarguments | - | (a) arguments array to supply to the class constructor on initialization |
| _depth | - | (s)specifies depth setting to add MovieClipDatatype - 'top', 'bottom', 'above:{target}', 'below:{target}' |
| _depthtarget | - | (s,mcd)specifies depth target |
| ref | - | reference to new movieclip |
_root.attachMovie(id, newName, depth [, initObj])
| id | - | library Linkage ID |
| newName | - | InstanceName for the new Clip |
| depth | - | Specifies depth setting to add MovieClipDatatype - 'top', 'bottom', 'above:{target}', 'below:{target}'. Integer input is overridden and added at 'top' |
| ref | - | reference to the attached MCD |
_root.createEmptyMovieClip( newName, depth [, initObj])
| newName | - | InstanceName for the new Clip |
| depth | - | Specifies depth setting to add MovieClipDatatype - 'top', 'bottom', 'above:{target}', 'below:{target}'. Integer input is overridden and added at 'top' |
| initObj | - | an initObject is now supported |
| ref | - | reference to the attached MCD |
_root.createTextField(newName, depth ,x,y,width,height[, initObj])
| newName | - | InstanceName for the new Clip |
| depth | - | Specifies depth setting to add MovieClipDatatype - 'top', 'bottom', 'above:{target}', 'below:{target}'. Integer input is overridden and added at 'top' |
| x | - | x coordinate of the TextField |
| y | - | y coordinate of the TextField |
| width | - | width of the textfield |
| height | - | height of the textfield |
| initObj | - | an initObject is now supported |
| ref | - | reference to the attached MCD |
_root.duplicateMovieClip(newName, depth [, initObj])
| newName | - | InstanceName for the new Clip |
| depth | - | Specifies depth setting to add MovieClipDatatype - 'top', 'bottom', 'above:{target}', 'below:{target}'. Integer input is overridden and added at 'top' |
| initObj | - | an initObject is now supported |
| ref | - | reference to the attached MCD |
a = myMovieClip.extend( c [,ca] )
myMovieClip.extend(myMovieClipClass,)
myMovieClip.extend('myMovieClipClass',['dog','frog',34])
| c | - | (s,o) class to extend the movieclip with |
| ca | - | (a) contains arguments array to initalize class constructor |
a = myMovieClip.getDepth(n)
a = myMovieClip.getDepth('top')
b = myMovieClip.getDepth('bottom')
c = myMovieClip.getDepth('all')
if there were 3 mcd's within myMovieClip named > fred,ted,ned listed top to bottom
a = {depth:3,name:'fred',ref:_level0.myMovieClip.fred}
b = {depth:1,name:'ned',ref:_level0.myMovieClip.ned}
c == [
{depth:3,name:'fred',ref:_level0.myMovieClip.fred},
{depth:2,name:'ted',ref:_level0.myMovieClip.ted},
{depth:1,name:'ned',ref:_level0.myMovieClip.ned}
]
| n | - | specifies information needed options are undefined, 'top', 'bottom', 'all' |
| data | - |
an object containing depth information as follows {depth:2, name:"name", ref:{MCD Reference}} |
a = myMovieClip.load(loadObject)
myMovieClip.load()
myMovieClip.load()
myMovieClip.load()
| loadObject | - | defines properties of the loaded movieclipDatatype |
The loadObject supports the following special properties. All other properties will be added to the loaded mcd.
| _url | - | (s) url of the movie to load. When _url is used, items are added to the mcd on init and will persist loading. see MC.Load!!! |
| _class | - | (s,f) class to bind to the MCD. Does not have to inherit from MovieClip (automatic). |
| _classarguments | - | (a) arguments array to supply to the class constructor on initialization |
myMovieClip.remove()
{{_root.dog.removeMovieClip()
myMovieClip.setDepth(pos[,tar])
myMovieClip.setDepth('top')
myMovieClip.setDepth('bottom')
myMovieClip.setDepth('above',fred)
myMovieClip.setDepth('above','fred')
myMovieClip.setDepth('below',fred)
myMovieClip.setDepth('below','fred')
myMovieClip.setDepth('swap',fred)
myMovieClip.setDepth('swap','fred')
| pos | - | (string)position command options 'top', 'bottom', 'above', 'below', 'swap' |
| tar | - | (string or reference) target for the position commands 'above', 'below','swap' |
a.apply( target )
a = {}
b = {age:23,mc:MovieClip,s_name:'myStringahhhh'}
a.apply(b)
a == {age:23,mc:MovieClip,s_name:'myStringahhhh'}
| target | - | target from which properties are applied |
PSDK.addPath(name, overwrite, delete, hidden)
| name | - | (s) full pathname desired |
| overwrite | - | (b) flag protects from overwrite |
| method | - | (b) flag protects from delete |
| error | - | (b) flag hides contents |
PSDK.exemption([instance, args, method, error, kill])
| instance | - | (o) the object in context of the called method, or this |
| args | - | (a) argument array within the callee function |
| method | - | (s) the path to the method |
| error | - | (s) error message |
| kill | - | (b) true unloads everything > "crash early" support |