I am working in Adobe Animate CC

CCUploadTextColour.jpg

I am following an AS3 tutorial. The script I have attached(screenshot) works perfectly but 'function' and 'if' are displaying in pink in my Actions window yet are showing in Blue in the example I am following.
Does any wise member know why the difference in colour between the two examples. I am just a bit confused as to why my script shows 'function' and 'if' in pink.

Thanks guys,

Peace.