Please, Help to convert integer minutes to HH:mm format

Greetings,
I's trying to convert integer minutes (for example 150) to HH:mm format (so it'd be 2:30), but couldn't understand how it could be done... I've already looked through SimpleDateFormat with no effect :-( Just do not understand what to do...
If anyone already knows the sample code I'd very appreciated ^-)
Thanks much...

Can't you just execute the math yourself? It's pretty straightforward:
   public String getHourMinFormat(int totalmin){
       int hours = totalmin / 60;
       int min = totalmin % 60;
       return Integer.toString(hours).trim()+":"+Integer.toString(min).trim();
   }No fancy library method required.

Similar Messages

  • Please help me convert the SQL to HQL

    select
    count(*) as col_0_0_
    from
    edu.hr_people_all hrpeopleal0_
    left outer join
    edu.conditions_journal conditions1_
    on hrpeopleal0_.people_id=conditions1_.people_id
    and conditions1_.personal_number like '%'
    where
    hrpeopleal0_.status=11

    Hibernate version: 3
    HQL as I 've done
    FROM PMSProjectsORO pjt LEFT JOIN PMSChecklistORO pcl
    ON pjt.projectId = pcl.projectId order by
    pjt.projectCode ascHQL is probably incorrect.
    Try this:
    FROM
    PMSProjectsORO pjt
    LEFT JOIN
    PMSChecklistORO pcl
    ORDER BY
    pjt.projectCode asc>
    Original SQL for MSQL5:
    FROM PMSProject LEFT JOIN PMSCheckList ON
    PMSProject.PROJECT_ID = PMSCheckList.PROJECT_ID order
    by PMSProject.PROJECT_CODE desc
    Name and version of the database you are using:
    MYSQL 5
    Please help me convert the sql to hql since what i
    've done is throwing error like unexpected token...
    Please reply ASAPLet me know if that's better.
    %

  • Please Help! Converted word to pdf problems

    When I convert a 2 page word document into a pdf, the pdf turns into 4 pages. The whole document expands. Please help me fix this problem.
    Thank you so much!!!!

    Hello Deanna Tat
    Simply use 'Cute PDF writer 2.6' Freeware that comes along with Ghostscript Convertor. Download it from website.
    I am using it for past 5 years without any errors or problems, no matter how many text files are printed for conversions into PDF.
    I have used in all computers with no problems.
    It is easy, no adjustments required, and is hence user friendly.
    It is absolutely free stuff.
    Dinkar
    [email protected]

  • URGENT: please help to convert Tektronix TDS754C Labview driver 7.0 to 6.1

    Hello,
    Could someone please try to convert Labview 7.0 driver to a version 6.1?
    I attached Tektronix TDS 754C Labview driver 7.0 below.
    Or National Instruments, please provide me with Tektronix TDS754C Labview 6.1 driver.
    Thanks to everyone in advance,
    Al.
    Attachments:
    tktds7xx.zip ‏1732 KB

    Try this. The error was just because the functions are part of the LabVIEW distribution and had nothing to do with converting the driver.
    Attachments:
    tktds7xx_61.zip ‏1414 KB

  • Please help- problems converting .mov to .avi

    I'm using QuickTime Pro to convert my .mov to .avi and when I view the .avi movie, the first couple seconds is in fast-forward mode, then a couple seconds of slow motion, then it's normal for the rest of the movie.
    To see my steps, I used this link to help me convert: http://www.divx-digest.com/articles/articlemov2avi_quicktimepropage1.html
    I'd appreciate any help on this.
    euser

    quicktime Pro will do it, get it from the apple store (its just a key, cost $30), also ffmpegX (shareware) will do it
    sometimes you can find an application that will do it by using the quicktime libraries for free, just search a site like versiontracker

  • Needed help regarding converting  string to java.sql.Date format

    I have a a function which returns a calendar object. The date must be inserted to Oracle DB using java.sql.Date format.
    So i have converted the Calendar object to java.sql.Date format using the following code
    java.sql.Date publicationDate = new java.sql.Date(book.getPublicationDate().getTime().getTime());But while getting inserted into the DB it was in mm/dd/yyyy format whereas i wanted dd/mm/yyyy format
    Can any body please help out how to store the date in dd/mm/yyyy format ?

    Can u please explain this a bit
    This is my code
    public int addBook(List<Book> BookList) throws SQLException, ParseException{
              System.out.println("Hi there");
              Book book = new Book();
              BookDB bookDb = new BookDB();
              //listLength =      BookList.length;
              String bookId = null;
                   try{
                        DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
                        con  = DriverManager.getConnection("jdbc:oracle:thin:@10.123.79.195:1521:findb01","e115314", "e115314");
                        addBook = con.prepareStatement("insert into ABC_Book values(?,?,?,?,?,?,?)");
                        Iterator<Book> iterator = BookList.iterator();
                        while(iterator.hasNext()){
                             book = (Book)iterator.next();
                             System.out.println(book.getBookId());
                             addBook.setString(1,book.getBookId());
                             addBook.setString(2,book.getTitle());
                             addBook.setString(3,book.getAuthor());
                             addBook.setString(4,book.getPublisher());
                             System.out.println(book.getPublicationDate());
                             System.out.println("Before Date");
                             System.out.println("book.getPublicationDate().getTime()"+book.getPublicationDate().getTime());
                             java.sql.Date publicationDate = new java.sql.Date(book.getPublicationDate().getTime().getTime());
                             SimpleDateFormat formatter = new SimpleDateFormat("dd/mm/yyyy");
                             dateString = formatter.format(publicationDate);
                             System.out.println("Today is"+dateString);
                             java.sql.Date date = (java.sql.Date)formatter.parse(dateString);
                             System.out.println("date"+date);
                             //java.sql.Date publicationDate = (Date)book.getPublicationDate().getTime();
                             //System.out.println("Value of date is"+publicationDate);
                             System.out.println("After Date");
                             addBook.setDate(5,publicationDate);
                             addBook.setString(6,book.getCountry());
                             addBook.setString(7,book.getLanguage());
                             rs = addBook.executeQuery();
                             //con.commit();
                             rowCount = rowCount + rs.getRow();
                        return rowCount;
                   catch(SQLException se){
                        se.printStackTrace();
                   finally{
                        con.close();
                        System.out.println("After adding ");
              return 0;
         }

  • [PLEASE HELP!] Converting Flash (fla) to Animated Gif (gif) becomes pixelated!!!!

    Hey guys,
    Wondering if anyone can urgently help me please.
    I've got a FLA file making an animated banner.
    When I export it as an animated GIF, the background (which
    originally is a solid color) has either dots or crosses making up
    the color.
    I've tried different settings such as dithering, changing the
    palette but have had no luck. And I'm using one of the 256 colors.
    Using a FLA that did have a good solid bg converted animated
    GIF, I tried to export that one as well and it comes up with the
    same problem.
    So that means it's not the color/fla that is wrong, but is my
    exporting to animated gif method. Any help please?
    Attached is how the background turns out:
    http://img403.imageshack.us/my.php?image=86993715ss7.gif
    http://img140.imageshack.us/my.php?image=bg2wf9.png

    And also when I try the publish method, the text either
    produces some whacked up image or just see a sort of white box
    shape around the original text.

  • Please Help with Converting PDF document to Word Document

    I have downloaded our PDF document to be converted to a word document --- it did not work correctly--we need help with this
    Scott Munsen
    Abbott House -- Mitchell, SD

    Good day Scott,
    I received your document via our File Conversion Issue form.  The root of the problem you're facing is the quality of the scan.  I'm not sure if you were starting with a poor quality hard-copy or simply low DPI settings on your scanner, but the reason the results you received were so different than the PDF was the quality of the input.
    If you're hard copy looks clearer than the PDF file you created, I would suggest increasing the resolution settings on your scanner.
    Please let me know if you have any questions.
    Kind regards,
    David

  • I need help to convert hours,minutes and seconds to seconds.

    Hi, I need help with the code on how to convert the hours,minutes and seconds to seconds. I don't know which formula to use so that I can get the results in total number of seconds. Thanks.

    Jos ("when in doubt: parenthesize correctly")Bracist.You're more right than you'd known: last week I climbed over a safety
    fence (which I wasn't supposed to do of course) to adjust the position
    of an optical measurement device we installed in a huge production
    machine in a factory. I stepped on some sort of hose; the end of that
    hose broke loose and hit me straight in the middle of my lower jaw. My
    front teeth feel wiggly now and my molars on the left of my lower jaw are
    not what they used to be. This Wednesday I get that all fixed at some
    dental clinic. Keep your fingers crossed because me+dentists == war.
    My tongue continuously keeps on reporting craters and disaster ;-)
    Jos, how's it going? Besides a possible loss of some teeth, I'm fine ;-)
    My Spring/Hibernate journey continues. I'm trying out Hibernate 3.2
    annotations and the Ant tools. So far, so good.Good to hear. At the moment I'm putting my teeth (sic) in that darn snmp
    stuff which simply refuses to work the way I want it and besides that I'm
    heavily involved in some of that SAP stuff. Spring is not in the vicinity for
    me in the next couple of months sadly enough.
    kind regards,
    Jos

  • Please Help (Date Converting)

    I am writing a program about renting vehicle. I have a small problem with converting the day. Let me explain step by step:
    1) A pop up window asks "how many week to rent the vehicle", and the user enters "2".
    2) Another pop up window asks "how many day to rent the vehicle", and the user enters "3".
    3) the program will read number "2" and "3" , then convert to millisecond. Let's say "date1 = 2 * (7 * 86400000)" and "date2 = 3 * 86400000".
    4) "date1" and date2" will be added together. Let's say "date3 = date1 + date2". The "date3" now is in millisecond.
    5) Convert "date3" millisecond back to date.
    6) Add "date3" date to the current day on operating system.
    7) Return the result. For example: 2 weeks and 3 days is 17 days total to rent. If I rent the vehicle on October 22th, then my return date would be November 4th. "November 4th" is what I want to see on my print out.
    I got to step 4 and stuck with converting back to the date from millisecond. Please tell me what I should do. Thanks a lot.
    rentWeek = Integer.parseInt(JOptionPane.showInputDialog("Enter number of week to rent:"));
    date1 = rentWeek * (7 * 86400000);
    rentDay = Integer.parseInt(JOptionPane.showInputDialog("Enter number of day to rent:"));
    date2 = rentDay * 86400000;
    date3 = date1 + date2;
    //How do I convert back to date from here
    double price = 0;
    Date todaysDate;
    todaysDate = new Date(); //today's date
    outputMessage ="The customer information is: " + all.toString()+
    "\n******************************************************" +
    "\nThe information of vehicle you rent is: " + outputVehicle +
    "\nThe rate is: " + price +
    "\nRental day: " + todaysDate +
    "\nReturn day: " + date3;
    JOptionPane.showMessageDialog(null, outputMessage);

    Instantiate a Calendar object ane use Calendar.setTimeInMillis(long milliseconds) to set it to your computed field.
    You would be better off using the Calendar.add() and other methods to do date arithmetic. These automatically handle such things as time zone and DST changes, Leap Year, etc.

  • PLEASE HELP!  Converting numbers into real words

    I am faced with a problem. I need to create a prorgram that will convert a number ex. 156 into the word "one hundred fiftysix" This program will need to handle numbers up to 999 999 999.
    If someone has a program similar to this or is willing to assist a newbie programmer, your assistance would be appreciated.
    Also source code is preffered, prefferbly with c as the console.
    Thanks again

    Here is my most up to date code
    I also forwarded you a copy of my code
    import hsa.Console;
    public class ConvertingWordsToNumbers
    private static int convertingFromOneToNineteen (String numberString)
    String oneToNineteenInWords [] = {"", "one ", "two ", "three ", "four ", "five ", "six ", "seven ",
    "eight ", "nine ", "ten ", "eleven ", "twelve ", "thirteen ", "fourteen ", "fifteen ",
    "sixteen ", "seventeen ", "eighteen ", "nineteen "};
    int oneToNineteenInNumbers [] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19};
    int total = 0;
    //Checking for each word and adding it to each total
    for (int pos = 1 ; pos <= oneToNineteenInWords.length ; pos++)
    if (numberString.indexOf (oneToNineteenInWords [pos]) >= 0)
    total += oneToNineteenInNumbers [pos];
    numberString = numberString.substring ((numberString.indexOf (oneToNineteenInWords [pos])));
    return total;
    return total;
    private static int convertingFromTwentyToNinety (String numberString)
    String twentyToNinetyInWords [] = {"", "", "twenty", "thirty", "fourty", "fifty", "sixty", "seventy",
    "eighty", "ninety"};
    int twentyToNinetyInNumbers [] = {0, 0, 20, 30, 40, 50, 60, 70, 80, 90};
    int total = 0;
    //Checking for each word and adding it to each total
    for (int pos = 1 ; pos <= twentyToNinetyInWords.length ; pos++)
    if (numberString.indexOf (twentyToNinetyInWords [pos]) >= 0)
    total += twentyToNinetyInNumbers [pos];
    numberString = numberString.substring ((numberString.indexOf (twentyToNinetyInWords [pos])));
    return total;
    return total;
    public static void main (String [] args)
    Console c = new Console ("ConvertingWordsToNumbers");
    //Variable Declaration
    String numberString, millions, thousands;
    String keyWords [] = {"million", "thousand"};
    //User Input
    c.println ("Please enter the number (in words) that you wish to convert: ");
    numberString = c.readLine ();
    numberString = numberString.toLowerCase ();
    //Sectioning the millions and thousands
    if (numberString.indexOf (keyWords [0]) > 0)
    millions = numberString.substring (0, (numberString.indexOf (keyWords [0])));
    c.println (millions);
    c.println (convertingFromOneToNineteen (millions) + convertingFromTwentyToNinety (millions));
    if (numberString.lastIndexOf (keyWords [1]) > 0)
    thousands = numberString.substring ((numberString.indexOf (keyWords [0]) + 8),
    (numberString.indexOf (keyWords [1])));
    c.println (thousands);
    c.println (convertingFromOneToNineteen (thousands) + convertingFromTwentyToNinety (thousands));
    else if (numberString.lastIndexOf (keyWords [1]) > 0)
    thousands = numberString.substring (0, (numberString.indexOf (keyWords [1])));
    } // main method
    } // ConvertingWordsToNumbers class
    thanks again

  • Please help.  Exporting 37 minute movie and the video is stuck

    I'm creating my annual year in review trivia contest for a party we're having this weekend. I've done lots of importing, editing, questions, sounds, etc. I exported the video using the "expert" settings, to apple TV. About 8 minutes into it, it locks up on a video clip (i.e. a still frame look) but the audio keeps going as it should. But the video just hangs.
    I'm not sure if this is related, but I was downloading a bunch of stuff off youtube and it was saving in a .flv format. Early on I was converting these to another format to work with the programs. But then I found that the .flv format would import straight into imovie and I could see the clips and edit them just fine. Now I'm wondering if somehow these flv clips are causing a hiccup in the export process?
    I've already edited everything so I'd really like to avoid re-importing these bad clips again. If I have to do that I'll probably throw in the towel as it will be too much work to duplicate.
    Is there a way around this problem?
    Thanks much.

    Beverly,
    Thanks much for the note. I think maybe you were responding to my other post about chapters rather than this post about the video sticking? Not sure.
    Since making this post I experimented with deleting the video file that was the one getting "stuck" on the converted video. Since deleting that video, the movie will publish correctly. So I think I fixed that one. Must have had a corrupt file or something.
    Since that other post about chapter markers I've imported the movie to IDVD, used IDVD to generate a DVD folder, then used handbrake to convert it. That seems to be working though I think there should be a quicker way to do this using only imovie HD.
    Your idea is one I hadn't thought of....regardless of which problem you are addressing (this post about the video being stuck, or my other post about chapter markers), I'm not sure how this resolves either problem though. Sorry if I'm missing the obvious.

  • Please help me convert format from MP4 to WAV

    I need help converting MP4 files to WAV . I purchased songs on ITunesbut can't record them to a CD I can use.

    http://support.apple.com/kb/HT1550
    Regards.

  • PLEASE HELP: movies converted to Mpeg-4 files won't sync to ipod

    hi,
    i created some movies in avi format, used quicktime to convert to mpeg-4 files, pulled them into itunes and they play fine. however, when i try to sync/transfer them to my ipod, it won't let me. i have taken all symbols except for alpha/numerical out of the file names, and it makes no difference. ANY help would be appreciated.
    thanks...
      Windows XP  

    Just because they are in mp4 format does not mean they are iPod compatible.
    Files must conform to these standards:
    H.264 video, up to 1.5 Mbps, 640 by 480 pixels, 30 frames per sec., Low-Complexity version of the H.264 Baseline Profile with AAC-LC audio up to 160 Kbps, 48 kHz, stereo audio in .m4v, .mp4, and .mov file formats; H.264 video, up to 768 Kbps, 320 by 240 pixels, 30 frames per sec., Baseline Profile up to Level 1.3 with AAC-LC audio up to 160 Kbps, 48 kHz, stereo audio in .m4v, .mp4, and .mov file formats; MPEG-4 video, up to 2.5 Mbps, 640 by 480 pixels, 30 frames per sec., Simple Profile with AAC-LC audio up to 160 Kbps, 48 kHz, stereo audio in .m4v, .mp4, and .mov file formats

  • Please, HELP to convert code from AS2 to AS3!!!

    there is source code from paint application, thank to human who will convert this code, it's codeimportant for us.
    stop();
    var arrSloy:Array = new Array();
    //Initial
    //OnMove
    _root.onMouseMove = function() {
              if (checkPole() && onTool) {
                        Mouse.hide();
                        _root.kist._visible = true;
                        _root.eras._visible = true;
                        _root.pen._visible = true;
                        _root.line._visible = true;
              } else {
                        Mouse.show();
                        _root.kist._visible = false;
                        _root.eras._visible = false;
                        _root.pen._visible = false;
                        _root.line._visible = false;
              updateAfterEvent();
    //OnMove
    //New
    _root.panelMane.butNew.onRelease = function() {
              _root.newClip1.removeMovieClip();
              _root.clipMask.removeMovieClip();
              onTool = false;
              Mouse.show();
              _root.pen.removeMovieClip();
              _root.line.removeMovieClip();
              _root.gotoAndStop("newImg1");
    _global.XO = null;
    _global.YO = null;
    _global.WO = null;
    _global.HO = null;
    //creatNewPalitra
    function creatNewPalitra(color:String, w:Number, h:Number) {
              XO = 120;
              YO = 130;
              WO = w;
              HO = h;
              gotoAndStop(51);
              _root.createEmptyMovieClip("newClip1",0);
              newClip1.lineStyle(0,"0xFFFFFF");
              newClip1.beginFill(color);
              newClip1.moveTo(XO,YO);
              newClip1.lineTo(XO+w,YO);
              newClip1.lineTo(XO+w,YO+h);
              newClip1.lineTo(XO,YO+h);
              newClip1.lineTo(XO,YO);
              newClip1.endFill();
              _root.createEmptyMovieClip("clipMask",1);
              clipMask.lineStyle(0,"0xFFFFFF");
              clipMask.beginFill("0xFFFFFF");
              clipMask.moveTo(XO,YO);
              clipMask.lineTo(XO+w,YO);
              clipMask.lineTo(XO+w,YO+h);
              clipMask.lineTo(XO,YO+h);
              clipMask.lineTo(XO,YO);
              clipMask.endFill();
              newClip1.setMask(clipMask);
    function checkPole() {
              if (WO == null) {
                        return false;
              if ((_xmouse>=XO && _xmouse<=XO+WO) && (_ymouse>=YO && _ymouse<=YO+HO)) {
                        return true;
              } else {
                        return false;
    //New
    _root.panelTool.butCursor.onRelease = function() {
              onTool = false;
              Mouse.show();
              _root.kist.removeMovieClip();
              _root.pen.removeMovieClip();
              _root.line.removeMovieClip();
    //PEN
    creatClip = 10;
    _root.panelTool.butPen.onRelease = function() {
              onTool = true;
              _root.attachMovie("pensil","pen",1000000);
              Mouse.hide();
              _root.pen.startDrag(true);
              function drawPen() {
                        creatClip++;
                        lineSize = _root.panelProperties.poleSizeLine.text;
                        lineColor = _root.panelProperties.poleColorLine.text;
                        lineAlpha = _root.panelProperties.poleAlphaLine.text;
                        clip = _root.newClip1.createEmptyMovieClip("newClip"+creatClip, creatClip);
                        arrSloy.push(clip);
              _root.pen.onMouseDown = function() {
                        if (checkPole()) {
                                  drawPen();
                                  pen_draw_flag = true;
                                  clip.lineStyle(lineSize,lineColor,lineAlpha);
                                  clip.moveTo(this._x,this._y);
              _root.pen.onMouseUp = function():Void  {
                        pen_draw_flag = false;
              _root.pen.onMouseMove = function():Void  {
                        if (pen_draw_flag) {
                                  if (checkPole()) {
                                            clip.lineTo(this._x,this._y);
                                  updateAfterEvent();
    //BRUSH
    _root.panelTool.butkist.onPress = function() {
              onTool = true;
              _root.attachMovie("kister","kist",1000000);
              Mouse.hide();
              _root.kist.startDrag(true);
              function drawKist() {
                        creatClip++;
                        lineSize = _root.panelProperties.poleSizeLine.text;
                        lineColor = _root.panelProperties.poleFill.text;
                        lineAlpha = _root.panelProperties.poleAlphaLine.text;
                        clip = _root.newClip1.createEmptyMovieClip("newClip"+creatClip, creatClip);
                        arrSloy.push(clip);
              _root.kist.onMouseDown = function() {
                        if (checkPole()) {
                                  drawKist();
                                  kist_draw_flag = true;
                                  clip.lineStyle(lineSize,lineColor,lineAlpha);
                                  clip.moveTo(this._x,this._y);
              _root.kist.onMouseUp = function():Void  {
                        kist_draw_flag = false;
              _root.kist.onMouseMove = function():Void  {
                        if (kist_draw_flag) {
                                  if (checkPole()) {
                                            clip.lineTo(this._x,this._y);
                                  updateAfterEvent();
    //LINE
    _root.panelTool.butLiner.onRelease = function() {
              onTool = true;
              _root.attachMovie("liner","line",1000000);
              _root.line.startDrag(true);
              Mouse.hide();
              function drawLine() {
                        creatClip++;
                        lineSize = _root.panelProperties.poleSizeLine.text;
                        lineColor = _root.panelProperties.poleColorLine.text;
                        lineAlpha = _root.panelProperties.poleAlphaLine.text;
                        clip = _root.newClip1.createEmptyMovieClip("newClip"+creatClip, creatClip);
                        arrSloy.push(clip);
                        thisx = thisy=null;
              _root.line.onMouseDown = function() {
                        if (checkPole()) {
                                  drawLine();
                                  line_draw_flag = true;
                                  thisx = this._x;
                                  thisy = this._y;
              _root.line.onMouseUp = function():Void  {
                        line_draw_flag = false;
              _root.line.onMouseMove = function():Void  {
                        if (line_draw_flag) {
                                  if (checkPole()) {
                                            clip.clear();
                                            clip.lineStyle(lineSize,lineColor,lineAlpha);
                                            clip.moveTo(thisx,thisy);
                                            clip.lineTo(this._x,this._y);
                                  updateAfterEvent();
    //ERASER
    _root.panelTool.butEras.onPress = function() {
              onTool = true;
              _root.attachMovie("eraser","eras",1000000);
              Mouse.hide();
              _root.eras.startDrag(true);
              function drawEras() {
                        creatClip++;
                        lineSize = _root.panelProperties.poleSizeLine.text;
                        lineColor = "0xFFFFFF";
                        lineAlpha = "100";
                        clip = _root.newClip1.createEmptyMovieClip("newClip"+creatClip, creatClip);
                        arrSloy.push(clip);
              _root.eras.onMouseDown = function() {
                        if (checkPole()) {
                                  drawEras();
                                  eras_draw_flag = true;
                                  clip.lineStyle(lineSize,lineColor,lineAlpha);
                                  clip.moveTo(this._x,this._y);
              _root.eras.onMouseUp = function():Void  {
                        eras_draw_flag = false;
              _root.eras.onMouseMove = function():Void  {
                        if (eras_draw_flag) {
                                  if (checkPole()) {
                                            clip.lineTo(this._x,this._y);
                                  updateAfterEvent();
    //CURV
    _root.panelTool.butCurv.onRelease = function() {
              onTool = true;
              _root.attachMovie("liner","line",1000000);
              _root.line.startDrag(true);
              Mouse.hide();
              anchor1X = anchor2X=controlX=null;
              anchor1Y = anchor2Y=controlY=null;
              onClic = 0;
              function drawCurv() {
                        creatClip++;
                        lineSize = _root.panelProperties.poleSizeLine.text;
                        lineColor = _root.panelProperties.poleColorLine.text;
                        lineAlpha = _root.panelProperties.poleAlphaLine.text;
                        clip = _root.newClip1.createEmptyMovieClip("newClip"+creatClip, creatClip);
                        arrSloy.push(clip);
              _root.line.onMouseDown = function() {
                        if (onClic == 0) {
                                  if (checkPole()) {
                                            drawCurv();
                                            anchor1X = this._x;
                                            anchor1Y = this._y;
                                            onClic = 1;
                                            _root.attachMovie("point","point1",1000001);
                                            point1._x = anchor1X;
                                            point1._y = anchor1Y;
                        } else if (onClic == 1) {
                                  if (checkPole()) {
                                            anchor2X = this._x;
                                            anchor2Y = this._y;
                                            onClic = 2;
                                            _root.attachMovie("point","point2",1000002);
                                            point2._x = anchor2X;
                                            point2._y = anchor2Y;
                        } else if (onClic == 2) {
                                  if (checkPole()) {
                                            controlX = this._x;
                                            controlY = this._y;
                                            onClic = 0;
                                            curv_draw_flag = true;
                                            point1.removeMovieClip();
                                            point2.removeMovieClip();
                                            clip.lineStyle(lineSize,lineColor,lineAlpha);
                                            clip.moveTo(anchor1X,anchor1Y);
                                            clip.curveTo(this._x,this._y,anchor2X,anchor2Y);
              _root.line.onMouseUp = function():Void  {
                        curv_draw_flag = false;
              _root.line.onMouseMove = function():Void  {
                        if (curv_draw_flag) {
                                  if (checkPole()) {
                                            clip.clear();
                                            clip.lineStyle(lineSize,lineColor,lineAlpha);
                                            clip.moveTo(anchor1X,anchor1Y);
                                            clip.curveTo(this._x,this._y,anchor2X,anchor2Y);
                                  updateAfterEvent();
    //STAR
    _root.panelTool.butStar.onRelease = function() {
              onTool = true;
              _root.attachMovie("liner","line",1000000);
              Mouse.hide();
              _root.line.startDrag(true);
              function drawStar() {
                        creatClip++;
                        lineSize = _root.panelProperties.poleSizeLine.text;
                        lineColor = _root.panelProperties.poleColorLine.text;
                        lineAlpha = _root.panelProperties.poleAlphaLine.text;
                        clip = _root.newClip1.createEmptyMovieClip("newClip"+creatClip, creatClip);
                        arrSloy.push(clip);
              thisx = thisy=null;
              _root.line.onMouseDown = function() {
                        if (checkPole()) {
                                  drawStar();
                                  star_draw_flag = true;
                                  clip.lineStyle(lineSize,lineColor,lineAlpha);
                                  thisx = this._x;
                                  thisy = this._y;
                                  clip.moveTo(thisx,thisy);
              _root.line.onMouseUp = function():Void  {
                        star_draw_flag = false;
              _root.line.onMouseMove = function():Void  {
                        if (star_draw_flag) {
                                  if (checkPole()) {
                                            clip.moveTo(thisx,thisy);
                                            clip.lineTo(this._x,this._y);
                                  updateAfterEvent();
    //KVADRAT
    _root.panelTool.butRecttangle.onRelease = function() {
              onTool = true;
              _root.attachMovie("liner","line",1000000);
              _root.line.startDrag(true);
              Mouse.hide();
              function drawRecttangle() {
                        creatClip++;
                        lineSize = _root.panelProperties.poleSizeLine.text;
                        lineColor = _root.panelProperties.poleColorLine.text;
                        lineAlpha = _root.panelProperties.poleAlphaLine.text;
                        fillColor = _root.panelProperties.poleFill.text;
                        clip = _root.newClip1.createEmptyMovieClip("newClip"+creatClip, creatClip);
                        arrSloy.push(clip);
                        thisx = thisy=null;
              _root.line.onMouseDown = function() {
                        if (checkPole()) {
                                  drawRecttangle();
                                  kvadrat_draw_flag = true;
                                  thisx = this._x;
                                  thisy = this._y;
              _root.line.onMouseUp = function():Void  {
                        kvadrat_draw_flag = false;
              _root.line.onMouseMove = function():Void  {
                        if (kvadrat_draw_flag) {
                                  if (checkPole()) {
                                            clip.clear();
                                            clip.lineStyle(lineSize,lineColor,lineAlpha);
                                            clip.beginFill(fillColor,lineAlpha);
                                            clip.moveTo(thisx,thisy);
                                            clip.lineTo(this._x,thisy);
                                            clip.lineTo(this._x,this._y);
                                            clip.lineTo(thisx,this._y);
                                            clip.lineTo(thisx,thisy);
                                            clip.endFill();
                                  updateAfterEvent();
    //Clear
    _root.panelMane.butClear.onRelease = function() {
              for (a=0; a<arrSloy.length; a++) {
                        clip = arrSloy[a];
                        clip.removeMovieClip();
                        delete arrSloy[a];
    //Back
    _root.panelMane.butBack.onRelease = function() {
              i = arrSloy.length-1;
              clip = arrSloy[i];
              clip.removeMovieClip();
              arrSloy.pop();
    Thank you very much!!!

    Zhanbolat,
    In theory, conversion of this code is not difficult, especially because it is clear what the logic is designed to do. The issue is that you will not have an expected result once only this code is converted in isolation. This puppy uses some other objects that are written in AS2 including entities in the FLA library.
    In short, it looks like this application needs a total overhaul at every level in order for it to properly function as an AS3 program.
    With that said, although this is, again, not a difficult task, it is unlikely to find someone to do it for free. You may have a better luck if you start conversion yourself and post focused questions as you go.

Maybe you are looking for

  • How do I create a start-up disk for Lion

    I would like to resize the Boot Camp partition on my new iMac running Lion 10.7.2.  To do that, using iPartition, I need to boot the system from another drive.  Ideally I'd like to use a USB flash drive or a DVD as the alternative boot drive.  Obviou

  • ZOMG PLEASE HELP! - ColorMatrixFilter - How to set a SPECIFIC HLS to a greyscale png

    I am able to use the color matrix filter to change the pngs that I am loading dynamicly. Thing is, I can't seem to figure out how to apply a SPECIFIC hue, saturation and luminance. Basically I can successfully modify my grey scale png to all sorts of

  • 10.6.5 Update vs 10.6.5 Update (Combo)

    I downloaded the 10.6.5 Update but I just realize there's a 10.6.5 Update (Combo). Are they the same? Do I need or Should I download the Combo? Is the Combo an update to the Update? Please help.

  • OBIA and OBIEE implementation requirements and Questions

    Hi, I am looking for a documentation, which could give me some questions to implement OBIA and OBIEE. Do we have any documentation like this which could give customer a basic idea about OBIEE and OBIA and what it takes for them to implement them. Bas

  • Songs not found

    what does it mean when a pop up box appears with the following message: "...some of the items in the itunes library were not copied to the ipod because they could not be found"???? The songs are in my library!! How can I fix this?