____  _ ____ ____ ______ ____  
|___ \| |___ \___ \____  |___ \ 
  __) | | __) |__) |  / /  __) |
 |__ <| ||__ <|__ <  / /  |__ < 
 ___) | |___) |__) |/ /   ___) |
|____/|_|____/____//_/   |____/ 
      

i pwn all thats all u need to know.

Wednesday, August 29, 2007

Flash Form Components

This is Flash MX (F6/AS.1), but should work in Flash8/AS.2.

Frame label 'form'> Frame 1>

//Form Components//by kurt.grung 3l3373.com//

//Tab index
name.tabIndex = 1;
location.tabIndex = 2;
age.tabIndex = 3;

//Radion buttons
function radioDisplay(component) {
radio = component.getValue();
}
gender.setChangeHandler("radioDisplay");

//Combobox
birth.setChangeHandler("comboDisplay");
onSubmit = function () {
texte = comment.text;
_root.gotoAndStop("result");
};
for (i=1970; i<1990; combo =" component.getSelectedItem().label;" mylabels =" new" i="0;" list="component.getSelectedItem().label;" listdisplay="" checkbox="" mycheck="[flash," function="" var="" j="" in="" if="" checke="You like: " s="" nothing="" for="" i="0;">1) {
_root.bar._visible = true;
} else {
_root.bar._visible = false;
}
};

//Push Buttons
onReset = function () {
//radio buttons
male.setValue(false);
female.setValue(false);
other.setValue(false);
//listbox
birth.setSelectedIndex(0);
//combobox
country.setScrollPosition(0);
country.setSelectedIndices(null);
//checkbox
var j;
for (j in myCheck) {
myCheck[j].setValue(false);
}
//text
comment.text = "";
bar._visible = false;
};
//Submit button
onSubmit = function () {
texte = comment.text;
_root.gotoAndStop("result");
};

//Style sheet
L337css = new FStyleFormat();
L337css.face = 0xffffff;
L337css.background = 0xffffff;
L337css.arrow = 0x000000;
L337css.scrollTrack = 0xcccccc;
L337css.highlight = 0xcccccc;
L337css.darkshadow = 0xcccccc;
L337css.selection = 0x000000;
L337css.textColor = 0x000000;
L337css.addListener(bar);
L337css.addListener(country);
L337css.addListener(flash);
L337css.addListener(games);
L337css.addListener(beer);
L337css.addListener(sport);
L337css.addListener(art);
L337css.addListener(male);
L337css.addListener(female);
L337css.addListener(other);
L337css.addListener(birth);
L337css.addListener(submit);
L337css.addListener(reset);
L337css.addListener(back);
comment.backgroundColor = 0xffffff;
result.backgroundColor = 0xffffff;
//
stop();


Frame label 'result'> Frame 7>

//Results
result.text = "You are a "+radio+"\n";
result.text+= "You are from "+list+"\n";
result.text+= "You were born in "+combo+"\n";
result.text+= checke;
result.text+= "You wrote a nice word for us:\n"+texte;
//
stop();
//


Sample files
http://3l3373.com/dl/tutorials/formX/formX.rar

Let me know if this helps or u need help ;)

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home