DateField Component question

Hello.
I have a problem using the DateField trying to send it´s
value to a php form in order to send an email.
The problem is simple....to get the value of the DateField
into a text i used a code like this:
this.Data.DateField=DateField.text;
The result of this is: 14 Dec 2006....
What I need to do is to get the month data but not
abbreviated. I need to date text would be 14 December 2006.
How can I do this?
Thanks

heres some good stuff about datefields and the functions
http://livedocs.adobe.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?cont ext=Flash_MX_2004&file=00002381.html
my guess would be that the format doesn`t corespond with
whatever you are sending from php
you'll find the dateFormat function there

Similar Messages

  • Trying to focus in on a DateField component

    Has anyone ever had trouble sending keyboard focus to the
    DateField component? Try this: create a new Flash document and
    insert a TextInput component named textItem, a DateField component
    named dateItem and a ComboBox component named ComboItem. Then
    insert the following code:
    textItem.tabIndex=1;
    dateItem.tabIndex=2;
    comboItem.tabIndex=3;
    stop();
    Test the movie and try to tab over to the DateField component
    from the TextInput component. Why does the focus skip over the
    DateField? Is this something easy to fix, or are we going to have
    to wait and spend more $$$ for a new release from
    Adobe/Macromedia?

    Same here....
    Haven't seen a response from Adobe either. "Mum is the word"
    apparently.
    Also, finding the documentation to set a default value to be
    non-existant as well.
    What should be as easy as setting "instance.date = xxxx;"
    appears to have been obfuscated to the point of making this little
    component nigh unusable.
    Bah...not happy

  • How to customize a datefield component to visible only 40 days from today?

    In my project, I came into a situation like, I had a datefield component for which everyday it must show only 40 days from the current day and the remaining days should be unselectable. it can be in any SDK 3/4.
    Please somebody help me in logic.
    Thanks in advance

    read this.
    http://blog.flexexamples.com/2007/12/17/setting-selectable-ranges-in-the-flex-datefield-co ntrol/

  • DateField Component Wont Work

    Can someone please explain to me what I am doing wrong? I
    have a Flash file which has a datefield component in it that will
    not work. It is in a movieclip that is embedded in the main
    timeline.
    When I first put in in the movie clip and test it, it works.
    Then after a few uses of the movie it does not work. When I click
    on it the date chooser that pops up doesn;t work.
    What am I doing wrong?

    Hi,
    this is something I just learned myself: Put a combox in the
    library of your Movie A (it is not necessary to put it onto the
    stage). Usually it should work after that.

  • Flash MX2004 Loader Component Question

    Hi all,
    I have a question regarding the loader component that ships
    with Flash MX 2004. I am using the component to load .swf files. As
    far as I can tell, the component will not begin to play a .swf file
    until it is 100% loaded. Is this correct? If not, is there any way
    to make it play as it is downloading? This IS possible with the
    MovieClipLoader class but I currently have a complex application
    built using the loader component.
    If anyone has any suggestions, I would appreciate it.
    Additionally, I could extend the class if anyone can point me in
    the direction of what would need to be changed in the class.
    Thanks,
    John

    I'm only trying to interpret what that message is telling me in this response.  It seems to be indicating that you have some object in the library that you have named "calLoader" and assigned it a linkage ID of Loader (possibly by default) as well as another object in the library named myLoader that has the same linkage ID (possibly by default).
    If these two objects are the same component type, then you only need one of them in the library.  The different naming of them can be managed on the stage.

  • Dynamically add component question?

    Hi:
    Here is part of my code in short:
    public class TextInputWithAutoComplete extends TextInput
    private function addComp():void{
    list = new List();
    list.id = "autoCompleteList";
    list.x = 0;
    list.y = 20;
    list.addEventListener(MouseEvent.MOUSE_UP, handleMouseDown);
    parentDocument.addChild(autoCompleteList); OR addChild(autoCompleteList); //my question is here
    private function handleMouseDown():void{
    //TODO
    I realized that if I do addChild, I can't really see the dynamically added component, since flex did not reserve space for my List to display. So I do parentDocument.addChild, and then the component appears no problem. My question is since it's being added in the parentDocument, so it is suppose to be a component belong to parentDocument, so is that component still be able to call this handleMouseDown?
    From my experience, it's still able to, but which doesn't make sense to me.
    Can someone explain a little about why it can still work, or any better approach other than parentDocument.addChild
    Thanks.

    In Flex there is a lifecycle that represents the contract between the component and its parent.  See the chapters on creating custom components and the lifecycle methods createChildren, commitProperties, measure and updateDisplayList.
    Some components size to content like Containers.  When you add a child to a container it will measure the child and make room for it or add scrollbars if there isn't enough room.
    If you add a child to TextInput, it doesn't expect additional children so it will not make room for it.  You can subclass and override its measure and updateDisplayList methods to make room for an additional child.
    I would not recommend adding another interactive control to an interactive control since that will make managing focus and accessibility much harder.  It is better to group these in a container in most cases.
    The reason the mouse handler still gets called is because a handler can be on any object whether it is a child or sibling or parent and will be called by the object dispatching the event if the handler is listening to that object.  If you had attached the handler to "this" it would not get called when the List is not a child of "this".
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Code Structure / Component Question

    I'm new to Flex and trying to learn as much as I can on my own without help, but I've run into a question that I'm not finding an answer for.
    I've read about creating MXML components and understand that, as well as creating AS classes, that that makes sense too.
    I have code in the default package which displays the Datagrid component (MXML) but also has ActionScript code in the same source file to load the datagrid via PHP (HTTPService) as well as define what happens when cells are updated (sending data back to update the DB via PHP).
    This is all pretty much a self-contained "component" for manipulating data from a particular MySLQ table from this single datagrid.  I have the grid displayed on one tab of the tab navigator.
    My problem is that I'd like to create a similar datagrid on a separate tab which does the same thing for a different table.   I know this code needs to be separated and not in one MXML file, but I'm not finding how to either structure my project to do this, or else make each datagrid (along with the associated AS code) into a separate component.
    Would appreciate any help or examples you may have.
    Thanks,
    Gary

    Thanks for pointing me in this direction -- I had started that way, but got confused.  Here are the first few lines of my current code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                                            width="998" height="656" creationComplete="init()" layout="absolute">
              <mx:Script>
                        <![CDATA[
                                  import mx.controls.Alert;
                                  import mx.events.PropertyChangeEvent;
                                  import mx.events.CollectionEventKind;
                                  import mx.events.CollectionEvent;
                                  import mx.events.DataGridEvent;
                                  import mx.controls.TextInput;
                                  import mx.rpc.events.ResultEvent;
                                  import mx.collections.ArrayCollection;
                                  import com.adobe.serialization.json.JSON;
                                  import com.adobe.viewsource.ViewSource;
                                  [Bindable]
                                  private var callbackUrl:String;
    Naturally, my datagrid tag is dozens of lines below this:
    <mx:TabNavigator x="23" y="10" width="831" height="506">
    <mx:Canvas width="100%" height="100%" label="Learners">
    <mx:DataGrid id="dgData"
    x="27"
    y="19"
    width="778"
    Can you show me a quick example of how I'd put this together with the top tag as you described?
    Thanks again,
    Gary

  • Distributed Component question

    Hi,
    I've a question about the set-up/architecture of a project. Im thinking of an application which has like 2 screens which is a simple master detail setup. A list contains items of a certain type. Dependant of the type, a specific screen has to be shown with its details. As certain types are financial related and some are human resource related for  example i want a way to seperate them project wise.....This because when i want to fix something in the financial screens, i dont want to impact the human resource stuff with deployment. After reading some things, i got the impression that distributed components could work here. Then i could create a component which is deployed seperately of its main application and doesnt affect other components when a fix is needed. Im i on the right track here?
    Can anyone also point me to a tutorial of how to create a simple distributed component. All i could find was a ppt of a teched which i found quite complicated.
    much thanks & regards,
    Hugo

    Hi Hugo,
    I suggest you to go through componentization articles by Bertram.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/presentation%20-%20web%20dynpro%20component%20interface%20defintions%20in%20practice.pdf
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/readme%20-%20web%20dynpro%20component%20interface%20definitions%20in%20practice.pdf
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/web%20dynpro%20java%20for%20experts:%20Web%20Dynpro%20Component.pdf
    Regards, Anilkumar

  • Component question with textfield

    I'm creating a keyboard entry component for a touchscreen.
    When the user
    hits the enter button I want to change a textfield in a
    movieclip to the
    text they typed in. The movieclip is outside of the
    component. There maybe a
    screen with multiple text entry boxes. So what I want to do
    is pass in a
    textfield reference into the component using getter and
    setter functions.
    However I am having trouble. Here's an example of what I'm
    doing.
    //mcKeyboard is the component name on the timeline
    //tfDisplay is the textfield on the timeline with the text
    'help' in it
    mcKeyboard.tfEnter = tfDisplay;
    //When I click the enter button in the component, I have the
    script trace
    the text. Here is the enter button script
    trace(tfEnter.text);
    //this displays undefined
    Am I able to pass a textfield or movieclip or something like
    that into a
    component.
    Jeff

    You will have to break the data out of the cluster and present them to the 3d Graph a seperate arrays for X,Y,Z, and W where "W" is your measured values from the locations described by X,Y,Z.
    This thread shows how to plot readings in 3-space. The following image shows the data the original questioner wanted to plot.
    Have fun,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • AS 2.0 Loader component question

    I have a site that has a gallery with 40 images, takes a long
    time to load so I need to find the best way to correct. The files
    that load manually now are movieclips that play in 10 second frames
    in their own timeline with an alpha effect on each all the jpgs and
    other files are in the main fla which is huge because of this. I
    was going to use the loader component but I see you can only use
    for .jpgs and I can't put the effect on jpgs, other obvious way is
    using loadMovie but then I have to convert all mc's to separate
    swfs. Before I go that route is there another way to do this?
    rderf

    I have a site that has a gallery with 40 images, takes a long
    time to load so I need to find the best way to correct. The files
    that load manually now are movieclips that play in 10 second frames
    in their own timeline with an alpha effect on each all the jpgs and
    other files are in the main fla which is huge because of this. I
    was going to use the loader component but I see you can only use
    for .jpgs and I can't put the effect on jpgs, other obvious way is
    using loadMovie but then I have to convert all mc's to separate
    swfs. Before I go that route is there another way to do this?
    rderf

  • Loader Component Question

    Can I have two loader components in one flash file (my main web page)  I have a main loader for my pages to load into when the corresponding button is clicked.  I need to add a second one for a small .swf file of a interactive calendar.  So I guess I need another loader .  I tried to add another loader to my main flash page and it said something like this component is in use or has same name.  I looked in my library and changed the name of my other loader to myLoader and it is still giving this wierd error.  Is is possible to use the Loader component twice in one flash document?   I also don't have them in the first frame of my document because I have an animation that plays through first.

    I'm only trying to interpret what that message is telling me in this response.  It seems to be indicating that you have some object in the library that you have named "calLoader" and assigned it a linkage ID of Loader (possibly by default) as well as another object in the library named myLoader that has the same linkage ID (possibly by default).
    If these two objects are the same component type, then you only need one of them in the library.  The different naming of them can be managed on the stage.

  • HT202696 I hve Apple care on 1 device but the person at the apple store just talked about replacing fried ports and did not answer my broken glass or component questions and nothing in detail is actually posted so im afraid its yet another insurance scam

    I want to know what exactly Apple will fix on say my IPhone 6 plus. Like a dropped device with broken hardware or components or port issue, electrical broken glass etc.. I only have AppleCare on 1 device because I cant get straight answers about repair cost or if it will repair broken glass ,components  etc. The person at Apple just said it will fix ports and did not answer the other question about a real broken device or broken glass. 

    Actually that's not entirely accurate Csound1... If you purchased AppleCare+ it not only extends your warranty an extra year but it also now covers up to two accidental damages (water damage included). Now every scenario is different when you're talking phone damages so it's best to set up a reservation with the Genius Bar if something happens and they'll assess the damage. Either way, as long as you're covered with AppleCare you'll receive a deductible price on parts. Certain instances you may not have to pay anything which are usually things like faulty software, faulty buttons, etc.
    Hope this was helpful!

  • List component question

    Hello,
    I have flash cs4, and I am using a list component. I know how to open swf when somebody clicks on the list, but is there any way to tell the component to open a .pdf file on  a new window using the list component?
    thanks for your guidance
    Cheers.

    You just need to link to the pdf like you would link to any web page.  The code you use depends on the version of actionscript you are using...
    AS2:  getURL("http://www.yourdomain.com/your.pdf", "_blank");
    AS3: navigateToURL(new URLRequest("http://www.yourdomain.com/your.pdf"), "_blank");

  • Simple image component question

    I have to fix a flash file someone else made, and I need to use an image component, which I'm not familiar with.
    I just need a simple image that scales up, and then moves across the screen. I've got my image component, and tweened it to scale and then move, and it looks fine when I scrub the timeline, but when I test as a swf it doesn't do anything, it just sits there.
    Am I missing something?

    If its working on while dragging the timeline during in authoring and not working while playing the complied swf can mostly mean that u have attached a top command somehwere in ur code which is stopping the timeline from moving forward on playing the swf.Check for unwanted stop commands.

  • UIX dateField validation Question

    Hi,
    I am using a UIX <dateField> tag on my forms and I am having some trouble with the validation. Here is an example
    <dateField required="no" name="cberReceivedDt" model="${bindings.CberReceivedDt}" columns="37">
    <onSubmitValidater>
    <date dateStyle="long" pattern="dd-MMM-yyyy"/>
    </onSubmitValidater>
    </dateField>
    It works fine, except when a user enters a date that does not match the pattern of "dd-MMM-yyyy." The UIX properly detects that the date is invalid, but the error it displays is not correct. It says:
    'Value "01-Jan-111" is not a date formatted as ""'
    Is there a reason why the error message does not contain the proper format string? Is there an attribute that I must set so that the user sees something other than two quotes? Thanks very much in advance.
    John

    Hi,
    I am having the same problem where my error messages is appearing as Date xx/xx/xx in "" is not formatted as "".
    My UIX is
    <dateField name="dateNonProd"
    value="${uix.data.getWorkSlotDateTimes.NONPRODSTARTDATE}">
    <onSubmitValidater>
    <date
    pattern="dd-MMM-yyyy"/>
    </onSubmitValidater>
    How do I get the blanks filled in the error messages.
    Thanks

Maybe you are looking for