English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Does anyone know actions script for flash or a site with practical examples?

Particulary how to make a “numeric loading bar” showing the loaded percentage, and in a displayed menu button, the script to go to a different scene (nextScene is no use).
I used:
On (press)
_root.gotoAndPLay (30)

To go to the fram 30 in the same scene, but if I want to go to another scene I used:

On (press)
gotoAndPlay (“scene 3”, 1)

and nothing happens. Can someone help me out please?

2007-05-14 10:42:23 · 2 answers · asked by ernesto.guevara 3 in Computers & Internet Programming & Design

2 answers

well you create your loadbar Movie Clip (loadBar) and add a dynamic text and name that to a variable (loadText).

I place both over two frames and in the second frame i have this action script:


bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._height = getPercent*136;
this.loadText = Math.round(getPercent*100)+"% Loaded";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay("start");
}


and be sure to name your scenes. Flash is notorious with scenes, so if you want to hit a scene name your scene and frames.

On (press)
gotoAndPlay (“main”, "start");


EDit:
yahoo is truncating some of the code:
Math.round(this.getBytesTotal());

and the *136 is actually the total size of your loadbar

2007-05-14 11:08:56 · answer #1 · answered by arus.geo 7 · 0 0

set up Flash utility. you will would desire to purchase it or get carry of illegally(which of path isn't cautioned). you additionally can use Dreamweaver or seek for the loose flash softwares on the google.

2016-11-03 22:23:21 · answer #2 · answered by ? 4 · 0 0

fedest.com, questions and answers