diff --git a/core/src/html/text_format.rs b/core/src/html/text_format.rs
index 351d23850..08a1ab956 100644
--- a/core/src/html/text_format.rs
+++ b/core/src/html/text_format.rs
@@ -1,7 +1,14 @@
//! Classes that store formatting options
-use crate::avm1::activation::Activation;
-use crate::avm1::{AvmString, Object, ScriptObject, TObject, Value};
+use crate::avm1::activation::Activation as Avm1Activation;
+use crate::avm1::{
+ AvmString, Object as Avm1Object, ScriptObject as Avm1ScriptObject, TObject as Avm1TObject,
+ Value as Avm1Value,
+};
+use crate::avm2::{
+ Activation as Avm2Activation, Error as Avm2Error, Namespace as Avm2Namespace,
+ Object as Avm2Object, QName as Avm2QName, TObject as Avm2TObject, Value as Avm2Value,
+};
use crate::context::UpdateContext;
use crate::html::iterators::TextSpanIter;
use crate::tag_utils::SwfMovie;
@@ -127,49 +134,49 @@ pub struct TextFormat {
}
fn getstr_from_avm1_object<'gc>(
- object: Object<'gc>,
+ object: Avm1Object<'gc>,
name: &str,
- activation: &mut Activation<'_, 'gc, '_>,
+ activation: &mut Avm1Activation<'_, 'gc, '_>,
) -> Result