Vector errors

40 views
Skip to first unread message

Hysterical

unread,
Jan 30, 2010, 10:21:39 AM1/30/10
to FLARToolKit userz
Hey, I followed a tutorial online,
http://www.cosmolearning.com/videos/introduction-to-augmented-reality-tutorial-for-flartoolkit

I did everthing but I'm getting a lots of errors

Severity and Description Path Resource Location Creation Time Id
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
labeling NyARLabelOverlapChecker.as line 43 1264850069008 766
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
match NyARMatchPattDeviationBlackWhiteData.as line 41 1264850067514
696
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
match NyARMatchPattDeviationColorData.as line 45 1264850067515 697
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
param INyARCameraDistortionFactor.as line 37 1264850068451 708
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
param INyARCameraDistortionFactor.as line 37 1264850068451 710
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
param INyARCameraDistortionFactor.as line 39 1264850068452 712
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
param INyARCameraDistortionFactor.as line 39 1264850068453 714
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
param INyARCameraDistortionFactor.as line 39 1264850068453 716
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
param INyARCameraDistortionFactor.as line 39 1264850068454 718
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
param NyARObserv2IdealMap.as line 66 1264850068886 753
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
param NyARObserv2IdealMap.as line 66 1264850068887 755
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
param NyARObserv2IdealMap.as line 66 1264850068887 757
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
param NyARObserv2IdealMap.as line 66 1264850068888 759
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
rasterreader INyARRgbPixelReader.as line 46 1264850068465 720
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
rasterreader INyARRgbPixelReader.as line 60 1264850068465 722
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
rasterreader INyARRgbPixelReader.as line 60 1264850068466 724
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
rasterreader INyARRgbPixelReader.as line 60 1264850068466 726
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
rasterreader INyARRgbPixelReader.as line 68 1264850068467 728
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
rasterreader INyARRgbPixelReader.as line 77 1264850068468 730
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
rasterreader INyARRgbPixelReader.as line 77 1264850068469 732
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
rasterreader INyARRgbPixelReader.as line 77 1264850068470 734
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
squaredetect NyARCoord2SquareVertexIndexes.as line 51 1264850068789
742
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
squaredetect NyARCoord2SquareVertexIndexes.as line 51 1264850068790
744
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
squaredetect NyARCoord2SquareVertexIndexes.as line 51 1264850068790
746
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
squaredetect NyARCoord2SquareVertexIndexes.as line 128 1264850068788
738
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
squaredetect NyARCoord2SquareVertexIndexes.as line 128 1264850068788
740
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
squaredetect NyARCoord2SquareVertexIndexes.as line 178 1264850068791
748
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
squaredetect NyARCoord2SquareVertexIndexes.as line 178 1264850068791
750
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
squaredetect NyARSquareContourDetector_IDetectMarkerCallback.as line
35 1264850067505 690
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
squaredetect NyARSquareContourDetector_IDetectMarkerCallback.as line
35 1264850067506 692
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
squaredetect NyARSquareContourDetector_IDetectMarkerCallback.as line
35 1264850067508 694
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
transmat NyARRectOffset.as line 40 1264850068739 736
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
types NyARDoublePoint3d.as line 44 1264850068792 752
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
types NyARIntPoint2d.as line 43 1264850067886 700
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
types NyARIntPoint2d.as line 52 1264850067888 702
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
types NyARIntPoint2d.as line 52 1264850067889 704
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
types NyARLinear.as line 44 1264850068449 706
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
types/matrix INyARDoubleMatrix.as line 41 1264850064733 686
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
types/matrix INyARDoubleMatrix.as line 48 1264850064734 688
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
types/stack NyARObjectStack.as line 60 1264850069915 768
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
types/stack NyARObjectStack.as line 123 1264850069916 770
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
utils NyAREquationSolver.as line 38 1264850070064 771
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
utils NyAREquationSolver.as line 44 1264850070065 773
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
utils NyAREquationSolver.as line 49 1264850070065 775
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
utils NyAREquationSolver.as line 84 1264850070066 777
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
utils NyAREquationSolver.as line 105 1264850070067 779
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] actionscript/org/jp/nyatla/nyartoolkit/as3/core/
utils NyAREquationSolver.as line 151 1264850070067 781
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/labeling
NyARLabelOverlapChecker.as line 43 1264850069007 765
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/match
NyARMatchPattDeviationBlackWhiteData.as line 41 1264850067514 695
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/match
NyARMatchPattDeviationColorData.as line 45 1264850067516 698
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/param
INyARCameraDistortionFactor.as line 37 1264850068451 707
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/param
INyARCameraDistortionFactor.as line 37 1264850068451 709
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/param
INyARCameraDistortionFactor.as line 39 1264850068452 711
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/param
INyARCameraDistortionFactor.as line 39 1264850068452 713
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/param
INyARCameraDistortionFactor.as line 39 1264850068453 715
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/param
INyARCameraDistortionFactor.as line 39 1264850068454 717
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/param
NyARObserv2IdealMap.as line 66 1264850068886 754
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/param
NyARObserv2IdealMap.as line 66 1264850068887 756
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/param
NyARObserv2IdealMap.as line 66 1264850068888 758
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/param
NyARObserv2IdealMap.as line 66 1264850068888 760
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/rasterreader
INyARRgbPixelReader.as line 46 1264850068464 719
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/rasterreader
INyARRgbPixelReader.as line 60 1264850068465 721
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/rasterreader
INyARRgbPixelReader.as line 60 1264850068466 723
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/rasterreader
INyARRgbPixelReader.as line 60 1264850068466 725
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/rasterreader
INyARRgbPixelReader.as line 68 1264850068467 727
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/rasterreader
INyARRgbPixelReader.as line 77 1264850068468 729
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/rasterreader
INyARRgbPixelReader.as line 77 1264850068469 731
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/rasterreader
INyARRgbPixelReader.as line 77 1264850068470 733
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/squaredetect
NyARCoord2SquareVertexIndexes.as line 51 1264850068789 741
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/squaredetect
NyARCoord2SquareVertexIndexes.as line 51 1264850068789 743
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/squaredetect
NyARCoord2SquareVertexIndexes.as line 51 1264850068790 745
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/squaredetect
NyARCoord2SquareVertexIndexes.as line 128 1264850068787 737
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/squaredetect
NyARCoord2SquareVertexIndexes.as line 128 1264850068788 739
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/squaredetect
NyARCoord2SquareVertexIndexes.as line 178 1264850068791 747
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/squaredetect
NyARCoord2SquareVertexIndexes.as line 178 1264850068791 749
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/squaredetect
NyARSquareContourDetector_IDetectMarkerCallback.as line 35
1264850067505 689
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/squaredetect
NyARSquareContourDetector_IDetectMarkerCallback.as line 35
1264850067506 691
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/squaredetect
NyARSquareContourDetector_IDetectMarkerCallback.as line 35
1264850067508 693
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/transmat
NyARRectOffset.as line 40 1264850068739 735
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/types
NyARDoublePoint3d.as line 44 1264850068792 751
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/types
NyARIntPoint2d.as line 43 1264850067886 699
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/types
NyARIntPoint2d.as line 52 1264850067888 701
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/types
NyARIntPoint2d.as line 52 1264850067889 703
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/types
NyARLinear.as line 44 1264850068449 705
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/types/matrix
INyARDoubleMatrix.as line 41 1264850064733 685
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/types/matrix
INyARDoubleMatrix.as line 48 1264850064734 687
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/types/stack
NyARObjectStack.as line 60 1264850069915 767
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/types/stack
NyARObjectStack.as line 123 1264850069915 769
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/utils
NyAREquationSolver.as line 38 1264850070064 772
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/utils
NyAREquationSolver.as line 44 1264850070065 774
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/utils
NyAREquationSolver.as line 49 1264850070066 776
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/utils
NyAREquationSolver.as line 84 1264850070066 778
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/utils
NyAREquationSolver.as line 105 1264850070067 780
1046: Type was not found or was not a compile-time constant: Vector.
FLAR/[source path] org/jp/nyatla/nyartoolkit/as3/core/utils
NyAREquationSolver.as line 151 1264850070068 782
1120: Access of undefined property Vector. FLAR/[source path]
actionscript/org/jp/nyatla/nyartoolkit/as3/core/raster
NyARBinRaster.as line 107 1264850068988 763
1120: Access of undefined property Vector. FLAR/[source path]
actionscript/org/jp/nyatla/nyartoolkit/as3/core/raster
NyARGrayscaleRaster.as line 104 1264850070135 783
1120: Access of undefined property Vector. FLAR/[source path]
actionscript/org/jp/nyatla/nyartoolkit/as3/core/raster NyARRaster.as
line 99 1264850068974 762
1120: Access of undefined property Vector. FLAR/[source path] org/jp/
nyatla/nyartoolkit/as3/core/raster NyARBinRaster.as line 107
1264850068989 764
1120: Access of undefined property Vector. FLAR/[source path] org/jp/
nyatla/nyartoolkit/as3/core/raster NyARGrayscaleRaster.as line 104
1264850070135 784
1120: Access of undefined property Vector. FLAR/[source path] org/jp/
nyatla/nyartoolkit/as3/core/raster NyARRaster.as line 99 1264850068973
761


This is my code I got

package {
import flash.display.BitmapData;
import flash.display.Sprite;
import flash.events.Event;
import flash.media.Camera;
import flash.media.Video;
import flash.utils.ByteArray;

import org.libspark.flartoolkit.core.FLARCode;
import org.libspark.flartoolkit.core.param.FLARParam;
import
org.libspark.flartoolkit.core.raster.rgb.FLARRgbRaster_BitmapData;
import org.libspark.flartoolkit.core.transmat.FLARTransMatResult;
import org.libspark.flartoolkit.detector.FLARSingleMarkerDetector;
import org.libspark.flartoolkit.pv3d.FLARBaseNode;
import org.libspark.flartoolkit.pv3d.FLARCamera3D;
import org.papervision3d.lights.PointLight3D;
import org.papervision3d.materials.shadematerials.FlatShadeMaterial;
import org.papervision3d.materials.utils.MaterialsList;
import org.papervision3d.objects.primitives.Cube;
import org.papervision3d.render.BasicRenderEngine;
import org.papervision3d.scenes.Scene3D;
import org.papervision3d.view.Viewport3D;

[SWF(width="640", height="480", frameRate="30",
backgroundColor="#FFFFFF")]

public class FLAR extends Sprite
{
[Embed(source="pat1.pat", mimeType="application/octet-stream")]
private var pattern:Class;

[Embed(source="camera_para.dat", mimeType="application/octet-
stream")]
private var params:Class;

private var fparams:FLARParam;
private var mpattern:FLARCode;
private var vid:Video;
private var cam:Camera;
private var bmd:BitmapData;
private var raster:FLARRgbRaster_BitmapData;
private var detector:FLARSingleMarkerDetector;
private var scene:Scene3D;
private var camera:FLARCamera3D;
private var container:FLARBaseNode;
private var vp:Viewport3D;
private var bre:BasicRenderEngine;
private var trans:FLARTransMatResult;
public function FLAR()
{
setupFLAR();
setupCamera();
setupBitmap();
setupPV3D();
addEventListener(Event.ENTER_FRAME, loop);
}
private function setupFLAR():void
{
fparams = new FLARParam();
fparams.loadARParam(new params() as ByteArray);
mpattern = new FLARCode(16, 16);
mpattern.loadARPatt(new pattern());
}

private function setupCamera():void
{
vid = new Video(640, 480);
cam = Camera.getCamera();
cam.setMode(640, 480, 30);
vid.attachCamera(cam);
addChild(vid);
}

private function setupBitmap():void
{
bmd = new BitmapData(640, 480);
bmd.draw(vid);
raster = new FLARRgbRaster_BitmapData(bmd);
detector = new FLARSingleMarkerDetector(fparams, mpattern, 80);
}

private function setupPV3D():void
{
scene = new Scene3D();
camera = new FLARCamera3D(fparams);
container = new FLARBaseNode();
scene.addChild(container);

var pl:PointLight3D = new PointLight3D();
pl.x = 1000;
pl.y = 1000;
pl.z = -1000;

var ml:MaterialsList = new MaterialsList({all: new FlatShadeMaterial
(pl)});

var cube1:Cube = new Cube(ml, 30, 30, 30);
var cube2:Cube = new Cube(ml, 30, 30, 30);
cube2.z = 50;
var cube3:Cube = new Cube(ml, 30, 30, 30);
cube3.z = 100;

container.addChild(cube1);
container.addChild(cube2);
container.addChild(cube3);

bre = new BasicRenderEngine();
trans = new FLARTransMatResult();

vp = new Viewport3D();
addChild(vp);
}

private function loop(e:Event):void
{
bmd.draw(vid);

try
{
if(detector.detectMarkerLite(raster, 80) && detector.getConfidence
() > 0.5)
{
detector.getTransformMatrix(trans);
container.setTransformMatrix(trans);
bre.renderScene(scene, camera, vp);
}
}
catch(e:Error){}
}
}
}


btw I'm a beginner in this stuff so can you tell me what I did wrong
so I understand it

btw thanks in advanced

rocketmcm

unread,
Jan 30, 2010, 6:51:44 PM1/30/10
to FLARToolKit userz
Are you targeting Flash Player 10 in the properties(right click on
folder in Flex, properties>ActionScript Compiler) of your project?

Do you have the code from the jp folder?
In the svn you can find it by following this... libs/NyARToolKitAS3/
src/
Try putting the folder 'jp' in the same location as you have your
FLARToolkit 'org'.

You could try this in the mean time before someone who knows what they
are talking about gets here.

On Jan 30, 3:21 pm, Hysterical <nest...@gmail.com> wrote:
> Hey, I followed a tutorial online,http://www.cosmolearning.com/videos/introduction-to-augmented-reality...

Rokubou

unread,
Jan 31, 2010, 1:40:05 AM1/31/10
to FLARToolKit userz
A current version of FLARToolKit is version 2.5.

The tutorial uses an old version.

FLARToolKit version 0.9.1/1.0.0 can be downloaded on the following
page.
http://www.libspark.org/wiki/saqoosha/FLARToolKit/download

Please download and use version1.0.0.

Hysterical

unread,
Jan 31, 2010, 6:35:03 AM1/31/10
to FLARToolKit userz
Yes I downloaded the jp folder with NyARToolKit

Hysterical

unread,
Jan 31, 2010, 9:06:56 AM1/31/10
to FLARToolKit userz
I tryed now with 1.0.0. version pof FLARToolKit
now I get 4 errors

Severity and Description Path Resource Location Creation Time Id
1046: Type was not found or was not a compile-time constant:

FLARBaseNode. FLAR/src FLAR.as line 42 1264946585193 986


1046: Type was not found or was not a compile-time constant:

FLARCamera3D. FLAR/src FLAR.as line 41 1264946585193 985
1180: Call to a possibly undefined method FLARBaseNode. FLAR/src
FLAR.as line 80 1264946585193 988
1180: Call to a possibly undefined method FLARCamera3D. FLAR/src
FLAR.as line 79 1264946585193 987

On 31 jan, 07:40, Rokubou <roku...@gmail.com> wrote:
> A current version of FLARToolKit is version 2.5.
>
> The tutorial uses an old version.
>
> FLARToolKit version 0.9.1/1.0.0 can be downloaded on the following

> page.http://www.libspark.org/wiki/saqoosha/FLARToolKit/download

Reply all
Reply to author
Forward
0 new messages