<?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: FullScreen in Flash CS4 / AS3</title>
	<atom:link href="http://www.fabiobiondi.com/blog/2009/08/fullscreen-in-flash-cs4-as3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fabiobiondi.com/blog/2009/08/fullscreen-in-flash-cs4-as3/</link>
	<description>Adobe, Actionscript, Flex, Flash, Air, FlashLite, scripts and tutorial</description>
	<pubDate>Fri, 18 May 2012 22:13:02 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Fabio Biondi</title>
		<link>http://www.fabiobiondi.com/blog/2009/08/fullscreen-in-flash-cs4-as3/comment-page-1/#comment-756</link>
		<dc:creator>Fabio Biondi</dc:creator>
		<pubDate>Wed, 28 Jul 2010 22:09:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.fabiobiondi.com/blog/?p=335#comment-756</guid>
		<description>Ciao Miguel,

prova ad inserire il seguente codice nel costruttore della document class (o nel primo frame del tuo .fla, dipende da come lavori)

this.stage.align =  StageAlign.TOP_LEFT
this.stage.scaleMode = StageScaleMode.NO_SCALE;

Puoi anche cambiare il tipo di allineamento a seconda delle tue esigenze.

Inoltre devi andare nel menu File --&gt; Publish Settings --&gt; Scheda HTML e imposta il parametro "Dimension" a "Percent" settando width e height al 100%

Se poi vorrai riposizionare i tuoi elementi per centrarli o allinearli a sinistra o destra potrai usare un codice simile al seguente:


this.addEventListener(Event.RESIZE, onResize)

private function onResize(e:Event=null):void 
{
  // allineamento centrale
 oggetto1.x = this.stage.stageWidth/2 - oggeetto1.width/2

// allineamento a destra
 oggetto2.x = this.stage.stageWidth - oggetto2.width

// allineamento a sinistra
 oggetto3.x = 0
}</description>
		<content:encoded><![CDATA[<p>Ciao Miguel,</p>
<p>prova ad inserire il seguente codice nel costruttore della document class (o nel primo frame del tuo .fla, dipende da come lavori)</p>
<p>this.stage.align =  StageAlign.TOP_LEFT<br />
this.stage.scaleMode = StageScaleMode.NO_SCALE;</p>
<p>Puoi anche cambiare il tipo di allineamento a seconda delle tue esigenze.</p>
<p>Inoltre devi andare nel menu File &#8211;> Publish Settings &#8211;> Scheda HTML e imposta il parametro &#8220;Dimension&#8221; a &#8220;Percent&#8221; settando width e height al 100%</p>
<p>Se poi vorrai riposizionare i tuoi elementi per centrarli o allinearli a sinistra o destra potrai usare un codice simile al seguente:</p>
<p>this.addEventListener(Event.RESIZE, onResize)</p>
<p>private function onResize(e:Event=null):void<br />
{<br />
  // allineamento centrale<br />
 oggetto1.x = this.stage.stageWidth/2 - oggeetto1.width/2</p>
<p>// allineamento a destra<br />
 oggetto2.x = this.stage.stageWidth - oggetto2.width</p>
<p>// allineamento a sinistra<br />
 oggetto3.x = 0<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miguel</title>
		<link>http://www.fabiobiondi.com/blog/2009/08/fullscreen-in-flash-cs4-as3/comment-page-1/#comment-755</link>
		<dc:creator>Miguel</dc:creator>
		<pubDate>Wed, 28 Jul 2010 04:30:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.fabiobiondi.com/blog/?p=335#comment-755</guid>
		<description>Ciao Fabio, scusa il disturbo, io vorrei avere un full screen ma non scalare le misure del swf, non so' se mi spiego bene, cio'e, ho un swf di 700x300 e quando apro il HTML vorrei que la schermata fosse full screen, ma il swf restase 700 x 300.
Se mi sono spiegato e hai qualche dritta ti ringraziero' moltissimo.

Ciao

miguel

P.S. Uso CS4 ed AS3</description>
		<content:encoded><![CDATA[<p>Ciao Fabio, scusa il disturbo, io vorrei avere un full screen ma non scalare le misure del swf, non so&#8217; se mi spiego bene, cio&#8217;e, ho un swf di 700&#215;300 e quando apro il HTML vorrei que la schermata fosse full screen, ma il swf restase 700 x 300.<br />
Se mi sono spiegato e hai qualche dritta ti ringraziero&#8217; moltissimo.</p>
<p>Ciao</p>
<p>miguel</p>
<p>P.S. Uso CS4 ed AS3</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fabio Biondi</title>
		<link>http://www.fabiobiondi.com/blog/2009/08/fullscreen-in-flash-cs4-as3/comment-page-1/#comment-691</link>
		<dc:creator>Fabio Biondi</dc:creator>
		<pubDate>Sun, 13 Dec 2009 12:22:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.fabiobiondi.com/blog/?p=335#comment-691</guid>
		<description>eh no ... to accomplish what you're asking me you should manage the resize Event and fix the image dimensions every time the event is fired. If you will do it, when you'll enable the Fullscreen mode, the image will resize too in according with the stage dimension.

So, manage full screen images, is completly another task to manage in a different way....

F.</description>
		<content:encoded><![CDATA[<p>eh no &#8230; to accomplish what you&#8217;re asking me you should manage the resize Event and fix the image dimensions every time the event is fired. If you will do it, when you&#8217;ll enable the Fullscreen mode, the image will resize too in according with the stage dimension.</p>
<p>So, manage full screen images, is completly another task to manage in a different way&#8230;.</p>
<p>F.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.fabiobiondi.com/blog/2009/08/fullscreen-in-flash-cs4-as3/comment-page-1/#comment-690</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Sun, 13 Dec 2009 10:54:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.fabiobiondi.com/blog/?p=335#comment-690</guid>
		<description>Hi,
Does the above also scale up the content of the flash movie or is it just the stage area/viewport that gets expanded. E.g., can I use the above fullscreen code to automatically provide larger images in an image gallery?
Ciao!
/Peter</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Does the above also scale up the content of the flash movie or is it just the stage area/viewport that gets expanded. E.g., can I use the above fullscreen code to automatically provide larger images in an image gallery?<br />
Ciao!<br />
/Peter</p>
]]></content:encoded>
	</item>
</channel>
</rss>

