Maybe I'm a little naive, but wouldn't you just use a try/catch to
suppress the error.


--- In [email protected], JClouz <[EMAIL PROTECTED]> wrote:
>
> When I have flex play a sound effect on a computer with no sound
hardware I get this actionscript error:
> 
> TypeError: Error #1009: Cannot access a property or method of a null
object reference.
>  at mx.effects.effectClasses::SoundEffectInstance/play()
>  at mx.effects::EffectInstance/startEffect()
>  at mx.effects::Effect/play()
>  at MethodInfo-3348()
>  at Function/http://adobe.com/AS3/2006/builtin::apply()
>  at ()
>  at
flash.utils::SetIntervalTimer/flash.utils:SetIntervalTimer::onTimer()
>  at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
>  at flash.utils::Timer/flash.utils:Timer::tick()
> 
> How can I handle this error for computers without sound hardware so
it doesn't halt their flex app?
> 
> Thanks!
> 
> -Jamie
>


Reply via email to