Programming
Flash – Interaction and Animation
by Eek on Mar.12, 2009, under Programming
I have always wanted to change the world… And to be onest I don’t have the slighthest ideea how to do that… When i was young i was always thinking that I will be an inventor or something… I always dreamed of discovering the secret to pass the Speed of Light… But when I think more of it… It’s not for me ![]()
So… I’m trying to change the world in a different way… Change the WEB! ![]()
I think the internet is such a static and hunted place it sometimes cares me… It should be so much animated… So much more interaction should be… So… I’m starting on changing the world there ![]()
I have spent a lot of time today in flash, thinking, making, trying, seeing, modifing stuff… I’ve made some interesting stuff for my website (http://eek.ro) but i won’t share any on those at the moment…
But I will share something else i have made… To be onest it’s not 100% my work, i have been inspiring in other people’s work… But this is how the human kind evolved… Right? Learning one from each other…
So… The final product comes like and interesting Calendar i will find it usefull to insert changelogs and other usefull information you can store in the calendar… And it’s fully animated… So… Here! Take a look!
Flash Programming / Running away MovieClips
by Eek on Mar.07, 2009, under Programming
![]()
Some of you asked me how i’v realized that effect in Flash. Well.. It’s maybe one of the simplest to do if you know a little actionscript 2…
The animation you’ve seen with Eek (The Eek Logo) it’s made quite simple. You open a new project in Flash and there you draw a form (in my case, those 3D cubes…), after that you select your form, press F8 and convert it to Movie clip… Here you go to the timeline and insert another 2 keyframes.
In the first keyframe you add this code:
x00 = _x;
y00 = _y;
DIAM = 1000;
The important thing you need to know here is that DIAM is the diametre in which the “shapes” can run away from you
In the second keyframe there’s a little more actionscripting:
x0 = _x;
y0 = _y;
x = _root._xmouse;
y = _root._ymouse;
a = x - x0;
b = y - y0;
r = Math.sqrt(a * a + b * b);
a_x = this._x - a / r * DIAM/ r;
a_y = this._y - b / r * DIAM/ r;
b_voltar_x = (x00 - x0) / 2;
b_voltar_y = (y00 - y0) / 2;
this._x = a_x + b_x;
this._y = a_y + b_y;
And that’s almost everything… In the last (third) keyframe you add the code gotoAndPlay(2); so that the script will aways run.
Then you go back into the Main Scene and draw everything you want by inserting the shapes into the stage and copy-paste them and making the form you desire out of them
That’s all regarding to that flash…
I think i’ll gonna do something related to that on the first page (http://eek.ro)… But a lot more visual atractive, i experimented a little more with my logo by replacing those 3D cubes with tiny circles… Then added around 300 in my scene to draw a better looking Eek
But after i exported i realised there were too many and the animation was working like SH*T
Eh… I think i’ll gonna remain at some photoshop
Hope you like the new design of my blog… Added to it what i done yestarday in photoshop, and besides that i added a favicon… Not a very good looking one that’s a little nice
Heh!
I’ll gonna start working on Eek.ro and rowl.eek.ro