Flex :: Compile An Existing Project With The SDK

Jun 20, 2010

I'm trying to compile an existing Flex3 project with the Flex4 SDK. I'm getting this error:

Warning: This compilation unit did not have a factoryClass specified in Frame metadata to load the configured runtime shared libraries. To compile without runtime shared libraries either set the -static-link-runtime-shared-libraries option to true or remove the -runtime-shared-libraries option.The resulting file is roughly the same as my old Flex3 compiled .swf file. Playing the resulting .swf file in the Flash Player also gives the following errors:

An Actionscript error ocurred: VerifyError: Error #1014: Class spark.core::SpriteVisualElement could not be found If I set the compiler attribute static-link-runtime-shared-libraries to true, then the error disappears and all is well. However, the size of the resulting .SWF is a couple of 100K's bigger. And that's not what I want.

I don't fully understand the concept of runtime shared libraries, but it seems that with the option to statically link them set to true, the libraries are included in the .swf. However, I like to exclude them from the .swf and only load the needed library at runtime, as my project seemed to do with Flex3 (I didn't know that by the way).

If I understand correctly, playerglobal.swc should hold all the necessary code for the external libraries that my .swf has to load. Do Flex4 compiled files need more libraries? Should I do something with the factoryClass in the Frame metadata tag?

I think my question boils down to this: How do I compile a Flex4 .swf that is the same size as my previous Flex3 compiled .swf?

View 3 Replies


Similar Posts:


Flex :: Rebuilding Existing Flash Project

Nov 23, 2010

I'm not a flash developer.We paid a developer to build us an app. It is nearly perfect, but a few things in the actionscript need tweaking (purely the values of some URL's for action when buttons are clicked.)I believe I need to rebuild the project to pull this information through.I believe he has sent me the full source. Do I need to install all of the dependencies to get this to work? I'm tempted to just go in and make the changes in a hex editor..

View 1 Replies

Actionscript 3 :: Edit An Already Existing Flex Project?

Nov 18, 2011

I am trying to edit an already existing Flex project, and I see a warning on the line "import com.Adobe.utils.StringUtil;" and the warning it shows is

Multiple markers at this line:

-mx
-The import utils could not be found.
-The import StringUtil could not be found.

Well I was wondering what is the difference between import com.Adobe.utils.StringUtil; and import mx.utils.StringUtil;

View 2 Replies

Flex :: Adding Flex Capabilities To An Existing J2EE Enterprise Application Project

Sep 17, 2010

I have an J2EE Enterprise Application Project in which I would like to add a few Flex screens. How do I go about adding Flex capabilities.

I have build Flex/J2EE applications from scratch but can't think of the best way to do this.

I am currently using Flex Builder Plugin for IBM Rational Application Developer 7.5.

View 1 Replies

Flex :: Cannot Add Method / Function To Class Of Existing Project?

Mar 28, 2011

I'm totally new to Adobe Flex Builder 3. I've been assigned a fully functional project but when I want to add the simplest function to any class, I always got the same error :
Call to a possibly undefined method through a reference with static type

For example, in some random class there is a function defined like this :
public function GetID() : String { return m_strID; }
If I try to define a new one like below :
public function GetIDFoo() :String { return m_strID; }

And then I try to call both of them like this:
trace ("This line is ok : " + oPhysicalScreen.GetID());
trace ("This line gives me an error : " + oPhysicalScreen.GetIDFoo());
[Code] .....

View 2 Replies

Flex :: Compile AS Project Via Command Line?

Jan 20, 2011

I downloaded Flex SDK 4 and also an .as project with many classes. In order to learn I want to build them and execute. How do I do it ?

I tried with FlashDevelop, but it's not working and when works compile only one single class.

View 1 Replies

Flex :: Compile Project That Uses Cairngorm With Command Line?

Oct 31, 2010

Has anyone tried to compile a flex project that uses Cairngorm with command line?

View 1 Replies

C++ :: Cross Compile AS3 Code Or Flex Project To Native C++?

Oct 7, 2011

I would like to tak emy existing AS3 or Flex project and compile it to run on native C++ code. Is there a way to do this? What sort of solutions exist? I do not want to change my AS3 code.

View 3 Replies

Flash :: Builder - Know Exact Flex Sdk Version From Existing Project Files?

Nov 23, 2011

I received an inheritance old flex project. I've never worked with Flex. I installed the latest Flash Builder and I need to know the exact version of used Flex SDK. Is there any way to know used SDK version from project files?

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

ActionScript 3.0 :: Adding A Web Url Link To An Existing File: 1046: Type Was Not Found Or Was Not A Compile-time Constant?

Sep 26, 2009

We're trying to add a simple link to an existing Flash file. There looks to be at least 7 separate .as files and a separate swf that loads the main swf which all seems overly complex for what is essentially a page with six buttons on it.However, we need to add a URL to some of the text. So we converted the text to a button, added an instance name of <ssbpurchasetickets_btn> then added the following Actionscript into the actions layer on the frame the text/button appears:
 
ssbpurchasetickets_btn.addEventListener(MouseEvent.CLICK, ssbButtonPurchase);
 function ssbButtonPurchase(event:MouseEvent):void
{[code]......
 
When we publish the file we get the following error which seems to cascade into a whole bunch more errors:Description: 1046: Type was not found or was not a compile-time constant: MouseEvent.Source: function ssbButtonPurchase(event:MouseEvent):void

We added "ssb" onto the button and functions to ensure there were no conflicts but the same thing occurred. If we copy the button into a new file everything works so it must be conflicting with something in the main files.

View 23 Replies

ActionScript 3.0 :: Configure Dropdown Into Existing Project?

Nov 19, 2010

I have a project which was completed, now I need to add a dropdown menu but how do I impliment the code into the existing actionscript I have?

ACTIONSCRIPT / CURRENT
var Xpos:Number = 0;var Ypos:Number = 0;var swf:MovieClip;var loader:Loader = new Loader();
var defaultSWF:URLRequest = new URLRequest("swfs/home.swf");

[code]....

View 6 Replies

Actionscript 3 :: Add A Pre-loader To An Existing Complex Flash Project

Aug 31, 2010

I have a pretty complex flash project that I need to add a pre-loader to.

Currently all the items we have are in the Library inside the .fla file. I've been reading a few of the pre-loader blog entries and tutorials and getting nowhere.

I've tried to create another .fla file that loads the compiled .swf file of the complex project and that did not work as well.

This is my first flash project and I'm pretty inexperienced with it. What do I need to do?

Do I have to strip all the items from the library and load them individually (and have them saved somewhere on a server) ?

How can I create a loader class within the project that runs on Frame 1 and "Loads" all the items that are needed?

View 1 Replies

Flash :: Create Adobe Air Application From An Existing FLASH8 Project?

Jan 7, 2011

Is there any simple way how to pack existing Flash8 project using AS2 and multiple files to to Adobe Air application?

View 2 Replies

Compile Flash Project From Brightcove Closed Caption Module?

Feb 24, 2012

I'm following the instructions here URL... to learn how to modify a closed caption plugin for the bright cove video player.I started by downloading the closed caption module code here:URL...After I downloaded it and unzipped it, I modified the file src/ClosedCaptionsModule.as.Now the instructions tell me to compile this into a SWF file.I looked at all the top menu items in Adobe Flash CS4, but I don't see any Build or Compile command.The Debug movie and Test movie actions are grayed out.

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

Iphone :: Haxe - Flash Project Compiles Fine But Won't Compile Using Hxcpp

Oct 8, 2009

In summary, I think my question is this: How can I force hxcpp to compile haxe code for Flash 8 ? Here's where I'm at. I'm new to haxe, and am trying to get a sample from here: [URL] to compile using hxcpp, in my tests to see how haxe compiled apps work on the iphone. I've gotten other samples to compile fine and put them on the iphone, but when I compile this sample, it complains with things like:

[Code]...

View 2 Replies

Android :: Convert Flex Mobile Project To Flex Web Project?

Jun 29, 2011

I have a flex mobile project and I want to convert it into web-based project. What is the best way to do it.

View 1 Replies

Java :: New Project Created With Flex Mojo's Archetype Throws Cannot Find Parent Project-Maven Exception

Jun 15, 2010

Maven 2.2.1 unzipped,M2_HOME set and repository altered to point to different drive location in settings.xml Flex 4.0:

Installed Created a multi-modular webapp project using flexmojo:

mvn archetype:generate
-DarchetypeRepository=http://repository.sonatype.org/content/groups/flexgroup
-DarchetypeGroupId=org.sonatype.flexmojos
-DarchetypeArtifactId=flexmojos-archetypes-modular-webapp
-DarchetypeVersion=RELEASE

with following options

groupId=com.test
artifactId=test
version=1.0-snapshot

[code]....

Parent pom has swc, swf, war as modules.

Dependency is war->swf->swc.

With parent artifactId of swf, swc, war set to swf, swc, test respectively.On executing mvn on test folder(for that matter clean or anything) I get this following error.

G:Projects est>mvn -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
Downloading: http://repo1.maven.org/maven2/com/test/swc/1.0-snapshot/swc-1.0-snapshot.pom

[code]....

Looks like its trying to download the project from maven's central repository instead of building it.

View 2 Replies

Actionscript :: Disadvantages Of A Flex Project Vs Project?

Oct 20, 2009

I've recently started making a game in FlexBuilder. The game is currently a Flex project. Is there any downside to using Flex as opposed to just Actionscript? A friend of a friend told me that Flex is slower than an Actionscript project. I've been unable to validate this on the internet; is there any truth to that claim?

View 6 Replies

Flex :: Get Project Framework Into ActionScript Project?

Mar 27, 2011

If I create a new flex project with flashbuilder, these are the libraries that get included by default through the Flex SDK[code]...

View 1 Replies

Flash :: Flex Project In A CodeIgniter Project?

Jun 18, 2011

I have a CodeIgniter project and I made a back-office in Flex. I was wondering how I can implement the Flex project in my CodeIgniter since I'm working with routing I can't route to any directory. So there isn't a way to display the back-office.

View 1 Replies

Flash :: Call Flex Project From Other Flex Project?

Sep 16, 2011

I have 2 flex projects which were create in flash builder 4.5.....how can i call one project from second??? the best would execute to the same window.... I'm interesting about both possibility (in browser and air too).

View 1 Replies

Eclipse :: Flex - Putting A Separate Project In The "example" Folder Of A GitHub Project?

Apr 30, 2011

I have one Eclipse Workspace containing two projects. - The first is my actual library. - The second is example code for using the library.When I push this code to GitHub, I don't want two separate projects, I want the example code to go into an "example" folder of the second library.How and where would I do this? From Eclipse, GIT, or GitHub?Or is there a better way of including sample code in GitHub projects? (the example code doesn't actually need any version control)

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 :: Android - What Is The Difference Between Mobile Project And Flex Mobile Project

Jun 5, 2011

I am going to make an Arabic application using Flex builder 4.5. I have two questions that need to be answered What is the difference between ActionScript Mobile Project and Flex Mobile Project. (AS Mobile Project supports iOS and Android but I doubt about it!!)
Is Arabic support available in Flex Mobile Projects or AS Mobile Projects? I know TLF supports Desktop and web apps but does it support mobile platforms?

View 1 Replies

Flex :: Develop And Compile A Flex Application Without Builder?

Mar 8, 2010

How to develop and compile a Flex application without Flex Builder?

View 2 Replies

Professional :: Move Project To See The Not-project Area Around The Project?

Jun 21, 2010

I cant "center" my project, like you can see its "fixed" (yellow lines) in the left side and I cant see "invisible" part of project... (area around the project). how can I move my project so I can see the not-project area around the project. (picture 2).

At the moment situation... (cant see that area around the project)
http://img19.imageshack.us/img19/1186/68553623.png

View 2 Replies

Flex :: AIR App That Loads And Runs Existing AIR Swf?

Feb 19, 2010

I have an existing AIR app whose main content is App.swf.I would like to have another AIR app that hosts and runs App.swf. When I say run it, I mean displays it's WindowedApplication.Here's the code for the 2 AIR projects (imports are omitted for brevity):

// App AIR Project -> App.mxml -> App.swf (it's just a window)
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml">[code]....

I get the following error while App.swf is being loaded:

TypeError: Error #1009: Cannot access a property or method of a null object reference.at mx.managers::SystemManager/initHandler()[C:autobuildgalagaframeworksprojectsframeworksrcmxmanagersSystemManager.as:3001]

I believe the issue has to do with AirAppHostApplication's SystemManager conflicting with App's SystemManager because they are both living in the same app domain. Can an AIR app be written where a WindowedApplication class isn't statically defined, but loaded at runtime by loading a swf and instantiating the WindowedApplication subclass that's contained in the swf.The reason I want to do this is for an automation scenario where I have to assume I don't have the source code for the app I'm automating, but I do have access to the names of the public classes and their public methods exposed for automation. I have complete control over the environment and don't have to deal with any constraints around that, so I can put 2 AIR apps in the same directory, etc.

View 2 Replies

Flex :: Unreachable, Existing Variable?

Jun 13, 2010

I'm new at as3, maybe thats the reason why i don't understand, why the setInterval causes an error.

<mx:Script>
<![CDATA[
import flash.utils.setInterval;

[code].....

View 1 Replies







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