Flex Builder not compiling changes
HELP!
I have a flex project that will build and run OK. If I make
changes to the a file in the project (an actionscript file to be
exact) the changes do not seem to compile. AN example is I take out
huge sections of the code and the project still will build and run.
I can also put in alert.show in the code and the code does not
execute.
This project is imported and originally comes out of SVN.
I have tried the clean build.
I can create my own project and make changes. Everything
works, but when I use the project created by someone else loaded
into SVN I cannot make any changes to the project. It is like Flex
Builder is compiling files from another location.
Please help. I am out of ideas.
- If there are any errors in the errors/console panel, a new
swf won't be created
- Make sure the target SWF file isn't set to Read-Only. It'll
prevent Flex Builder from updating the file.
- Check your build settings to make sure where FB is creating
the file is the same location you expect it to be
Similar Messages
-
Flex Builder stops compile new ActionScript classes
Hello,
Does anyone knows what could cause Flex Builder 3.4 stops compiling NEW ActionScript classes? I have been working on Flex project for a while, we have some MXML and .as files (less than 200). This morning Flex Builder suddenly stopped detecting errors in new as classes, but not so for older classes. Thanks and appreciate your help.
- WeipingAre your new classes referenced from the old code? Mxmlc employs a questionable form of "as-needed" linking, so classes that are not referenced from the main application are not even compiled. This referencing requirement is recursive; that is, any classes that are to be included have to be referenced from the main application, or from classes referenced by the main application, or from classes referenced by classes referenced by the main application, and so on. But if your new classes are not referenced at all from the old code, they will be ignored.
-
Additional SDK for Flex Builder - not working
Hi,
I have a Flex Builder 3.0.2. It's shipped with Flex SDK 2.0.1 and 3.2. I would like to add the new Flex SDK 3.5. I followed the documentation: http://livedocs.adobe.com/flex/3/html/help.html?content=build_6.html#162812:
- extracted SDK 3.5
- added into my SDK list
- set to default
- restart Flex Builder
- clean project
But it's just not working. There are many functions from the documentation I can't use still (but should be available with SDK 3.5). How can I fire SDK 3.5 up?
Thanks in advance,
PeterI can't solve your problem, but I can say that Flex Builder 3
is much faster amd more stable than FB2.
Tracy -
Flex Builder 3 - Export Release Build Feature
Just bought the Flex Builder 3 prof version and imported my
project from Flex Builder 2 to 3. All compiled OK and I see all
.html wrappers and swf (debug and release versions) in the bin
folder. However when I run the "Export Release Build Feature" only
index.swf (my main application file) along with its wrapper
index.html and my images directory gets copied to "bin-release"
folder. Not sure why remaining.swf files corresponding to the .mxml
files are not copied. Do I need to copy these manually???
Appreciate any help with this.
Thanks in advance.The problem is that:
all the images do not appear in the "Select the output files to include in the exported AIR or AIRI file" section of the Export Release Build. I see only 30 files with the rest of the files missing.
As a work around, what I did is manually copy all the resources/images from bin-debug to bin-release directory and then make the export release build. In this air package after installation, I see now all the images.
so, the original problem with flex builder not being able to include all the images in release build still persists.
thanks,
Sunil -
Flex Ant SDK giving compile warnings not present in Flex Builder
We have a project when we complie from Flash Builder 4 it compiles as expected with no errors. However when we do an ANT build on a build machine with no Flash Builder installed, the same code (checked out from SVN) and same Flex SDK we have started to get an error: "Error: Access of possibly undefined property labelName through a reference with static type ..."
If I Run As the ant build from inside eclipse it builds fine and no errors (I verified the SDKs are the same). I can "work around" this by using show-actionscript-warnings="false" in the build.xml file, I'd rather not have to do this.
The error labelName property in the component that is referenced in the error is indeed marked public and it is [Bindable]. In fact the component that it says this error is associated with hasn't changed in a couple months.
Some other info that might be of interest on our system that builds the deploy version:
1. Our build box is running mac os x (10.5.6), Processor: 2GHz Intel Core 2 Duo, Memory: 2GB
2. Flex SDK 4.1A
3. Java version 1.5.0_13
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-237)
JavaHotSpot(TM) Client VM (build 1.5.0_13-119, mixed mode, sharing)
4. Ant -version: Apache Ant version 1.7.0 compiled on February 29 2008
Any ideas as to what could be causing this "phantom" error in our module? How to fix? Hints or other avenues to pursue?
Thanks,
Mike WeilandSo it turns out I need to overlay the latest SDK into the Flash Builder directory completely, not just the files I was messing with before.
In flex builder, go to the directory where the SDKs are installed.
On my system this is
C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\sdks
On a Mac, it might be
/Applications/Adobe Flash Builder 4.5/sdks
There should be a 3.6.0, 4.5.0 and a 4.5.1 present.
Make a copy of the 4.5.1 directory.
Download the AdobeAIRSDK from
Windows - http://airdownload.adobe.com/air/win/download/latest/AdobeAIRSDK.zip
Mac - not sure what the link is.
Unzip this file, then overlay the contents into the 4.5.1 directory. There are 8 directories, and 2 files. The target 4.5.1 has 10 directories, and 7 files (on my system)
In Flash Builder, project properties need to be tweaked.
The Flex Compiler tab - Check [Use a specific SDK:], and pick Flex 4.5.1 in the dropdown.
And in the Additional compiler arguments add
-swf-version=12
In your code, to use the AEC, pick the Enhanced Microphone, as in
microphone = Microphone.getEnhancedMicrophone();
Now if only I could figure out what all the settings do and which one's I need to tweak for our environment... loads of experimenting.
Mark. -
I am using strobe player in flex builder 4.6 but its not loading.
I am using strobe player in flex builder 4.6 but its not loading,
I have made required change in compiler option as below:
-locale en_US -swf-version=11 -define CONFIG::LOGGING true -define CONFIG::FLASH_10_1 true -define CONFIG::MOCK false -define CONFIG::PLATFORM true
There is no any error but player does not load, here is my code I am using;
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
applicationComplete="init(event)" backgroundAlpha="0">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<fx:Script>
<![CDATA[
import mx.core.UIComponent;
private const HTTP:String = "http://ec2-54-84-194-229.compute-1.amazonaws.com:1935/live/legacyLive/manifest.f4m?DVR";
protected function init(event:Event):void
var playerInstance:StrobeMediaPlayback = new StrobeMediaPlayback();
var ui:UIComponent = new UIComponent();
var parameters:Object = {
src:HTTP,
controlBarMode:"floating",
controlBarAutoHide:"true"
playerInstance.initialize(parameters, systemManager.stage, systemManager.loaderInfo, null);
ui.addChild(playerInstance as DisplayObject);
addChild(ui);
]]>
</fx:Script>
</s:Application>I am using strobe player in flex builder 4.6 but its not loading,
I have made required change in compiler option as below:
-locale en_US -swf-version=11 -define CONFIG::LOGGING true -define CONFIG::FLASH_10_1 true -define CONFIG::MOCK false -define CONFIG::PLATFORM true
There is no any error but player does not load, here is my code I am using;
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
applicationComplete="init(event)" backgroundAlpha="0">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<fx:Script>
<![CDATA[
import mx.core.UIComponent;
private const HTTP:String = "http://ec2-54-84-194-229.compute-1.amazonaws.com:1935/live/legacyLive/manifest.f4m?DVR";
protected function init(event:Event):void
var playerInstance:StrobeMediaPlayback = new StrobeMediaPlayback();
var ui:UIComponent = new UIComponent();
var parameters:Object = {
src:HTTP,
controlBarMode:"floating",
controlBarAutoHide:"true"
playerInstance.initialize(parameters, systemManager.stage, systemManager.loaderInfo, null);
ui.addChild(playerInstance as DisplayObject);
addChild(ui);
]]>
</fx:Script>
</s:Application> -
I'm using Flash Builder 4, 3.5 sdk and finding that it often fails to compile. I thought that changes were not showing up and decided to test by inserting a trace statement that I would change. However, the trace value did not change in the Console. Has anyone else run into this and is there a solution?
- If there are any errors in the errors/console panel, a new
swf won't be created
- Make sure the target SWF file isn't set to Read-Only. It'll
prevent Flex Builder from updating the file.
- Check your build settings to make sure where FB is creating
the file is the same location you expect it to be -
Flex Builder 3 will not work on Mac
Flex Builder 3 & Mac OSX:
The hard disk on my mac failed, lost everything, including
Flex Builder 2. I installed a new hard disk, and downloaded the
"trial" of Flex Builder 3 (FB 3). The software seemed to install
fine(no errors in the install log).
However, when I run FB 3, the default front page does not
load, and tells me that the flash player as stopped because of a
un-safe operation. I think okay, that is fine, but I do like the
page with the links to the docs, and adobe resources. I try to
build an app, default just dragged a button on the stage, and
complied. However, the page does not compile. I only get the "grey"
page, with no button.
After this I re-installed the flash player (9.0.115), but
still no love. I have re-installed FB 3, but the same results.
I am using Mac OS X (power PC). Can anybody help me. I am a
student at the University of Hawaii, and I am teaching myself Flex.
I am thinking that the error might be with the flash player, and I
am trying to install flash CS3, thinking that if I can get the
stand alone flash player that way, maybe then this will work.
Please help,
JohnHi Michael,
Thanks so much for all your help!
I just installed FB 3 again, but still no love, yikes! I
don't get it FB 2 was painless,...
I have the same issues, and safari does not handle any flex
apps, just a blank(grey page). Can I ask a favor? Can you check
this link, a flex charting app. It can view it perfectly in Camino,
but just a blank page in safari. Could you check this link in
safari?
http://cfhawaii.com/Charts/DrillDownWithEffects.html
I also still get the can't find the debugger player.
Maybe I need to take a on-line course(bring that I am in
hawaii) to learn how to get everything set up.
I send a bug report to adobe, and I am hoping that somebody
gets back to me, and can help me fix the problems, as I couldn't
even registrar FB3, I want to start learning flex, not dealing with
this.
Thanks so much for all your help`-`
John -
Flex Builder 3 Beta 3 Debugging not working with latest Flash Player Debug
First to emphasize that never had such issues with Flex
Builder 2 Beta 2 and Flash Player 9.0.47 Debug version.
I downloaded Flex Builder 3 Beta 3 and installed it. Then
trying to debug any Flex app (old or newly created) does not work.
I don’t get any errors, but after some research I saw
it’s nagging up on trying to connect to the Flash Player
debug version.
1. Uninstalled old versions of Flash Player (FP).
2. Downloaded latest debug version of FP 9 (9.0.115) and
installed it both for IE and Opera (Netscape-compatible).
3. Installed Flex Builder 3 Beta 3.
4. Created a simple Flex app.
5. Ran it in debug mode.
6. Showed a small window with title “Progress
Information” and a progress + text: Waiting for Flash Player
to connect to debugger…
7. Two minutes later I got the error: “Failed to
connect; session timed out. Ensure that: 1. You compiled your Flash
application with debugging on. 2. You are running the debugger
version of Flash Player.”
Any idea what is wrong? I tried to download an older debug
version but then FB 3 Beta 3 raises the error it’s expecting
version 9.0.115. I searched to download FB3 Beta 2 (because I
deleted it after downloading Beta 3) but unfortunately Adobe did
their best to wipe it out from their links.
Any help is welcome.
System Specs:
Windows Vista Ultimate
Flex Builder 3 Beta 3 Standalone
JRE 1.6 Update 3
-DimitarHi Dimitar,
Did you close all the browsers (and applications which use
Flash Player) when you install Flex Builder 3 Beta 3 or Flash
Player? You can try manually installing it from <FB install
location>/player/ directory. Here're some
installation/unintallation instructions of Flash Player:
http://labs.adobe.com/wiki/index.php/Flex_3:Release_Notes#Installing_Flex_SDK_3_Beta_3
thanks,
Sharon -
Background color change on Flex builder editor
I have been searching around to see if there is a way to
change the editor's backgorund. After long hours of coding, the
white background hurt my eyes.
I know wehre ti change the text color, and the background
color of the console, but not the editor (source). Any idea?hi
if you are using flex builder 3 you go to to:
window->preferences
then select General and inside it select Editors
Inside editors you have Text Editors, select that and you
will see what you want. -
Flex Builder 3, Design window not working
A few days into a new project, suddenly flex builder 3
crashed and I can no longer graphically edit my layout. Editing the
source works, and the changes are reflected in the design window,
however I cannot make changes while in the design window.
Help!You can try to delete (not contents), then reimport your
project, or simply reinstall Flex. Takes all of 5 minutes. If that
still doesn't work, make sure you don't have some component
covering the others possibly. -
Flex components not working after upgrade to Flash Builder 4
I just purchased Flash Builder 4 and imported my project from Flex Builder 3. Everything worked except my Flex components that were created in Flash Professional using the Flex Compoent Kit are not showing up at all in my Flex app. The components were created in Flash CS3 and published to an SWC. I even tried upgrading to Flash Professional CS5 and re-publishing but that didn't help. These components work fine in Flex Builder 3 with Flex SDK 3.2. Does anyone know why they aren't showing up in Flash Builder 4 using Flex SDK 4.1 and AIR 2.5 SDK? I need this to work with AIR SDK 2.5 so I can compile for Android. Thanks, Ryan.
P.S. when I say they aren't showing up I mean they aren't visible in the running application. Flash Builder is finding them in the SWC though because I instantiate the components in my mxml file and it compiles without errors. - Ryan
-
Flex Builder 4.5 Premium license not working for automation - anything else to try?
So I'm getting the message when I try to record/run a test that the "License not present. With the trial verison only limited replays are allowed." I have a valid license key for Flash Builder 4.5 premium edition. I have read many forums on this subject but none of them help me. I compile my project either using Flash Builder 4.5 or an ant script invoking mxmlc. I have modified my flex-config.xml to include "flashbuilder45", and my given serial number with and without dashes (and other combinations). I do not have a license.properties file. I'm not sure what else I can do. I have already reinstalled Flash Builder 4.5. I am now trying Flash Builder 4.6 with the same results. This serial number is a group one good for 5 boxes. My next step is to request a replacement serial number from Adobe, since I can't think of anything else that could be wrong with my setup.
1. It is a premium which I can see when I view "My Products" on this adobe site. I can enable Network monitor and when I do my application hangs (I've read a bit on how to get this working properly, but I don't need it)
2. It is an FB serial number. Here is what it is under My Products:
Serial Number: XXXX-XXXX-XXXX-XXXX-XXXX-XXXX
Application or font: Flash Builder Prem
Version: 4.5
Platform: Multiple Platforms
Date: June 7, 2011
3. Yes I have. I have uncommented
<licenses>
<license>
<product>product</product>
<serial-number>serial-num</serial-number>
</license>
</licenses>
which sits one level down within <flex-config/>
Under product I have tried "flashbuilder45", "flashbuilder4", "flashbuilder46", and even "flexbuilderXX" a few times. Under my serial number I have entered the serial number as shown in My Products - I have tried tried it with dashes, and without.
I found this post
http://stackoverflow.com/questions/6993096/how-to-properly-define-the-flashbuilder-4-5-pre mium-license-for-a-maven-flexmojo
which says "the serial-number element is NOT the license number that we got from Adobe (and that we use when installing the Flash Builder tooling) but it is a derived form of that license number that can be found for example in the license.properties file of a developer that has Flash Builder installed". However I have read conflicting reports about this. At any rate I do not have a license.properties file, which I assume was discounted after flex builder 3.x.
4. Yes, using FlashBuilder and my ant script. I have also cleaned my browser's cache. The problem persists. -
Flex Application Only Compiles in Flash Builder
Hello,
I am a newbie trying to become familiar with Flex. I am starting by building and running some sample applications. For some reason, the applications will execute inside of FlashBuilder, but I am getting a compile error when I compile them on my linux box. The I used the Flash Builder remote services finder to generate the code for the remote service. The class that produces the error was generated by Flash Builder. I have appended the class at the bottom of this post. Any suggestions? Thanks in advance.
--Marco
[mjmatch@mjmatch-linux flexsphi]$ ant
Buildfile: build.xml
compile-flex:
[mxmlc] Loading configuration file /opt/tools/flex-sdk/4.1/frameworks/flex-config.xml
[mxmlc] /opt/tools/blazeds/4.0.0/tomcat/webapps/flexsphi/src/client/services/_Super_Foo.as(20): col: 68 Error: The definition of base class RemoteObjectServiceWrapper was not found.
[mxmlc] internal class _Super_Foo extends com.adobe.fiber.services.wrapper.RemoteObjectServiceWrapper
[mxmlc] ^
BUILD FAILED
/opt/tools/blazeds/4.0.0/tomcat/webapps/flexsphi/build.xml:16: mxmlc task failed
Environment
=========
Flex SDK 4.1
Flash Builder 4
ant compile tasks
============
<property name="FLEX_HOME" value="/opt/tools/flex-sdk/4.1"/>
<property name="DEPLOY_DIR" value="/opt/tools/blazeds/4.0.0/tomcat/webapps/flexsphi"/>
<property name="CONTEXT_ROOT" value="flexsphi"/>
<taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar" />
<target name="compile-flex">
<mxmlc file="src/client/Main.mxml"
services="${DEPLOY_DIR}/WEB-INF/flex/services-config.xml"
context-root="${CONTEXT_ROOT}"
output="${DEPLOY_DIR}/flexsphi.swf"/>
</target>
_Super_Foo
=========
* This is a generated class and is not intended for modification. To customize behavior
* of this service wrapper you may modify the generated sub-class of this class - Foo.as.
package services
import com.adobe.fiber.core.model_internal;
import com.adobe.fiber.services.wrapper.RemoteObjectServiceWrapper;
import com.adobe.serializers.utility.TypeUtility;
import mx.rpc.AbstractOperation;
import mx.rpc.AsyncToken;
import mx.rpc.remoting.Operation;
import mx.rpc.remoting.RemoteObject;
import valueObjects.Bar;
import mx.collections.ItemResponder;
import com.adobe.fiber.valueobjects.AvailablePropertyIterator;
[ExcludeClass]
internal class _Super_Foo extends com.adobe.fiber.services.wrapper.RemoteObjectServiceWrapper
// Constructor
public function _Super_Foo()
// initialize service control
_serviceControl = new mx.rpc.remoting.RemoteObject();
// initialize RemoteClass alias for all entities returned by functions of this service
valueObjects.Bar._initRemoteClassAlias();
var operations:Object = new Object();
var operation:mx.rpc.remoting.Operation;
operation = new mx.rpc.remoting.Operation(null, "getBars");
operation.resultElementType = valueObjects.Bar;
operations["getBars"] = operation;
operation = new mx.rpc.remoting.Operation(null, "addBar");
operations["addBar"] = operation;
_serviceControl.operations = operations;
_serviceControl.convertResultHandler = com.adobe.serializers.utility.TypeUtility.convertResultHandler;
destination = "foo";
model_internal::initialize();
* This method is a generated wrapper used to call the 'getBars' operation. It returns an mx.rpc.AsyncToken whose
* result property will be populated with the result of the operation when the server response is received.
* To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value.
* You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
* @see mx.rpc.AsyncToken
* @see mx.rpc.CallResponder
* @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
public function getBars() : mx.rpc.AsyncToken
var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("getBars");
var _internal_token:mx.rpc.AsyncToken = _internal_operation.send() ;
return _internal_token;
* This method is a generated wrapper used to call the 'addBar' operation. It returns an mx.rpc.AsyncToken whose
* result property will be populated with the result of the operation when the server response is received.
* To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value.
* You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
* @see mx.rpc.AsyncToken
* @see mx.rpc.CallResponder
* @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
public function addBar(arg0:String) : mx.rpc.AsyncToken
var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("addBar");
var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(arg0) ;
return _internal_token;The SWC files are within the resource directory of LCDS.
For example:
C:\lcds31\resources\lcds_swcs\FlexSDK4\frameworks\locale\en_US
fiber_rb.swc
C:\lcds31\resources\lcds_swcs\FlexSDK4\frameworks\libs
fiber.swc and fds.swc
You can use the following within ANT.
<!-- Get default compiler options. -->
<load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
<!-- List of path elements that form the roots of ActionScript
class hierarchies. -->
<source-path path-element="${FLEX_HOME}/frameworks"/>
<!-- List of SWC files or directories that contain SWC files. -->
<compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
<include name="libs" />
<include name="../bundles/{locale}" />
</compiler.library-path> -
Flex Builder 3 Flash package changed / incomplete?
Hi,
I have installed
Flexbuilder3_b2,
flex3sdk_b3 &
air_b3_win_sdk. I am having problems with the
flash.desktop package in Flex builder 3.
When I use the Help I can see that in Flex 3 flash.desktop
are package components flash.desktop.NativeDrag* but when I try to
use them in code it appears they are not in my flash.desktop
package. Have flash.desktop.NativeDrag* been replaced by
flash.desktop.Drag*? I refer specifically to
NativeDragManager, NativeDragActions, NativeDragOptions.
Also, I am trying to run an example project which also refers
to flash.desktop.NativeApplication thus:
import flash.desktop.NativeApplication;
NativeApplication.nativeApplication.addEventListener(Event.NETWORK_CHANGE,
checkNetworkConnection);
- but NativeApplication is not referred to in the Help as
part of flash.desktop & not available in the list of
components. Can anyone tell me what this has been replaced with?
Thanks in advance,
ObHi, your Flex Builder beta 2 is out of sync with your SDKs.
You should upgrade to FB beta 3.
NativeApplication is now WindowedApplication, and NativeDrag*
is the current naming for those classes. Perhaps you are looking at
the beta 3 AIR help while compiling with the beta 2 SDK paired with
FB beta 2. Try bringing FB up to date.
Maybe you are looking for
-
Can't get "Snap to Beats" to work in iMovie '11
I'm creating a new project - a photo montage set to music in iMovie'11 - and can't seem to get my photos to snap to beats. I followed the instructions (opened audio clip trimmer, added markers using "m", clicked "done" and then placed the photos) - b
-
Mail For Exchange 2.5 whats your take?
The new version promises some interesting additions including putting the OOO [out of office] from the device] and a few more tweaks Anyone found anything interesting using the new version. I just downloaded so will keep u posted on anything more int
-
Hello all, Is there any method through which i can get the System ID( the hardware ID) of any particular System where my AIR application is installed. Regards, Varun Chopra
-
Centering a table in a document
I have a fairly simple Pages '09 document, which I am writing. It is all text with one table. I want to center the table horizontally on a page, but for the life of me, I can't figure out how to do it. If anyone knows how to center a table, please le
-
Is it me or is it a complete PAIN to set in and out points in 7? Used to be easy. It's almost impossible sometimes to grab the playback head without it selecting an i/o point. Once I finally do get the markers where I want 'em, the In point moves whe