Parsers registering as Variable

Software: Away3D 4.x

joda, Newbie
Posted: 01 April 2014 10:11 PM   Total Posts: 3

I realize this may be kind of a silly problem, but I keep running into this error that comes from flash CS5 reading “Parsers” as if it’s a variable. I’ve tried all combinations of imports and I don’t seems to be able to get flash to recognize them properly. Any thoughts?

import away3d.loaders.parsers.Parsers.ALL_BUNDLED;
import away3d.loaders.parsers.Parsers.*;
import away3d.loaders.parsers;

Parsers.enableAllBundled();

ReferenceError: Error #1065: Variable Parsers is not defined.
at internal_fla::MainTimeline/frame1()

Thank you very much.
Jason

   

Avatar
mrpinc, Sr. Member
Posted: 02 April 2014 07:24 PM   Total Posts: 119   [ # 1 ]

The correct import is:

import away3d.loaders.parsers.Parsers;

The following would also work:

away3d.loaders.parsers.*;

 

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X