• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Big letters on the screen

New Here ,
Apr 08, 2015 Apr 08, 2015

Copy link to clipboard

Copied

Hi there,

I don't know what i did wrong.

This is my code and the screen. When i click on "trier", i can see only few big letters.

Tks forour help.

The second image is how i was suppose to get the list.

package {

import flash.display.*;

import flash.text.*;

import flash.events.MouseEvent;

import fl.controls.List;

public class U2A2_ElevesGestion extends MovieClip {

 

  var eleve:Array = new Array();

 

  var liste:String;

  public function U2A2_ElevesGestion() {

  btnLister.addEventListener(MouseEvent.CLICK, lister);

  btnTrier.addEventListener(MouseEvent.CLICK, trier);

  btnAjout.addEventListener(MouseEvent.CLICK, ajouter);

  btnSupprimer.addEventListener(MouseEvent.CLICK, supprimer);

  include "U2A2_ElevesListe.as"

  }

  function lister(event:MouseEvent):void {

  liste="";

  for (var i=0; i<eleve.length; i++)

  {

  liste = liste + ("Élève [" + i + "] : " + eleve + "\n");

  }

  affichage.text = liste;

  

  }

  function trier(event:MouseEvent):void {

  eleve.sort();

  }

  function ajouter(event:MouseEvent):void {

  eleve.push(txtSaisieNomEleve.text);

  }

  function supprimer(event:MouseEvent):void {

  var indiceEleve:int;

  indiceEleve =(eleve.indexOf(txtSaisieNomEleve.text));

  if (indiceEleve != -1)

  {

  for (var i=indiceEleve; i <eleve.length; i++)

  {

  eleve = eleve[i+1];

  }

  eleve.pop();

  }

  }

}

BigScreen.JPG

Normalscreen.JPG

TOPICS
ActionScript

Views

189

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Apr 08, 2015 Apr 08, 2015

Copy link to clipboard

Copied

LATEST

my first guess is check the text field the data is populating that the font size didnt accidently increase. Other then that I'd say investigate this include file U2A2_ElevesListe.as in your code, it might be stemming from that as file

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines