Flex :: Flash - Compile Error 1017?

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


Similar Posts:


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

ActionScript 3.0 :: Error 1017 And 5000 After Reinstalling Flash

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

Actionscript 3 :: Error 1017 When Extending SimpleButton Class In Flash

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

ActionScript 3.0 :: Flash - Compile Error Parameter Initializer Unknown Or Is Not A Compile-time Constant?

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

ActionScript 3.0 :: Error 1017: The Definition Of Base Class TextItemTemplate Was Not Found

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

ActionScript 3.0 :: Get This Error : 1017 : The Definition Of Base Class UIForm Was Not Found?

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

Flex :: AS3 Flash Compile - Exclude Functions From Compile?

Jun 7, 2011

There is probably no way for this but does anyone know a method of excluding certain functions from a build by use of a meta tag and or compiler option?I want to expose some functions for testing but not have them bloat the application on production. I could create separate testing classes and test for a complier directive or option and only load them if necessary but I like the idea of having the test function on the actual object (in the class).

View 2 Replies

Flex :: Get This Error : 1046: Type Was Not Found Or Was Not A Compile-time Constant?

May 14, 2010

I'm trying to use the Flex 4 SDK's mx.rpc package in a Flash application.I imported Flex's rpc.swc (AdobeAdobe Flash Builder 4sdks4.0.0frameworkslibs pc.swc) into my project by adding it to the list in Flash's "Publish Settings/Flash/ActionScrip 3.0 Settings/Library Path". It seems like I have access to the classes, however when I compile I get this error:

1046: Type was not found or was not a compile-time constant: [mx.rpc]::IResponder.

There's no location or line for the error either.

View 2 Replies

Flex :: Get Informative Compile Error Messages When Using Flexmojos-maven-plugin?

Jun 10, 2010

I'am using flexmojos-maven-plugin to build my Flex module. So on the compile phase I'm getting org.apache.maven.plugin.MojoExecutionException: Error compiling!with no information on where (at what source file) the error happens and what is nature of the compile error.

View 2 Replies

Compilation :: Flash Compile Error?

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

Professional :: Flash Localization Compile Error?

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

Flash :: Constructor Not Working, Compile Error?

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

Error "Could Not Resolve <s:SolidColorStroke>" - Compile A Flex 4 SWC With Ant?

Nov 1, 2010

I'm trying to compile a component using ant and keep getting this error message throughout the component .

ButtonSkin.mxml(179): Error: Could not resolve <s:SolidColorStroke> to a component implementation.
ButtonSkin.mxml(210): Error: Could not resolve <s:GradientEntry> to a component implementation.

It compiles fine in FlashBuilder 4. Here is the contents of the build.xml:

[Code]...

View 2 Replies

Flash :: Error: 1046: Type Was Not Found Or Was Not A Compile-time Constant: Tween?

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

Flash :: AS3: ERROR 1046: Type Was Not Found Or Was Not A Compile-time Constant: Stage And TextField

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

Flash :: Compile .AS Files Through Flex 4

Apr 22, 2011

I've got the environment variables in Win7 set-up so that I can compile .as files through prompt.But it shows some warning about not having FactoryClass, so I can't compile using shared libraries. How can I compile the file with classes and libraries imported?I'm trying to compile with mxmlc file.as

View 1 Replies

ActionScript 3.0 :: Compile My Fla Without Flash And Flex Software?

Aug 10, 2009

I am using ubunto Linux Operating System. I do not have any flash/flex/adob air . I have fla and swf file with document class and related as files. Now I need to compile fla , So, that my changable as file's code could give effect. Is there any idea to comple flas without flash/flex/adobe air software ?

View 1 Replies

Flash :: Compile A Swc With A Class Written In Flex

Jun 17, 2009

I want to use some assets ( buttons, etc. ) I'm creating in flash in a flex actionscript project. Since all my assets are bellow 10K, I'm not planning to load a swf ,wait until it's loaded and create the interface. I want to use a swc and just instance the clips I need. Also, I want my Button class to have some extra properties, and this is where the problem occurs.

If in the Linkage Properties in the Flash IDE I add a reference to a custom Button Class and trace a child of the Button MovieClip, I get the right trace. If then I create a Button, in the Main class in Flex, using the generated swc file and trace the same child of the Button MovieClip, I get null. Why is that ? Is there anyway to get around this ? I've considered using the Flex Component Kit, but since I'm working on a simple actionscript project and I'm not using the Flex framework, I see no point in using the Component Kit at this point.

View 2 Replies

Flex :: Compile Theme In Flash Builder 4

Jan 22, 2011

How to compile Flex theme SWC from file.css and additional skin classes in Flash Builder 4?

I've tried creating simple Flex Library project but it does not seem to use CSS file because resulting SWC does not work as theme.

View 1 Replies

Flash :: Professional - 5.5 Compile Error "1172: Definition Fl.text:TCMText Could Not Be Found"

May 6, 2011

Just tried compiling a iOS app I developed in Flash 5 using Flash 5.5. Getting a bunch of errors related to TCM. Here's a sampling of the errors:

[Code]...

View 6 Replies

IDE :: Compile Error From Cs3 File To Cs4?

Jan 15, 2009

I am trying to load a file into flash cs4 that was created in flash cs3. The file is from a site that explains how to make a slideshow. When I load it I get all sorts of errors. I tried other files and got the same problem. One error said that the variable arguments were wrong

View 1 Replies

ActionScript 3.0 :: Error 1009 When Compile To Air 2.6?

Aug 29, 2011

I have three movieclips, imported as part of a FLA file  from inDesign. There are 3 frames in the movie labeled, page_one, page_two, and page_three There is one movieclip on each frame labeled as follows:

page_one had movieclip spread_one
page_two had movieclip spread_two
page_three had movieclip spread_three
 
there is actionscript on each frame:
 
on frame 1, (label page_one):stop();
spread_one.addEventListener(MouseEvent.CLICK, moveme1);function moveme1(e:MouseEvent):void{             gotoAndStop("page_two");        }
 
on frame 2 (label page_two):
 
stop();
spread_two.addEventListener(MouseEvent.CLICK, moveme2); function moveme2(e:MouseEvent):void{               gotoAndStop("page_three");         }
 
on frame 3 (label page_three):
 
stop();
spread_three.addEventListener(MouseEvent.CLICK, moveme3); function moveme3(e:MouseEvent):void{               gotoAndStop("page_one");         }
 
when I compile in flash, it works.when I compile in air 2.6 I get this error after I click on frame 3 (page_three), in spread_three:
 
TypeError: Error #1009: Cannot access a property or method of a null object reference.    at objecthood_fla::MainTimeline/frame1()[objecthood_fla.MainTimeline::fr ame1:5]    at flash.display::MovieClip/gotoAndStop()    at objecthood_fla::MainTimeline/moveme3()[objecthood_fla.MainTimeline::f rame3:8]

[code]....
 
I created another 3 page test spread in inDesign, with only a rectangle on each page and exported as FLA.I used the same code as above and it compiled fine in both air and flash.

View 5 Replies

IDE :: Compiler Won't Compile - No Error/warning

Feb 26, 2009

I have a project with 430+ as3 classes, which we have been developing for a year.

For about a month now, sometimes the FLA won't compile, and no error or warning will be displayed. When I publish the movie, it takes about 60 seconds to compile, but when it's finished, the swf file produced it's only 1,1KB (instead of 850k which should normally be) and I get absolutely no Compiler Error or warning.

Sometimes, if I delete the ASO files and recompile, it works fine. Other times, this won't do it and I would have to quit Flash and open the project again. I have "Compress movie" and "Reduce file size and increase performance" set to false for nearly 2 months now, because I read somewhere that Flash can have trouble with projects using hundreds of classes (this actually helped).

Last week however, I cannot get it to work. No matter what I do, it won't compile. I try to delete a whole bunch of code from the Main class, get it to compile fine and then add a few lines each time, only to see that any random line of code can make it stop compiling again.

View 1 Replies

Actionscript 3 :: Adobe Flash CS5 "Error 1046: Type Wasn't Found Or Was Not A Compile-time Constant: MouseEvent"

Mar 11, 2012

I'm creating on Flash CS5 an animation of navigation buttons. On AS3 I have this code:

[Code]....

When compiling there are 3 error messages which say the same: "Error 1046: Type wasn't found or was not a compile-time constant: MouseEvent." (Look out, it refers to those where are written on the 'function' part. Not to the 'addEventListener' ones)

I tried out with AS2.0 but it's impossible to be read. Now in the first line you can read "stop();", this is an instruction to stop the animation (slide) of the navigation buttons once appeared on Stage. My teacher has the same code (and the same version of Flash CS5 as mine) and it can run with no problems. Supposedly this is a basic code which can be compiled very well. This is not my case, though. Is there something wrong with my code? Do I have write on more specific codes to be run?

View 1 Replies

ActionScript :: Why Flash Cannot Compile AS Files Generated From Flex Directly

May 5, 2010

What are main diferens between flash ActionScript and Flex actionscript? Why Flash can not compile AS files generated from Flex (with keep-as) directly?I want to compile generated from MXML .AS files using Flash CS5... But it appeares to me I can not... Why?

View 2 Replies

Flash :: Flex: Type Was Not Found Or Was Not A Compile-time Constant?

Aug 6, 2010

I am trying to build a pure as3 project in flex and I got the following error:

type was not found or was not a compile-time constant: Button

type was not found or was not a compile-time constant: TextField

[Code]....

View 3 Replies

Flex :: Force Flash Builder 4 To Compile All Source Files?

Feb 9, 2011

According to the answers to this question here, the reason why I'm not seeing errors as I work in Flash Builder is that FB is "optimizing" them out because they aren't referenced at any point in the code execution. Is there an option to force Flash Builder to compile all files regardless of whether they're used in the software?

View 2 Replies

ActionScript 3.0 :: Getting A 1046 Compile Error For Using A Vector In FP9?

Dec 1, 2009

I started a project in Flash CS4 using Actionscript 3.0 and targeting Flash Player 10. Later, I was told it had to target FP9, so I knocked it down, and then started receiving this error:

1046: Type was not found or was not a compile-time constant: Vector.

View 6 Replies

ActionScript 3.0 :: Compile Error Type Not Found

Mar 16, 2010

I have an actionscript file with a class defined, and I am trying to define an object for that class in another actionscript file but I keep getting a compile error that says type not found.[code]

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved