pub fn script_object(&mut self, activation: &mut Activation<'_, 'gc, '_>) -> Object<'gc> {
        match self.get_script_object() {
            Some(object) => object,
            None => {
                let proto = activation.context.avm1.prototypes().xml_node;
                XmlNodeObject::from_xml_node(activation.context.gc_context, *self, Some(proto))
                    .into()
            }
        }
    }
/// Obtain the script object for a given XML tree node, constructing a new
/// script object if one does not exist.
Obtain the script object for a given XML tree node, constructing a new
script object if one does not exist.
Obtain the script object for a given XML tree node constructing a new script object if one does not exist .
pub fn script_object(&mut self, activation: &mut Activation<'_, 'gc, '_>) -> Object<'gc> {
        match self.get_script_object() {
            Some(object) => object,
            None => {
                let proto = activation.context.avm1.prototypes().xml_node;
                XmlNodeObject::from_xml_node(activation.context.gc_context, *self, Some(proto))
                    .into()
            }
        }
    }
pub fn script_object ( & mut self , activation : & mut Activation < ' _ , ' gc , ' _ > ) -> Object < ' gc > { match self . get_script_object ( ) { Some ( object ) => object , None => { let proto = activation . context . avm1 . prototypes ( ) . xml_node ; XmlNodeObject :: from_xml_node ( activation . context . gc_context , * self , Some ( proto ) ) . into ( ) } } }
Obtain the script object for a given XML tree node, constructing a new
script object if one does not exist.
Obtain the script object for a given XML tree node constructing a new script object if one does not exist .
&mut self
activation
&mut Activation<'_, 'gc, '_>