Hi,
I have been messing about trying to adapt a tut I found… It displays flying words “in space”…Its not far off what I am after and I have very limited flash experience. That said I have learnt a lot over the last week but still am not getting anywhere with this:
What I am trying to do is to change this from displaying individual words to phrases…
Could anyone help point me in the right direction?
ActionScript Code:
Object.environment = this;
this.cam = {x:0, y:0, z:500, dx:0, dy:0, dz:-500};
this.fl = 1000;
this.createEmptyMovieClip(“space”,1);
space._x=300;
space._y=169;
this.somewords = “Le vent qui souffle dans mon arbre, dans ses rêves sa promise, le coeur à l’envers”;
this.wordList = new Array();
this.wordList = this.somewords.split(" ");
for (n=0;n<this.wordList.length;n++) {
var word = Object.environment.wordList[n];
var x = random(600)-300;
var y = random(337)-169;
var z = random(Object.environment.fl*2)-Object.environment.fl;
nombre = "word"+String(depth++);
initialization = {txtword: word, x: x, y: y, z: z};
space.attachMovie("spaceWord", nombre, depth, initialization);
}
this.onEnterFrame = function() {
this.cam.dz+=.5;
this.cam.x+=(this.cam.dx-this.cam.x)/10;
this.cam.y+=(this.cam.dy-this.cam.y)/10;
this.cam.z+=(this.cam.dz-this.cam.z)/30;
}
stop();
kindly,
lwl