Change how to call Flash Canvas with init function