<?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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>jaiunblog.com &#124; j&#039;ai un blog - graphisme, design, programmation &#187; actionscript</title>
	<atom:link href="http://jaiunblog.com/tag/actionscript/feed/" rel="self" type="application/rss+xml" />
	<link>http://jaiunblog.com</link>
	<description>un peu de tout et beaucoup de rien ça fait du bien !</description>
	<lastBuildDate>Thu, 02 Feb 2012 14:35:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>flash vs html5</title>
		<link>http://jaiunblog.com/3674/flash-vs-html5/</link>
		<comments>http://jaiunblog.com/3674/flash-vs-html5/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 20:34:38 +0000</pubDate>
		<dc:creator>ben</dc:creator>
				<category><![CDATA[graphisme]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[pong]]></category>

		<guid isPermaLink="false">http://jaiunblog.com/?p=3674</guid>
		<description><![CDATA[Voici un jeu pour mettre fin aux polémiques ! À gauche le jeu est motorisé sous Flash et à droite en html5 (via canvas) : http://labs.codecomputerlove.com/FlashVsHtml5/ bonus : http://occupyflash.org/ http://occupyhtml.org/]]></description>
			<content:encoded><![CDATA[<!-- Flash Video Resizer 1.4 : 425pixel --><p><img src="http://jaiunblog.com/blog/wp-content/uploads/2011/12/pong.png" alt="" title="pong" width="425" height="262" class="alignnone size-full wp-image-3675" /><br />
Voici un jeu pour mettre fin aux polémiques ! À gauche le jeu est motorisé sous Flash et à droite en html5 (via canvas) :<br />
<a href=" http://labs.codecomputerlove.com/FlashVsHtml5/">http://labs.codecomputerlove.com/FlashVsHtml5/</a><br />
bonus :<br />
<a href="http://occupyflash.org/">http://occupyflash.org/</a><br />
<a href="http://occupyhtml.org/">http://occupyhtml.org/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jaiunblog.com/3674/flash-vs-html5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>5 langages</title>
		<link>http://jaiunblog.com/2638/5-langages/</link>
		<comments>http://jaiunblog.com/2638/5-langages/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 21:07:33 +0000</pubDate>
		<dc:creator>ben</dc:creator>
				<category><![CDATA[programmation]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[after effects]]></category>
		<category><![CDATA[as2]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[mootools]]></category>
		<category><![CDATA[processing]]></category>

		<guid isPermaLink="false">http://jaiunblog.com/?p=2638</guid>
		<description><![CDATA[Petit exercice pour la forme, créer* et déplacer un carré rouge avec quelques lignes de code. Dans mes exemples j&#8217;utilise le modulo : 359 modulo 360 = 359 360 modulo 360 = 0 361 modulo 360 = 1 on code avec un signe « % » comme ex : 359%360=359 * sauf pour After Effects [...]]]></description>
			<content:encoded><![CDATA[<!-- Flash Video Resizer 1.4 : 425pixel --><p>Petit exercice pour la forme, créer* et déplacer un carré rouge avec quelques lignes de code.</p>
<p>Dans mes exemples j&#8217;utilise le modulo :<br />
359 modulo 360 = 359<br />
360 modulo 360 = 0<br />
361 modulo 360 = 1</p>
<p>on code avec un signe « % » comme ex : 359%360=359<br />
* sauf pour After Effects</p>
<p>en actionscript 2 :</p>
<pre class="brush: as3; title: ;">
this.createEmptyMovieClip(&quot;square_mc&quot;, 1);
square_mc.beginFill(0xFF0000);
square_mc.moveTo(0, 0);
square_mc.lineTo(100, 0);
square_mc.lineTo(100, 100);
square_mc.lineTo(0, 100);
square_mc.lineTo(0, 0);
square_mc.endFill();
square_mc._x=0;
square_mc._y=150;
onEnterFrame=function(){
square_mc._x=square_mc._x%550+10;
}
</pre>
<p>en actionscript 3 :</p>
<pre class="brush: as3; title: ;">
var square:Sprite = new Sprite();
addChild(square);
square.graphics.beginFill(0xFF0000);
square.graphics.drawRect(0,0,100,100);
square.graphics.endFill();
square.x = 0;
square.y = stage.stageHeight/2-square.height/2;
square.addEventListener(Event.ENTER_FRAME, bouge);
function bouge(e:Event):void{
square.x=square.x%550+1;
//square.rotation=square.x;
}
</pre>
<p>en processing :</p>
<pre class="brush: java; title: ;">
int x = 0;

void setup(){
  size(500,500);
  background(255);
  smooth();
  frameRate(25);
}

void draw(){
  background(255);
  noStroke();
  x = x%550 + 10;
  rect(x-50,200,100,100);
  fill(255,0,0);
}
</pre>
<p>en JavaScript avec la librairie Mootools :</p>
<pre class="brush: xml; title: ;">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /&gt;
&lt;title&gt;bouge&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;lastMoo.js&quot;&gt;&lt;/script&gt;
&lt;!--&lt;script type=&quot;text/javascript&quot; src=&quot;lastPlug.js&quot;&gt;&lt;/script&gt;--&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
window.addEvent('domready', function(){
var monSquare = new Element('div', {
	'id':'square',
    'styles': {
        'position':'absolute',
        'top':'100px',
        'left':'0',
        'width':'100px',
        'height':'100px',
        'background-color':'#f00'
    },
});

monSquare.inject($(document.body));

var i=0;
var begin = function() {
i=i%window.getWidth()+5;
$('square').setStyle('left',i);
}.periodical(1000/25);
})
&lt;/script&gt;
&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
/* rien */
--&gt;
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;!-- ici on injecte notre div--&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>en expression pour After Effects sur la position d&#8217;un comp (pour le fun ^-^) :</p>
<p><code><br />
[(-thisComp.width), (thisComp.height/2)] + [(900*time)%1000,0]<br />
</code><br />
si vous excellez dans un de ces langages, n&#8217;hésitez pas à commenter ;¬) </p>
]]></content:encoded>
			<wfw:commentRss>http://jaiunblog.com/2638/5-langages/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>motion code</title>
		<link>http://jaiunblog.com/2339/motion-code/</link>
		<comments>http://jaiunblog.com/2339/motion-code/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 03:08:46 +0000</pubDate>
		<dc:creator>ben</dc:creator>
				<category><![CDATA[graphisme]]></category>
		<category><![CDATA[programmation]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[motion]]></category>

		<guid isPermaLink="false">http://jaiunblog.com/?p=2339</guid>
		<description><![CDATA[Flightpattern from Gwen Vanhee on Vimeo. Vu chez smashing sur cette belle compile à voir !]]></description>
			<content:encoded><![CDATA[<!-- Flash Video Resizer 1.4 : 425pixel --><p><object width="425" height="239"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=7174318&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=7174318&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="425" height="239"></embed></object>
<p><a href="http://vimeo.com/7174318">Flightpattern</a> from <a href="http://vimeo.com/revoid">Gwen Vanhee</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>Vu chez smashing sur <a href="http://www.smashingmagazine.com/2010/02/06/beautiful-motion-graphics-created-with-programming-showcase-tools-and-tutorials/">cette belle compile</a>  à voir !</p>
]]></content:encoded>
			<wfw:commentRss>http://jaiunblog.com/2339/motion-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>learn learn learn</title>
		<link>http://jaiunblog.com/2086/learn-learn-learn/</link>
		<comments>http://jaiunblog.com/2086/learn-learn-learn/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 12:47:01 +0000</pubDate>
		<dc:creator>ben</dc:creator>
				<category><![CDATA[graphisme]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[illustration]]></category>
		<category><![CDATA[learn]]></category>

		<guid isPermaLink="false">http://jaiunblog.com/?p=2086</guid>
		<description><![CDATA[C&#8217;est beau, c&#8217;est fun, c&#8217;est propre http://www.learnsomethingeveryday.co.uk/. Sinon vous pouvez aussi goto and learn l&#8217;actionscript en vidéo&#8230;]]></description>
			<content:encoded><![CDATA[<!-- Flash Video Resizer 1.4 : 425pixel --><p><img src="http://jaiunblog.com/blog/wp-content/uploads/2009/12/Image-3-425x275.png" alt="ceci n&#039;est pas un sexe" title="ceci n&#039;est pas un sexe" width="425" height="275" class="alignnone size-medium wp-image-2087" />
<p>C&#8217;est beau, c&#8217;est fun, c&#8217;est propre <a href="http://www.learnsomethingeveryday.co.uk/">http://www.learnsomethingeveryday.co.uk/</a>.<br />
Sinon vous pouvez aussi <a href="http://www.gotoandlearn.com/">goto and learn</a> l&#8217;actionscript en vidéo&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://jaiunblog.com/2086/learn-learn-learn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>fontpark 2.0 &#124; morisawa by yugop</title>
		<link>http://jaiunblog.com/1369/fontpark-20-morisawa-by-yugop/</link>
		<comments>http://jaiunblog.com/1369/fontpark-20-morisawa-by-yugop/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 13:46:31 +0000</pubDate>
		<dc:creator>ben</dc:creator>
				<category><![CDATA[graphisme]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[typographie]]></category>

		<guid isPermaLink="false">http://jaiunblog.com/?p=1369</guid>
		<description><![CDATA[C&#8217;est beau, c&#8217;est propre, c&#8217;est typographique et interactif&#8230; et le sound design est parfait ! FONTPARK 2.0 &#124; MORISAWA.]]></description>
			<content:encoded><![CDATA[<!-- Flash Video Resizer 1.4 : 425pixel --><p><img src="http://jaiunblog.com/blog/wp-content/uploads/2008/08/mac.gif" alt="" title="mac" width="425" height="269" class="alignnone size-medium wp-image-1371" /></p>
<p>C&#8217;est beau, c&#8217;est propre, c&#8217;est typographique et interactif&#8230; et le sound design est parfait !<br />
<a href="http://fontpark.morisawa.co.jp/">FONTPARK 2.0 | MORISAWA</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://jaiunblog.com/1369/fontpark-20-morisawa-by-yugop/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

