Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

E il banner Merry Xmas di Flep ?

This is a discussion on E il banner Merry Xmas di Flep ? within the AIUTO utilità free forums, part of the Flash CS3 generale category; So che sto chiedendo troppo, ma è possibile avere un aiuto per la creazione di un banner natalizio tipo quello in ...


Go Back   Forum Flash CS3 Flash CS4 > Flash CS3 e Actionscript 3.0 > Flash CS3 generale > AIUTO utilità free

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 19-12-07, 07:50
Junior Member
 
Join Date: Oct 2007
Posts: 13
Rep Power: 0
valesan is on a distinguished road
E il banner Merry Xmas di Flep ?

So che sto chiedendo troppo, ma è possibile avere un aiuto
per la creazione di un banner natalizio tipo quello in alto dove flepstudio
augura buon natale ?? ;)

anche solo sapere come fare l'effetto nevicata ...

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #2 (permalink)  
Old 19-12-07, 08:00
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,486
Rep Power: 6
Flep is on a distinguished road
Re: E il banner Merry Xmas di Flep ?

Ciao

L' effetto che uso io è dato da questo codice:

- dalla timeline istanzio la classe Snow, in questo modo:
Code:
var timer:Timer=new Timer(100,0);
timer.addEventListener(TimerEvent.TIMER,flake);
timer.start();

function flake(evt:TimerEvent):void
{
	var f:Snow=new Snow();
	addChild(f);
}
- la classe Snow ( associata ad una MovieClip in libreria )
Code:
package
{
	import flash.display.MovieClip;
	import flash.events.Event;
	
	public class Snow extends MovieClip
	{
		private var vx:Number;
		private var vy:Number;
		private var center:Number;
		private var spring:Number=.1;
		private var angle:Number=0;
		
		public function Snow()
		{
			addEventListener(Event.ADDED_TO_STAGE,init);
		}
		
		private function init(evt:Event):void
		{
			removeEventListener(Event.ADDED_TO_STAGE,init);
			x=Math.random()*stage.stageWidth;
			y=-height;
			scaleX=scaleY=0.2+Math.random()*1;
			vy=scaleX*6;
			vx=vy;
			center=x;
			addEventListener(Event.ENTER_FRAME,go);
		}
		
		private function go(evt:Event):void
		{
			var acc_x:Number=(center-x)*spring;
			vx+=acc_x;
			x+=vx;
			//alpha-=.005;
			var sine:Number=Math.sin(this.angle);
			scaleX=sine;
			angle+=.2;
			
			y+=vy;
			if(y>=stage.stageHeight+height)
			{
				removeEventListener(Event.ENTER_FRAME,go);
				var my_parent:MovieClip=parent as MovieClip;
				my_parent.removeChild(this);
			}
		}
	}
}
Puoi scaricare i files da quì:
http://www.flepstudio.org/sharing/HeaderForum.zip

Oppure hai anche un altro bello esempio che ha creato un utente di FlepStudio, lo trovi quì:
http://www.flepstudio.org/forum/util...flash-cs3.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 19-12-07, 08:19
Junior Member
 
Join Date: Oct 2007
Posts: 13
Rep Power: 0
valesan is on a distinguished road
Re: E il banner Merry Xmas di Flep ?

Mitico ...

oltre che professionale e supergentile sei anche velocissimo !!!

un grazie di cuore e buon Natale ;)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 19-12-07, 08:31
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,486
Rep Power: 6
Flep is on a distinguished road
Re: E il banner Merry Xmas di Flep ?

Buon Natale anche a te !

Ho appena trovato anche queste icone se a qualcuno possono interessare:
Adobe CS3 Icons - xMas style by ~iixo on deviantART
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Componente stile banner Luigico Componenti di FlepStudio 0 09-09-08 01:02
Banner rotanti swf phantom700 Flash CS3 generale 1 31-07-08 09:21
Actionscript 3 banner flash cs3 sandro1492 Flash CS3 generale 2 14-06-08 16:11
Merry Xmas Onsitus Off Topics 1 25-12-07 07:56
me <3 flep Zombie Off Topics 1 06-12-07 13:20


All times are GMT. The time now is 22:08.


Powered by vBulletin versione 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC4
Forum SiteMap


FlepStudio
by Filippo Lughi
P.IVA 03605860406