Flex 3 to Flex 4.5.1 Error (UIComponent)

When I change flex 3 to flex 4.5. I keep the almost code and change the essitial code to pass the complie of flex 4.5
But when I did the debug, the system just the fault at the webservice module.
The server dispatch event to the webservice which connect to the C# then just out
private function callLaterDispatcher(event:Event):void
// trace(">>calllaterdispatcher " + this);
UIComponentGlobals.callLaterDispatcherCount++;
// At run-time, callLaterDispatcher2() is called
// without a surrounding try-catch.
if (!UIComponentGlobals.catchCallLaterExceptions)
callLaterDispatcher2(event);
// At design-time, callLaterDispatcher2() is called
// with a surrounding try-catch.
else
try
callLaterDispatcher2(event);
catch(e:Error)
// Dispatch a callLaterError dynamic event for Design View.
                var callLaterErrorEvent:DynamicEvent = new DynamicEvent("callLaterError");
callLaterErrorEvent.error = e;
callLaterErrorEvent.source = this;
                systemManager.dispatchEvent(callLaterErrorEvent);
// trace("<<calllaterdispatcher");
UIComponentGlobals.callLaterDispatcherCount--;
In the file of UIComponent.as the error happens in the red line when I did the debug 
It connect to the event and also related in the error log
TypeError: Error #1009: Cannot access a property or method of a null object reference.
  at com.iqity.fusion.iqzone.commands.charts.realTimeProcessMonitor::LoadRealTimeProcessMonito rChartDataCommand/responseCorrectHandler()[C:\Users\Devel\Adobe Flash Builder 4.5\IQFlex4.5\src\com\iqity\fusion\iqzone\commands\charts\realTimeProcessMonitor\LoadReal TimeProcessMonitorChartDataCommand.as:802]
  at com.iqity.fusion.iqzone.business::IQFusionResponder/result()[C:\Users\Devel\Adobe Flash Builder 4.5\IQFlex4.5\src\com\iqity\fusion\iqzone\business\IQFusionResponder.as:108]
  at mx.rpc::AsyncToken/http://www.adobe.com/2006/flex/mx/internal::applyResult()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\AsyncToken.as:239]
  at mx.rpc.events::ResultEvent/http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\events\ResultEvent.as:207]
  at mx.rpc::AbstractOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\AbstractOperation.as:244]
  at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:318]
  at mx.rpc::Responder/result()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\Responder.as:5 6]
  at mx.rpc::AsyncRequest/acknowledge()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\AsyncR equest.as:84]
  at DirectHTTPMessageResponder/completeHandler()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\ messaging\channels\DirectHTTPChannel.as:451]
  at flash.events::EventDispatcher/dispatchEventFunction()
  at flash.events::EventDispatcher/dispatchEvent()
  at flash.net::URLLoader/onComplete()

You may want to check out what is going on in your library.  I would start where the error message gives us a hint, LoadRealTimeProcessMonitorChartDataCommand.as:802

Similar Messages

  • Flex Builder 3 and Channel definition-error

    Hi,
    I'm developing AIR application which is connecting to third
    party dll via FluorineFx. I've FluorineFx Service running. Now the
    problem is that when I'm trying to run AIR app in Flex Builder 3 I
    get following error: "Channel definition,
    mx.messaging.channels.RTMPChannel, can not be found". Does anybody
    know what might be reason and how to fix this?

    Ok, solved the problem. Found answer from here:
    http://forum.fluorinefx.com/viewtopic.php?f=9&t=3
    I installed LCDS Express and then added fds.swc to my project
    from LCDS-folder.

  • 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.

  • Flex 4.5: null object reference error on focus handling

    The spark list in the following listing is only included in MyState1. If a CheckBox is checked, the MyState2 is set and therefore the spark list is removed from stage.
    If I run the application with debugger attached and i check a CheckBox and then focus out and focus in the browser's window there is an error:
    TypeError: Error #1009: Cannot access a property or method of a null object reference
    at spark.components::Scroller/focusInHandler()[E:\dev\4.5.1\frameworks\projects\spark\src\sp ark\components\Scroller.as:1273]
    at flash.display::Stage/set focus()
    at mx.core::UIComponent/setFocus()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UI Component.as:9895]
    at mx.managers::FocusManager/activateHandler()[E:\dev\4.5.1\frameworks\projects\framework\sr c\mx\managers\FocusManager.as:689]
    This is the code of the application:
    <?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"
         initialize="application1_initializeHandler(event);">
         <fx:Script>
              <![CDATA[
                   protected function application1_initializeHandler(event:Event):void
                        addEventListener("myComboBoxChanged", testHandler);
                   private function testHandler(e:Event):void
                        currentState = "MyState2";
              ]]>
         </fx:Script>
         <s:states>
              <s:State name="MyState1"/>
              <s:State name="MyState2"/>
         </s:states>
         <s:List includeIn="MyState1">
              <s:dataProvider>
                   <s:ArrayList>
                        <fx:String>A</fx:String>
                        <fx:String>B</fx:String>
                        <fx:String>C</fx:String>
                   </s:ArrayList>
              </s:dataProvider>
              <s:itemRenderer>
                   <fx:Component>
                        <s:ItemRenderer>
                             <s:CheckBox label="CheckBox {data}" change="dispatchEvent(new Event('myComboBoxChanged', true));" />
                        </s:ItemRenderer>
                   </fx:Component>
              </s:itemRenderer>
         </s:List>
    </s:Application>

    Yes, there are all kinds of problems when you remove something from the screen that had focus (for instance, at that point you can't capture keyboard events either).
    My code is sprinkled with so many things to make sure something is in focus, I tend to forget that I've done it.
    In your code that changes the currentState, add
    this.setFocus()
    HTH;
    Amy

  • Flex SDK 4.11 4.0 error after upgrading from 4.10 3.9

    I have initially developed my flex applicaition in Flex SDK 4.6. I was able to upgrade my application to 4.10 3.9. But to support iOS 7 I am now using 4.11 sdk & air runtime 4.0. But unfortunately it is giving me this error:
    Error #1065: Variable spark.skins::ActionScriptSkinBase is not defined. at global$init()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/mobiletheme/src/spark/skins/mobile/SkinnableContainerSkin.as:34] at Function/<anonymous>() at mx.styles::CSSStyleDeclaration/http://www.adobe.com/2006/flex/mx/internal::addDefaultStyleToProtoChain()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as:972] at mx.styles::CSSStyleDeclaration/http://www.adobe.com/2006/flex/mx/internal::addStyleToProtoChain()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as:899] at mx.styles::StyleProtoChain$/initProtoChain()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as:258] at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::initProtoChain()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/core/UIComponent.as:11189] at mx.core::UIComponent/regenerateStyleCache()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/core/UIComponent.as:11252] at mx.managers.systemClasses::ChildManager/addingChild()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/managers/systemClasses/ChildManager.as:168] at mx.managers.systemClasses::ChildManager/initializeTopLevelWindow()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/managers/systemClasses/ChildManager.as:360] at mx.managers::SystemManager/initializeTopLevelWindow()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/managers/SystemManager.as:3065] at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/managers/SystemManager.as:2851] at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/managers/SystemManager.as:2731] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.preloaders::Preloader/timerHandler()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/preloaders/Preloader.as:572] at flash.utils::Timer/_timerDispatch() at flash.utils::Timer/tick()

    I have initially developed my flex applicaition in Flex SDK 4.6. I was able to upgrade my application to 4.10 3.9. But to support iOS 7 I am now using 4.11 sdk & air runtime 4.0. But unfortunately it is giving me this error:
    Error #1065: Variable spark.skins::ActionScriptSkinBase is not defined. at global$init()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/mobiletheme/src/spark/skins/mobile/SkinnableContainerSkin.as:34] at Function/<anonymous>() at mx.styles::CSSStyleDeclaration/http://www.adobe.com/2006/flex/mx/internal::addDefaultStyleToProtoChain()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as:972] at mx.styles::CSSStyleDeclaration/http://www.adobe.com/2006/flex/mx/internal::addStyleToProtoChain()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/styles/CSSStyleDeclaration.as:899] at mx.styles::StyleProtoChain$/initProtoChain()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as:258] at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::initProtoChain()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/core/UIComponent.as:11189] at mx.core::UIComponent/regenerateStyleCache()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/core/UIComponent.as:11252] at mx.managers.systemClasses::ChildManager/addingChild()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/managers/systemClasses/ChildManager.as:168] at mx.managers.systemClasses::ChildManager/initializeTopLevelWindow()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/managers/systemClasses/ChildManager.as:360] at mx.managers::SystemManager/initializeTopLevelWindow()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/managers/SystemManager.as:3065] at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/managers/SystemManager.as:2851] at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/managers/SystemManager.as:2731] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.preloaders::Preloader/timerHandler()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/preloaders/Preloader.as:572] at flash.utils::Timer/_timerDispatch() at flash.utils::Timer/tick()

  • 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.

  • Flex builder 3 build release version error

    Hi am a developer in flex for not too long. I am in a project that we use Flex 3 as our development tool in which we use external Actionscript classes and flash CS5 components (.swc) as well. Just recently the graphic team upgraded from CS5.0 to CS 5.5 and for some reason after they export the swc file from the flash source, I was not able to compile the flex project anymore throwing this error:
    "  Encountered errors or warnings while building project gTechLearning.as.
        gTechLearning.as: unable to load SWC C:\Documents and Settings\rhampton\My Documents\Flex Builder 3\learning\libs\_assets.swc ".
    So my question is simple, can anyone help me understand what is the cause of this error? Does it have anything to do with the version upgrade of the Adobe Creative Suite?
    Thanks,
    Ray H

    Ok, solved the problem. Found answer from here:
    http://forum.fluorinefx.com/viewtopic.php?f=9&t=3
    I installed LCDS Express and then added fds.swc to my project
    from LCDS-folder.

  • Flex SDK4 - import built in class error

    How are you?
    I am writing a very simple class, which I am trying to compile with ./mxmlc found in Flex SDK4. However I am getting the below errors, it seems like the built in classes cannot be found. I am not sure why the FLVPlayback or VideoPlayer or VideoElement components do not get included. I checked the SVN, and I cannot find any reference to these components.
    1) All I am trying to do is to get Video to display, using the Flex SDK4 compiler with AS3 files. Why the elements do not import? and What elements could I use for this to work?
    package {
         import flash.display.Sprite;
         import fl.video.FLVPlayback;
         public class Welcome extends Sprite {
              private var _video:FLVPlayback;
              private var _videoPath:String = "InsideJob.f4v";
              public function Welcome():void {
                   build();
         protected function build():void {
                   _video = new FLVPlayback();
                   _video.play(_videoPath);
                   var _place = new Position(200, 500);
                   _video.x = _place.xvalue();
                   _video.y = _place.yvalue();
                   stage.addChild(_video)
    ERRORS -----
    --FLVPlayback
    col: 22 Error: Type was not found or was not a compile-time constant: FLVPlayback.
    private var _video:FLVPlayback;
    col: 17 Error: Call to a possibly undefined method FLVPlayback.
    _video = new FLVPlayback();
    --Spark
    col: 25 Error: Definition spark.components:VideoElement could not be found.
    import spark.components.VideoElement;
    col: 22 Error: Type was not found or was not a compile-time constant: VideoElement.
    private var _video:VideoElement;

    How are you?
    I am writing a very simple class, which I am trying to compile with ./mxmlc found in Flex SDK4. However I am getting the below errors, it seems like the built in classes cannot be found. I am not sure why the FLVPlayback or VideoPlayer or VideoElement components do not get included. I checked the SVN, and I cannot find any reference to these components.
    1) All I am trying to do is to get Video to display, using the Flex SDK4 compiler with AS3 files. Why the elements do not import? and What elements could I use for this to work?
    package {
         import flash.display.Sprite;
         import fl.video.FLVPlayback;
         public class Welcome extends Sprite {
              private var _video:FLVPlayback;
              private var _videoPath:String = "InsideJob.f4v";
              public function Welcome():void {
                   build();
         protected function build():void {
                   _video = new FLVPlayback();
                   _video.play(_videoPath);
                   var _place = new Position(200, 500);
                   _video.x = _place.xvalue();
                   _video.y = _place.yvalue();
                   stage.addChild(_video)
    ERRORS -----
    --FLVPlayback
    col: 22 Error: Type was not found or was not a compile-time constant: FLVPlayback.
    private var _video:FLVPlayback;
    col: 17 Error: Call to a possibly undefined method FLVPlayback.
    _video = new FLVPlayback();
    --Spark
    col: 25 Error: Definition spark.components:VideoElement could not be found.
    import spark.components.VideoElement;
    col: 22 Error: Type was not found or was not a compile-time constant: VideoElement.
    private var _video:VideoElement;

  • 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

  • Deploying Flex 4 application and Channel Disconnected Error

    Hi,
    After deploying my application I keep having this error when I want to insert into Database.
    Channel disconnected before an acknowledgement was received
    The problem is that everything works as a cham localy.
    Thank's.

    This is a Flex question. Please try posting it to the Flex forums here http://forums.adobe.com/community/flex/flex_general_discussion

  • Flex 4.5 - Cairngorm Module Support error with creationComplete

    Hi
    As a starting point I've already posted a thread (see link below)
    http://forums.adobe.com/thread/970855?start=0&tstart=0
    but I've had no luck in solving this.
    I have an mx:Application which loads a module defined in ShellContext(see below) using a ParsleyModuleDescriptor and is loaded using Cairngorn's ModuleViewLoader with BasicLoadPolicy.
    The module loads fine, however the module's children/components are not initialized correctly.
    The module is called DashboardModule. Its creationComplete handler is invoked last.
    The DashboardModule contains DashboardView and DashboardView's creationComplete also gets invoked second to last,
    however DashboardView's children's creationComplete never get invoked.
    So in particular, in DashboardView, the mx:ApplicationControlBar, the mx:Button, and the presentation:DashboardSearchView, presentation:DashboardMyApproval etc etc, are all initialized ( i can see the traces that are added there) but their creationComplete handlers never get invoked.
    I have tried adding creationPolicy="all", at application level, at module level and at component level with no luck.
    I have spent 2 whole days on this and I still haven't been able to figure out the problem.
    We've used cairngorm modules before with Parsley and Flex 4.5.1 and we've never had such a problem.
    To be more precise, I have the following configuration:
    ---ShellContext
    <fx:Object>
            <commonPresentation:NavigationHandlerPM id="navigationPM"/>
            <module:ParsleyModuleDescriptor objectId="dashboard"
                url="DashboardModule-1.0-SNAPSHOT.swf"
                applicationDomain="{ ClassInfo.currentDomain }"/>
    </fx:Object>
    --DashboardModule.mxml
    <mx:Module
        width="100%" height="100%"
        backgroundColor="white"
        horizontalAlign="left"
        verticalAlign="top"
        layout="vertical" verticalScrollPolicy="off" horizontalScrollPolicy="off"
              creationComplete="creationComplete();"
        xmlns:mx="library://ns.adobe.com/flex/mx"
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:spicefactory="http://www.spicefactory.org/parsley"
        xmlns:cairngorm="com.adobe.cairngorm.*"
        xmlns:presentation="com.test.presentation.*">
        <fx:Declarations>
            <spicefactory:ContextBuilder id="spiceFactoryContextBuilder">
                                  <cairngorm:CairngormModuleSupport/>
                                  <cairngorm:CairngormIntegrationSupport/>
                                  <cairngorm:CairngormNavigationSupport/>
                                  <spicefactory:FlexConfig type="{DashboardContext}"/>
                                  <spicefactory:ViewSettings autowireComponents="true"/>
            </spicefactory:ContextBuilder>
            <spicefactory:FastInject  property="model" type="{DashboardPM}"/>
            <spicefactory:Configure/>
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
                [Bindable]
                [Inject(id="dashboardPM")]
                public var model:DashboardPM;
                private function creationComplete():void
                    trace('i should be called last god damn it');
                    model.startLoading();
            ]]>
        </fx:Script>
        <mx:VBox
            width="100%" height="100%"
            verticalScrollPolicy="off" horizontalScrollPolicy="off">
            <presentation:DashboardView
                width="{this.width}" height="{this.height}"
                verticalScrollPolicy="on" horizontalScrollPolicy="on"
                userProfile="{shell.userProfile}"/>
        </mx:VBox>
    </mx:Module>
    ----DashboardView.mxml
    <mx:VBox
        width="100%" height="100%"
        creationComplete="createComplete()"
              xmlns:mx="library://ns.adobe.com/flex/mx"
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:spicefactory="http://www.spicefactory.org/parsley"
        xmlns:presentation="com.db.paragon.common.module.dashboard.presentation.*">
        <fx:Declarations>
            <spicefactory:Configure/>
        </fx:Declarations>
       <fx:Script>
            <![CDATA[
            import mx.core.FlexGlobals;
            import mx.utils.StringUtil;
            [Bindable]
            [Inject]
            public var searchModel:DashboardSearchPM;
            [Bindable]
            private var _userprofile:UserProfile;
            public function get userProfile():UserProfile {
                return this._userprofile;
            public function set userProfile(userPr:UserProfile):void {
                this._userprofile = userPr;
                setUserWelcomeString();
            public function createComplete():void {
                  trace('i should be called second to last');
            ]]>
        </fx:Script>
        <mx:ApplicationControlBar
                initialize="trace('initialise control bar');" creationComplete="trace('controlbar complete');"
            width="100%"
            horizontalAlign="right"
            verticalAlign="middle">
            <mx:Text
                width="97%"
                left="10"
                fontSize="14"
                fontThickness="12"
                fontWeight="bold"
                textAlign="left"
                selectable="false" text="{userWelcomeString}"/>
            <mx:LinkButton id="help"
                width="60"
                color="gray"
                textAlign="right"
                label="Help"
                click='navigateToURL(new URLRequest(urlToHelp));'/>
        </mx:ApplicationControlBar>
        <mx:Button initialize="trace('initialise button')" creationComplete="trace('button complete');"/>
        <presentation:DashboardSearchView initialize="trace('initializesearchview');" creationComplete="trace('searchviewcomplete');" creationPolicy="all"/>
        <presentation:DashboardMyApproval initialize="trace('initializeapproval');" creationComplete="trace('approvalcomplete');" creationPolicy="all"/>
        <presentation:DashboardPendingApproval initialize="trace('pendingapproval');" creationComplete="trace('pendingapprovalcomplete');" creationPolicy="all"/>
        <presentation:DashboardReviewsDue initialize="trace('reviewsdue');" creationComplete="trace('reviewsdue');" creationPolicy="all"/>
        <presentation:DashboardHistCreditApplications initialize="trace('histcreditapps');" creationComplete="trace('histcredcomplete');" creationPolicy="all"/>
        <presentation:DashboardRatingWriteups initialize="trace('ratingwriteups');" creationComplete="trace('ratingwriteupslcomplete');" creationPolicy="all"/>
        <presentation:DashboardNotifications initialize="trace('notifications');" creationComplete="trace('notificationscomplete');" creationPolicy="all"/>
    </mx:VBox>
    Any help is greatly appreciated.

    Yes, there are all kinds of problems when you remove something from the screen that had focus (for instance, at that point you can't capture keyboard events either).
    My code is sprinkled with so many things to make sure something is in focus, I tend to forget that I've done it.
    In your code that changes the currentState, add
    this.setFocus()
    HTH;
    Amy

  • 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

Maybe you are looking for