Hello. Long time listener, first time caller…
Got a site in development at:
http://www.anman.net/tpi/tpi_flash_site2.html
(p.s. it wasn’t my idea to have an intro movie…)
Anyway, if you click on “events&entertainment” a new movie is loaded on lvl 53. It’s a thumbnailed image gallery that loads external images into an empty movie clip. Works great! The progressBar shows the proper info and disappears when the image is loaded.
That’s not the problem.
Now, click on “corporatecommunications”. It loads a movie in lvl 54, unloads lvl 53 - the gallery is the same code, but it doesn’t work!!!
It’s driving me up the wall.
Reload the site and click on “corporatecommunications”. Works great! Now, click “events&entertainment”. Doesn’t work!
Here is the code for the “events&entertainment” movie gallery functionality. The “corporatecommunications” galley uses the same code, but replaces the “ee” with “cc” in the variable, functions, etc…
If you look at the swf’s individually, they work fine!
http://www.anman.net/tpi/tpi_cc2.swf
http://www.anman.net/tpi/tpi_eande2.swf
http://www.anman.net/tpi/tpi_au.swf
// Create a variable to hold the image location information
var imageNowee:String;
imageNowee = "images/toby06a.jpg";
// Function to make sure 'iHoldee' (the empty movie clip) is sized properly
iHoldee.loadMovie("images/toby06a.jpg");
// Load initial image into 'iHoldee'
iHoldee.loadMovie("images/toby06a.jpg");
//-----------------------------------------------------------------
/*Each button contains a function. This is one of them. The rest are the same except for the image name. The function checks to see if the current image is the same one as the button calls for. It does this via the 'imageNowee' variable. If it is different, the progressBar 'pBaree' is set to polled and visible and the image is loaded. Then the variable 'imageNowee' variable is set. */
eePicGrid.butnA.onRelease = function() {
if (imageNowee != "images/toby06a.jpg") {
iHoldeeSize();
pBaree.mode = "polled";
pBaree._visible = true;
iHoldee.loadMovie("images/toby06a.jpg");
imageNowee = "images/toby06a.jpg";
}
};
//-----------------------------------------------------------------
/* Event listener stuff I'm not terribly familiar with. Basically as I understand it, this checks the progressBar to see if an image is finished loading, sets the progressBar to 0, and makes it invisible. */
pBareeListener = new Object();
pBareeListener = function (eeeventObject) {
pBaree.mode = "manual";
pBaree.setProgress(0, 100);
pBaree._visible = false;
iHoldeeSize();
};
pBaree.addEventListener("complete", pBareeListener);
stop();
<
Any help would be…
…helpful.
thanks!