I was looking through the archives and I came to what I thought was an
answer to my problem but I can't get it to work. I have logo / icon sets
that I want to be able to switch between. All of the sets have there own
style sheets and its working great for the buttons but i am having an issue
with the logo. There is no way to define a css image but I read that you can
do something like this

*main.mxml*
<mx:Image id="logo" initialize="logo.source =
StyleManager.getStyleDeclaration('logo').getStyle('source')"/>

*stylesheet
*.logo {
    source: "assets/images/robp/rocketfm_logosmall.png";
}

I tried this and got the following error. I am sure I am probably just doing
something wrong, anyone know what it is?
TypeError: Error #1009: Cannot access a property or method of a null object
reference.

Thank You
Dan Vega
[email protected]
http://www.danvega.org

Reply via email to