<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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>Scacci, Flex, Flash e ActionScript</title>
	<atom:link href="http://www.iwebcreate.net/blog/index.php?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.iwebcreate.net/blog</link>
	<description></description>
	<pubDate>Wed, 07 Apr 2010 16:58:06 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Overview componenti Flash Catalyst</title>
		<link>http://www.iwebcreate.net/blog/?p=98</link>
		<comments>http://www.iwebcreate.net/blog/?p=98#comments</comments>
		<pubDate>Fri, 29 Jan 2010 14:34:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Flash Catalyst]]></category>

		<guid isPermaLink="false">http://www.iwebcreate.net/blog/?p=98</guid>
		<description><![CDATA[Ecco un thema da usare con Flex4 o Flash Builder, interamente creato con Flash Catalyst Beta. Questo thema è stato interamente creato con FC, infatti le grafiche usate per creare i componenti sono state create con gli strumenti di disegno che porta in dotazione Flash Catalyst. Qui vedremo i componenti skinnati, non entreremo nel dettaglio [...]]]></description>
			<content:encoded><![CDATA[<p>Ecco un thema da usare con Flex4 o Flash Builder, interamente creato con Flash Catalyst Beta. Questo thema è stato interamente creato con FC, infatti le grafiche usate per creare i componenti sono state create con gli strumenti di disegno che porta in dotazione Flash Catalyst. Qui vedremo i componenti skinnati, non entreremo nel dettaglio della creazione dei componenti.  Ecco una lista dei componenti usati in questo file:</p>
<ul>
<li>Scroll Panel</li>
<li>Data List</li>
<li>Vertical Slider</li>
<li>Button</li>
<li>Text Input</li>
<li>Radio Button</li>
<li>Check Box</li>
<li>Horizontal Slider</li>
<li>Toggle Button</li>
<li>Vertical ScrollBar</li>
</ul>
<p>Per alcune informazioni su Flash Catalyst Beta potete anche consultare questo <a href="http://www.actionscript.it/it/index.cfm/tutorials/flash-catalyst-ma-chi-e-questo-illustre-sconosciuto/" target="_blank">articolo</a>.  <a href="http://www.iwebcreate.net/fc_lab/theme/file/Main.html" target="_blank"></a></p>
<p><a href="http://www.iwebcreate.net/fc_lab/theme/file/Main.html" target="_blank">Ecco una preview dei componenti</a></p>
<p><a href="http://www.iwebcreate.net/fc_lab/theme/file/Main.html" target="_blank"></a> <img class="alignnone" title="Flash Catalist Component" src="http://www.iwebcreate.net/fc_lab/images/fcimg.jpg" alt="" width="550" height="242" /></p>
<p><a href="http://www.iwebcreate.net/fc_lab/theme/theme.fxp.zip">File sorgente FXP</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwebcreate.net/blog/?feed=rss2&amp;p=98</wfw:commentRss>
		</item>
		<item>
		<title>Hacking Css</title>
		<link>http://www.iwebcreate.net/blog/?p=87</link>
		<comments>http://www.iwebcreate.net/blog/?p=87#comments</comments>
		<pubDate>Thu, 26 Nov 2009 06:35:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[XHTML+CSS]]></category>

		<category><![CDATA[Hack]]></category>

		<category><![CDATA[IE7]]></category>

		<guid isPermaLink="false">http://www.iwebcreate.net/blog/?p=87</guid>
		<description><![CDATA[In questo breve tutorial vedremo alcuni workaround e filtri per creare dichiarazioni specifiche per i browser.
Il primo esempio mostra come creare una regola specifica solo per IE7 (internet explorer 7):

?View Code CSS*:first-child+html .textformt &#123;font-size: 20px;&#125;

Nel secondo esempio vedremo come creare una regola specifica solo per IE6(internet explorer 6):

?View Code CSS* html .textformt &#123;font-size: 15px;&#125;

Nel terzo [...]]]></description>
			<content:encoded><![CDATA[<p>In questo breve tutorial vedremo alcuni workaround e filtri per creare dichiarazioni specifiche per i browser.</p>
<p>Il primo esempio mostra come creare una regola specifica solo per IE7 (internet explorer 7):</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p87code5'); return false;">View Code</a> CSS</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p875"><td class="code" id="p87code5"><pre class="css" style="font-family:monospace;"><span style="color: #00AA00;">*</span><span style="color: #3333ff;">:first-child</span><span style="color: #00AA00;">+</span>html <span style="color: #6666ff;">.textformt</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Nel secondo esempio vedremo come creare una regola specifica solo per IE6(internet explorer 6):</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p87code6'); return false;">View Code</a> CSS</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p876"><td class="code" id="p87code6"><pre class="css" style="font-family:monospace;"><span style="color: #00AA00;">*</span> html <span style="color: #6666ff;">.textformt</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Nel terzo esempio vedremo come creare una regola specifica solo per IE5(internet explorer 5):</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p87code7'); return false;">View Code</a> CSS</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p877"><td class="code" id="p87code7"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.textformt</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">font-size</span> <span style="color: #808080; font-style: italic;">/**/</span><span style="color: #00AA00;">:</span> <span style="color: #933;">12px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Nell&#8217;ultimo esempio vedremo come creare una regola che escluda IE e che venga applicata invece a tutti gli altri browser (Safari, Firefox, Opera):</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p87code8'); return false;">View Code</a> CSS</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p878"><td class="code" id="p87code8"><pre class="css" style="font-family:monospace;"><span style="color: #00AA00;">*</span>|html <span style="color: #6666ff;">.textformt</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Alcuni link:</p>
<ul>
<li><a href="http://www.dynamicsitesolutions.com/css/filters/support-chart/" target="_blank">Tabella - CSS Filters/Hacks</a></li>
<li><a title="CSS e Hack" href="http://www.webdevout.net/css-hack#in_css" target="_blank">CSS e Hacks</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.iwebcreate.net/blog/?feed=rss2&amp;p=87</wfw:commentRss>
		</item>
		<item>
		<title>Bug dell&#8217;Extension Manager di Flash CS4</title>
		<link>http://www.iwebcreate.net/blog/?p=84</link>
		<comments>http://www.iwebcreate.net/blog/?p=84#comments</comments>
		<pubDate>Sun, 22 Nov 2009 11:55:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Flash]]></category>

		<category><![CDATA[Flash CS4]]></category>

		<guid isPermaLink="false">http://www.iwebcreate.net/blog/?p=84</guid>
		<description><![CDATA[Installando le estensioni di Flash CS3 su Flash CS4 ho notato che i componenti installati con l&#8217;Extension Manager di Adobe non si avviano e non appaino nel pannello Components, questo succede sia con le versioni di Flash CS4 in inglese sia con quello non-English.
Per aggirare il bug dobbiamo procedere nel seguente modo:

Installare l&#8217;estensione con Extension [...]]]></description>
			<content:encoded><![CDATA[<p>Installando le estensioni di Flash CS3 su Flash CS4 ho notato che i componenti installati con l&#8217;Extension Manager di Adobe non si avviano e non appaino nel pannello Components, questo succede sia con le versioni di Flash CS4 in inglese sia con quello non-English.</p>
<p>Per aggirare il bug dobbiamo procedere nel seguente modo:</p>
<ul>
<li>Installare l&#8217;estensione con Extension Manager</li>
<li>Chiudere Extension Manager</li>
<li>Aprire Flash CS4</li>
<li>Creare un nuovo file Actionscript 3.0  (New–&gt;Actionscript 3.0) (Nuovo–&gt;Actionscript 3.0)</li>
<li>Andare su Help–&gt;Manage Extensions… (Help–&gt;Gestione Estensioni)</li>
<li>Fare il check dell&#8217;estensione che si vuole far apparire</li>
<li>Riavviare Flash CS4</li>
<li>Andare sul Pannello Componenti e verificare che sia tutto apposto</li>
</ul>
<p>Questo bug lo riscontrato sulla versione di Flash CS4 per Mac OSX</p>
<div id="wrtranslator-translate" style="left: 100px; top: -44px;"><a href="http://www.wordreference.com/iten/Installed extensions with#Otbl" target="_blank">Tradurr</a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.iwebcreate.net/blog/?feed=rss2&amp;p=84</wfw:commentRss>
		</item>
		<item>
		<title>Flash camp on the beach</title>
		<link>http://www.iwebcreate.net/blog/?p=82</link>
		<comments>http://www.iwebcreate.net/blog/?p=82#comments</comments>
		<pubDate>Mon, 17 Aug 2009 05:45:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Meetings]]></category>

		<category><![CDATA[Flashcamp]]></category>

		<guid isPermaLink="false">http://www.iwebcreate.net/blog/?p=82</guid>
		<description><![CDATA[Appuntamento per il 5 settembre per una giornata gratuita di formazione sulla flash platform. Il meeting organizzato dall&#8217;Adobe User Group flex-developers.org, propone una serie di seminari mirati sulle varie tecnologie Adobe e sui nuovi prodotti come Flex 4  e Flash Catalyst. Il meeting si svolgerà presso:
Hotel Sporting
Viale Vespucci, 20
Rimini, Emilia Romagna 47900
Italy
è possibile registrarsi da [...]]]></description>
			<content:encoded><![CDATA[<p>Appuntamento per il <strong>5 settembre</strong> per una <strong>giornata gratuita</strong> di formazione sulla flash platform. Il meeting organizzato dall&#8217;Adobe User Group <strong>flex-developers.org</strong>, propone una serie di seminari mirati sulle varie tecnologie Adobe e sui nuovi prodotti come Flex 4  e Flash Catalyst. Il meeting si svolgerà presso:</p>
<p>Hotel Sporting<br />
Viale Vespucci, 20<br />
Rimini, Emilia Romagna 47900<br />
Italy</p>
<p>è possibile registrarsi da <a href="http://flashcamponthebeach.eventbrite.com/" target="_blank">qui</a>, per maggiori dettagli sul programma si possono avere da <a href="http://www.flashcamp.it/camps/flex-camp-on-the-beach/" target="_blank">qui</a>.</p>
<p>Gli speaker:</p>
<ul>
<li>Jaco Pixeldump (pixeldump.org)</li>
<li>John Lindquist (http://pv3d.org, http://flex4.org)</li>
<li>Joost Nuijten</li>
<li>Eros Marcon (actionscript.it)</li>
<li>Simon Slooten (www.simonslooten.com)</li>
<li>Matteo Lanzi (aka Gallo_Teo flex-developers.org)</li>
<li>Adam Flater (http://adamflater.blogspot.com/)</li>
<li>Michael Labriola (http://blogs.digitalprimates.net/codeSlinger/)</li>
<li>Gabriele Farina</li>
<li>Alessandro Crugnola (http://www.sephiroth.it)</li>
<li>Michael Plank (http://www.powerflasher.de)</li>
<li>Rich Tretola (http://blog.everythingflex.com/)</li>
<li>Matt Chotin (http://blogs.adobe.com/mchotin/)</li>
<li>Giorgio Natili (flex-developers.org)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.iwebcreate.net/blog/?feed=rss2&amp;p=82</wfw:commentRss>
		</item>
		<item>
		<title>Usiamo il Threshold</title>
		<link>http://www.iwebcreate.net/blog/?p=58</link>
		<comments>http://www.iwebcreate.net/blog/?p=58#comments</comments>
		<pubDate>Sun, 14 Jun 2009 08:29:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Actionscript 3.0]]></category>

		<category><![CDATA[Bitmap]]></category>

		<category><![CDATA[BitmapData API]]></category>

		<category><![CDATA[Threshold]]></category>

		<guid isPermaLink="false">http://www.iwebcreate.net/blog/?p=58</guid>
		<description><![CDATA[Il supporto del Threshold è stato introdotto con la versione 8 del Flash Player.
Il metodo threshold( ) è uno dei metodi più complessi nel panorama delle BitmapData API, ma abbastanza potente una volta che abbiamo capito come lavora. Il metodo usa due BitmapData:

destBitmap, che rappresenta la bitmap che sarà alterata.
sourceBitmap , che è l&#8217;altra bitmap [...]]]></description>
			<content:encoded><![CDATA[<p>Il supporto del Threshold è stato introdotto con la <strong>versione 8</strong> del <strong>Flash Player.</strong></p>
<p>Il <strong>metodo threshold( )</strong> è uno dei metodi più complessi nel panorama delle <strong>BitmapData API</strong>, ma abbastanza potente una volta che abbiamo capito come lavora. Il metodo usa due BitmapData:</p>
<ul>
<li><em><strong>destBitmap</strong></em>, che rappresenta la bitmap che sarà alterata.</li>
<li><em><strong>sourceBitmap</strong></em> , che è l&#8217;altra bitmap che riceve dei parametri che sono gli sono stati passati. Questo metodo usa i pixel di questa bitmap per fare i suoi calcoli.</li>
</ul>
<p>Il metodo confronta ogni pixel nel <em><strong>sourceBitmap</strong></em> contro un valore specificato, usando uno dei sei operatori confrontati. Per ulteriori approfondimenti si può consultare il <a title="LiveDocs Adobe" href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/BitmapData.html" target="_blank">LiveDocs di Adobe</a>.</p>
<p>Ecco in breve la sintassi del metodo:<br />
<em>destBitmap</em>.threshold(sourceBitmap,</p>
<blockquote><p>sourceRect,<br />
destPoint,<br />
operation,<br />
threshold,<br />
color,<br />
mask,<br />
copySource)</p></blockquote>
<p>Il parametro, <em><strong>sourceRect</strong></em> , è u&#8217;istanza della classe <em>flash.geom.Rectangle</em>. Esso definisce quale porzione del <em>sourceBitmap</em> vogliamo usare per il confronto. Se vogliamo usare l&#8217;intera, possiamo passare in <strong><em>sourceBitmap.rect</em></strong> come un valore di questo parametro.</p>
<p>Il parametro <em><strong>destPoint</strong></em> specifica il punto nel <strong><em>destBitmap</em></strong> nel quale i pixels iniziano ad essere affetti dall&#8217;alterazione, l&#8217;immagine <strong><em>sourceBitmap</em></strong> e sovrappoosta sulla <strong><em>destBitmap</em></strong>. Se vogliamo usare come punto di destinazione 0, 0 basta passarli come parametri al new Point( )  es.: (new Point(0, 0 )).</p>
<p>Il parametro <strong><em>operation</em></strong> è una delle sei stringhe che rappresentano gli operatori di confronto in Actionscript, esse sono: &lt; , &lt;= , &gt; , &gt;= , == , e !=</p>
<p>Il parametro successivo è <em><strong>threshold</strong></em>, ogni pixel viene confrontato con questo valore.</p>
<p>Il parametro <em><strong>mask</strong></em> serve per isolare un particolare canale di colore.</p>
<p>Adesso facciamo un esempio pratico sull&#8217;uso del <strong>threshold</strong>:</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p58code10'); return false;">View Code</a> ACTIONSCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p5810"><td class="code" id="p58code10"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">import</span> caurina.<span style="color: #006600;">transitions</span>.<span style="color: #66cc66;">*</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">url</span>:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">&quot;images/foto7_b.jpg&quot;</span>;
<span style="color: #000000; font-weight: bold;">var</span> image1:Bitmap;
<span style="color: #000000; font-weight: bold;">var</span> destimage2:Bitmap;
<span style="color: #000000; font-weight: bold;">var</span> perc:<span style="color: #0066CC;">Number</span>;
<span style="color: #000000; font-weight: bold;">var</span> loader:Loader;
<span style="color: #000000; font-weight: bold;">var</span> image:Bitmap;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> holder:<span style="color: #0066CC;">MovieClip</span>;
holder = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">MovieClip</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
addChild<span style="color: #66cc66;">&#40;</span>holder<span style="color: #66cc66;">&#41;</span>;
&nbsp;
configureAssets<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> configureAssets<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
loader = <span style="color: #000000; font-weight: bold;">new</span> Loader<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
loader.<span style="color: #006600;">contentLoaderInfo</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">COMPLETE</span>, completeHandler<span style="color: #66cc66;">&#41;</span>;
loader.<span style="color: #006600;">contentLoaderInfo</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">INIT</span>, initHandler<span style="color: #66cc66;">&#41;</span>;
loader.<span style="color: #006600;">contentLoaderInfo</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">OPEN</span>, openHandler<span style="color: #66cc66;">&#41;</span>;
loader.<span style="color: #006600;">contentLoaderInfo</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>IOErrorEvent.<span style="color: #006600;">IO_ERROR</span>, ioErrorHandler<span style="color: #66cc66;">&#41;</span>;
loader.<span style="color: #006600;">contentLoaderInfo</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>ProgressEvent.<span style="color: #006600;">PROGRESS</span>, progressHandler<span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> request:URLRequest = <span style="color: #000000; font-weight: bold;">new</span> URLRequest<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">url</span><span style="color: #66cc66;">&#41;</span>;
loader.<span style="color: #0066CC;">load</span><span style="color: #66cc66;">&#40;</span>request<span style="color: #66cc66;">&#41;</span>;
holder.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span>loader<span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #000000; font-weight: bold;">function</span> completeHandler<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
<span style="color: #808080; font-style: italic;">//trace(&quot;Caricamento Completato&quot;);</span>
&nbsp;
tf.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;Caricamento Completato&quot;</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #000000; font-weight: bold;">function</span> initHandler<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> loaderHgt = <span style="color: #0066CC;">e</span>.<span style="color: #006600;">currentTarget</span>.<span style="color: #0066CC;">height</span>;
<span style="color: #000000; font-weight: bold;">var</span> loaderWdt = <span style="color: #0066CC;">e</span>.<span style="color: #006600;">currentTarget</span>.<span style="color: #0066CC;">width</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> src_bmpd1:BitmapData = <span style="color: #000000; font-weight: bold;">new</span> BitmapData<span style="color: #66cc66;">&#40;</span>loaderWdt, loaderHgt<span style="color: #66cc66;">&#41;</span>;
src_bmpd1.<span style="color: #006600;">draw</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> dest_bmpd2:BitmapData = <span style="color: #000000; font-weight: bold;">new</span> BitmapData<span style="color: #66cc66;">&#40;</span>loaderWdt, loaderHgt, <span style="color: #000000; font-weight: bold;">false</span><span style="color: #66cc66;">&#41;</span>;
destimage2 = <span style="color: #000000; font-weight: bold;">new</span> Bitmap<span style="color: #66cc66;">&#40;</span>dest_bmpd2<span style="color: #66cc66;">&#41;</span>;
holder.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span>destimage2<span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> j:<span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;">0</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onTransitions<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
&nbsp;
j++;
<span style="color: #808080; font-style: italic;">//trace(j)</span>
dest_bmpd2.<span style="color: #006600;">threshold</span><span style="color: #66cc66;">&#40;</span>src_bmpd1, <span style="color: #000000; font-weight: bold;">new</span> Rectangle<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">0</span>, src_bmpd1.<span style="color: #0066CC;">width</span>, src_bmpd1.<span style="color: #0066CC;">height</span><span style="color: #66cc66;">&#41;</span>, <span style="color: #000000; font-weight: bold;">new</span> Point<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>, <span style="color: #ff0000;">&quot;&amp;gt;=&quot;</span>, <span style="color: #66cc66;">&#40;</span>j<span style="color: #66cc66;">/</span><span style="color: #cc66cc;">55</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">*</span> 0xFFFFFF, 0xFFFFFFFF, 0xFFFFFF, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
Tweener.<span style="color: #006600;">addCaller</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>, <span style="color: #66cc66;">&#123;</span><span style="color: #0066CC;">onUpdate</span>:onTransitions, <span style="color: #0066CC;">time</span>:<span style="color: #cc66cc;">1</span>, count:<span style="color: #cc66cc;">55</span>, transition:<span style="color: #ff0000;">&quot;linear&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onRepeatEffect<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
&nbsp;
Tweener.<span style="color: #006600;">addCaller</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>, <span style="color: #66cc66;">&#123;</span><span style="color: #0066CC;">onUpdate</span>:onTransitions, <span style="color: #0066CC;">time</span>:<span style="color: #cc66cc;">1</span>, count:<span style="color: #cc66cc;">55</span>, transition:<span style="color: #ff0000;">&quot;linear&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
repeat_btn.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">CLICK</span>, onRepeatEffect<span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> openHandler<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">//trace(&quot;Caricamento inizializzato, attendere il completamento!&quot;);</span>
&nbsp;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> tf:<span style="color: #0066CC;">TextField</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextField</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
tf.<span style="color: #0066CC;">autoSize</span> = TextFieldAutoSize.<span style="color: #0066CC;">LEFT</span>;
tf.<span style="color: #0066CC;">textColor</span> = 0xFF0000;
tf.<span style="color: #006600;">x</span> = <span style="color: #cc66cc;">30</span>;
tf.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;">366</span>;
addChild<span style="color: #66cc66;">&#40;</span>tf<span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> progressHandler<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:ProgressEvent<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
&nbsp;
perc = <span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">round</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>.<span style="color: #0066CC;">bytesLoaded</span><span style="color: #66cc66;">/</span><span style="color: #0066CC;">e</span>.<span style="color: #0066CC;">bytesTotal</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">*</span><span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #808080; font-style: italic;">//trace(&quot;Caricamento in corso: &quot;+perc+&quot;%&quot;);</span>
tf.<span style="color: #0066CC;">text</span> = <span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Loading: &quot;</span> + perc + <span style="color: #ff0000;">&quot;%&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> ioErrorHandler<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:IOErrorEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Impossibile caricare l'immagine: &quot;</span> + <span style="color: #0066CC;">url</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/////////////////////////</span>
&nbsp;
repeat_btn.<span style="color: #006600;">label</span> = <span style="color: #ff0000;">&quot;Repeat&quot;</span>;</pre></td></tr></table></div>

<p><a title="Scarica file di esempio" href="http://www.iwebcreate.net/source_file/threshold.zip" target="_blank">Download source file</a></p>
<p><a href="http://www.iwebcreate.net/flashLab/threshold.htm" target="_blank">Guarda esempio</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwebcreate.net/blog/?feed=rss2&amp;p=58</wfw:commentRss>
		</item>
		<item>
		<title>Flash Player 10, Loader.unloadAndStop</title>
		<link>http://www.iwebcreate.net/blog/?p=61</link>
		<comments>http://www.iwebcreate.net/blog/?p=61#comments</comments>
		<pubDate>Tue, 26 May 2009 17:37:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Actionscript 3.0]]></category>

		<category><![CDATA[Action Script 3.0]]></category>

		<category><![CDATA[Flash Player 10]]></category>

		<category><![CDATA[unloadAndStop]]></category>

		<guid isPermaLink="false">http://www.iwebcreate.net/blog/?p=61</guid>
		<description><![CDATA[Con Flash Player 10 è stato aggiunto un nuovo metodo &#8220;Loader.unloadAndStop()&#8220;, questa nuova feature automatizza i processi di scaricamento che precedentemente veniva fatto manualmente con il metodo &#8220;Loader.unload()&#8220;. Questo metodo tenta di scaricare file SWF caricati utilizzando Loader.load() o Loader.loadBytes() mediante la rimozione dei riferimenti agli oggetti EventDispatcher, NetConnection, Timer, Sound o Video del file [...]]]></description>
			<content:encoded><![CDATA[<p>Con Flash Player 10 è stato aggiunto un nuovo metodo &#8220;<strong>Loader.unloadAndStop()</strong>&#8220;, questa nuova feature automatizza i processi di scaricamento che precedentemente veniva fatto manualmente con il metodo &#8220;<strong>Loader.unload()</strong>&#8220;. Questo metodo tenta di scaricare file SWF caricati utilizzando <code>Loader.load()</code> o <code>Loader.loadBytes()</code> mediante la rimozione dei riferimenti agli oggetti EventDispatcher, NetConnection, Timer, Sound o Video del file SWF secondario. Di conseguenza, per il file SWF secondario e il relativo elenco di visualizzazione si verifica quanto segue:</p>
<ol>
<li>i suoni vengono interrotti;</li>
<li> listener di eventi dello stage vengono rimossi;</li>
<li>i listener di eventi per <code>enterFrame</code>, <code>frameConstructed</code>, <code>exitFrame</code>, <code>activate</code> e <code>deactivate</code> vengono rimossi;</li>
<li>i timer vengono interrotti;</li>
<li>le istanze Camera e Microphone vengono scollegate;</li>
<li>i clip filmato vengono interrotti.</li>
</ol>
<p>Il metodo <strong>unloadAndStop()</strong> accetta pure un parametro <strong>gc</strong> (garbage collector) che di default è impostato su true, esso suggerisce al garbage collector di eseguire gli oggetti secondari SWF (<code>true</code>) o non eseguirli (<code>false</code>).</p>
<p>Adesso vediamo un esempio su come usare il metodo <strong>unloadAndStop()</strong>:</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p61code12'); return false;">View Code</a> ACTIONSCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p6112"><td class="code" id="p61code12"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> file:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">&quot;external.swf&quot;</span>;
<span style="color: #000000; font-weight: bold;">var</span> ldr:Loader;
<span style="color: #000000; font-weight: bold;">var</span> mcload:<span style="color: #0066CC;">MovieClip</span>;
<span style="color: #000000; font-weight: bold;">var</span> urlReq:URLRequest;
&nbsp;
ldr = <span style="color: #000000; font-weight: bold;">new</span> Loader<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
addChild<span style="color: #66cc66;">&#40;</span>ldr<span style="color: #66cc66;">&#41;</span>;
urlReq = <span style="color: #000000; font-weight: bold;">new</span> URLRequest<span style="color: #66cc66;">&#40;</span>file<span style="color: #66cc66;">&#41;</span>;
ldr.<span style="color: #0066CC;">load</span><span style="color: #66cc66;">&#40;</span>urlReq<span style="color: #66cc66;">&#41;</span>;
&nbsp;
ldr.<span style="color: #006600;">contentLoaderInfo</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">COMPLETE</span>, onSWFloaded<span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onSWFloaded<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
&nbsp;
ldr.<span style="color: #006600;">x</span> = <span style="color: #cc66cc;">10</span>;
ldr.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;">50</span>;
&nbsp;
ldr.<span style="color: #006600;">contentLoaderInfo</span>.<span style="color: #006600;">removeEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">COMPLETE</span>, onSWFloaded<span style="color: #66cc66;">&#41;</span>;
&nbsp;
mcload = ldr.<span style="color: #006600;">content</span> as <span style="color: #0066CC;">MovieClip</span>;	
&nbsp;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
btnUnload.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">CLICK</span>, onSWFunload<span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onSWFunload<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:MouseEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
&nbsp;
	ldr.<span style="color: #006600;">unloadAndStop</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

<p>Ecco qualche link:<br />
<a title="unloadAndStop" href="http://kb2.adobe.com/cps/403/kb403670.html" target="_blank">TechNote Adobe</a><br />
<a title="unloadAndStop Grant Skinner" href="http://www.gskinner.com/blog/archives/2008/07/additional_info.html" target="_blank">Grant Skinner</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwebcreate.net/blog/?feed=rss2&amp;p=61</wfw:commentRss>
		</item>
		<item>
		<title>Embed Fonts in ActionScript 3.0</title>
		<link>http://www.iwebcreate.net/blog/?p=48</link>
		<comments>http://www.iwebcreate.net/blog/?p=48#comments</comments>
		<pubDate>Mon, 02 Mar 2009 11:27:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Actionscript 3.0]]></category>

		<category><![CDATA[Embed Font]]></category>

		<guid isPermaLink="false">http://www.iwebcreate.net/blog/?p=48</guid>
		<description><![CDATA[In questo esempio vedremo come fare l&#8217;embed del font in Flash. Creiamo un file  embedfont.fla e lo salviamo. Adesso facciamo l&#8217;embed del font, c&#8217;è da dire che qualora si vogliono utilizzare ad esempio tre versioni diverse dello stesso font (ovvero normale, bold e corsivo) bisogna embeddare il font tre volte con tre nomi diversi, adesso [...]]]></description>
			<content:encoded><![CDATA[<p>In questo esempio vedremo come fare l&#8217;<strong>embed del font in Flash</strong>. Creiamo un file  <strong>embedfont.fla</strong> e lo salviamo. Adesso facciamo l&#8217;embed del font, c&#8217;è da dire che qualora si vogliono utilizzare ad esempio tre versioni diverse dello stesso font (ovvero normale, bold e corsivo) bisogna embeddare il font tre volte con tre nomi diversi, adesso vediamo la procedura per embeddare un font in Flash.</p>
<p>1) Selezioniamo Window &gt; Library (Finestra &gt; Libreria)se la libreira di flash non è aperta,<br />
2) Dal menu pop-up Options (Opzioni) selezioniamo New Font (Nuovo Font), quindi apparirà la finestra di dialogo del simbolo,<br />
3) Sotto Font, selezioniamo Adobe Caslon Pro,<br />
4) Quindi digitiamo sopra il nome che desideriamo attribuire al nostro font di libreria, nella fattispecie assegniamo AdobeCaslon, quiindi clicchiamo su OK. A questo punto nella Libreria (Library) dovrebbe apparire un font con il nome AdobeCaslon.<br />
5) Selezioniamo nella Libreria (Library) AdobeCaslon e su di esso facciamo click di destro, apparirà il menu pop-up di scelta qui selezioniamo l&#8217;opzione Linkage (Concatenamento). Nella finestra di dialogo Linkage (Concatenamento) selezioniamo Export For ActionScript. A questo punto apparirà una finestra dove dirà che la classe è stata creata quindi facciamo click su OK.</p>
<p>Adesso operiamo col codice, creiamoci una <strong>Classe FontEmbed</strong>, quindi in Flash facciamo File &gt; New(Nuovo) e selezioniamo dalla finestra di dialogo <strong>ActionScript File</strong>. Fatto questo salviamo il file nella stessa directory dove risiede il file FLA, lo salviamo assegnando il nome <strong>FontEmbed</strong>.</p>
<p><strong>N.B.</strong> nella Library (Libreria) creiamo altri due simboli del font Adobe Caslon Pro uno con Bold e l&#8217;altro con Italic, in questo esempio abbiamo assegnato i seguenti nomi AdobeCaslon per la versione normale del font, AdobeCaslonBold per quella Bold e AdobeCaslonItalic per quella Italic.</p>
<p>Adesso siamo pronti per scrivere il codice:</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p48code14'); return false;">View Code</a> ACTIONSCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p4814"><td class="code" id="p48code14"><pre class="actionscript" style="font-family:monospace;">package <span style="color: #66cc66;">&#123;</span>
&nbsp;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #66cc66;">*</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #0066CC;">text</span>.<span style="color: #66cc66;">*</span>;
&nbsp;
	<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> FontEmbed <span style="color: #0066CC;">extends</span> Sprite <span style="color: #66cc66;">&#123;</span>
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> msg:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">&quot;Lorem ipsum dolor sit amet&quot;</span>;
		<span style="color: #808080; font-style: italic;">//</span>
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> fmt:<span style="color: #0066CC;">TextFormat</span>;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> tf:<span style="color: #0066CC;">TextField</span>;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> adobecaslon:AdobeCaslon = <span style="color: #000000; font-weight: bold;">new</span> AdobeCaslon<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> format:<span style="color: #0066CC;">TextFormat</span>;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> tf_bold:<span style="color: #0066CC;">TextField</span>;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> adobecaslon_bold:AdobeCaslonBold = <span style="color: #000000; font-weight: bold;">new</span> AdobeCaslonBold<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> text_fmt:<span style="color: #0066CC;">TextFormat</span>;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> tf_italic:<span style="color: #0066CC;">TextField</span>;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> adobecaslon_italic:AdobeCaslonItalic = <span style="color: #000000; font-weight: bold;">new</span> AdobeCaslonItalic<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
		<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> FontEmbed<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
&nbsp;
			fmt = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextFormat</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			fmt.<span style="color: #0066CC;">font</span> = adobecaslon.<span style="color: #006600;">fontName</span>;
			fmt.<span style="color: #0066CC;">color</span> = 0x333333;
			fmt.<span style="color: #0066CC;">size</span> = <span style="color: #cc66cc;">20</span>;
&nbsp;
			tf = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextField</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			tf.<span style="color: #0066CC;">embedFonts</span> = <span style="color: #000000; font-weight: bold;">true</span>;
			tf.<span style="color: #006600;">defaultTextFormat</span> = fmt;
			tf.<span style="color: #0066CC;">text</span> = msg;
			tf.<span style="color: #0066CC;">autoSize</span> = TextFieldAutoSize.<span style="color: #0066CC;">LEFT</span>;
			tf.<span style="color: #006600;">x</span> = <span style="color: #cc66cc;">10</span>;
			tf.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;">10</span>;
			addChild<span style="color: #66cc66;">&#40;</span>tf<span style="color: #66cc66;">&#41;</span>;
&nbsp;
			<span style="color: #808080; font-style: italic;">//Adobe Caslon Bold</span>
			format = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextFormat</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			format.<span style="color: #0066CC;">font</span> = adobecaslon_bold.<span style="color: #006600;">fontName</span>;
			format.<span style="color: #0066CC;">color</span> = 0x333333;
			format.<span style="color: #0066CC;">size</span> = <span style="color: #cc66cc;">20</span>;
&nbsp;
			tf_bold = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextField</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			tf_bold.<span style="color: #0066CC;">embedFonts</span> = <span style="color: #000000; font-weight: bold;">true</span>;
			tf_bold.<span style="color: #006600;">defaultTextFormat</span> = format;
			tf_bold.<span style="color: #0066CC;">text</span> = msg;
			tf_bold.<span style="color: #0066CC;">autoSize</span> = TextFieldAutoSize.<span style="color: #0066CC;">LEFT</span>;
			tf_bold.<span style="color: #006600;">x</span> = <span style="color: #cc66cc;">10</span>;
			tf_bold.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;">45</span>;
			addChild<span style="color: #66cc66;">&#40;</span>tf_bold<span style="color: #66cc66;">&#41;</span>;
&nbsp;
			<span style="color: #808080; font-style: italic;">//Adobe Caslon Italic</span>
			text_fmt = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextFormat</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			text_fmt.<span style="color: #0066CC;">font</span> = adobecaslon_italic.<span style="color: #006600;">fontName</span>;
			text_fmt.<span style="color: #0066CC;">color</span> = 0x333333;
			text_fmt.<span style="color: #0066CC;">size</span> = <span style="color: #cc66cc;">20</span>;
&nbsp;
			tf_italic = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextField</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			tf_italic.<span style="color: #0066CC;">embedFonts</span> = <span style="color: #000000; font-weight: bold;">true</span>;
			tf_italic.<span style="color: #006600;">defaultTextFormat</span> = text_fmt;
			tf_italic.<span style="color: #0066CC;">text</span> = msg;
			tf_italic.<span style="color: #0066CC;">autoSize</span> = TextFieldAutoSize.<span style="color: #0066CC;">LEFT</span>;
			tf_italic.<span style="color: #006600;">x</span> = <span style="color: #cc66cc;">10</span>;
			tf_italic.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;">80</span>;
			addChild<span style="color: #66cc66;">&#40;</span>tf_italic<span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
		<span style="color: #808080; font-style: italic;">//</span>
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

<p>A questo punto andiamo sul FLA embedfont e nella Document Class facciamo l&#8217;import della nostra Classe FontEmbed.</p>
<p><a title="Download File" href="http://www.iwebcreate.net/source_file/embedfont.zip" target="_blank">Download source file</a></p>
<p><a href="http://www.iwebcreate.net/flashLab/embedfont.htm" target="_blank">Guarda esempio</a></p>
<p><script type="text/javascript" src="http://www.iwebcreate.net/blog/wp-content/plugins/pb-embedflash/js/swfobject.js"></script></p><div class="embedflash" id="swfida10fcef36a6b45805939bae2ae7a8557"><small>(Please open the article to see the flash file or player.)</small></div><p style="padding:0px;margin:0px;"><script type="text/javascript">
				var flashvars = {}; var params = {}; var attributes = {};params.allowfullscreen = "true"; params.allowscriptaccess = "always";
				swfobject.embedSWF("http://www.iwebcreate.net/flashLab/embedfont.swf","swfida10fcef36a6b45805939bae2ae7a8557","550","400","9.0.0","http://www.iwebcreate.net/blog/wp-content/plugins/pb-embedflash/swf/expressInstall.swf",flashvars,params,attributes);
		</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwebcreate.net/blog/?feed=rss2&amp;p=48</wfw:commentRss>
		</item>
		<item>
		<title>Mobile Dev Day</title>
		<link>http://www.iwebcreate.net/blog/?p=30</link>
		<comments>http://www.iwebcreate.net/blog/?p=30#comments</comments>
		<pubDate>Wed, 18 Feb 2009 08:57:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Meetings]]></category>

		<category><![CDATA[Flash Lite 3.1]]></category>

		<guid isPermaLink="false">http://www.iwebcreate.net/blog/?p=30</guid>
		<description><![CDATA[Il 6 Marzo 2009 a Roma si svolgerà l&#8217;evento Mobile Dev Day, la sede dell&#8217;evento è l&#8217;Hotel Ritz sito in Piazza Euclide. Durante l&#8217;evento si parlerà delle nuove feature di Flash Lite 3.1.
La partecipazione al meetings è totalmente gratuita, per partecipare basta registrarsi (link).
Altre info sull&#8217;evento si possono ottenere consultando questo link.
]]></description>
			<content:encoded><![CDATA[<p>Il 6 Marzo 2009 a Roma si svolgerà l&#8217;evento Mobile Dev Day, la sede dell&#8217;evento è l&#8217;Hotel Ritz sito in Piazza Euclide. Durante l&#8217;evento si parlerà delle nuove feature di Flash Lite 3.1.</p>
<p>La partecipazione al meetings è totalmente gratuita, per partecipare basta registrarsi (<a href="http://mobiledevday.eventbrite.com/" target="_blank">link</a>).</p>
<p>Altre info sull&#8217;evento si possono ottenere consultando questo <a href="http://mobile.actionscript.it/index.php?q=node/151" target="_blank">link</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwebcreate.net/blog/?feed=rss2&amp;p=30</wfw:commentRss>
		</item>
		<item>
		<title>Animazioni con CSS</title>
		<link>http://www.iwebcreate.net/blog/?p=23</link>
		<comments>http://www.iwebcreate.net/blog/?p=23#comments</comments>
		<pubDate>Sun, 08 Feb 2009 09:34:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[XHTML+CSS]]></category>

		<category><![CDATA[CSS]]></category>

		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.iwebcreate.net/blog/?p=23</guid>
		<description><![CDATA[CSS Animation permette di ottenere vere e proprie animazioni all’interno di pagine web, senza ricorrere a tecnologie come JavaScript o Flash. C&#8217;è da dire che il supporto delle animazioni non avviene su tutti gli browser, infatti il supporto di queste specifiche sono state introdotte nelle ultime build di Safari il cui cuore è basato su [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://webkit.org/blog/138/css-animation/" target="_blank">CSS Animation</a> permette di ottenere vere e proprie animazioni all’interno di pagine web, senza ricorrere a tecnologie come JavaScript o Flash. C&#8217;è da dire che il supporto delle animazioni non avviene su tutti gli browser, infatti il supporto di queste specifiche sono state introdotte nelle ultime build di Safari il cui cuore è basato su WebKit (un motore di rendering opensource).</p>
<p>Le Transitions specificate usano le seguenti proprietà:</p>
<ul>
<li><em>transition-property</em></li>
<li><em>transition-duration</em></li>
<li><em>transition-timing-function</em></li>
<li><em>transition</em></li>
</ul>
<p>Ecco un semplice esempio di codice:</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p23code16'); return false;">View Code</a> CSS</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p2316"><td class="code" id="p23code16"><pre class="css" style="font-family:monospace;">div <span style="color: #00AA00;">&#123;</span>
  opacity<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span>
  -webkit-transition<span style="color: #00AA00;">:</span> opacity 1s linear<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
div<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
  opacity<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>questa semplice transition permette di effettuare un fade-out all&#8217;hover sulla div.</p>
<p>Clicca su <a href="http://webkit.org/blog/138/css-animation/" target="_blank">CSS Animation</a> per altri esempi. Si raccomanda di usare Safari di Apple per una corretta visualizzazione delle animazioni.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwebcreate.net/blog/?feed=rss2&amp;p=23</wfw:commentRss>
		</item>
		<item>
		<title>Bug IE6 carattere duplicato</title>
		<link>http://www.iwebcreate.net/blog/?p=22</link>
		<comments>http://www.iwebcreate.net/blog/?p=22#comments</comments>
		<pubDate>Tue, 13 Jan 2009 09:01:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[XHTML+CSS]]></category>

		<category><![CDATA[CSS]]></category>

		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.iwebcreate.net/blog/?p=22</guid>
		<description><![CDATA[Un piccolo Tips su un bug di IE6 sulla duplicazione dei caratteri, dovuta al fatto che IE6 non digerisce bene i commenti &#60;!&#8211; End of the body pagina &#8211;&#62;, da qui il problema della duplicazione dei caratteri.
Attraverso delle porzioni di codice vedremo la soluzione e il problema.
Problema:

?View Code XHTML&#60;!-- End of the body pagina --&#62;
&#60;p [...]]]></description>
			<content:encoded><![CDATA[<p>Un piccolo Tips su un bug di IE6 sulla duplicazione dei caratteri, dovuta al fatto che IE6 non digerisce bene i commenti &lt;!&#8211; End of the body pagina &#8211;&gt;, da qui il problema della duplicazione dei caratteri.</p>
<p>Attraverso delle porzioni di codice vedremo la soluzione e il problema.</p>
<p><strong>Problema</strong>:</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p22code19'); return false;">View Code</a> XHTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p2219"><td class="code" id="p22code19"><pre class="xhtml" style="font-family:monospace;">&lt;!-- End of the body pagina --&gt;
&lt;p id=&quot;footer&quot;&gt;
&lt;p id=&quot;right_clm&quot;&gt;
&nbsp;
Lorem impsum amet 
&nbsp;
Lorem ipsum dolor sit amet, consectetur adipisicing elit
&nbsp;
&lt;!-- CLEAR --&gt;
&nbsp;
&lt;div class=&quot;clear_left&quot;&gt;&lt;/div&gt;</pre></td></tr></table></div>

<p>Con questa porzione di codice si dovrebbe verificare l&#8217;effetto indesiderato della duplicazione dei caratteri.</p>
<p>Adesso vediamo le strade percorribili per la soluzione:</p>
<ul>
<li>La prima soluzione ed è quella più semplice è quella dei commenti condizioniali, es: &lt;!&#8211;[if !IE]&gt; End of the body pagina &lt;![endif]&#8211;&gt; in questo modo si dovrebbe risolvere il bug;</li>
<li>La seconda soluzione è quella di dare -3px di margin-right sull&#8217;ultimo float:left;</li>
</ul>
<p><strong>Soluzione</strong>:</p>
<p><em><strong>Commento condizionale</strong></em>:</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p22code20'); return false;">View Code</a> XHTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p2220"><td class="code" id="p22code20"><pre class="xhtml" style="font-family:monospace;">&lt;!–[if !IE]&gt; End of the body pagina &lt;![endif]–&gt;
&lt;div id=”footer”&gt;
&lt;div id=”right_clm”&gt;
&lt;p&gt;P.IVA.: &lt;/p&gt;
&lt;p&gt;Copyright Pronto Mutui © 2008 - All rights reserved&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;!– CLEAR –&gt;
&lt;div class=”clear_left”&gt;&lt;/div&gt;
&nbsp;
Seconda soluzione -3px:
&nbsp;
#footer
{
background-image: url(../images/bg_footer.jpg);
background-repeat: no-repeat;
float: left;
height: 69px;
width: 750px;
margin-bottom: 2px;
margin-top: 9px;
margin-right: -3px;
}
… altre regole
&nbsp;
#right_clm
{
float: right;
margin-right: 18px;
margin-top: 23px;
}
#right_clm p
{
font-family: Verdana, Geneva, sans-serif;
font-size: 9px;
color: #111;
margin: 0px;
padding: 0px;
line-height: 19px;
text-align: right;
}
&nbsp;
Codice (X)HTML:
&nbsp;
&lt;!– End of the body pagina –&gt;
&lt;div id=”footer”&gt;
&lt;div id=”right_clm”&gt;
&lt;p&gt;P.IVA.: &lt;/p&gt;
&lt;p&gt;Copyright Pronto Mutui © 2008 - All rights reserved&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;!– CLEAR –&gt;
&lt;div class=”clear_left”&gt;&lt;/div&gt;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.iwebcreate.net/blog/?feed=rss2&amp;p=22</wfw:commentRss>
		</item>
	</channel>
</rss>
