Very confused

My movie works as desired if I publish only the current scene… however, if i publish the entire movie it doesn’t work… what doesn’t work is this: when i click on a checkbox, a combo box appears. this same functionality works for some other checkbox items in my list, but not on my first one and i’m not sure why… here’s my code (kinda long):


stop();

// Hide options objects
skids._visible = false;
typeSkids._visible = false;
wantToolbox._visible = false;
wantStinger._visible = false;
stingerPic._visible = false;
typeACCovers._visible = false;
liftingEyesLocation._visible = false;
liftingEyeOnBuilding1._visible = false;
liftingEyeOnBuilding2._visible = false;
liftingEyeOnSkids1._visible = false;
liftingEyeOnSkids2._visible = false;
forkLiftPocket1._visible = false;
forkLiftPocket2._visible = false;

// Initialize quantity variables
numDoors = 0;
numWindows = 0;
numLadders = 0;
numSignPlates = 0
numWaterDrains = 0;
layerNum = 0;

// initialize miscellaneous variables
skidWidth = skids._width;
skidExtension = 100;

// Set baseline positioning variables
windowY = 365;
doorY = 465;
ladderY = 470;
waterDrainY = 640;

// Set bounding box variables
windowBoundsLeft = 300;
windowBoundsRight = 530;
doorBoundsLeft = 305;
doorBoundsRight = 535;
ladderBoundsLeft = 300;
ladderBoundsRight = 540;
signPlateBoundsLeft = 235;
signPlateBoundsRight = 605;
waterDrainBoundsLeft = 240;
waterDrainBoundsRight = 605;

// Set scaling variables
windowScaleX = 400;
windowScaleY = 400;
doorScaleX = 540;
doorScaleY = 540;
ladderScaleX = 595;
ladderScaleY = 595;
signPlateScaleX = 110;
signPlateScaleY = 110;
waterDrainScaleX = 150;
waterDrainScaleY = 150;

// Hide drop targets
_root.doorDropTarget._visible = false;
_root.windowDropTarget._visible = false;
_root.ladderDropTarget._visible = false;
_root.signPlateDropTarget._visible = false;
_root.waterDrainDropTarget._visible = false;

// Set the change handler for the chekboxes
wantSkids.setChangeHandler(“determineOptions”);
wantForkLiftPockets.setChangeHandler(“determineOptions”);
wantLiftingEyes.setChangeHandler(“determineOptions”);
wantCertifiedSling.setChangeHandler(“determineOptions”);
wantAC.setChangeHandler(“determineOptions”);
wantWindowCovers.setChangeHandler(“determineOptions”);
wantWindowRainCaps.setChangeHandler(“determineOptions”);
wantDoorCovers.setChangeHandler(“determineOptions”);
wantDoorRainCaps.setChangeHandler(“determineOptions”);
wantPowerCordRack.setChangeHandler(“determineOptions”);
wantRoxBlocks.setChangeHandler(“determineOptions”);
wantExternalSensorCableBox.setChangeHandler(“determineOptions”);
typeSkids.setChangeHandler(“extendedSkidOptions”);
wantToolbox.setChangeHandler(“determineToolboxPref”);
liftingEyesLocation.setChangeHandler(“determineLiftingEyesLocation”);

// check box change handler function
function determineOptions©
{
&nbsp &nbsp &nbsp &nbsp if(c.getValue() == true)
&nbsp &nbsp &nbsp &nbsp {
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp if (c.getLabel() == “Skids”)&nbsp &nbsp &nbsp &nbsp // handle the extended skids option
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp {
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp typeSkids._visible = true;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp if (typeSkids.getValue() == “Extended”)
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp wantToolbox._visible = true;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp liftingEyesLocation.addItemAt(1, “On skids”);
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp }
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp else if (c.getLabel() == “Certified Sling”)
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp {
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp wantStinger._visible = true;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp stingerPic._visible = true;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp }
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp else if (c.getLabel() == “Air Conditioning”)
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp {
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp typeACCovers._visible = true;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp }
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp else if (c.getLabel() == “Lifting Eyes”)
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp {
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp liftingEyesLocation._visible = true;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp }
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp else if (c.getLabel() == “Fork Lift Pockets”)
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp {
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp forkLiftPocket1._visible = true;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp forkLiftPocket2._visible = true;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp }
//&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp set (substring(c, 9, length©), true);
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp eval(substring(c, 13, length©))._visible = true;
&nbsp &nbsp &nbsp &nbsp }
&nbsp &nbsp &nbsp &nbsp else
&nbsp &nbsp &nbsp &nbsp {
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp if (c.getLabel() == “Skids”)&nbsp &nbsp &nbsp &nbsp // handle the extended skids option
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp {
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp typeSkids._visible = false;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp wantToolbox._visible = false;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp if (liftingEyeOnSkids1._visible == true)&nbsp &nbsp &nbsp &nbsp // if we have no skids, we cannot have lifting eyes on skids
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp {
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp liftingEyeOnSkids1._visible = false;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp liftingEyeOnSkids2._visible = false;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp liftingEyeOnBuilding1._visible = true;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp liftingEyeOnBuilding2._visible = true;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp liftingEyesLocation.setSelectedIndex(0);
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp }
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp liftingEyesLocation.removeItemAt(1);
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp }
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp else if (c.getLabel() == “Certified Sling”)
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp {
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp wantStinger._visible = false;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp stingerPic._visible = false;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp }
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp else if (c.getLabel() == “Air Conditioning”)
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp {
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp typeACCovers._visible = false;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp }
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp else if (c.getLabel() == “Lifting Eyes”)
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp {
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp liftingEyesLocation._visible = false;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp }
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp else if (c.getLabel() == “Fork Lift Pockets”)
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp {
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp forkLiftPocket1._visible = false;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp forkLiftPocket2._visible = false;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp }
//&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp set (substring(c, 9, length©), false);
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp eval(substring(c, 13, length©))._visible = false;&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp
&nbsp &nbsp &nbsp &nbsp }
}

// extended skids change handler
function extendedSkidOptions©
{
&nbsp &nbsp &nbsp &nbsp if(c.getValue() == “Extended”)
&nbsp &nbsp &nbsp &nbsp {
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp wantToolbox._visible = true;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp skids._width = skidWidth + skidExtension;&nbsp &nbsp &nbsp &nbsp // Extended skids are three feet longer…
&nbsp &nbsp &nbsp &nbsp }
&nbsp &nbsp &nbsp &nbsp else
&nbsp &nbsp &nbsp &nbsp {
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp wantToolbox._visible = false;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp skids._width = skidWidth;
&nbsp &nbsp &nbsp &nbsp }
}

// extended skids change handler
function determineToolboxPref©
{
}

// handler to determine the location of the lifting eyes
function determineLiftingEyesLocation©
{
&nbsp &nbsp &nbsp &nbsp if(c.getValue() == “Top of building”)
&nbsp &nbsp &nbsp &nbsp {
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp liftingEyeOnBuilding1._visible = true;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp liftingEyeOnBuilding2._visible = true;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp liftingEyeOnSkids1._visible = false;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp liftingEyeOnSkids2._visible = false;&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp
&nbsp &nbsp &nbsp &nbsp }
&nbsp &nbsp &nbsp &nbsp else if (c.getValue() == “On skids”)
&nbsp &nbsp &nbsp &nbsp {
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp liftingEyeOnSkids1._visible = true;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp liftingEyeOnSkids2._visible = true;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp liftingEyeOnBuilding1._visible = false;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp liftingEyeOnBuilding2._visible = false
&nbsp &nbsp &nbsp &nbsp }
}

headache…

pom 0]

  • Sorry for this totally unuseful post but you’re asking a lot, Katirana…*

it’s ok. sometimes i post it and it helps me think better… no worries if no one can help :slight_smile:

I think the better question would be more along the lines of:

Is there any reason(s) why movie components would work correctly in MX if you compile just a scene, but if you compile the whole movie only some of them work correctly…

I officially give you people permission to kick me for being stupid… I finally figured out why it wasn’t working… My program has been redesigned and in that process, the current scene i was working on was 100% brand new… so all the variables FOR THAT SCENE were fresh. however, when i ran the whole movie, in one of my preceeding scenes, i defined some root variables (as that was in the version prior to this one), which overwrote my UI components… took that code out and voila. works perfectly.

closes eyes to receive her kicking

Take that ! special Guile-Style reverse kick

pom 0]