DateField problem on flex

Hi All,
I have a problem with displaying the date in a inputText.
Eveything works fine but the "DAY" of the date is displayed wrong.
What is the problem my code is below.
<mx:DateField x="30" y="60" id="curDate"
disabledRanges="{[ {rangeEnd: new Date(2007, 1, 1)} ]}"/>
<mx:Button x="171" y="60" click="{ getDate(); }"
label="Add Note" id="activateButton"/>
private function getDate():void {
if(curDate.selectedDate == null) {
Alert.show("No Date Selected !");
else {
var myDay:Number = curDate.selectedDate.getDay();
var myMonth:Number = (curDate.selectedDate.getMonth())+1;
var myYear:Number = curDate.selectedDate.getFullYear();
var myDate:String = myDay.toString() + "/" +
myMonth.toString() + "/" + myYear.toString();
myPanel.visible=true;
cancelOp.enabled=true;
dateText.text = myDate;
}

Try running the Builder for the first time as Administrator
(even if you are logged in as administrator you have to right-click
and run as administrator... gotta love Vista)
http://wesleonardo.wordpress.com/2007/03/12/flex-builder-on-vista/
Cheers,
-- Jim

Similar Messages

  • Hey Guys, problem with Flex Time.

    Hey Guys,
    i have a problem with Flex Time. I was searching for a way to copy my 1-Tackt Timplin Beat to make 12 out of it, but there were always "wholes" between the new inserted regions. So i found Flex Time, but then when i choosed a Region, pressed the Flex Time button, nothing happend, except that the Header became a little bit bigger, as if there would been added a few more options, but there came only more free space .
    Would be great if somebody could help me!:)

    I would suggest Option dragging the bottom right edge of the Region so it fits precicely to the grid, then copy.  This is a quick way to time stretch...

  • Swc problem with flex from my custom fla

    I have an fla which has several library items with a class linkage to a GenericButton.as file. I am exporting this fla as an swc file, and linking that swc into flex.
    My problem is that when flex builds the code for GenericButton it gets undefined property for anything it tries to reference that is part of the library item.
    Example:
    GenericButton.as does libLabel.text = "something"; where libLabel is a textfield, instantiated in the library clip which is bound to GenericButton in it's class linkage.
    The field exists in the clip, but when I compile in Flex with the swc in there, it cant find it. It says libLabel doesnt exist, undefined property.
    What am I missing here? I want to allow the fla author to bind some of his items to low-level component classes like that, and it's his job to ensure that all the necessary items are part of it. So if he makes a new button, he must just ensure he has a libLabel textfield somewhere in the clip.
    Why cant flex see that the items it's trying to compile have a libLabel in there? Is there a work around?

    Thx for the reply Greg, but no, that's not the problem.  If you re-read my post you'll probably see my problem is a little more involved than that.
    I have symbols exported for actionscript and I can instantiate them in Flex, that's not a problem.  The problem is symbols that are exported for actionscript and bound to a base class that contains custom code.  That custom code, when it uses it to type-check in flex builder (during the swc link stage), causes undefined properties.
    For some reason Flex is not seeing that the exported library item has the things the .as file is looking for.
    Does that make sense?
    I could probalby put together a simple example project but I'd have to find somewhere to upload it so that others could see.
    This problem is hard to describe, you have to read what I'm saying very carefully.

  • Video Display Problems with Flex Builder 2

    I am currently trying out the Flex Builder 30-day trial and
    have been having problems running the software.
    System info:
    FB 2.0.1
    Dell Latittude D820 running WinXP
    NVIDIA Quadro NVS 120M Video Card
    When I first installed it, my display turned to garbage and I
    had to reboot my machine to get it to a usable state. Someone
    suggested changing my display properties and see if it helped. When
    I tried 768X1024 with 8-bit color it worked. Once I installed it, I
    changed them back to 1920X1200 32-bit. Everything seemed to work
    fine until I started getting into some more complicated tutorials.
    My display crashed and looked similar to what I saw before. I
    updated to the latest NVIDIA driver from Dell. No help. I then
    tried the Windows Troubleshooting. When I turned my hardware
    acceleration to None, it started working again. There are some
    weird display issues with menu buttons and I can't launch my Nvdia
    software.
    Is there a better solution to this? Has anyone had this
    problem? I'm not so sure I'll purchase the software with this many
    problems.
    Thanks,
    Wendi

    Boys n Girls
    I am Currently restoring my Power Book after a significant meltdown.
    Thanks for posting I too saw the shearing effect but shrugged it off thinking oh well I'll just reboot!
    If you are seeing this Buy a fire wire drive NOW and Back-up.
    I suspect the Video update changed a low level feature in the power management routines and this resulted in my Power book cooking itself.
    I've got a 12mth old Hitachi 7200 PATA drive in my Power Book after the Apple Drive cooked itself soem tim back and I have now got to back-up and restore my whole system. Luckiliy I have plenty of Big fast firewire drives around so I'm imaging the corrupt drive and going to run the Hitachi tool on it via a WINDOZE Thinkpad. Then a combination of clean install of 10.5.x and a migration assisted restore should do it.
    I'm really not very happy though! My Time machine image did not restore and the disk repair did not work. I have a corrupted asl.DB ( the log file for Apple System Logs) and the mac won't boot from its internal drive.
    I'll post the resolution here as it happens I'm at hour Disaster + 24 so I'm really cranky!
    I suggest If you have a G4 Power Book you resist the temptation to install the video update.
    Regards

  • SSL Problem in Flex

    I am using Flex with PHP via AMF PHP. Building application
    was fine. But it gave me problem when I deployed it to server which
    sits behind SSL layer. The problem is not associate with data
    accessing I can access data very well but I when I go to any other
    page after visiting flex part it just kicks user out to login page
    again. If I simply use HTTP protocol it does not happen but if I
    use HTTPS protocol it does. I did intense research in this problem.
    I tried following solutions.
    USE crossdomain file name crossdomain.xml
    loadpolicy file
    class="mx.messaging.channels.SecureAMFChannel" in
    service-config.xml
    class="flex.messaging.endpoints.SecureAMFEndpoint" in
    service-config.xml
    lastly here is my crossdomain.xml
    <?xml version="1.0" ?>
    <!-- https://imtecintranet/shopping -->
    <!DOCTYPE cross-domain-policy SYSTEM "
    http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
    <allow-access-from domain="*" secure="false"
    to-ports="443"/>
    </cross-domain-policy>
    All this solution mentioned in different websites including
    flex documentation didn't worked. It's not the problem from PHP
    side since it works perfectly with Flex if I use HTTP protocol so I
    think problem is in Flex side. I read in this website
    http://www.onflex.org/ted/2005/11/using-flash-player-under-https-with.php
    that flash player have bugs and so, I tried to solve this
    problem by using cross-domain.xml file but unfortunately this
    didn't solve the problem. Any help will be greatly appreciated.

    with some additional attributes added on to server.xml <Connector /> tag application is loading fine in local environment.
    <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol" bufferSize="64000" maxHttpHeaderSize="64000"  socket.appWriteBufSize="64000" socket.appReadBufSize="64000" SSLEnabled="true" maxThreads="150" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" keystoreFile="C:\Users\user_name\.keystore" keystorePass="*****" allowTrace="false"/>
    But the same changes are not working in UAT environment, any clue on it will help me.
    thanks in advance.

  • Cvs problem in flex builder 2.0

    Hi, everyone, I have installed my flex builder 2.0 without
    problem, and i have created some apps using it.
    It is really good.
    But the question is , when I set up a CVS client in flex
    builder, i can only do commit / update / synch, Why the Edit /
    Unedit menus are disabled? Dose anyone know this? I think it is
    very inconvenient.
    Thank you

    Hi There
    I am wondering if you can help me, i am looking to build a simple flex front end with a java back end, just to send simple requests and responses. By the sounds of your email you have an idea of how to do this, i am using websphere as my server, i am wondering if you have any links to tutorials on how to do this or any sample projects yourself. Any help would be amazing
    Thanks

  • Problems with flex and php.

    Hello, my name is Gamaliel Arredondo, i have to develope a project in flash builder 4 using the data service to connect with php, the application has installed the zend framework automatically just like the tutorials said, I use xampp and i have the files in the htdoc location, all the path are correct but when i want to connect to my php classes i receive this message:
    Make sure that Zend Framework is installed correctly and  the parameter "amf.production" is not set to true in the amf_config.ini file  located in the project output folder.     /0/onResultÿÿÿÿ � Uflex.messaging.messages.AcknowledgeMessage correlationId clientId destination messageId timestamp timeToLive headers  body I797BFBCC-250A-A100-9954-68CD2AC82DF5 I2570DA6E-2F76-55E9-2249-000075B2C293  I590AA123-C3CE-5F48-6A94-00002F9B370A  126571301000      ‡G
    I have searched on internet in order to find a solution but i haven't found anything that can help me, so i would like to receive some of help, my email is [email protected], if you can help me i will thank you so much, have a nice day.

    Hello, I am Gamaliel Arredondo, i have solved this problem, the error is in the code, you have a mistake in your code, check it out.
    The way to run the flex applications, in my case, i installed xampp, in the htdoc directory i put the folder with the files of the application and all is working very well, only when the apache is running because if it is stoped the application show error, please review your code and if you have problems you can contact me by e-mail ([email protected]) i also fought with that problem but i could find the solution, i hope to help you.

  • UTF-8 Problems in Flex Builder 3

    I created locale properties files that contained characters
    requiring UTF-8 encoding using Flex Builder 3 for Mac OS. Some of
    the characters displayed incorrectly when viewed through the web
    browser. Open the properties files with an editor (BBEdit) produced
    a warning that the UTF-8 format was corrupted and the characters
    did not display in BBEdit correctly. I fixed the format and
    characters through BBEdit and found they worked and displayed as
    expected. Opening the properties in Flex Builder 3 show the
    characters correctly, but as soon as I saved the file from Flex
    Builder the characters stopped displaying. BBEdit again showed the
    UTF-8 format was corrupted.
    Does anyone have any suggestions for fixing this problem? Any
    workarounds?

    FB saves files as ISO-8859-1 by default. Right click file,
    select Properties, then select "other" in the Text File Encoding
    area, and then select UTF-8 there.

  • Encoding problem in Flex - HTTPService

    Problem with swedish character å, ä och ö in a
    simple form mail with flex, php and mySQL.
    Have tried to change this in flex - mySimpleFormMail.mxml:
    <?xml version="1.0" encoding="utf-8"?> to
    <?xml version="1.0" encoding="Latin1"?> and to
    <?xml version="1.0" encoding="iso-8859-1"?>
    Have also at the same time changed this in mail.php:
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" /> to
    <meta http-equiv="Content-Type" content="text/html;
    charset=Latin1" /> and to
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    The mySimpleFormail looks like this is this:
    From---------------------------------------
    Name----------------------------------------
    To------------------------------------------
    E-mail---------------------------------------
    Mesage---------------------------------------
    SEND (button)
    The e-mail generated from mySimpleFormail looks like this:
    From: Patrik Hällman
    Email Address: [email protected]
    To:
    Patrik Hällman
    Email Address: [email protected]
    Message: testing if this form works with the following
    character -
    åä och ö.
    ...as you can see
    swedish character å, ä och ö is wrong
    displayed.
    This is catastrophic when you working with cms and databases.
    All help I can get from this forum is really appreciated.
    Here is the result from <traceTarget>:
    [SWF] C:\AppServ\www\email \bin-debug\email_send4.swf - 910
    229 bytes after decompression
    'AB8F6784-15FC-7BD4-D26D-F73192A7717F' producer set
    destination to 'DefaultHTTP'.
    'direct_http_channel' channel endpoint set to http:
    'AB8F6784-15FC-7BD4-D26D-F73192A7717F' producer sending
    message 'AA84F829-98F0-E93F-D7AC-F732847CF6B2'
    'direct_http_channel' channel sending message:
    (mx.messaging.messages::HTTPRequestMessage)#0
    body = (Object)#1
    emailMessage = "Now I´m testing with the swedish
    character å, ä and ö."
    senderEmail = "[email protected]"
    senderName = "Peter Fällman"
    sendToEmail = "[email protected]"
    sendToName = "Patrik Hällman"
    clientId = (null)
    contentType = "application/x-www-form-urlencoded"
    destination = "DefaultHTTP"
    headers = (Object)#2
    httpHeaders = (Object)#3
    messageId = "AA84F829-98F0-E93F-D7AC-F732847CF6B2"
    method = "POST"
    recordHeaders = false
    timestamp = 0
    timeToLive = 0
    url = "
    http://www.myhomesite.se/email/email.php"
    'AB8F6784-15FC-7BD4-D26D-F73192A7717F' producer connected.
    'AB8F6784-15FC-7BD4-D26D-F73192A7717F' producer acknowledge
    of 'AA84F829-98F0-E93F-D7AC-F732847CF6B2'.
    Decoding HTTPService response
    Processing HTTPService response message:
    (mx.messaging.messages::AcknowledgeMessage)#0
    body = "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Untitled Document</title>
    </head>
    <body>
    </body>
    </html>
    clientId = "DirectHTTPChannel0"
    correlationId = "AA84F829-98F0-E93F-D7AC-F732847CF6B2"
    destination = ""
    headers = (Object)#1
    messageId = "5624FC90-E89E-2B47-92B9-F7328A8CB993"
    timestamp = 0
    timeToLive = 0

    Search this forum for the words "chinese character". Another
    user said they had succeded in doing this.
    Tracy

  • How to deal with this problem while Flex Integration   SSH

    Error creating bean with name '_messageBroker': Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: flex/messaging/AbstractFlexSessionProvider……
    Caused by: java.lang.ClassNotFoundException: flex.messaging.AbstractFlexSessionProvider
    I have  exist project used  SSH ,and now need flex to be use in some new unint.
    I hava follow these step to write my code , please help me to pickup the misstake  i had token.
    (flex4.0  spring 3.6 strust2.2 **)
    1. download the Blazeds file  and spring-flex-core-1.5.2.RELEASE.jar
    (org.springframework.integration-1.0.3.RELEASE.jar also include)
    2. unpack the Blazeds copy the flex folder to WEB-INF 
    3.add the lib/*  to my project lib folder
    4.add some declaration in the web.xml
    5.new a flex-application-config.xml 
    ^^^^ and so on.  I don't know how  to deal with this problem!!!
    Waitting for help!

    The information you provided is totally useless for determining the problem.
    If it helps, I think the message you are getting is related to BlazeDS not being able to find the service class you are calling. You either have a typo somewhere, or you didn't set up a secure channel in your service config (I am assuming you meant SSL and not SSH).

  • Help me,About invoking PopUpManager.addPopUp problem in Flex 4 Module

    hello,when I invoke PopUpManager.addPopUp(),have a problem. detail from the fellowing program code;
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Module xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark" width="100%" height="100%"
               xmlns:mx="library://ns.adobe.com/flex/mx" creationComplete="initApp()">
        <fx:Declarations>
            <!-- 将非可视元素(例如服务、值对象)放在此处 -->
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                import mx.controls.Alert;
                import mx.core.FlexBitmap;
                import mx.core.FlexGlobals;
                import mx.events.CloseEvent;
                import mx.events.DataGridEvent;
                import mx.events.ListEvent;
                import mx.managers.PopUpManager;
                import mx.rpc.AsyncToken;
                import mx.rpc.events.FaultEvent;
                import mx.rpc.events.ResultEvent;
                import mx.rpc.remoting.RemoteObject;
                import org.mydev.fnd.proxy.FndLookupHeadersProxy;
                import org.mydev.fnd.proxy.FndLookupLinesProxy;
                import org.mydev.fnd.vo.FndLookupHeadersVO;
                import org.mydev.fnd.vo.FndLookupLinesVO;
                import org.mydev.utils.PublicFunction;
                import spark.components.Application;
                [Bindable]
                private var myac:ArrayCollection=new ArrayCollection();
                [Bindable]
                private var myacLines:ArrayCollection=new ArrayCollection();
                private var headerProxy:FndLookupHeadersProxy=new FndLookupHeadersProxy();
                private var linesProxy:FndLookupLinesProxy=new FndLookupLinesProxy();
                private var add:FndHeaderDM;
                private var lineAdd:FndLineDM;
                private function lfRowNum(oItem:Object,iCol:int):String
                    var iIndex:int = myac.getItemIndex(oItem) + 1;
                    return String(iIndex);
                private function lfRowNumLines(oItem:Object,iCol:int):String
                    var iIndex:int = myacLines.getItemIndex(oItem) + 1;
                    return String(iIndex);
                private function we_resultHandler(event:ResultEvent):void
                    myac=event.result as ArrayCollection;
                    //                PopUpManager.removePopUp(wi);
                    // TODO Auto-generated method stub
                private function we_faultHeadler(event:FaultEvent):void{
                    //                var msg:String=event.message.toString();
                    Alert.show("插入数据失败!");
                private function we_resultHandlerLines(event:ResultEvent):void
                    myacLines=event.result as ArrayCollection;
                    //                PopUpManager.removePopUp(wi);
                    // TODO Auto-generated method stub
                private function we_faultHeadlerLines(event:FaultEvent):void{
                    //                var msg:String=event.message.toString();
                    Alert.show("插入数据失败!");
                public function initApp():void{
                    dataHeaders.allowMultipleSelection=true;
                    var token:AsyncToken=headerProxy.getAllHeaders();
                    PublicFunction.addResponder(token,we_resultHandler,we_faultHeadler);
                    //                dataHeaders.addEventListener(MouseEvent.DOUBLE_CLICK,doubleClick)
                    //                dataHeaders.addEventListener(ListEvent.KEY_DOWN,selectChange);
               protected function btnAddHeader_clickHandler(event:MouseEvent):void
                    //                trace("test.............");
                    add=new FndHeaderDM();
                    PopUpManager.addPopUp(add,parent,true);
                    //PopUpManager.addPopUp(add,FlexGlobals.topLevelApplication as DisplayObject,true);
                    PopUpManager.bringToFront(add);
                    PopUpManager.centerPopUp(add);
                    //                var myFun:Function=initApp;
                    var fndLookupHeadersVO:FndLookupHeadersVO=new FndLookupHeadersVO();
                    add.init(fndLookupHeadersVO,1,myac);
                private function headerAlertClickHandler(event:CloseEvent):void { 
                    var myObj:FndLookupHeadersVO=(FndLookupHeadersVO)(dataHeaders.selectedItem);
                    if (event.detail==Alert.YES){  
                        //                    Alert.show("你选择了 确定");  
                        myac.removeItemAt(dataHeaders.selectedIndex);   
                        //this.parent.removeChildAt(dataHeaders.selectedIndex);
                        headerProxy.removeObj(myObj);
                        //                initApp();
                        //dataHeaders.initialize();
                    //                else if(event.detail==Alert.NO){  
                    //                    Alert.show("你选择了 否");  
                    //                }else{  
                    //                    Alert.show("你选择了 取消");  
                protected function btnDelHeader_clickHandler(event:MouseEvent):void
                    if (dataHeaders.selectedItem!=null){
                        Alert.show("是否要删除?", "信息提示",3, this, headerAlertClickHandler);
                    }else{
                        Alert.show("请选定一条记录进行操作!", "信息提示");
                    //                PublicFunction.confirmDelete(dataHeaders.selectedItems,secondAlertClickHandler);
                protected function btnEditHeader_clickHandler(event:MouseEvent):void
                    if (dataHeaders.selectedItem!=null){
                        var myObj:FndLookupHeadersVO=(FndLookupHeadersVO)(dataHeaders.selectedItem);
                        add=new FndHeaderDM();
                        PopUpManager.addPopUp(add,parent,true);
                        PopUpManager.bringToFront(add);
                        PopUpManager.centerPopUp(add);
                        add.init(myObj,2,myac);
                    }else{
                        Alert.show("请选定一条记录进行操作!", "信息提示");
                protected function dataHeaders_changeHandler(event:ListEvent):void
                    //                Alert.show(myac.getItemAt(dataHeaders.selectedIndex)+"");
                    var myObj:FndLookupHeadersVO=(FndLookupHeadersVO)(myac.getItemAt(dataHeaders.selectedIndex));
                    var myLineObj:FndLookupLinesVO=new FndLookupLinesVO();
                    myLineObj.headerId=myObj.headerId;
                    var token:AsyncToken=linesProxy.getByObj(myLineObj);
                    PublicFunction.addResponder(token,we_resultHandlerLines,we_faultHeadlerLines);
                protected function dataHeaders_doubleClickHandler(event:MouseEvent):void
                    if (dataHeaders.selectedItem!=null){
                        var myObj:FndLookupHeadersVO=(FndLookupHeadersVO)(dataHeaders.selectedItem);
                        add=new FndHeaderDM();
                        PopUpManager.addPopUp(add,parent,true);
                        PopUpManager.bringToFront(add);
                        PopUpManager.centerPopUp(add);
                        add.init(myObj,2,myac);
                    }else{
                        Alert.show("请选定一条记录进行操作!", "信息提示");
                protected function dataLines_doubleClickHandler(event:MouseEvent):void
                    if (dataHeaders.selectedItem!=null)
                        lineAdd=new FndLineDM();
                        PopUpManager.addPopUp(lineAdd,parent,true);
                        PopUpManager.bringToFront(lineAdd);
                        PopUpManager.centerPopUp(lineAdd);
                        var lineObject:FndLookupLinesVO=(FndLookupLinesVO)(dataLines.selectedItem);
                        lineAdd.init(lineObject,2,myacLines);
                    else
                        Alert.show("请选定一条记录进行操作!", "信息提示");
                protected function btnAddLines_clickHandler(event:MouseEvent):void
                    if (dataHeaders.selectedItem!=null)
                        lineAdd=new FndLineDM();
                        PopUpManager.addPopUp(lineAdd,parent,true);
                        PopUpManager.bringToFront(lineAdd);
                        PopUpManager.centerPopUp(lineAdd);
                        var fndLookupLinesVO:FndLookupLinesVO=new FndLookupLinesVO();
                        var headerObject:FndLookupHeadersVO=(FndLookupHeadersVO)(dataHeaders.selectedItem);
                        fndLookupLinesVO.headerId=headerObject.headerId;
                        lineAdd.init(fndLookupLinesVO,1,myacLines);
                    else
                        Alert.show("请选定一条记录进行操作!", "信息提示");
                protected function btnEditLines_clickHandler(event:MouseEvent):void
                    if (dataLines.selectedItem!=null)
                        lineAdd=new FndLineDM();
                        PopUpManager.addPopUp(lineAdd,parent,true);
                        PopUpManager.bringToFront(lineAdd);
                        PopUpManager.centerPopUp(lineAdd);
                        var lineObject:FndLookupLinesVO=(FndLookupLinesVO)(dataLines.selectedItem);
                        lineAdd.init(lineObject,2,myacLines);
                    else
                        Alert.show("请选定一条记录进行操作!", "信息提示");
                private function lineAlertClickHandler(event:CloseEvent):void { 
                    var myObj:FndLookupLinesVO=(FndLookupLinesVO)(dataLines.selectedItem);
                    if (event.detail==Alert.YES){  
                        myacLines.removeItemAt(dataLines.selectedIndex);   
                        linesProxy.removeObj(myObj);
                protected function btnDelLines_clickHandler(event:MouseEvent):void
                    if (dataLines.selectedItem!=null){
                        Alert.show("是否要删除?", "信息提示",3, this, lineAlertClickHandler);
                    }else{
                        Alert.show("请选定一条记录进行操作!", "信息提示");
            ]]>
        </fx:Script>
        <s:Panel height="100%" width="100%"  title="HEADERS" autoLayout="true">
            <s:Panel x="0" y="194" height="100%" width="100%" title="LINES" autoLayout="true">
                <mx:DataGrid x="10" y="39" height="100%" width="100%"  id="dataLines" dataProvider="{myacLines}" doubleClickEnabled="true" doubleClick="dataLines_doubleClickHandler(event)">
                    <mx:columns>
                        <mx:DataGridColumn headerText="#RowNo" labelFunction="lfRowNumLines" width="50"/>
                        <mx:DataGridColumn headerText="LINE_ID" dataField="lineId"/>
                        <mx:DataGridColumn headerText="LOOKUP_CODE" dataField="lookupCode"/>
                        <mx:DataGridColumn headerText="MEANING" dataField="meaning"/>
                        <mx:DataGridColumn headerText="DESCRIPTION" dataField="description"/>
                    </mx:columns>
                </mx:DataGrid>
                <s:Button x="200" y="10" label="删除" id="btnDelLines" click="btnDelLines_clickHandler(event)"/>
                <s:Button x="10" y="10" label="追加" id="btnAddLines" click="btnAddLines_clickHandler(event)"/>
                <s:Button x="102" y="10" label="编辑" id="btnEditLines" click="btnEditLines_clickHandler(event)"/>
            </s:Panel>
            <s:Button x="10" y="10" label="追加" id="btnAddHeader" click="btnAddHeader_clickHandler(event)"/>
            <s:Button x="106" y="10" label="编辑" id="btnEditHeader" click="btnEditHeader_clickHandler(event)"/>
            <s:Button x="207" y="10" label="删除" id="btnDelHeader" click="btnDelHeader_clickHandler(event)"/>
            <mx:DataGrid x="10" y="39" height="147" width="100%" change="dataHeaders_changeHandler(event)" doubleClick="dataHeaders_doubleClickHandler(event)" dataProvider="{myac}" id="dataHeaders" doubleClickEnabled="true" lockedColumnCount="1">
                <mx:columns>
                    <mx:DataGridColumn headerText="#RowNo" labelFunction="lfRowNum" width="50" />
                    <mx:DataGridColumn headerText="HEADER_ID" dataField="headerId"/>
                    <mx:DataGridColumn headerText="LOOKUP_TABLE" dataField="lookupTable"/>
                    <mx:DataGridColumn headerText="LOOKUP_COLUMN" dataField="lookupColumn"/>
                    <mx:DataGridColumn headerText="LOOKUP_DESCRIPTION" dataField="lookupDescription"/>
                </mx:columns>
            </mx:DataGrid>
        </s:Panel>
    </mx:Module>
    When I execute  btnAddHeader_clickHandler(event) function,error information  in the fellowing:
    Error: 找不到 FndHeaderDM232.SkinnableContainerSkin233.contentGroup.frm.FormItem238.txtTable 的外观。
        at spark.components.supportClasses::SkinnableComponent/attachSkin()[E:\dev\4.x\frameworks\pr ojects\spark\src\spark\components\supportClasses\SkinnableComponent.as:632]
        at spark.components.supportClasses::SkinnableComponent/validateSkinChange()[E:\dev\4.x\frame works\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:405]
        at spark.components.supportClasses::SkinnableComponent/createChildren()[E:\dev\4.x\framework s\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:368]
        at mx.core::UIComponent/initialize()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UI Component.as:7349]
        at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.x\frameworks\projects\fr amework\src\mx\core\UIComponent.as:7241]
        at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.x\frameworks\projects\fr amework\src\mx\core\Container.as:3972]
        at mx.core::Container/addChildAt()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Cont ainer.as:2616]
        at mx.core::Container/addChild()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Contai ner.as:2534]
        at mx.core::Container/createComponentFromDescriptor()[E:\dev\4.x\frameworks\projects\framewo rk\src\mx\core\Container.as:4392]
        at mx.core::Container/createComponentsFromDescriptors()[E:\dev\4.x\frameworks\projects\frame work\src\mx\core\Container.as:4181]
        at mx.core::Container/createChildren()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\ Container.as:3187]
        at mx.containers::FormItem/createChildren()[E:\dev\4.x\frameworks\projects\framework\src\mx\ containers\FormItem.as:479]
        at mx.core::UIComponent/initialize()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UI Component.as:7349]
        at mx.core::Container/initialize()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Cont ainer.as:3129]
        at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.x\frameworks\projects\fr amework\src\mx\core\UIComponent.as:7241]
        at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.x\frameworks\projects\fr amework\src\mx\core\Container.as:3972]
        at mx.core::Container/addChildAt()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Cont ainer.as:2616]
        at mx.containers::Form/addChildAt()[E:\dev\4.x\frameworks\projects\framework\src\mx\containe rs\Form.as:293]
        at mx.core::Container/addChild()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Contai ner.as:2534]
        at mx.containers::Form/addChild()[E:\dev\4.x\frameworks\projects\framework\src\mx\containers \Form.as:282]
        at mx.core::Container/createComponentFromDescriptor()[E:\dev\4.x\frameworks\projects\framewo rk\src\mx\core\Container.as:4392]
        at mx.core::Container/createComponentsFromDescriptors()[E:\dev\4.x\frameworks\projects\frame work\src\mx\core\Container.as:4181]
        at mx.core::Container/createChildren()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\ Container.as:3187]
        at mx.core::UIComponent/initialize()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UI Component.as:7349]
        at mx.core::Container/initialize()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Cont ainer.as:3129]
        at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.x\frameworks\projects\fr amework\src\mx\core\UIComponent.as:7241]
        at mx.core::UIComponent/addChildAt()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UI Component.as:6947]
        at spark.components::Group/addDisplayObjectToDisplayList()[E:\dev\4.x\frameworks\projects\sp ark\src\spark\components\Group.as:1825]
        at spark.components::Group/http://www.adobe.com/2006/flex/mx/internal::elementAdded()[E:\dev\4.x\frameworks\projects\ spark\src\spark\components\Group.as:1416]
        at spark.components::Group/setMXMLContent()[E:\dev\4.x\frameworks\projects\spark\src\spark\c omponents\Group.as:512]
        at spark.components::Group/set mxmlContent()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\Group.as:452]
        at spark.components::SkinnableContainer/set mxmlContent()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\SkinnableContaine r.as:604]
        at spark.components::SkinnableContainer/createDeferredContent()[E:\dev\4.x\frameworks\projec ts\spark\src\spark\components\SkinnableContainer.as:986]
        at spark.components::SkinnableContainer/createContentIfNeeded()[E:\dev\4.x\frameworks\projec ts\spark\src\spark\components\SkinnableContainer.as:1014]
        at spark.components::SkinnableContainer/createChildren()[E:\dev\4.x\frameworks\projects\spar k\src\spark\components\SkinnableContainer.as:827]
        at mx.core::UIComponent/initialize()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UI Component.as:7349]
        at org.mydev.fnd.view::FndHeaderDM/initialize()
        at mx.managers.systemClasses::ChildManager/childAdded()[E:\dev\4.x\frameworks\projects\frame work\src\mx\managers\systemClasses\ChildManager.as:189]
        at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::rawChildren_addChildAt()[E:\dev\4.x\frameworks \projects\framework\src\mx\managers\SystemManager.as:1963]
        at mx.managers::SystemManager/addChildAt()[E:\dev\4.x\frameworks\projects\framework\src\mx\m anagers\SystemManager.as:1595]
        at mx.managers::SystemManager/addChild()[E:\dev\4.x\frameworks\projects\framework\src\mx\man agers\SystemManager.as:1578]
        at mx.managers::PopUpManagerImpl/addPopUp()[E:\dev\4.x\frameworks\projects\framework\src\mx\ managers\PopUpManagerImpl.as:346]
        at mx.managers::PopUpManager$/addPopUp()[E:\dev\4.x\frameworks\projects\framework\src\mx\man agers\PopUpManager.as:193]
        at org.mydev.fnd.view::FndLookupDM/btnAddHeader_clickHandler()[D:\eclipse-jee-galileo-SR1-wi n32\workspace\subapp\flex_src\org\mydev\fnd\view\FndLookupDM.mxml:88]
        at org.mydev.fnd.view::FndLookupDM/__btnAddHeader_click()[D:\eclipse-jee-galileo-SR1-win32\w orkspace\subapp\flex_src\org\mydev\fnd\view\FndLookupDM.mxml:264]
    I hope you help me,I'm Flex new  develper. thanks!
    My Email: [email protected].

    Hi
    I have a similar (but not exactly the same, see my post: http://forums.adobe.com/message/3943082#3943082). I tried your solution but I don't really understand what you mean by
    2) The module is being linked into the main application.  There are plenty
    of old discussions on this topic.
    Can you be more specific ?
    Thank you !!
    Max

  • DateField Problem

    When I add a date formatter to the DateField control,
    selectedDate does not get set. It remains at null after using the
    date chooser.
    Does anyone know a way I can set selectedDate or is there a
    problem with the way I've used the DateFormatter?
    The following code shows the error. (The error disappears if
    you remove the labelFunction line.)
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns="*" creationComplete = "initApp()">
    <mx:Script>
    <![CDATA[
    import mx.controls.DateField;
    import mx.formatters.DateFormatter;
    public function initApp():void{
    var myDF:DateField = new DateField();
    myDF.labelFunction = formatDate;
    pan.addChild(myDF);
    private function formatDate(date:Date):String{
    var df:DateFormatter = new DateFormatter();
    df.formatString = "D MMM YYYY";
    return df.format(date);
    ]]>
    </mx:Script>
    <mx:Panel id="pan" width="450" height="150" />
    </mx:Application>
    Doug

    This solves the problem.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns="*" creationComplete = "initApp()">
    <mx:Script>
    <![CDATA[
    import mx.controls.DateField;
    import mx.formatters.DateFormatter;
    import mx.events.DropdownEvent;
    private var dc:Date;
    public function initApp():void{
    var myDF:DateField = new DateField();
    myDF.labelFunction = formatDate;
    myDF.addEventListener(DropdownEvent.OPEN, calOpenHandler);
    myDF.addEventListener(DropdownEvent.CLOSE, calCloseHandler);
    pan.addChild(myDF);
    private function calOpenHandler(event:DropdownEvent):void{
    event.currentTarget.selectedDate = dc;
    private function calCloseHandler(event:DropdownEvent):void{
    if(dc == event.currentTarget.selectedDate){
    event.currentTarget.selectedDate = null;
    }else{
    dc = event.currentTarget.selectedDate;
    private function formatDate(date:Date):String{
    var df:DateFormatter = new DateFormatter();
    df.formatString = "D MMM YYYY";
    return df.format(date);
    ]]>
    </mx:Script>
    <mx:Panel id="pan" width="450" height="150" />
    </mx:Application>
    Doug

  • Problem viewing flex in Safari

    I'm new to Flex and unable to view my Flex work in Safari...
    Firefox works fine.
    Here's one simple example:
    http://www.papaya.net/test/flex/1/firstAnimation.html
    You should see a red ball moving across the screen like this
    screen cap from Firefox:
    http://www.papaya.net/test/flex/1/firefox-snap.png
    But in Safari I only get the grey background, no red ball. So
    far none of my samples work in Safari.
    Do you see the same problem?
    These source files can be downloaded here:
    http://www.papaya.net/test/flex/1/Archive.zip
    My setup:
    Mac Power Book G4
    OSX 10.4.11
    Safari 3.1.2
    Flash player version 9,0,124,0 installed
    Flex Builder 3

    I changed the ball position as suggested, but still did not
    work in Safari... still works in Firefox.
    Here's that test:
    http://www.papaya.net/test/flex/2/firstAnimation.html
    I also checked with IE6/FlashPlayer9 and it works... what
    version IE did not work?
    The SWF plays ok in safari by itself, but not with the HTML
    page code... we removed the javascript and it worked... don't know
    if that's a real solution as the page code is being generated by
    Flex Builder 3.
    Here's the new AS code for the test linked above:
    package {
    import flash.display.Sprite;
    import flash.events.Event;
    public class firstAnimation extends Sprite {
    private var ball:Sprite;
    public function firstAnimation() {
    init();
    private function init():void {
    ball = new Sprite();
    addChild(ball);
    ball.graphics.beginFill(0xff0000);
    ball.graphics.drawCircle(0, 0, 40);
    ball.graphics.endFill();
    ball.x = 20;
    ball.y = 50;
    ball.addEventListener(Event.ENTER_FRAME, onEnterFrame);
    private function onEnterFrame(event:Event):void {
    ball.x++;

  • Flashbuilder 4 giving problem in flex sdk 4.5.0 and 4.5.1

    Hi,
    I have flash builder 4 installed in windows xp OS.
    While developing AIR application in flash builder + flex sdk 4.0 it is fine and showing the application windows.
    But when i use flex 4.5.0 or flex 4.5.1 sdk the window doesnot show.
    After i have changed the workspace it gives the following problem.
    Process terminated unexpectedly.
    error while loading initial content
    Launch command details:
    "C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.5.1\bin\adl.exe" -runtime
    "C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.5.1\runtimes\air\win"
    "C:\Documents and Settings\sudhansu_rana\Adobe Flash Builder 4\TestAir\bin-debug\TestAir-app.xml"
    "C:\Documents and Settings\sudhansu_rana\Adobe Flash Builder 4\TestAir\bin-debug"
    Thanks
    Sudhansu

    Update your XCode to 4.3.2
    Your question should be in developer forum
    Developer Forums

  • Problem with Flex Builder 4 Plugin and SpringSource 2.3.2.RELEASE

    I am getting following error while opening up a Flex project. The file icons are showing up correctly but then it is creating a stream of following errors.Any help is appreciated.
    Session Data
    eclipse.buildId=2.3.2.201003230009-RELEASE
    java.version=1.6.0_18
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
    Framework arguments:  -product com.springsource.sts.ide
    Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product com.springsource.sts.ide
    Exception Track Trace:
    java.lang.NoClassDefFoundError: com/adobe/flexide/editorcore/EditorUtility
    at com.adobe.flexbuilder.editorcore.editor.ToggleModeAction.selectionChanged(ToggleModeActio n.java:64)
    at org.eclipse.ui.internal.PluginAction.refreshEnablement(PluginAction.java:206)
    at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:277)
    at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:299)
    at org.eclipse.ui.internal.AbstractSelectionService.fireSelection(AbstractSelectionService.j ava:156)
    at org.eclipse.ui.internal.AbstractSelectionService$1.selectionChanged(AbstractSelectionServ ice.java:62)
    at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.runtime.Platform.run(Platform.java:888)
    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
    at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)
    at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2132)
    at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1160)
    at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1190)
    at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:228)
    at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:222)
    at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:389)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3910)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1287)

    I can reproduce the problem but for me it does not seem that it is caused by the SSL handshake because that one is already successfully finished at the moment of the ClassNotFoundException. Did you try the phenomenon with different browsers and/or the appletviewer too ? Maybe it is only a problem of the plugin class loader. How did you convert to Java 1.4 ? I always use a HTML template with an <applet> tag and then use htmlconverter from the JDK to convert it to the needed JRE.
    good luck - mad

Maybe you are looking for