0 Replies Latest reply on Nov 11, 2014 10:15 AM by sdddssd

    Paragraph Element inside a Sprite - AS3

    sdddssd

      0 down vote  favorite  

       

      Hello all!

       

      I'm developing a flex app, and I need to create some type of bubble or box inside Paragraphs Elements. Those paragraphs elements are within a spark RichEditableText.

      The paragraphElement contains spanElements for text as well as InLineGraphicElemens for images, icons, etc..

      I have tried:

      var s:Sprite = new Sprite();
       s.graphics.lineStyle(1,0,1);
       s.graphics.drawRect(0,0,100, 200);
        var grafic:InlineGraphicElement = new InlineGraphicElement();
       grafic.source = s;
        paragraphMensaje.addChild(grafic);
        richEditableText.textFlow.addChild(paragraphMensaje);

       

      But it does not work.

      Anyone knows any way to insert a paragraphElement inside a sprite element or anyway to get it such as creating a border for a paragraphelement with a background color.

      Many thanks for the support.

      Cheers!