<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Mouse interactions on Text Layout Framework InlineGraphicElements in EditMode</title>
	<atom:link href="http://www.sakri.net/blog/2009/03/26/mouse-interactions-on-text-layout-framework-inlinegraphicelements-in-editmode/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sakri.net/blog/2009/03/26/mouse-interactions-on-text-layout-framework-inlinegraphicelements-in-editmode/</link>
	<description>I Flash und I Flex Jaaaa</description>
	<pubDate>Sat, 31 Jul 2010 00:08:38 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: daslicht</title>
		<link>http://www.sakri.net/blog/2009/03/26/mouse-interactions-on-text-layout-framework-inlinegraphicelements-in-editmode/#comment-1592</link>
		<dc:creator>daslicht</dc:creator>
		<pubDate>Mon, 14 Jun 2010 11:15:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.sakri.net/blog/?p=263#comment-1592</guid>
		<description>Hi,
is there a way to determine which image (image name) was clicked ?

Thank yoy very much !</description>
		<content:encoded><![CDATA[<p>Hi,<br />
is there a way to determine which image (image name) was clicked ?</p>
<p>Thank yoy very much !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: daslicht</title>
		<link>http://www.sakri.net/blog/2009/03/26/mouse-interactions-on-text-layout-framework-inlinegraphicelements-in-editmode/#comment-1591</link>
		<dc:creator>daslicht</dc:creator>
		<pubDate>Mon, 14 Jun 2010 11:00:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.sakri.net/blog/?p=263#comment-1591</guid>
		<description>@Pravin Mahida Says
Yeah that would be great !</description>
		<content:encoded><![CDATA[<p>@Pravin Mahida Says<br />
Yeah that would be great !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pravin Mahida</title>
		<link>http://www.sakri.net/blog/2009/03/26/mouse-interactions-on-text-layout-framework-inlinegraphicelements-in-editmode/#comment-1235</link>
		<dc:creator>Pravin Mahida</dc:creator>
		<pubDate>Thu, 16 Jul 2009 05:17:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.sakri.net/blog/?p=263#comment-1235</guid>
		<description>Hi sakri 
First of all thanks for providing such a nice example for inline graphic element.

i use same thing in my application and restricted image size with 25X25 by using 

EditManager(_textFlow.interactionManager).insertInlineGraphic(ImageSourcePath,25,25);

now on selection i want to resize image to change its height and width.
Please provide me any help if you have.

Thanks in advance for any help from anybody.</description>
		<content:encoded><![CDATA[<p>Hi sakri<br />
First of all thanks for providing such a nice example for inline graphic element.</p>
<p>i use same thing in my application and restricted image size with 25X25 by using </p>
<p>EditManager(_textFlow.interactionManager).insertInlineGraphic(ImageSourcePath,25,25);</p>
<p>now on selection i want to resize image to change its height and width.<br />
Please provide me any help if you have.</p>
<p>Thanks in advance for any help from anybody.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sakri</title>
		<link>http://www.sakri.net/blog/2009/03/26/mouse-interactions-on-text-layout-framework-inlinegraphicelements-in-editmode/#comment-1142</link>
		<dc:creator>sakri</dc:creator>
		<pubDate>Tue, 12 May 2009 12:07:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.sakri.net/blog/?p=263#comment-1142</guid>
		<description>Hi Michael,

I'm afraid it's not possible to interact with inline components in edit mode.  The best I could come up with, was to capture the click (as explained in the post), then open an editable component "on top" of the text flow. I did this with datagrids, in the textflow, I would have a bitmapdata snapshot of the datagrid. I map this bitmap with a stored datagrid, which would open for editing. This "editable" datagrid component has a "close" button, which closes the datagrid, takes a snapshot of it and updates the image used in the textflow inline graphic. 

There was a thread on the tlf forums with another approach, but I didn't really look into it: http://forums.adobe.com/message/1065950#1065950

Best of luck!</description>
		<content:encoded><![CDATA[<p>Hi Michael,</p>
<p>I&#8217;m afraid it&#8217;s not possible to interact with inline components in edit mode.  The best I could come up with, was to capture the click (as explained in the post), then open an editable component &#8220;on top&#8221; of the text flow. I did this with datagrids, in the textflow, I would have a bitmapdata snapshot of the datagrid. I map this bitmap with a stored datagrid, which would open for editing. This &#8220;editable&#8221; datagrid component has a &#8220;close&#8221; button, which closes the datagrid, takes a snapshot of it and updates the image used in the textflow inline graphic. </p>
<p>There was a thread on the tlf forums with another approach, but I didn&#8217;t really look into it: <a href="http://forums.adobe.com/message/1065950#1065950" rel="nofollow">http://forums.adobe.com/message/1065950#1065950</a></p>
<p>Best of luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.sakri.net/blog/2009/03/26/mouse-interactions-on-text-layout-framework-inlinegraphicelements-in-editmode/#comment-1141</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Tue, 12 May 2009 11:32:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.sakri.net/blog/?p=263#comment-1141</guid>
		<description>Hi Sakri,

I added a TextInput element into the inlinegraphic. Do you have any idea how it can be made editable by the user. I can just add programmatic text to the textinput, but it is not possible to get the curser into the inlinegraphic textinput and write text. The textflow seems not to loose focus when I click on the inlinegraphic textinput.</description>
		<content:encoded><![CDATA[<p>Hi Sakri,</p>
<p>I added a TextInput element into the inlinegraphic. Do you have any idea how it can be made editable by the user. I can just add programmatic text to the textinput, but it is not possible to get the curser into the inlinegraphic textinput and write text. The textflow seems not to loose focus when I click on the inlinegraphic textinput.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett</title>
		<link>http://www.sakri.net/blog/2009/03/26/mouse-interactions-on-text-layout-framework-inlinegraphicelements-in-editmode/#comment-1069</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Fri, 27 Mar 2009 12:06:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.sakri.net/blog/?p=263#comment-1069</guid>
		<description>Hi Sakri

Thanks for the reply to my question on adding an event listener to an inline graphic. There is little concering this topic and your info will help. I am actually doing pretty much the same thing. I need to be able to edit an inline graphic (tables, graphs etc).and then have them reload into the textFlow.

I was originally thinking of using a display object like a movieClip as the inline graphic and then having buttons inside that clip to controll its contents.

I ran into many issues:

1) The inline graphic needs to be a url to be exported properly. If you export the the markup and re-import it the display object doesnt load into the textFlow. I resorted to using an external swf.

2)Although the buttons inside the clip respond to the mouse,The buttons have to be on the right half of the inline graphic (MovieClip) else the inline graphic is selected. the other thing is that the cursor doesnt change when over the button, it stays the I bar... not a major issue. I also cant get the buttons inside that clip to communicate with any other class except itself. ie if I wanted the button to open an editor for that particular inline graphic, I cant call a function in say the document class.

I now have to dow something pretty similar to what you're doing

in short... Thanks for the info</description>
		<content:encoded><![CDATA[<p>Hi Sakri</p>
<p>Thanks for the reply to my question on adding an event listener to an inline graphic. There is little concering this topic and your info will help. I am actually doing pretty much the same thing. I need to be able to edit an inline graphic (tables, graphs etc).and then have them reload into the textFlow.</p>
<p>I was originally thinking of using a display object like a movieClip as the inline graphic and then having buttons inside that clip to controll its contents.</p>
<p>I ran into many issues:</p>
<p>1) The inline graphic needs to be a url to be exported properly. If you export the the markup and re-import it the display object doesnt load into the textFlow. I resorted to using an external swf.</p>
<p>2)Although the buttons inside the clip respond to the mouse,The buttons have to be on the right half of the inline graphic (MovieClip) else the inline graphic is selected. the other thing is that the cursor doesnt change when over the button, it stays the I bar&#8230; not a major issue. I also cant get the buttons inside that clip to communicate with any other class except itself. ie if I wanted the button to open an editor for that particular inline graphic, I cant call a function in say the document class.</p>
<p>I now have to dow something pretty similar to what you&#8217;re doing</p>
<p>in short&#8230; Thanks for the info</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sakri</title>
		<link>http://www.sakri.net/blog/2009/03/26/mouse-interactions-on-text-layout-framework-inlinegraphicelements-in-editmode/#comment-1064</link>
		<dc:creator>sakri</dc:creator>
		<pubDate>Thu, 26 Mar 2009 12:10:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.sakri.net/blog/?p=263#comment-1064</guid>
		<description>I'm not using gumbo yet, this stuff works with SDK 3.2 and up!</description>
		<content:encoded><![CDATA[<p>I&#8217;m not using gumbo yet, this stuff works with SDK 3.2 and up!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benz</title>
		<link>http://www.sakri.net/blog/2009/03/26/mouse-interactions-on-text-layout-framework-inlinegraphicelements-in-editmode/#comment-1063</link>
		<dc:creator>Benz</dc:creator>
		<pubDate>Thu, 26 Mar 2009 11:48:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.sakri.net/blog/?p=263#comment-1063</guid>
		<description>Wow thanks for the fast response!
I think i need to switch to Gumbo right now :-)</description>
		<content:encoded><![CDATA[<p>Wow thanks for the fast response!<br />
I think i need to switch to Gumbo right now :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sakri</title>
		<link>http://www.sakri.net/blog/2009/03/26/mouse-interactions-on-text-layout-framework-inlinegraphicelements-in-editmode/#comment-1062</link>
		<dc:creator>sakri</dc:creator>
		<pubDate>Thu, 26 Mar 2009 11:46:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.sakri.net/blog/?p=263#comment-1062</guid>
		<description>Hi there Benjamin!

You can export the contents of your textFlow with the TextFilter like this:

TextFilter.export(_flow,TextFilter.TEXT_LAYOUT_FORMAT,ConversionType.XML_TYPE) as XML;

This is great for just text and links etc. But for inline graphics things get a little trickier... My RTE runs through the inline images, then it creates ids for each, then appends those ids to the exported XML.  I then pass this xml in a custom object that also contains the images as bytearrays and pass them to Java. The Java backend then stores the images and the xml, and appends the correct image path into the XML.

The TLF is nice if you're only using the inbuilt functionalities, you do have to do some acrobatics implement custom features like bullet lists etc. But the api is clean and provides a lot of possibilities.

Glad you liked the post :)</description>
		<content:encoded><![CDATA[<p>Hi there Benjamin!</p>
<p>You can export the contents of your textFlow with the TextFilter like this:</p>
<p>TextFilter.export(_flow,TextFilter.TEXT_LAYOUT_FORMAT,ConversionType.XML_TYPE) as XML;</p>
<p>This is great for just text and links etc. But for inline graphics things get a little trickier&#8230; My RTE runs through the inline images, then it creates ids for each, then appends those ids to the exported XML.  I then pass this xml in a custom object that also contains the images as bytearrays and pass them to Java. The Java backend then stores the images and the xml, and appends the correct image path into the XML.</p>
<p>The TLF is nice if you&#8217;re only using the inbuilt functionalities, you do have to do some acrobatics implement custom features like bullet lists etc. But the api is clean and provides a lot of possibilities.</p>
<p>Glad you liked the post <img src='http://www.sakri.net/blog/wp-includes/images/smilies/smile_sakri_blue.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benz</title>
		<link>http://www.sakri.net/blog/2009/03/26/mouse-interactions-on-text-layout-framework-inlinegraphicelements-in-editmode/#comment-1061</link>
		<dc:creator>Benz</dc:creator>
		<pubDate>Thu, 26 Mar 2009 11:38:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.sakri.net/blog/?p=263#comment-1061</guid>
		<description>Really cool stuff! It`s a shame i`ve not checked out the TLF yet :-(
One question. If you`re building a RTE how are you going to store the data and restore it later?
As I said i`ve not played with it yet so the question might be stupid but is it possible to store and restore the underlying format somehow?

Thanks
Benz</description>
		<content:encoded><![CDATA[<p>Really cool stuff! It`s a shame i`ve not checked out the TLF yet :-(<br />
One question. If you`re building a RTE how are you going to store the data and restore it later?<br />
As I said i`ve not played with it yet so the question might be stupid but is it possible to store and restore the underlying format somehow?</p>
<p>Thanks<br />
Benz</p>
]]></content:encoded>
	</item>
</channel>
</rss>
