4 Txn

Cricket2

<font color=blue>Administrator<br><font color=red>
Joined
Jan 29, 2001
Messages
7,985
<OBJECT><EMBED src="http://www24.brinkster.com/txn/txnc1.swf" menu=false quality=high bgcolor=#E9D5AF WIDTH=250 HEIGHT=137 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT>

I still have to work on the "shrunken Daisy" for you, but that's about it!

JC
 
I love it Mr. C. Do I need to figure out a website or can I use it from it's present location?

Katholyn
 
Kath!!! That is great!! I love it!! JC you are just too cool!!! :)
 

I will place it for you in a minute. That website belongs to you.

Did you find the hidden Mickey yet?

JC
 
You gotta love Flash!

I rather like how nice looking this one turned out.

Wanna see some of the code? :)

This is the actionscript that allows for all of the sliding around and stuff. The template was generated by a Flash jedi (can't remember his name) to copy the user interface of the http://www.barenys.com portal. (Look at it and you can see that it works very much the same way.) I had to re-code about 80% of it to get it to work the way I wanted it to, but the basic layout and ideas are the same.

Code:
onClipEvent (load) {
	Movieclip.prototype.isLoaded = function ($percentNumber) { if ($percentNumber == undefined) {var $percentNumber = 1;} else {$percentNumber /= 100;}if (typeof (this) == "movieclip") {if ((this.getBytesLoaded()/this.getBytesTotal()>=$percentNumber) && (this.getBytesTotal()>10)) {return (true);}}};
	Movieclip.prototype.getLoaded = function () { if (this.getBytesTotal()<=1) {return (0);} else {return (Math.floor((this.getBytesLoaded()/this.getBytesTotal())*100));}};
	Movieclip.prototype.slickMotion = function (property, destinationNumber, speed) { if (speed == undefined) {var speed = 10;}if (!Math.abs(destinationNumber-Math.round(this[property]))) {return (true);} else {this[property] += (destinationNumber-this[property])/speed;updateAfterEvent();}};
	Movieclip.prototype.colorMe = function ($r, $g, $b) { if ($r == undefined) {var $r = Math.randomBetween(1, 255);}if ($g == undefined) {var $g = Math.randomBetween(1, 255);}if ($b == undefined) {var $b = Math.randomBetween(1, 255);}var $c = new Color(this);$c.setRGB($r << 16 | $g << 8 | $b);};
	Movieclip.prototype.checkHit = function () { if (this.hitTest(_root._xMouse, _root._yMouse, true)) {_level0.checkHitOffsetX = this._x-_root._xMouse;_level0.checkHitOffsetY = this._y-_root._yMouse;return (true);}};
	Movieclip.prototype.mouseFollow = function (booleanValue) { if (booleanValue == undefined) {var booleanValue = true;} else if (booleanValue == false) {return (false);}this._x = _root._xMouse+_level0.checkHitOffsetX;this._y = _root._yMouse+_level0.checkHitOffsetY;updateAfterEvent();};
	String.prototype.text2Html = function ($fontSize, $fontColor) { var $textString = this;var $fontFace = "Verdana, Arial, Helvetica, sans-serif";if (($fontSize == undefined)) {var $fontSize = 8;}if ($fontColor == undefined) {var $fontColor = "#000000";}return ("<font face=\""+$fontFace+"\" size=\""+$fontSize+"\" color=\""+$fontColor+"\">"+$textString+"</font>");};
	Math.randomBetween = function (a, b) { return (a+Math.floor(Math.random()*(b-a+1)));};
	function makeInterface () {
		var stageWidth = 250;
		var menuButtonWidth = _level0.buttons.menuButton._width;
		menuQnty = Math.round(stageWidth/menuButtonWidth);
		menuBgPos = new Array();
		// duplicate mcs and place them...
		for (var i = menuQnty; i>0; --i) {
			// Duplicate the menubg
			_level0.menuContainer.menu.duplicateMovieClip("menu"+i, i);
			// Duplicate the menubuttons
			_level0.buttons.menuButton.duplicateMovieClip("menuButton"+i, i);
			// Duplicate the boxes
			_level0.boxes.box.duplicateMovieClip("box"+i, i);
			// Place menubg
			_level0.menuContainer["menu"+i]._x = (stageWidth*i)-stageWidth;
			_level0.menuContainer["menu"+i]._y = 0;
			// Put the x value in the array
			menuBgPos[i-1] = _level0.menuContainer["menu"+i]._x;
			// Place menuButtons
			if (i == menuQnty) {
				_level0.buttons["menuButton"+i]._x = stageWidth-_level0.buttons["menuButton"+i]._width;
			} else {
				_level0.buttons["menuButton"+i]._x = _level0.buttons["menuButton"+(i+1)]._x-_level0.buttons["menuButton"+i]._width;
			}
			// end if
			_level0.buttons["menuButton"+i]._y = 0;
			// Place boxes
			_level0.boxes["box"+i]._x = 150;
			_level0.boxes["box"+i]._y = -150;
			// Make their alpha little less.. to look nice:)
			_level0.boxes["box"+i].boxBg._alpha = 100;
			// text goes here
			_level0.menuContainer["menu"+1].MenuName = "Theme Park Attractions & Strategies";
			_level0.menuContainer["menu"+2].MenuName = "Disney for Adults & Solo Travellers";
			_level0.menuContainer["menu"+3].MenuName = "Chat Room";
			_level0.menuContainer["menu"+4].MenuName = "Cheat Sheets for Chat";
			_level0.menuContainer["menu"+5].MenuName = "List of Emotions for Chat";

			_level0.buttons["menuButton"+i].menuName = i;
			_level0.boxes["box"+i].boxName = i;
		}
		// Place containers
		_level0.menuContainer._x = 0;
		_level0.menuContainer._y = 0;
		_level0.buttons._x = 0;
		_level0.buttons._y = _level0.menuContainer._height+25;
		_level0.boxes._x = 2;
		_level0.boxes._y = -4;
		// Hide originals
		_level0.menuContainer.menu._visible = false;
		_level0.buttons.menuButton._visible = false;
		_level0.boxes.box._visible = false;
		// Declare a random menuChoice to animate right away..just for show!!
		_level0.mController.menuChoice = Math.floor(Math.random()*menuQnty)+1;
	}
	function slideMenu () {
		// check if menuChoice is defined
		if (_level0.mController.menuChoice == undefined) {
			return (undefined);
		}
		var menuSpeed = 8;
		// Different speed for boxes.. 
		var boxSpeed = 10;
		var destination = -_level0.mController.menuBgPos[menuChoice-1];
		_level0.menuContainer.slickMotion("_x", destination, menuSpeed);
		// Move the boxes individually.. but check if any box has been reserved by the user
		for (var i = menuQnty; i>0; --i) {
			// check if a box is "reserved"
			if (!(_level0.boxes["box"+i]._y>_level0.menuContainer["menu"+i]._height-_level0.boxes["box"+i]._height) && nowDragging != _level0.boxes["box"+i]) {
				// This box is not reserved.. so adjust it's x and y to move
				// Calculate related box's perceptual x
				var perceptualDestination = _level0.menuContainer._x+_level0.menuContainer["menu"+i]._x;
				_level0.boxes["box"+i].slickMotion("_x", perceptualDestination, boxSpeed);
				_level0.boxes["box"+i].slickMotion("_y", (_level0.menuContainer["menu"+i]._height/2)-(_level0.boxes["box"+i]._height/2), boxSpeed);
			}
		}
	}
	// This function will see if any box mc is being clicked on
	function checkBoxHits () {
		for (var i = menuQnty; i>0; --i) {
			if (_level0.boxes["box"+i].checkHit()) {
				// Get the current mc name
				nowDragging = _level0.boxes["box"+i];
				break;
			}
		}
	}
	// This array will contain information on all important keyFrames in the movie
	var rootKeyFrames = {fLoadCheck:5, fMenu:10};
}
onClipEvent (enterFrame) {
	// Check to see if loaded
	if (_level0._currentFrame == rootKeyFrames.fLoadCheck) {
		if (_level0.isLoaded()) {
			// Send the loaded display mc off stage
			_level0.loadedQnty._x = -200;
			_level0.loadedQnty._y = -400;
			delete (loadedDisplay);
			_level0.gotoAndStop(rootKeyFrames.fMenu);
		} else {
			var loadedDisplay = _level0.getLoaded()+"%";
			loadedDisplay = loadedDisplay.text2Html(10);
			// Make it follow the mouse
			_level0.loadedQnty._x = _root._xMouse;
			_level0.loadedQnty._y = _root._yMouse;
		}
		// End if
	} else if (_level0._currentFrame == rootKeyFrames.fMenu) {
		if (nowDragging) {
			nowDragging.swapDepths(9999);
			nowDragging.mouseFollow();
		}
		// End if
		slideMenu();
	}
	// End if
}
onClipEvent (mouseDown) {
	checkBoxHits();
}
onClipEvent (mouseUp) {
	if (typeof (nowDragging) != "undefined") {
		delete (nowDragging);
	}
}
 
Mr. Cricket, this is gorgeous. Where is the hidden mickey? If I squint real hard, I can imagine one where it says "emotions for chat" but that's probably my wild imagination :)

Thank you for making Miss Daisy smaller.
 
When you find it (with your mouse) believe me, you won't have to squint.

JC
 





New Posts









Receive up to $1,000 in Onboard Credit and a Gift Basket!
That’s right — when you book your Disney Cruise with Dreams Unlimited Travel, you’ll receive incredible shipboard credits to spend during your vacation!
CLICK HERE














DIS Facebook DIS youtube DIS Instagram DIS Pinterest DIS Tiktok DIS Twitter

Back
Top