So, never coded in ActionScript before. What to do?
Downloaded the starter kit from Saqoosha.net.
Went through the samples.
First step was to print out the marker that came with the started kit. Tested the SimpleCube sample. Everything works.
Now, try to generate a marker using my own image.
Found this online generator.
Substituted the name of my marker’s pattern in the code. Marker does not register now.
Why?
A little searching led to this:
new FLARCode( i_width:int , i_height:int , i_markerPercentWidth:uint = 50 , i_markerPercentHeight:uint = 50 );
I need to change the values passed to the constructor in the SimpleCube sample code because I had generated my marker with different settings.
After changing the values, the sample code works again.

Post a Comment