I do this in pure action script. Haven't use mxml.
--- In [email protected], "itdanny2002" <itdann...@...> wrote: > > Error in StyleManager.as > > var styleManager:IStyleManager2 = > IStyleManager2(moduleFactory.getImplementation("mx.styles::IStyleManager2")); > > Any idea ? > > var sp:Canvas = new Canvas; > sp.height = 100; > sp.width = 100; > sp.graphics.beginFill( 0xff0000 , 1 ); > sp.graphics.drawCircle(10,10,20); > sp.graphics.endFill(); > addChild(sp); > var tf:Text = new Text; > tf.text = 'Hi '; > tf.width = 100; > tf.height = 100; > sp.addChild(tf); >

