Quantcast
Channel: Adobe Community : Popular Discussions - Using Flash Builder
Viewing all articles
Browse latest Browse all 70427

Flash Builder 4.5 - Flex (source code automatically changed after existing project import)

$
0
0

Hi all!

 

Til yesterday, i was using FB v4.0 and it was perfectly working.

 

But now I'm under 4.5 and i have problem when importing my existing projects.

 

Now let me introduce the matter:

 

The entire project solution is located on my Desktop.

So, to import this, i go in FB in File>Import Project

Then i select "Project Repository" option and "Browse" button, then select the project on Desktop...

 

So.... import complete and SEEM TO BE successful

 

 

Unfortunately, from the IDE, when i double click on each source files, the code inside is not the expected one.

In fact, it looks as an older version of my code.

 

 

Then, i exit totally FB4.5...

 

... and open my source files with a simple text editor, i can see that the original code (before import) has been changed by FB4.5...

 

So, why???

 

 

 

for example, this original code:

 


/**
 * This is a generated class and is not intended for modification.  To customize behavior
 * of this service wrapper you may modify the generated sub-class of this class - WS_rq_login.as.
 */
package services.ws_rq_login
{
import com.adobe.fiber.core.model_internal;
import com.adobe.fiber.services.wrapper.WebServiceWrapper;
import com.adobe.serializers.utility.TypeUtility;
import mx.rpc.AbstractOperation;
import mx.rpc.AsyncToken;
import mx.rpc.soap.mxml.Operation;
import mx.rpc.soap.mxml.WebService;

[ExcludeClass]
internal class _Super_WS_rq_login extends com.adobe.fiber.services.wrapper.WebServiceWrapper
{

    // Constructor    public function _Super_WS_rq_login()    {        // initialize service control        _serviceControl = new mx.rpc.soap.mxml.WebService();        var operations:Object = new Object();        var operation:mx.rpc.soap.mxml.Operation;        operation = new mx.rpc.soap.mxml.Operation(null, "WS_rq_login");         operation.resultType = Object;        operations["WS_rq_login"] = operation;        _serviceControl.operations = operations;        try        {            _serviceControl.convertResultHandler = com.adobe.serializers.utility.TypeUtility.convertResultHandler;        }        catch (e: Error)        { /* Flex 3.4 and earlier does not support the convertResultHandler functionality. */ }        preInitializeService();        model_internal::initialize();    }    //init initialization routine here, child class to override    protected function preInitializeService():void    {        _serviceControl.service = "A_WebService";        _serviceControl.port = "A_WebServicePort";        wsdl = Config.LIEN_WS_RQ_LOGIN+"/4dwsdl";        model_internal::loadWSDLIfNecessary();    }    /**      * This method is a generated wrapper used to call the 'WS_rq_login' operation. It returns an mx.rpc.AsyncToken whose      * result property will be populated with the result of the operation when the server response is received.      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value.      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.      *      * @see mx.rpc.AsyncToken      * @see mx.rpc.CallResponder      *      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.      */    public function WS_rq_login(e_login:String, e_password:String, e_keyCode:String, e_forceRegenKey:Boolean) : mx.rpc.AsyncToken    {        model_internal::loadWSDLIfNecessary();        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("WS_rq_login");          var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(e_login,e_password,e_keyCode,e_forceRegenKey) ;        return _internal_token;    }

}

}


 

 

becomes this:

 

/**
 * This is a generated class and is not intended for modification.  To customize behavior
 * of this service wrapper you may modify the generated sub-class of this class - WS_rq_login.as.
 */
package services.ws_rq_login
{
import com.adobe.fiber.core.model_internal;
import com.adobe.fiber.services.wrapper.WebServiceWrapper;
import com.adobe.serializers.utility.TypeUtility;
import mx.rpc.AbstractOperation;
import mx.rpc.AsyncToken;
import mx.rpc.soap.mxml.Operation;
import mx.rpc.soap.mxml.WebService;

[ExcludeClass]
internal class _Super_WS_rq_login extends com.adobe.fiber.services.wrapper.WebServiceWrapper
{

    // Constructor    public function _Super_WS_rq_login()    {        // initialize service control        _serviceControl = new mx.rpc.soap.mxml.WebService();        var operations:Object = new Object();        var operation:mx.rpc.soap.mxml.Operation;        operation = new mx.rpc.soap.mxml.Operation(null, "WS_rq_login");         operation.resultType = Object;        operations["WS_rq_login"] = operation;        _serviceControl.operations = operations;        try        {            _serviceControl.convertResultHandler = com.adobe.serializers.utility.TypeUtility.convertResultHandler;        }        catch (e: Error)        { /* Flex 3.4 and earlier does not support the convertResultHandler functionality. */ }        preInitializeService();        model_internal::initialize();    }    //init initialization routine here, child class to override    protected function preInitializeService():void    {        _serviceControl.service = "A_WebService";        _serviceControl.port = "A_WebServicePort";          wsdl = "http://ids.ice/4dwsdl";        model_internal::loadWSDLIfNecessary();    }    /**      * This method is a generated wrapper used to call the 'WS_rq_login' operation. It returns an mx.rpc.AsyncToken whose      * result property will be populated with the result of the operation when the server response is received.      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value.      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.      *      * @see mx.rpc.AsyncToken      * @see mx.rpc.CallResponder      *      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.      */    public function WS_rq_login(e_login:String, e_password:String, e_keyCode:String, e_forceRegenKey:Boolean) : mx.rpc.AsyncToken    {        model_internal::loadWSDLIfNecessary();        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("WS_rq_login");          var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(e_login,e_password,e_keyCode,e_forceRegenKey) ;        return _internal_token;    }

}

}
Thanks for your help
Jonathan

Viewing all articles
Browse latest Browse all 70427

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>