Problem solved, sorry for filling up your mailbox!
I made a new class extending the XML-class and decleared an extra
property for my class reference in the extended XML-class. If you
have other interesting easy solutions, I´m listening, but don´t spend
february figuring out something!
Best regards
Peter
Den 4. feb. 2006 kl. 12.45 skrev Peter Måseide:
When I us MovieClips in a class i can create references to the
class inside the clip for calling class functions.
*** example:
...
clip_mc.classreference = this;
clip_mc.onPress = function () {
this.classreference.classFunction();
}
...
classFunction(){
trace("Called from clip_mc");
}
...
*** My case:
class SomeClass {
var data_xml:XML;
public function SomeClass() {
data_xml = new XML();
data_xml.onLoad = function(suksess) {
if (suksess) {
// Parsing...
// After parsing I want to call the function
pushData()
}
}
}
public function pushData(data) {
trace("Data recieved");
}
}
I need to do something similar, but with xml-objects. I know I can
reach the class instance via _root.someclassinstance.pushData(),
but I don´t want to do it properly.
Best regards
Peter Måseide
____________________________________________________
Peter Måseide - [EMAIL PROTECTED] - Mob 40858675
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
____________________________________________________
Peter Måseide - [EMAIL PROTECTED] - Mob 40858675
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders