Trying to make a graph that actually works

I’m trying to make a graph for my boss that displays
the number of tickets each staff member have completed.
I found this tutorial:
http://www.flashkit.com/tutorials/Dynamic_Content/Creating-Zoubin_Z-61/index.php
However when I finished it, I wanted to create a dynamic text
box that would display the value for each graph when it said that
the code used was written in Flash 4, so it can’t do that. :(
So I started rebuilding the tutorial in flash 9 but then
realized that the old code wouldn’t work with the new
version!! ARGH!!
So basically I’m a bit stuck.
I’m a beginner to intermediate flash user. But
don’t have much knowledge of the coding side of things.
The main part I need converted is this:
quote:
Set Variable: "a"=1
Loop While (A<29)
Set Variable: "bar"&a = Random (100)
Set Variable: "a" = a+1
End Loop
Set Variable: "a"=1
Loop While (a<29)
Begin Tell Target ("var"&a)
Goto and Stop (Eval("_level0/:bar"&../:a))
End Tell Target
Set Variable: "a" = a+1
End Loop
Which was written for version 4, but needs to work with the
latest which is 9 (?).
All I know so far is that, the Set Variable, has been
replaced with LoadVariable for the new version. Is that right?
I’ve been stressing over this for hours last night and
this morning, trying all different methods from forums and tutorial
sites, but nothing is working. So as a last resort I’m
reaching out for help from the experts.
Thanks in advance!!

I've been messing with your graph all day and I'm having a
lot of fun just playing with the code
It's nice to see some code made especially for this purpose.
Really clears things up.
So thanks again clbeech!
If you don't mind, I've got 3 more questions, if you've got
the spare time to look:
Screenshot
of what I've done so far
Here is the
modified action script:
quote:
stop();
var chartScale = 300; //max scale number
var xml = new XML();
xml.ignoreWhite=true;
xml.onLoad = function() {
date_txt.text = updated;
var xpos =graph._width /
(this.firstChild.childNodes.length+1);
for(var i=0; i<this.firstChild.childNodes.length; i++) {
graph.attachMovie('bar','bar'+i, i, {_y:xpos*(i+0),
_x:100});
graph['bar'+i].name_txt.text = this.firstChild.childNodes
.attributes.staff;
graph['bar'+i].num_txt.text =
this.firstChild.childNodes.attributes.tickets;
graph['bar'+i].imp_txt.text = this.firstChild.childNodes
.attributes.improvement;
var pct =
Number(this.firstChild.childNodes.attributes.tickets) /
chartScale * 200;
graph['bar'+i].bar_bg._yscale = pct;
xml.load('graphData.xml');
And this is the
modified XML data:
quote:
<?xml version="1.0" encoding="ISO-8859-1"?>
<graphdata>
<data staff="david" tickets="300" improvement="12"/>
<data staff="trent" tickets="267" improvement="9"/>
<data staff="andrew" tickets="250" improvement="14"/>
<data staff="nathan" tickets="2" improvement="22"/>
<data staff="matt" tickets="274" improvement="2"/>
</graphdata>
<data date="9th June 2008"/>
1.
In the top right hand corner of the screenshot, you'll see
there is a "Last Updated" static text box followed by a dynamic
text box called "date_txt". But I wasn't sure where to put the
code, in the XML file! If I put it between the <graphdata>
tags then it creates a new graph bar called "UNDEFINED" lol
Do I create a new tag called 'datedata' or something and put
it in there? I tried various methods but none of which worked. Any
idea how to make that work?
I googled and found this page:
Webby
But it seems to write the code in a completely different way to
you. Also their method doesn't work.
2.
Is it at all possible to make the graphs sort themselves and
arrange from highest to lowest according to the ticket value?
3.
How difficult would it be to animate the graphs?? So that
when you open the flash file, the bars go zooming across and stop
at the right value?
I'd imagine it'd be a fair amount of work. But I thought I'd
ask anyway.
Thanks showing me the ways guys!
I'm learning a lot.

Similar Messages

  • Trying to make a app that transfers files over bluetooth in java

    I am trying to make a program that will send a audio file (for example test.mp3) to another device.
    This would be set up as client - server application.
    Ideally, the server would be a PC and the client a mobile device.
    Is there any source code similar to this?
    Or can anyone help make this?
    Thanks.

    "You can try the below loop it will allow you to skip Unauthorized files access error:"
    Using EnumerateFiles instead of GetFiles doesn't actually avoid the UnauthorizedAccessException that is commonly encountered then SearchOption.AllDirectories is used. There's no way to avoid this problem except by dealing with each directory individually.
    And some side notes:
    the "select new { File = file }" is completely unnecessary
    DirectoryInfo.EnumerateFiles should be used instead of Directory.EnumerateFiles. Enumerating file paths and then creating FileInfo objects is slower than enumerating FileInfo objects in the first place.
    No one said EnumerateFiles instead of GetFiles will solve the Unauthorized exception. 
    Second comment the property File is used within the loop.
    The third comment has no effect with lazy execution, and please prove that it is slower. This comment must be sent against the "GetFiles" method not there."The EnumerateFiles and GetFiles methods
    differ as follows: When you use EnumerateFiles,
    you can start enumerating the collection of names before the whole collection is returned; when you use GetFiles,
    you must wait for the whole array of names to be returned before you can access the array. Therefore, when you are working with many files and directories, EnumerateFiles can
    be more efficient."
    Reference:https://msdn.microsoft.com/en-us/library/dd383571.aspx
    Fouad Roumieh

  • My phone went blank and now will only show the apple logo I have tried to reset it and that doesnt work HELP!!!!

    My iPhone is frozen. It was working find about a hour ago and then for no reason the screen went to the apple logo. I have tried to reset it and that doesnt work. When I press the power/lock button and the center key it turns off but then it comes right back to the apple logo screen and wont go any further. Please help I dont have my stuff saved and would like to keep the stuff i do have on it!!! Every once in awhile the screen will go black for a few seconds then the apple logo pops right back up! I dont know what to do.....

    Try to set it up as new device, explained here:
    How to back up your data and set up as a new device
    First without using the backup, in case it contains corrupt data.
    If it works after that, use the backup to restore from.

  • Trying to make a page that I host members only access training videos

    I am pretty much green when it comes to building sites, but muse has helped me a lot... BUT I am trying to make a page that I host training videos on. they must be password protected and I want to automate it if possible. I read a few of your postings and it was greek to me... so here is my simple question...
    1. I have a sales page that sells the product to the client and takes then to a paypal page so as to complete the sale. (DONE)
    2. Then once sale is complete I can change the paypal thank you page to a new page where are thanked and queued to create a username and password for access...(Not Done)
    3. I will create a page with all the training videos, but it needs to be password protected so I don't lose my content...
    4. I would like it to automatically do this when the paid user logs on it sets the password to their username automatically...
    sorry so long but I am trying to describe the best I can... thanks for help!

    Hi,
    check this thread, Re: Can I create a login/password protection in Muse for a HTML5 page or two?
    You should get some idea

  • TS3999 Is there a calendar app that actually works on the iphone4?

    Everything ties to iCalendar which never works.  I have been unable to fund an app that is independent of iCal and it would be nice to have a calendar app that actually works.  If I have try and un-install then re-stall one more time, I'm going to scream!

    It never opens.  there is no way to delete and re-install it.  The general trouble shooting tips rarely work.
    If I use another calendar app it won't open if iCal won't open. 

  • How do I revert to my old version of Firefox? You know, the one that actually worked!

    I recently upgraded to a newer firefox version and I am very unhappy with it. How can I revert back to my older version - the one that actually worked. Also I hate the restore last session feature. It raises huge security concerns when children have access to my computer.

    Disabling Session Restore
    * http://kb.mozillazine.org/Session_Restore#Completely_disabling_session_store
    * https://support.mozilla.com/en-US/kb/Session%20Restore#w_privacy-issues
    Check and tell if its working.
    What are the problems you are facing by using Firefox 6 ?? We might be able to help you resolve those issues.
    Starting with the release of Firefox 6, the previous versions of Firefox (4.0.x and 5.0.x) are no longer maintained with Security and Stability updates. Firefox 3.6 is the last previous Firefox version that is still being maintained.
    Firefox versions 4.0.x 5.0.x contain Security vulnerabilities that are known and could be exploited by some websites to gain unauthorized access to information or to disrupt critical processing. Only the Latest version 6.0 and an Older version 3.6 of Firefox are secure against these known vulnerabilities.
    * http://en.wikipedia.org/wiki/Vulnerability_%28computing%29#Vulnerability_consequences
    * http://www.mozilla.org/security/known-vulnerabilities/firefox.html#firefox6

  • HT5247 Where can I download a Java Runtime Environment that actually works on OS 10.6.8?

    Last week there was this security alert urging Apple users to get rid of a Java application. Since then I have issues accessing some of my regular websites. I need Java Runtime Environment for it, but cannot find it anywhere on the Internet. Where can I find Java Runtime Environment that actually works on Apple Mac OS 10.6.8?

    Run the installer.
    Then you can drag the various versions of Java into whatever order you prefer, or uncheck any you don't want used at all.
    As for your JRE question above, the last Apple Java update disables Java Applets and Webstart Applications by default to prevent the Flashback exploit from working.  There should be a checkbox to enable that in the Java Preferences application.  It's under the general tab in 10.7, but I haven't used 10.6 in so long I don't remember if it should be there or somewhere else.  It doesn't seem to be there in your screenshot...
    Of course, I'm assuming the "things you could do before" involved Java applets on the internet.  I don't recommend re-enabling this functionality, by the way.  However, it is your risk and your choice.
    Java application bundles and anything run from an IDE or the command line should still sork as expected.

  • Anyone Rec'd a new ATI X800XT that actually works?

    I'm on my second one in the last two weeks ordered direct from ATI. Both of them display dots all over the screen. Looks like ATI is shipping from a bad batch. Has anyone rec'd one of the new RoHS versions recently that actually works?
    Thanks,
    Ric

    Dear Malcolm:
    I could definitely hear the fan after I installed it, but after a few minutes it stopped, and possibly that is the point when I started to have the problem. But the fan started to spin again, and I still have the problem. I'd connected the 30 inch Cinema Display to a MacBook Pro, and the display is fine. Surely, it has to be the card? I've yet to connect a 23 inch Cinema Display to the ATI card, which I'll do shortly, but I'm sure that the problem will still be the same.
    Question: Is there suppose to be a separate Y power cable used with the X800 XT and the G5 2.0?
    I ask because the general instructions that came with the card states that if a card comes with a Y-cable, then it'd have to be used. The X800 XT card that I'd received didn't have a Y-cable, and such cable isn't listed on the side panel of the retail package, so I'm assuming that a Y-cable isn't necessary. Plus I didn't get the icon at startup that the instructions point out would appear if I didn't have sufficient power for the card.
    I will contact Macsales.com and/or ATI about this problem, and see if I can get a replacement from either source. Thank you for your help, Malcolm.
    Ivor

  • I've tried everything someone give me an answer that actually works

    "usb device not recognized try reconnecting the device if windows still does not recognize it replace the device"
    Ipods are not cheap and i've barely had this thing a few months its the brand new ipod touch gen4 and it worked just a few hours ago i've searched this forum as well as others and tried every suggestion imaginable ive reinstalled itunes ive tried every usb port ive reset my usb hubs ive stopped and restarted my apple service ive tried to put my ipod in recovery mode but without my computer recognizing it neither will itunes alot of help that was i've tried to connect it with the internet connection disabled. Any other suggestions? Preferably one that will work please!

    i had tried everything too. the only thing that would work for me was disabling my wireless on the pc.

  • Making DVDs that actually work

    Hello all my fellow Mac-ers
    I seem to be having the worst luck when it comes to making DVD copies of my .AVI files.
    I have an extensive collection of movie on my hard drives. I've started to put these movies on to DVD and I have encountered some problems.
    First problem - I tried to make a backup of an .avi file by just copying said file onto a regular CDrom. Tat cd DID NOT play in any DVD, Computer, or laptop that said it was capable of playing .AVI files. So I burned it to DVD using iDVD and still nothing. I blame this problem on the the units I was trying to play the disc in. Not a big deal
    2nd problem - I tried another movie, using iDVD to burn to a DVD disc. It started encoding, took nearly 3 hours to complete the process. The newly burned DVD did play, but the video was jumpy and shaking. The audio was fine.
    I bought my MacBook because this stuff was supposed to be easy. I never would think it would take over 2-3 hours to make a DVD. Sometimes I get a multiplexing error and I have to start all over.
    I've burned DVDs on my lame PC a few times and it takes no time and it works every time. Using the same .AVI files I have now.
    Someone out there, please be so kind as to tell me how to make DVDs the easy way, if there is one.
    Thanks, Chris

    Hello Klaus,
    Sorry for the delay. Here is the info you requested:
    Format: DivX 5.0, 696 x 284, millions
    mpeg layer 3, stereo, 48.000 kHz
    FPS: 23.98
    Playing fps: 24
    Data Size: 695.93 MB
    Data Rate: 1068.94 kbits/s
    Current Time: 0:00:000
    Duration: 0:01:33:24:09
    Normal Size: 694 x 284 pixels
    Current Size: 694 X 284 pixels (actual)
    Hope this helps. Thank you for your help

  • Trying to make Reporting Services Configuration Manager work. Or, SQL Server Reporting Services.

    Under Start > Programs > Microsoft SQL Server 2008, I have the following:
    SQL Server Management Studio
    Configuration Tools
    Integration Services
    Import and Export Data
    Under Configuration Tools, I have the following:
    SQL Server Installation Center
    SQL Server Configuration Manager
    SQL Server Error and Usage Reporting
    Reporting Services Configuration Manager
    I tried to enable Reporting Services through 'Reporting Services Configuration Manager' but I don't seem to have much control from this view.  I see two boxes, one named Server Name (and it shows my server name) and the other is named Report Servicer Instance (and this is grayed out).  If I click on the Find box next to Server Name, I get this message:
    Report Server WMI Provider Error: Invalid Namespace
    Details
    Invalid Namespace
    To get the Server Name I right-clicked SQL Server > Properties > General
    Any ideas on how to make Reporting Services Configuration Manager work?  Or, can you please give me more details on how to access "System control" => "Services"?  I'm not seeing it anywhere and I'm not seeing any way to find "Sql Server Reporting Services".  Basically, I'm trying to activate my SQL Server Reporting Services.
    I am using SQL Server 2008 Express Management Studio.  Is SQL Server Reporting Services included in Express Management Studio?  I read, online, that it is, but I can't find it anywhere.
    Thanks again!
    Ryan--
    <input id="gwProxy" type="hidden"><!-- Session data--></input> <input id="jsProxy" onclick="jsCall();" type="hidden" />

    Thanks Jerry Nee!!  This may be exactly what I’m looking for!  I went to this link:
    http://www.microsoft.com/downloads/details.aspx?FamilyID=B5D1B8C3-FDA5-4508-B0D0-1311D670E336&displaylang=en#filelist  
    At the top of the page it says, ‘Microsoft® SQL Server® 2008 Express with Advanced Services’, which seems like this is what I’m looking for, so I downloaded the file named ‘SQLEXPRADV_x86_ENU.exe’
    Then, I cut that from my desktop and pasted it in my C-drive and I get a message that says, ‘this folder already contains a file named ‘SQLEXPRADV_x86_ENU.exe’, would you like to replace the existing file?’
    I’m thinking…what the heck?  Do I already have this thing?  If so, why can’t I see SQL Server Reporting Services?  Maybe I have it now, and I just don’t know how to access the reporting Services features…
    Couple quick questions:
    What’s the difference b/w these two files: 
    ‘SQLEXPRADV_x64_ENU.exe’ and ‘SQLEXPRADV_x86_ENU.exe’? 
    Also, my current version of SSMS, Help > About shows this:
    Microsoft SQL Server Management Studio
    10.0.1600.22 ((SQL_PreRelease).080709-1414 )
    Microsoft Data Access Components (MDAC)
      2000.085.1132.00 (xpsp.080413-0852)
    Microsoft MSXML
    2.6 3.0 5.0 6.0
    Microsoft Internet Explorer
    8.0.6001.18702
    Microsoft .NET Framework
    2.0.50727.3603
    Operating System
    5.1.2600
    Should Server Reporting Services be included in this version?  I think so!!!
    Under Start > Programs > Microsoft SQL Server 2008 > Configuration Tools > Reporting Services Configuration Manager, I see this:
    Connect to a report server instance:
    Server Name: 
    Report Server Instance: 
    My server name is ‘'EXCEL-4J2W8KYNP', which I got from Control Panel > System Properties > Computer Name > Full Computer Name;
    However, when I put that server name in the box, and hit ‘Find’ I get this message: ‘Report Server WMI Provider error’ Invalid namespace
    Details: Invalid Namespace.
    I have no idea what this means…
    Thanks for everything!
    Ryan---

  • Best modem/router for AEBS that actually works?!

    Hi,
    I have had so many problems with my AEBS it's unbelievable! If someone could suggest a modem/router that works well with the AEBS so i can set up my wireless network that would be great! So far i have tried the netgear DM111P modem & the d-link 320T modem. Both do not seem to work, i can get onto the internet connecting directly to each of the modems but when i comes to connecting to the internet through the AEBS with the modem attached there is nothing. But i can connect one computer if the AEBS is in bridge mode, which is pointless as i need to share the connection. So any suggestions to help me or on a modem/router which will actually work, i would appreciate it a lot!
    Many thanks!

    faganel wrote:
    Hi,
    I have similar to this one ( http://www.asus.com/products.aspx?l1=29&l2=172&l3=743&l4=60&model=1277&modelmenu =1 ), but a one or two years older and till now I haven’t lose a connection.
    I’m accessing to this with iMac, Win (HP, IBM) laptops, iPhone… one of the best investments (beside iMac and iPhone.. )
    I have a PC with an ASUS MB (see my profile), and have great respect for ASUS products. I was not even aware that they made routers.
    Thanks for the information.

  • Are there any printers that actually work in linux?

    I have had a few , that worked in ubuntu, then didnt work, i have one that worked beautifullly in ubuntu,but only scans (it's an all in one) in arch.. is there a list of sacred printers that work? i tried installing gutenprint. how do you use it? i cant find it in the application list.. i try using the printer config at :631 on firefox, cant connect, cant connect at opera, or chromium, and i have no firewall running. so I cant configure a printer if one even did work, or do they work after you turn certain ones on?
    if anyone i mean anyone has any information about what does work, so i can go out and buy what actually works, please let me know.. this is annoying i have 2 printers and neither of them work.. both are all in ones.. one of them the scanner works.. but i cant use the printer part..
    thanks in advance..
    and YES Ive searched the wiki and forums.. seen similar problems many with no solutions, others with solutions that don't pertain to my situation
    Last edited by binskipy2u (2010-02-05 20:10:03)

    binskipy2u wrote:you know what I give up.. being bleeding edge, and having arch/gentoo/bragging rights arent worth all of this.. this is 2010, and we cant get a basic printing capability on a known printer that has been "free" with computer packages for over a year.. i wouldnt care if it just printed black n white.. this hassle isnt worth me running to somewhere to print out online applications, resumes, etc.. it was nice to be bleeding edge.. and i learned alot..but some "stuff" should just work or not go thru jumping thru hoops, damn near teaching yourself programming, and scripts and blah blah blah to work.. windows was easier then this.. thanks for all your help.. it was much appreciated..  i have a perfectly working dvd backup of kubuntu 9.10 w/everything I ever used, and the printer/scanner, all functions just work.. ill proberly jump back to that, until 10.04 comes out.. bleeding edge isnt worth the hassle..
    This is, of course, your choice. In any case, Arch does not seem to be appropriate for your needs.

  • Hot Spots that actually work?

    I'm beyond frustrated here. I've been trying to get a Hot
    Spot question slide to work for over an hour now. (Can you say,
    "Lost productivity?") Tried everything logical. Made the hot spot
    bigger, smaller, deleted the slide and recreated, turned off
    project compression, added/subtracted additional hot spots,
    verified my hot spot is marked as the "Correct" hot spot, turned
    on/off the "Show hand pointer", added different images and tried
    them merged/unmerged with background and some other things I'm sure
    I'm forgetting. HELP! I need this to work for my SME. What simple
    thing am I overlooking here? Or do these just not work?

    Hello again Brian
    On the Preview bit, I'm guessing you have upgraded your Flash
    Player to the most recent version. And there are issues with
    Captivate and that version. Check out the following link for that.
    Click
    here
    Have you tried the Hotspot question in a totally new project?
    I see you already tried deleting and re-creating the slide to no
    avail. That makes me think that maybe for this project that object
    is corrupt somehow.
    Hopefully something here was helpful... Rick

  • Possible to make a Time Capsule actually work?

    We have an original Time Capsule. It has never worked well enough for a reasoned person to be satisified. It has, on two separate occasions it did actually back up a computer. Many many times it was left for days and days to back up and it never completed. I understand it can take a stupid long time for initial wireless backups with a TC. This one ran for ten days once and no joy.
    We took it to the apple store. they said it is fine, they reset it.
    It doesn't show up wirelessly. The instructions don;t really help one get it to show up on a wireless network.
    This is the single most frustrating big ticket item we've ever purchased. The angrily defensive sales tech told my calm happy smiling wife that it is a fine functioning product, and she is just not tech savvy enough to use it. We are terribly frustrated.
    Anyone know how to make one of these things work at all? or better yet, any one know of a way we can dispose of this overheating rip-off without poisoning the environment and maybe get some of our money back?
    thanks

    The answer to your subject line is YES - millions upon millions of people have with no problems
    Are you using it only for backup, as a wireless base station, as a wired router or some combination of there three capabilities?
    as to disposing of it - sell it on EBay
    LN

Maybe you are looking for

  • Can't transfer files even though I created them

    I'm trying to transfer music, iPhoto, and other files to my new iMac so I can erase my MacBook (many, many problems since upgrading to 10.5, but that's another story) and do a clean install. However, when I try to transfer them, using TDM or just ove

  • System shut down during F110 payment run

    During the F110 payment run, the PRD system shut down. There were 259 items in the proposal and according to the status 42 posting orders were generated and completed. What is the process to handle this problem? Can the payment run be re-started? It

  • Using Essbase security filter in OBIEE request ?

    Hello, We would like to use OBIEE 11.1.1.6 with Essbase source. We already use Essbase security filter (on dimensions). For example, "userA" is allowed to access to Entity A and not Entity B and the opposite for "userB". If I loggin as "userA" in OBI

  • Time out talking to server

    When trying to deploy I get this "time out talking to server" error Any idea would be appreciated [exec] Severity 1: DeployLogListener: sending packet c:/iplanet/ias6/ias/JA R/aqp.ear J2EEInstallEar [exec] Severity 1: DeployLogListener: sending packe

  • How to resolve NoClassDefFoundError ?

    hello friends, I have to add a referenced library in my j2me Project. I am Using Eclipse IDE. In Eclipse IDE I add the external jar file in "Buld Path". Application is being compiled successfully but at the Run Time NoClassDefFoundError is thrown by