Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

azioni a bottoni

This is a discussion on azioni a bottoni within the Flash CS3 generale forums, part of the Flash CS3 e Actionscript 3.0 category; raga sto semplicemente sclerando...ho un semplice bottone nello stage e devo assegnarli un semplice stop...il problema e che ...


Go Back   Forum Flash CS3 Flash CS4 > Flash CS3 e Actionscript 3.0 > Flash CS3 generale

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 25-07-07, 13:39
Senior Member
 
Join Date: Jul 2007
Posts: 124
Rep Power: 2
nicodj88 is on a distinguished road
azioni a bottoni

raga sto semplicemente sclerando...ho un semplice bottone nello stage e devo assegnarli un semplice stop...il problema e che quando apro il pannello delle azioni mi dice che nn e possibile assegnare azioni alla selezinone corrente :stup::stup::stup:...che significa??? che posso fare????
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #2 (permalink)  
Old 25-07-07, 13:44
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,446
Rep Power: 6
Flep is on a distinguished road
Ciao,
non puoi assegnare codici sui bottoni o MovieClip con Flash CS3 :)

Devi chiamarlo dalla timeline:
nomeBottone.stop();
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 25-07-07, 13:50
Senior Member
 
Join Date: Jul 2007
Posts: 124
Rep Power: 2
nicodj88 is on a distinguished road
mado...ecco xke....e x quale motivo hanno tolto tale funzionalità???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 25-07-07, 13:55
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,446
Rep Power: 6
Flep is on a distinguished road
Un motivo sinceramente detto così non lo so...
Però di sicuro , almeno a me , mi ha risparmiato perdere 2 ore di tempo per correggere un FLA di qualcuno che scriveva codice sprsoper tutta l'applicazione.

Con Actionscript 3.0 dobbiamo imparare tutti a essere un po più ' educati ' quando scriviamo codice.

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

  #5 (permalink)  
Old 25-07-07, 13:58
Senior Member
 
Join Date: Jul 2007
Posts: 124
Rep Power: 2
nicodj88 is on a distinguished road
ok...scusa ma mi sno impantanato di nuovo...devo assegnare una funzione al bottone...che devo usare addEventLister oppure come hai detto tu nomebottone.onRelease = function() {} ???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Flash Multi Gallery
  #6 (permalink)  
Old 25-07-07, 14:09
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,446
Rep Power: 6
Flep is on a distinguished road
onRelease è stato rimosso :)
Devi utilizzare addEventListener in questo modo:
Code:
nomeBottone.addEventListener(MouseEvent.MOUSE_UP,nomeFunzioneDaChiamare);
  function nomeFunzioneDaChiamare(evento:MouseEvent):void
  {
   //codice da esguire
  }
Al seguente link hai un esempio:
http://www.flepstudio.org/tutorials/...007050324.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #7 (permalink)  
Old 25-07-07, 14:18
Senior Member
 
Join Date: Jul 2007
Posts: 124
Rep Power: 2
nicodj88 is on a distinguished road
wow...come al solito sei grande!! ;)...

cmq ho notato che eliminando paramtri dalla funzione viene generato un errore..x quale motivo?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #8 (permalink)  
Old 25-07-07, 14:29
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,446
Rep Power: 6
Flep is on a distinguished road
Perchè AS 3.0 rispetta i canoni ECMA per cui se chiami una funzione da un evento, Flash vuole come argomento l' evento stesso che ha scaturito la chiamata. :)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #9 (permalink)  
Old 25-07-07, 14:35
Senior Member
 
Join Date: Jul 2007
Posts: 124
Rep Power: 2
nicodj88 is on a distinguished road
ok grazie..sei un grande ;)
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
Aiuto Flashcs3 As2 Azioni Pulsanti daca84 Flash CS3 generale 2 13-10-08 08:23
Actionscript 3 [Aiuto] Azioni per pulsanti dinamiche ..da XML Fox+ Actionscript 3.0 base 0 08-10-08 22:00
Aiuto!! trasformare link in azioni prototype mattfloors AIUTO utilità free 0 04-08-08 08:17
Pulsanti e azioni Jeman Actionscript 3.0 base 2 01-03-08 08:29
gestire azioni di clip con cicli tem Actionscript 3.0 avanzato 16 09-08-07 01:19


All times are GMT. The time now is 17:59.


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