@@ -30,12 +30,12 @@ fn instance_init<'gc>(
3030 if let Some ( mut this) = this {
3131 activation. super_init ( this, & [ ] ) ?;
3232 this. set_property (
33- & QName :: new ( Namespace :: public ( ) , "dataFormat" ) . into ( ) ,
33+ & QName :: dynamic_name ( "dataFormat" ) . into ( ) ,
3434 "text" . into ( ) ,
3535 activation,
3636 ) ?;
3737 this. set_property (
38- & QName :: new ( Namespace :: public ( ) , "data" ) . into ( ) ,
38+ & QName :: dynamic_name ( "data" ) . into ( ) ,
3939 Value :: Undefined ,
4040 activation,
4141 ) ?;
@@ -67,8 +67,7 @@ fn bytes_total<'gc>(
6767 _args : & [ Value < ' gc > ] ,
6868) -> Result < Value < ' gc > , Error > {
6969 if let Some ( this) = this {
70- let data =
71- this. get_property ( & QName :: new ( Namespace :: public ( ) , "data" ) . into ( ) , activation) ?;
70+ let data = this. get_property ( & QName :: dynamic_name ( "data" ) . into ( ) , activation) ?;
7271
7372 if let Value :: Object ( data) = data {
7473 // `bytesTotal` should be 0 while the download is in progress
@@ -99,10 +98,7 @@ fn load<'gc>(
9998 } ;
10099
101100 let data_format = this
102- . get_property (
103- & QName :: new ( Namespace :: public ( ) , "dataFormat" ) . into ( ) ,
104- activation,
105- ) ?
101+ . get_property ( & QName :: dynamic_name ( "dataFormat" ) . into ( ) , activation) ?
106102 . coerce_to_string ( activation) ?;
107103
108104 let data_format = if data_format == AvmString :: from ( "binary" ) {
@@ -127,7 +123,7 @@ fn spawn_fetch<'gc>(
127123 data_format : DataFormat ,
128124) -> Result < Value < ' gc > , Error > {
129125 let url = url_request
130- . get_property ( & QName :: new ( Namespace :: public ( ) , "url" ) . into ( ) , activation) ?
126+ . get_property ( & QName :: dynamic_name ( "url" ) . into ( ) , activation) ?
131127 . coerce_to_string ( activation) ?;
132128
133129 let url = url. to_utf8_lossy ( ) ;
0 commit comments