Adobe-Runtime-Support
Adobe-Runtime-Support copied to clipboard
Missing builtin type float
I used AIRSDK_51.2.1 to compile and it appeared:“Missing builtin type float” but when i used AIRSDK50.2.2.5 is not appeared. May I ask how to solve this problem? Thank you all.
I don't suppose you're able to reproduce this with a small sample application? I'm not sure whether you're actually using a float type variable or not..?
Are you using the Flex SDK as well? If so, do you know what libraries it's configured to include? hopefully it would access the latest airglobal.swc file?
thanks
I don't suppose you're able to reproduce this with a small sample application? I'm not sure whether you're actually using a
floattype variable or not..?Are you using the Flex SDK as well? If so, do you know what libraries it's configured to include? hopefully it would access the latest
airglobal.swcfile?thanks
Thanks Andrew Frost,I do not using float type,my project is web. so it is access "playerglobal.swc" in air sdk.
The weirdest thing is that I didn't use 'float', I searched the entire project but there was no 'float'.
it is access "playerglobal.swc" in air sdk
This will be a problem .. playerglobal is for use with the Flash Player; and we don't update that as part of the AIR SDK. Which means, I guess it's not got the float definition in it and is then struggling to cope...
If you are actually building for the Flash Player, you'd need to use an earlier compiler version (from AIR SDK 50.x), or else if you don't use the load-config option to pull in the playerglobal file, it should default to loading in the air-config.xml file and airglobal.swc.
thanks
I got the same problem. I just added the new SDK and tried to compile a library project. It doesn't matter if the library contains the AIR libraries or not.
Normal ActionScript projects work.
So presumably this is a restriction in the Flex compiler.. I just had a quick look in the Royale compiler and it doesn't look like this is supporting float types either (it doesn't even have the preparation work in there that Adobe had done for it).
If you're not using float types yourself, I would hope that it's then not necessary for the float definition to be present anywhere which might then trip up the Flex compiler .. so I'm not sure where this is sneaking in from. We can do a bit of digging here, it would be better if we could make all these things work together..
I'm not using the float type anywhere so yes it would be a possibility to remove the definition.
My solution was to revert to the old SDK 50.2.5, but it's not a good solution :)
Can I change something to fix it or do you have to create a new release?
I'm frustrated that the compiler only prompted for the use of 'float', but didn't inform me where it was used. I searched my entire project but couldn't find any place where it was used.
Struggling to reproduce this here so it may depend what exactly you're using ...
Are you able to confirm:
- What are you compiling? Just AS file, or MXML file, etc? Do you still have the issue with a nearly empty version of the file i.e. with just skeleton framework/body..?
- What are you using to compile with? Flex SDK (version?) with AIR SDK overlay?
mxmlcorcompcetc? Could you confirm the tool version (e.g.mxmlc -versionoutput)? - Which configuration profile are you loading? It should tell you on the output, e.g.
Loading configuration file ....-config.xml
thanks
It's an ActionScript library without Flex and without AIR libraries. I appended a small test project that fails with the error and I also dumped the config. I tried compiling it in Flash Builder 4.7 and in IntelliJ IDEA. Unfortunately I don't know how I could get the calls to the compilers from the IDE. If you need something else we could also do a screen sharing session or something like that.
Thank you for all the help.
Could you reproduce it?
We've tried with Flex 4.6 and the latest AIR SDK overlays but can't get this to fail in this way.. can I check what Flex SDK you have underneath this?
thanks
It's an AIR SDK without Flex that I downloaded via the AIR SDK manager. I didn't modify it. With Flex it works, but my library projects are ActionScript only, because I tried to take advantage of the more optimized compiler. A solution for the problem would be to switch to a Flex library project.
I just tried the latest version 51.2.1.4, but the same error occurred.
I'm working on Windows 11 Enterprise 24H2 26100.4061 with Flash Builder 4.7 and I also tried it with IntelliJ IDEA 2025.1.1.1.
Thanks
Hi
We've just gone through with the config xml that you'd provided, and try to get this same set-up .. and yes we can then reproduce the issue, but only because of the reference to "playerglobal.swc". This isn't a file that we provide/support; if you switch to "airglobal.swc" from the appropriate AIR SDK then it should work?
thanks
If I change all libraries to use the AIR libraries it works. For Flash Builder I had to change the .actionScriptProperties and set useApolloConfig="true"
So the ActionScript web libraries aren't possible anymore? With AIR v50.2.5 it worked.
Thank you.
Hi
Actually, we checked where that error is coming from, and it's possible for us to change that behaviour based on whether or not the "float" support is configured. So when using the AIR compiler, you can add an argument "-float=false" and then with the below version of the compiler, it should ignore the fact there's no float built-in type..
The below version should be unzipped and the .jar file put into the "lib" folder of the SDK.
Let us know if that helps, if so we'll drop this into the next AIR SDK update!
thanks
Thank you.
Unfortunately it didn't work. The same error occurs in Flash Builder, but in IDEA the error changed to: Missing builtin type Object
I also encountered the "Missing builtin type float" error after upgrading AIR SDK from 51.1.1.4 to 51.1.4.1.
This occurred in a Flash Builder 4.7 project of type “ActionScript Library Project”, where the “Include Adobe AIR libraries” option was not checked.
Even after checking that option and performing a full clean build of the project, the error message did not disappear.
However, when I created a new ActionScript Library Project with the “Include Adobe AIR libraries” option checked and copied the source code into it (then closed the old project), the error message went away.
I’m leaving this note in case it helps anyone experiencing the same issue.
Same issue. I tried with both FlashDevelop and IntelliJ, both with the same error when targeting the web platform. I reverted to 51.1.1.4, which did not fix the issue. reverted to 50.2.4.5 fixed it. No changes to my project, only the SDK I am targeting, so this issue is caused by a regression.
when targeting the web platform
You can't use the AIR SDK to target the Flash Player though ..?
If you're updating to a 51.x version of the AIR compiler then it would include float support by default, and it can be switched to generating non-float code using the command-line options, but it's still the AIR compiler, and needs to be used against the 'airglobal.swc' file rather than 'playerglobal.swc' (Flash Player) libraries.
thanks
Compiling for mobile or desktop slows down development due to the splash screen; regardless, it is a regression.