Pages: [1]
  Print  
Author Topic: My first Gaia site  (Read 389 times)
viaria
Gaia Fan
***
Posts: 112


viaria
WWW
« on: November 27, 2011, 01:31:34 PM »

i made this site 6 months ago, they did pay the price so it is finally online. Without Gaia i would work another 2 weeks. I made 2 more site with gaia. i will share them if they go online.
Thanks. Smiley

http://www.toca.com.tr/
Logged
viaria
Gaia Fan
***
Posts: 112


viaria
WWW
« Reply #1 on: December 15, 2011, 03:33:55 AM »

i got a dope award.

http://www.dopeawards.com/?winner=2350&cat=0
Logged
TommyO
Gaia Novice
*
Posts: 7


« Reply #2 on: December 16, 2011, 01:57:06 PM »

I love the preload particles! Ive been looking for a gallery like this everywhere. Could you tell how you achieve it? (Our Team). Thanks and Congrats on the award!!  Wink
Logged
viaria
Gaia Fan
***
Posts: 112


viaria
WWW
« Reply #3 on: December 16, 2011, 03:36:53 PM »

it is not a dynamic loading actually because it loses attraction that way. i am not a hard coder but trying to be so my code may not be the best practice. i have basicly Particles and Dot classes, they do the job. i attached the files also.

Here is the Particles class:

Code:
package {

import flash.display.Sprite;

import com.greensock.*;
import com.greensock.easing.*;


public class Particles extends Sprite {

private var dots:Vector.<Dot > ;

public function Particles() {
//here i am calling them at the same time. i dont have game concept so i dont know if this cause something.
initParticles();
animateParticles();
}

private function initParticles():void{
var cont:Sprite = new Sprite();
addChild(cont);
cont.x = 50;
cont.y = 100;

dots = new Vector.<Dot>();
var i:uint = 0;
var len:uint = 724 * 2;
var forX:int = 0;
var forY:int = 0;

for (i; i < len; ++i) {
dots[i] = new Dot();
dots[i].alpha = 0;
//dots[i].visible = false;
dots[i].x = 750;
dots[i].y = 100;
if (i % 2 == 1) {
dots[i].x = -25 + forX;
} else {
dots[i].x = 724 - forX;
}
forX++;
cont.addChild(dots[i]);
}
}

private function animateParticles():void{
var i:uint = 0;
var len:uint = 724;
var forX:int = 0;
var forY:int = 0;
var forD:Number = 0;
for(i; i < len; ++i){
TweenMax.to(dots[i], 1, {bezier:[{x:730, y:50}, {x:forX, y:forY}], alpha:1, delay:forD, ease:Cubic.easeInOut});
forX++;
forD += 0.005;
}
var j:uint = len;
forX = 0;
forY = 1;
forD = 0;
for(j; j < len*2; ++j){
TweenMax.to(dots[j], 1, {bezier:[{x:0, y:50}, {x:forX, y:forY}], autoAlpha:1, delay:forD, ease:Cubic.easeInOut});
forX++;
forD += 0.005;
}
}




}

}


here is the Dot class

Code:
package  {

import flash.display.Sprite;

public class Dot extends Sprite {
public var spr:Sprite;

public function Dot() {
spr = new Sprite();
spr.graphics.beginFill(0xffffff);
            spr.graphics.drawRect(0, 0, 1, 1);
            spr.graphics.endFill();
addChild(spr);
}

}

}

Logged
viaria
Gaia Fan
***
Posts: 112


viaria
WWW
« Reply #4 on: December 16, 2011, 03:41:21 PM »

I love the preload particles! Ive been looking for a gallery like this everywhere. Could you tell how you achieve it? (Our Team). Thanks and Congrats on the award!!  Wink

for the "Our Team" page, i cant share that, sorry. But you can do that it is not a big thing. Actually TweenMax is doing it, i am passing params.
Logged
viaria
Gaia Fan
***
Posts: 112


viaria
WWW
« Reply #5 on: February 06, 2012, 08:11:48 PM »

and fwa public shorlisted. http://www.thefwa.com/shortlist/toca
enough for this project.
Logged
Pages: [1]
  Print  
 
Jump to:  

TinyPortal v1.0 beta 4 © Bloc