Dinámica texto conjunto - necesarios para la producción enlaces

  • nikfiend
  • Novice
  • Novice
  • No Avatar
  • Registrado: Nov 09, 2005
  • Mensajes: 20
  • Status: Offline

Nota Julio 4th, 2007, 12:47 am

Así que lo que tenemos es algunas formas generado aleatoriamente y dentro de esas formas son cuadros de texto dinámico que genera aleatoriamente texto de una matriz. Lo que no puedo entender es cómo hacer que la matriz de modo que cada cuadro de texto dinámico crea un vínculo con el texto.
El código i estoy utilizando para esta obra está por debajo y gracias de antemano.


Código: [ Select ]
for (i=1; i<=10; i++){
    attachedObj = theScene.attachMovie("shape", "shape"+i, theScene.depth++);
    attachedObj.x = 500 - Math.random()*1000;
    attachedObj.y = 500 - Math.random()*1000;
    attachedObj.z = i*500;
    attachedObj.onPress = selectShape;
    attachedObj.display = displayShape;
    objectsInScene.push(attachedObj);
    attachedObj.result = a[random(a.length)];


a = [ "Page1","Page2","Page3","Page4","Page5","Page6","Page7","Page8","Page9"];
    
    }
  1. for (i=1; i<=10; i++){
  2.     attachedObj = theScene.attachMovie("shape", "shape"+i, theScene.depth++);
  3.     attachedObj.x = 500 - Math.random()*1000;
  4.     attachedObj.y = 500 - Math.random()*1000;
  5.     attachedObj.z = i*500;
  6.     attachedObj.onPress = selectShape;
  7.     attachedObj.display = displayShape;
  8.     objectsInScene.push(attachedObj);
  9.     attachedObj.result = a[random(a.length)];
  10. a = [ "Page1","Page2","Page3","Page4","Page5","Page6","Page7","Page8","Page9"];
  11.     
  12.     }
  • Anonymous
  • Bot
  • No Avatar
  • Registrado: 25 Feb 2008
  • Mensajes: ?
  • Loc: Ozzuland
  • Status: Online

Nota Julio 4th, 2007, 12:47 am

  • IceCold
  • Guru
  • Guru
  • Avatar de Usuario
  • Registrado: Nov 05, 2004
  • Mensajes: 1254
  • Loc: Ro
  • Status: Offline

Nota Julio 9th, 2007, 12:12 am

que es bastante simple.
Código: [ Select ]
attachedObj.onRelease = function()
{
   getURL("http://google.com");
}
  1. attachedObj.onRelease = function()
  2. {
  3.    getURL("http://google.com");
  4. }
“True mastery transcede any particular art. It stems from mastery of oneself - the ability, developed throgh self-discipline, to be calm, fully aware, and complety in tune with oneself and the surroundings. Then, and only then, can a person know himself. ”

Publicar Información

  • Total de mensajes en este tema: 2 mensajes
  • Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 47 invitados
  • No puede abrir nuevos temas en este Foro
  • No puede responder a temas en este Foro
  • No puede editar sus mensajes en este Foro
  • No puede borrar sus mensajes en este Foro
  • No puede enviar adjuntos en este Foro
 
 

© 2011 Unmelted, LLC. Ozzu® es una marca registrada de Unmelted, LLC