• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

5008: Error...

Explorer ,
Mar 04, 2010 Mar 04, 2010

Copy link to clipboard

Copied

I get this [5008: the name definition 'Menu' does not reflect the location of this file error. Please change the definition's name inside the file or rename the file.] when I publish.

Can anyone tell me what this means? All the files seem to be named correctly.

cheers,

TOPICS
ActionScript

Views

3.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 04, 2010 Mar 04, 2010

it means you're trying to us a class named Menu but Menu.as is in a subdirectory that should be reflected in the package name.

Votes

Translate

Translate
Community Expert ,
Mar 04, 2010 Mar 04, 2010

Copy link to clipboard

Copied

it means you're trying to us a class named Menu but Menu.as is in a subdirectory that should be reflected in the package name.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 04, 2010 Mar 04, 2010

Copy link to clipboard

Copied

ok, it says that the error is on line 1. do you see a problem here?

Export: dropDownMenu.Menu1

package dropDownMenu

    {

    import flash.display.Sprite;

    import flash.events.MouseEvent;

    import flash.net.URLLoader;

    import flash.net.URLRequest;

    import flash.events.Event;

    import flash.display.MovieClip;

    import flash.net.navigateToURL;

    import dropDownMenu.Item;

    import caurina.transitions.*;

    import caurina.transitions.properties.ColorShortcuts;

    ColorShortcuts.init();

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Mar 04, 2010 Mar 04, 2010

Copy link to clipboard

Copied

I think that means you need to put Menu1.as in a folder called "dropDownMenu".

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 04, 2010 Mar 04, 2010

Copy link to clipboard

Copied

That's what I thought as well and so I did this. but still the 5008.


Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 04, 2010 Mar 04, 2010

Copy link to clipboard

Copied

that code's not right.  show the code for that class.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 04, 2010 Mar 04, 2010

Copy link to clipboard

Copied

public class  Menu extends Sprite


    {
        private const boxPadding:Number = 2;
        private var xmlUrl:URLRequest;
        private var xmlLoader:URLLoader;
        private var xml:XML;
        private var componentWidth:Number;
        private var totalItems:Number;
        private var dropHeight:Number;
        public static var imageBoxWidth:Number;
        public static var imageBoxHeight:Number;
        public static var dropSlideDownTime:Number;
        public static var dropTransition:String;
        private var dropEntryWidth:Number;
        private var dropVSpacing:Number;
        private var dropHSpacing:Number;
        public  var dropDown:Sprite;
        public  var dropDownMask:Sprite;
        private var menuIsExtended:Boolean = false;
        private var items:Array;
        private var imHolders:Array;
        private var arrowsArray:Array;
        private var tempIndex:Number;
        private var imHolder:ImageHolder;
        private var labelsHolder:Sprite;
        private var description:descriptionMC;
        private var itemsOnColumn:Number=0;
        private var columns:Number=0;
        private var totalLabels:Number;
        private var countBoxes:Array;
        private var crtPage:Number = 1;
        private var nrPages:uint;
        private var crtDisplayedPage:uint;
        private var nrLabels:Number;
        private var maxWidth:Number;
        private var itemsOnPage:Number;
        private var countBoxesHolder:Sprite;
        private var jumpBox:Number;
        private var thisMenuItem:Number;
        private var dropHideDelay:Number;
        private var dropSlideUpTime:Number;
        private var labelsTransition:String;
        private var labelsSlideTime:Number;
        private var visiblePages:Number;
        private var countBoxesMask:Sprite;
        private var tempPage:Number = 0;
        private var leftBox:countBoxMC;
        private var rightBox:countBoxMC;
        private var ShapeHeight:Number;
        private var reachedRightEnd:Boolean=false;
        private var reachedLeftEnd:Boolean=false;
        private var leftFlag:Boolean=false;
        private var rightFlag:Boolean=false;
        private var labelClick:Boolean=false;
        private var rollOut:Boolean = false;
        private var menuClick:Boolean = true;

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Mar 04, 2010 Mar 04, 2010

Copy link to clipboard

Copied

Isn't the compiler looking for the Menu1 class?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 04, 2010 Mar 04, 2010

Copy link to clipboard

Copied

LATEST

sorry it is supposed to be

public class  Menu1 extends Sprite

    {

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines