Hi everyone!
The basic situation is this: I have an external swf, which uses an interval to space out the loading of JPEGs.
This swf is loaded into the main swf using the movieclip loader class. I unload the external swf when a button is pressed - and I am also attempting to clear the interval at this point. However, it’s not working for me - when I click on another button to go back to the frame that loads the external swf, it is obviously running additional intervals. The JPEGs start loading faster and faster.
This is my code:
External swf -
PHP Code:
[LEFT][COLOR=#000000][COLOR=#007700]var [/COLOR][COLOR=#0000bb]fadeInterval[/COLOR][COLOR=#007700]:[/COLOR][COLOR=#0000bb]Number [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]setInterval[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]fadeIn[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]750[/COLOR][COLOR=#007700]); [/COLOR][/COLOR][COLOR=#000000][/LEFT]
[/COLOR]
Main swf -
PHP Code:
[LEFT][COLOR=#000000][COLOR=#007700]var [/COLOR][COLOR=#0000bb]mclLoader[/COLOR][COLOR=#007700]:[/COLOR][COLOR=#0000bb]MovieClipLoader [/COLOR][COLOR=#007700]= new [/COLOR][COLOR=#0000bb]MovieClipLoader[/COLOR]COLOR=#007700; [/COLOR][/COLOR][COLOR=#000000]
[COLOR=#0000bb]createEmptyMovieClip[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]“external”[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]3[/COLOR][COLOR=#007700]); [/COLOR]
[COLOR=#0000bb]mclLoader[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]loadClip[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]“flashElements/pics_home.swf”[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]external[/COLOR][COLOR=#007700]); [/COLOR][/LEFT]
[LEFT][COLOR=#0000bb]test_btn[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]onRelease [/COLOR][COLOR=#007700]= function () [/COLOR]
[COLOR=#007700]{ [/COLOR]
[COLOR=#0000bb]clearInterval [/COLOR]COLOR=#007700; [/COLOR]
[COLOR=#0000bb]mclLoader[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]unloadClip[/COLOR]COLOR=#007700; [/COLOR]
[COLOR=#0000bb]gotoAndStop[/COLOR]COLOR=#007700; [/COLOR]
[COLOR=#007700]}; [/COLOR][/LEFT]
[/COLOR]
Now the second bit of code is what I’ve come up with after trawling the internet for answers. I’ve come across more than one forum where people are having this exact problem, which is seemingly fixed by the above. However for me, no dice.
Any input would be appreciated!