Number.floor appears to be a valid function but is not. Causing crashes on mobile.
This is a cross post from http://forums.adobe.com/message/4993660/ We didn't get an answer there and this issue, and similar discrepencies between what the IDE can compile and what will run on a device, have been costing us man days in work. ![]()
We recently had a problem where when compiling using FB and debugging on devices works fine. But when we built the app using Ant, it was crashing on Android devices. After debugging that, we found that Number.floor was not a function.
I cannot find any documentaiton that says Number.floor was ever a function in ActionScript/Flex/AIR.
So why does Flash Builder seem to think it's valid, let us compile it, and even run it on the device?! Is there some 'even more strict' compiler option I need to check?
