Migrating to Swift from Flash and ActionScript