Be the first to write a review
Creating a line chart component – part 1
Creating a line chart component – part 1
Welcome to the last topic in our series of tutorials about creating components. In this tutorial, we’ll create a more complicated component compared with the previous examples. We’ll make a simple line chart component that allows the user to add titles, change the line colour and plot values and labels. We’ll draw the line and chart axes dynamically using the Flash drawing API.
Specifically, I’ll show you how to:
- Plan the component so we determine what parameters the user will be able to set
- Create the line chart movie clip
- Create the line chart class file including the drawing methods
- Generate and use the component
Note: If you have difficulties downloading the source files or PDF, you might have a problem with your cookies. Delete the cookies from your machine and try again. In Internet Explorer, you can do this by choosing Tools > Internet Options… and clicking the Delete Cookies… button on the General tab.
Sas Jacobs
Hello. I'm the Principal of Anything Is Possible, an Australian web development business specialising in web applications development and training. I'm interested in using Flash with dynamic content and I've presented at a number of International conferences on topics relating to applications development, XML and scripting components. I have recently released my second print book Beginning XML with DOM and Ajax to match the first one - Foundation XML for Flash. I have a business web site
and a personal web site.