Jump to content
Search Community

hamutal

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by hamutal

  1. First of all- thanks for replying :)

     

    As far as I can see everything is as you say...

     

     

     

    I'll write the folders layout in case I'm missing something:

     

    Prog/

       project.fla

       project.swf

       com/

          greensock/

             TweenLite.as

             ...ect.

       UI/

          file1.as

          file2.as

          ...ect.

       Buttons/

          file1.as

          file2.as

          ...ect.

     

    Also- it doesn't find it in the import "auto fill" (it shows only the Buttons and UI folders...) 

     

    And all the files are AS3.

  2. Hello!

    I got this error 5001: "The name of package 'com.greensock' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file."

     

    My code is:

     

    package Buttons{
     
    import flash.display.Sprite;
    import flash.events.*;
    import com.greensock.*;
    import com.greensock.easing.*;
     
     
    public class OpenMenuButton extends Sprite {
     
    function OpenMenuButton () {
     
    this.addEventListener (MouseEvent.MOUSE_OVER,RolledOver);
     
    }
     
    private function RolledOver (mouseOv:MouseEvent):void {
    TweenLite.to(this, 1, {scaleX:1.5, scaleY:1.5, ease:Back.easeOut});
     
    }
     
    I put them in the same folder.
     
    Am I'm missing something?

     

    thanks! 

     

     

×
×
  • Create New...