Hi,
I am really desperate to solve this. If anyone can help me I would appreciate it.
I have two place holders: holder_text_mc and holder_img_mc.
I have a navbar with 6 buttons. The idea is that when you click on a button (lets call it ‘about’), the text for that category (about_text.swf) should load into the holder_text_mc and the image for the category (about_img.swf) should load into the holder_img_mc.
Then if you click on another button (lets say ‘contact us’) the previous (about) swf’s should fade out and the ‘contact us’ swf’s fade in. (contact_tex.swf into the holder_text_mc and contact_img.swf into the holder_img_mc etc…)
I have tested the code below when using only holder_text_mc and everything works fine. But as soon as I put the holder_img_mc into it, the button loads the same swf into both holders!!!
Here is the AS for the button: As I said with only one button action, it works fine but as soon as I put the action for the second holder - It loads the same swf into both holders!
}
on (release) {
_root.nextMovie=(‘about_text.swf’);
_root.holder_text_mc.gotoAndPlay(‘out’)
}
on (release) {
_root.holder_img_mc.nextMovie=(‘about_img.swf’);
_root.holder_img_mc.gotoAndPlay(‘out’)
}
This is the AS from the main timeline for the two holders in the ‘home’ state. It seems to work fine which leads me to think that my problem is with the AS on the button???
holder_text_mc.loadMovie(‘home.swf’);
preloader_mc._alpha=0;
preloader_mc.onEnterFrame=function(){
l=holder_text_mc.getBytesLoaded();
t=holder_text_mc.getBytesTotal();
p=Math.round((l/t)*100)
if(p<100){
if(this._alpha<100){
this._alpha+=10
}
preloader_mc.gotoAndStop§
}else{
preloader_mc.gotoAndStop(100)
if(holder_text_mc._currentframe==1){
holder_text_mc.gotoAndPlay(‘in’);
}
if(this._alpha>0){
this._alpha-=10
}
}
}
holder_img_mc.loadMovie(‘home_img.swf’);
preloader_mc3._alpha=0;
preloader_mc3.onEnterFrame=function(){
l=holder_img_mc.getBytesLoaded();
t=holder_img_mc.getBytesTotal();
p=Math.round((l/t)*100)
if(p<100){
if(this._alpha<100){
this._alpha+=10
}
preloader_mc3.gotoAndStop§
}else{
preloader_mc3.gotoAndStop(100)
if(holder_img_mc._currentframe==1){
holder_img_mc.gotoAndPlay(‘in’);
}
if(this._alpha>0){
this._alpha-=10
}
}
}
I hope I have been clear. Please help me - I really need it!