Pour milk into bread machine pan. Add egg. Sprinkle flour over milk and egg.
Add butter, sugar, salt, and pandan paste in separate corners of bread pan.
Make a shallow indentation in the middle of flour and add yeast.
Snap bread pan into bread machine and close lid. Set bread machine to dough setting. Press the start button.
While dough is in the bread machine, dry fry sweetened coconut flakes on medium heat until golden brown, stirring constantly. This will take about 10 to 15 minutes. Remove and set aside to cool.
Grease a 9 inch square cake pan.
When dough cycle is complete, remove dough from machine and place it on a lightly floured surface.
Punch down gently and roll into a 15 inch square.
Brush with melted butter and sprinkle with filling.
Roll up dough like a jelly roll. The roll may elongate a little.
Cut into 12 pieces and place cut side up in prepared pan. They should be placed close together but not touching so as to leave room for it to rise.
Cover with oiled plastic wrap and leave in a warm place to rise for 30 to 45 minutes or until pieces of dough touch each other.
Preheat oven to 400°F.
Bake buns for 20 - 22 minutes or until golden brown.
Allow buns to cool slightly in pan before turning onto wire rack.
You can hand knead or use a stand mixer to knead the dough if you prefer. Mix all dough ingredients together and knead until a smooth soft dough forms. Allow it to rise for and hour to an hour and a half or until almost double in size. Hand kneading will probably take 10 to 15 minutes while the stand mixer will take about 5 to 7 minutes.