Flash Components

HOME arrow TUTORIALS arrow Effettistica arrow Effetto acqua con Flash CS3
Effetto acqua con Flash CS3 Stampa E-mail
Scritto da Flep   
Sunday 03 June 2007
Un altro effetto creato con Actionscript 3.0 e in particolar modo le classi BitmapData e DisplacementMapFilter.
L' effetto ricrea un ambiente con 2 tende canadesi a bordo del lago in una notte di luna piena.
Piacevole l' effetto dell' acqua che si muove.

Vediamo le classi utilizzate...

Leggi tutto

Trackback(0)
Commenti (3)Add Comment
...
scritto da tia, July 13, 2007
Ciao Flep..sto trovando questo sito utilissimo..
è veramente fatto bene..stavo cercando di capire "DisplacementMapFilter"..è troppo bello modificare immagini direttamente da as..comunque..
spostamento=new DisplacementMapFilter(bit_data,point,1,2,10,30); per i primi due parametri ci sono..ma gli altri quattro a cosa servono??
anche perhcè se riesco a capire il funzionamente della classe vorrei poter riflettere verticalmente un'immagine..(cioè avendo i pixel in posizioni opposte)..e se per caso fosse possibile farla diventare trasparente gradualmente..in sostanze volevo creare una gallery in cui i thumbnails avessero il riflesso e che questo riflesso diventava trasparente gradualmente..già sono riuscito a clonare l'immagine ora devo lavorare sul clone..grazie in anticipo..ciaoooo smilies/wink.gif
...
scritto da Flep, July 13, 2007
Ciao,
questi sono i parametri che vuole:
DisplacementMapFilter(mapBitmap:BitmapData = null, mapPointsmilies/tongue.gifoint = null, componentX:uint = 0, componentY:uint = 0, scaleX:Number = 0.0, scaleY:Number = 0.0, mode:String = "wrap", color:uint = 0, alpha:Number = 0.0)
Initializes a DisplacementMapFilter instance with the specified parameters.

Quì te li spiega:
alpha : Number
Specifies the alpha transparency value to use for out-of-bounds displacements. DisplacementMapFilter
color : uint
Specifies what color to use for out-of-bounds displacements. DisplacementMapFilter
componentX : uint
Describes which color channel to use in the map image to displace the x result. DisplacementMapFilter
componentY : uint
Describes which color channel to use in the map image to displace the y result. DisplacementMapFilter
constructor : Object
A reference to the class object or constructor function for a given object instance. Object
mapBitmap : BitmapData
A BitmapData object containing the displacement map data. DisplacementMapFilter
mapPoint : Point
A value that contains the offset of the upper-left corner of the target display object from the upper-left corner of the map image. DisplacementMapFilter
mode : String
The mode for the filter. DisplacementMapFilter
prototype : Object
[static] A reference to the prototype object of a class or function object. Object
scaleX : Number
The multiplier to use to scale the x displacement result from the map calculation. DisplacementMapFilter
scaleY : Number
The multiplier to use to scale the y displacement result from the map calculation. DisplacementMapFilter

E' molto difficile e a volta anche io mi perdo un po. Ti consiglio di fare delle prove cambiando i valori per vedere i risultati ottenuti e fare le tue conclusioni.

A volte è più semplice da fare che da spiegare... smilies/cheesy.gif
...
scritto da tia, July 13, 2007
Grazie mille!!
Spero di riuscire a farcela!!smilies/wink.gif

Scrivi commento
quote
bold
italicize
underline
strike
url
image
quote
quote
smile
wink
laugh
grin
angry
sad
shocked
cool
tongue
kiss
cry
smaller | bigger

busy
Ultimo aggiornamento ( Thursday 20 September 2007 )
< Prec.   Pros. >

Corso Flash CS3

Flashmint flash templates

FlippingBook page flip engine - flash books for web designers

Flash Media Server Hosting

Professional Flash Components

FlashDen stock

Flash Animation

Flash Components

Big Stock Flash | Buy and Sell Royalty-Free Flash effects music and video files

Flash Components

Flash Components

Flash Components

Buy Sell Flash files

Flash Components

hire a Flash professional

Flash audio