Since the previous tutorial was not as detailed regarding the user interactivity I decided to look further to see if I could develop some user implementation. I came across another video tutorial that focuses on Flash and not Flash builder although this should not be a issue as they are using ActionScript.
Within the tutorial the video explains ways to change colour, line thickness and forms of deleting the drawing. This form of guide is more appropriate for my project although due to slight difference within the program functionality I have come across numerous errors that need to be dealt with. An on occurring presence of errors related to conflicts within the code that is already integrated within Flash Builder. I came to the decision to look at a previous action-script canvas documents completed during a class tutorial on Flash. This method was much more helpful as I was familiar with the structure implemented.
Problem Solving
The code I used as an outline of what was need was useful in helping me develop the canvas although I found many conflicting errors within Flash Builder. In order to get a functional canvas I had to replace various sections with a different order of code. The image below displays both the original and replacement code, I decided to keep both in order to show my progress and failed attempts at creating the function.
I found that a large amount of the conflicting code was a result of elements being placed twice, by this I mean that Flash Builder has various components already integrated within the program that do not need to be coded again. As you can identify within the code various sections are display under a private function, this merely states that the function is only for internal use and users have no need to access it.
Qamar, Z. 2011. DRAW ON CANVAS IN AS3. [video online] Available at: http://www.youtube.com/watch?v=ZmYlaFtIH0Q [Accessed: 11 Feb 2014].
Nocircleno.com. n.d. Graffiti - ActionScript 3 Bitmap Drawing Library. [online] Available at: http://www.nocircleno.com/graffiti/ [Accessed: 11 Feb 2014].
Make A Sketch Pad In Flash. 2011. [video online] Available at: http://www.youtube.com/watch?v=pDlJwCHifzo [Accessed: 11 Feb 2014].

No comments:
Post a Comment