Topic: My External buttons are not working Pages that link to <a href="https://ozoneasylum.com/backlink?for=30302" title="Pages that link to Topic: My External buttons are not working" rel="nofollow" >Topic: My External buttons are not working\

 
Author Thread
gabrielsj
Obsessive-Compulsive (I) Inmate

From:
Insane since: Jun 2007

IP logged posted posted 06-03-2008 17:39 Edit Quote

Hi there, I have a main.fla where I keep my mcHolders and mcLoaders.

After loading in my interface.swf (where are my buttons) into my main movie (root), I have these actions on last frame of main.fla:

code:
var mcl3:MovieClipLoader = new MovieClipLoader();
var mclL3:Object = new Object();

mclL3.onLoadProgress = function(target,loaded,total) {
	centerLoader.percent3.text = Math.round((loaded/total) * 100) + "%";
}

mclL3.onLoadInit = function() {
	centerLoader._visible = false;
	centerLoader.percent3.text = "";
}

mcl3.addListener(mclL3);

_root.currMovie = "news";
mcl3.loadClip(_root.currMovie+".swf",centerHolder);



So basically it's loading in my news.swf on centerHolder. That's working.

Now back inside my interface.swf, I have my buttons. And this is an example of one (not working):

code:
var mcl4:MovieClipLoader = new MovieClipLoader();
var mclL4:Object = new Object();

mclL4.onLoadProgress = function(target,loaded,total) {
	_root.centerLoader.percent3.text = Math.round((loaded/total) * 100) + "%";
}

mclL4.onLoadInit = function() {
	_root.centerLoader._visible = false;
	_root.centerLoader.percent3.text = "";
}

mcl4.addListener(mclL4);

menuOT.b1.buttonText.buttonText.text = "PRODUCTS";
menuOT.b1.onRelease = function() {
	if (_root.currMovie == undefined || _root.currMovie != "products") {
		_root.currMovie = "products";
		_root.mcl4.loadClip("products.swf",topHolder);
		_root.mcl3.unloadClip("news.swf",centerHolder);
	}
}



Any help? I'm stuck!

Dracusis
Maniac (V) Inmate

From: Brisbane, Australia
Insane since: Apr 2001

IP logged posted posted 06-25-2008 01:52 Edit Quote

Could be any number of things going wrong in there, and it might not be the code itself. Post the FLA files somewhere so we can take a look at them.



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu