Archive for the 'ACTIONSCRIPT 3.0' Category

ActionScript Errors ( #aserror ) Hashtag on Twitter

aserror

The other day working late  and trying to fix some ActionScript error,  I got the idea of starting a Twitter Hashtag (#aserror) for this kind of errors and bugs that If you try to solve on your own it may take some time ( even using Google or the Beta of ActionScripit Errors wich is very good by the way )  and with a close deadline  losing half an hour tracking those errors  may be relly significant.

So  my toughs went to twitter  where a bast community of Flash users share and help each other, it’s the perfect place to get some aid on a more personal level and get out fast of those ActionScript Errors that may have you stuck in sometimes common troubles.

Hope it helps someone i’ll start using the #aserror hashtag  and the number  describing the Error  and the solution ( hack ?) that  got me out of there.

And hope to get some more free time to also post some examples and tests of how to recreate those errors and solve them here on my blog.

Well I relly hope to get that little snowball rolling and see the rest of the community that’s alredy on Twitter start using the #aserror tag to help each other out.

I almost forgot….  I’m @swfgeek on Twitter in case anyone wants to follow my rambligs :)

ActionScript 3 migration cookbook beta at Adobe Developer Connection

ActionScript

A new section on the Adobe Developer Connection it’s up , ActionScript 3 migration cookbook and it looks really usefull if you’re still using  ActionScript 2 on a regular basis this cookbook  would be a good migration point.

You can already see some entries online or download the pdf version of the ActionScript 3 migration cookbook


An excerpt form the site:
The ActionScript 3 migration cookbook beta provides a quick introduction to migrating to ActionScript 3 from ActionScript 2. It is targeted at designers and developers who have some experience scripting content within Adobe Flash CS4 Professional. It does not require an understanding of object-oriented programming.

New Facebook Adobe Developer Connection

Adobe Developer Connection Facebook

Adobe teams up with Facebook and releases new Adobe Developer Connection (Adobe Flash Platform and Facebook Platform ).
So if You where thinking on how to start developing  Flash Applications for Facebook you will find this site very useful.
It includes various how to start videos , useful information and a brand new ActionScript 3.0 Facebook API:
Get the API

Get started

Deliver rich, social experiences on the web

The Adobe Flash Platform and Facebook Platform provide the ideal solution for building rich, social experiences on the web. Flash is available on more than 98% of Internet-connected PCs, so people can immediately access the applications, content, and video that enable social interactions. The Facebook Platform is used by millions of people everyday to connect and share with the people in their lives. Together, both platforms allow you to:

* Share: Create rich interactions for users to share with friends.
* Have fun: Make games social; let users compete against their friends.
* Connect: Let users connect to your RIAs with Facebook Connect.
* Solve problems: Build RIAs that harness the power of community.
* Reach people: Reach millions of Facebook users through social distribution.

The new ActionScript 3.0 Client Library for Facebook Platform API, fully supported by Facebook and Adobe, makes it easy to build applications that combine the strengths of the Flash Platform and Facebook Platform.

Grant Skinner #tweetcoding Contest 140 lines of AS3 to Win

tweetcoding

Grant Skinner who recently began using the twitter microbloging  service ( @gskinner )  has started on the twitter world with right foot, what started as a personal experiment of him has grown quickly into  a contest #tweetcoding, The idea of the contest is as follows.

You are provided with a framework of 140 characters of “gimme” code. To this, you can add up to 140 characters of additional AS3 code. You submit your entry via Twitter, and if your work is judged as the best, you win a full copy of Flash CS4 courtesy of Adobe and a copy  of “AdvancED ActionScript 3.0 Animation” by Keith Peters, courtesy of Friends of Ed..

So if you have a twitter account there’s no time to lose start coding right away,  the first round closes on March 1.

Read the  rules below as listed in the   #tweetcoding page :


What?
#tweetcoding: code something cool in <=140 characters of AS3

Who?
organized by @gskinner, open to anyone

When?
starting now, first round closes March 1

Why?
fame, fun, recognition of your peers, and some great prizes (see below)! I might also work a couple cool entries into one of my talks.

How?
paste the 140 characters of “gimme” code into Flash.
turn off strict mode (Publish settings > Flash > AS3 settings…
add your own 140 characters where it says /*src*/.

submit it via Twitter by sending two tweets: the first is the code you added, the second is a title for your entry, the #tweetcoding tag, and a link to the first tweet.

Gimme code.

?View Code ACTIONSCRIPT3
1
2
3
4
5
6
7
8
9
10
11
g=graphics;
mt=g.moveTo;
lt=g.lineTo;
ls=g.lineStyle;
m=Math;
r=m.random;
s=m.sin;
i=0;
o={};
function f(e){/*src*/}
addEventListener("enterFrame",f);

Tip #1: use i as a frame counter to vary behaviour over time.
Tip #2: use o to store persistent data (ex. o.x=7).
Tip #3: use m.PI & g.drawRect to save characters.

Rules.
you cannot modify the “gimme” code.
your entry must be submittable as a single 140 character tweet.
no additional assets.
AS3 strict mode should be off, targeting player 10.
anyone should be able to compile your entry with just your tweet, Flash CS4, and these instructions.

Prizes. Winner receives a copy of Flash CS4 courtesy of Adobe.

The winner and two runners-up will receive “AdvancED ActionScript 3.0 Animation” by Keith Peters, courtesy of Friends of Ed.

Sample.
here’s a very simple sample in 110 characters. Simply paste this code at /*src*/, test movie, and it will draw a colorful spiral.

?View Code ACTIONSCRIPT3
1
2
3
4
5
if(i&gt;400)return;
if(i++&lt;1){x=275;y=200}
ls(3,r()*1e7,1);
mt(s(i/9)*i,m.cos(i/9)*i);
lt(s(i/9)*200,m.cos(i/9)*200);

Credit.
much love to Adobe for providing the awesome grand prize (a copy of Flash CS4)!
a big thank you to Friends of ED for providing 3 copies of Keith Peter’s “AdvancED ActionScript 3.0 Animation” as prizes!
thanks to @kevinSuttle for sparking the idea.
thanks to my lovely wife for putting up with me spending time on this, when I should be doing other things.

Links.
link – track #tweetcoding, and view compiled entries online
link – simple utility to compress and check the length of your code

Cheers and happy #tweetcoding.

Follow Me on twitter @swfgeek

Español:

Grant Skinner quien recientemente comenzó a usar el servicio de microblogin  twitter ( @gskinner )  ha empezado con el pie derecho en el mundo de twitter, lo que comenzó como un experimento personal se convirtió rápidamente en un concurso llamado  #tweetcoding. La idea de tal concurso es la que sigue.

Se te provee con un framework de 140 caracteres de código “gimme”. A este tú le puedes agregar hasta 140 caracteres adicionales de código ActionScript 3.  Envía tu participación vía twitter, y si  tu trabajo es juzgado como el mejor, podrás ganarte una copia del Flash CS4 cortesía de Adobe y  una copia del libro “AdvancED ActionScript 3.0 Animation” por Keith Peters, cortesía de la editorial Friends of Ed.

Así es que si tienes una cuenta en twitter no pierdas el tiempo y empieza a  programar, la primera ronda del concurso se cierra en Marzo 1.

Gracias  a  Héctor Padilla quien muy amablemente  me ofreció las reglas ya traducidas al español  tal y como aparecen en  la  página de #tweetcoding :

¿Qué?
#tweetcoding: programa algo interesante con <=140 carácteres de AS3

¿Quien?
Organizado por @gskinner, abierto a todo el mundo

¿Cuando?
empezando ahora, primera ronda termina el 1 de Marzo

¿Por qué?
fama, diversión, reconocimiento de tus compañeros, y buenos premios (mencionados abajo). Podría mostrar un par de entradas en una de mis pláticas.

¿Cómo?
pega los 140 carácteres de “gimme” code en Flash
apaga el modo estricto en tu Flash (Publish settings > Flash > AS3 settings…)
incluye tus 140 carácteres donde dice /*src*/.

manda tu entrada por medio de Twitter mandando dos tweets: uno con el código que hiciste, y el otro con el título de tu entrada, la etiqueta #tweetcoding, y un link a el tweet con tu código.

Gimme code.

?View Code ACTIONSCRIPT3
1
2
3
4
5
6
7
8
9
10
11
g=graphics;
mt=g.moveTo;
lt=g.lineTo;
ls=g.lineStyle;
m=Math;
r=m.random;
s=m.sin;
i=0;
o={};
function f(e){/*src*/}
addEventListener("enterFrame",f);

Tip #1: usa i como un contador de frames para cambiar el comportamiento en el tiempo.
Tip #2: usa o para guardar datos persistentes (ej. o.x=7).
Tip #3: use m.PI & g.drawRect para ahorrar carácteres.

Reglas.
no puedes modificar el “gimme” code.
tu entrada debe de ser mandado como un único tweet de 140 cáracteres.
no puedes usar assets extras.
AS3 “strict mode” (modo estricto) debe de estar apagado, y pensado en el Flash Player 19.
cualquier persona debe de poder compilar tu entrada simplemente con acceso a tu twett, Flash CS4, y estas intrucciones.

Premios El ganador recibirá una copia de Flash CS4 – Cortesía de Adobe.

En ganador y los siguientes dos lugares recibirán copias de “AdvancED ActionScript 3.0 Animation” por Keith Peters, – Cortesía de Friends of Ed.

Ejemplo.
Aquí hay un sencillo ejemplo de algo hecho con 110 carácteres. Pega este código donde dice /*src*/, prueba el proyecto, y verá una espiral siendo dibujada.

?View Code ACTIONSCRIPT3
1
2
3
4
5
if(i&gt;400)return;
if(i++&lt;1){x=275;y=200}
ls(3,r()*1e7,1);
mt(s(i/9)*i,m.cos(i/9)*i);
lt(s(i/9)*200,m.cos(i/9)*200);

Creditos.
Gracias a Adobe por proveer el premio (Copia de Flash CS4)!
Muchas gracias a Friends of EDpor proveer 3 copias de su libro “AdvancED ActionScript 3.0 Animation” para los primeros 3 lugares.
Gracias a @kevinSuttle por detonar la idea.
Gracias a mi adorable esposa por soportar el hecho de que le estoy dedicando tiempo a esto en lugar de hacer otras cosas.

Links.
link – Sigue #tweetcoding, ve todas las entradas
link – programita para hacer tu código más compreso

Saludos y feliz  #tweetcoding.

Sigueme en twitter @swfgeek

Happy Holidays from .SWFGEEK

The Flash plugin is required to view this object.

Merry Christmas and Happy New Year from .swfgeek !!!

If you happen to celebrate this holidays ( or not ) I wish you the best with your families and friends, 2008 was a year full of new stuff for me, new job, new city, new friends it was a good year overall and hope 2009 gets just as much exiting as 2008 was, I plan to add more examples and tutorials on this site just entering the year so keep tuned in ( any topic suggestions for the examples and tutorials are welcome).
( By the way the swf above is using the great Flint Particles Library ( Version 2.0 ) by Richard Lord ) if you haven’t, go check it at http://flintparticles.org/

My best wishes to you all and thanks for reading.
Dave Gamez (.swfgeek)