Ask a Question related to Macromedia Flash Data Integration, Design and Development.
-
rabblerouser #1
Dynamically loading names in batches
I have a small application that is supposed to load a list of names into 28
dynamic text boxes on the stage. The list will gradually get larger, but the
number of text boxes will always be the same. It starts with a simple LoadVars
object and sets variables for the batches: currentBatch = 1; batchSize = 28;
var myTxT = new LoadVars(); myTxt.onLoad = function(success) {
//gotoAndStop('done'); gotoAndPlay('done'); }; myTxT.load('nametext.txt');
The variables in the text file are all named 'n1, n2...', and so on. When the
text loads, the file goes to a frame with this code in it to place it into the
text boxes: start = currentBatch*batchSize-batchSize; for (i=start;
i<=batchSize; i++) { _root['name_'+i].text = myTxT['n'+i]; } This all works
fine loading the first 28 names. But I can't figure out how to add the next
group of 28 names. I tried putting a 'next' button on the stage with the
script, on (release) { _root.currentBatch = currentBatch++; } But this does
not work. Any ideas what I'm doing wrong? For reference, my files are located
at: [url]http://www.rabblerouser.com/clients/names.zip[/url] Any help is much appreciated!
rabblerouser Guest
-
Dynamically loading xml content
I?m creating a menu bar in which the links have to be dynamically created based on the values in the xml, and the number of links(buttons) may even... -
Loading images dynamically
I have a slideshow that I am working on and the way the slideshow works is that it assigns any number of images i define to an array. problem is,... -
dynamically loading css-rules!
what is the question, I dont get it, you said it print correctly the styles, so what's the problem ? Savut "Sindre Hiåsen" <paalhi@ifi.uio.no>... -
Getting the best answer(WAS: How do you dynamically assign array names?)
I think this touches on an issue that people should consider when they post to this list. Often people ask a question, and instead of asking for... -
How do you dynamically assign array names?
Hi, I am trying to initialize a dynamically-named array, i.e. with the following test code (if I type "script.pl char" at the command prompt) I... -
rabblerouser #2
Dynamically loading names in batches
I have a small application that is supposed to load a list of names into 28
dynamic text boxes on the stage. The list will gradually get larger, but the
number of text boxes will always be the same. It starts with a simple LoadVars
object and sets variables for the batches: currentBatch = 1; batchSize = 28;
var myTxT = new LoadVars(); myTxt.onLoad = function(success) {
//gotoAndStop('done'); gotoAndPlay('done'); }; myTxT.load('nametext.txt');
The variables in the text file are all named 'n1, n2...', and so on. When the
text loads, the file goes to a frame with this code in it to place it into the
text boxes: start = currentBatch*batchSize-batchSize; for (i=start;
i<=batchSize; i++) { _root['name_'+i].text = myTxT['n'+i]; } This all works
fine loading the first 28 names. But I can't figure out how to add the next
group of 28 names. I tried putting a 'next' button on the stage with the
script, on (release) { _root.currentBatch = currentBatch++; } But this does
not work. Any ideas what I'm doing wrong? For reference, my files are located
at: [url]http://www.rabblerouser.com/clients/names.zip[/url] Any help is much appreciated!
rabblerouser Guest



Reply With Quote

