Flex 3 to Flex 4

I'm trying to convert an application from Flex 3 to Flex 4.  One of the problems is discussed in another thread on how Flex 4 doesn't use CSS (background-Image).  But this thread is for other things, starting with this.
1) When I go into design mode, the properties becomes blank and says it will only work in design mode.  Is there a secret design mode?
2) When I go into design mode, the image won't fit on the page and you can't scroll down.  If I change the resolution to 12%, it will fit on the page but is unreadable.  Is there some way to scroll so you don't have to go to 12%?
3) When I try to run the application to see it, I only get an old version and not the current one.  How do I force it to use the current version?
Thanks.

I can't believe no one has converted Flex 3 to 4.

Similar Messages

  • Personalize Flex : Descriptive Flex ... in HRSS

    Gurus
    Hi,
    I need your help.
    In extra information of employee for HRSS, we have assigned personlaized Personalize Flex : Descriptive Flex ... by specifiying a segment value of EIT (employee loan request). When we press add to use this extra information, on next page again type field is available, which contains all the EIT available to that responsibility and user can selelct anone EIT to proceed.
    I need to make read only this field, or this fheid should not display. only the field of this extra information (employee loan request should be available)
    Pls help

    Hi Muhammad,
    When you are personalizing the EIT you need to personalize the segments against the page.That means you need to personalize the segment in the each page. Then only you will not be able to see those segments. I faced this problem in my one of project and resolved by personalizing each page.
    Thanks and Regards,
    Joshna.

  • Errors - drawing a text curve in flex with flex 3 with flex 3.5 framework

    Is that necessary in drawing a text curve in flex we need flex 4 with flash player 10, actually i have flex 3 with flex 3.5 framework but it is showing error like this :
    This is my code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Script>
    <![CDATA[
    import mx.components.TextView;
    public var myText:String = "Read my blog @ http://www.funnyjokesfunny.com";
    var radius:Number = 125;
    var spacing:Number = 8;    
    var center:Point = new Point(125,125);
    public function drawText():void {
    for (var char:uint=0;char<myText.length;char++) {
    var tempText:TextView = new TextView();
    tempText.x = radius * Math.cos(degrees2radians(char*spacing)) + center.x;
    tempText.y = radius * Math.sin(degrees2radians(char*spacing)) + center.y;
    tempText.rotation = 25;
    tempText.text = myText.charAt(char);
    textContainer.addChild(tempText);
    ]]>
    </mx:Script>
    <mx:Button label="Draw a circle" click="drawText()" />
    <mx:Canvas id="textContainer"  y="50" x="50"  width="400" height="400" />       
    </mx:Application>
    1) call to possibly  undefined method Text View
    2) Type was not found : Text view.                               
    Please help me
    Atishay

    I have now taken import mx.controls.Text;
    instead of textview it works , but in dis example http://blog.shortfusion.com/index.cfm/2009/1/25/Circular-Text-In-Flex-Explained with source code they have taken textview control and it works for them for text curve.

  • Error in compiling Flex application - flex has expired & AAD3.mxml

    I am getting below error when deployed a model to Portal (7.0) in Visual Composer (7.0):
    "WARNING License Service: The evaluation period for Flex has expired; switchi
    to the Developer Edition
    01/04 13:21:47 INFO License Service: Flex 1.5 Developer Edition enabled
    01/04 13:21:47 INFO License Service: Flex 1.5 OEM Edition enabled"
    In the mean time I got below error:
    "Failed to compile AAD3.mxml"
    Any helps would be appreciated. Thanks.

    Hi Kelly,
    When you generate the coding, compile and deploy within Visual Composer, you should not get this error message. Visual Composer passes the license-key to the Flex compiler automatically.
    If you take the generated coding (Action Script), manipulate it, compile it outside the Visual Composer and deploy it, then this license key is not passed and you retrieve this error. For this case you need a separate license for Adobe Flex.
    Check the below wiki.
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/vc/error%252bin%252bcompiling%252bflex%252bapplication
    Regards
    Basheer

  • Unknown Flex SDK: "Flex 3.1"

    I just upgraded my flex to Build 3.0.2.214193 and I get the following error when i import my project archive.  Why is that.  Is there anything i need to change?

    In Flex Builder menubar:
    Project - Properties - Flex Compiler
    Then select the SDK or else select Configure Flex SDKs and navigate to the C:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0 folder.

  • Accessing Param through Flex Globals ( Flex 4 )

    Part of Flex MXML Code :
    import mx.core.FlexGlobals;
    protected function buildModel():void
        // to access thequery string param passed from jsp file
        roomURL = FlexGlobals.topLevelApplication.parameters.roomURL;
        authToken = FlexGlobals.topLevelApplication.parameters.authToken;
    can i access < param >  in form of query string  from  JSP  code
    JSP Code below passsing  2 Param roomURL & authToken  :
    <script type="text/javascript">
          function loaded() {
        <%
          if (token != null) {
            System.out.print("Room URL IS:-> " + roomURL + "\n");
            System.out.print("Token: -> " + token);       
            %>
                win = window.open(
                  'meetingModule.html?roomURL=<%= roomURL %>&authToken=<%= token %>',
                  '_blank',
                  'left=20,top=20,width=800,height=600,toolbar=1,resizable=1');
            <%
            %>
        </script>

    I am not sure of what exactly the question is.
    Are you asking about how to access variables in JSP ? Or how to pass a parameter from an HTML page to a SWF ?
    Here:
               'meetingModule.html?roomURL=<%= roomURL  %>&authToken=<%= token %>',
    you are simply passing variable to the HTML page. From there you need to use javascript to parse the query string and pass the values to your SWF.
    If you look at the ExternalAuthentication examples they all do something similar.

  • Regarding building (ant) and debugging Flex components (Flex Builder)

    I am fairly new to graniteds + flex. The example articles on graniteds and blazeds use two separate applications i.e., using mxml components and actionscripts in another project. Why is this done so?
    It was hard to build the swf files in a separate project as the antscript needed something more.
    <mxmlc....>
    <source-path path-element="${basedir}/src"/>
    </mxmlc ..>
    The source here is the actual java source code. Unless I had the two projects together, I could not build the swf files. However, once I convert this one application to a java project, as flex project does not recognize java source code, I can no longer debug my flex screens. Am I missing something here?
    Help
    Krishna

    No suggestions yet?
    Could someone tell me if I could integrate these in one place atleast, if so how do we configure the application to be able to debug Flex applications?
    Thanks
    Krishna

  • Flex eg, show flex or flex-attach

    Greetings,
    Is there an idiots guide to what flex related commands mean to me? Perhaps my searching abilities are not the best but I would like to read someting in plain English what the flex related commands achieve. Mostly, this information needs to go to our architecture people.
    I am trying to put switches into our HP C Class enclosures and our server ops people think that HP Virtual Connect is a better option. I feel as though the flex commands offer the same ease of replacement of Blades (or generally dude Mezzanine cards that mean replacement WWN's in my case) and much better capabilities.
    Has anyone done a comparison on this?
    Stephen

    G'day Stephen,
    I'm not sure if you have seen "http://www.cisco.com/en/US/docs/storage/san_switches/mds9000/sw/rel_3_x/configuration/guides/cli_3_4_x/flexattach.html"?
    As far as a comparison at all I don't really have one and most places I've worked at were not to keen on it as lots of datacentre tasks were outsourced and physical security could not be not be "guaranteed" and some of the contractors had very bad habits of plugging the wrong cable in :\
    Hope all is well!
    Andrew

  • [FLEX] ejemplo flex + base de datos

    aupi a tod@s
    alguien conoce de algun ejemplo donde se comuniquen un
    archivo flex y una
    base de datos (access...)?? si es en local mejor
    saludos y gracias de antemano

    Jordi:
    Muy genérico y quizá no orientado a una base Access
    encuentras este quick
    start:
    http://www.adobe.com/devnet/flex/quickstart/httpservice/
    Ahora como tal el comunicar un archivo Flex y una base de
    datos va a
    requerir de una capa intermedia que bien podría ser ASP
    o .NET, con ASP
    clásico te podría ser útil el tutorial que te
    acabo de recomendar, ahora
    hablando de .NET es conveniente que le eches un ojo a una
    tecnología llamada
    WebORB ya que los Flex Data Services por sí mismos no
    son nativos para .NET,
    pero ahora con el framework 3.0 de .NET las cosas se pueden
    poner
    interesantes.
    http://www.themidnightcoders.com/weborb/
    Saludos, Edgar
    ".:: jordi ::." <[email protected]> escribió en
    el mensaje
    news:ek1233$s66$[email protected]..
    > aupi a tod@s
    >
    > alguien conoce de algun ejemplo donde se comuniquen un
    archivo flex y una
    > base de datos (access...)?? si es en local mejor
    >
    > saludos y gracias de antemano
    >

  • Why Flex: What Flex can do, but HTML/AJAX can not?

    I want to understand the position of Flex in RIA competition. I used Flex because of AdvancedDataGrid and the Charts. It is impossible for HTML to do some thing like these.
    The Transition Effects are nice, but not important in enterprise environment. The initial loading time of Flex is much longer than that of HTML although Flex is more reponsive than HTML/AJAX after Flex is loaded.
    Any comments?

    It's not always about what it can or can't do--a lot of this is about doing the same thing better.  And think about the origins of Ajax--it's basically a hack.  I know the same can be said about a lot of technologies (even the Internet itself), but why use something that is essentially a hack when you have technology that was engineered for the purpose you have in mind?  Building hacks and fixes upon more hacks and fixes is how we end up with a pile of junk at the end of the day in IT.  It's time to start calling things what they are, hacks, if they are that.
    Flex has better performance, if you make use of AMF.
    HTML and Ajax can't use AMF and has no counterpoint in this area. AMF is much faster than the crummy Ajax hack can muster (especially once you start throwing crap like Dojo into the mix).
    http://www.jamesward.com/blog/2007/12/12/blazebench-why-you-want-amf-and-blazeds/
    Check AMF times compared to JSON Ajax times, bandwidth.
    Flex doesn't care about the user's browser.  Sure, the HTML/Ajax hack has frameworks to help you deal with that, but do you really want to worry about upgrading that trash (or framework bugs) when a new version of IE, or Opera, or Firefox, or Chrome, or Safari, or even another browser comes out and breaks something?  A newer version of Flash won't break a Flex app.  Also, other than Chrome, other browser JavaScript implementations are slow, slow, slow.  The more complex your Ajax app gets, the slower it will become--that's lame.
    User experience. A well designed Flex UI is much nicer and easier to use than even the best "JavaScript/DHTML" hackfest.  Just look at these new Adobe forums--JavaScript out the wazoo and they suck on anything other than Google Chrome.   It's useful for marketing too--not just for commercial stuff, but marketing to upper management for enterprise applications.  Everyone that looks at a well designed Flex app will be blown away by it.  And then you get your pay raise.  (lol - assuming it works, too)
    Superior development experience and development time.  Using Flex Builder you can mock up an entire "seemingly functional" prototype application within a ridiculous amount of time.  You can even run it without a back end or a server of any kind, just a standalone Flash player or browser.  You also have the GUI design mode, that shows you exactly what the user is going to see in the browser--no matter what browser they have, no matter what their settings are, etc.  No more HTML crap to deal with or (God forbid) tehnologies like JSP to generate your dinosaur code.  Documentation goes from the kludge of junk out there for HTML/Ajax/JS/etc to the excellent and very Javadoc-like ASdoc.
    And no more choosing between the dozens of hacky and crummy Ajax "framework" patchworks out there, that are needed to workaround all the problems you'd run into without a framework.
    That's just what I can recall at the moment.  I will NEVER go back to that God-awful Ajax/HTML hackfest people are calling RIA development.  Sure, Flex has it's issues and downsides too, but they aren't usually major enough to be of concern, even in an enterprise environment.
    BTW - It's not really Flex vs. HTML/Ajax.
    It's more like Flex vs. HTML/DHTML and AMF vs. Ajax/JSON.  But, Flex can talk to Ajax too, and it can even be embedded in HTML.  Although personally I feel that's a bastardization of the technologies, sometimes I guess people have a need to do these things.

  • The MessagePerformanceUtils:totalTime issue in Flex 4 (rpc.swc) using LCDS 3.1 running under JDK1.6

    We are facing an issue while using LCDS 3.1 running under JDK1.6 in Sun Solaris v5.10 OS & Adobe Flex 4.
    Scenario :-
    ===================================
    As part of our Flex-based client-server application (with Java backend) we have a performance report generation module. Following flex framework class is used to calculate the performance of various layer of a typical server-based request-response cycle.
    ; (available in rpc.swc library file)
    (for example : server time, cairngorm time, UI screen rendering time, UI event generation time etc).
    The totalTime was working properly before upgrading the rpc.swc to Flex 4 ; However it broke after migrating to Flex SDK 4; The totalTime is now coming as negative junk value.
    As we understand that the above Flex framework class method works in conjunction with LCDS running at server side on JDK.
    We suspect that the new rpc.swc taken from Flex SDK 4 is causing the issue !
    System information :
    Web Server : Weblogic 11G
    Operating System : Sun Solaris v5.10 OS running on Sparc hardware.
    Flex : Adobe Flex sdk 4.0
    Flash player : Adobe Flash Player 10
    Browser : Internet Explorer 8
    LCDS : 3.1
    JDK : JDK 1.6.0_14
    ===================================
    Has anyone faced similar problem before ? Any help or direction would be highly appreciated.
    Thanks in advance,
    Rabi
     mx.messaging.messages.MessagePerformanceUtils :totalTime

    Nothing has changed in the Flex SDK sources for this class since sometime around 2008. Are you running against the same LCDS server as you were before you updated to Flex 4?  This certainly seems strange (and bad).  Do you see the same behavior with Flex 4.5?  What was the version of Flex you were using before switching to Flex 4.0?
    If you can provide the additional information, we will look in to this.  A reproducable case that was a simple mxml application along with a simple destination config would help us narrow the problem.
    Sorry for the problems!
    Tom

  • How to print text/data in flex 3 using printer???Plz help...

       Hi,
              plz tell me the way to print text/data using printer in flex.  I tried the FlexPrintJob class. but it takes object of a container to be printed & prints the visible content of that container(along with scrollbars), bt i want to print all contents of the container(including invisible).
          I have tried to print bitmap image through FlexPrintJob but it takes lot of time for spooling... So plz help me out in printing(fast with all content) in flash
    I am using flex 3 (flex Builder 3 IDE).
      Thanks in advance!!!

    Hi Sagar,
    Don't worry You can use the below work around to print all the contents of the Container including the invisible contents under scrolll with out scroll bar..
    So what the idea here is we are seeting the container height to full size with out scrolls before sending the container object to printer and as soon as you print the object you are restoring it to the original height with scrolls...so that you can print the full contents without scrolls...
    You may have doubt that by chnaging and restoring the size the user may see momentary resize of the container but it is not so as it is a fraction of a second and user cannot notice this change... Give it a try ..I had already run into this problem recently and I have found a work around for this which is as below:
    // Here mainContainer is the container or box id the contents of which you want to print
       private function doPrintContainer():void
        var printJob:FlexPrintJob = new FlexPrintJob();
        if(printJob.start() != true) return;
        try
         var mainContainerHeight:int = mainContainer.height;
         //Increasing the height of the desired component to be printed.
         mainContainer.height = mainContainer.measuredMinHeight;
         mainContainer.verticalScrollPolicy = "off";
         //Adding the resized Component to our FlexPrintjob and then sending the print request
         printJob.addObject(this,FlexPrintJobScaleType.MATCH_WIDTH);    
         printJob.send();
         //Resizing the component back to normal size
         mainContainer.height = mainContainerHeight;
         mainContainer.verticalScrollPolicy = "auto";    
        catch(error:Error)
                     trace("Error : " + error.message);
    If this post answers your question or helps, please kindly mark it as such.
    Thanks,
    Bhasker Chari

  • CRASH IN L9...select 10 files from Audio Bin to a track set to flex...

    CRASH IN L9
    ...select 10 files at once from Audio Bin (short sfx files) to a track set to flex (monophonic flex mode)......when prompt appears select: "all files on same track"
    CRASH!
    SvK

    You're welcome,
    you were clear before ...no it doesn't crash ..i tried it again on a different/new audio track with monophonic flex enabled b4 dragging the audio clips(short audio drum tracks) on that track
    maybe because I'm on 10.5.7?
    A
    Message was edited by: immo

  • Display image in flex from database

    I am using flex and java and mysql,
    I upload image file into database from flex application.Now i want to display image in my flex
    RIA application from database.
    How can i do that??
    Thanks in advance!!!

    "B.O.H.R." <[email protected]> wrote in
    message
    news:g91dr3$b0f$[email protected]..
    >
    quote:
    > Ordinary Flex can't do this. You could probably do it in
    AIR. There's a
    > separate forum just for AIR applications.
    >
    >
    > Could you precise which things flex CAN'T ?:
    >
    > 1. load image file from local disk and represent it as
    an object in Flex
    > app?
    > 2. display image represented as object(created as above)
    in Flex app?
    > 3. transfer that object back and forth to database using
    BlazeDS ?
    >
    > Maybe there are posibilitie to make workaround of some
    inconviniences?
    > I am asking becaouse I realy would like to create such
    app in Flex.
    Flex can create an AIR application.
    But a swf file can't read from the local drive.
    HTH;
    Amy

  • How to implement springsecurity in flex

    Hi..All
    i'm newbie and need your help
    I have  difficulty in the implementation of security on the flex project using  spring security. in implementation the project i'm using
    BlazeDS Turnkey.
    Apache Tomcat
    Eclipse Ganymede 3.4 (for editing code)
    I've tried to make it but always get an error message
    "[MessagingError  message = 'Destination' securityHelper 'either does not exist or the  destination has no channels defined (and the application does not define  any default channels .)']- could not establish a connection to'  securityHelper'-InvokeFailed"
    and below my source  code
    1. web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" version="2.4"
      xmlns="http://java.sun.com/xml/ns/j2ee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
        <display-name>Spring BlazeDS Integration Samples</display-name>
        <context-param>
            <param-name>flex.class.path</param-name>
            <param-value>/WEB-INF/flex/hotfixes,/WEB-INF/flex/jars</param-value>
        </context-param>
        <context-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>
                /WEB-INF/spring/*-config.xml
            </param-value>
        </context-param>
        <!-- -->
        <filter>
            <filter-name>springSecurityFilterChain</filter-name>
            <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
        </filter>
        <filter-mapping>
          <filter-name>springSecurityFilterChain</filter-name>
          <url-pattern>/*</url-pattern>
        </filter-mapping>
        <listener>
            <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
        </listener>
        <!-- Http Flex Session attribute and binding listener support -->
        <listener>
            <listener-class>flex.messaging.HttpFlexSession</listener-class>
        </listener>
        <!-- MessageBroker Servlet
        <servlet>
            <servlet-name>MessageBrokerServlet</servlet-name>
            <servlet-class>flex.messaging.MessageBrokerServlet</servlet-class>
            <init-param>
                <param-name>services.configuration.file</param-name>
                <param-value>/WEB-INF/flex/services-config.xml</param-value>
            </init-param>
            <init-param>
                <param-name>flex.write.path</param-name>
                <param-value>/WEB-INF/flex</param-value>
            </init-param>
            <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet-mapping>
            <servlet-name>MessageBrokerServlet</servlet-name>
            <url-pattern>/messagebroker/*</url-pattern>
        </servlet-mapping>
        -->
        <servlet>
            <servlet-name>flex</servlet-name>
            <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
            <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet-mapping>
            <servlet-name>flex</servlet-name>
            <url-pattern>/messagebroker/*</url-pattern>
         </servlet-mapping>
        <welcome-file-list>
            <welcome-file>index.html</welcome-file>
            <welcome-file>index.htm</welcome-file>
            <welcome-file>index.jsp</welcome-file>
            <welcome-file>default.html</welcome-file>
            <welcome-file>default.htm</welcome-file>
            <welcome-file>default.jsp</welcome-file>
        </welcome-file-list>
    </web-app>
    2. flex-servlet.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:flex="http://www.springframework.org/schema/flex"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="
            http://www.springframework.org/schema/beans
            http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
            http://www.springframework.org/schema/flex
            http://www.springframework.org/schema/flex/spring-flex-1.0.xsd">
        <flex:message-broker>
            <flex:message-service
                default-channels="my-streaming-amf,my-longpolling-amf,my-polling-amf" />
            <flex:secured />
        </flex:message-broker>
        <!-- Expose the productService bean for BlazeDS remoting -->
        <flex:remoting-destination ref="productService" />
        <!-- Expose the contactService bean for BlazeDS remoting -->
        <flex:remoting-destination ref="contactService" />
        <!-- Expose the securedProductService bean for BlazeDS remoting -->
        <flex:remoting-destination ref="securedProductService" />
        <!-- Helper for getting the currently authenticated user-->
        <bean id="securityHelper" class="org.springframework.flex.samples.secured.SecurityHelper">
            <flex:remoting-destination/>
        </bean>
        <!-- Messaging destinations -->
        <flex:message-destination id="chat" />
        <flex:message-destination id="secured-chat" send-security-constraint="trusted" />
        <flex:message-destination id="simple-feed" />
        <flex:message-destination id="market-feed" allow-subtopics="true" subtopic-separator="." />
        <flex:jms-message-destination id="jms-chat" jms-destination="chatTopic" />     <!-- See configuration of "chatTopic" in /WEB-INF/spring/infrastructure-config.xml -->
        <flex:integration-message-destination id="si-receive" message-channel="toFlex"/> <!-- See configuration of "toFlex" in /WEB-INF/spring/integration-config.xml -->
        <flex:integration-message-destination id="si-send" message-channel="fromFlex"/> <!-- See configuration of "fromFlex" in /WEB-INF/spring/integration-config.xml -->      
        <!-- MessageTemplate makes it easy to publish messages -->
        <bean id="defaultMessageTemplate" class="org.springframework.flex.messaging.MessageTemplate" />
        <!-- Pojo used to start and stop the data feed that pushes data in the 'simple-feed' destination -->
        <bean id="simpleFeedStarter" class="org.springframework.flex.samples.simplefeed.SimpleFeed">
            <constructor-arg ref="defaultMessageTemplate" />
            <flex:remoting-destination />
        </bean>
        <!-- Pojo used to start and stop the data feed that pushes data in the 'market-feed' destination -->
        <bean id="marketFeedStarter" class="org.springframework.flex.samples.marketfeed.MarketFeed">
            <constructor-arg ref="defaultMessageTemplate" />
            <constructor-arg value="stocklist.xml" />
            <flex:remoting-destination />
        </bean>
    </beans>
    3.service-config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <services-config>
        <services>
            <default-channels>
               <channel ref="my-amf"/>
            </default-channels>
            <service-include file-path="remoting-config.xml" />
            <service-include file-path="proxy-config.xml" />
            <service-include file-path="messaging-config.xml" />
        </services>
        <channels>
            <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
                <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
            </channel-definition>
            <channel-definition id="my-secure-amf" class="mx.messaging.channels.SecureAMFChannel">
                <endpoint url="https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/>
                <properties>
                    <add-no-cache-headers>false</add-no-cache-headers>
                </properties>
            </channel-definition>
            <channel-definition id="my-polling-amf" class="mx.messaging.channels.AMFChannel">
                <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling" class="flex.messaging.endpoints.AMFEndpoint"/>
                <properties>
                    <polling-enabled>true</polling-enabled>
                    <polling-interval-seconds>4</polling-interval-seconds>
                </properties>
            </channel-definition>
            <channel-definition id="my-longpolling-amf" class="mx.messaging.channels.AMFChannel">
                <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amflongpolling" class="flex.messaging.endpoints.AMFEndpoint"/>
                <properties>
                    <polling-enabled>true</polling-enabled>
                    <polling-interval-seconds>5</polling-interval-seconds>
                    <wait-interval-millis>60000</wait-interval-millis>
                    <client-wait-interval-millis>1</client-wait-interval-millis>
                    <max-waiting-poll-requests>200</max-waiting-poll-requests>
                </properties>
            </channel-definition>      
            <channel-definition id="my-streaming-amf" class="mx.messaging.channels.StreamingAMFChannel">
                <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/streamingamf" class="flex.messaging.endpoints.StreamingAMFEndpoint"/>
            </channel-definition>
        </channels>
        <security>
            <login-command class="flex.messaging.security.TomcatLoginCommand" server="Tomcat"/>
            <security-constraint id="trusted">
                <roles>
                    <role>ROLE_USER</role>
                    <role>ROLE_ADMIN</role>
                </roles>
            </security-constraint>
        </security>
        <logging>
            <target class="flex.messaging.log.ConsoleTarget" level="Warn">
                <properties>
                    <prefix>[BlazeDS] </prefix>
                    <includeDate>false</includeDate>
                    <includeTime>false</includeTime>
                    <includeLevel>false</includeLevel>
                    <includeCategory>false</includeCategory>
                </properties>
                <filters>
                    <pattern>Endpoint.*</pattern>
                    <pattern>Service.*</pattern>
                    <pattern>Configuration</pattern>
                </filters>
            </target>
        </logging>
        <system>
            <redeploy>
                <enabled>false</enabled>
            </redeploy>
        </system>
    </services-config>
    4. remoting-config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <service id="remoting-service" class="flex.messaging.services.RemotingService">
        <adapters>
            <adapter-definition id="java-object"
                class="flex.messaging.services.remoting.adapters.JavaAdapter"
                default="true" />
        </adapters>
        <default-channels>
            <channel ref="my-amf" />
        </default-channels>
    </service>
    5. spring/security-config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <beans:beans xmlns="http://www.springframework.org/schema/security"
        xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
                            http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.4.xsd">
    <!--
        <http>
            <form-login default-target-url="/secured/secured.html" login-page="/login.jsp" />
        </http>
    -->
        <http>
            <form-login default-target-url="/ZeroToHero.html"/>
        </http>
        <authentication-provider>
            <user-service>
                <user name="john" password="john" authorities="ROLE_USER" />
                <user name="admin" password="admin" authorities="ROLE_USER, ROLE_ADMIN" />
                <user name="guest" password="guest" authorities="ROLE_GUEST" />
            </user-service>
        </authentication-provider>
    </beans:beans>
    6. ZeroToHero.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
        applicationComplete="applicationCompleteHandler()">
        <mx:RemoteObject id="productService" destination="securedProductService" fault="faultHandler(event)"/>
        <mx:RemoteObject id="securityHelperTest" destination="securityHelper" fault="faultHandler(event)">
            <mx:method name="getAuthentication" result="userHandler(event)"/>
        </mx:RemoteObject>
        <mx:Script>
            <![CDATA[
                import mx.messaging.ChannelSet;
                import mx.messaging.channels.AMFChannel;
                import mx.controls.Alert;
                import mx.rpc.AsyncToken;
                import mx.rpc.AsyncResponder;
                import mx.rpc.events.FaultEvent;
                import mx.rpc.events.ResultEvent;
                [Bindable]
                private var user:Object = null;
                private function applicationCompleteHandler():void
                    securityHelperTest.getAuthentication();
                    chat.consumer.subscribe();
                private function userHandler(event:ResultEvent):void
                    user = event.result;
                    if (user != null) {
                        userId.text = user.name;
                        userId.editable = false;
                        password.editable = false;
                private function faultHandler(event:FaultEvent):void
                    Alert.show(event.fault.faultString + "-" +
                    event.fault.faultDetail + "-" +
                    event.fault.faultCode, "Error accessing RemoteObject");
                private function login():void
                    var token:AsyncToken = securityHelperTest.channelSet.login(userId.text, password.text);
                      token.addResponder(
                          new AsyncResponder(
                              function(event:ResultEvent, token:Object = null):void{
                                  user = event.result;
                                  userId.editable = false;
                                  password.editable = false;
                              function(event:FaultEvent, token:Object = null):void{
                                  Alert.show(event.fault.faultString, "Login Failed");
                private function logout():void
                    securityHelperTest.channelSet.logout();
                    user = null;
                    userId.text = "";
                    userId.editable = true;
                    password.text = "";
                    password.editable = true;
                    grid.dataProvider.removeAll();       
            ]]>
        </mx:Script>
        <mx:Form>
            <mx:FormItem label="User Id">
                <mx:TextInput id="userId"/>
            </mx:FormItem>
            <mx:FormItem label="Password">
                <mx:TextInput id="password" displayAsPassword="true"/>
            </mx:FormItem>
            <mx:FormItem direction="horizontal">
                <mx:Button label="Login" click="login()"/>
                <mx:Button label="Logout" click="logout()"/>
            </mx:FormItem>
        </mx:Form>
        <mx:Accordion width="100%" visible="{user != null}">
            <mx:Canvas label="Products" width="100%">
                <mx:Panel width="100%">
                    <mx:DataGrid id="grid" dataProvider="{productService.findAll.lastResult}" width="100%" height="100%">
                        <mx:columns>
                            <mx:DataGridColumn dataField="productId" headerText="Product ID" visible="{user != null ? user.authorities.indexOf('ROLE_ADMIN') >= 0 : false}"/>
                            <mx:DataGridColumn dataField="name" headerText="Name" />
                            <mx:DataGridColumn dataField="category" headerText="Category" />
                            <mx:DataGridColumn dataField="description" headerText="Description" />
                            <mx:DataGridColumn dataField="image" headerText="Image" />
                            <mx:DataGridColumn dataField="price" headerText="Price" />
                            <mx:DataGridColumn dataField="qty" headerText="Qty" />
                        </mx:columns>
                    </mx:DataGrid>
                    <mx:Button label="Get Data" click="productService.findAll()"/>
                </mx:Panel>
            </mx:Canvas>
            <Chat id="chat" username="{user.name}"/>
        </mx:Accordion>
    </mx:Application>
    please help me,

    remote-config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <service id="remoting-service" class="flex.messaging.services.RemotingService">
        <adapters>
            <adapter-definition id="java-object"
                class="flex.messaging.services.remoting.adapters.JavaAdapter"
                default="true" />
        </adapters>
        <default-channels>
            <channel ref="my-amf" />
        </default-channels>
        <destination id="securityHelper">
            <properties>
                <source>org.springframework.flex.samples.secured.SecurityHelper</source>
                <scope>application</scope>
            </properties>
        </destination>
    </service>
    SecurityHelper.as (for calling remote object from client) of my own. and I think this SecurityHelper.as wrong because not return value, and I do  not know how to call a java class SecurityHelper.java
    package com.adobe
        [Bindable]
        [RemoteClass(alias="org.springframework.flex.samples.secured.SecurityHelper")]
        public class SecurityHelper
            public function SecurityHelper()
    SecurityHelper.java
    package org.springframework.flex.samples.secured;
    import java.util.Map;
    import org.springframework.flex.security.AuthenticationResultUtils;
    public class SecurityHelper {
        public Map<String, Object> getAuthentication() {
            return AuthenticationResultUtils.getAuthenticationResult();
    thank's
    Message was edited by: agungdmt

  • Flex 10 error 0x80240031 when upgrade to 8.1

     I am facing this error code 0x80240031 while updating to 8.1 at 50%. I trying everything (download last windows update, command prompt and type/run: "sfc /scannow, Dism /Online /Cleanup-Image /RestoreHealth, change ISP and uninstall Antivirus).
    My laptop Ideapad Flex 10 (Pentium processor 2.00 GHz, 2 GB RAM, Wondows 8 32-Bit)
    Any new solution?

    The IdeaPad Flex 10 supports Windows 8.1, but it is recommended you back-up your data prior to upgrading to Windows 8.1.
    I cannot guarantee you will not experience problems. But I would take the following steps to perform the upgrade:
    1. Back-up your data and important documents
    2. Perform the Windows 8.1 Upgrade/Update
    3. Install all Windows 8.1 drivers from: http://mobilesupport.lenovo.com/us/en/products/laptops-and-netbooks/flex-series/flex-10-notebook-len...
    4. Reinstall malfunctioning programs/software
    Jonas
    Microsoft MVP: Windows Consumer Expert
    Yoga Tablet 2 10 || ThinkPad X1 Carbon (20A7007MPH) || ThinkPad Helix (3698-6EU) || IdeaCentre B540
    Twitter: @jonashendrickx

Maybe you are looking for

  • HELP!! My iPhone keeps crashing and i cant activate it anymore

    I stated having issues with my iPhone a couple weeks back when my batterl life started ending pretty quickly. Now Icant even get an hour of use out of my phone. thats no the biggest problem though... for a couple hours now my phone keeps crashing ran

  • Please help thanks. Adobe Digital Edition using across multiple computers

    Hi I have Adobe Digital Editions (ADE) installed on a laptop with Windows, and a Mac laptop. I have authorized ADE on both machines. I use the laptops at different locations Currently i have 2 separate libraries (small libraries of < 10 books) on bot

  • Outlook 2013 can't connect to Exchange 2013 SP1

    Hello, I've already asked that question on Exchange 2013, now I'd like to ask it again in regard to Exchange 2013 SP1. The question i s very easy: suppose I have just installed Exchange 2013 SP1 (in a Win2012 R2 domain)  with three mailboxes (user1,

  • XML parsing failed while select from my table with criteria

    While select from my table an error displayed as ORA-31011: XML parsing failed ORA-19202: Error occurred in XML processing LPX-00601: Invalid token in: '/<XML Path>/row[c24="SA0010001"]' select * from category where existsNode(xmlrecord, '/<XML Path>

  • SWF load a XML on an other server = BUG

    Hi AS3 fellaz, All sources availbale here : http://www.tapiocadesign.com/prods/xstrata/_CROSS_DOMAIN_EXEMPLE.zip MY GOAL : from a flash(swf) on server A, I want to download an XML file on server B. MY PROBLEM : it doesn t work 1 - I use the Class URL