Optimising Flex Project
Hi,
I'm lookig for any pointers to optimising a flex project for publication including the use of runtime shared libraries, the use of dynamically loading swf's, text files, AMF versus SOAP, issues server side as well as client side. Any all tips/hints welcome. In particular, I'm aware in a Flexbuilder project all files
in src/asset folder get published to a bin-release folder. My question is, in the case of files that are not used in your project, eg graphic files in your asset folder you may have imported but not referenced in your application, do these files somehow get included in your published swf or are they ignored on publication of your swf. If the latter, no problem, if the former, I should make sure to trim out those files before publication?
thks
Colm
If you embed the images, they will be compiled into the app SWF. If you reference the images via URL, they will not be compiled into the app SWF, and you are responsible for uploading them to the server in the correct relative location.
For RSL, modules, etc. you need to upload them to the proper location on the server, they will not be in the compiled SWF.
Similar Messages
-
Is there a way of working collaboratively on a flex project with a small project group?
Is there a way of working collaboratively on a flex project with a small project group?
I am part of a small group of developers who wish to work on a single flex project together. Is there a way to set up flex so that the project can be developed by multiple people at the same time. I have seen one thread out on the internet about working locally and then uploading to SVn but this is not an option in this case.
Any ideas.
Many thanks in advance
DaveI would say that rushing into development without a source-control system will cost you more in the long-run. If your organisation is serious about developing software it then it needs to invest in the necesary infrastructure, so you should get that process kicked-off as soon as possible.
In the interim you could set-up a source control server on one developer's machine or commandeer a spare machine to use as a temporary source control server. Just make sure you have it backed-up regularly. Or you could use one of the online source control services; many will support private repositories for a small fee. -
Flex project vs. mxml application
im totally new to flex and actionscript, coming from traditional web app development. ive been watching videos on lynda.com and it has gone well, but one thing it fails to mention and that i couldnt find in the forums or on google is the difference between creating a flex project and an mxml applciation. what's the difference?
thanks!I don't know if you have knowledge about java or C#.
The project is a location where you collect all files that you need for your final application: mxml files, as filex, assets ....
The mxml application is the mxml file that inherit mx:Application and is the main file of the project.
Here is the start point of what you see in the browser.
The red circle specify the project and the blue cicrle specify the mxml application.
There is only one default mxml application in each project, but you can have many mxml files (that can be components) or mxml application that are applications. -
Not able to create a new Flex project in Eclipse
I am trying to use Flex Builder 3 eclipse plug-in for
development. But while creating a new Flex project in eclipse, I'm
getting the following error:
Template template.jst.web has not bee defined.
I am using Eclipse 3.3, and have installed the latest WTP
updates. Can someone point out what I'm missing here?
Thanks!Hi clsung,
Do you get this error on every Flex Project you are trying to
create or just on Java/J2EE projects? Flex Builder beta doesn't
support WTP 2.0 but this shouldn't affect the other kind of
projects.
-Gelu -
Hi,
how can I set the "Output folder" and "Output folder URL" in Flasbuilder 4b1?
In Flexbuilder 3 I can do this under Project Properties/"Flex Build Path"
Under "Flex Build Path" in F4b1 I can see the settings, but they are not editable.
A message says "The output folder settings for server projects are on the Flex Server Property Page" but under "Flex Server" there is nothing (yet) I can change/set?!
Is there a workaround?
Thanks for any pointers!
Martin ZachYes I'm using Flash Builder b1, build 235740. But your settings panel looks different to mine (see attached).
Just a thought. When you created the Flex project, did you choose a server technology at that point already? I just remember from Flex Builder 3 that if you didn't choose a server technology when you created the Flex project then it was a pain in the ** to add it later. It involved editing the .flexProperties file manually if I remember correctly. -
Where does flex builder keep refererences to the flex projects?
Where does flex builder keep refererences to the flex projects?
I'm getting an error like this on FB3 startup:
The folder PR System Intranet does not exist in the workspace so the reference must be somewhere else.
thanks
!SESSION 2009-11-02 09:47:52.203 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_11
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
Command-line arguments: -os win32 -ws win32 -arch x86
!ENTRY org.eclipse.core.resources 2 10035 2009-11-02 09:47:53.610
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
!ENTRY org.eclipse.core.resources 4 567 2009-11-02 09:47:53.829
!MESSAGE Workspace restored, but some problems occurred.
!SUBENTRY 1 org.eclipse.core.resources 4 567 2009-11-02 09:47:53.829
!MESSAGE Could not read metadata for 'PR System Intranet'.
!STACK 1
org.eclipse.core.internal.resources.ResourceException: The project description file (.project) for 'PR System Intranet' is missing. This file contains important information about the project. The project will not function properly until this file is restored.
at org.eclipse.core.internal.localstore.FileSystemResourceManager.read(FileSystemResourceMan ager.java:663)
at org.eclipse.core.internal.resources.SaveManager.restoreMetaInfo(SaveManager.java:792)
at org.eclipse.core.internal.resources.SaveManager.restoreMetaInfo(SaveManager.java:772)
at org.eclipse.core.internal.resources.SaveManager.restore(SaveManager.java:663)
at org.eclipse.core.internal.resources.SaveManager.startup(SaveManager.java:1319)
at org.eclipse.core.internal.resources.Workspace.startup(Workspace.java:1949)
at org.eclipse.core.internal.resources.Workspace.open(Workspace.java:1713)
at org.eclipse.core.resources.ResourcesPlugin.start(ResourcesPlugin.java:363)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:9 99)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextIm pl.java:993)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:9 74)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLa zyStarter.java:111)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java :417)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoade r.java:189)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:34 0)
at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackag e.java:37)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java :405)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.jav a:83)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at com.adobe.flexbuilder.standalone.FlexBuilderApplication.start(FlexBuilderApplication.java :111)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
!SUBENTRY 2 org.eclipse.core.resources 4 567 2009-11-02 09:47:53.829
!MESSAGE The project description file (.project) for 'PR System Intranet' is missing. This file contains important information about the project. The project will not function properly until this file is restored.
!ENTRY org.eclipse.osgi 4 0 2009-11-02 09:47:53.860
!MESSAGE An error occurred while automatically activating bundle org.eclipse.core.resources (161).
!STACK 0Thanks but that file contains things like
<?xml version="1.0" encoding="UTF-8"?>
<actionScriptProperties mainApplicationPath="main.mxml" version="3">
<compiler additionalCompilerArguments="-services "X:\Coldfusion9\wwwroot\WEB-INF\flex\services-config.xml" -locale en_US" copyDependentFiles="true" enableModuleDebug="true" flexSDK="Flex 3.2" generateAccessible="true" htmlExpressInstall="true" htmlGenerate="false" htmlHistoryManagement="true" htmlPlayerVersion="9.0.28" htmlPlayerVersionCheck="true" outputFolderPath="Staff_Ratings-debug" sourceFolderPath="src" strict="true" useApolloConfig="false" verifyDigests="true" warn="true">
<compilerSourcePath>
<compilerSourcePathEntry kind="1" linkType="1" path="H:/flash"/>
</compilerSourcePath>
<libraryPath defaultLinkType="1">
<libraryPathEntry kind="4" path=""/>
</libraryPath>
<sourceAttachmentPath/>
</compiler>
<applications>
<application path="main.mxml"/>
</applications>
<modules/>
<buildCSSFiles/>
</actionScriptProperties>
I don't see how FB3 knows about the
Pr System Intranet
project that seems to be the cause of the errors. -
Flex Builder 3 Launch Flex Project Error
FB3 launch Flex Project Error
quote:
String index out of range:30
what's reason? how do i fix it? Thanks!quote:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" width="367" height="227">
<mx:Button x="178" y="10" label="Button"/>
<mx:ComboBox x="10" y="10"></mx:ComboBox>
</mx:Application>
That's code. I can't launch project with debug.
Thank you. -
FLEX Builder Pro 3 New Flex Project cannot configure J2EE
I have FLEX Builder Pro 3 installed on a Windows XP machine. LiveCycle Data Services is installed (with Tomcat) on a Linux RHEL 5 machine. When trying to create a new FLEX project and configuring a J2EE server am very confused on what to put in Root Folder and Root URL. I have tried various paths on the Root Folder (with a drive mapped through windows and also with just using the servername) and keep getting the error message:
Invalid root. The WEB-INF/flex folder must contain either flex-config.xml or services-config.xml.
I've located the flex-confing file in the tomcat5\webapps\ROOT\WEB-INF directory, but still get the error.
Please any help would be greatly appreciated.Are 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.
-
I want to create a swc file to use it in an other project. I can't use the Flash 4 Library Project to do this, because in a Library Project I
haven't the possibility to use data/services, which I need for my library. After click on "data / services" I get the message "This view is only for Flex-Projects available".
Has anyone a solution for my problem?
Thanks for your help.Connect to PHP in FB4 is used when you have a PHP Class and you want to use that in FB, for example Employee.php and it has a Employee class and various methods in that like create, update, get, delete.
However, if you have exposed your functionality in PHP as a HTTP URL (i.e. it is not a class), then you should be using HTTPService from the data menu.
So if your file is login.php and is accessible as a URL, then using the HTTPService and enter the URL.
Does this help?
-Sunil -
How to import your Air/Flex project from FB 4.6 to FB4.7
It seems so easy.. however, I can't figure out how to do it.
I used to build my projects (Air projects with merged SDK) in FB4, FB4.5 later FB4.6 and now 4.7. But when I import my old project, it gets an old 3.4 AIR SDK. Wtf?
When I go to the project settings and want to change the sdk to my Flex 4.6 with Air 4.0 SDK, I cant! it sais "This project will use AIR SDK 3.4".
So I go to FB settings, add the new SDK in Flex SDK's but still I can't change the SDK from my project.
When I create a new Flex project, I can select the right SDK's. But I never made a Flex project. I make Air projects.
So it seems to me that Flash builder 4.7 can have multiple Flex SDK's (merged or not) for Flex projects only, and just one SDK for Air projects which you can't be changed.
O and the default is also freaking old.
Now who the hell came up with that stuff at Adobe?...
So I located the Air SDK my FB is using, and replaced it with my Flex4.7 and Air4.0 SDK. No luck, whole FB went nuts.
Anyone has a clue?FlashBuilder (doesn't matter what version) screws this up all the time. There are so many files related to configuration of the workspace, the projects within the workspace and the eclipse environment that it gets messed up all the time.
I never have this problem in other editors Eclipse based editors like InteliJ, Aptana, FDT etc. It's just Adobe growing / extending a tool which has bad programming in it and not bothering to go back and fix the root of the problem before expanding on it. FlashBuilder doesn't get the attention it deserves from Adobe. If they are not careful in the not too distant future when WebGL is supported on all the major web browsers and tools are released to translate WebGL to OpenGL ES iOS and Android applications AIR might see itself becoming a thing of the past. Esepcially when the tools can't even save the state of the projects they themselves created correctly. -
Flex Project ; Compile Locally
When I set up a Flex project in Flex Buiilder 2 , and select
Flex Data Services, Compile Application locally in Flex Builder ,
then select root folder, root URL and context root, the application
fails to compile locally . I get an error in the problems section
stating , "Unexpected attribute 'url' found in 'endpoint' from
file: services-config.xml" . I am using LiveCycle Data Services ES.
Anyone having the same issue ? My co-worker was able to do a
similar set-up successfully using FDS2 , so I'm wondering if there
is an issue with LCDS ?
Thanks, Stevesjlib,
I was able to resolve my same error by updating the Flex SDK
2. I found some information to do this here:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&catid=640&threadid =1253123&highlight_key=y&keyword1=flex%20Builder
I followed the directions posted on 03/29/2007 by
"nodogbite".
After updating the Flex SDK, I removed my projects from the
workspace & the J2EE DIR and rebuilt them from the source path.
After doing this I no longer got the "Unexpected attribute 'url'
found in 'endpoint' from file: services-config.xml" when I
recompiled.
I hope this helps, good luck!
-Gavin -
Hi,
I am planning to build a flex project with a small group of people. So, I am thinking to have one main project to load all the component (SWF) in swf loader, so that I can have the component to be distributed to everyone. Here I want to ask:
1. Besides local connection, what is the other best, fastest, and most stable way to have the main application to communicate with child application loaded via swf loader?
2. As each person may working on their own part, how to set up the project so that they can easily debug their part with the main application during the development?
3. The project will be deploy in both Air and web format. How to share the code base for both development so that we are easier to grow and maintain the app?
Thanks. Please advise if you have better way for group development.take a look at the first part of this video where he talks about different architectures
http://tv.adobe.com/watch/max-2010-develop/flexactionscript-30-architecture-and-dependency -injection-frameworks-overview/
you also might find this useful. Some example case studies for web/mobile apps, the same principle could be applied to web/desktop apps
http://www.adobe.com/devnet/flex/samples.html -
Concert Flex project from Mac to Windows?
What do I need to know to convert a Flex project that was developed on a Mac to a Windows machine?
Did you create this file with
File->Export...
menu option? -
ActionScript class being run by mistake in Flex project
I have a Flex project where my main MXML file is set as the
one and only application file and is also set as the default file.
I also have an ActionScript class in the project that extends
Sprite. It is _not_ set as an Application file.
When I have the ActionScript class selected, if I hit run or
debug, FB3 creates a new launch configuration for it and tries to
run the AS file instead of the default application MXML file.
Needless to say, this is really annoying as it means I have
to select the main MXML file before hitting debug/run every time.
Is this a bug or feature? (Feels like a bug).
Thanks,
AralHi Aral,
Can you please log it in our public bug system:
http://bugs.adobe.com/flex?
It'd be great if you can provide more info to the bug e.g.
reproducible steps, platform, FB version (Plugin or Standalone).
thanks,
Sharon -
Cant install air-flex projects
Hello, my AIR applications cant be installed in my system
because Windows do not recognizes files with .air extension.
Do you know if is needed additional software (like Adobe AIR
Runtime) to install my air based flex projects? I thought that the
installers detected if you have or not the necessary libraries to
run the file.
Regardshttp://livedocs.adobe.com/flex/3/html/help.html?content=distributing_apps_1.html
Uops!
Maybe you are looking for
-
Export webi to excel with the exact same format
Hello expert, I develped a webi report, but when I exported it into excel file, its format is defferent from WEBI report, such as text for legend with multple lines in webi presented in one line in excel, there are a few descrepency. please te
-
SSRS Report on Audit History in MS CRM 2011
Hi, I need to create a report on audit history, i am able to get the old value from changeddata in audit table. How can i get the new value? Thanks, Arjun arjun
-
Third party hardware for converting Lp's & tapes//converting VHS
Awhile back, I happened to notice a friend using an relatively inexpensive third party hardware/software bundle that was able to convert the audio output from his stereo to his mac for creating MP3s from Lps & cassette tapes. Does anyone know of a in
-
MBP and final cut studio 2?
I have the latest MBP 2.66 with 4 gb of ram and im buying final cut studio 2 and was wondering if it will run fine? I also was wondering if 4 gb of ram is enough? Or should i upgrade to 6 gb of ram? thank you! Can i also edit FULL HD video and still
-
I dumped my entire itunes library into the trash
Hello, I dumped my itunes library (25,000 songs) into the trash. It says I can not restore it, as I've tried. I then tried to just pull the music back into itunes from the trash, but I don't have enough room on my mac to copy them back. What can I do