View Single Post
  #5 (permalink)  
Old Oct 25th, 2007, 10:50
marSoul's Avatar
marSoul marSoul is offline
Moderator
Join Date: Sep 2007
Location: Tehran - Iran
Age: 29
Posts: 426
Blog Entries: 2
Thanks: 6
Thanked 5 Times in 5 Posts
Re: Movieclip button active state problem !! Help Please !!

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...
Attached Files
File Type: zip navigation-test.zip (17.5 KB, 6 views)
__________________
Designing For Communicating
Website : http://www.datisdesign.com
Weblog : http://blog.datisdesign.com

Reply With Quote