On Mon, Jan 12, 2009 at 1:31 AM, Dan Vega <danv...@gmail.com> wrote: > main.mxml > <mx:Image id="logo" initialize="logo.source = > StyleManager.getStyleDeclaration('logo').getStyle('source')"/> > > stylesheet > .logo { > source: "assets/images/robp/rocketfm_logosmall.png"; > }
> TypeError: Error #1009: Cannot access a property or method of a null object > reference. You have to use ".logo" (as opposed to "logo") in your call to getStyleDeclaration. Manish -- http://manishjethani.com