nilanjan

Members
  • Content count

    23
  • Joined

  • Last visited

About nilanjan

  • Rank
    Junior Member
  1. Funnel - Tooltip error

    Hi The FunnelChart is designed to behave as such. The tooltip shows the funnelOut value (and not the funnelIn value).
  2. Multi-level Pie Chart: hoverText problem

    Hi It seems that you are loading the charts in the same container, loader_mc, replacing the previous one. In that case, you may try loader_mc.unLoadMovie() before reloading another one. This type of anomalies can as well result from non-removal of all remnants of the charts. Please try using destroy() and remove() methods of the chart. Like loader_mc.chart.destroy() [before unloading the chart obviously] Hope the xml files have the attribute enabled for showing tooltips.
  3. Changing the size of chart in runtime

    Hi Its me again ... check the code I posted. One thing is not clear to me as of why are you using the textfield (pText)? Is it there to hold the Class name of the chart? Or it has any more visual usage? If storing the chart class name is the sole purpose ... just cull it off. Check my code to see a variable declared on timeline (_root) which stores the "Class" reference (which is not a string as when stored in textfield) . And the variable is always updated, as and when a new chart is rendered from clicking options in your horizontal flyout. So, whenever you hit the maximise btn, simply use the variable as the Class. new Variable(......) It seems you haven't yet gone through the code properly or failed to comprehend the underlying simplicity. Best wishes.
  4. Changing the size of chart in runtime

    Hi If you really mean to learn actionscript ... do it. Actionscript have a broad path of success ahead. Best wishes
  5. Changing the size of chart in runtime

    Hi Check attachment ... hope will make you smile. Script-1.zip
  6. Changing the size of chart in runtime

    Hi I see a messed up code in your post. Please mail me a decent version ... where zoomChart is applied. Before posting me either code or the fla itself (best), please change the code for once as below. Just shift the code in bold to the respective function. The undefined status of variable classname will be over. Max.onRelease = function() { var objClasses:Object = new Object() objClasses["Column3DChart"] = Column3DChart objClasses["Area2DChart"] = Area2DChart var cText = pText.text; var classname = objClasses[cText] zoomChart(classname); }
  7. Changing the size of chart in runtime

    It seems to be a scope problem in that case. Although, there are a number of ways to solve your required problem, but, the one I asked you to is probably one of the best and trickiest. Anyhow, please check to trace out a variable from max.onRelease(), being declared with the code of class name mapping, like: var objClasses:Object = new Object() objClasses["Column3DChart"] = Column3DChart objClasses["Area2DChart"] = Area2DChart var testVar:Number = 100 Max.onRelease = function() { trace(testVar) var cText = pText.text; var classname = objClasses[cText] zoomChart(classname); }
  8. Changing the size of chart in runtime

    Yes ... post the full code if possible.
  9. Changing the size of chart in runtime

    hi Please place the class import statements and test.
  10. Changing the size of chart in runtime

    hi Please replace with this code in its respective place and post back the output. Max.onRelease = function() { var cText = pText.text; trace(cText) var classname = objClasses[cText] trace(classname) zoomChart(classname); }
  11. Changing the size of chart in runtime

    Use this ready code. var objClasses:Object = new Object() objClasses["Column3DChart"] = Column3DChart objClasses["Area2DChart"] = Area2DChart Max.onRelease = function() { var cText = pText.text; var classname = objClasses[cText] zoomChart(classname); } // Zoom Chart function zoomChart(cText){ var chart3 = new cText(chartContainer3MC, 1, 790, 650, 20, 15, false, "EN", "noScale"); chart3.setXMLData(xmlData2); chart3.render(); //hide other chart container. chartContainer1MC._visible = false; chartContainer2MC._visible = false; Min._visible = true; stop(); }
  12. Changing the size of chart in runtime

    Hi You see ... there is a technical problem in the way you are doing that. When you are accessing the class name from the text field ... you are getting a STRING. But, you need a CLASS NAME ... which is not a STRING. Compare "Classname" with Classname. String have quotation marks defining itself. But, class name have none such. Do, one thing, use this type of code: var objClasses:Object = new Object() objClasses["Classname1"] = Classname1 objClasses["Classname2"] = Classname2 ...... all your classes So, you have mapped your classnames to properties of the object. From, where you finally use the class name, simply call like: var chartname = objClasses[ "CLASSNAME" ] Now, chartname is not a string. Good luck.
  13. Changing the size of chart in runtime

    Hi var chatm = Column2DChart; menucontainer.menu.Max.onRelease = function() { chatm=pText.text; var chart3 = new chatm(chartContainer3MC, 1, 750, 465, 20, 15, false, "EN", "noScale"); chart3.setXMLData(chart3_xml); chart3.render(); stop(); }; //---------------// Your version was : var chatm = "Column2DChart" ; Don't use quotation marks ... simply var chatm = Column2DChart; And no need of data typing the variable "chart3" like as you did : var chart3:chatm = new chatm(chartContainer3MC ...... simply ... var chart3 = new chatm(chartContainer3MC ......
  14. calling chart class inside Flash Movie Layer

    Hi Please copy-n-paste the "import" code at the beginning of the code.
  15. Placing a button over the chart in flash

    Hi I think you haven't yet tried with swapDepths() as I asked you to earlier. Just simply add this line at the end of your code: Max.swapDepths(1000)