A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: save my tortured soul!!! 1021

  1. #1
    Senior Member
    Join Date
    Aug 2006
    Posts
    293

    save my tortured soul!!! 1021

    afternoon all!

    really hope some clever script head on here can put me out of my misery.

    i have a flash movie that is part of quite a large project.
    it is the second swf file to load and contains a few different elements that stay throughout the whole "shabang"

    i am using cs5 and cs5.5 to publish. and each time i try i get a
    PHP Code:
    1021duplicate function definition 
    error message (something that i never got in cs4)

    reading up on it and asking a few people it looks like it is being called elsewhere - but it is not in any other class files and is not on any frames within the fla's either!!! even when i try to change function names it gives me the same error (also when i remove the path the class file from main i still get the error!)

    it's driving me f*ckin' nuts!!!!

    does anyone know what is wrong, or where the error is, with the script

    PHP Code:
    package project.main.Popup {
        
        
    import caurina.transitions.Tweener;
        
    import flash.display.MovieClip;

        public class 
    SmallLoader extends MovieClip {
            
            public function 
    SmallLoader (_x:Number_y:Number):void {
                
                
    this._x;
                
    this._y;
                
            }
            
            public function 
    hide ():void {
                
    Tweener.addTween (this, {alpha:0time:.5onComplete:hideComplete});
            }
            
            private function 
    hideComplete ():void {
                
    this.visible false;
            }
        }
        

    i have spent days/weeks trying to work it out - with no joy!

    here's hoping someone can put me right!!!!!

  2. #2
    Senior Member
    Join Date
    Aug 2006
    Posts
    322
    Actionscript Code:
    package project.main.Popup{
        import caurina.transitions.Tweener;
        import flash.display.MovieClip;

        public class SmallLoader extends MovieClip {

            public function SmallLoader(_x:Number, _y:Number):void{

                this.x = _x;
                this.y = _y;

            }
            public function hide():void {
                Tweener.addTween(this, {alpha:0, time:.5, onComplete:hideComplete});
            }
            private function hideComplete():void {
                this.visible = false;
            }
        }
    }

    You don't have any error in this class. This error might comes from other section.



    marlopax

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center