Flash :: IDE - Cs3 Compile Error 1017 - Package Namespace?
Sep 27, 2007
Word to the Flash Genies-- Heres my wish that hopefully someone else is struggling with an enormously mind-boggling bug in flash cs3-- when I try to create a public class that extends any of the native flash display objects, and I put this in its own package, even after specifically importing the specific class OR the package wildcard .* the fla that I'm compiling returns error 1017-- Base Class Definition not found. The fla is set to the correct classpath. This situation slipped from 'minor annoyance' to 'mind boggling' after I moved the directory to a different pc with cs3, reset the local classpath and it compiled perfectly. So then I moved the directory to a mac, running flex builder, and made a tester file to use the class, which compiled perfectly.
For some wierd reason, this particular computer cannot compile, even though nothing had changed in the actual class. Maybe it is important to note that this machine is running Vista (and perhaps should not be!)? Maybe it is important to note that the package is part of an SVN directory? Maybe it is important to note that after re-saving the same class file, changing only the class name (from BitmapSprite to BSprite) enabled it to compile on this machine, even though both the mac and other pc (running windows XP) could compile the class as BitmapSprite. I'm not sure if the name change or just re-saving allowed it to compile--but maybe it's significant that the new named instance was not committed to svn.
View 3 Replies
Similar Posts:
Sep 19, 2010
I'm getting this error when compiling a newly created application with SDK 4.1:1017: The definition of base class Application was not found.I can click on the SDK library path in the Flash Builder Explorer and navigate to the spark->components->Application object.
View 1 Replies
Dec 19, 2011
I have an actionscript file,it has a package name,it locate C:demo directory,like follows:
package demo{
import flash.display.*;
public class ABC extends Sprite{[code]............
Then I compile above code like following command,but it raise following error:
C:>mxmlc demoABC.as
Loading configuration file C:sdkframeworksflex-config.xml
C:demoABC.as: Error: A file found in a source-path must have the same package structure '', as the definition's package, 'demo'.Where is wrong above command?
View 1 Replies
Feb 1, 2011
I have been getting this error004: Namespace was not found or is not a compile-time constant error and it just does not seem to go away.I am using Coordinate geometry principles to find out the intersections points. I am storing the slopes of the lines and intersection points as arrays. This is the code I am using.
package {
import flash.display.Sprite;
public class AngryBubble extends Sprite {
[code]......
View 2 Replies
May 29, 2010
i have couple of classes that i use in my projects.they have the package name gkAPI and was in the folder D:gkAPI but i had to reinstall windows and also flash cs4 and also the drive letter changed so the class files are in E:gkAPI i added the line "E:gkAPI " in source files in preferences but the project which used these classes fail to compile. it worked earlier (so there cant be any typing mistake") but now saying the classes specified cannot be found
View 0 Replies
Jun 3, 2011
I am receiving the following compile time error when attempting to extend the SimpleButton class in AS3:
1017: the definition of base class SimpleButton was not found
and the code:
package com.shakti.gameState{
import flash.display.SimpleButton.SimpleButton;
public class buttonTile extends SimpleButton {
public var id:int;
[Code]...
View 1 Replies
Jun 7, 2010
I'm using Flash Develop to build an as3 application using the Flex compiler. In the constructor of a particular class I have written the following code
Code:
//constructor
public function Test(par1:int, arr:/*int*/Array = [1, 2]){ <----- compiler shows error here
[code].....
View 2 Replies
Sep 29, 2011
I have a Flash builder project that I am migrating from SDK 4.1.0 to 4.5.1. This has been a relatively easy change (we are using maven for our builds, and were able to get a successful build after updating to the 4.5.1 dependencies).
As said, the project builds fine with maven and flexmojos. The issue is when opening the project in flash builder. The maven project is imported and then set as a flex project by running the maven flexmojos:flexbuilder build command.
The issue lies when certain mx components that are specified with the s: namespace are no longer accepted by the IDE, and result in an error. For example, for the following to compile:
<s:states>
<s:State name="normal" />
<s:State name="disabled" />
</s:states>
s:State must be changed to the mx namespace:
<s:states>
<mx:State name="normal" />
<mx:State name="disabled" />
</s:states>
This is just one example, and only happens for certain spark-namespaced components. Why is this? Why does this compile OK with Flex SDK 4.1.0 but not with Flex SDK 4.5.1, and what is the cause of the necessary namespace change?
View 1 Replies
Feb 9, 2010
Here's my code so far:
package {
import flash.display.*;
import flash.events.*;
public class MVball extends MovieClip {
public var mass=0;
public var yvel=0;
public var xvel=0;
[Code]...
View 2 Replies
Aug 26, 2009
I am a complete nuff nuff when it comes to AS3 so bare with me. I had a website skeleton made by a scripter. He made lots of AS files that call to each other with a few movie clips that are populated via the As files. This worked fine for me, I could update the text and image files no dramas and did so and got the website up and running.
A couple of weeks later had to update the files to add a new section adn text and images. Again all went swimmingly. Fast forward to today. Went to update the files and added a new section as per all the other ones. Everything marries up in relation to naming conventions, placement of files within folders et c but suddenly now I'm getting all these errors. 1017: The definition of base class TextItemTemplate was not found.
View 5 Replies
Aug 26, 2010
I've been trying to edit my sister's Flash website, which was developed by someone else, but I'm a newbie with ActionScript so am having a few difficulties. Every time I try to publish a file, I get this error:
1017: The definition of base class UIForm was not found.
I found documentation online for a similar error - regarding UIComponent - so I tried creating a new source path under ActionScript 3.0 as suggested but no luck. I'm having difficulty finding documentation online specifically for UIForm.I tried searching for the location of UIForm under program files but couldn't find it. Can anyone point me in the right direction? I'm on CS4.
View 7 Replies
Dec 11, 2010
i am trying to get tuio running in flash an i am getting this errorLine 10 1044: Interface method newFrame in namespace org.tuio:ITuioListener not implemented by class TuioExampleDrawingCursor.i'm not sure what to do about fixing it as i'm relearning flash after an extended hiatus. here is the code its used in:
package {
import org.tuio.*;
import org.tuio.osc.*;
[code].....
View 1 Replies
Jul 11, 2009
How do I configure an ActionScript Project in Flex Builder 3 Pro so that I can compile an ActionScript class that is part of a package into a swf. For example, the class that I want to compile to swf is:
package utils {
import flash.display.Sprite;
public class Tool extends Sprite {[code]....
RootASProject is being produced by one developer, subASProject1 and subSubASProject1a by another developer, utils.Tool by yet another person.This directory structure enables each person to independently build modules and other resources, and quickly test the entire product.It is also important to note that these resources are loaded at runtime.So, class definitions must be fully qualified. For example, Tool.swf contains/defines "utils.Tool" not "Tool".
Developing with just the Flash IDE, this directory structure is not a problem. We create a Tool.fla and assign utils.Tool as it's Document Class then in the Flash IDE's Publish Setting, we set the class path to be NOT the current directory (.), but instead the RootASProject directory. If it were set to the current directory, the error would be: A file found in a source-path must have the same package structure '', as the definition's package, 'utils'. ToolTool.as. We're familiar with this error message and so I recognize that the Flex IDE is by default looking in the current directory for a subfolder, utils, to match the packaged class.
In the Flex IDE, I can add the utils parent, RootASProject, as an additional source path, but I do not know how to stop flex from looking in the current directory first.Using an ant build file, I can set the source path to RootASProject and the mxmlc is able to build utils/Tool.swf just fine. Apparently, it uses just the source paths passed to it, and does not automatically look for utils in the current directory.
View 2 Replies
Jun 16, 2010
I have wrote a function like ,
private function addSelectedFunc():void
{
/**
[code].....
View 1 Replies
Jan 5, 2012
I am a COMPLETE newb at actionscript. I have been experimenting with variables; I've made some assumptions based on programming with other languages.When I search for errors,it says my script is fine, but when I publish preview, it plays and then gives me errors.I keep getting error 1152: A conflict exists with inherited definition flash.displayisplayObject.x in namespace public. and1152: A conflict exists with inherited definition flash.displayisplayObject.y in namespace public.
Here is my script for frame1
stop();
import flash.events.MouseEvent;
var x:int;
var y:int;
[code]....
View 2 Replies
Feb 22, 2010
This appeared as I was trying to use a mouseEvent to move an object.I placed the variables for mouseX and mouseY in the public class. I did the same for direction X and Y but there was no error message for those.
View 1 Replies
Oct 13, 2009
This is with Flexbuilder 3.2, Eclipse 3.3.2.I am moving my development environment to a new machine. Actionscript classes that compiled in the old environment now get a compile error:
A file found in a source-path must have an externally visible definition. If a definition in the file is meant to be externally visible, please put the definition in a package.I do declare the package in these classes - I think failure to declare the package is the usual reason for this error.To add to the mystery, many classes in this project compile without errors.
View 1 Replies
Feb 8, 2012
I'm trying to encapsulate a package so that classes, properties, and methods that have no meaning outside of the project aren't accessible. They do, however, have to be accessible by other classes in the project, so internal is insufficient - the internal properties of parent.foo.AClass can't be accessed byparent.bar.AnotherClass. I was under the impression that namespaces could solve this problem, so I tried this:
//Class in top level package, where we make our namespaces
package parent {
public namespace myproject;
[code].....
View 1 Replies
Dec 19, 2009
i am creating a web site and when i compiled my flash code so it writing that
TypeError: Error #1009: Cannot access
a property or method of a null object
reference. at
[code]....
View 2 Replies
Aug 29, 2010
I'm getting an error on Flash that I've never run in to before.
5001: The name of package 'Document'does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. C:Work2009-2010FlashTestsDocument.as
The fla is called TestEvents1... and that's all the info I think is related.What's happening here?
View 1 Replies
Feb 15, 2011
I am using Flash CS5 and am getting a very odd error when I compile. All my classes are in the package com.es3.as2. In the first frame of my movie, I have the following code:
import com.es3.as2.Shell;
I have my classpath set correctly. When I compile, I get this error:
, Line 1 There is no class or package
with the name 'com.es3.ProgressBar'
found in package 'com.es3'.
This is odd because nowhere do I refer to a "com.es3" package. It's always "com.es3.as2".If I remove the import line, the movie compiles with no errors (but without the initialization code, it doesn't run correctly).
View 1 Replies
Jul 21, 2010
I have a problem and I don't know where to start debugging it.I have some buttons with rollovers and I'm using strings to try and automate localization.All the buttons have two frame with the same text in each frame, but with a different color applied. I use the same ID for each frame as the translations will be the same.When I compile the movie I get this error
butIntroHow, Line 151086: Syntax error: expecting semicolon before rightparen.
from the button. I haven't any action script attached to the button, so I presume at compile time some code is added to deal with localization.
View 1 Replies
Sep 30, 2011
I was looking at a game engine code and I tried to reproduce myself but I got a compile error.Main.as
package {
import flash.display.Sprite;
public class Main extends Sprite
[code].....
View 5 Replies
Jun 3, 2009
Is mx.core.* something in the flex sdk / framework? I am trying to get the unserializer from [URL] to work with flash CS4, and I am getting the compiler error: 1004: Namespace was not found or is not a compile-time constant. The lines called out in the package are: use namespace mx_internal and mx_internal static var c:uint;
I don't know the first thing about namespaces, but does anyone know how to get this package/class working in CS4 AS3? It might be something simple I am missing. I have attached the .as package file (uploaded as a txt file) if anyone wants a look... I am having to get a lot of lists from a mySQL database and it is becoming a real pain urlencoding them all manually. If I could just urlencode(serialize($result)); in php and send that file to AS3 to be decode it would be so much simpler.
View 4 Replies
Sep 29, 2010
I am currently trying to move one of my AS2 projects over to as3 for a school project. The problem I am having is that my as2 project declares variables on the keyframe that are used on that frame only, the following frames declare the same variables for their own operations.. IE (Score = 0). The problem with as3 is that I am getting namespace errors and how to stop it. this is a puzzle game created originally in as2.. for the first level of the game the keyframe has this code on it to declare the variables to be used for the first level ONLY
[COde]...
View 8 Replies
May 17, 2011
I'm packiging AIR app both on Mac and on Windows. On Mac everything goes well, but on Windows I get an error.
Myapp-app.xml: error 102: Invalid namespace [URL]
I have latest SDK's installed on both machines, although Flash Builder is newer on Mac. Does the Flash Builder version even matter?
View 1 Replies
Apr 21, 2009
Keep getting this: 1151: A conflict exists with definition my_flvPb in namespace internal.
The AS is:
import mx.video.FLVPlayback;
var my_flvPb:FLVPlayback;
my_flvPb.autoPlay = false;
my_button.label = "Seek to point2";
[Code]...
View 1 Replies
Oct 27, 2011
I am developing an application where the user chooses the game he wants to play. In my main timeline I have a different layer for each game(movie clip). Movie clips - games - have some common function/variable names with totally different implementation.
When I try to compile I get the :
Code:
...1151: A conflict exists with definition iArea in namespace internal.
I unchecked 'Automatically declare stage instances' option on stage settings.There are 30 errors of this kind and there will be 6-7 games so coming up with different names will be a real pain.
View 3 Replies
Mar 29, 2011
I seem to have a problem here with my AS3 code.Im just trying out AS3 for pratically the first time and I keep runing into errors. Usually I tinker about and seem to resolve them, but this one stumps me, since it "should" work.
package {
import flash.display.*;
import flash.events.*;
[code].....
View 2 Replies
Oct 31, 2011
So, I'm making a game and when I test my class into a file I get four errors of the same type '1046: Type was not found or was not a compile-time constant: Stage and TextField'.
[Code]...
View 2 Replies