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

1 answers

place this in the first frame of the first scene of the file.

global.fadd = function(x, y)
{
var temp = x + y;
return temp;
}


then you can call the function anywhere in the movie and even in movie clips use (the wahtever part can be replace with anything)

whatever = fadd(18, 50);

or put in two variables again they can be numbered whatever you like
whatever = fadd(sa, sb);


check out this site it has all you will ever need to learn flash
http://www.flashkit.com
1000's of open source file that you can edit and use.
100's of tutorials
A brilliant forum fully of professional flash website designers and coders.
It also has load of fonts and images that you can use in your work.
And all that for free.


for lots of other useful maths function you can use you can download my open source movie from flashkit. link below
http://www.flashkit.com/movies/Scripting/Maths/Some_use-Mark_Fre-10921/index.php

2006-09-01 02:02:24 · answer #1 · answered by indieboy 5 · 0 0

fedest.com, questions and answers