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,
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.
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.
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();
Copy link to clipboard
Copied
I think that means you need to put Menu1.as in a folder called "dropDownMenu".
Copy link to clipboard
Copied
That's what I thought as well and so I did this. but still the 5008.
Copy link to clipboard
Copied
that code's not right. show the code for that class.
Copy link to clipboard
Copied
public class Menu extends Sprite
Copy link to clipboard
Copied
Isn't the compiler looking for the Menu1 class?
Copy link to clipboard
Copied
sorry it is supposed to be
public class Menu1 extends Sprite
{