A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: dynamic text decrease / increase?

  1. #1
    Junior Member
    Join Date
    Jan 2007
    Posts
    6

    dynamic text decrease / increase?

    Problem solved..
    Tank You.
    Last edited by seners; 01-18-2011 at 08:17 PM.

  2. #2
    Junior Member
    Join Date
    Jan 2007
    Posts
    6
    Problem solved.
    Thank You..

  3. #3
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    It would be more help to the community to post the problem and its solution.
    As it is, it would be frustrating for someone using the search engine and landing on this thread.
    gparis

  4. #4
    Junior Member
    Join Date
    Jan 2007
    Posts
    6
    you're right, sorry.
    solution of the problem;

    myText.text = "5000";
    kutuText.text = "0";

    myText1 = myText.text;
    kutuText1 = kutuText.text;

    var num:Number=number(myText1);
    var kutunum:Number=number(kutuText1);


    Arttir.onRelease = function() {
    function topla () {
    num-=250;
    myText.text = num;
    kutunum+=250;
    kutuText.text = kutunum;
    }
    setTimeout(topla,0);
    };


    Azalt.onRelease = function() {
    function cikar () {
    num+=250;
    myText.text = num;
    kutunum-=250;
    kutuText.text = kutunum;
    }
    setTimeout(cikar,0);
    };


    file attached...

    File (FLA)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center