simple math, use total object frames to get the number of frames of animation for each one you load, if you have idle.x has 20 frames and walk.x has 20 frames then you have a total of 40 frames of animation, idle.x starts at 1 and ends at 20, and walk.x starts at 21 and ends at 40, if you add another animation like attack.x and it has 30 frames then it starts at 41 and ends at 70, just get the numbers for each animation from "total object frames" as you add each animation to the other and store the values in named variables eg:
load object "idle.x",1
idle=total object frames(1)
append object "walk.x",1,idle+1
walk=total object frames(1)
append object "attack.x",1,walk+1
attack=total object frames(1)
then to do an action
play object 1,idle+1,walk
makes him walk
play object 1,walk+1,attack
makes him attack etc, it`s always a good idea to give your code meaningfull names, if you do it right then it makes the code almost as easy to read as English, cheers.
Mentor.