Monday, December 27, 2010

Actionscript part 2

some of actionscript that i manage to manipulate , that kinda important

this script use for container project the 3d objects , i do that 14 different container

this.modelContainer = new DisplayObject3D();
this.modelContainer.addChild(model1);
this.modelContainer.visible = false;
this.scene3D.addChild(this.modelContainer);


This script for add , update and remove the marker


if(evt.marker.patternId == 1)
{
trace("Pattern 1 Added");
markerAdded(1);
this.activeMarker = evt.marker;


if(evt.marker.patternId == 1)
{
trace("Pattern 1 Updated");
markerAdded(1);
this.activeMarker = evt.marker;


if(evt.marker.patternId == 1)
{
trace("Pattern 1 Removed");
markerRemoved(1);

No comments:

Post a Comment