Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


works offline but not online...???



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> Flash Forum
View previous topic :: View next topic  
Author Message
clairewas



Joined: 09 Dec 2006
Posts: 1

PostPosted: Sat Dec 09, 2006 3:43 am    Post subject: works offline but not online...??? Reply with quote

Hi , Very Happy

I build a website using a J.Tarbell (from Levitated) codes, one from his space serie originally conceive in flash 6. It is basically customized to fit my design and I use it as a background on level one, with a slow animation, and I add buttons on the sene to navigate.

It works well when I test it in flash and on my localhost but as soon as it is uploaded on my site, none of the buttons works. Could it be an actionscript conflict beetween the codes for the background and the ones for the navigation, or beetween flash 6 codes and flash 8 (I'm working with flash 8, but the flash 6 movie is still exported as flash 6)?

If anyone know please drop me a line, I'm quite new in flash and can be sometimes a little confuse with actionscripting...

To see the page: http://www.clairewastiaux.com

Below is the code used for the background ( text are now shapes attached to it) and the rest of the page is straightforward, each buttons call a swf movie loaded with loadMovieNum on a different level.

What did I do wrong? Embarassed

These are the codes

// 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);
}

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();
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> Flash Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap