Lostinbeta.com flash site (work in progress)

methodan, oops i mean method 3 :wink:

By the way don’t refer to my old deviant art account, my new one is telekinesis :thumb:

I think I like 3 the best as well :beam:

And… ok dan, I won’t :slight_smile: Why don’t you delete that account?

I don’t think you can delete a DA account…

But I agree, method 3. :slight_smile:

Method 3 definitely :slight_smile:

Kit: well that’s retarded :stuck_out_tongue:

And yes, I think method 3 is my preference too =) Thanks Eyez!!!

Be my guest & de nada, YOU made it, just advice from my side…
Glad you get such a broad agreement here…
should the link still work, I’d have liked to at least see it…?!

Should the link still work :q: :q: :q: The link works fine for me :-\

looks good, are you going to do a Site deconstrocted project?

What is a site deconstructed project?

lol… i wanna know that too :slight_smile:

YOu’re kidding, Right?
It’s when you explain in detail everything you did for a site. Almost like a huge tutorial, without explicit detail. For example:

“I created this graphic using Photoshop. Got the graphic, used gaussian blur and colored pencil filters to create a hand drawn look. Saved as jpg and imported to flash”
“Used this script (script attached) for my menus” “used this script for transitions” etc…

You deconstruct your site (I would suggest a mod only deconstruction, to avoid the million questions.

Oh, and finally, maybe you can post a tutorial about preloaders? Hahhahhahahahhahah :slight_smile: :slight_smile: :slight_smile:

Ohhhhh, I don’t know, maybe I will do that, but i’m afraid people will laugh at my code :frowning: [size=1]i am quite the sloppy coder[/size]

<b>Looks at game code she wrote</b> Not as sloppy as me, Lost. :slight_smile:

It would certainly be interesting to see mod sites deconstructed. :slight_smile:

*Originally posted by Kitiara *
**<b>Looks at game code she wrote</b> Not as sloppy as me, Lost. :slight_smile:

It would certainly be interesting to see mod sites deconstructed. :slight_smile: **

[AS]var movieToLoad = “news.swf”;
var targt = 395;
var trigger = false;
String.prototype.noCache = function() {
return (_url.substr(0, 4) != “file”) ? this+“?”+new Date().getTime() : this;
};
MovieClip.prototype.elasticMove = function(targt, accel, friction) {
this.speed += (targt-this._y)accel;
this.speed = friction;
this._y += Math.round(this.speed);
};
MovieClip.prototype.moveToLocation = function() {
this.onEnterFrame = function() {
this.elasticMove(targt, .5, .6);
if (Math.round(this._y) == targt && trigger == true) {
//trace(“done and can load”);
this.container.play();
delete this.onEnterFrame;
} else if (Math.round(this._y) == targt) {
//trace(“done”);
this.container.loadMovie((movieToLoad).noCache());
delete this.onEnterFrame;
}
};
};
this.createEmptyMovieClip(“preloader”, 1000);
preloader.onEnterFrame = function() {
var l = navi.container.getBytesLoaded();
var t = navi.container.getBytesTotal();
var getNewPercent = l/t;
if (l<=0) {
loadText.text = “0%”;
} else {
loadText.text = Math.round(getNewPercent
100)+“%”;
}
loadBar._width = Math.round(getNewPercent
257);
if (l>0 && l>=t && trigger == false) {
targt = 395;
trigger = true;
navi.moveToLocation();
//delete this.onEnterFrame;
}
};
navi.container.loadMovie((movieToLoad).noCache());
//navi.moveToLocation();
navi.home.onRelease = function() {
movieToLoad = “news.swf”;
!trigger ? (targt=395, trigger=true) : (this._parent.container.unloadMovie(), targt=105, trigger=false);
this._parent.moveToLocation();
};
navi.links.onRelease = function() {
movieToLoad = “links.swf”;
!trigger ? (targt=395, trigger=true) : (this._parent.container.unloadMovie(), targt=105, trigger=false);
this._parent.moveToLocation();
};
navi.experiments.onRelease = function() {
movieToLoad = “lab.swf”;
!trigger ? (targt=395, trigger=true) : (this._parent.container.unloadMovie(), targt=105, trigger=false);
this._parent.moveToLocation();
};
navi.about.onRelease = function() {
movieToLoad = “about.swf”;
!trigger ? (targt=395, trigger=true) : (this._parent.container.unloadMovie(), targt=105, trigger=false);
this._parent.moveToLocation();
};
navi.portfolio.onRelease = function() {
movieToLoad = “portfolio.swf”;
!trigger ? (targt=395, trigger=true) : (this._parent.container.unloadMovie(), targt=105, trigger=false);
this._parent.moveToLocation();
};
stop();[/AS]

You sure about that kit :sigh:

That is just for the navigation :sure:

Cheers to sen for the no cache and elasticity code :thumb:

I’ll see your code and raise you [AS]if ((getTimer()-time)>(800-3alienHeight-5aliensDead)) {
if (newLife == 1) {
tellTarget (“Shooter”) {
gotoAndStop(1);
_x = 95;
}
newLife = 0;
} else if (newLife) {
newLife–;
} else {
tellTarget (“Alienship”) {
if (!_visible && random(40)<1) {
_visible = true;
}
}
if (shipScore>0 && shipScore<50) {
shipScore -= 10;
}
allGone = true;
if (shifts == 1 && (xMax>497 || xMin<23)) {
shifts = 0;
dir = -1;
alienHeight += 14;
}
xMin = 400;
xMax = 0;
for (var i = 0; i<11; i++) {
for (var j = 1; j<6; j++) {
thisAlien = eval(“Row”+j+i);
if (thisAlien._visible) {
allGone = false;
tellTarget (thisAlien) {
if (_root.shifts == 0) {
_y = _root.alienHeight+30
this.j;
} else {
_x += _root.dir;
if (_currentframe == 1) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
if (_y>320) {
_root.lives = 0;
}
if (_x<_root.xMin) {
_root.xMin = _x;
}
if (_x>_root.xMax) {
_root.xMax = _x;
}
}
}
}
}
if (shifts == 0) {
xMin = 400;
xMax = 0;
shifts = 1;
}
if (allGone) {
score += 1000;
if (lives<5) {
lives++;
}
gotoAndPlay(2);
}
}
time = getTimer();
}[/AS] This is just incomprehensible. :stuck_out_tongue:

Wow uhhh… I think you got me :x

I know I have worse code than that around here, but I don’t remember which file.

And the thing is, I’m 99% certain that one of you guys could reduce this down to like, 5 lines or something. :stuck_out_tongue:

[AS]if ((getTimer()-time)>(800-3alienHeight-5aliensDead)) {
if (newLife == 1) {
Shooter.gotoAndStop(1);
Shooter._x = 95;
newLife = 0;
} else if (newLife) {
newLife–;
} else {
!Alienship._visible && random(40)<1 ? Alienship._visible=true : null;
shipScore>0 && shipScore<50 ? shipScore -= 10 : null;
allGone = true;
shifts == 1 && (xMax>497 || xMin<23) ? (shifts=0, dir = -1, alienHeight += 14) : null;
xMin = 400;
xMax = 0;
for (var i = 0; i<11; i++) {
for (var j = 1; j<6; j++) {
thisAlien = eval(“Row”+j+i);
if (thisAlien._visible) {
allGone = false;
with (thisAlien) {
_root.shifts == 0 ? _y=_root.alienHeight+30
this.j : (_x += _root.dir, _currentframe == 1 ? gotoAndStop(2) : gotoAndStop(1));
_y>320 ? _root.lives=0 : null;
_x<_root.xMin ? _root.xMin=_x : null;
_x>_root.xMax ? _root.xMax=_x : null;
}
}
}
}
shifts == 0 ? (xMin=400, xMax=0, shifts=1) : null;
allGone ? (score += 1000, lives<5 ? lives++ : null, gotoAndPlay(2)) : null;
}
time = getTimer();
}[/AS]

I don’t know if that will work or not :sure:

[size=1]I love my tertiary operator :love:[/size]

Ok, I “fixed” the scoll buttons for the news. Do they still resemble a scrollbar? or just up and down buttons like they should?

http://www.lostinbeta.com/flashSite/

They look better (useability Point of view), but, why did you change the upper arrow y position??