So now I am home from the supermarket so I tried this. I made a test with a scrolling black and white gradiant ramp and a photo and it seems to work. Try this:
On the layer you are using to create the fake flicker, bring up the Exposure plugin.
Alt click on the stopwatch so you can write an expression.
Paste this expression:
sample = thisComp.layer("yourGreenScreenLayer").sampleImage([10,10]);
hsl = rgbToHsl(sample);
value = hsl[2] *10;
change “yourGreenScreenLayer” to your layer.
change the sampleImage point to some pixel that works in your footage.
adujst “hsl[2] * 10” to something that works for you.
What this does is that it samples one pixel at the coordinates 10, 10. “sample” gets an rgbArray and I don´t want that. So I convert it to HSL (hue, saturation and lightness). Lastly, I return the lightness value (that is, hsl[2]) and the exposure plugin reacts to the point I sampled. hsl[2] is apparently a value between 0-1 so I multiplied it with 10 just so I could see the effect clearly.
Let me know if it works for you. This is of course a proof of concept, so you may want to tweak it. Probably a lot. But it´s hopefully a start. 🙂