fixes to examples for Flash