Sorry, I copied the wrong line, it's giving the error on loader.mouseEnabled
= false;

On Thu, May 22, 2008 at 11:07 AM, Laith Juwaidah <[EMAIL PROTECTED]>
wrote:

> Sorry to bother you again but I'm getting a run-time error on the line:
> var loader:Loader = image.mx_internal::contentHolder as Loader;
> Saying "Cannot access a property or method of a null object reference."
>
>
>
> On Wed, May 21, 2008 at 11:29 PM, Manish Jethani <[EMAIL PROTECTED]>
> wrote:
>
>>   On Thu, May 22, 2008 at 12:50 AM, Laith Juwaidah <[EMAIL 
>> PROTECTED]<ljuwaidah%40gmail.com>>
>> wrote:
>> > I haven't messed with mx_internal, can you please give me an example or
>> > something?
>>
>> import flash.display.Loader;
>> import mx.controls.Image;
>> import mx.core.mx_internal;
>>
>> var image:Image = theImageObject;
>> var loader:Loader = image.mx_internal::contentHolder as Loader;
>> loader.mouseEnabled = false;
>>
>
>
>
>
>>
>>  
>>
>
>
>
> --
> Laith Juwaidah
> http://www.ljuwaidah.org/
> http://ljuwaidah.blogspot.com/
>



-- 
Laith Juwaidah
http://www.ljuwaidah.org/
http://ljuwaidah.blogspot.com/

Reply via email to