Précédent   Forum des professionnels en informatique > Webmasters - Développement Web > Flash/Flex > Flash > AS3
AS3 Questions relatives à la programmation ActionScript 3 (Cours AS3)
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 21/12/2011, 10h42   #1
Invité de passage
 
Inscription : mars 2007
Messages : 13
Détails du profil
Informations forums :
Inscription : mars 2007
Messages : 13
Points : 3
Points : 3
Par défaut Flex/AS3 : fonction search qui ne fonctionne pas

Bonjour,

Je travaille actuellement sur un petit logiciel avec Flex Builder 3.

Je rencontre un problème avec la fonction search.

j'essaie de splitter un texte et d'en retirer certaines informations.

Voici la source qui pose probleme :

Texte à splitter :

Citation:
top.DeleteRecentResults('harz50#pokerstarsfr&null');
top.PlayerRecentForm['harz50#pokerstarsfr&null&0']=['484536378','€9.05','1323994874','6/6','-€10','NL','H','','null'];
top.PlayerRecentForm['harz50#pokerstarsfr&null&1']=['484539014','€4.70','1323993837','8/10','-€5','NL','H',',T,F,','null'];
top.PlayerRecentForm['harz50#pokerstarsfr&null&2']=['484542773','€9.42','1323993048','6/6','-€10','NL','H',',T,F,','null'];
top.PlayerRecentForm['harz50#pokerstarsfr&null&3']=['484520893','€9.13','1323992885','4/6','-€10','NL','H',',T,','null'];
top.PlayerRecentForm['harz50#pokerstarsfr&null&4']=['484540432','€18.84','1323992825','6/6','-€20','NL','H',',T,F,','null'];
top.PlayerRecentForm['harz50#pokerstarsfr&null&5']=['484527917','€18.84','1323991623','4/6','-€20','NL','H',',T,F,','null'];
top.PlayerRecentForm['harz50#pokerstarsfr&null&6']=['481178544','€0','1323990726','53/97','€0','NL','H',',FPP,T,R,','Y','€0'];
top.PlayerRecentForm['harz50#pokerstarsfr&null&7']=['484509610','€9.09','1323990514','5/9','-€10','NL','H',',T,','null'];
PlayerList['harz50#pokerstarsfr&null']=['harz50',2154,'0.1',11,'3','208','LLLLLLNL','pokerstarsfr',null,'null',null,'null','null','null','null','null','null','null','null','null','null',null,'null',null,null,'null','null','null',62,'null',null];
UpdateResults(1,525,2);
DisableSearchFields(false);
Source pour splitter :

Citation:
// SplitResult est le contenu du texte plus haut
debut=SplitResult.search("PlayerList");
fin=SplitResult.search("UpdateResults");
la variable début retourne bien la position de "PlayerList" en revanche la variable fin trouve pas la position de "UpdateResults" ( retourne 0 ).

Si une âme charitable a une solution à me proposer je suis preneur !

Merci
rickblue est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 23/12/2011, 11h01   #2
Invité de passage
 
Inscription : mars 2007
Messages : 13
Détails du profil
Informations forums :
Inscription : mars 2007
Messages : 13
Points : 3
Points : 3
Au final j'ai trouvé, il n'y avait pas d'erreur, j'éditais simplement un fichier non linké avec mon projet...
rickblue est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité Cette discussion est résolue.
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 05h35.


 
 
 
 
Partenaires

Hébergement Web