Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

Elastic Gallery - aggiungere tween

This is a discussion on Elastic Gallery - aggiungere tween within the AIUTO utilità free forums, part of the Flash CS3 generale category; Buongiorno Sono tornato sulla Elastic Gallery gentilmente offerta da Flep ed avrei l'esigenza di modificare l'animazione dei tasti ...


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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-04-08, 09:48
Eugene's Avatar
Member
 
Join Date: Sep 2007
Location: Dagobah
Posts: 95
Rep Power: 2
Eugene is on a distinguished road
Send a message via MSN to Eugene Send a message via Skype™ to Eugene
Elastic Gallery - aggiungere tween

Buongiorno

Sono tornato sulla Elastic Gallery gentilmente offerta da Flep ed avrei l'esigenza di modificare l'animazione dei tasti al momento del click.

Attualmente, avviene quanto sotto riportato:

Code:
  private function checkThumbs(n:int):void
  {
   for(var i:int=0;i<thumbs_array.length;i++)
   {
    if(i==n)
     Tweener.addTween(thumbs_array[i],{rotation:378,time:1,transition:'easeoutelastic'});
    else
     Tweener.addTween(thumbs_array[i],{rotation:0,time:1,transition:'easeoutelastic'});
   }
  }
Quello che vorrei fare è agire su scaleY e scaleX, ma se inserisco due Tweener ottengo un messaggio d'errore.
In sostanza, il sottostante codice non funziona:
Code:
  private function checkThumbs(n:int):void
  {
   for(var i:int=0;i<thumbs_array.length;i++)
   {
    if(i==n)
     Tweener.addTween(thumbs_array[i],{(thumbs_array[i].scaleY):1.5,time:1,transition:'easeOutBack'});
     Tweener.addTween(thumbs_array[i],{(thumbs_array[i].scaleX):1.5,time:1,transition:'easeOutBack'});
    else
     Tweener.addTween(thumbs_array[i],{(thumbs_array[i].scaleY):1,time:1,transition:'easeOutBack'});
     Tweener.addTween(thumbs_array[i],{(thumbs_array[i].scaleX):1,time:1,transition:'easeOutBack'});
   }
  }

Questi il messaggi d'errore:

1083: Errore di sintassi: non è previsto else.
1083: Errore di sintassi: non è previsto rightparen.

Grazie.
__________________
<-- Fare o non fare, non c'è provare -->

http://www.yodastudio.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #2 (permalink)  
Old 01-04-08, 10:13
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,356
Blog Entries: 1
Rep Power: 6
Flep is on a distinguished road
Re: Elastic Gallery - aggiungere tween

Ciao Eugene,
Code:
Tweener.addTween(thumbs_array[i],{scaleY:1.5,time:1,transition:'easeOutBack'});
__________________

 


I recommend: Essential Actionscript 3.0

- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
- I do not reply technicians pvt messages. Open a thread !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-04-08, 08:40
Eugene's Avatar
Member
 
Join Date: Sep 2007
Location: Dagobah
Posts: 95
Rep Power: 2
Eugene is on a distinguished road
Send a message via MSN to Eugene Send a message via Skype™ to Eugene
Riferimento: Elastic Gallery - aggiungere tween

Grazie Flep. ma continuo ad avere sempre lo stesso messaggio d'errore con il seguente codice:

Code:
  private function checkThumbs(n:int):void
  {
   for(var i:int=0;i<thumbs_array.length;i++)
   {
    if(i==n)
     Tweener.addTween(thumbs_array[i],{scaleY:1.5,time:1,transition:'easeOutBack'});
     Tweener.addTween(thumbs_array[i],{scaleX:1.5,time:1,transition:'easeOutBack'});
    else
     Tweener.addTween(thumbs_array[i],{scaleY:1,time:1,transition:'easeOutBack'});
     Tweener.addTween(thumbs_array[i],{scaleX:1,time:1,transition:'easeOutBack'});
   }
  }
Da quel che ho intuito, l'errore scaturisce dal fatto di voler creare simultaneamente due tween.

Esiste una soluzione?
__________________
<-- Fare o non fare, non c'è provare -->

http://www.yodastudio.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-04-08, 08:47
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,356
Blog Entries: 1
Rep Power: 6
Flep is on a distinguished road
Re: Elastic Gallery - aggiungere tween

ops sìsì certo, dovevo dirtela già prima:
Code:
private function checkThumbs(n:int):void
  {
   for(var i:int=0;i<thumbs_array.length;i++)
   {
    if(i==n)
     Tweener.addTween(thumbs_array[i],{scaleY:1.5,scaleX:1.5,time:1,transition:'easeOutBack'});
    else
     Tweener.addTween(thumbs_array[i],{scaleY:1,scaleX:1,time:1,transition:'easeOutBack'});
   }
  }
__________________

 


I recommend: Essential Actionscript 3.0

- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
- I do not reply technicians pvt messages. Open a thread !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-04-08, 09:01
Eugene's Avatar
Member
 
Join Date: Sep 2007
Location: Dagobah
Posts: 95
Rep Power: 2
Eugene is on a distinguished road
Send a message via MSN to Eugene Send a message via Skype™ to Eugene
Riferimento: Elastic Gallery - aggiungere tween

Perfetto!

Grazie mille.

Un'ultima cosa: dove posso trovare l'elenco delle transizioni disponibili?

In questo caso si sta usando easeOutBack ma vorrei vedere l'effetto che si ottiene modificando questo parametro.

Grazie ancora.
__________________
<-- Fare o non fare, non c'è provare -->

http://www.yodastudio.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

photoFlow

  #6 (permalink)  
Old 02-04-08, 09:04
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,356
Blog Entries: 1
Rep Power: 6
Flep is on a distinguished road
Re: Elastic Gallery - aggiungere tween

Le trovi quì:

Tweener Documentation and Language Reference

sulla sinistra nel menu clicca transitions type
__________________

 


I recommend: Essential Actionscript 3.0

- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
- I do not reply technicians pvt messages. Open a thread !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-04-08, 12:03
Eugene's Avatar
Member
 
Join Date: Sep 2007
Location: Dagobah
Posts: 95
Rep Power: 2
Eugene is on a distinguished road
Send a message via MSN to Eugene Send a message via Skype™ to Eugene
Riferimento: Elastic Gallery - aggiungere tween

Impagabile Flep!

Grazie.
__________________
<-- Fare o non fare, non c'è provare -->

http://www.yodastudio.com
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
Elastic Gallery Flep Utilità di FlepStudio 18 30-09-08 16:28
Elastic Gallery Flep FlepStudio utilities 17 20-08-08 13:00
aggiungere immagini su stage mikvetere Flash CS3 generale 4 28-05-08 21:38
Aggiungere una funzione ad una clip posta al secondo frame....how???? jadevil Flash CS3 generale 1 24-03-08 06:50
Elastic Gallery - link esterno a sito Eugene AIUTO utilità free 2 15-02-08 10:08


All times are GMT. The time now is 05:56.


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


FlepStudio
by Filippo Lughi
P.IVA 03605860406