The function look like this:
private function nextSlide():Void {
slide_num++;
if(slide_num > total_slides) slide_num = 1;
container_1_x -= image_width;
container_2_x -= image_width;
if(slide_num == 2){
container_2_x = image_width;
if(image_container_2_mc.getDepth() > image_container_1_mc.getDepth()
)
image_container_1_mc.swapDepths(image_container_2_mc);
}
if(slide_num == total_slides){
container_1_x = image_width;
if(image_container_1_mc.getDepth() > image_container_2_mc.getDepth()
)
image_container_2_mc.swapDepths(image_container_1_mc);
}
ZigoEngine.doTween({target:image_container_1_mc, x:container_1_x,
seconds:2, ease:"easeOutQuart"});
ZigoEngine.doTween({target:image_container_2_mc, x:container_2_x,
seconds:2, ease:"easeOutQuart"});
}
There are image_container in order to make a image carouse. I am afraid
that it does not help any!
Adam
What does the "nextOne" function look like?
On 1/15/07, Adam Raft <[EMAIL PROTECTED]> wrote:
> I use setInterval to change slides in a slidshow class. It all work
> fine until it put the slideshow into a project with more than one
show.
> Iven the different show are located in different swf files that are
> loaded and unloaded frome the main file it seems that the
> Intrevalobjects stays in memory and for each time the increasses
making
> the show goes faster and faster. I used:
>
> var ID = setInterval(this, "nextOne", 2000);
>
> I would had thought that "this" would keep the call to the scope of
> object that inisiated the setInterval.
>
> Well I also tryed to implement kenny bunch's IntervalManager Class -
no
> help there.
>
> Any sugestions?
>
>
> Adam
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
<http://chattyfig.figleaf.com/mailman/listinfo/flashcoders>
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com <http://www.figleaf.com/>
> http://training.figleaf.com <http://training.figleaf.com/>
>
--
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
--
The Dinosauricon: http://dino.lm.com <http://dino.lm.com/>
Parry & Carney: http://parryandcarney.com <http://parryandcarney.com/>
ISPN Forum: http://www.phylonames.org/forum/
<http://www.phylonames.org/forum/>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com