AS2 TweenLite
- Started
- Last post
- 9 Responses
- CyBrainX
It's documented to work but doesn't.
I have the com folder in the same folder as my FLA and on the first frame of the root level I have these lines of code.import com.greensock.*;
import com.greensock.easing.*;Any suggestions?
- CyBrainX0
Adding a classpath in AS2 publish setting didn't work either.
- ifeltdave0
Is this an empty FLA or one you've been messing with?
Are you sure your project is set to AS2 and that you have AS2 versions of the classes?
Are there any other classes in 'com' that are being imported correctly?
- < not sure what the issue is, just trying to help get your juices flowingifeltdave
- mightyj0
if you have easing on other frames this import needs to be placed on those frames from my experience.
- CyBrainX0
It's Flash 8/AS2 with no other classed in com. I checked the TweenLite.as file and it says as2 in the comments.
- PonyBoy0
the only way I could see what you're talking about was to DL the AS2 version for myself and do a quick test...
... I too am having the same problem w/ this.
I've gone and checked all my old AS2 banners where I use greensock... turns out the TweenLite, Max etc etc are all older versions of the class...
... I'm wondering if his latest release of the AS2 class is screwy?... it's not working for me either... ... so don't worry - you're not going nuts. :)
- fyoucher10
That's just how classes work when you're using frame scripts. Whenever you use the class, you need to add that class import to the frame you're adding code to.
"Shouldn't it just be in one place for each swf?" -- you're thinking #include statements. Those you can put anywhere in the FLA and it gets compiled along with everything else.
- CyBrainX0
PonyBoy, see fyoucher1's comment. All i needed to do was put my import statements on the same frame script as my TweenLite commands.