1401 Should be part of the Framework.
I am using the following config which is below. When compiled via IntelliJ evreything works as expected and the SWF is around 1MB when using gradle the SWF is 500mb. And I get a missing class error. Error #1014: Class flash.events::DRMReturnVoucherCompleteEvent could not be found. Which is in FP player 11.8+ and I tried 12 and 14 by setting the target player. I also tried setting the swf version in the comp options with no luck. It feels like there is something that is not getting merged in.
`buildscript { repositories { mavenCentral() } dependencies { classpath group: 'org.gradlefx', name: 'gradlefx', version: '0.8.2' } }
apply plugin: 'gradlefx'
type = 'swf'
version = '2.6.0-SNAPSHOT'
output = 'PlayerPlatformAPI'
mainClass = 'com/project/main.as'
frameworkLinkage = 'merged'
repositories {
ivy { name 'Apache' artifactPattern 'http://archive.apache.org/dist/flex/[revision]/binaries/[module]-[r...;
} ivy { name 'Adobe Air SDK' artifactPattern 'http://download.macromedia.com/air/win/download/[revision]/[module]...;
} }
dependencies {
flexSDK group: 'org.apache', name: 'apache-flex-sdk', version:
'4.12.1', ext: 'zip' airSDK group: 'com.adobe', name:
'AdobeAIRSDK', version: '4.0', ext: 'zip' merged fileTree(dir:
'libs', include: '*.swc') }
sdkAutoInstall {
showPrompts = false }
additionalCompilerOptions = [
'-target-player=14.0', '-strict=true', '-debug=false',
'-optimize=true',
]
srcDirs = [
"src/" ]`
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac
1 Posted by Rus on 30 Jul, 2014 05:02 AM
Got it resolved apparently SWF version is not one to one mapping to flash player version. Here is the most up to date table for any one else who might hit this.
"SWF Version" | "Flash Player Version"
Support Staff 2 Posted by Yennick Trevels on 30 Jul, 2014 05:47 AM
Do you still have the 500mb file problem? While 1MB for Intellij is almost nothing (it's probably optimised for development purposes only), 500MB for Gradle shouldn't be happening.
3 Posted by Rus on 30 Jul, 2014 05:50 AM
That was a typo should have been 500Kb so we are all good.
I do have one follow up questions. When setting the type to SWF the asdoc task is not available is there any setting I can set to still generate it?
Also is there a way to generate both an SWF and SWC the code base is an API so it can be used as SWF and SWC.
Support Staff 4 Posted by Yennick Trevels on 30 Jul, 2014 06:02 AM
To generate both a SWF and SWC I'd suggest to split up your project, where one subproject has the API code, and the swf subproject uses that API project to wrap it in a swf. It isn't possible to generate both a SWF and SWC from the same project.
ASDoc is only available for library (swc-based) projects. This is because such documentation is generally only used for libraries, not for an end-user application.
But if you split up your projects in a library project (for the API) and an end-user project (for the SWF) then you can generate ASDoc for the library project.