Re: [flexcoders] Loading Images Using CSS

2009-01-12 Thread Manish Jethani
On Mon, Jan 12, 2009 at 1:31 AM, Dan Vega  wrote:

> main.mxml
> 
>
> 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


[flexcoders] Loading Images Using CSS

2009-01-11 Thread Dan Vega
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*


*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
danv...@gmail.com
http://www.danvega.org