<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<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>
	<lastBuildDate>Fri, 28 Oct 2011 05:36:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Dane</title>
		<link>http://www.sakri.net/blog/2009/03/26/mouse-interactions-on-text-layout-framework-inlinegraphicelements-in-editmode/#comment-1613</link>
		<dc:creator>Dane</dc:creator>
		<pubDate>Wed, 24 Nov 2010 07:20:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.sakri.net/blog/?p=263#comment-1613</guid>
		<description>Note - my previous comment applies to selectable TLF text, but not necessarily edit mode. I haven&#039;t tried it yet with edit mode.</description>
		<content:encoded><![CDATA[<p>Note &#8211; my previous comment applies to selectable TLF text, but not necessarily edit mode. I haven&#8217;t tried it yet with edit mode.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dane</title>
		<link>http://www.sakri.net/blog/2009/03/26/mouse-interactions-on-text-layout-framework-inlinegraphicelements-in-editmode/#comment-1612</link>
		<dc:creator>Dane</dc:creator>
		<pubDate>Wed, 24 Nov 2010 07:17:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.sakri.net/blog/?p=263#comment-1612</guid>
		<description>To get rid of the text cursor, try this on your DisplayObjects before inserting them:

sprite.addEventListener(MouseEvent.MOUSE_OVER, function(e:Event{e.stopPropagation()});

I haven&#039;t found a way to stop the object from being selected when clicked when embedded inline. So far the best hack I&#039;ve found is to add a placeholder InlineGraphicElement with an empty sprite inside sized the same as your object, then use localToGlobal/globalToLocal to position your object on top of the placeholder. Also important to set &#039;useMouseChildren&#039; to false on your object.</description>
		<content:encoded><![CDATA[<p>To get rid of the text cursor, try this on your DisplayObjects before inserting them:</p>
<p>sprite.addEventListener(MouseEvent.MOUSE_OVER, function(e:Event{e.stopPropagation()});</p>
<p>I haven&#8217;t found a way to stop the object from being selected when clicked when embedded inline. So far the best hack I&#8217;ve found is to add a placeholder InlineGraphicElement with an empty sprite inside sized the same as your object, then use localToGlobal/globalToLocal to position your object on top of the placeholder. Also important to set &#8216;useMouseChildren&#8217; to false on your object.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: christoph diefenthal</title>
		<link>http://www.sakri.net/blog/2009/03/26/mouse-interactions-on-text-layout-framework-inlinegraphicelements-in-editmode/#comment-1597</link>
		<dc:creator>christoph diefenthal</dc:creator>
		<pubDate>Mon, 16 Aug 2010 20:26:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.sakri.net/blog/?p=263#comment-1597</guid>
		<description>Hi,

@Michael: you can set the TextArea to selectable and editable false, as long as the focus is on a UIComponent in the TextFlow. 

http://tech.top21.de/techblog/drag-and-drop-images-into-flex-textarea.html

Did it myself here - worked great :-)</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>@Michael: you can set the TextArea to selectable and editable false, as long as the focus is on a UIComponent in the TextFlow. </p>
<p><a href="http://tech.top21.de/techblog/drag-and-drop-images-into-flex-textarea.html" rel="nofollow">http://tech.top21.de/techblog/drag-and-drop-images-into-flex-textarea.html</a></p>
<p>Did it myself here &#8211; worked great <img src='http://www.sakri.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </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-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&#039;m afraid it&#039;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 &quot;on top&quot; 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 &quot;editable&quot; datagrid component has a &quot;close&quot; 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&#039;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&#039;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&#039;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>
</channel>
</rss>

