To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > Flash Help > Flash Newbies

Reply
 
Thread Tools Search this Thread Display Modes
Old 05-23-2007, 07:02 PM   #1
landrvr1
Member
 
Join Date: Apr 2006
Posts: 44
That Wicked Cool 'Levitated' Floating Text: How to add real navigation?

The amazing floating text seen by many:

http://www.levitated.net/daily/levTextSpace.html

With this code:

// register root as environment
Object.environment = this;
// create camera object
this.cam = {x:0, y:0, z:500, dx:0, dy:0, dz:-500};
// set environmental constants
this.fl = 1000;
// create 'space' to which all words will be attached
this.createEmptyMovieClip("space", 1);
// center 'space' on the stage
space._x = 300;
space._y = 169;
// a string of words related to the wind
this.somewords = "wind breeze storm stormy tornado text space three dimensional infinite recursive instance object distort environmental atmospheric blow gush whoosh thrash whirl push roar rush caress flow swoop";
// convert the string of words into an array of words
this.wordList = new Array();
this.wordList = this.somewords.split(" ");
// create one instance for each word in the list
for (n=0; n<this.wordList.length; n++) {
// pick a word from the list
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;
// create an instance of the SpaceWord object
nombre = "word"+String(depth++);
initialization = {txtword:word, x:x, y:y, z:z};
space.attachMovie("spaceWord", nombre, depth, initialization);

//The code I have added to utilise the words as links

if (_root.spaceWord.txtword == "breeze") {
with (_root.box) {
gotoAndStop("test");
}
}
}
this.onEnterFrame = function() {
this.cam.dz += .5;
// move the camera to its destination
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();


I've been searching endlessly for ways to actually make the buttons float a bit once you've clicked on one, then have a new movie load - depending on which bit of text you've selected. I believe the solution lies in adding variables to the array string, but exactly how to go from there I've not a clue!

Here's another thread on this:
http://board.flashkit.com/board/show...ight=levitated

Any help would be much appreciated. I've been dying to work this out.
landrvr1 is offline   Reply With Quote
Old 05-28-2007, 03:22 PM   #2
landrvr1
Member
 
Join Date: Apr 2006
Posts: 44
anyone? lol
landrvr1 is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > Flash Help > Flash Newbies

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:10 PM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.