Hi, I'm mainly a coder, with some experience on the arts side as well. I've got a site where I need to be able to set and clear a bunch of intervals dynamically. It's a visualization application which involves node-link graphs with a potentially large number of nodes, and in which you can generate new graphs by exploring particular nodes. Various animations and things will have to happen, and one use of the application could conceivably involve hundreds of intervals being set and cleared. I need to be able to manage fade-outs, fade-ins, and movement for all these different nodes without any of the interval clearing or setting obliterating pre-existing intervals used in different functions.
I've been reading various books and googling for a while and I really just haven't found any sophisticated technique for doing what I want to do. There are limitations, too. The system is a prototype and has to be finished very quickly. It's not object-oriented, it's in AS 2, and I've probably made a number of hideous mistakes as my prior experience is generally limited to bit101 tutorials and Jared Tarbell style art experiments. My question is, is there a way to pass an interval to the function you're calling within setInterval? Should I create a NodeFader class and pass it the interval? nodefader = new NodeFader() ; nodefader.interval = setInterval(nodefader, 50, node_to_fade) ; Something like that? My second question is, did I just answer my first question in the process of asking it? -- Giles Bowkett http://www.gilesgoatboy.org _______________________________________________ [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

