degrafa

Flex Degrafa's bezier spline under AIR 3.9

偶尔善良 提交于 2019-12-11 16:08:56
问题 I have a mobile Flex project running on iOS that has been using Degrafa's library in order to use its BezierSpline class. The purpose is to be able to draw directly on the screen, the collection of points given by the user gesture is then converted into a bezier curve using this library. However, my app has been recently crashing as soon as it was displaying a page containing at least one of these curves. I don't get any error, stacktrace or anything, the app is simply killed and I'm taken

How to clone an object in Flex?

南笙酒味 提交于 2019-12-08 15:59:03
问题 I want to clone a Canvas object, which contains a Degrafa Surface with several Geometry shapes. I tried the naive approach: return ObjectUtil.copy(graph_area) as Canvas; which resulted in errors: TypeError: Error #1034: Type Coercion failed: cannot convert Object@63b1b51 to com.degrafa.geometry.Geometry. TypeError: Error #1034: Type Coercion failed: cannot convert Object@63b1039 to com.degrafa.geometry.Geometry. TypeError: Error #1009: Cannot access a property or method of a null object