# Actionscrip Load Txt from Array

**URL:** <https://forum.kirupa.com/t/actionscrip-load-txt-from-array/232799>\
**Category:** flash\
**Created:** [July 17, 2007, 10:18pm UTC](https://forum.kirupa.com/t/actionscrip-load-txt-from-array/232799 "2007-07-17T22:18:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattjp18](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@mattjp18](https://forum.kirupa.com/u/mattjp18)\
**Post date:** [July 17, 2007, 10:18pm UTC](https://forum.kirupa.com/t/actionscrip-load-txt-from-array/232799/1 "2007-07-17T22:18:31Z")

</div>

Hi, could someone help me with the code for this. The site is [www.theblueskyproject.com](http://www.theblueskyproject.com). I would like to have a description for each project load into a textbox in the lower right corner called mytxtbox when the user clicks on each box. I am thinking I need to have another array but don’t know how to do it. I am gradually learning this flash. Thanks for any help, and here is the actionscript:[INDENT]Stage.scaleMode = “noScale”;[/INDENT][INDENT]Stage.align = “TL”;[/INDENT][INDENT]\_global.itens = [mc1, mc2, mc3, mc4, mc5, mc6, mc7, mc8];[/INDENT][INDENT]\_global.nome = [“Project 1”, “Project 2”, “Project 3”, “Project 4”, “Project 5”, “Buy Kits”, “News Items”, “About Me”];[/INDENT][INDENT]\_global.swf = [“01.swf”, “02.swf”, “03.swf”, “04.swf”, “05.swf”, “06.swf”, “07.swf”, “08.swf”];[/INDENT][INDENT]//[/INDENT][INDENT]\_global.largura = 300;[/INDENT][INDENT]\_global.altura = 300;[/INDENT][INDENT]//[/INDENT][INDENT]Reverse = function () {[/INDENT][INDENT]for (var i = 0; i\<itens.length; i++) {[/INDENT][INDENT]if (i != selecionado) {[/INDENT][INDENT]itens\*.bt.enabled = true;[/INDENT][INDENT]itens\*.bt.useHandCursor = true;[/INDENT][INDENT]//[/INDENT][INDENT]itens\*.top.tween("\_width",80,tempo,AnimType);[/INDENT][INDENT]itens\*.sombra.tween(["\_width", “\_height”],[80, 98],tempo,AnimType);[/INDENT][INDENT]itens\*.fd.tween(["\_width", “\_height”],[80, 80],tempo,AnimType);[/INDENT][INDENT]itens\*.meio.tween(["\_width", “\_height”],[70, 70],tempo,AnimType);[/INDENT][INDENT]itens\*.mask.tween(["\_width", “\_height”],[70, 70],tempo,AnimType);[/INDENT][INDENT]//[/INDENT][INDENT]descarregaMovie = function () {[/INDENT][INDENT]itens\*.alvo.unloadMovie();[/INDENT][INDENT]};[/INDENT][INDENT]itens\*.alvo.alphaTo(0,tempo,"",0,descarregaMovie);[/INDENT][INDENT]}[/INDENT][INDENT]}[/INDENT][INDENT]};[/INDENT][INDENT]for (var i = 0; i\<itens.length; i++) {[/INDENT][INDENT]itens\*.i = i;[/INDENT][INDENT]itens\*.alvo.\_alpha = 0;[/INDENT][INDENT]itens\*.titulo.text = nome\*;[/INDENT][INDENT]//[/INDENT][INDENT]itens[0].top.tween("\_width",largura+10,tempo,AnimType);[/INDENT][INDENT]itens[0].sombra.tween(["\_width", “\_height”],[largura+10, altura+28],tempo,AnimType);[/INDENT][INDENT]itens[0].fd.tween(["\_width", “\_height”],[largura+10, altura+10],tempo,AnimType);[/INDENT][INDENT]itens[0].meio.tween(["\_width", “\_height”],[largura, altura],tempo,AnimType);[/INDENT][INDENT]itens[0].mask.tween(["\_width", “\_height”],[largura, altura],tempo,AnimType);[/INDENT][INDENT]itens[0].alvo.loadMovie(swf[0]);[/INDENT][INDENT]itens[0].alvo.alphaTo(100,tempo);[/INDENT][INDENT]itens[0].bt.enabled = false;[/INDENT][INDENT]itens[0].bt.useHandCursor = false;[/INDENT][INDENT]//i[/INDENT][INDENT]itens\*.bt.onRollOver = function() {[/INDENT][INDENT]this.\_parent.meio.brightnessTo(“50”,tempo/2);[/INDENT][INDENT]};[/INDENT][INDENT]itens\*.bt.onRollOut = function() {[/INDENT][INDENT]this.\_parent.meio.brightnessTo(“0”,tempo);[/INDENT][INDENT]};[/INDENT][INDENT]itens\*.bt.onRelease = function() {[/INDENT][INDENT]\_global.selecionado = this.\_parent.i;[/INDENT][INDENT]this.enabled = false;[/INDENT][INDENT]this.useHandCursor = false;[/INDENT][INDENT]mainmask.alphaTo(“100”, tempo/2);[/INDENT][INDENT]//[/INDENT][INDENT]this.\_parent.alvo.loadMovie(swf[selecionado]);[/INDENT][INDENT]this.\_parent.alvo.alphaTo(“100”,tempo);[/INDENT][INDENT]//[/INDENT][INDENT]this.\_parent.top.tween("\_width",largura+10,tempo,AnimType);[/INDENT][INDENT]this.\_parent.sombra.tween(["\_width", “\_height”],[largura+10, altura+28],tempo,AnimType);[/INDENT][INDENT]this.\_parent.fd.tween(["\_width", “\_height”],[largura+10, altura+10],tempo,AnimType);[/INDENT][INDENT]this.\_parent.meio.tween(["\_width", “\_height”],[largura, altura],tempo,AnimType);[/INDENT][INDENT]this.\_parent.meio.brightnessTo(“0”,tempo);[/INDENT][INDENT]this.\_parent.mask.tween(["\_width", “\_height”],[largura, altura],tempo,AnimType);[/INDENT][INDENT]Reverse();[/INDENT][INDENT]};[/INDENT][INDENT]}[/INDENT][INDENT]onEnterFrame = function () {[/INDENT][INDENT]mc2.\_x = mc1.\_x+mc1.fd.\_width+3;[/INDENT][INDENT]mc3.\_x = mc2.\_x+mc2.fd.\_width+3;[/INDENT][INDENT]mc4.\_x = mc3.\_x+mc3.fd.\_width+3;[/INDENT][INDENT]mc5.\_x = mc4.\_x+mc4.fd.\_width+3;[/INDENT][INDENT]mc6.\_x = mc5.\_x+mc5.fd.\_width+3;[/INDENT][INDENT]mc7.\_x = mc6.\_x+mc6.fd.\_width+3;[/INDENT][INDENT]mc8.\_x = mc7.\_x+mc7.fd.\_width+3;[/INDENT][INDENT]};[/INDENT]
