Call URL in Flash Builder.

Dear Experts,
I have three questions.
1.I have designed a  website using technologies like HTML,CSS,JAVASCRIPT,JQUERYMOBILE.Is it possible to call this External website from Flash Builder 4.6 with all designs supported?
2.If it supports ,can we convert this flash project into Executable and will be supported by all mobiles?(Primary focus:ios device,Andriod,Blackberry).
3.My website should run inside the application and not in a separate browser.
I am not an Expert so please kindly bare my simple Questions.
Thanks.

Adobe Flex 4: Training from the Source, Volume 1
this book is in color or "black and white"?

Similar Messages

  • Flash Builder 4 Theme Switcher

    Hi guys,
    this problem became very painful for me:
    As you know Adobe added a new theme called Spark in Flash Builder 4, but it looks really ugly for me. The problem is that i can't switch current theme to Halo!
    What i've tried:
    Change theme settings in project properties. No effect - all new buttons and other controls had this theme
    Use compiler settings: -theme=${flexlib}/themes/Halo/halo.swc - no effect also, the same story as above
    Then i've noticed that there are 2 namespaces in my MXML file:
    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/mx"
    When i switched button declaration from < s:Button> to < mx:Button> then my button began to look much better, but i can't switch all such declarations manually and i suppose that such trick will not work with Application tag to apply such style on application level.
    So, my big questions: How to make Flash Builder 4 to use the same theme as in Flex Builder 3 (maybe not exactly the same, but it should looks like Halo theme)? How to apply it to all new controls? Are there any tricks that i missed? What is the main idea of theme settings dialog if it doesn't work? What
    Thanks in advance!

    Up! Still cant fix this problem!!!!!!

  • Flash Builder 4.7 licence activation

    Hello,
        My company bought a flash builder 4.7 premium licence, but apparently it doesn't work...
         I created a small projet to test and add that piece of code to see if it's ok :
    protected function applicationCompleteHandler(event:FlexEvent):void
                                            Many features require a Flash Builder Pro (Premium) license to function properly (i.e. automation)
                                            The LicenseUser class registers a handler (LicenseHandler) to be called if a Flash Builder Pro license is NOT present;
                                            if a Flash Builder Pro license IS present, then the compiler will remove the LicenseHandler class for the SWF
                                            if (Class(this.systemManager.getDefinitionByName("licence.LicenseHandler")))
                                                      Alert.show("This SWF was compiled WITHOUT a Flash Builder Pro license")
                                            else
                                                      Alert.show("This SWF was compiled WITH a Flash Builder Pro license")
       [RequiresLicense("mx.fbpro", handler="licence.LicenseHandler")]
        public class LicenseUser
            public function LicenseUser()
        public class LicenseHandler
            public function LicenseHandler()
    It's a piece of code we can find on some forum and works for some people.
    But the message which is displayed is always the first one => "This SWF was compiled WITHOUT a Flash Builder Pro license"
    I found that page (http://helpx.adobe.com/flash-builder/kb/flex-automation-issues-flash-builder.html) to replace the licence.jar but it still doesn't work...
    The profiler doesn't work either...
    Have you got any ideas please ?
    Thanks.

    Hi
    I am having same issue.
    Have followed the instruction at: http://helpx.adobe.com/flash-builder/kb/overlay-air-sdk-flash-builder.html
    When go to compile my mobile flex app I get cant resolve ViewNavigationApplication and new flex mobile projects do not 'finish' when using the wizard.
    [Update]
    Have AIRSDK 3.5 with ASC 2.0 is working nicely. Also must remember, when updating SDK need to make sure there are not firewall restrictions to the new commands (adt)
    This has solved my ios deployment issue with AIR 3.4 (which was only reason invesigating AIR 3.6 in the first place)

  • In the Flash Builder Plugin version, why did it install another "alternate Eclipse"?

    In the Flash Builder 4 Plug-in installer I just ran, why did it install whats seems to be another copy of Eclipse in my "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4 Plug-in" folder, along with a shortcut called "Run Adobe Flash Builder 4 Plug-in with alternate Eclipse"?
    I was only expecting a plug-in in my current Eclipse installation. What is going on here?

    Hi Pup500,
    FB4 Plug-in comes bundled with the full Eclipse 3.4.2 (Ganymede) Package for Java Developers, and also supports linking FB4 to your own copy of eclipse 3.5 (Galileo) or 3.6 (Helios).
    We considered bundling one of the larger Packages (Eclipse for PHP Developers, etc.), but wanted to keep the footprint smaller, and the package for Java Developers was the smallest one that still includes the JDK.
    The shortcut for the "alternate" should point to your own copy of eclipse, and the default launcher shortcut should point to the bundled copy under the subfolder \eclipse-host-distro. The default shortcut will launch eclipse/FB4 using our bundled copy of the JRE, but the alternate shortcut assumes that you either have a compatible JRE installed system-wide, or that you have a valid JRE folder in your eclipse folder.
    Some of the reasons we started bundling eclipse with FB4 Plug-in were:
    - the custom configuration (ini file settings, memory allocation, etc.) provided in the bundled copy of eclipse can be used as a guide for optimizing your own eclipse configuration, for improved performance with FB4.
    - on Win, we bundle a compatibility-tested version of the JRE for use with the bundled copy of eclipse. This can come in handy on 64-bit Win, as we provide a 32-bit version of the JRE compatible with FB4. You can copy this same JRE folder into your own copy of 32-bit eclipse, if you wish to avoid installing a system-wide version of 32-bit java.
    - if you encounter any version or bundle conflicts with your own copy of eclipse, you can still run the bundled copy as a fallback, until any problems are resolved.
    Out of curiosity, which version and package of eclipse are you plugging into?
    -Chris

  • Flash Builder 4.5 Data Services Wizard, setting up REST service call returns Internal Error Occurred

    Dear all -
    I am writing with the confidence that someone will be able to assist me.
    I am using the Flash Builder Data Services Wizard to access a Server that utilizes REST type calls and returns JSON objects. The server is a JETTY server and it apparantly already works and is returning JSON objects (see below for example). It is both HTTP and HTTPS enabled, and right now it has a cross-domain policy file that is wide open (insecure but its not a production server, it's internal).
    The crossdomain file looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
       <allow-http-request-headers-from domain="*" headers="*" secure="false"   />
       <allow-access-from domain="*" to-ports="*" secure="false"/>
       <site-control permitted-cross-domain-policies="master-only" />
    </cross-domain-policy>
    The crossdomain file is in the jetty server's root directory and is browseable via HTTP and HTTPS (i.e. browsing to it returns the xml)
    Now before all of you say that using wizards sucks (generally) I thought I would utilize the FB Data Services Wizard as at least it would provide a template for which I could build additional code against, or replace and improve the code it produces.
    With that in mind, I browse to the URL of the Jetty Server with any web browser (for example, Google Chrome, Firefox or IE) with a URL like this (the URL is a little confidential at the moment, but the structure is the same)
    https://localhost:somePort/someKey/someUser/somePassword/someTask
    *somePort is the SSL port like 8443
    *someKey is a key to access the URL's set of services
    returns a JSON object as a string in the web browser and it appears like the following:
    {"result":success,"value":"whatEverTheValueShould"}
    Looks like the JSON string/object is valid.
    I went through the Flash Builder Data Services Wizard to set up HTTP access to this server. The information that I filled in is described below:
    Do you want to use a Base URL as a prefix for all operation URLs?
    YES
    Base URL:
    https://localhost:8443/someKey/
    Name                    : someTask
    Method                    : POST
    Content-Type: application/x-www-form-urlencoded
    URL                              : {someUser}/{somePassword}/someTask
    Service Name: SampleRestapi
    Services Package: services.SampleRestapi
    datatype objects: valueObjects:
    Completing the wizard, I run the Test Operation command. Remember, no authentication is needed to get a JSON string.
    It returns:
    InvocationTargetException: Unable to connect to the URL specified
    I am thinking - okay, but the URL IS browseable (as I originally was able to browse to it, as noted above).
    I continue to test the service by creating a Flex application that accepts a username and password in a form. when the form is submitted, the call to the service is invoked and an event handler returns the result. The code is below (with some minor changes to mask the actual source).
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                                     xmlns:s="library://ns.adobe.com/flex/spark"
                                     xmlns:mx="library://ns.adobe.com/flex/mx"
                                     xmlns:SampleRestapi="services.SampleRestapi.*"
                                     minWidth="955" minHeight="600">
              <fx:Script>
                        <![CDATA[
                                  import mx.controls.Alert;
                                  import mx.rpc.events.ResultEvent;
                                  protected function button_clickHandler(event:MouseEvent):void
                                            isUserValidResult.token = SampleRestAPI.isUserValid(userNameTextInput.text,passwordTextInput.text);
                                  protected function SampleRestAPI_resultHandler(event:ResultEvent):void
                                            // TODO Auto-generated method stub
                                            // print out the results
                                            txtAreaResults.text = event.result.message as String;
                                            // txtAreaResults.appendText( "headers \n" + event.headers.toString() );
                        ]]>
              </fx:Script>
              <fx:Declarations>
                        <SampleRestapi:SampleRestAPI id="SampleRestAPI"
                                                                                                 fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)"
                                                                                                 result="SampleRestAPI_resultHandler(event)"
                                                                                                 showBusyCursor="true"/>
                        <s:CallResponder id="isUserValidResult"/>
                        <!-- Place non-visual elements (e.g., services, value objects) here -->
              </fx:Declarations>
              <s:Form defaultButton="{button}">
                        <s:FormItem label="UserName">
                                  <s:TextInput id="userNameTextInput" text="q"/>
                        </s:FormItem>
                        <s:FormItem label="Password">
                                  <s:TextInput id="passwordTextInput" text="q"/>
                        </s:FormItem>
                        <s:Button id="button" label="IsUserValid" click="button_clickHandler(event)"/>
                        <s:FormItem  label="results:">
                                  <s:TextArea id="txtAreaResults"/>
                        </s:FormItem>
              </s:Form>
    </s:Application>
    It's a simple application to be sure. When I run it , I get the following returned in the text area field txtAreaResults:
    An Internal Error Occured.
    Which is equivalent to the following JSON string being returned:
    {"success":false,"value":"An Internal Error Occured"}
    It appears that the call is being made, and that a JSON object is being returned... however it does not return the expected results?
    Again the URL constructed is the same:
    https://www.somedomain.com:somePort/someKey/someUser/somePassword/someTask
    So I am wondering what the issue could be:
    1) is it the fact that I am browsing the test application from an insecure (http://) web page containing the Flex application and it is accessing a service through https:// ?
    2) is the JSON string structurally correct? (it appears so).
    3) There is a certificate enabled for HTTPs. it does not match the test site I am using ( the cert is for www.somedomain.com but I am using localhost for testing). Would that be an issue? Google Chrome and IE just asks me to proceed anyway, which I say "yes".
    Any help or assistance on this would be appreciated.
    thanks
    Edward

    Hello everyone -
    Since I last posted an interesting update happened. I tested my  Flex application again, it is calling a Jetty Server that returns a JSON object, in different BROWSERS.  I disabled HTTPS for now, and the crossdomain.xml policy file is wide open for testing (ie. allowing every request to return data). So the app accessing the data using HTTP only. Browsers  -  IE, Opera, Firefox and Chrome. Each browser contained the SAME application, revision of the Flash Player (10.3.183.10 debugger for firefox, chrome, opera, safari PC; 11.0.1.129 consumer version in IE9,) take a look at the screen shot (safari not shown although the result was the same as IE and chrome)
    Note that Opera and Firefox returned successful values (i.e. successful JSON objects) using the same code generated from the Data Services Wizard. Chrome, IE and, Safari failed with an Internal error. So I am left wondering - WHY? Is it something with the Flash Player? the Browsers?  the Flex SDK? Any thoughts are appreciated. Again, the code is found in the original thread above.

  • How to display rich content with URL in adobe flash builder and flex for mobile apps?

    Hi,
      In Apple IOS SDK, I used the WebView control to display the rich text with Bullets, different font style, images within the text and the URLs also within the text as HTML content.
    Clicking on the URLs automatically opens the respective webpage in Safari.
    In Adobe Flash Builder, I don't see any control straight away equivalent to Apple WebView control.
    How to implement the same using adobe and flex?

    Thanks for your reply, its nice to know its not just me.
    the error i got when submitting to the App store where due to native support for IPHONE 5 which is now mandatory (from May 1st), looking around the internet the common soloution seemed to be upgrading to Air 3.7.
    The strange erorrs on 3.7 revolve around compiling a standard / production build (fast build works fine)
    the error is always the same (snippet shown below):
    Error occurred while packaging the application:
    Undefined symbols for architecture armv7:
      "__ZN7avmplus8Debugger9debugLineEi", referenced from:
          __ZN7avmplus9MethodEnv9debugExitEPNS_13CallStackNodeE in AOTBuildOutput-4.o
          __ZN7avmplus11BaseExecMgr22debugEnterExitWrapperNEPNS_9MethodEnvEiPj in AOTBuildOutput-4.o
    I have completly failed to work out why, but my gut feeling is its something to do with how the mac is compiling the code in standard build and unable to find a library it needs.
    cheers
    Toby

  • Flash builder external launching URL

    Hi. Flash Builder launch configuration has the option to specify an external URL, but it hardcodes local file URIs, making launch configurations not portable across developers. This is easy to fix (please, forgive me for bending the rules of the terms of license -- it's in good faith).
    1. FlexLaunchConfiguration#getCustomLaunchURL needs to be modified to make use of Eclipse's built-in substitution variables.
                    url = VariablesPlugin.getDefault().getStringVariableManager().performStringSubstitution(
                            fConfiguration.getAttribute(attributeKey, ""));
    2. Add imports:
    import org.eclipse.core.variables.IStringVariableManager;
    import org.eclipse.core.variables.VariablesPlugin;
    3. Make "Adobe Flash Builder Launching" bundle depend on org.eclipse.core.variables.
    Voila. You can now have any launch URL you wish, including project-relative (but not hardcoded) resources, as in:
    ${resource_loc:/my-project/bin/my-resource.html}
    It would be great if this could be integrated with the codebase, of course.

    The delay is in launching the adobe community help (ACH) or the browser. That takes 15-20 seconds. Once the ACH or browser is launched it loads the content pretty fast. There's no network activity during the delay.
    It looks like it launches the help with the following command (shown in the status bar).
    command://com.adobe.flexide.communityhelp.launchHelp(productHelpConfig=Flex_4.0,pageID=mx. collections_ArrayList
    It works fine on OS X, but it's super slow on XP.

  • Flash Builder 4.5 SOAP call for images using Base64 Encoding

    I am trying to load some image meta data in a flash builder mobile application by making a SOAP call to .Net service. I am able to test the web service successfully using a .Net console application. However when I make the call from flash builder mobile client I get a null result. What am I doing wrong? I am using SOAP 1.1 ByteArray didn't work for Flash builder. So converted the ByteArray to Base64 format and tried to obtain result that way. Both ways worked from a .Net Client but not working from Flash mobile.
    Here is the code
    <fx:Script>
            <![CDATA[          
                import mx.graphics.ImageSnapshot;
                import mx.graphics.codec.JPEGEncoder;
                import mx.graphics.codec.PNGEncoder;
                import mx.rpc.AsyncToken;
                import mx.utils.Base64Encoder;         
                import services.exifimagemetadata1.ExifImageMetaData1;         
                import spark.components.Image;     
                public var metaData:ExifImageMetaData1 = new ExifImageMetaData1();         
                public var imageBytes:ByteArray = new ByteArray();
                public var gpsData:String;
        private function getBase64EncodedImage():String
                    var myEncoder:Base64Encoder = new Base64Encoder();
                    myEncoder.encodeBytes(getImageBytes());            
                    var image64BitText:String = myEncoder.toString();                          
                    return image64BitText;
        public function GetMetaDataFromExif():void{
                    var imageToken:AsyncToken = metaData.GetExifBase64Data(getBase64EncodedImage());               
                    gpsData = imageToken.result.toString();
                    metaResult.text = gpsData;
        protected function GetImageMetaDataFromExif(event:MouseEvent):void
                    GetMetaDataFromExif();         
            ]]>
        </fx:Script>
    <s:layout>
            <s:VerticalLayout>         
            </s:VerticalLayout>
        </s:layout>
        <s:HGroup>
            <s:Image id="test" width="130" height="140" source="@Embed(source='assets/p1000106.jpg')"/>
        </s:HGroup>
        <s:HGroup>
        <s:Label width="100" height="140" backgroundColor="Blue" click="GetImageMetaDataFromExif(event)">
            <s:text/>
        </s:Label>
        </s:HGroup>
        <s:HGroup>
            <s:Label id="metaResult" width="200" height="140" backgroundColor="yellow"/>           
        </s:HGroup>

    Hello everyone -
    Since I last posted an interesting update happened. I tested my  Flex application again, it is calling a Jetty Server that returns a JSON object, in different BROWSERS.  I disabled HTTPS for now, and the crossdomain.xml policy file is wide open for testing (ie. allowing every request to return data). So the app accessing the data using HTTP only. Browsers  -  IE, Opera, Firefox and Chrome. Each browser contained the SAME application, revision of the Flash Player (10.3.183.10 debugger for firefox, chrome, opera, safari PC; 11.0.1.129 consumer version in IE9,) take a look at the screen shot (safari not shown although the result was the same as IE and chrome)
    Note that Opera and Firefox returned successful values (i.e. successful JSON objects) using the same code generated from the Data Services Wizard. Chrome, IE and, Safari failed with an Internal error. So I am left wondering - WHY? Is it something with the Flash Player? the Browsers?  the Flex SDK? Any thoughts are appreciated. Again, the code is found in the original thread above.

  • Flash Builder 4.0 Download URL Windows

    I need Flash Builder 4.0 Download URL Because Design Mode with SDK 4.1 and Flash BUilder 4.5 is not working

    Hi Virat,
    Welcome to Adobe Forums.
    Please use the below link to download Flash Builder 4.0
    http://prodesigntools.com/all-adobe-cs5-direct-download-links.html
    Please make sure to complete the Very Important Instructions section prior to clicking on the download link.
    Thanks

  • Flex Builder 4 (next version) will be called Flash Builder

    Adobe has just announced that the next version of Flex Builder will be called Flash Builder .. the framework will still be called Flex
    I think although the change is confusing, in the long run it adds clarity ... here's why ...
    1. Flash Builder (formerly Flex Builder) is an IDE to write .SWF (Flash Player) files .... no matter what application framework you use, it could be pure AS3 code (i.e your own framework) , Flex framework or anything else .. there are many other framework options (although Flex is the most mature) ... Flash Builder can be used to build in any of those frameworks.
    2. Flex is a framework of classes that solve several everyday application development problems when building apps that can run in the Flash Player ... you can use any tool to write your own classes that use flex framework classes (a flex application) ... Flash Builder (previously Flex Builder) or FDT or a text editor like TextMate.
    Mrinal

    Still don't like the name change...but after chatting for you on Twitter...I think I can use to it -;)
    Greetings,
    Blag.

  • Flash builder + Zend amf | Insertion function not working when called second time

    I'm using standart createOrders function which is autogenerated by Flash Builder 4.6. It works brilliantly when used once. Here is code:
    protected function okButton_clickHandler():void
                    var orders2:Orders = new Orders();
                    //setting values
                    createOrdersResult.token = ordersService.createOrders(orders2);
                    ordersService.commit();
    When same button is clicked second time and consequently okButton_clickHandler launched, data is not inserted to database. I added result handler with trace("saved"); and what I saw was that "saved" was written on first click, but not second.
    Also I used Charles to see whether request is being sent second time. And no it is not.
    Just tried to generate auto generate form. Only had to add commit(); because else request is not sent. And here is save problem — request is sent only on first button click.
    So all in all problem is in fact that ordersService.createOrders(orders2); works only once. Because if i try
    createOrdersResult.token = ordersService.createOrders(orders2);
                    ordersService.commit();
                    createOrdersResult.token = ordersService.createOrders(orders2);
                    ordersService.commit();
    OR
                createOrdersResult.token = ordersService.createOrders(orders2);
                createOrdersResult.token = ordersService.createOrders(orders2);
                ordersService.commit();
    there is only one row added to database. Any ideas?

    Think you can find the problem in your php / whatever -backend. Generated code does'nt much know about autoincrement table ids.
    So for the example tabel orders:
    orderID int(10) auto_increment
    orderName varchar(255)
    ...generated php for createOrders looks like:
    $stmt = mysqli_prepare($this->connection, "INSERT INTO $this->tablename (orderID, orderName) VALUES (?, ?)");
    mysqli_stmt_bind_param($stmt, 'is', $item->orderID, $item->orderName);
    So if you dont give the right orderID, the second insert will fail.
    Delete the autoincrement parts and code will work:
    $stmt = mysqli_prepare($this->connection, "INSERT INTO $this->tablename (orderID, orderName) VALUES (?, ?)");
    mysqli_stmt_bind_param($stmt, 'is', $item->orderID, $item->orderName);

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

    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

    Well well,
    I got some news about this problem....
    Look like Flash Builder uses a ".FML" file to reference URL of all WebServices used in the project.
    When replacements occurs, the updated values seem coming from this.

  • Flash Builder 4 - RemoteObjects

    I'm having an issue with remoteobjects in flash builder 4. I built a simple little project to see if I could get remoteobjects working.
    I got the project working and the output folder resides on a web server on my local LAN (not the machine with flash builder installed).
    Here is the issue I am having...
    When I build the app from from flash builder 4 the project launches everything works fine. If I open the URL of the project on the web server from my machine with flash builder 4 on it the project works fine. If I open the URL from any other machine the calls to the remoteobject do not work. I've scoured the web and haven't seen anyone else run into this issue so I'm assuming its something I'm doing wrong.
    I am on a trial version of flash builder 4. I just wanted to mention that but I don't see how that could be the issue.
    I've tried both methods of defining the remoteobject endpoint (both at runtime as one of the MXML remoteobject properties, and via a services-config.xml using the compiler argument -services PathToConfigFile). In each case the project runs and works fine from the machine with flash builder 4 installed on it but just not any other machine. I've also tried defining the -context-root thinking that may have been the issue still no dice.
    Any help would be greatly apprecaited.
    I'm not sure how useful the code would be as the project does work but here it is in any event...
    APPLICATION FILE:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application 
    xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="
    library://ns.adobe.com/flex/spark" xmlns:mx="
    library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
    <fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    <s:RemoteObject id="testRO"source="
    TestRO"destination="
    TestRO"endpoint="
    endPoint.php"showBusyCursor="
    true">
    <s:method name="say" result="say_resultHandler(event)"/>
    </s:RemoteObject>
    </fx:Declarations>
    <fx:Script>
    <![CDATA[
    import mx.controls.Alert; 
    import mx.rpc.events.ResultEvent; 
    protected function say_resultHandler(event:ResultEvent):void
    Alert.show(String(event.result));
    ]]>
    </fx:Script>
    <s:TextInput x="73" y="73" id="repeatEntry"/>
    <s:Button x="209" y="73" label="Say" click="testRO.say(repeatEntry.text)"/>
    </s:Application>
    PHP ENDPOINT:
    <?php
    //Define error reporting for this application.
    error_reporting(E_ALL|E_STRICT);
    //Set the display_errors in the php.ini
    ini_set("display_errors","on");
    //Path to the Zend server.php file.
    require_once 'Zend/Amf/Server.php';
    //require your php class file ('DIRECTORY/CLASS.PHP').
    require_once 'TestRO.php';
    $server = new Zend_Amf_Server();
    //Class name for the server (Same as the php file name).
    $server->setClass("TestRO");
    //Handle request
    echo ($server->handle());
    ?>
    PHP CLASS FILE:
    <?php
    class TestRO
        public function say($text)
           if($text =="")
       return "+++ Field left blank +++";
        } else {
          return "+++ ".$text." +++";

    I've resolved the issue sort of...
    I exported a release build then re-tested the application and it works fine. For some reason while the application is in debug mode the remoteobject method calls aren't working on any other machines on the network... I still have no idea why... is this a new feature to prevent folks from using the debug swf's in production?
    In flex 3 I'd give the PROJECT-debug URL to my manager so he could track my progress but I was using the httpservice class and it worked without issue. In any event if someone knows the answer or has any additional information it would be greatly appreciated.
    Thank-you.

  • Flash builder error #3500

    It is apparently impossible to use flash builder in conjunction with air native extensions on OSX.
    Creating the extension context works without complaint, but calling any of the functions provided
    results in "error #3500: The extension context does not have a method named ..."
    It cost me a lot of time (and therefore my company's money) to discover that the ANE is actually fine, and can be
    invoked outside of flash builder, by an appropriate command line, or by packaging a release executable.
    This total package of behavior is very unsatisfactory, and has been known about for at least two years.
    Even with the workaround (release packaging, or invoking using a command line) the workflow is
    severely degraded.
    for reference, the most helpful explanation of the workaround is at this URL
    http://riawanderer.com/2012/03/27/working-with-air-native-extensions-on-the-mac/       *note the date of this post!*
    then search for the panel that follows the text
    "Now that simple demo code is ready, let’s run and see what does it do. When you run the app you should see below error indicating that Flex Builder Bug exists :)."

    Go to this directory:
    <workspace directory>\.metadata\.plugins\org.eclipse.core.resources
    and delete this file:
    .snap
    This resolved the problem for me.

  • Building complex flash game in Flash Builder 4 - Workflow/Best Practices

    I'm investigating switching to Flash Builder 4 for building a complex game that currently lives purely inside Flash CS4.  CS4 is a pretty terrible source code editor and debugger.  It's also quite unstable.  Many crashes caused by bad behavior in the SWF will take out the entire IDE so are almost impossible to debug.  And I've heard other horror stories.  To be clear, for this project I'm not interested in the Flex API, just the IDE.
    Surprisingly, it seems Flash Builder 4 isn't really set up for this type of development.  I was hoping for an "Import FLA" option that would import my Document Class, set it as the main entry point, and figure out where other assets live and construct a new project.  What is the best workflow for developing a project like this?
    What I tried:
    -Create a new Actionscript Project in the same directory where my CS4  lives
    -Set the primary source file to match the original project's source file and location
    -Set my main FLA as "export to SWC", and added "SWC PATH" to my flash builder 4 project.
    -Compile and run.. received many errors due to references to stage instance. I changed these to GetChildByName("stagename").  Instead, should I declare them as members of the main class?  (this would mimic what flash CS4 does).
    -My project already streams in several external SWF's.  I set these to "Export SWC" to get compile-time access to classes and varaibles. This works fine in cs4, the loaded SWF's behave as if they were in the native project.  Is the same recommended with FB4?
    -Should I also be setting the primary FLA as "export to swc"?  If not, how do I reference it from flex, and how does flex know which fla it should construct the main stage with?
    Problems:
    -I'm getting a crash inside a class that is compiled in one of the external SWF's (with SWC).  I cannot see source code for the stack inside this class at all.  I CAN see member variables of the class, so symbol information exists.  And I do see the stack with correct function names.  I even see local variables and function parameters in the watch window! But no source.  Is this a known bug, or "by design"? Is there a workaround?  The class is compiled into the main project, but I still cannot see source.  If FLEX doesn't support source level debugging of SWC's, then it's pretty useless to me.   The project cannot live as a single SWF.  It needs to be streaming and modular for performance and also work flow. I can see source just fine when debugging the exact same SWC/SWF through CS4.
    -What is the expected workflow with artists/designers working on the project?  Currently they just have access to all the latest source, and to test changes they run right through flash.  Will they be required to license Flash Builder as well so they can test changes?  Or should I be distributing the main "engine" as a SWF, and having it reference other SWF files that artists can work on?  They they compile their SWF in CS4, and to test the game, they can load the SWF I distribute.
    A whitepaper on this would be awesome, since I think a lot of folks are trying to go this direction.  I spent a long time searching the web and there is quite a bit of confusion on this issue, and various hacks/tricks to make things work.  Most of the information is stale from old releases (AS2!).
    If a clean workflow I would happily adopt Flash Builder 4 as the new development tool for all the programmers.  It's a really impressive IDE with solid performance, functional intellisense, a rich and configurable interface, a responsive debugger..I could go on and on.  One request is shipping with "visual studio keyboard layout" for us C++ nerds.
    Thanks very much for reading this novel!

    Flash builder debugging is a go!  Boy, I feel a bit stupid, you nailed the problem Jason - I didn't have "Permit Debugging set".  I didn't catch it because debugging worked fine in CS4 because, well, CS4 doesn't obey this flag, even for externally loaded SWF files (I think as long as it has direct access to the SWC). Ugh.
    I can now run my entire, multi SWF, complex project through FB with minimal changes.  One question I do have:
    In order to instantiate stage instances and call the constructor of the document class, I currently load the SWF file with LoaderContext.  I'm not even exporting an SWC for the main FLA (though I may, to get better intellisense).  Is this the correct way of doing it?  Or should I be using , or some other method to pull it into flex?  They seem to do the same thing.
    The one awful part about this workflow is that since almost all of my code is currently tied to symbols, and lives in the SWF, any change i make to code must first be recompiled in CS4, then I have to switch back to FB.  I'm going to over time restructure the whole code base to remove the dependency of having library symbols derive from my own custom classes.  It's just a terrible work flow for both programmers and artists alike.  CS5 will make this better, but still not great.  Having a clean code base and abstracted away assets that hold no dependencies on the code  seems like the way to go with flash.  Realistically, in a complex project, artists/designers don't know how to correctly set up symbols to drive from classes anyway, it must be done by a programmer.  This will allow for tighter error checking and less guess work.  Any thoughts on this?
    Would love to beta test CS5 FYI seeing as it solves some of these issues.
    Date: Thu, 21 Jan 2010 15:06:07 -0700
    From: [email protected]
    To: [email protected]
    Subject: Building complex flash game in Flash Builder 4 - Workflow/Best Practices
    How are you launching the debug session from Flash Builder? Which SWF are you pointing to?
    Here's what I did:
    1) I imported your project (File > Import > General > Existing project...)
    2) Create a launch configuration (Run > Debug Configuration) as a Web Application pointing to the FlexSwcBug project
    3) In the launch config, under "URL or path to launch" I unchecked "use default" and selected the SWF you built (I assume from Flash Pro C:\Users\labuser\Documents\FLAs\FlexSwcBug\FlexSwcBugCopy\src\AdobeBugExample_M ain.swf)
    4) Running that SWF, I get a warning "SWF Not Compiled for Debugging"
    5) No problem here. I opened Flash Professional to re-publish the SWF with "Permit debugging" on
    6) Back In Flash Builder, I re-ran my launch configuration and I hit the breakpoint just fine
    It's possible that you launched the wrong SWF here. It looks like you setup DocumentClass as a runnable application. This creates a DocumentClass.swf in the bin-debug folder and by default, that's what Flash Builder will create a run config for. That's not the SWF you want.
    In AdobeBugExample_Main.swc, I don't see where classCrashExternal is defined. I see that classCrashMainExample is the class and symbol name for the blue pentagon. Flash Builder reads the SWC fine for me. I'm able to get code hinting for both classes in the SWC.
    Jason San Jose
    Quality Engineer, Flash Builder
    >

Maybe you are looking for