{"action":"closed","issue":{"url":"https://api.github.com/repos/benrhodes/graffiti-as3-drawing-lib-touch/issues/9","labels_url":"https://api.github.com/repos/benrhodes/graffiti-as3-drawing-lib-touch/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/benrhodes/graffiti-as3-drawing-lib-touch/issues/9/comments","events_url":"https://api.github.com/repos/benrhodes/graffiti-as3-drawing-lib-touch/issues/9/events","html_url":"https://github.com/benrhodes/graffiti-as3-drawing-lib-touch/issues/9","id":98573740,"number":9,"title":"Brush Color Change","user":{"login":"unknownuser23","id":13563153,"avatar_url":"https://avatars.githubusercontent.com/u/13563153?v=3","gravatar_id":"","url":"https://api.github.com/users/unknownuser23","html_url":"https://github.com/unknownuser23","followers_url":"https://api.github.com/users/unknownuser23/followers","following_url":"https://api.github.com/users/unknownuser23/following{/other_user}","gists_url":"https://api.github.com/users/unknownuser23/gists{/gist_id}","starred_url":"https://api.github.com/users/unknownuser23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unknownuser23/subscriptions","organizations_url":"https://api.github.com/users/unknownuser23/orgs","repos_url":"https://api.github.com/users/unknownuser23/repos","events_url":"https://api.github.com/users/unknownuser23/events{/privacy}","received_events_url":"https://api.github.com/users/unknownuser23/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-02T01:08:30Z","updated_at":"2015-08-03T07:21:51Z","closed_at":"2015-08-03T07:21:51Z","body":"Great work on the Touch upgrade.. But I can not get the color to change on Brushes? Size and Alpha are no problem.. What am I doing wrong here? a basic example below\r\n\r\n/**************************************************************************\r\n\t\t\tMethod\t: Main();\r\n***************************************************************************/\t\t\r\n\r\n\tpublic function Main() {\r\n\t\t\t\t\t\r\n\t// Make Full screen Touch interactive\t\t\t\t\t\t\r\n\t\t//Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;\r\n\t\t\r\n\t\t\t\t\t\t\r\n\t\t// Add sprites for Top an Bottom\r\n\t\t\taddChildAt(bottomLayer,0 );\r\n\t\t\taddChild(topLayer );\r\n\t\t\tsplaterCell_mc = new frame_1_mc;\r\n\t\t\ttopLayer.addChild(splaterCell_mc);\r\n\t\t\t\t\t\t\r\n\t\t// create new instance of graffiti canvas, with a width and height of 1366.\r\n\t\t// by default a Brush instance is created inside the GraffitiCanvas Class and assigned as the active tool.\r\n\t\t\tcanvas = new GraffitiCanvas(1366, 768);\r\n\t\t\tbottomLayer.addChildAt(canvas, 0);\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t// create a new Round Brush instance, brush size of 8, brush color is Red, fully opaque.\r\n\t\t    square_brush =  new SquareBrush(_brushSize,0x0000ff, 1);\r\n\t\t\tcolor_picker.selectedColor = _pickedColor;\r\n\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t// assign the Brush as the active tool used by the Canvas\r\n\t\t\tcanvas.brush = square_brush;\r\n\t\t\t\t\t\r\n\t\t\r\n\t// Add Event Listeners\r\n\t\t\t//color_picker.selectedColor = _fillColor;\r\n\t\t\tcolor_picker.addEventListener(ColorPickerEvent.CHANGE, colorPickerHandler);\r\n\t\t\tcolor_picker.enabled = true;\r\n\t\t\tsize_slider.addEventListener(SliderEvent.CHANGE, sliderHandler);\r\n       \t\t\t\t\r\n    \t}\r\n\t\t\r\n/**************************************************************************\r\n\tMethod\t: colorPickerHandler()\r\n***************************************************************************/\r\n\r\n\t\tfunction colorPickerHandler(e:ColorPickerEvent):void {\r\n\t\t\t \r\n\t\tsquare_brush.color  =  uint(\"0x\" + color_picker.hexValue);\r\n\t\t\t\t\r\n\t\t\ttrace(\"color changed:\", \"0x\" + e.target.hexValue);\r\n\t\t\r\n\r\n\t\t}\r\n\t\t\t\r\n/**************************************************************************\r\n\t\t\tMethod\t: sliderHandler()\r\n***************************************************************************/\r\n\t\t function sliderHandler(e:SliderEvent):void {\r\n\t\t\t\t\t\r\n\t\t\t_brushSize = e.value;\r\n\t\t\t\t\t\r\n\t\t\tsquare_brush.size = _brushSize;\r\n\t\t\t \r\n\t\t\t \r\n\t\t\ttrace (\"slider slid\");\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n      \t\t\t\r\n    }\r\n}"}}