Skip navigation
Currently Being Moderated

Sourcepath for Tweener Error 5001

May 2, 2012 10:07 PM

Tags: #air #flash #script #action #movieclip #caurina

I'm having a very frustrating time with getting my directory for the caurina class of tweens to work into flash pro. Havent a clue whats wrong (very very new to coding). Put in the code like this:


import caurina.transitions.*;



Tweener.addtween( blackblock, {x:257, y:435, time:1});


error 5001 states "The name of package caurina.transitions does not reflect the location of this file. Please change the package defintion's inside the file  or move the file C:/where my file is etc


I looked for spelling errors, made sure I put the right location in the AS settings, but just cant seem to get this right. The code has no syntax errors, so Im not sure if its that. Cant seem to figure out what this defintino of class is.


please help!








This is a test file right now, I plan on inserting this as custom code for an on cue point event. So thats why its just that one code im playing with right now.

  • Currently Being Moderated
    May 3, 2012 5:33 AM   in reply to NOAM1991

    Where did you place the caurina class files?  I recommend you take a look at the following tutorial.  It might be helpful to you as far as learning a way to deal with setting up class files acquired from external sources/people.



    There is a bit of info you might not want/need telling you how to obtain class files from different sources, so after you see the initial setup, if you skip to around 13:20 into the video the rest of the setup picks up there.  Personally, I do not use the desktop for anything, my only point being, don't feel compelled to follow the tutorial verbatim.

    Mark as:
  • Currently Being Moderated
    May 3, 2012 9:45 AM   in reply to NOAM1991

    Describe what you did relative to what the video indicated you need to do as far as where you put the class file - show a screenshot of the folder structure and how you set up the classpath to be able to find the directory for the class.

    Mark as:
  • Currently Being Moderated
    May 3, 2012 4:35 PM   in reply to NOAM1991

    I can't really follow what you say you did/tried, though it doesn't sound like you followed the tutorial.  If you plant the caurina folder that you downladed directly onto the desktop (which your last two images seem to suggest), and in your Flash file you want to use that import line...


    import caurina.transitions.*;


    Then in that second to last image you show, the path specification should have ended at Desktop, meaning the entire path should only be




    assuming that is a valid path for your machine.


    but, again, that doesn't follow the tutorial in the sense that you should create a folder for your classes to be stored in... I would avoid using the desktop as a class repository.  You make it sound like you are separating the folders within the caurina folder from it.  They should remain in the caurina folder if you plan to specify the import to use "caurina" (which you should... helps you to remember what it is)

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points