Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
3038 connectés 

  FORUM HardWare.fr
  Programmation
  Flash/ActionScript

  A l'aide, bloqué dans Flash par Actionscript

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

A l'aide, bloqué dans Flash par Actionscript

n°1763690
kerodav
Posté le 23-07-2008 à 13:45:24  profilanswer
 

Bonjour,  
 
j'ai vraiment besoin d'aide, je débute en flash mais je ne connais pas actionscript et j'ai un problème pour modifier un menu FILTER BY qui par défaut sélectionne toutes les catégories alors que je voudrais n'afficher qu'une catégorie sélectionnée dans un menu. Je penses avoir trouvé la fonction AS responsable (cf copie du code), mais j'atteins là les limites de ma compréhension, pouvez-vous me débloquer ?  
Merci d'avance  
 
//------------------------------------------------------Filt­er  
_fltrFnctn = function () {  
_root._intrfceMC._filtrMC._visible = true;  
_root._intrfceMC._filtrMC.tween("_alpha", 100, 0.5);  
//-------------  
categoryArray = [];  
var _pathIDFX = _xml.firstChild.firstChild;  
_totFX = _pathIDFX.childNodes.length;  
_totRmvFltr = _totFX;  
//----------------------------  
for (var h = 0; h<_totFX; ++h) {  
var _pathIDInnrFX = _pathIDFX.childNodes[h];  
categoryArray.push(_pathIDInnrFX.attributes.type);  
var _mcBtn = _root._intrfceMC._filtrMC.mnCntanr.attachMovie("_intrFa­ceFilterText", "btn"+h, h);  
//----------------------------  
_mcBtn.category = _pathIDInnrFX.attributes.type;  
_mcBtn._y = h*25;  
//----------------------------  
_mcBtn._txt = _pathIDInnrFX.attributes.type.toUpperCase();  
_mcBtn._txtT.autoSize = true;  
//----------------------------  
_mcBtn.onRollOver = function() {  
this.MOvr();  
};  
_mcBtn.onRollOut = function() {  
this.MOut();  
};  
_mcBtn.onPress = function() {  
if (_global["filter_"+this.category] == true) {  
this.MOvr();  
this._circleMC2._alpha = 0;  
_global["filter_"+this.category] = false;  
} else {  
this.MOut();  
this._circleMC2._alpha = 100;  
_global["filter_"+this.category] = true;  
}  
_phutgay();  
};  
_global["filter_"+_pathIDInnrFX.attributes.type]­ = true;  
}  
//----------------------------------------------------FR  
_root._intrfceMC._filtrMC._head = "FILTER BY";  
_root._intrfceMC._filtrMC._headT.autoSize = "Center";  
};

mood
Publicité
Posté le 23-07-2008 à 13:45:24  profilanswer
 


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  Flash/ActionScript

  A l'aide, bloqué dans Flash par Actionscript

 

Sujets relatifs
[FLASH]De l'art de travailler avec des graphistes....Actionscript - variables
configuration fenêtre d'aide d'excelExercice: Aide pour les classes
[Hibernate] besoin d'aide pour comprendre mes erreurslecteur video flash sur un site : comment démarer immédiatement
besoin d aide script de protection allopassProgrammation aide?
Besoin d'aide pour la réalisation d'une fct avec compteur décompteur 
Plus de sujets relatifs à : A l'aide, bloqué dans Flash par Actionscript


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR