What steps will reproduce the problem?
1. Try to create a new BitmapParticleMaterial or MovieParticleMaterial
2. Then try to create a few or many particles with same material
3. Only last one shows rest do not get displayed
What is the expected output? What do you see instead?
There should be many particles with same bitmap data but only last one is
shown.
What version of the product are you using? On what operating system?
REvision 715, Vista.
Please provide any additional information below.
But if you create same number of BitmapParticleMaterial as particles but
use same BitmapData it is solved. I was using these classes and they were
working fine.
Code not working;
var i:Number = 10;
var bmpd:BitmapData = new tree(0,0);
var treeMaterial1:BitmapParticleMaterial = new
BitmapParticleMaterial(bmpd);
while(i<10){
var particle:Particle = new Particle(treeMaterial1, 1, i*100, height,
i*100);
particleField.addParticle(particle);
i++;
}
Working code;
var i:Number = 10;
var bmpd:BitmapData = new tree(0,0);
while(i<10){
var particle:Particle = new Particle(new BitmapParticleMaterial(bmpd);, 1,
i*100, height, i*100);
particleField.addParticle(particle);
i++;
}
Original issue reported on code.google.com by bul...@gmail.com on 8 Sep 2008 at 12:20
Original issue reported on code.google.com by
bul...@gmail.com
on 8 Sep 2008 at 12:20