all groups > flash actionscript > june 2004 >
You're in the

flash actionscript

group:

Understanding Code: functions & buttons


Understanding Code: functions & buttons jbeltran_mx
6/16/2004 8:52:38 PM
flash actionscript:
Hello,
I have the next code attached to a button:
on(press){
a(234);
}
I don't have more code in that movie, just a bunch o buttons with this kind of
code, but each button has a diferent number on the a(diferent number here)
function.

I load this movie with buttons into other movie. I want to retrieve the number
inside the "a(i want this number)" from my host movie.
Thanks in advance.
Jose
Re: Understanding Code: functions & buttons Jack.
6/16/2004 9:20:36 PM
add a function in the host movie

_global.a = function(vars){ trace(vars); };

the use of _global opens the function to the
scope of all timelines running in the movie.

hth
Re: Understanding Code: functions & buttons jbeltran_mx
6/16/2004 9:46:56 PM
Thanks!!

AddThis Social Bookmark Button