A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Help with this code

  1. #1
    Junior Member
    Join Date
    Mar 2011
    Posts
    2

    Help with this code

    Hi to all flashkit members!

    I hope someone can help me. I'm doing a presentation in flash and action script 2. Within this presentation is a chart that displays load values from an external XML file. The problem is that I got this code on a website and would like to change something.

    I would like not shown the <name_value2> in the chart, the value shown in parentheses. I tried for weeks circling the code but I cann´t do it. "Anyone can help me or at least guide me? I attach AS2 files and SWF with XML (source(1).zip)

    After modifying the code, I can´nt remove the remaining number in parentheses. I need only to display the percentage ..I attach a image (remove.jpg)
    I don´t know how to disappear just the parentheses. I´m to leave it as impossible..I'm very lost!

    Thanks in advance.
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    you havent given us much to work with?

    a .fla?

    how about the name of the text Field you are sending the text too?

    I see two .as files..and a .swf no .fla

    but anyways..

    its in your chart.as file:

    labelWedgeClip["valor" + i].text = dataName[i] + " (" + beautifyNumber(dataValue[i]) + ")" ;

    see the hard coded "(" & ")" characters..


    remove them or the whole variable too..whatever you need.

  3. #3
    Junior Member
    Join Date
    Mar 2011
    Posts
    2
    WOWOWOWOWW!!!

    You´re my HERO!!

    This works perfectly!! After being with this project for 6 months, I would leave it as impossible. Your help has been fantastic! As we say here in Spain, I take my hat off...

    Many thanks again for helping me so effectively!!!

    Thanks thanks thanks!!!

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