Hi,
I have attached the modified files,
Here is how it works , you should pass a variable to
swf file with FlashVars for object :
- Code: Select all
<param name=FlashVars value="whichpage=home" />
and for embed :
- Code: Select all
FlashVars="whichpage=home"
and then in ur flash file i put the switch case command :
- Code: Select all
switch (whichpage) {
case "home" :
THome_btn.gotoAndPlay("active");
THome_btn.enabled = false;
break;
case "services" :
TServices_btn.gotoAndPlay("active");
TServices_btn.enabled = false;
break;
case "contacts" :
TContact_btn.gotoAndPlay("active");
TContact_btn.enabled = false;
break;
}
Hope these helped you...