<?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: Dynamic Positioning</title>
	<atom:link href="http://blog.soulwire.co.uk/code/dynamic-positioning-part-one/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.soulwire.co.uk/code/dynamic-positioning-part-one</link>
	<description>Art + Technology</description>
	<lastBuildDate>Thu, 06 Oct 2011 13:58:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Pol</title>
		<link>http://blog.soulwire.co.uk/code/dynamic-positioning-part-one/comment-page-3#comment-31</link>
		<dc:creator>Pol</dc:creator>
		<pubDate>Fri, 16 Oct 2009 21:47:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.soulwire.co.uk/?p=8#comment-31</guid>
		<description>Guys try this one. I just bought it. Has some awsome features that fould be great for use in alignment. Like loading files externally and xml
http://flashden.net/item/advanced-positioning-xml-auto-align-on-resize-/63717?ref=Enabled</description>
		<content:encoded><![CDATA[<p>Guys try this one. I just bought it. Has some awsome features that fould be great for use in alignment. Like loading files externally and xml<br />
<a rel="nofollow" href="http://blog.soulwire.co.uk//goto/http://flashden.net/item/advanced-positioning-xml-auto-align-on-resize-/63717?ref=Enabled"  rel="nofollow">http://flashden.net/item/advanced-positioning-xml-auto-align-on-resize-/63717?ref=Enabled</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jenkah</title>
		<link>http://blog.soulwire.co.uk/code/dynamic-positioning-part-one/comment-page-2#comment-30</link>
		<dc:creator>jenkah</dc:creator>
		<pubDate>Fri, 05 Jun 2009 07:54:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.soulwire.co.uk/?p=8#comment-30</guid>
		<description>Hi SOulwire. I have using this script for a CD presentation, and it works well but just with a bottom object. Even when Im using &quot;TL&quot; every objetcs, except the bottom, stills in the same place. Im a grapphic designer but dont a programmer, for that maybe I got some errors. This is the lines
&lt;code&gt;&lt;pre lang=&quot;actionscript&quot;&gt; [
function setStage ()
{
	var sw:Number = Stage.width;
	var sh:Number = Stage.height;

/*
Rule for Top/ Right alignment
*/
	cerrar_btn._x = sw - (cerrar_btn.Stage.width + margin);
	cerrar_btn._y = margin
/*
Rule for Bottom / Center alignment
*/
	back_mc._x = sw / 2 - back_mc._width / 2;
	back_mc._y = sh - (back_mc._height + margin);
/*
Rule for Left / left alignment
*/
	pleca_mc._x = margin;
	pleca_mc._y = margin;
/*
Rule for Center / Middle alignment
*/
	menu_mc._x = sw / 2 - menu_mc (Stage.width) / 2;
	menu_mc._y = sh / 2 - menu_mc (Stage.height) / 2;
}

// Add a listener
var stageListener:Object = new Object ();
Stage.addListener (stageListener);

// When the Stage dimensions change...
stageListener.onResize = setStage;

// Call our function to set it all up right!
setStage ();
 ] &lt;/pre&gt;&lt;/code&gt;

I will apreciate your help a lot.

Jenkah</description>
		<content:encoded><![CDATA[<p>Hi SOulwire. I have using this script for a CD presentation, and it works well but just with a bottom object. Even when Im using &#8220;TL&#8221; every objetcs, except the bottom, stills in the same place. Im a grapphic designer but dont a programmer, for that maybe I got some errors. This is the lines<br />
<code>
<pre lang="actionscript"> [
function setStage ()
{
	var sw:Number = Stage.width;
	var sh:Number = Stage.height;

/*
Rule for Top/ Right alignment
*/
	cerrar_btn._x = sw - (cerrar_btn.Stage.width + margin);
	cerrar_btn._y = margin
/*
Rule for Bottom / Center alignment
*/
	back_mc._x = sw / 2 - back_mc._width / 2;
	back_mc._y = sh - (back_mc._height + margin);
/*
Rule for Left / left alignment
*/
	pleca_mc._x = margin;
	pleca_mc._y = margin;
/*
Rule for Center / Middle alignment
*/
	menu_mc._x = sw / 2 - menu_mc (Stage.width) / 2;
	menu_mc._y = sh / 2 - menu_mc (Stage.height) / 2;
}

// Add a listener
var stageListener:Object = new Object ();
Stage.addListener (stageListener);

// When the Stage dimensions change...
stageListener.onResize = setStage;

// Call our function to set it all up right!
setStage ();
 ] </pre>
<p></code></p>
<p>I will apreciate your help a lot.</p>
<p>Jenkah</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://blog.soulwire.co.uk/code/dynamic-positioning-part-one/comment-page-2#comment-29</link>
		<dc:creator>John</dc:creator>
		<pubDate>Fri, 24 Apr 2009 22:33:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.soulwire.co.uk/?p=8#comment-29</guid>
		<description>What I have to change to the movie clip stays at the bottom left of the screen?</description>
		<content:encoded><![CDATA[<p>What I have to change to the movie clip stays at the bottom left of the screen?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ActionScript 3 Dynamic Positioning &#171; Bauhouse</title>
		<link>http://blog.soulwire.co.uk/code/dynamic-positioning-part-one/comment-page-2#comment-28</link>
		<dc:creator>ActionScript 3 Dynamic Positioning &#171; Bauhouse</dc:creator>
		<pubDate>Wed, 11 Feb 2009 20:20:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.soulwire.co.uk/?p=8#comment-28</guid>
		<description>[...] resource of amazing ActionScript examples from Justin Windle at Soulwire. He had an example of dynamic positioning to achieve a full screen Flash layout. Unfortunately, it was ActionScript 2.0 and I am busy [...]</description>
		<content:encoded><![CDATA[<p>[...] resource of amazing ActionScript examples from Justin Windle at Soulwire. He had an example of dynamic positioning to achieve a full screen Flash layout. Unfortunately, it was ActionScript 2.0 and I am busy [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Soulwire</title>
		<link>http://blog.soulwire.co.uk/code/dynamic-positioning-part-one/comment-page-2#comment-27</link>
		<dc:creator>Soulwire</dc:creator>
		<pubDate>Sat, 22 Nov 2008 14:38:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.soulwire.co.uk/?p=8#comment-27</guid>
		<description>;) Good stuff</description>
		<content:encoded><![CDATA[<p>;) Good stuff</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TIMEOUT</title>
		<link>http://blog.soulwire.co.uk/code/dynamic-positioning-part-one/comment-page-2#comment-26</link>
		<dc:creator>TIMEOUT</dc:creator>
		<pubDate>Sat, 22 Nov 2008 14:21:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.soulwire.co.uk/?p=8#comment-26</guid>
		<description>Hi, we finally find a solution by just replacing the parameter    videoMC._width / 2;  by the .swf ._width / 2 and everything stay in place...

Good continuation


&lt;code&gt;&lt;pre lang=&quot;actionscript&quot;&gt; function setStage ()
{
	var sw:Number = Stage.width;
	var sh:Number = Stage.height;


	videoMC._x = sw / 2 - 900/ 2;
	videoMC._y = sh / 2 - 400 / 2;

//VideoMC component
}

// Add a listener
var stageListener:Object = new Object ();
Stage.addListener (stageListener);

// When the Stage dimensions change...
stageListener.onResize = setStage;

// Call our function to set it all up right!
setStage ();&lt;/pre&gt;&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hi, we finally find a solution by just replacing the parameter    videoMC._width / 2;  by the .swf ._width / 2 and everything stay in place&#8230;</p>
<p>Good continuation</p>
<p><code>
<pre lang="actionscript"> function setStage ()
{
	var sw:Number = Stage.width;
	var sh:Number = Stage.height;

	videoMC._x = sw / 2 - 900/ 2;
	videoMC._y = sh / 2 - 400 / 2;

//VideoMC component
}

// Add a listener
var stageListener:Object = new Object ();
Stage.addListener (stageListener);

// When the Stage dimensions change...
stageListener.onResize = setStage;

// Call our function to set it all up right!
setStage ();</pre>
<p></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Soulwire</title>
		<link>http://blog.soulwire.co.uk/code/dynamic-positioning-part-one/comment-page-2#comment-25</link>
		<dc:creator>Soulwire</dc:creator>
		<pubDate>Sat, 11 Oct 2008 12:33:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.soulwire.co.uk/?p=8#comment-25</guid>
		<description>Timeout

If you&#039;re loading in an external SWF, when you reference is width or height you will get the width or height of its &lt;strong&gt;content&lt;/strong&gt;, not of the SWF&#039;s stage as it would appear in the Flash IDE. For example, if you have a SWF thats 400 x 400, but only has a 100 x 100 square on its stage, when you load it into another SWF it’s width will return 100.

Could this be the problem?</description>
		<content:encoded><![CDATA[<p>Timeout</p>
<p>If you&#8217;re loading in an external SWF, when you reference is width or height you will get the width or height of its <strong>content</strong>, not of the SWF&#8217;s stage as it would appear in the Flash IDE. For example, if you have a SWF thats 400 x 400, but only has a 100 x 100 square on its stage, when you load it into another SWF it’s width will return 100.</p>
<p>Could this be the problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TIMEOUT</title>
		<link>http://blog.soulwire.co.uk/code/dynamic-positioning-part-one/comment-page-2#comment-24</link>
		<dc:creator>TIMEOUT</dc:creator>
		<pubDate>Tue, 07 Oct 2008 23:10:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.soulwire.co.uk/?p=8#comment-24</guid>
		<description>WOrks NoT So FinE aT LeAst ! don&#039;t blame me but i&#039;ve tried  all the tricks my froggybrain allowed me!
If my loaded .swf contains some code or component the videoMC keeps out of the scene (yeah i can see it on top so far from the center....)
i got damn with that mad style of resizable browser...can&#039;t tell you how many hours i&#039;ve trie to solve by myself an apparent easy solution - here&#039;s the code


&lt;code&gt;&lt;pre lang=&quot;actionscript&quot;&gt;// Setup the Stage properties
Stage.scaleMode = &quot;noScale&quot;;
Stage.align = &quot;TL&quot;;


// The MC being positioned inside the onResize function
var videoMC:MovieClip;
// Create a holder clip inside of it
var holder:MovieClip = videoMC.createEmptyMovieClip( &quot;holder&quot;, 0);
// Load your SWF or JPG into that
holder.loadMovie(&quot;test.swf&quot;);



function setStage ()
{
	var sw:Number = Stage.width;
	var sh:Number = Stage.height;


	videoMC._x = sw / 2 - videoMC._width / 2;
	videoMC._y = sh / 2 - videoMC._height / 2;
}

// Add a listener
var stageListener:Object = new Object ();
Stage.addListener (stageListener);

// When the Stage dimensions change...
stageListener.onResize = setStage;

// Call our function to set it all up right!
setStage ();&lt;/pre&gt;&lt;/code&gt;


Here I am - tHkX 4 your Help</description>
		<content:encoded><![CDATA[<p>WOrks NoT So FinE aT LeAst ! don&#8217;t blame me but i&#8217;ve tried  all the tricks my froggybrain allowed me!<br />
If my loaded .swf contains some code or component the videoMC keeps out of the scene (yeah i can see it on top so far from the center&#8230;.)<br />
i got damn with that mad style of resizable browser&#8230;can&#8217;t tell you how many hours i&#8217;ve trie to solve by myself an apparent easy solution &#8211; here&#8217;s the code</p>
<p><code>
<pre lang="actionscript">// Setup the Stage properties
Stage.scaleMode = "noScale";
Stage.align = "TL";

// The MC being positioned inside the onResize function
var videoMC:MovieClip;
// Create a holder clip inside of it
var holder:MovieClip = videoMC.createEmptyMovieClip( "holder", 0);
// Load your SWF or JPG into that
holder.loadMovie("test.swf");

function setStage ()
{
	var sw:Number = Stage.width;
	var sh:Number = Stage.height;

	videoMC._x = sw / 2 - videoMC._width / 2;
	videoMC._y = sh / 2 - videoMC._height / 2;
}

// Add a listener
var stageListener:Object = new Object ();
Stage.addListener (stageListener);

// When the Stage dimensions change...
stageListener.onResize = setStage;

// Call our function to set it all up right!
setStage ();</pre>
<p></code></p>
<p>Here I am &#8211; tHkX 4 your Help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TIMEOUT</title>
		<link>http://blog.soulwire.co.uk/code/dynamic-positioning-part-one/comment-page-2#comment-23</link>
		<dc:creator>TIMEOUT</dc:creator>
		<pubDate>Thu, 25 Sep 2008 07:27:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.soulwire.co.uk/?p=8#comment-23</guid>
		<description>It works fine, thanks a lot ! good continuation !</description>
		<content:encoded><![CDATA[<p>It works fine, thanks a lot ! good continuation !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Soulwire</title>
		<link>http://blog.soulwire.co.uk/code/dynamic-positioning-part-one/comment-page-2#comment-22</link>
		<dc:creator>Soulwire</dc:creator>
		<pubDate>Tue, 16 Sep 2008 17:16:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.soulwire.co.uk/?p=8#comment-22</guid>
		<description>If you load an image or swf into a container MovieClip, when the asset loads you will loose your refference to the original clip.

Try adding an extra MovieClip inside your existing MovieClip and then load the swf into that.

For example:

&lt;code&gt;&lt;pre lang=&quot;actionscript&quot;&gt;
 // The MC being positioned inside the onResize function
var videoMC:MovieClip;
// Create a holder clip inside of it
var holder:MovieClip = videoMC.createEmptyMovieClip( &#039;holder&#039;, 0 );
// Load your SWF or JPG into that
holder.loadMovie( /* etc... */ );
&lt;/pre&gt;&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>If you load an image or swf into a container MovieClip, when the asset loads you will loose your refference to the original clip.</p>
<p>Try adding an extra MovieClip inside your existing MovieClip and then load the swf into that.</p>
<p>For example:</p>
<p><code>
<pre lang="actionscript">
 // The MC being positioned inside the onResize function
var videoMC:MovieClip;
// Create a holder clip inside of it
var holder:MovieClip = videoMC.createEmptyMovieClip( 'holder', 0 );
// Load your SWF or JPG into that
holder.loadMovie( /* etc... */ );
</pre>
<p></code></p>
]]></content:encoded>
	</item>
</channel>
</rss>

