How to Use FLEX with Canvas