Home Tutorials Forums Articles Blogs Movies Library Employment Press

 ActionScript.org Forums > Flex problem in flex charts
 User Name Remember Me? Password
 Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

 Thread Tools Rate Thread Display Modes
 10-15-2011, 08:17 AM #1 flexable Member   Join Date: May 2010 Location: india Posts: 68 problem in flex charts this is my code..my application takes in a customer no input and shows a graph of arrival and departure of cutomers on some calcualtion done...i am unable to put the departure line...arrival line is coming up. image at- http://asdfshare.com/tycoix6jm7iq/snap.bmp.html Code: ``` 0&&ianum<125) iaval=1; else if(ianum>125&&ianum<250) iaval=2; else if(ianum>250&&ianum<375) iaval=3; else if(ianum>375&&ianum<500) iaval=4; else if(ianum>500&&ianum<625) iaval=5; else if(ianum>625&&ianum<750) iaval=6; else if(ianum>750&&ianum<825) iaval=7; else iaval=8; interarrival[d++]=iaval; nn=nn+iaval;//for arrival arrival[q++]=nn//putting in arrival array //calculating the service time if(sernum>0&&sernum<100) stval=1; else if(sernum>100&&sernum<300) stval=2; else if(sernum>300&&sernum<600) stval=3; else if(sernum>600&&sernum<850) stval=4; else if(sernum>850&&sernum<950) stval=5; else stval=6; service[p++]=stval; departure[f++]=arrival[q-2]+stval;//departure time calculated trace(service[p-1],interarrival[d-1],arrival[q-2],departure[f-1]); // trace(stval); // trace(iaval,stval);//tracing } for(var ii:int=1;ii<=n;ii++) { display.addItemAt({no:ii,Departure:departure[ii],arriva:arrival[ii]},ii); trace(display.getItemAt(ii)); } var ldep:int=departure[f-1]; trace(ldep);//coorect last departure fr clock arrive++; for(t=0;t=departure[v]) {//arrival has nt come and the last process ends idle=true; trace("idle"); v++; } else if(t==departure[c]) { arrive=arrive-1; depart=depart+1; c++; }*/ else // naval(); linechart.dataProvider=display;//imp line... providing data to chart trace("arrival=",arrive,"waiting=",wait,"idle=",idle,"departure=",depart); wait=false; idle=false; } } public function naval():void { trace("i am naval joshi"); if(arrival[xx]<=departure[xx-1]) {//departure will take time n a process arrives wait=true; trace("wait"); xx++; } else if(arrival[v-1]>=departure[v]) {//arrival has nt come and the last process ends idle=true; trace("idle"); v++; } else if(t==departure[c]) { arrive=arrive-1; depart=depart+1; c++; } else trace("continue"); } ]]> ``` the problem seems to be with this portion..the departure array dosent seems to populate the collection..but y?? Code: ``` for(var ii:int=1;ii<=n;ii++) { display.addItemAt({no:ii,Departure:departure[ii],arriva:arrival[ii]},ii); trace(display.getItemAt(ii)); }``` Last edited by flexable; 10-15-2011 at 08:22 AM.
 10-17-2011, 02:01 PM #2 flexable Member   Join Date: May 2010 Location: india Posts: 68 waiting for reply.. still waiting fr replys guyss...

 Thread Tools Display Modes Rate This Thread Linear Mode Rate This Thread: 5 : Excellent 4 : Good 3 : Average 2 : Bad 1 : Terrible

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home ActionScript Forums Group     ActionScript 3.0     ActionScript 2.0     ActionScript 1.0 (and below)     Simple Stuff (Newbies) Flash General Questions     Flash 10 General Questions     Flash 9 General Questions     Flash 8 General Questions     Other Flash General Questions Flex     Flex 2, 3 & 4     Flex 1 Extensions and Plugins     Components     JSFL - Extending Flash Desktop, Mobile and non-browser Environments     AIR (Apollo)     FlashLite / Portable Devices Development     Projectors and CDs Supporting Technologies     HTML and JavaScript     haXe     Server-Side Scripting     Flash Remoting     Flash Media Server General     Best Practices     Gaming and Game Development     Animation and Effects     Flashants Support Forum Community Boards     General Chat     Just for Kicks Challenges     Detention Flash In Action     Site Check     Cool Sites     Widgets Decommissioned     Projects and Positions CMS Forums     Announcements Board     Content Postings / Updates     Product Review Requests     CMS Technical Questions     Process Questions     Collaboration & Suggested Articles

All times are GMT. The time now is 04:20 PM.

///

## Categories

 Contact Us - Home Page - Archive - Privacy Statement - Top

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.