<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
	>
<channel>
	<title>Comments on: OSMF &#8211; SpriteElement</title>
	<atom:link href="http://blog.six4rty.ch/2010/06/15/osmf-interactivespriteelement/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.six4rty.ch/2010/06/15/osmf-interactivespriteelement/</link>
	<description>Code &#38; Technology Aficionado - Come for the Flash, stay for more!</description>
	<lastBuildDate>Tue, 07 Feb 2012 13:29:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Denis Kokorin</title>
		<link>http://blog.six4rty.ch/2010/06/15/osmf-interactivespriteelement/comment-page-1/#comment-70781</link>
		<dc:creator>Denis Kokorin</dc:creator>
		<pubDate>Tue, 05 Oct 2010 10:47:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.six4rty.ch/?p=668#comment-70781</guid>
		<description>Sorry for late reply.
I have solved the problem. But I want to add to your post some points.

You can use InteractiveDisplayElement or OSMF class LayoutTargetSprite.
&lt;code&gt;
container.addMediaElement(InteractiveDisplayElement)&lt;/code&gt;
or 
&lt;code&gt;
container.layoutRenderer.addTarget(LayoutTargetSprite)
&lt;/code&gt;
To snap to DisplayObject of DisplayObjectTrait of MediaElement you should use InteractiveDisplayElement  and change it&#039;s size in accordance with DisplayObject (DisplayObjectTrait dispatches DisplayObjectEvent.MEDIA_SIZE_CHANGE).

To lay your InteractiveDisplayElement over other MediaElement use property index of LayoutMetadata (MediaElement&#039;s LayoutMetadata.index = 0 and  InteractiveDisplayElement&#039;s LayoutMetadata.index = 1).
Hope this will help someone.</description>
		<content:encoded><![CDATA[<p>Sorry for late reply.<br />
I have solved the problem. But I want to add to your post some points.</p>
<p>You can use InteractiveDisplayElement or OSMF class LayoutTargetSprite.<br />
<code><br />
container.addMediaElement(InteractiveDisplayElement)</code><br />
or<br />
<code><br />
container.layoutRenderer.addTarget(LayoutTargetSprite)<br />
</code><br />
To snap to DisplayObject of DisplayObjectTrait of MediaElement you should use InteractiveDisplayElement  and change it&#8217;s size in accordance with DisplayObject (DisplayObjectTrait dispatches DisplayObjectEvent.MEDIA_SIZE_CHANGE).</p>
<p>To lay your InteractiveDisplayElement over other MediaElement use property index of LayoutMetadata (MediaElement&#8217;s LayoutMetadata.index = 0 and  InteractiveDisplayElement&#8217;s LayoutMetadata.index = 1).<br />
Hope this will help someone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tiago</title>
		<link>http://blog.six4rty.ch/2010/06/15/osmf-interactivespriteelement/comment-page-1/#comment-70616</link>
		<dc:creator>Tiago</dc:creator>
		<pubDate>Thu, 30 Sep 2010 13:53:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.six4rty.ch/?p=668#comment-70616</guid>
		<description>mail me your file / project to tiago.dias[at]six4rty.ch</description>
		<content:encoded><![CDATA[<p>mail me your file / project to tiago.dias[at]six4rty.ch</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Denis Kokorin</title>
		<link>http://blog.six4rty.ch/2010/06/15/osmf-interactivespriteelement/comment-page-1/#comment-70606</link>
		<dc:creator>Denis Kokorin</dc:creator>
		<pubDate>Thu, 30 Sep 2010 10:39:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.six4rty.ch/?p=668#comment-70606</guid>
		<description>Thanks for reply Tiago.
Unfortunatly no.
My main question is: why UIComponent is not displayed when it is wrapped with InteractiveDisplayElement while Sprite is displayed.

Does UIComponent too complicated?

Also I have a very strange problem with positioning of InteractiveDisplayElement:
If I use ImageElement to test, everything is OK. But replacing ImageElement with InteractiveDisplayElement(Sprite) causes changing of Sprite&#039;s size and position.

I definetly stuck.</description>
		<content:encoded><![CDATA[<p>Thanks for reply Tiago.<br />
Unfortunatly no.<br />
My main question is: why UIComponent is not displayed when it is wrapped with InteractiveDisplayElement while Sprite is displayed.</p>
<p>Does UIComponent too complicated?</p>
<p>Also I have a very strange problem with positioning of InteractiveDisplayElement:<br />
If I use ImageElement to test, everything is OK. But replacing ImageElement with InteractiveDisplayElement(Sprite) causes changing of Sprite&#8217;s size and position.</p>
<p>I definetly stuck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tiago</title>
		<link>http://blog.six4rty.ch/2010/06/15/osmf-interactivespriteelement/comment-page-1/#comment-70593</link>
		<dc:creator>Tiago</dc:creator>
		<pubDate>Wed, 29 Sep 2010 20:34:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.six4rty.ch/?p=668#comment-70593</guid>
		<description>@Denis: I think the reply to your comments is either simple or very complicated, I assume heavily that if you don&#039;t use my InteractiveDisplayObjectTrait, the element will be positioned with it&#039;s default settings, when calling it&#039;s setSize function the element will be replaced based on the final completed layout, basically a refresh of the controllers and layout.

updateSprite only needs to be set once, and the element is either being called once and if there is a need to change the element you simply destroy it and set it up again.

Does it make sense?</description>
		<content:encoded><![CDATA[<p>@Denis: I think the reply to your comments is either simple or very complicated, I assume heavily that if you don&#8217;t use my InteractiveDisplayObjectTrait, the element will be positioned with it&#8217;s default settings, when calling it&#8217;s setSize function the element will be replaced based on the final completed layout, basically a refresh of the controllers and layout.</p>
<p>updateSprite only needs to be set once, and the element is either being called once and if there is a need to change the element you simply destroy it and set it up again.</p>
<p>Does it make sense?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Denis Kokorin</title>
		<link>http://blog.six4rty.ch/2010/06/15/osmf-interactivespriteelement/comment-page-1/#comment-70581</link>
		<dc:creator>Denis Kokorin</dc:creator>
		<pubDate>Wed, 29 Sep 2010 13:44:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.six4rty.ch/?p=668#comment-70581</guid>
		<description>In addition. I&#039;m using almost identical approach as your&#039;s. Just without InteractiveDisplayObjectTrait but with original DisplayObjectTrait.

In InteractiveDisplayElement&#039;s constructor I call
super();
addTrait( MediaTraitType.DISPLAY_OBJECT, new DisplayObjectTrait(sp, mediaWidth, mediaHeight) );

Why do you need an addition Sprite object in InteractiveDisplayElement.updateSprite? This function works correct only at first call. At second it only changes size.</description>
		<content:encoded><![CDATA[<p>In addition. I&#8217;m using almost identical approach as your&#8217;s. Just without InteractiveDisplayObjectTrait but with original DisplayObjectTrait.</p>
<p>In InteractiveDisplayElement&#8217;s constructor I call<br />
super();<br />
addTrait( MediaTraitType.DISPLAY_OBJECT, new DisplayObjectTrait(sp, mediaWidth, mediaHeight) );</p>
<p>Why do you need an addition Sprite object in InteractiveDisplayElement.updateSprite? This function works correct only at first call. At second it only changes size.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Denis Kokorin</title>
		<link>http://blog.six4rty.ch/2010/06/15/osmf-interactivespriteelement/comment-page-1/#comment-70580</link>
		<dc:creator>Denis Kokorin</dc:creator>
		<pubDate>Wed, 29 Sep 2010 13:35:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.six4rty.ch/?p=668#comment-70580</guid>
		<description>I have the same problem: my Sprite object is displayed, but it&#039;s positioning is very strange.
If I use UIComponent it is not displayed at all.

Tiago, describe please why it&#039;s so strange and how to lay Sprite or UIComponent over MediaElement with a DisplayObjectTrait.</description>
		<content:encoded><![CDATA[<p>I have the same problem: my Sprite object is displayed, but it&#8217;s positioning is very strange.<br />
If I use UIComponent it is not displayed at all.</p>
<p>Tiago, describe please why it&#8217;s so strange and how to lay Sprite or UIComponent over MediaElement with a DisplayObjectTrait.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tiago</title>
		<link>http://blog.six4rty.ch/2010/06/15/osmf-interactivespriteelement/comment-page-1/#comment-69593</link>
		<dc:creator>Tiago</dc:creator>
		<pubDate>Mon, 16 Aug 2010 16:09:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.six4rty.ch/?p=668#comment-69593</guid>
		<description>Because the mx.controls.Label has a base class of UIComponent and not Sprite. Change the Class extension to it and it should work fine, let me know the result.</description>
		<content:encoded><![CDATA[<p>Because the mx.controls.Label has a base class of UIComponent and not Sprite. Change the Class extension to it and it should work fine, let me know the result.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://blog.six4rty.ch/2010/06/15/osmf-interactivespriteelement/comment-page-1/#comment-69476</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 12 Aug 2010 11:41:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.six4rty.ch/?p=668#comment-69476</guid>
		<description>But... 

If I create a mx.controls.Label with a text and pass it to the InteractiveDisplayElement nothing is presented. It works with TextField but not with any Flex Component. Why?  :cry:</description>
		<content:encoded><![CDATA[<p>But&#8230; </p>
<p>If I create a mx.controls.Label with a text and pass it to the InteractiveDisplayElement nothing is presented. It works with TextField but not with any Flex Component. Why?  <img src='http://blog.six4rty.ch/wp-includes/images/smilies/icon_cry.gif' alt=':cry:' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: technologiez</title>
		<link>http://blog.six4rty.ch/2010/06/15/osmf-interactivespriteelement/comment-page-1/#comment-68453</link>
		<dc:creator>technologiez</dc:creator>
		<pubDate>Wed, 30 Jun 2010 15:14:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.six4rty.ch/?p=668#comment-68453</guid>
		<description>We know tons of work went into the framework. Time to celebrate and start creating some awesome media players! :idea:</description>
		<content:encoded><![CDATA[<p>We know tons of work went into the framework. Time to celebrate and start creating some awesome media players! <img src='http://blog.six4rty.ch/wp-includes/images/smilies/icon_idea.gif' alt=':idea:' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tweets that mention OSMF – SpriteElement &#124; Tiago's Weblog -- Topsy.com</title>
		<link>http://blog.six4rty.ch/2010/06/15/osmf-interactivespriteelement/comment-page-1/#comment-68020</link>
		<dc:creator>Tweets that mention OSMF – SpriteElement &#124; Tiago's Weblog -- Topsy.com</dc:creator>
		<pubDate>Wed, 16 Jun 2010 01:47:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.six4rty.ch/?p=668#comment-68020</guid>
		<description>[...] This post was mentioned on Twitter by MojoGeeks, Juan. Juan said: OSMF – SpriteElement http://dlvr.it/1l0Zx [...]</description>
		<content:encoded><![CDATA[<p>[...] This post was mentioned on Twitter by MojoGeeks, Juan. Juan said: OSMF – SpriteElement <a href="http://dlvr.it/1l0Zx" rel="nofollow">http://dlvr.it/1l0Zx</a> [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

