If ( currentSection["refresh"] != null ) { currentSection["refresh"](); }
? grtz JC > > On Mon, Oct 27, 2008 at 3:02 PM, Karim Beyrouti <[EMAIL PROTECTED]> wrote: >> Hello Group - >> >> This should be really easy. I am trying to find out how to check if a >> function exists or not in AS3 - >> I tried this: >> >> <code> >> If ( currentSection.refresh != null ) { >> currentSection.refresh(); >> } >> >> >> </code> >> >> But I get "ReferenceError: Error #1069: Property refresh not found" when the >> function does not exist. >> >> Any clues? >> >> >> Kind Regards >> >> >> >> Karim >> >> _______________________________________________ >> Flashcoders mailing list >> Flashcoders@chattyfig.figleaf.com >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders