cross browser support

adding some more cross -browser support for flex.