You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Flex ObjectHandles
Hello,
I found your flex component and would very much like to use it in my
project. However I don't even get a simple image to work with it
through actionscript. My code gives the error "Implicit coercion of a
value of type com.roguedevelopment.objecthandles:ObjectHandles to an
unrelated type flash.display:DisplayObject." on canvas.addChild(oh).
Am I doing something obvious wrong here?
//testing objecthandles component
var canvas:Canvas = new Canvas();
canvas.width = 400;
canvas.height = 400;
var img:Image = new Image();
img.source = 'assets/handenwassen.jpg';
img.x = 100;
img.y = 200;
var pages:Array = myBook.getChildren();
//var oh:ObjectHandles = new ObjectHandles();
//oh.addChild(img);
var oh:ObjectHandles = new ObjectHandles(img);
canvas.addChild(oh);
pages[0].addChild(canvas);
Craig McLeod
unread,
Mar 22, 2012, 5:34:57 AM3/22/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message