PDA

View Full Version : need buttons to become inactive when external movie loaded



iggyotis
April 11th, 2009, 06:32 PM
Hi,


I am working on a portfolio website and I have all my navigation with buttons linking to other pages, on the base level. All the buttons are scattered around the stage and when one of these buttons is clicked an external movie is loaded in the centre of the page.


The movie is a big white box with a slideshow of images from my portfolio in the centre of the stage.



My problem is that the buttons on the base level are easily clicked by accident, even though you cant see them with the white box.


Is there anyway I can stop the base movie clip working, once a button is clicked? When the user has finished looking at my slideshow images then they press a close button.




Code used for button on main timeline:
swfBtn.onRelease = function()
{
loadMovieNum("graphicLayouts.swf", 1);
}


Code used for Close button on external swf:
on (release) {
unloadMovieNum(1);
}

countersweet
April 11th, 2009, 07:01 PM
Code used for button on main timeline:
swfBtn.onRelease = function()
{
if(!_root.paused){ //undefined throws false so it's also inicialized
loadMovieNum("graphicLayouts.swf", 1);
_root.paused=true;
}
}


Code used for Close button on external swf:
on (release) {
unloadMovieNum(1);
_root.paused=false;
}

iggyotis
April 12th, 2009, 06:38 AM
Code used for button on main timeline:
swfBtn.onRelease = function()
{
if(!_root.paused){ //undefined throws false so it's also inicialized
loadMovieNum("graphicLayouts.swf", 1);
_root.paused=true;
}
}


Code used for Close button on external swf:
on (release) {
unloadMovieNum(1);
_root.paused=false;
}

Hi, this works when the white box is open, which is great, but when the white box closes and the external movie closes the button is still inactive, but it needs to work again?

countersweet
April 12th, 2009, 07:35 AM
add _root.paused=false; everywhere where necessary