You can try a trick with a family.
Create a family with sprite A.
Then use "FamilyA spawn A"
"A.UID" in this event will refer to UID of a newly spawned instance.
Or you can use "System->Create" action:
Function call "CreateNewA" (A.x, A.y)
On function "CreateNewA"
System-> create new A on layer 0 at (function.param(0), function.param(1))
A set instance variable ....