Hi, Im new to this site and to scripting, so please bare with me if my explanation is a bit confusing. I have searched this forum and others but i cant find any help so if u can send me any links, greatly appreciated =)
I have a image scrollbar (the one that was used for the infinite menu tutorial in this site) and when the user clicks on a button (photo gallery), i want an enlarged image to fade in and stop. Now heres the my problem I want to be able to randomly click on any button (total 20) and the current image that is being shown fades out and fades into the one that was currently selected. If anyone knows of any tutorials or anything at all that could possible aid me, please help
Do you want them both to fade at the same time?..I mean do you want picture 1 to be completely gone before picture 2 fades in? If not, I did this up for someone on another forum, have a look:
and the fla is here:
I think that site just loads different URLs on clicks. That’s my best guess tho.
Hey thanks adam for replying to me and yes, that is exactly wut i want but im having a problem. i used the infinite menu in my site and when i followed the setup u created and the movieclip of my infinite menu, so i didnt put any of ur scripting on the maintimeline…which means it didnt work for me. Then i went into your fla file and brought in some of my pics/mc’s to swap with urs and nothing happens? i somewhat understand ur scripting but i dont understand the “i” statement, can u explain that to me or direct to the thread that u had helped someone else with. i tried to attach the file but if it does work here is the script i put on the button in my menu…its the same menu used in the infinite men tutorial on this site but on rollover the buttons stop
and i put all of the other scripted layers that u had, i put in the infinite menu’s MC (instance name is scrollbar) and the general_menu mc in “menu” -instance name is menu. here is the script i have on my menu
onClipEvent (load)
{
xcenter=350;
speed=1/240;
mode=true;
}
onClipEvent (enterFrame)
{
if(mode){
var distance=_root._xmouse-xcenter;
_x+=(distancespeed);
var distance=_root._xmouse-xcenter;
_x+=(distancespeed);
if (_x > 0 ) _x=-2156.8;
if (_x < -2156.8 ) _x=0;
}
}
whats confusing me is that i replaced ur images/mc’s with mine and it still didnt work how come?
thanks for taking the time and helping me, greatly appreciated =)
hey adam, thankyou so much for ur help, i understand now wut ur scripting meant after looking at it for a few hours and ur right, it doesnt work with different sized images (the file u last attached, i couldnt upload) but i have one more question if u dont mind…since u already know that Im using a Infinite scrollbar, u already know my setup. I have my site (only way i was taught) setup with a main timeline, with constant buttons, & empty movieclip. when u click on a button it loads an external swf file into that empty movieclip on the main timeline. The external file that is loaded onto the main swf file has another button that loads yet another external swf file which has my infinite menu in it. shopefully that made sense…heres my dilema (only problem i have now with the whole site =(
the infinite menu works beautifully when i render it out alone (buttons stop, smooth transitions) but once i view the complete site as a whole, the menu buttons do not stop on rollover. here is my script on the infin menu
both scripts work fine once rendered out as a separate swf file but when it loads onto the main timeline, the buttons dont stop on rollover
now im starting to understand the root command, now is this my problem…the path/directory? i searched on the forums for something similar but nothing redirecting to the main swf through that menu system. i tried changing the _root to _parent or _this but no luck any ideas on wut it might be and then i could do the research i just dont understand which direction to go into.
And thankyou for all ur time, more than greatly appreciated for everything
Tracy