New animation frames cannot be added at runtime to a sprite.
Make it so you have "free" (empty) animation frames available at edit time, and when you execute your game, set the sprite to one of the free animation frames and use the Load from URL action at this time.