Flex :: Maven - Upgrade To SDK 4.5.1 From 4.1.0 Causes Namespace Compile Errors For Certain Mx Components?

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


Similar Posts:


Flex :: Compile Swf With Maven?

Jan 5, 2012

I have several maven modules (each with a pom)I am looking to compile my swf without first compiling each module into a swc, like i am soing now. I suppose that should speed up the compilation process.

View 1 Replies

Flex :: Compile .FLA Files Using Maven

Nov 16, 2010

I am using flexmojos to build my flex projects. I also have a flash project containing .fla files which needs to compiled into swf have I thought was to use a command line script to do it and force maven to call the script. Something like this

View 1 Replies

Flex :: Maven - Mojos Compile Fxg?

Jun 21, 2011

Does anyone have a sample pom.xml or a tip of how to get flex-mojos to compile FXG files?We use some FXG images in our project by adding them in mxml like:The image ns refers to a package containing the FXG image files.In Eclispe this works fine.But when flex-mojos is compiling the project we get a "Type not found" error.We get the same error in eclipse when we delete the FXG but keep the tag in MXML.

View 1 Replies

ActionScript 3 :: How To Compile Maven / Flex Project Without Any MXML File

Dec 13, 2010

Is there any way how to compile maven/flex project which does not contain any *.mxml? The flex project contains ActionScript classes only (i.e. "src/flex" directory contains *.as files only). My pom.xml is here:

<groupId>com.test</groupId>
<artifactId>test</artifactId>
<version>1.0-SNAPSHOT</version>
<name>test</name>
<packaging>swf</packaging>
[Code] .....

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

Flex :: Builder 3 Compiler Won't Show Errors / Compile Specific Pages

May 3, 2010

In flexbuilder 3 for some mxml files I can purposely put in syntax errors and the compiler will seem to compile the specific page(but actually not compile it) or report any errors for that page. Is there any way that you know of to get the compiler to report the errors to me so I can get it to compile the page. I've tried rebuilding all and cleaning the project already.

View 3 Replies

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 :: 1004: Namespace Was Not Found Or Is Not A Compile-time Constant?

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

ActionScript 3.0 :: Error 1004: Namespace Was Not Found Or Is Not A Compile-time Constant?

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

ActionScript 3.0 :: Upgrade To CS4 Is Causing Errors In Scripts - 1180: Call To A Possibly Undefined Method Splice

Jan 28, 2009

I've just upgraded to CS4 from CS3, and the AS3 project I'm working on which was compiling perfectly well in CS3, is now failing to compile because of a variety of errors.I can solve some of them by casting:

ActionScript Code:
// before
if(clip.stage != null)
// after
if(DisplayObject(clip).stage != null)

But I'm failing to solve them on errors regarding Arrays:

ActionScript Code:
// measurements is an array in both cases
measurements = measurements.splice(index, 1);
// 1180: Call to a possibly undefined method splice.
for(var i:int = 0; i < measurements.length; i++)
// 1202: Access of undefined property length in package measurements.

I'm surprised than a fresh install is behaving like this. Is there some setting somewhere I've not enabled?I set the flex sdk path to the same one that I'm using in Flash Develop, but no luck.

View 9 Replies

Flash :: XML Gallery Compile Errors

Jan 16, 2012

[code]...

**I got these errors, and probably more after those:

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

1180: Call to a possibly undefined method ProgressBar.

View 1 Replies

ActionScript 3.0 :: Compile Errors After Updating SDK

May 18, 2009

I'm coding an AS3 project with Flex Builder. I just updated my Flex SDK from 3.1 to 3.3. And that's IT. Now, when I try to compile I get the following errors[code]...

View 1 Replies

ActionScript 3.0 :: Application Will Not Compile, But Gives No Compiler Errors?

May 21, 2008

I am having a problem that I cannot figure out. I have searched the internet, describing as best I could and I could only find one other person with the same problem as me and no one replied to his post. Here's to hoping someone knows what is up.My App was working fine yesterday, then I added a few lines of code to a class file. When I tried to test the movie, it wouldn't compile. It would just run through all of the frames flashing each control. It does not output anything to the Output window nor the Compiler Errors window, which is odd because even when it would compile before it would output some warnings to the compiler errors window.

So I went into the class I changed and commented out the changes I made. Still will not compile.Also, when I try and go and Debug the movie, it tells me "You cannot debug this SWF because it contains no Actionscript". I've tried researching this problem as well, but it seems that this problem occurs when people are using the Document Class. I am not using a document class. My actionscript is on the frames.This same problem happened for the first time on Monday, but by tinkering with files/settings, it was fixed. That is until yesterday when i made that change.

View 8 Replies

ActionScript 3.0 :: Purposely Throw Compile Errors?

Nov 15, 2011

this will throw a runtime error if you don't override the init function in an extending class. (look below)

is there anyway to force a COMPILE error instead of a runtime error? my guess it not, but if there is a way i want to do that

[Code]...

View 9 Replies

ActionScript 3.0 :: Opening PDF Inside Flash Compile Errors

Oct 15, 2009

I'm trying to open a pdf inside flash. I followed a tutorial online but I'm have issues with the compiler. Here's my code:

import flash.html.HTMLLoader;
import flash.html.HTMLPDFCapability;
import flash.html.HTMLWindowCreateOptions;
if( HTMLLoader.pdfCapability == HTMLPDFCapability.STATUS_OK ){
[Code] .....

It results in these errors:
1046: Type was not found or was not a compile-time constant: UIComponent.
1180: Call to a possibly undefined method UIComponent.
I've tried to import fl.core.UIComponents in the beginning but that resulted in this error: 1172: Definition fl.core:UIComponent could not be found.

View 2 Replies

ActionScript 2.0 :: Restricting Warnings And Errors Displayed At The Compile Time?

May 13, 2010

Those who had started with AS2.0, mostly complain about AS3.0's restricting warnings and errors displayed at the compile time. Which was almost too weak ( and made to feel breeze ) in AS2.0 .However, recently, i was undergoing a hell time debugging, that made me realise how AS2.0 makes a slip, because of weak compilation.

Code:
class MyClass
{
var abc:Number ;[code].....

in the above trace statement, one would always get undefined ( but no compile time error ) even when i am trying to call getAbc() which is actually a private function.

View 0 Replies

ActionScript 3.0 :: Runtime Errors: 'Type Was Not Found Or Was Not A Compile Time Constant?

Jun 18, 2011

I'm trying to get a Drag and Drop organised but get the following runtime errors: 'Type was not found or was not a compile time constant'

View 1 Replies

ActionScript 3.0 :: Errors With FlexBuilder - 1046 : Type Was Not Found Or Was Not A Compile-time Constant?

Jul 16, 2009

I have .fla called Helicopter and a movieclip in the library with a linkage of Fly. If I use the code-snippet(as a seperate class called Helicopter.as)below with Flash or Flashdeveloper it works fine. If i use FlexBuilder (Actionscript project)I get these errors. is there some settings I have to change in FlexBuilder?

Severity and Description Path Resource Location Creation Time Id
1046: Type was not found or was not a compile-time constant: Fly. Helicopter/src Helicopter.as line 7 1247730594859 770[code]....

View 5 Replies

IDE :: Error 1152: "Conflict Exists With Inherited Definition In Public Namespace For Image_Holder" With Custom Components

Apr 6, 2010

Seasoned AS3 developer, but not very experienced with the CS4 environment. if anyone knowledgeable could spare the time. Here is my situation: I have an actionscript base class, which declares

[Code]....

View 1 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

ActionScript 3.0 :: Run Time Errors 1046 : Type Was Not Found Or Was Not A Compile-time Constant?

May 5, 2010

I use CS4.

Code:
package {
import flash.display.Sprite;
import flash.events.Event;[code]...........

Both of these are saved in files with the name same as the classes.

Both are saved a folder which also contains an fla file name hello.fla.So,when test the movie(hello.fla),after choosing the document class as WavyBall,I get these errors: 1046: Type was not found or was not a compile-time constant: Ball.

Source: var Ball:Ball;
1120: Access of undefined property stage.
Source:Ball.x=stage.stageWidth/2;
1120: Access of undefined property stage.
Source:Ball.y=stage.stageHeight/2;
5000: The class 'WavyBall' must subclass 'flash.display.MovieClip' since it is linked to a library symbol of that type.What is wrong?

View 3 Replies

Flex :: Maven - Flexmojos: Type Was Not Found - UncaughtErrorEvent (Flex 4.1)?

Apr 28, 2011

I'm using flexmojos 3.8 with flex compiler 4.1.0.16248.My Project compiles fine in Flash Builder, but with flexmojos / maven I get the following Error: Type was not found or was not a compile-time constant: UncaughtErrorEvent

The Flex Code looks like this:

loaderInfo.uncaughtErrorEvents.addEventListener(UncaughtErrorEvent.UNCAUGHT_ERROR, onUncaughtError);

The Flex Compiler 4.1 should know the type UncaughtErrorEvent - Why does it fail?

View 2 Replies

Flex :: Set A Swc Theme In Maven?

Nov 1, 2010

I can't set my custom theme in Maven like I do it in Eclipse by changing theme in project properties.

I note the theme swc in dependencies, the compiler founds it but the theme doesn't change.

Who knows how can I set a custom theme in Maven?

View 1 Replies

Flex :: Generate Flex SOAP Client Using Maven?

Aug 9, 2011

I have a java server side project which contains JAX-WS web-services (using JavaEE 6 and the @WebService annotation).

Is there some kind of plugin that would allow me to generate Flex client stubs during my maven build ?

I have taken a look at enunciate, but it seems to generate only AMF client.

I've also tried to look at GraniteDS, but their doc seems a little opaque to me.

Notice my Flex project is compiled using flexmojos, which contains a flexmojos:generate mojo that should be able to generate domain object (however I don't understand how to say it to use domain classes from ANOTHER project, and not from a different folder).

So, is there any maven plugin that would allow the kind of feature described in this Adobe page ?

View 1 Replies

Build A Flex Project On Ant Or Maven?

Jan 5, 2012

I am going to write a build commands for flex 4.5 project, which is only based on actionscript not with java. I am very new to both maven and ant.So can you people suggest which is more compatible and robust with Flex 4.5

View 1 Replies

Flex :: Spring Hibernate Maven Archtype

Jun 30, 2011

Is there a good Maven archtype for Flex Spring Hibernate integration which can be used as template?

View 1 Replies

Use Latest Maven To Build Flex Projects?

Nov 22, 2011

Currently, I'm trying to use latest maven to build flex projects in IntelliJ-Idea. But have no success.What is the best way to do it?

View 1 Replies

Flex :: Debugging Maven Application With Intellij?

Jan 17, 2012

I have flex application consisting of several modules which is configured using maven. I'm using flexmojos plugin to build the application. When I try to build the application using maven it builds successfully. But I need debugging features of Intellij Idea (i'm using 10.0 version). So at first step I run maven compile command to generate *-configs.xml to enable Intellij idea compile my application. At second step i run IDE's compile(or make) command and it says:

[Code]...

View 2 Replies

Flex :: Components - Components - Any Component With The Functionality Such As Horizontally Collapsible Window Or Panel

Aug 22, 2010

Do you know any flex component with the functionality such as horizontally collapsible window or panel I found arc90, but it folds vertically.

View 1 Replies







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