Problem with arrays

  • Bolchius
  • Born
  • Born
  • Bolchius
  • Posts: 1
  • Loc: Spain

Post 3+ Months Ago

Maybe a stupid question, I have 4 arrays I get from a txt by using a movieclip in timeline:


Code: [ Select ]
onClipEvent(load) {
 this.loadVariables("data.txt");
}

onClipEvent(data) {

  titulo = ttitulo.split(",");
  n = tn.split(",");
  fields = tfields.split(",");
  links = tlinks.split(",");
  for (var i in n) {
   n[i] = Number(n[i]);
  }
for (item in this) {
   _root[item] = this[item];
  }
}
  1. onClipEvent(load) {
  2.  this.loadVariables("data.txt");
  3. }
  4. onClipEvent(data) {
  5.   titulo = ttitulo.split(",");
  6.   n = tn.split(",");
  7.   fields = tfields.split(",");
  8.   links = tlinks.split(",");
  9.   for (var i in n) {
  10.    n[i] = Number(n[i]);
  11.   }
  12. for (item in this) {
  13.    _root[item] = this[item];
  14.   }
  15. }



Now, variable "titulo" should be operative but:
If I create a dynamic text field with the var name "titulo" it gaves me the results.
but if I do the following:
var dato=titulo;
and after I create a text field with the var name dato, it gaves me nothing.
What is wrong?
How can I create a new variable with exactly the same value as titulo?

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 11 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.