i have the following code in my Xm class:
{....other code here... where i call the function below...}
public var CompanySorts:Array = new Array();
public function companySearch(criteria:String) {
var totalCompanies:Number = CompanyA.length;
for (var i:Number = 0; i<totalCompanies;i++) {
if(this.contains(this.CompanyA[i], criteria)==true) {
CompanySorts.push(CompanyA[i]);
};
};
};
in the Main Class i have:
class Main {
static function main() {
var a:Xm = new Xm("data.xml");
trace(a.CompanySorts);
};
};
if i put the trace line into the Xm class itself (companySearch function )
the output shows me the content of the array.
If i put the trace line in the Main class as above, flash develop shows me
an alert box with *node "message" value not found* and traces nothing..
is there something wrong??
thanks in advance
--
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net
+2010 - 2346633 - +2012 - 2644441
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com