|
|
 |
|
|
|
|
|
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 ........
|
|
|
|