Hi All, I have problem with subject .(
The code seems like good.
For example:
cmenu.as
--------------------------------------
The addmenuitem doesnt get called , why ?
Are there any notable thing in class member function calling ?
PS:I use Flash 8
Thanks in advance!
Csaba
The code seems like good.
For example:
cmenu.as
Code:
class cmenu
{
public var menuitemarray;
public function cmenu{menuitemarray=new Array;}
public function loadxml() {
var omenuitem = new cmenuitem();
this.addmenuitem(omenuitem);
}
public function addmenuitem(omenuitem_param:cmenuitem){
this.menuitemarray.push(omenuitem_param);
}
}
[B]cmenuitem.as[/B]
class cmenuitem{}
[B]maintimeline[/B]
var omenu = new cmenu();
omenu.loadxml();
The addmenuitem doesnt get called , why ?
Are there any notable thing in class member function calling ?
PS:I use Flash 8
Thanks in advance!
Csaba
Comment