Tuesday, July 3, 2012

[Action Script] import.flash.events problem June,2012

ActionScript Code: package com.pageevents{import flash.events.*;    public class PageEvent extends Event {        public static const HOMEPG_COMPLETE:String = "homePageReady!";        public var msgStr:String = "none";        public function PageEvent (type:String,bubbles:Boolean = false,cancelable:Boolean = false,msgStr:String = "none") {            super(type, bubbles, cancelable);            this.msgStr = msgStr;        }        public override function clone( ):Event {            return new PageEvent(type, bubbles, cancelable, msgStr);        }        public override function toString( ):String{            return formatToString("PageEvent", "type", "bubbles","cancelable", "eventPhase", "msgStr");        }    }}

At the moment, this is my code, my problem is: I keep getting this error
Quote: K:\untitled folder\PageEvent.as, Line 1 5001: The name of package 'PageEvent' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. K:\untitled folder\PageEvent.as the file is named PageEvent.as, but why does it not work?

Help ASAP please.
import.flash.events problem

Related Post



0 comments: