def flex_loader(alias):
 if (not alias.startswith('flex.')):
  return
 try:
  if alias.startswith('flex.messaging.messages'):
   import pyamf.flex.messaging
  elif alias.startswith('flex.messaging.io'):
   import pyamf.flex
  elif alias.startswith('flex.data.messages'):
   import pyamf.flex.data
  return CLASS_CACHE[alias]
 except KeyError:
  raise UnknownClassAlias(alias)

def flex_loader ( alias ) : if ( not alias . startswith ( 'flex.' ) ) : return try : if alias . startswith ( 'flex.messaging.messages' ) : import pyamf . flex . messaging elif alias . startswith ( 'flex.messaging.io' ) : import pyamf . flex elif alias . startswith ( 'flex.data.messages' ) : import pyamf . flex . data return CLASS_CACHE [ alias ] except KeyError : raise UnknownClassAlias ( alias )
loader for l{flex<pyamf .