Flux Attractors And Generating Functions.