I can tell you what I'd try, with the opinion that you might not get this fixed.
You said it was working, then you heard sparking and it shut-down.
First I'd look at every component inside the chassis to try to determine what was sparking, because that usually gives you burn
marks to tell you what component was causing the problem. (Make sure it's unplugged before doing anything in there)
You probably know, but in case you don't, a CRT acts as a capacitor, storing several thousand volts at the anode plug (connected to the flyback) even when the TV is completely disconnected from the power source. Don't hurt yourself getting zapped.
Somehow, you determined that the flyback was the problem and replaced it. Did you also replace the large diode found across the flyback transformer, and anything else connected to that flyback that might have been fried.
The lines would indicate to me a problem in the vertical circuit, usually a power transistor, but the green screen makes me wonder
just how much circuit damage you've got there. (unless your color or tint was off in the first place)
Again, I'd go over the components closely, trying to find-out what was sparking and identify what circuit section you should be concentrating your troubleshooting efforts on. Sparking you can hear would imply high voltage, the usual suspects for that are
the power components. Large capacitors and power semiconductors.
I'd find the sparking source and then trace the components connected to that source to find-out what else was damaged when the sparking occurred.
My experience with the CRT TVs, because of their age, is that Large Electrolytic Capacitors dry-out and fail, that causes stress on the power semiconductors, causing them to fail, and if any of those failing components don't open (acting as an unintentional fuse, to interrupt the uncontrolled voltages coursing through those components), you have a cascading effect that takes-out more than one component or two.
Sorry if I'm no help to you. For me anyway, it's a lot easier to actually look at a circuit, than to theorize with words.
Good luck.