Posts Tagged AS3

Free AS3 Date chooser/Date Picker Component v4

PROJECT UNDER MAINTENANCE

Hi all,

New Ver­sion of AS3 Date Chooser Released.

This movie requires Flash Player 9

you can cus­tomize lot more things in it,

  1. Import Date Chooser class and event class
  2. import nid.utils.dateChooser.DateChooser;
    import nid.events.calendarEvent;
  3. Cus­tomize cal­en­dar icon dynamically.
  4. [Embed(source = "../asset/20x20_light_blue.png")]
         private var icon:Class;
  5. Dynamic Date Chooser construction
  6. var dateChooser:DateChooser = new DateChooser();
  7. Set cal­en­dar icon
  8. dateChooser.icon = new icon();
  9. Set Week Start on Mon­day or Sunday
  10. dateChooser.WeekStart = "sunday";
  11. Set Month Names
  12. dateChooser.Months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
  13. Set Date Format
  14. dateChooser.dateFormat = "D/M/Y"; //D,M,Y all combinations are valid
  15. Set sys­tem font
  16. dateChooser.font = "Tahoma";
  17. Set embed font
  18. [Embed(source = "../asset/tahoma.ttf", fontWeight= "normal", fontFamily = "Tahoma")]
        protected static var Tahoma:Class;
    
    [Embed(source = "../asset/tahomaBold.ttf",  fontWeight= "bold", fontFamily = "Tahoma")]
        protected static var TahomaBold:Class;
    
    dateChooser.embedFonts = true;
    dateChooser.font = "Tahoma";
  19. Add Date Chooser to stage
  20. addChild(dateChooser);
  21. Date Chooser Event
  22. dateChooser.addEventListener(calendarEvent.CHANGE, getdate);
    private function getdate(e:calendarEvent):void {
    	trace("Date:" + e.selectedDate);
    }
  23. every­thing id dynamic :) you can sim­ply change any­thing from code.

i’m behind the doc­u­men­ta­tion of this open source project

stay tuned and enjoy

DOWNLOAD SOURCE FILE: AS3-Date-Chooser-v4 (602)

DOWNLOAD SWC FILE : AS3-DateChooser-SWC file (383)

DOWNLOAD EXAMPLE FILE : AS3-DateChooser-example (447)

GOOGLE PROJECT PAGE : HERE

VN:F [1.9.3_1094]
Rat­ing: 5.0/5 (1 vote cast)
VN:F [1.9.3_1094]
Rat­ing: +1 (from 1 vote)

, , , ,

25 Comments

Public,Private,Protected Functions in AS3

Public,Private,Protected Functions in AS3

Hi all in this tuto­r­ial you can under­stand dif­fer­ence between pub­lic , pri­vate and pro­tected func­tion in AS3, in AS3 only pub­lic func­tions can call from exter­nal swf files

Read the rest of this entry »

VN:F [1.9.3_1094]
Rat­ing: 5.0/5 (1 vote cast)
VN:F [1.9.3_1094]
Rat­ing: +1 (from 1 vote)

, , ,

No Comments

How to Make a Efficient Flash AS3 SWF content Loader[Preloader]

Very effi­cient Loader Cod­ing Tutorial

the code using here is very clean , sim­ple and error less . you can load exter­nal swf file and call func­tion in that swf file


Read the rest of this entry »

VN:F [1.9.3_1094]
Rat­ing: 5.0/5 (1 vote cast)
VN:F [1.9.3_1094]
Rat­ing: +1 (from 1 vote)

, , , , , , ,

13 Comments