Disappear textarea text while rotating objecthandles

20 views
Skip to first unread message

Dhara

unread,
Nov 25, 2009, 4:57:19 AM11/25/09
to Flex ObjectHandles, dharakh...@gmail.com
Hi !!!

I have a one textarea ,that is place inside Canvas.

Now that whole object is placed inside objecthandles.

while rotating objecthandles then text disappear inside teatara


Thanks.

Marc Hughes

unread,
Nov 25, 2009, 9:55:53 AM11/25/09
to object...@googlegroups.com
Take a search through the recent archive for similar issues, it's an embedded font thing.


--

You received this message because you are subscribed to the Google Groups "Flex ObjectHandles" group.
To post to this group, send email to object...@googlegroups.com.
To unsubscribe from this group, send email to objecthandle...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/objecthandles?hl=en.



Marc Hughes

unread,
Nov 25, 2009, 9:56:14 AM11/25/09
to object...@googlegroups.com
Take a search through the recent archive for similar issues, it's an embedded font thing.

-Marc

On Wed, Nov 25, 2009 at 4:57 AM, Dhara <dharakh...@gmail.com> wrote:

Dhara

unread,
Nov 26, 2009, 12:37:55 AM11/26/09
to Flex ObjectHandles
Hi i am not getting.I search.
my code is like that

for (var char:uint=0;char<myText.length;char++) {
//fte1.text = "Hello world";
//fte1.border = false;
var fte1:Label = new Label();
fte1.x = radius * Math.cos(degrees2radians(char*spacing
+angularOffset)) + center.x;
fte1.y = radius * Math.sin(degrees2radians(char*spacing
+angularOffset)) + center.y;
var dx:Number = center.x-fte1.x;
var dy:Number = center.y-fte1.y;
var angle:Number = Math.atan2(dy, dx);
fte1.text = myText.charAt(char);
can.addChild(fte1);
}

var oh:ObjectHandles = new ObjectHandles();
oh.height = 200;
oh.width = 200;
oh.x = 10;
oh.y = 10;
oh.rotation = 0;
oh.addEventListener
(ObjectHandleEvent.OBJECT_RESIZED_EVENT,onResize);
oh.addEventListener
(ObjectHandleEvent.OBJECT_ROTATED_EVENT,onRotate);
oh.addEventListener( MouseEvent.MOUSE_UP, onMouseUp );
oh.resizeHandleImage = resize_handle;
oh.rotateHandleImage = rotate_handle;


can.percentHeight = 100;
can.percentWidth = 100;
oh.allowRotate = true;
oh.allowHResize = true;
oh.allowVResize = true;
oh.addChild(can);
genericExamples.addChild(oh);

i am simply draw circle with text.
i am not using any font style.

i am just simply rotate this object handel. circle disappear..or it
may be font disappear

this happen also with text area.

can u help me ,actually what code i have to write for this.

Thanks
Dhara





On Nov 25, 7:56 pm, Marc Hughes <flexcompone...@rogue-development.com>
wrote:
> Take a search through the recent archive for similar issues, it's an
> embedded font thing.
>
> -Marc
>
>
>
> On Wed, Nov 25, 2009 at 4:57 AM, Dhara <dharakhachar...@gmail.com> wrote:
> > Hi !!!
>
> > I have a one textarea ,that is place inside Canvas.
>
> > Now that whole object is placed inside objecthandles.
>
> > while rotating objecthandles then text disappear inside teatara
>
> > Thanks.
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Flex ObjectHandles" group.
> > To post to this group, send email to object...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > objecthandle...@googlegroups.com<objecthandles%2Bunsubscribe@goog­legroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/objecthandles?hl=en.- Hide quoted text -
>
> - Show quoted text -

Marc Hughes

unread,
Nov 27, 2009, 11:51:41 AM11/27/09
to object...@googlegroups.com
You need to embed the font.

Take a look at the thread in this group titled "Text in object handles" for an example.

http://groups.google.com/group/objecthandles/browse_thread/thread/5036bae8f7baa213

-Marc


To unsubscribe from this group, send email to objecthandle...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages