Mike,
Shouldn't you be using ActionScript 2.0? Forgive me if I'm being a little bossy but you're using an outdated version of ActionScript.
Quote:
quote:Originally posted by harpua
Can somebody help me with some actionscript 1.0. I am trying to create some dynamic links for buttons.
var buttonNames
buttonNames = new Array();
buttonNames = ["cap_content", "cap_advertise"]
function createLinks() {
var numberOfButtons
numberOfButtons = buttonNames.length;
var icounter
icounter = -1;
while (++icounter < numberOfButtons) {
var name
name = buttonNames[icounter] + "_btn";
playSection = buttonNames[icounter];
trace([name]);
[name].onRelease = function() {
trace("We are in");
trace(playSection);
playCapContent(playSection);
}
}
I can get the button names to Trace, but my problem lies within the onRelease funtion, I cannot get the button name to relate to the code. The buttons have the same names as shown. I have tried a bunch of different scenerios but nothing seems to work.
Thanks In Advance
|
Ben Horne
Madison Area Technical College student
-------------------------
http://community.webshots.com/user/valerian114
Go there. I have a lot of awesome photos that I rendered myself
"A Person Who Claims To Be A Flash Junkie Isn't Really A Flash Junkie Unless He Can Prove It"