Here is another take on the story from Ernest Busenbark:
"[...] Samson started from Gaza at midnight and did not sleep until morning, which is a lunar characteristic (12). His death occurred under the pillars which supported a banquet hall in Gaza where a feast was being held in honor of the fish god, Dagon. According to Sir William Drummond, Gaza signifies a goat, the zodiacal sign of the Capricorn. (13)
As the Samson story is given in the book of Judges, he is accompanied on his adventures by 30 companions; he slays 30 men at Ascalon and takes from them 30 changes of clothing, the repeated use of 30 coinciding with the 30 days of the solar month.
When Delilah asks Samson the source of his strength, he tells her that if he is bound with 7 new bow strings, his strenth will depart although, when she so binds him, he breaks the strings with ease. Then Delilah binds him with 7 new ropes which also fail to hold him. Next, Samson confesses to her that if his 7 locks of hair are shorn, all of his strength will surely vanish. The story does not speak of an indefinite number of locks; there are 7, no more, no less. Similar stories which tell of the sun being bound by ropes or being retarded in its course are to be found in many lands.
If the story of Samson is read merely as a simple narrative it appears preposterous for it cannot be imagined that Samson would deliver himself into the hands of an intruiguing enemy female and tell her how he could be rendered defenseless. It acquires meaning and significance only when considered as a lunar-solar myth. The 7 bow strings then represent the first 7 days of the new moon when it is increasing in vigor and power. Next, the 7 ropes are broken, making in all 14 bindings which fail to hold him. The number 14 indicates the number of days which bring both the moon and Samson to the peak of their power. When the moon is full, the powers of Light have overcome the power of Darkness, the 'Philistines'.
But, as soon as the moon passes the full, the dark forces renew the attack and this time are successful because the moon begins to become emaciated and lose strength in the 7 days of the moon's third quarter, symbolized by Samson's loss of the 7 locks of hair.
In the final period, the fourth quarter, the powers of Darkness are in control and the moon is deprived of its light. In like manner, Samson, deprived of his strength, is seized by his enemies who bind him, put out his eyes, and thrust him into a dungeon. But, knowing that the moon will rise again to renew the contest, the authors of the legend, in order to maintain a consistent parallel, inform us that Samson's hai immediately began to grow again, intimating that he would soon be ready to renew the battle.[...]"
source: "Symbols, Sex, and the Stars" by Ernest Busenbark
Personally I don't think that Samson represents the moon, but I think that Busenbark is right when he says that the number 7 is the key of the astronomical allegory.
We can suppose that:
1st week of december: 7 new bow strings (the zodiac sign that the sun goes through before entering Capricorn is Sagittarius... and the Sun passes trought the bow of the archer)
2nd week of december: 7 new ropes (the sun passes trought the rope of the bow in this period)
3rd week of december: 7 locks of hair (7*3 = 21 december - winter solstice... and the passage of the Bible where they take him is numbered Judges 16:21
too.. and the sun passes trought the hairs of the archer)
4th week of december: Samson is called from the prison (no number is given here, but notice that this happens in Judges 16:25
... christmas, when the sun rises again!)
End of december: In Judges 16:30
Samson brings down the temple, and the old year (the cycle of the sun) ends.