Does Flex Builder remove unused code?
Hi, I have alot of dead code in app that is resulting in an unnecessarily large SWF. Is there a way to make the flex compiler remove unused functions?
Although tedious, drkstr_1 has the plan of action. Generally you should need to clean up orphaned code and remove all trace statements. I often see the tracing statements of other Flash Player products when doing development and some are quite revealing if not embarrasing.
Also "unnecessarily large swf" begs the question what is large? If in Flash IDE did you run the bandwidth report to see exactly what makes it "unnecessarily large swf". You see this option in the publish settings.
Typically code is not going to make a "unnecessarily large swf" but rather digital assets embedded and fonts embedded. Code could make it "unnecessarily large swf" if there are lots of libraries you are using and you are only using some tiny part of the library which you could refactor or find a snippet on the net.
Last "unnecessarily large swf" in relation to what bandwidth? Do you have a targeted minimum bandwidth to make the assessment "unnecessarily large swf"?
Similar Messages
-
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. -
Does Flex Builder 3 have support for Soap 1.2?
Does Flex Builder 3 Data Services support Soap 1.2?
I'm using Flex Builder v3.0.205647. I'm trying to import a
Web Service (WSDL) through the Data Services...but I'm seeing that
Soap 1.2 is not supported (only Soap 1.1). Are there any plug-ins
and/or updates that would allow me to connect to a Soap 1.2
service? If not, is this planned for the future?
Thanks!Pandu,
OBPM 10g doesn't support SOAP 1.2 binding.
Edited by: 4dyomi on Nov 20, 2009 11:41 AM
Edited by: 4dyomi on Nov 20, 2009 11:42 AM -
How does flex builder handle permissions?
Every time i launch flex builder it seems to for some reason
replace my external files(asp files that gernerate xml) with older
versions. Sometimes during work updates i make to these files stop
occuring entirely, its as if im not able to save over or copy over
the files, when i close flex builder and reboot i can copy the
files from last time i backed up and work for a little while
longer, it just started doing this. My files are in the bin
directory with all the other files and maybe thats bad, anyways any
advice would be great.
leoleotemp wrote:
> Every time i launch flex builder it seems to for some
reason replace my
> external files(asp files that gernerate xml) with older
versions. Sometimes
> during work updates i make to these files stop occuring
entirely, its as if im
> not able to save over or copy over the files, when i
close flex builder and
> reboot i can copy the files from last time i backed up
and work for a little
> while longer, it just started doing this. My files are
in the bin directory
> with all the other files and maybe thats bad, anyways
any advice would be great.
>
> leo
>
When you compile and run a flex application in flex builder
we copy over
all the included files to the bin folder. Do you have copies
of the
generated xml files in your project? If so, then the ones in
the bin
folder will get overwritten.
winsha -
Does Flex Builder scale?
Has anyone had success building large ActionScript projects
in Flex Builder? Say 20,000 lines of ActionScript. Or is that not
the way Flex is typically meant to be used? Thanks.I haven't tried Flex 3, but I noticed the AIR beta wouldn't
install on Win2K. The Apollo Alpha did. I think it was the new
installer for the beta that gave the problem. -
Does Flex Builder 3 generate only AS 3.0 ?
Hi
By default my Flex project exported
swf files flash player version is 9.0 and Actionscript
version is 3.0 (I think) .
But I need lower flash player version with AS 2.0 ?
Is it possible ?
If yes , please guide me how ?
Regardsntsiii , I`m looking for a solution to get AS2 from exported
swf movies via Flex . Do you mean that is absolute for Flex2 that
generate AS3 ?
I thinks Flex 2 can generate AS2 , can`t it?
Anyway , which version of Flex Builder can create swf movies
with AS2 for me ?
Regards -
Does Flex Builder 3 have a macro recorder?
I tried an Eclipse add-in called MacroSchmacro but it does
not seem to function in FB3. Does anyone know of a macro-recorder
add-in or Eclipse based editor that has macro functionality the
will work with FB3? I know there are many stand-alone editors but
would like to keep it in the development environment.I settled for Notepad++, swapping between the two editors and
running the macro in Notepad++ is not all that much trouble. On the
other hand, FB should have this feature built-in or at least as an
add-in. @Greg: The only add-in I found was MacroSchmacro, doesn't
seem to work in the FB version of Eclipse though. -
Can I re-install Flex Builder trial after 60 days again?
As far as I understand Flex Builder trial version stops working after 60 days.
Can I after the 60 days uninstall Flex Builder and re-install it again with 60 more days or does Flex Builder somewhere
(e.g. in Registry ) set a flag that Flex Builder was already installed?
In other words do the 60 days count per installation or per computer?
PeterNo.
But if you are a student you can receive Flex Builder for free (google it).
And of course you can use Flex SDK absolutely free with Eclipse (except Flex Data Visualisation components - AdvancedDataGrid, Charts). -
Hi,
I'm working on an application which uses old Flex 3.4 (used for Adobe LiveCycle). This SDK already contains fiber.swc and playerfds.swc so I removed them from Flex Build Path. But if I reopen the project, the removed lines are there again.
So whats wrong? Bug? This is a serious issue for me since some classes from newer fiber.swc is not backwards compatible to version 3.4.
I'm using Flash Builder Premium 4.7. It would be great if I could solve that because I have to remove these paths everytime I open the project.
cu FlohFew things I've discovered that might be able to help you.
Make sure you download both the newest version of the playerglobal.swc (for flash player 10.1), and replace it either in your SDK files, or have it in a library (in Flex 3 you need to disable the older playerglobal, I'm not sure about FB 4)
Use the newest OSMF.swc available from the OSMF downloads page.
Make sure you have the compile settings for OSMF set up in your compile line (mangle for FB4 if needed):-define CONFIG::LOGGING false -define CONFIG::DEBUG false -define CONFIG::FLASH_10_1 true
I've been able to compile flex projects using OSMF doing these steps.
Hope this helps.
-Will -
Why does Flash/Flex Builder 4 Premium downgrade to Standard when I install Flash Player Debug?
I installed a corporate install of Flex/Flash Builder 4 Premium, and verified that it was the Premium version was installed. The Start Page said that Flash Player was needed to display the text, so I installed Flash Player 10 Debug -- first download link from here:
http://www.adobe.com/support/flashplayer/downloads.html
When I then started Flex Builder 4, the splash screen showed Premium, but as soon as the Start Page was visible, it showed "FB Adobe Flash Builder 4 Standard" --- Help | About showed Standard, and the splash screen from then on showed Standard.
A Google search showed a work around for this, but it requires a license for Premium, which I don't have because our corporate install has it built-in:
http://bloginblack.de/2010/05/adobe-master-collection-cs5-breaks-flash-builder-4-premium-a nd-how-to-fix-it/
1. Anyone know how to resolve this?
2. Can Adobe fix this?
Thanks!I had similar problem. I was involved in Flash Builder prerelease program and few months later I installed Adobe CS5 Master Collection. After that I had a same situation. Best thing was, my Flash Builder Beta was Premium version but acted like Standard, and FB from CS5 was Standard but acted like Premium. I removed CS5 and beta version of CS5. used CS5 Cleaning Fix and then reinstalled my apps.
I was lucky that I didn't have many big projects involved in FB beta or CS5 workspaces, I heard some guys had problems with migrated workspace configurations but I don't know what was the problem. -
Flex Builder marking a sample code invalid "Access of undefines property"?
Hey,
I used the code from this link: http://tdotblog.info/?q=node/6
When i put it into Flex Builder 3, it has several issues with the code like "Access of undefined property FileStream" (or File).
When I run the application, only the typical gray background appears.
What am I doing wrong?
Thanks, ErthyYou probably just need to have import statements for these classes in your code:
import flash.filesystem.File;
import flash.filesystem.FileStream;
import flash.filesystem.FileMode;
It looks like whoever wrote that tutorial forgot to add those. If you were typing in the code rather than pasting it in, the import statements would get automatically added, so maybe the author just didn't notice that they were necessary.
Related Flex Builder tip:
If you get this error for any class, it means that the compiler can't find the class definition (which usually means you're missing an import statement). The easiest way to add the import statement is to put your cursor at the end of the class name (e.g. right after the word File) and hit Ctrl-Enter (on Windows -- probably Cmd-Enter on Mac). Ctrl-Enter is the shortcut to trigger a code hint, but if you trigger it that way it will recognize the class and just add the import statement for you. -
Revision: 3120
Author: [email protected]
Date: 2008-09-05 10:44:10 -0700 (Fri, 05 Sep 2008)
Log Message:
When you point Flex Builder at a local sandbox trunk build, it couldn't generate the html-templates folder correctly for new projects so we moved all the html templates up one level and removed the html-templates directory and adjusted build.xml's to accommodate the directory change
Modified Paths:
flex/sdk/trunk/build.xml
flex/sdk/trunk/webapps/webtier/build.xml
Added Paths:
flex/sdk/trunk/templates/client-side-detection/
flex/sdk/trunk/templates/client-side-detection/AC_OETags.js
flex/sdk/trunk/templates/client-side-detection/index.template.html
flex/sdk/trunk/templates/client-side-detection-with-history/
flex/sdk/trunk/templates/client-side-detection-with-history/AC_OETags.js
flex/sdk/trunk/templates/client-side-detection-with-history/history/
flex/sdk/trunk/templates/client-side-detection-with-history/history/history.css
flex/sdk/trunk/templates/client-side-detection-with-history/history/history.js
flex/sdk/trunk/templates/client-side-detection-with-history/history/historyFrame.html
flex/sdk/trunk/templates/client-side-detection-with-history/index.template.html
flex/sdk/trunk/templates/express-installation/
flex/sdk/trunk/templates/express-installation/AC_OETags.js
flex/sdk/trunk/templates/express-installation/index.template.html
flex/sdk/trunk/templates/express-installation/playerProductInstall.swf
flex/sdk/trunk/templates/express-installation-with-history/
flex/sdk/trunk/templates/express-installation-with-history/AC_OETags.js
flex/sdk/trunk/templates/express-installation-with-history/history/
flex/sdk/trunk/templates/express-installation-with-history/history/history.css
flex/sdk/trunk/templates/express-installation-with-history/history/history.js
flex/sdk/trunk/templates/express-installation-with-history/history/historyFrame.html
flex/sdk/trunk/templates/express-installation-with-history/index.template.html
flex/sdk/trunk/templates/express-installation-with-history/playerProductInstall.swf
flex/sdk/trunk/templates/metadata/
flex/sdk/trunk/templates/metadata/AC_OETags.js
flex/sdk/trunk/templates/metadata/readme.txt
flex/sdk/trunk/templates/no-player-detection/
flex/sdk/trunk/templates/no-player-detection/AC_OETags.js
flex/sdk/trunk/templates/no-player-detection/index.template.html
flex/sdk/trunk/templates/no-player-detection-with-history/
flex/sdk/trunk/templates/no-player-detection-with-history/AC_OETags.js
flex/sdk/trunk/templates/no-player-detection-with-history/history/
flex/sdk/trunk/templates/no-player-detection-with-history/history/history.css
flex/sdk/trunk/templates/no-player-detection-with-history/history/history.js
flex/sdk/trunk/templates/no-player-detection-with-history/history/historyFrame.html
flex/sdk/trunk/templates/no-player-detection-with-history/index.template.html
Removed Paths:
flex/sdk/trunk/templates/html-templates/Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them. This may or may not be unique to Arch Arm, so you might try asking on their forums as well.
-
Error: The folder does not contain a valid Flex Builder Project.
HI All,
My first Post here. I am new to Flex Hardly 10 days old. I
want to open the flexstore project in flex builder 3 and could not
able to do so.
What I did: file->import->.... got the error msg as
"The folder does not contain a valid Flex Builder Project".
also tried file->import->general->..... same error
msg.
I need your Help guys
I downloaded the sample project from
http://examples.adobe.com/flex2/inproduct/sdk/flexstore/srcview/index.html
Thanks in Advance
SAS
Text"shakeb66" <[email protected]> wrote in
message
news:gknbn8$av9$[email protected]..
> HI All,
> My first Post here. I am new to Flex Hardly 10 days old.
I want to open
> the
> flexstore project in flex builder 3 and could not able
to do so.
> What I did: file->import->.... got the error msg
as "The folder does not
> contain a valid Flex Builder Project".
> also tried file->import->general->..... same
error msg.
> I need your Help guys
> I downloaded the sample project from
>
>
http://examples.adobe.com/flex2/inproduct/sdk/flexstore/srcview/index.html
Try creating a new Flex project and dragging the files from
the zip into the
src folder. You may find that you need to rearrange things a
bit, depending
on how they set up the project, but this should get you
started.
HTH;
Amy -
Revision: 11292
Author: [email protected]
Date: 2009-10-30 02:28:09 -0700 (Fri, 30 Oct 2009)
Log Message:
Removing 'libs' as a library path from the Flex Builder project properties.
Modified Paths:
osmf/trunk/framework/MediaFramework/.actionScriptProperties
osmf/trunk/framework/MediaFramework/.flexLibPropertiesRevision: 11292
Author: [email protected]
Date: 2009-10-30 02:28:09 -0700 (Fri, 30 Oct 2009)
Log Message:
Removing 'libs' as a library path from the Flex Builder project properties.
Modified Paths:
osmf/trunk/framework/MediaFramework/.actionScriptProperties
osmf/trunk/framework/MediaFramework/.flexLibProperties -
Web Service stub code different in FB4 than in Flex Builder 3
We have an application that was initially developer in Flex Builder 3 and used the Import Web Service wizard to generate all the webservice stub code we needed. We then upgraded to using Flash Builder 4 and importing the wsdl using the Connect to Data/Service wizard writes different stub code than what we had in Flex Builder 3.
What happened and is there a way to have the Flash Builder 4 wsdl importer write the stub code the way the Flex Builder 3 importer did?I figured out the RDS issue - check the web.xml file in the
WEB-INF folder of cfroot and webroot. I uncommented the
<servlet-name> and the <servlet-mapping> tags which
referenced RDS Servlet, restarted the server, and that took care of
the RDS issue.
Maybe you are looking for
-
After upgrading to Leopard on iMac, I cannot login.
I have gotten my iMac barely yesterday. It came with the Leopard Software Upgrade on CD. Before I installed the Leopard, I had turned it on to see if it works and it did. Right away, I installed the Leopard and it said that everything was successfull
-
Submitting site maps for multiple sites to Google
I sort of glommed on to the end of the thread "meta and google-ing...i give up," but I'll start a fresh post here with this: I have three sites in iWeb, all of which have their own registered Go Daddy domain names and are forwarded to .mac without ma
-
Dear All What is the work flow of PR/PO Thanx in Advance Regards Raveendra
-
No way to add images for story-boards to the project?
Apparently, in all the Great Ideas on building this program (sarcasm included free) no one thought about perhaps "sharing" things other than "documents". So ... got an image on your local computer you want to add as a story-board image? Fuhgedaboutit
-
10.4.6 Intel Weirdness
Here's an odd one...after applying the 10.4.6 upgrade to my MacBook Pro (2.0), everything was working beautifully until I had occasion to re-install some software using the Mac OS X install discs that came with the computer. Upon insertion, the disc