If an ability of the equipped creature states that it has flying "as long as" a condition is true, that condition becoming true won't cause the creature to gain flying. For example, if the equipped creature "has flying as long as it's attacking," it won't gain flying even if it attacks after Starforged Sword becomes attached to it.