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


Similar Posts:


Flex :: Modules V/s Components For A Large Scale Project?

Feb 8, 2010

I am planning on a Flex project that involves incorporation of a lot of features.

Each 'feature' can be a component / module.

Which is preferred and what is the difference between a module and a component?

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 :: 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 :: 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 :: Why Application Cannot Compile Sometimes

Nov 24, 2009

Sometimes when I compile my flex app, I got this error

Unable to create source GeneratedAsset31_dataClass. WebCe line 25 1259045578886 1546

But after I cleaned the project, this error disappeared.

It's not a big problem but very annoying and I can not find any clue by search the internet.

View 1 Replies

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

Flex :: Performance - Printing From AIR/Flex Application Causes Large Files Being Sent To Printer?

Oct 25, 2010

I am working on an Adobe AIR (2.0) application that contains a feature to allow users to print documents (such as salary slips). Those documents are originally in PDF format. Due to circumstances we cannot directly display those PDFs in the AIR application (for example using flash.html.HTMLLoader). Therefore we convert the PDFs to SWFs (using the pdf2swf tool, see The SWFs are loaded into the application using a mx.controls.SWFLoader, like so:

<mx:SWFLoader
id="salarySlipImage"
loaderContext="{someLoaderContext}"

[code].....

View 2 Replies

Flex :: Come Back In Main Application On Click Of Logout Button Which Is In Application's Component?

Aug 4, 2011

How I will be back in Login Page after click of logout which is in application's component.

Project.mxml

<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" width="100%" height="100%"

[Code]....

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

Flex :: Flexbuilder - Organize Application For Compile Performance?

Jun 28, 2010

I'm preparing to reorganize & refactory a Flash Builder application. The goals of the reorg are 1.) keep compile times for the part of the project I'm working on as fast as possible, 2.) keep the unrelated parts separate for code reuse. Goal #1 trumps goal #2 if there's a trade-off.

Currently, the app has assets in one project, core functionality AS3 in another project, and the MXML in a third project that links to the other two.

Would moving resources/code into swc libraries help compile time? What about compiling assets into an swf and embedding that into the main application?

View 2 Replies

Flex :: SystemManager.addEventListener Of Sub Application Is Not Working In Main Application?

Mar 31, 2011

i used systemManager.addEventListener in sub application...... it is working well....but when i load sub application into main application through swfloader it doesnot working..

View 1 Replies

Flex :: Build A Large-scale Application For Free?

Oct 13, 2010

I want to create a fairly large-scale Flex web application that has a similar interface style to Grooveshark.

When it comes to web development, I have always used the common PHP/HTML/JavaScript technologies. Now, I want to try something new and develop a RIA using Flex.

Using PHP/HTML/JavaScript, I am able to develop my entire website with free tools. Now, I'm wondering if I am able to do the same thing with a Flex web application?

Is it possible/feasible to develop a Flex web application for free? If not, what would be the lowest cost I would need to spend? And, whatever the option, what are the tools that would be needed?

View 2 Replies

Php :: Load A Sub-application From A Main Application In Flex?

Jan 19, 2010

I've created a client with login acces in Flex. After the succesful login i have to show a table based on a mySQL server. The database is composed by some tables, and I have created 6 flex mxml components with each own scripts for each of those tables. How can i load sub-applications, for example with a PopUpButton or a TabBar in the main application?

View 1 Replies

Professional :: CS5 Fails To Compile Large FLAs

May 4, 2010

There was this problem with CS4 which was solved with an upgrade and now CS5 again fails to compile my larger FLAs. Sad to see the IDE going backwards.

View 12 Replies

Actionscript 3 :: Flash - Why Size Of An .ipa File Is Large As I Export A Mobile Application As IOS Application

Aug 18, 2011

I have made one one mobile application in flash builder using flex mobile project I have a question that "why size of an .ipa file is large as I export a mobile application as iOS application.???? in compare to that same application for android takes small size!

View 1 Replies

Iphone :: Compile Flex Application For Iphone Using Adobe Flash CS5?

May 1, 2010

How to compile your flex (Flash Builder) application for Iph*ne Using Adobe Flash CS5? A User can Install an app having it as compiled binary?

View 1 Replies

Flex :: Dependencies In Data Binding

Aug 20, 2010

I'd like to add a derived property to flex:[code]However, derived won't update when I change a or b.Is there a better (faster) way to make derived update than giving a and b setter methods which invalidate it?added keyword "get".This makes more sense now, I hope.

View 3 Replies

Flex :: Interaction Between Main Flex Application And Component?

Apr 30, 2010

I made a login component for my flex 4 application, and i load this component from my main flex application with:

<ns1:Login id="page_login" visible="true"></ns1:Login>

Now i want to change the visibility from true to false, from the login component.

View 1 Replies

Add Scroller In Main Application/Windows Of Flex?

Jun 21, 2010

I am new to Flex. I am trying to add a scroller in my main application/windows. Is that possible? I found out it is possible to add scoller bars in DataGrid, like horizontalScrollPolicy="on". How to implement it in containers like Group,Panel and etc?

View 2 Replies

Flex :: Get Variable From ItemRenderer To Main Application?

Jun 22, 2011

I have a List with TextInput as item renderer. I want to get the value entered in the TextInput (form the TextInputItemRenderer) and pass it the main application to do some checks(upon tapping enter on the textInput -- see code below).

I know that we can do it thru dispatching event but I still don't understand how to pass a variable from the ItemRenderer to the main app.

<?xml version="1.0" encoding="utf-8"?>
<s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"

[Code]....

View 1 Replies

Flex :: Change Value Within Component From Within Main Application?

Jul 19, 2011

So I'm using a custom auto suggest component that I found online at [url]... The background color for the item is set within the following folder[code]...

I use this component from within a component I created called "position.mxml" that is located in a folder named "modules". Is there any way that from the position module, I can change the background color of the autosuggest box?

View 1 Replies

ActionScript 3 :: How To Use Skin From Main Application In Flex

Feb 11, 2012

I have an application with a SWF loader. From the loaded SWF file, I'm accessing public variables from the main application with this:
[Bindable] public var global:Object = FlexGlobals.topLevelApplication;
Alert.show(global.myvar);
This all works perfect. I have a MXML skin file (for buttons) in a directory called 'skins' in the main application. Is it possible to use this skin in the child applications?

I've already tried this, unfortunately not working:
[Bindable] public var global:Object = FlexGlobals.topLevelApplication;
<s:Button label="My Text" skinClass="{global.skins.menuButtons}" />
And this, but then it can't compile anymore:
[Bindable] public var global:Object = FlexGlobals.topLevelApplication;
<s:Button label="Button 1" skinClass="global.skins.menuButtons" />
<s:Button label="Button 2" skinClass="FlexGlobals.topLevelApplication.skins.menuButtons" />
Is it possible what I want in another way or do I have to copy the skin to the all the projects where I want to use the skin?

View 1 Replies

Actionscript 3 :: Circular Dependencies In Flex Libraries?

Sep 21, 2009

I have two Flex libraries that reference each other. Both use link type "External", and I manually load then with the Loader class.I'm getting the error "A cycle was detected in the build path of project: foo".

View 2 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 :: Get Component Variables Values Into Main Application?

Mar 27, 2012

i have a component which gets the data selected by the radio button

<mx:itemRenderer >
<fx:Component id="radio">
<mx:RadioButton selected="false" useHandCursor="true" change="item_changeHandler(event)">

[code]......

View 1 Replies

Actionscript :: Collect Dependencies From Adobe Flex Files?

May 14, 2010

I'm looking for a way to collect the file dependencies from Flex ActionScript and MXML files. I was hoping that mxmlc could spit them out (like gcc's -M option), but its option list doesn't seem to have anything relevant. I could write a parser, but would prefer not to reinvent the wheel if it has already been done, particularly given the two very different languages involved. In particular, star imports and in-package implicit imports could be troublesome.

View 2 Replies

Actionscript 3 :: Determining Linkage Dependencies In Flex Applications?

Jun 15, 2010

I have a large Flex project with two Applications in it. A lot of code is shared between these Applications. However, the smaller of the Applications does not require much of the code that the larger one does. I'm trying to ensure that code that isn't required by the smaller application isn't getting compiled into it.

View 1 Replies

Flex :: Grails - BlazeDS Failed Due To Unresolved Dependencies

Oct 4, 2011

I trying to integrate Flex with Grails through BlazeDS but I am stuck with the very first step i.e installing BlazeDS plugin ... it fails everytime i try to install. Following is the complete stacktrace

Resolving plugin JAR dependencies ...
Warning
module not found: com.adobe.flex#flex-messaging-opt;4.0.0.14931.1
grailsHome: tried
D:PlatformsGrailsgrails-1.3.7lib/flex-messaging-opt-4.0.0.14931.1.xml
[Code] .....

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







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