Axorr Posted November 18, 2009 Share Posted November 18, 2009 I am attempting a short little tut to get a little taste of TweenMax. I am unable to get the import functions to work. The original tutorial code was; //Import TweenMax import gs.*; import gs.plugins.*; TweenPlugin.activate([blurFilterPlugin]); Reading around these fine forums, I found that the newer, correct way to make this call is now; //Import TweenMax import com.greensock.*; import com.greensock.plugins.*; TweenPlugin.activate([blurFilterPlugin]); However, when using the code above, I get the following compiler errors. 1172: Definition com.greensock could not be found. 1172: Definition com.greensock.plugins could not be found. 1172: Definition com.greensock could not be found. 1172: Definition com.greensock.plugins could not be found. 1120: Access of undefined property TweenMax. 1120: Access of undefined property TweenPlugin. 1120: Access of undefined property BlurFilterPlugin. 1120: Access of undefined property TweenMax. Any thoughts? This is with AS3. Link to comment Share on other sites More sharing options...
GreenSock Posted November 18, 2009 Share Posted November 18, 2009 Did you download the appropriate code from the web site and make sure the "com" folder is in the same folder as your FLA? click the big "Download AS3" button at http://blog.greensock.com/get-started-tweening/? I'd recommend it Link to comment Share on other sites More sharing options...
Axorr Posted November 18, 2009 Author Share Posted November 18, 2009 A-yup! The com directory (and all the goodies in it) is in the same root directory as the .fla I am playing with. I DL'd the AS3 version 11 code. I have gone through the getting started page, that's where I first found the errant code in the tutorial I was attempting! Link to comment Share on other sites More sharing options...
GreenSock Posted November 18, 2009 Share Posted November 18, 2009 Please zip the whole directory with your FLA and post it here. There must be something else going on. I wonder if you have a corrupt Flash install or something. Link to comment Share on other sites More sharing options...
FD286 Posted January 13, 2011 Share Posted January 13, 2011 I had the same errors you were getting, the problem was that I was putting "greensock" folder directly into my working directory (skipping the com folder). Flash develop would automatically rename the classes, messing things up. When I included the "com" directory it worked perfectly! Link to comment Share on other sites More sharing options...
dduron Posted October 24, 2011 Share Posted October 24, 2011 Try this Download the latest Greensock .zip file. Save it to a central place on your hard drive. Go into your Publish Settings > ActionScript settings Set the Source path and the Library path This worked for me. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now