I know this is extreemly basic stuff but the book has a rediculously lame explanation, or lack there of, for what is going on in the below code- I seriously wanna take the roll of paper out of the bathroom and put this book in it’s place.
The code is for use with radio buttons and a dynamic text field… so that when you select a radio button, the text contained in the data parameter of that radio button is displayed in the field.
myEvent = new object();
myForm = new Object();
myForm.click = function(myEvent) {
** myInfo.text = myEvent.target.selection.data;**
}
myRadioGroup.addEventListener(“click”,myForm);
Questions:
1- what are these “myEvent” and “myForm,” and what are they for? They look like variable declarations without declared data types- confused.
jeez I’ve got too many questions- can someone give me a play by play whats goin on here?
Also ActionScript on first glance seems like such a nice easy high leve language to learn, yet the two books I’ve used so far have been- well, I’m pulling my hair out here, they define stuff then seem to break those definitions, I’ve got wires shortin out in my head right now lol anyone got any good (or even just ok, I’d settle for that right now) recommendations for learning actionscript?