twistedlogic
Technical User
I have a completly empty channels and I want to load cast members into these channels 'on the fly' ie create sprites.
This is supposed to load the first 6 cast members into the first 6 channels and position them 30 frames vertically apart. It doesn't work, and nothing is being added to the stage.
on enterFrame me
i=1
repeat while i = 1 to 6
vVLoc = (50+(i*30))
sprite(i).member = member(i)
sprite(i).locH = 700
sprite(i).locV = vVLoc
end repeat
end
Do I need to create 'empty' sprites off stage, or is there a way to load sprites into blank channels.
thanks in advance
This is supposed to load the first 6 cast members into the first 6 channels and position them 30 frames vertically apart. It doesn't work, and nothing is being added to the stage.
on enterFrame me
i=1
repeat while i = 1 to 6
vVLoc = (50+(i*30))
sprite(i).member = member(i)
sprite(i).locH = 700
sprite(i).locV = vVLoc
end repeat
end
Do I need to create 'empty' sprites off stage, or is there a way to load sprites into blank channels.
thanks in advance