i want to sort a vector
vector<myclass> object;
where as myclass contains many int data variables, how can i sort my vector on any specific data variable of myclass.
var blockGraphics : Graphics = null;
blockGraphics.clear();
blockGraphics.beginFill(255);
blockGraphics.drawRect(10,10,10,10);
I am trying to simply draw a rectangle but nothing appears on the screen. What am i missing?
i want to add to stage a movieclip in another class not the .as file as the same name of .fla file how can i get this.
When i run same code in main.as i get the result but in another class it runs but no result.
for ( var i:int = 0 ; i < 1; i++)
{
for ( var j:int = 0 ; j < 1; j++)
{
if (shape[j][i] == 0 )
{
pencil.graphics.beginFill(0);
pencil.graphics.drawRect(10,10,5,5);
pencil.graphics.endFill();
}
}
}
i am trying to run this code where shape is an array 2*2
gives an error
ReferenceError: Error #1069: Property 0 not found on Number and there is no default value.
at Main()
need help
for ( var i:int = 0 ; i < 1; i++)
{
for ( var j:int = 0 ; j < 1; j++)
{
if (shape[j][i] == 0 )
{
pencil.graphics.beginFill(0);
pencil.graphics.drawRect(10,10,5,5);
pencil.graphics.endFill();
}
}
}
i am trying to run this code where shape is an array 2*2
gives an error
ReferenceError: Error #1069: Property 0 not found on Number and there is no default value.
at Main()
need help