MovieClipDatatype Additions to PowerSDK
DIGG IT!
0
Comments
Published
Tuesday, June 03, 2003
at
6:45 AM
.
This pre-alpha release provides a simple developer interface to handling MovieClipDatatypes (MCDs) as several nasty errors have been fixed. The changes are rather serious as the MovieClip Class has been almost completely restructured and simplified. You will find the concept of depth has been removed from the Player and as such many of the base MovieClip Class methods are removed.
***legacy support will be added for removed methods in a future release.
DOWNLOAD IT HERE!
The changes are as follows:
MCD's overwrite based on name/path basis not on a depth basis
_level0.attach({_name:'ted'}) //add a empty MCD
_level0.attach({_name:'ted'}) //MCD overwritten
MCD's can be overwritten by data
_level0.attach({_name:'ted'}) //add a empty MCD
ted = 1 //MCD overwritten and removed automatically
Added support for all types of MCD addition
Empty MCD:
_level0.attach({_name:'a1'})
TextField MCD:
_level0.attach({_name:'a2', _id:'textfield'})
Library MCD:
_level0.attach({_name:'a3', _id:'myLibraryItem'})
External MCD:
_level0.attach({_name:'a4', _url:'http://www.powersdk.com/test.swf'})
Class Binding:
_level0.attach({_name:'a5', _class:TextField}
Passing Data:
_level0.attach({_name:'a6', _x:20, onpress:function(){trace('pressed!')}}
Adjusting Depth:
_level0.attach({_name:'a7', _depth:'above', _depthtarget:'a22'})
MCD Removal:
_level0.a7.remove()
a7=1
SetDepth provided to manage MCD depth operations without depth property
ted.setDepth('top')
ted.setDepth('bottom')
ted.setDepth('above', a1) or ted.setDepth('above', 'a1')
ted.setDepth('below', a1) or ted.setDepth('below', 'a1')
ted.setDepth('swap', a1) or ted.setDepth('swap', 'a1')
All methods support text parameters in transition to XML based generation of MCD trees. ;)
PSDK.exemption provide error handling and "Crash Early" development support
I would like to encourage you to get involved in PowerSDK development. As PowerSDK is an open source project, you are free to contribute and we would welcome your assistance. To find out about PowerSDK visit the development site online at:
http://www.powersdk.com/dev/
Or join the development list-serv at:
http://four.pairlist.net/mailman/listinfo/powersdk
Cheers,
ted ;)

0 Responses to “ MovieClipDatatype Additions to PowerSDK ”
Post a Comment