Particle tutorial -> push() -> How to unpush?

Software: Away3D 4.x

Babylon, Jr. Member
Posted: 11 February 2013 07:12 AM   Total Posts: 39

Greetings,

Looking at the particle tutorial you’ll see

var cube:Geometry = new CubeGeometry(101010);
var 
geometrySet:Vector.<Geometry> = new Vector.<Geometry>;
for (var 
i:int 01000i++)
{
    geometrySet
.push(cube);

I’d like to be able to go in and do something like this

for each (var number:Vector3D in geometrySet{
//my conditions
?????
geometrySet.pop(number); 
?????

I know pop isn’t what I’m looking for.

any help? Thanks,
-B

   

Ankur, Jr. Member
Posted: 12 February 2013 08:00 AM   Total Posts: 43   [ # 1 ]

Hi Babylon,

I am not sure why you are having problems using pop() function on your vector as the documentation says that there exists pop() for vectors too. http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/Vector.html

   

Ankur, Jr. Member
Posted: 12 February 2013 03:42 PM   Total Posts: 43   [ # 2 ]

Oh I see, you want to remove a certain element from the vector that is at that index.

I am not sure if it is possible… but may be this is what you are looking for - http://stackoverflow.com/questions/638381/fastest-way-to-delete-one-entry-from-the-middle-of-array

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X