Home | Help Forums | Web Design Tutorials | Free Swishmax Downloads | All Downloads

 

 

Company

Home

Nework Details

Tutorials

SWiSH 2

SWiSHMax

Flash MX

PHP & MySQL

HTML / JScript

Adobe Photoshop

Corel Draw

Gimp

Miscellaneous

Downloads

Templates

Plugins

Fonts

Wallpapers

Free Images

Scripts and Codes

Products

E-Books

SWiSH BB

SWiSH Templates

SWiSH-DB Newsletter
Subscribe to our newsletter : GO
  Partners / Affiliates

   Swish Templates
   SWiSH Climax
   GimpTalk
   Idea Designs
   Sposatoettore
   Try Acai Berry Diet
   Download Free Ringtones
   Swishzone

Manage your site with Flax Article Content Management System
% preloader following mouse
Category : SWiSHMax | Level : Intermediate | Language : English
Ask Question | Read Comments | Post tutorial | Previous | Next

Web www.swish-db.com

This is my first contribution in the forum, tanx to all who makes this place possible........

Feel free to learn of it, cause i learn too much...

All you need is a sprite with a text, it name must be bytes_text.

IN THE SCENE PLACE THIS CODE:

onFrame (1) {
_root.drag = true;
}
onFrame (5) {
stop();
}

SO IN THE SPRITE PLACE THIS:

onLoad () {
_x = 0;
_y = 0;
speed = 10;
_alpha = 100;
}
onEnterFrame() {
if (_root.drag) {
endX = _root._xmouse;
endY = _root._ymouse;
_x += (endX-_x)/speed;
_y += (endY-_y)/speed;
}
}
onFrame (3) {
loadedBytes = _root.getBytesLoaded();
totalBytes = _root.getBytesTotal();
loadedKB = Math.round(loadedBytes / 1024);
totalKB = Math.round(totalBytes / 1024);
bytes_output = loadedKB add " KB of " add totalKB add " KB";
if (loadedKB >= totalKB) {
nextSceneAndPlay();
}
}
onFrame (4) {
prevFrameAndPlay();
}



REMEMBER THE TEXT IS "DINAMIC"

Hope you enjoy....... jos ........ smile.gif


All rights reserved - swish-db.com