FORUM

AS3 Data picker Component

Home / Forum / Components Discussions / AS3 Data picker Component

  • New tags have been added for the new component AS3 Data picker Component
    #  /  posted on Feb 04, 2010
  • Hi all ,
    there is a Free Classic Date chooser in town
    try this http://code.google.com/p/as3-date-picker/


    #  /  posted on Mar 08, 2010
  • I have a question about usage. I bought this today on a whim to see how it would work in Flex. I thought I'd like this better than the Flex DateChooser and maybe would use it. I haven't used Flash with AS3 much, having done a lot of AS2 SWC components.

    The help file says: Follow these steps: 1 Copy the component to your library. 2 Copy the component files in the same directory where your project files are. 3 Drag the component from the library to the stage.

    I opened data picker as3 component cs3.fla in Flash CS4 and it runs fine. Then I created a new file, switched the library view to data picker as3 component cs3.fla and dragged mc_calendar to the stage. It does run. So, I guess I need to drag all the resources onto the stage.

    Is it really necessary to copy all the component files to to the project directory? If I use this in many projects, that would see tedious. And, I'm prone to modify the ActionScript so it would be hard to keep the versions the same. Is there a way to put these files one place and re-use them?

    Finally, in my original goal of using this in Flex, do you have any suggestions for how I should approach that?


    #  /  posted on Oct 01, 2010
  • Hi!

    Yeah, there are other ways to use it. Here's a tip:

    copy the swf file into your project, name it (in my example I'll use the dpas3cs3.swf nameing)

    load the swf file into your flex application using a SWFLoader and make a function that will be executed whenever the embedded swf is clicked


    Here is the script that defines the initNestedAppProps() function

    Hope this will help you out:) and sorry for my English... I just got home from work and I'm very tired...


    #  /  posted on Oct 01, 2010
  • It seems that my code sample didn't appear... so I will try to put them here:

    //code for the embed < mx:SWFLoader id="swfloader" source="dpas3cs3.swf" click="initNestedAppProps()" />

    < fx:Script> < ![CDATA[ import flash.net.LocalConnection;

    import mx.controls.Label;
    
    
        [Bindable]
        public var loadedSM:SystemManager;
    
        private function initNestedAppProps():void {
                // here you can call all the public methods of the swf
                // you will need to call the "calendar1" movieclip public methods
                /* here is an example for your code:  <br>    swfloader.content['calendar1'].publicFunctionName(parametersIfThereAny_BlankOtherwise); */
    
            label.text = "year: "+swfloader.content['calendar1'].getYear();
    
        }
    ]]>
    < /fx:Script>
    


    #  /  posted on Oct 02, 2010
  • Hil,
    Open source as3 date picker is updated check out
    google code page
    http://code.google.com/p/as3-date-picker/
    project site
    http://www.infogroupindia.com/blog/?p=454

    Thanks


    #  /  posted on Feb 16, 2011

Please login to post replies.