Tharage, your phone number looks like its from SA ;)
Any how, for text make sure you are using the text component supplied
in the OH2 example not the standard one.
Also note they don't recommend using controls directly, so embed in
components rather. And use dynamic sizing.
That way the redraw works better.
and finally modify the SimpleDataModel.as with any extras you need
passed into your components and pass them in during instantiation.
The Flex4Example provided works perfectly, if you use my code above
you can see how to add something to a canvas.
The important part is the creation of a model and a control, the
adding of the control as an element to the canvas, and then the
linking of the control to its model, before you register it with
Here is the final of my code:
NewDashItem.model = NewFlexModel;
objectHandles.registerComponent( NewFlexModel, NewDashItem,
Dr Craig McLeod
Senior Developer Sumit Solutions.
On Aug 30, 3:55 pm, Tharage Ntakadzeni <tntakadz...@gmail.com
> I am trying to use ObjectHandles and Flex 4 to create a dynamic
> for users to resize items.
> I have a problem when i set top,bottom,left,right on the components ,its
> breaks the handlers. does anyone have the solution
> *Kind regards,
> Tharage Ntakadzeni
> Software Developer