Flex3 :: Loading Modules Compiled With Flex 4 SDK Into An Application Compiled With Flex 3.5

Oct 30, 2010

I am working on a feature for an application that requires Flex 4 functionality. Due to some migration issues of the application from Flex 3.5 to 4.0, I have decided to implement this feature as a module that is compiled with Flex 4.0. The theory is that the application would remain compiled in Flex 3.5 and load the module when it needs it.[code]

View 1 Replies


Similar Posts:


Actionscript :: Load A SWF Compiled By Flex Into A SWF Compiled By Flash CS4

Apr 3, 2011

I compiled a simple AS3 project using Flex 3.5 (also tried Flex 4.1) to create a small swf which draws a simple red square on screen. Nothing too complex that requires special flashplayer support (see code below)

package
{
import flash.display.Sprite;
/**

[Code]....

and tried to load it into a AS2 swf I have compiled using Flash CS4. But that just didn't work. I don't get any errors when loading and the AS2 swf can load any swf, either compiled in AS2 or AS3 by Flash.

View 1 Replies

Flash - Application Compiled By Flex Builder 3 Does Not Trace

Feb 2, 2010

I've built a simple application in Flex Builder 3 with some trace() calls. It's an "ActionScript Project", no MXML or AIR involved. I don't run the app from within Eclipse, I just open the generated html file with Firefox.

I'm using the Flash Player 10 Debug version. I've correctly set mm.cnf to log trace output, following the official instructions. A flashlog.txt file is generate in the appropriate location.

Despite all that, trace output is not shown in the log file. What am I doing wrong?

(I suspect it's a compiler option, but I can find no such option in the project options in FlexBuilder)

(If I do run the app from Eclipse, by pressing F11, I can see trace output but only inside Eclipse, not in the log file)

View 3 Replies

ActionScript 2.0 :: Error Loading *.swf Compiled From Flex

Oct 24, 2006

When i load a swf made by Flex 2.0 in my code (which is made with AS 3.0 *.as classes and compiled with mxmlc.exe) - the rendering of the swf is highly unstable in Firefox.

The .swf file *does* load, and no errors is thrown as far as i can see at runtime when i addChild the loaded swf. When checking ProgressEvent.PROGRESS, i see the file getting loaded.

I can see the loaded swf-file visually in my Firefox-browser about 1/4 of the times i refresh the page. (I clear cache every time).

If i load a jpg-picture or a swf-file published from Flash 9 Public Alpha, (even Flash 8) everything works as a charm.

My Flashplayer is 9,0,16,0 for both IE and Firefox.

I have tried to turn on and off all imaginable settings inside Flex publishing settings, but nothing seems to help, and im renderd puzzled by the randomness of this error.

View 3 Replies

ActionScript 3.0 :: Loading A Compiled Flex Swf With Loader Class

Dec 25, 2008

I'm not sure whether to post this in a flex forum or here,but since the error is generated from AS3 code, I'll try it here.When I try to load a compiled flex swf with the loader class.As a test I tried 2 very basic programs:See the actionscript code in the attached code..As you can see I just load the swf without doing anything.I've found very few threads about this error, and even less solutions...Does anyone know if it's even possible to load a Flex swf?

View 8 Replies

Flex :: Loading Modules In A Mobile Application?

Jan 9, 2012

I am going to write a Flex mobile application which can benefit from loadable modules, but encountered "Modules are not supported for AIR mobile applications." statement here.

Is there any workaround to load swf modules (containing UI with some code) in the mobile application developed for iPhone/Android/BlackBerry?

View 1 Replies

Flex :: Can't Access Dynamic Text Within A CS4 Compiled SWC?

Nov 24, 2009

I have a movieclip created in CS4. I export that into my Flex Project's /lib and then try to access the text. All the textfields have ids, embedded text, and show up in intellisense. But when i run the project, the textfield is blank. What is going on?It appears to only not work when the text is embedded. Non embedded text works fine.

View 1 Replies

Flex :: Cannot Access SOAP Service When App Is Compiled

Dec 9, 2009

I've got a flex app that hits a remote SOAP service and populates a list with the results.

It works fine when i run it through flex builder, but when i compile the application and move it onto a webserver it can't access the services.

I've tried it from a standalone webserver and on my own machine. I'm assuming that there's a security issue that i've missed as i can't think of any other reason why it's ok in flex builder but not when compiled on the same box.

View 1 Replies

Flex :: Can't Find Compiled Resource Bundles

May 26, 2010

I am using Adobe Flash Builder 4.

I've run into this issue with my latest project, but I was able to re-create it with an almost empty project. Here is what I've done.

Created a new Flex Project Created a locale/en_US folder within this project. Added a class that extends SparkDownloadProgressBar. All this class does is attempt to create a Label.

When I try to debug this application, I get the following error.

Error: Could not find compiled resource bundle 'components' for locale 'en_US'.
at mx.resources::ResourceManagerImpl/installCompiledResourceBundle()[E:dev4.0.0frameworksprojectsframeworksrcmx
esourcesResourceManagerImpl.as:340]

[Code]....

The Flex Compiler/Additional Compiler Arguments section does contain "-locale en_US", but I do not want to just remove this as I am planning to have this load different property files based on the localization region at run-time and how I understand it, I will need to add each locale that I am planning to use on the compile argument line.

View 1 Replies

Flex :: Dependencies - How To Get List Of Classes Compiled Into App

Jun 15, 2010

I have several Flex applications in a project, and I would like to know if there's a way to get a list of the classes (and ideally, other assets) that are being compiled into each one. I want an easy way of making sure I've kept things separate and there aren't unnecessary dependencies. Any ideas? I'm running Flash Builder 4.

View 3 Replies

Flex :: Bindings Failing When Compiled Through Flash IDE

Oct 27, 2010

I have created an API in AS3 that uses Flex bindings. The API is being used by two other developers. I am delivering the API in an SWC that includes all code, including the required Flex libraries. The two other developers are building the API into AS3-only projects. One developer is compiling using the Flex SDK through FDT. He includes the SWC in his project and he is able to bind any bindable property. When he uses ChangeWatcher.canWatch on a bindable property, it returns true.

The second developer is compiling using the Flash CS5 IDE. He includes the SWC in his project using the Actionscript settings window (merged into code). But none of the bindings, including ones internal to the API, are working. When he uses ChangeWatcher.canWatch on a bindable property, it returns false. What could the Flash IDE be stripping out that causes ChangeWatcher to stop functioning? What is ChangeWatcher.canWatch actually checking? Is it the metadata, and if so, how can the metadata be preserved in the Flash IDE?

View 2 Replies

Flash :: Is Flex SWC Compiled Differently From Movie In SWC

May 23, 2011

Are Flex swc file encoded differently from say movies file encode in SWC?

View 1 Replies

Flex :: The Components Aren't Compiled To The .swc File?

Jun 20, 2011

I'm trying to compile an SWC file and everything works great until the part where it needs to add components, none of them added added to the .swc file at all.

The original file should be somewhere around 211 KB and when i compile it its only 1.64 KB, after unpacking the .swc and then the .swf inside it i can see that there is no components added at all.

BTW some components showing some errors but i dont think its a reason to not include ALL the components because the errors are like:

Description Resource Path Location Type
1084: Syntax error: expecting rightparen before leftbrace. XXX.as /XXX/[source path] src/com/XXX line 1469 Flex Problem

What could the problem be? ask me if you need some future info cause i don't really know what to include in here cause there is no code it's only a project with a library.

View 1 Replies

Importing Flex Compiled Swf Into A Flash File?

Jul 12, 2011

I've built a form in Flex. When I run the flex project, I get a html file with some js, css and swf files (NOT A SINGLE FILE), swz files. When I run the main swf file alone, many things are working perfectly except at places where it needs to send a HTTPService request. When I use the html file, all works fine.

Now I want to do the following.Import this form made in flex into a flash site (actionscript 3)This form has various ViewStacks, where the user will be travelling through these. I want to reload the form back to its initial stage when the user wants to fill the fields again. Can there be any request sent to the Flash Site from this FORM, regarding the form submission success Can I compile the Flex Project to one single swf file, so that I can use this swf file without any Browser? Can I convert the webpage application Flex Project to an Adobe AIR application [URL]..

View 1 Replies

Actionscript :: Project Compiled As Swf / Load It With Flex And Use Functions It Provides?

Dec 22, 2009

I have an ActionScript project with several classes that i compiled as an swf using Adobe Flex (by creating an actionscript project and clicking on export -> release build)Is there a way to load that swf so i'll be able to load it's classes and use them on a different swf? i know i can use the following code to load an swf file:[code]

View 3 Replies

Actionscript 3 - Disadvantages To Release Flash Application Which Was Compiled In Debug Mode?

Sep 30, 2011

I want to release my flash application not in release mode but in debug mode to see result of trace() after releasing the app.

I don't care that debug mode makes processing speed little slow.Except for processing speed, are there disadvantages to release flash application which was compiled in debug mode?Is it possible that the app throws exception or Flash Players of the app's users crash due to debug mode?

View 2 Replies

Flash :: Debug - Flex App Compiled With Eclipse Fdt Doesn't Show Line Numbers On Errors

Mar 28, 2011

I have firefox 3.6.15 with flash debug version 10.3. whenever an error occurs a popups comes up with the error and a stack trace but it does not line numbers of each leaf in the stack trace which makes it more difficult to debug. how to configure it to actually show line numbers ?

I think it may relate to how I compile my flash application. (i think!) i use eclipse FDT 4.2 to compile and i added the following compiler flags: -debug=true -compiler.verbose-stacktraces i think these parameters should be enough but I may be wrong.

View 1 Replies

ActionScript 3.0 :: Flex Library FileSystem (AIR) - Error "Ytpe Is Not Found When Compiled"

Apr 2, 2009

I created a new Library project in Flex Builder 3. In a few of the mxml classes I wanted to put in this library I use the flash.filesystem.File class. For some reason I can't use it in the classes in the Library project. The error says that the Ytpe is not found when compiled. In another project, which is a Flex project (so no Library project) I can use the File class without any problems. how to use the filesystem in an other way? (I now use it to read/write files on my HD).

View 2 Replies

Flex :: Load Multiple Modules In One Application?

Sep 1, 2010

I don't know if I can do what I want in flex, so imagine this in ASP: I have an aspx page that loads a Login.ascx control, the control checks if login is correct, and if so the aspx page loads the XXX.ascx control (so there is only one control visible).

I want to do more or less the same in Flex: I have the main application with the code that connects to the database, check the login, and if its correct it loads a new module. I have made everything until the module load, I mean, I have the main application (Login.mxml) associated to a Login.as, and a Module.mxml associated to a Module.as. When the user press the login button (in Login.mxml), a method is fired and checks the login. If it is correct, it shows the new module.

My problem is that it is shown in the same page that the login page, instead of "changing" the page. I have used two ways to do that: ModuleLoader and PopUpManager, and both load the new module in the same page.

QUESTION: How can I load, inside an application, a Flex module in a different page?

View 1 Replies

Flex - Compile Large Dependencies Into Modules Instead Of Main Application?

Jul 20, 2010

I've got a module, MyModule which requires a large library:

<mx:Module>
<mx:Script><![CDATA[
import com.huge.library.AwesomeThing;
var myThing:* = new AwesomeThing()
]]></mx:Script>
</mx:Module>

And that large library isn't referenced from my main application, except through MyModule

[Code]...

View 2 Replies

Flex :: Passing Data From Modules To Parent Application To Switch Views In The Viewstack

Jan 11, 2010

I have application with a viewstack witch load 5 modules. each module is loaded via the moduleLoader tag and they all have an id.

Every loaded module has a context menu. the context menu has 5 menuItems. one menuItem for each view for the viewstack.

The context menu is loaded via xml.

this is my application file.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
backgroundColor="#b1b1b1"

[Code].....

the xml of the context menu is in the module but, the context menu is in a as file that extensiate a button.

View 1 Replies

Flex :: Loading Modules From A Certain Folder?

Jan 20, 2011

I'm working with modules and each of it will be compiled (deployed) in a common folder in a webproject. In the main class I defined an array of module paths which I need for loading all these defined modules.

How can I make that more dynamically, for instance, I want to say, load all modules in a certain folder an its subfolders without to know each module by name.

View 1 Replies

Flex :: Loading Embedded Fonts From Modules?

Nov 28, 2009

As some of these languages have very big font sizes (e.g. Chinese), I do not want to load all these fonts into the app. at once but was thinking to put them into different modules and then load only the specific module (depending on which language is chosen in the main app). For this I moved the style part from the main app:

<mx:Style>
@font-face
{
font-family:DedicatedFont;

[Code]....

into the different modules. Above one is e.g. for the Chinese font (cma.ttf).

The modules are created and I can also use the fontstyle (DedicatedFont) in the module itself, but I can not access it from my main application.

View 1 Replies

ActionScript 3.0 :: How Is The Code Compiled And Run

Nov 24, 2008

im wondering how this code is interpretet/run by flash as3.Lets say i have a for loop:

for ( var i:Number = 0; i < 12; i++)
{
runStep1();

[code].....

View 10 Replies

FLA Won't Publish In CS3, Previously Compiled Swf Is Gone?

Jul 20, 2009

I have had this problem a few times lately. When I try to update & publish files that I created in the same version of Flash CS3 and previously published fine, the "Exporting Flash Movie" bar comes up, but no movie compiles. When I go to look for the swf in the Finder (Mac OS 10.5.7), it has mysteriously disappeared, and only the .FLA remains.
 
It doesn't happen with ALL files I publish, only some -- so I know the SWF preview should come up automatically. I normally work off of a shared network drive, but the same thing happens on my local machine. Has this happened to anyone else?? Is there a cache I need to clear or something?

View 10 Replies

Flash :: Add Code To A Compiled SWF?

Mar 19, 2010

Is there a simple way for me to add this to an already compiled swf?

View 2 Replies

ActionScript 3.0 :: Compiled On XP 64-bit / Not Working With IE On XP 32-bit

Jun 21, 2009

I would just want to know if someone know what it's about and how to work around in on XP 64-bit.I've got my ActionScript-program to work on all the different computers I could find and with all versions of IE with IETester. However the guy I was doing it for kept getting a problem when he was uploading files. My upload file-part looks almost exactly like the final example in the FileReference Adobe livedocs:URL...I'm pretty sure he got a HTTPStatusEvent that stopped uploading, though I didn't have a warning for that but I had for the different errors and the rest are just signaling when it's canceled, done, and the progress. HTTPStatusEvent is the only one I'm not entirely sure what it's doing so I think that's the one. Though Googling that didn't solve my problem.Anyway I found some machines with Windows XP 32-bit and seemed to get his problem when using Internet Explorer, though Mozilla was always fine (the guy with the problem was only using IE). I tried shutting down firewalls and changing the settings in IE without any difference so I installed Adobe Flash on one of the computers with Windows XP 32-bit, compiled and uploaded the new swf-file and it works on Windows XP 32-bit. Also on Vista 32-bit it always works with both IE and Mozilla.

These computers with 32-bit and 64-bit XP are several hours with bus apart so I can't do any quick tests (like printing a warning for the HTTPStatusEvent compiled on XP 64-bit, sorry). I Googled for problems with 32-bit and 64-bit XP but I couldn't find anything, with ActionScript 3 that is. It was the common hysteria that 32-bit programs don't work on 64-bit systems that made me re-compile my program, but this was the opposite.Does it seem likely this was even the problem? Have anyone ever had a similar problem? This might also be more of a Adobe Flash-problem, but everything except the FileReference part works.

View 5 Replies

ActionScript 3.0 :: MXML Is In Compiled SWF?

Aug 8, 2009

I've been messing around with SWF Decompiler's latest and found that my Flex3 project's main MXML file is found verbatim in the SWF (in addition to the compiled class). How can I make sure this is not included?

View 8 Replies

Flash :: Bug In CS5 - 3D Rotation In Compiled Clips?

Jun 7, 2010

I have found a bug in flash CS5, I was wondering if anyone else had this? This bug occurs in Flash CS5 when creating compiled clips which use the 3D rotation tool. It appears that if you attempt to convert a symbol which contains a 3D transformation to a compiled clip it will not work correctly. What makes this problem worse is that the error is not reported correctly and so it is nearly impossible to debug.

[Code]...

View 3 Replies

ActionScript 3.0 :: Unused Classes Gets Compiled Into Swf?

Aug 30, 2010

I am building a swc [MY.swc] component with compc. It is suppose to contain base functionality for MY.swfI need to include another (third party) swc [OTHER.swc] into my own swc. This other swc has a reference to mx.core.mx_internal and I suspect that it is this reference that in the end, when I compile MY.swf, results in that all mx classes (mx.*) and all spark classes (spark.*) is included in MY.swf (seen when decompiling)The difference in size between MY.swf with/without OTHER.swc is ~180kB.The only difference (when decompiling) MY.swc with/without OTHER.swc is that the first has a reference to mx.core.mx_internal

Here is the compc part from my ANT task:
<compc output="MY.swc">
<include-sources dir="${project.root}/${SRC_ROOT}" includes="*" />

[code].....

View 2 Replies







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