Jump to content
Search Community

Can I use LoaderMAX in Flashdevelop?

joon test
Moderator Tag

Recommended Posts

Hi,

 

I'm making a custom web media player and want to use LoaderMAX. We are using FlashDevelop.

Are there any demoes or examples of LoaderMAX in just code? (no .FLA files)

 

I put the Greensock library in my project, but have some strange errors:

"Type was not found or was not a compile-time constant", even though the files, classpaths and imports are all correct.

 

Any help is much appreciated.

Link to comment
Share on other sites

Hi,

 

Sorry to hear you are having problems.

 

I haven't heard of anyone having problems with LoaderMax in a pure-AS3 project. There are certainly no dependencies on using Flash Pro or having a .fla file. Many folks around here use a number of different AS3 editors.

 

Are you using the swc or AS3 files? Can you use TweenLite to tween something? Do you know exactly what object is throwing the error? Are you referencing a LoaderEvent but not importing it like so:

 

import com.greensock.events.LoaderEvent;

 

That's all I can think of at the moment.

Perhaps if you post your code something will jump out at us.

 

-carl

Link to comment
Share on other sites

Thanks for your reply,

I think I found out what I was doing wrong in FlashDevelop.

It's very basic, but I couldn't find it anywhere so hopefully it'll help others.

 

If you are getting : Type was not found or was not a compile-time constant

 

In my case, I had copied the com/greensock... folders in my AS3 project folder. I then added them in the classpath. Everything seems to work until you compile. BUT, you need to move the "com" folder into a subfolder called "greensock".

 

So you'll have:

C:\...\YourAS3Proj\greensock\com\greensock\...

And add it to your classpath.

 

This worked for me.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...