flex - Drawable Canvas -



flex - Drawable Canvas -

i upgraded flash builder burrito 4.5 premium. trying create (drawing demo) in latest version of flex, on blackberry playbook, getting errors:

code

<?xml version="1.0" encoding="utf-8"?> <s:application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"> <s:panel layout="absolute" title="draw test" backgroundcolor="#ffffff"> <mx:canvas backgroundcolor="#ffffff"> <mh:drawablecanvas id="main" backgroundcolor="#ffff80" backgroundalpha="0" width="100%" height="100%" y="0" x="0"> </mh:drawablecanvas> </mx:canvas> </s:panel> </s:application>

the error

the prefix "mx" element "mx:canvas" not bound. have tried adding "xmlns:mx="http://www.adobe.com/2006/mxml" head no joy.

is canvas no longer supported? want canvas draw onto capture human signature...

any ideas?

edit:

took onboard advice still getting wrong, see screenshot.

any ideas? missing mx.swc or something?

canvas , other components still supported since flex4 backwards compatible flex3.

in case, error message says all.

your application not correctly refer mx: namespace. therefore, not able find canvas component.

in spark application, advised add together mx namespace follows:

xmlns:mx="library://ns.adobe.com/flex/mx" instead of xmlns:mx="http://www.adobe.com/2006/mxml"

if migrating flex3 halo application flex4 spark application, please read official migration guide. chapter 4 particularly useful.

cheers

flex canvas actionscript air flex-spark

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -