5 Replies Latest reply: Feb 23, 2012 1:53 AM by FlexMad RSS

    adding Uicomponent in textflow

    FlexMad

      Hi sir,

                    We are facing some problems with new TLF framework. We need to add component(any UI component) in selected textflow. But we cant do that.  We need any UI element (just like inlinegraphicElement for images) for UI components. now we can not add transform tool on the images. we need too add drag & drop propety on that, and the total text flow is affected. Please reply ASAP.

        • 1. Re: adding Uicomponent in textflow
          Jin-Huang Adobe Employee

          You can add Sprite or even SWF as inlinegraphic. So add your UI components onto a Sprite or a SWF.

          • 2. Re: adding Uicomponent in textflow
            FlexMad Community Member

            can you send me any code snippets.. can i got the float property for the placed component..

            suppose i want to add a button in between texts, and then i'm going to change the allignment..with all text..

            https://acrobat.com/app.html#o, please go with this link.. there is buzzword document is available.. there you can see, add image functionality, there you can drag and drop the image with trasnsform tool,& another is add comments,the comment is linked with textflow..so i just i want to know how can i add any button/ or anything to text flow & his repective allignment (with the help of 'float')?

            • 3. Re: adding Uicomponent in textflow
              Jin-Huang Adobe Employee

              I take Sprite as the example,

               

              var displayObject:Sprite = new Sprite();

              ilg.source = displayObject;

               

               

               

              PS: As far as I know, Acrobat.com is not based on TLF.

              • 4. Re: adding Uicomponent in textflow
                FlexMad Community Member

                no,but the buzzword document is made in TLF

                • 5. Re: adding Uicomponent in textflow
                  FlexMad Community Member

                  var displayObject:Sprite = new Sprite();

                                 

                                  //ilg.source = displayObject;

                                  Alert.show("Image added..");

                                  if(_images==null){

                                      _images=new Vector.<Bitmap>;

                                      _container.addEventListener(MouseEvent.CLICK,handleMouseDown);

                                      _container.addEventListener(MouseEvent.MOUSE_MOVE,handleMouseMove);

                                  }

                                  _img_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE,imageLoadComplete);

                                  var bmd:BitmapData=Bitmap(_img_loader.content).bitmapData;

                                  bm=new Bitmap(bmd);

                                  _images.push(bm);

                                 

                                  but = new mx.controls.Button();

                                  wrapper  = but as DisplayObjectWrapper;

                                 

                                      obj.addEventListener(MouseEvent.CLICK,handleMouseDown);

                  //                    EditManager(_textFlow1.interactionManager).

                  //                    EditManager(

                                      EditManager(_textFlow1.interactionManager).insertInlineGraphic(wrapper,bm.width,bm.height );

                                      _textFlow1.flowComposer.updateAllControllers();

                   

                  i want to add image/bordercontainer with insertinlineGraphics with transform tool,and i want to drag & drop the the object on the TLF.