This is a discussion on "[SOLVED] Movieclip button active state problem !! Help Please !!" within the Flash & Multimedia Forum section. This forum, and the thread "[SOLVED] Movieclip button active state problem !! Help Please !! are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] Movieclip button active state problem !! Help Please !!
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
[SOLVED] Movieclip button active state problem !! Help Please !!
Hello all, actually my problem is quite simple and I know that it can be done but I don’t know how to do it and I have asked and googled this many time but no one come up to help me with the simple and exact solution. I don’t know people don’t understand my question or they don’t want to tell the solution “ I am very frustrated, sorry for this long intro of my frustration”.
Ok my problem is that I have a flash navigation swf embedded on html page and the same swf is embedded in three another pages of site as navigation. The swf contains three movieclip buttons “home” , “services”, “contacts”. If the use click the contacts button then he navigate to contacts.htm and my navigation swf buttons reset to up state ( all of them ). All I want that if a user click the contacts button and navigate to contacts.htm then the contacts button should be disabled and should play the active state. How on earth I could do that please help me on this . I have some idea that it can be done by using the JavaScript in html and may be flash vars . Please please please help me out . The code I am using for my movieclip buttons are :
There is an active state is there as well but I don’t know how do I call that until I have some current page variable for html page . Last edited by Sgaspar11; Oct 24th, 2007 at 21:41. |
|
|
|
|||
|
Re: Movieclip button active state problem !! Help Please !!
You will definately need to use FlashVars to do this...
Set a value in your embed code that sets the page value to a page name. Then create some IF statements in your flash file using AS to disable buttons... Something like:
Scott
Last Blog Entry: Yay!? (Oct 8th, 2007)
|
|
||||
|
Re: Movieclip button active state problem !! Help Please !!
I really don't understand what you want to do, if you want to disable a button you can use : my_btn.enabled = false;
that will disable your button. But if you want to communicate with your current page and see what should be done, you should pass variable to swf file with flashvars. But i don't know what you are looking for... ! If you want describe more briefly
__________________
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
|
|
|||
|
Re: Movieclip button active state problem !! Help Please !!
Thank you Sgaspar11 and marSoul for replying now I have a feeling that I will be able to solve my problem in this forum with you guys.
I have some idea that I have to use FlashVars for this but I don’t know the proper way to do so, can you flash experts show me how do I set the value in my html pages to communicate with my swf navigation, and marSoul I want to brief it for you a bit more and I have also enclosed my project file, please take a look at that and please make necessary changes to it so then I will be able to understand it more, all I want just my buttons to play the active state in the movieclip button on the corresponding page ! Like if a user click on services button and navigate to services.htm then the services button should play the active state of the movieclip button. Along with this the hyperlink on the button should be disable so user would not be able to click it again on the current page. I hope this clarify my problem !! Thank you for help !! appreciated !! navigation-test.zip |
|
||||
|
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 :
and for embed :
__________________
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
|
|
|||
|
Re: Movieclip button active state problem !! Help Please !!
Thank you Thanks a lot marSoul you are my man !! God bless you !! you have solved my problem in a very easy way I never thought its going to be this simple, though I could not be able to do it myself cause I am not that much of action script guy but you are a flash guru. I am jumping now thanks a lot once again !!
Last edited by alladeen; Oct 25th, 2007 at 14:38. |
|
||||
|
Re: Movieclip button active state problem !! Help Please !!
you are welcome !
im not a flash guru, still there are lots to know... anyway if your problem solved please mark ur topic solved regards
__________________
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to retain the disable state of the button after page refreshing | srinivasyadav | JavaScript Forum | 1 | Sep 9th, 2007 14:17 |
| Active State | Lchad | Web Page Design | 10 | Jan 27th, 2007 01:29 |
| Button triggering movie state | WakeoftheBunT | Flash & Multimedia Forum | 3 | Nov 6th, 2006 13:15 |
| Setting the state of a button using actionscript | artdog | Flash & Multimedia Forum | 6 | Oct 18th, 2006 14:45 |