WACK V 1.4
Window Application Control Kit
Tutorial 1:
WACK will paint a window with default property settings. Default windows have the same look&feel like Macromedia components.

myWACK.createWindow("win1",null,"Example",200,140);
Tutorial 2 :
Methods, properties and event-handlers let you customize your windows.

win1=myWACK.createWindow("win1",null,"Example",200,140);
win1.setBackgroundColor(0xcccccc);
win1.setTitleColor(0x123456);
win1.setTitleFontColor(0xFFFFFF);
win1.setTitleText("Hello World");
win1.setBorderWidth(0);
win1.setBorderColor(0x000000);
win1.setHighlightColor(0x000000);
win1.setShadowColor(0x000000);
win1.draggable = false;
win1.resizeable = false;
win1.maximizeButton = false;
win1.minimizeButton = false;
win1.autoScroll = true;
win1.onClose = function(){
trace("Window Close");
}
Tutorial 3:
This turoial shows how to create internal windows. When creating internal windows you need to specify the path to the root window.

myWACK.createWindow("win1",null,"Outer Window");
myWACK.createWindow("win1","win1","Inner Window");
myWACK.createWindow("win3","win1.win1","Inner Window");
Tutorial 4:
Either attachContent or loadContent to the contentpane.

myWACK = this.attachMovie("myWACK","MyWindowApplicationControlKit",0);
myWACK.createWindow("win1",null,"WACK - Window");
myWACK.win1.attachContent(idName, newName, depth [, initObject]);
var myWin1 = myWACK.createWindow("win2",null,"WACK - Window");
myWin1.loadContent(url [, method]);
|
|