Actionscript 3.0 and numeric stepper problem
OK, so when I trace any numeric stepper, the value is null and doesn't change when I increase or decrease the value.
Here's my code...
import flash.events.Event;
import flash.events.MouseEvent;
stop();
var resort:String;
var pets:String;
var adults:String;
var children:String;
trace(adultStepper.value);
trace(childStepper.value);
resortCombo.addEventListener(Event.CHANGE, resortHandler);
petsCheck.addEventListener(MouseEvent.CLICK, petHandler);
adultStepper.addEventListener(Event.CHANGE, adultHandler);
childStepper.addEventListener(Event.CHANGE, childHandler);
nextButton.addEventListener(MouseEvent.CLICK, nextpage);
function resortHandler(evt:Event):void {
resort = resortCombo.selectedItem.label;
}
function petHandler(evt:Event):void {
pets = String(petsCheck.selected);
}
function adultHandler(evt:Event):void {
adults = String(adultStepper.value);
}
function childHandler(evt:Event):void {
children = String(childStepper.value);
}
function nextpage(evt:MouseEvent):void {
gotoAndStop("lodgePage");
}
