---
title: "I want to recompile collect.swf, how can I do?"
url: "https://openforis.support/questions/530/i-want-to-recompile-collectswf-how-can-i-do"
tags: ["collect"]
status: "answered"
score: 0
answer_count: 7
asked: "2016-05-13T11:24:53"
last_activity: "2016-05-18T03:20:00"
source: "Open Foris Support - Q&A Forum"
license: "Copyright Open Foris, 2026. Some rights reserved under creative commons license."
---

# I want to recompile collect.swf, how can I do?

Asked by wuqingman on 2016-05-13

?????????collect.swf??????????????????????FlexBuilder,????????????????? ?????
Hello there! I want to recompile collect.swf this document, I do not know how this document is produced, I installed FlexBuilder, compile time error will prompt, how can I do? thank you very much!


## Answer (score 0, by Stefano (OF) on 2016-05-13)

Link: https://openforis.support/questions/530/i-want-to-recompile-collectswf-how-can-i-do/531

Hi, what compile time error do you have? Have you followed the instructions in the readme file (you can read it[here][1])?  
Thanks,  
Open Foris Team


  [1]: https://github.com/openforis/collect/tree/master/collect-client


## Answer (score 0, by wuqingman on 2016-05-13)

Link: https://openforis.support/questions/530/i-want-to-recompile-collectswf-how-can-i-do/532

I did the steps of:
![alt text][1]
![alt text][2]
![alt text][3]
![alt text][4]
![alt text][5]
![alt text][6]


  [1]: http://www.openforis.org/support/upfiles/1.png
  [2]: http://www.openforis.org/support/upfiles/2.png
  [3]: http://www.openforis.org/support/upfiles/3.png
  [4]: http://www.openforis.org/support/upfiles/4.png
  [5]: http://www.openforis.org/support/upfiles/5.png
  [6]: http://www.openforis.org/support/upfiles/error_1.png


## Answer (score 0, by wuqingman on 2016-05-13)

Link: https://openforis.support/questions/530/i-want-to-recompile-collectswf-how-can-i-do/533

[Bindable] not allowed on static functions.	Application.as	/collect/src/org/openforis/collect	line 142	

[Bindable]
public static function get preview():Boolean {
	return _preview;
}
change to:

[Bindable]
public function get preview():Boolean {
	return _preview;
}
is ok!


## Answer (score 0, by Stefano (OF) on 2016-05-13)

Link: https://openforis.support/questions/530/i-want-to-recompile-collectswf-how-can-i-do/534

Hi,  please download and use the Flex SDK 4.5.1.  Then change the "Additional compiler arguments" in the project properties; the config parameter "debug" must be renamed into "debugging", so the arguments will be:  

    define+=CONFIG::debugging,true -define+=CONFIG::version,'0.1-SNAPSHOT'

Thanks,  
Open Foris Team


## Answer (score 0, by wuqingman on 2016-05-14)

Link: https://openforis.support/questions/530/i-want-to-recompile-collectswf-how-can-i-do/535

![alt text][1]
![alt text][2]

help help help!!!
  [1]: http://www.openforis.org/support/upfiles/11.png
  [2]: http://www.openforis.org/support/upfiles/22.png


## Answer (score 0, by Stefano (OF) on 2016-05-16)

Link: https://openforis.support/questions/530/i-want-to-recompile-collectswf-how-can-i-do/536

Hi,  
I'm sorry but compiling the client side of Collect (made in Flex) under Eclipse never worked totally...! What you can do is to compile the project outside of Eclipse, using Maven from command line, then configure an instance of Tomcat in Eclipse using the target folder as context (follow the instructions [here][1]).  
Please use Maven 3.0.5 and not a newer one, otherwise the Flex plugins won't work...  
We are planning to get rid of the Flex environment soon, hopefully in one year time, so one day you won't have these problems any more!  
Thanks,  
Open Foris Team


  [1]: http://km.fao.org/OFwiki/index.php/Open_Foris_Collect_Development_Environment#Tomcat_in_Eclipse


## Answer (score 0, by wuqingman on 2016-05-18)

Link: https://openforis.support/questions/530/i-want-to-recompile-collectswf-how-can-i-do/537

Thanks, I use Maven command line compile succed! is very good!
