Link to home
Start Free TrialLog in
Avatar of christampa
christampa

asked on

slider menu question

hello, i am using this code seen in this page below

http://www.kirupa.com/developer/mx2004/menu_with_slider.htm

how can i make it so that when one of the menus is clicked, when the next page is loaded, it is loaded on that particular menu, and with the slider to where they clicked it.  

thanks.
Avatar of Aneesh Chopra
Aneesh Chopra
Flag of India image

what do you mean by next page....

Please confirm...are you loading different htmls with menu clicks?



Rgds
Aneesh
Avatar of christampa
christampa

ASKER

yes, when the menu is clicked, a new page will be displayed.  say the main page is index.html, and one of the menus takes you to page1.html.  when they are taken to page1.html, i want the slider to be on the button to take you to page1.html.  i hope you understand.
Ok,

here I have uploaded a updated version of same slider menu..
download it here..
http://s25.yousendit.com/d.aspx?id=1FA4RQ9LR5V5U2PXHVV54LB3QU

it will loaded on that particular menu, which has been clicked last time.

for more Info:
I have used SharedObject to store the last menu_item "x" value
and when SWF loads again, it check and if found a value stored it moves the slider to that on load..

(shared object is just like cookie to store local variables on user system..)

I hope it would be clear.

for more info on SharedObject. click below
http://livedocs.macromedia.com/flash/8/main/00002665.html

Rgds
Aneesh
how would this work if the user closes out of the page and opens it again?  i would want it to go to the first box then, which is home....

also what if cookies is disabled? is there any way the web browser wouldnt save this cookie?  

thanks for the help.
My Dear,
have you test it...?
it will work perfectly as you want..

have you read the SharedObject article I have mentioned..?

it will still work even cookies are disabled... sharedObject not the same cookie browser used..
if you read carefully, I jsut mentioned that it is like cookie...

please test it first then reply

Rgds
Aneesh
here is the logic to referesh it on home page.....

On home page, you would have to pass a variable to flash.. using FlashVar....
flash will read this variable, and if received it will not read the SharedObject to set the slider x value


Rgds
Aneesh
ASKER CERTIFIED SOLUTION
Avatar of Aneesh Chopra
Aneesh Chopra
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
viii.  Select your first button (button_1) and again open the Actions Panel (F9). Copy and paste this:

 

on (release) {
// slider - Movie Clip's Instance Name. button_1 - Button's Instance Name.
slider.xMove = button_1._x;
}
 
i have decided to go about it a different way.  i created a flash doc per page, since the flash is very small, i thought this would be ok and i could customize it per page.