Groups | Blog | Home
all groups > flash (macromedia) > january 2006 >

flash (macromedia) : Some convertClip BUG & createClassObject PROBLEM


danny
1/11/2006 11:05:37 PM
HI i'm trying to create my own component but I get some strange behavior
and i dont know to solve it myself. Please help.

Library: Button,WindowContainer_mc, UIComponent ...
Problem: When I convert WindowContainer_mc to compiledClip and put it on
the stage infinity loop appear and movie go down:( But when i put there
my original mc it works fine. I find that it crash in statement
"createClassObject(Button,"myButton",2,{label:"Test"});". So can anybody
help me please .thanx

So i have this class :
import mx.controls.Button;
class WindowContainer extends UIComponent{

static var symbolName:String = "WindowContainer";
static var symbolOwner:Object = WindowContainer;
var className:String = "WindowContainer";

private var button2:Button;
private var boundingBox_mc:MovieClip;


function WindowContainer(){ }

function init():Void {

super.init();
boundingBox_mc._visible = false;
boundingBox_mc._width = 0;
boundingBox_mc._height = 0;

}


private function createChildren():Void {

/* this looks suspiciously :-\ */
createClassObject(Button,"myButton",2,{label:"Test"});

size();

}

private function draw():Void {

/* NOT IMPLEMENT YET*/

}

function size():Void {

invalidate();

}

javamann
5/18/2006 12:36:53 PM
AddThis Social Bookmark Button