Skip to main content
Known Participant
September 22, 2019
Question

trouble pointing animate to class library

  • September 22, 2019
  • 12 replies
  • 1561 views

I am following a tutorial from a book. This time instaead of using flash builder the author is using Flash Pro. I use Animate so thought this would be easy book to follow

 

According to instructions i should point animate at a special class library called com/friendsofed/utils/:StatusBox

 

I know that the files are there and the folder structure is correct. 

I go to file actionscriptsettings and in the source path I navigate to the com folder.

When I compile I get the message: Library path (FlexSDK)/framework/libs/flex.swc does not reslve to a valid file.

 

Am I going wrong in my advanced actionscript settings, setting the source path wrong.

Any help is greatly appreciated. 

    This topic has been closed for replies.

    12 replies

    JoãoCésar17023019
    Community Expert
    Community Expert
    September 23, 2019

    But do you have a path to the Flex SDK set in the Library tab?

    Known Participant
    September 23, 2019

    Here is my library window im not sure what is going on here

     

     

     

     

     

    JoãoCésar17023019
    Community Expert
    Community Expert
    September 23, 2019

    Hi.

     

    The common approach is to have a root folder for all of your code called something like src and then import your AS files starting from the files/folders within this root folder.


    So, if all of your code is inside this root folder, your import statement would be:

    import com.friendsofed.utils.StatusBox;

     

    But according to the error you mentioned, it seems the compiler is complaining about a Flex library that you don't need or shouldn't need.

    Try removing it from the libraries paths.


    Regards,
    JC

    Known Participant
    September 23, 2019

    Thanks for the reply JoãoCésar, here is exactly what is happening.

     

    The first time i run the fla I get :

    Warning: Library path "$(FlexSDK)/frameworks/libs/flex.swc" does not resolve to a valid file.


    C:\Users\Dell\Desktop\FlashWork\AdvancedGameDesign\HelloWorld\src\HelloWorld.as, Line 11, Column 29 1046: Type was not found or was not a compile-time constant: StatusBox.


    C:\Users\Dell\Desktop\FlashWork\AdvancedGameDesign\HelloWorld\src\HelloWorld.as, Line 15, Column 27 1180: Call to a possibly undefined method StatusBox.


    C:\Users\Dell\Desktop\FlashWork\AdvancedGameDesign\HelloWorld\src\HelloWorld.as, Line 4, Column 33 1172: Definition com.friendsofed.utils:StatusBox could not be found.

     

    I then go into Animate>actionscript3 settings and point the source to the com folder on my harddrive.

     

    After setting the source path I now only get one error:

    Warning: Library path "$(FlexSDK)/frameworks/libs/flex.swc" does not resolve to a valid file.