I am making a gallery for my project. this gallery will have 10 sections of images. each section contains around 200 images. A main Interface will call each sections externally.
I have used the below code for transition and time delay for each section;
[COLOR=#333333][COLOR=#333333]import mx.transitions.;[/COLOR][/COLOR]
[COLOR=#333333][COLOR=#333333]import mx.transitions.easing.;[/COLOR][/COLOR]
[COLOR=#333333][COLOR=#333333]stop();[/COLOR][/COLOR]
[COLOR=#333333][COLOR=#333333]function playpause() {[/COLOR][/COLOR]
[COLOR=#333333][COLOR=#333333]isplaying ? clearInterval(myint): myint = setInterval(myFunction, 6000);[/COLOR][/COLOR]
[COLOR=#333333][COLOR=#333333]isplaying = !isplaying; [/COLOR][/COLOR]
[COLOR=#333333][COLOR=#333333]}[/COLOR][/COLOR]
[COLOR=#333333][COLOR=#333333]function myFunction()[/COLOR][/COLOR]
[COLOR=#333333][COLOR=#333333]{[/COLOR][/COLOR]
[COLOR=#333333][COLOR=#333333]if(mc_content._currentframe==mc_content._totalfram es){[/COLOR][/COLOR]
[COLOR=#333333][COLOR=#333333]mc_content.gotoAndStop(mc_content._currentframe)[/COLOR][/COLOR]
[COLOR=#333333][COLOR=#333333]}else{[/COLOR][/COLOR]
[COLOR=#333333][COLOR=#333333]TransitionManager.start(mc_content, {type:Fade, direction:Transition.IN, [/COLOR][/COLOR]
[COLOR=#333333][COLOR=#333333]duration:2, easing:None.easeNone, numStrips:20, dimension:5});[/COLOR][/COLOR]
[COLOR=#333333][COLOR=#333333]mc_content.nextFrame();[/COLOR][/COLOR]
[COLOR=#333333][COLOR=#333333]}[/COLOR][/COLOR]
[COLOR=#333333][COLOR=#333333]}
[/COLOR][/COLOR]
Each section contains, play, pause, next and previous buttons.
Problem is that when I view one section from Interface, everything works fine, just for the first time. But when I view any other section, its starts playing automatically and time interval also becomes fast. Play/Pause buttons also don’t work then.
Plz help me!!!