Flex :: Add VOs Into A Library Project When Developing Using Modules?

Sep 4, 2009

I'm developing a module based applications in Flex and I was thinking about moving all my Value Objects (VOs) into a library project

Current Structure: I have a project that consist of a shell application and 3 modules. The modules contain about 10 custom components in each that are dynamically loaded at run time. My problem is component A ( in module A) needs to pass data to component B (in module B). So when this happens I move the VO that component A was using to a common folder. I then pass the VO and have component B pick that up and do what ever it needs to do with it.

So what I was thinking was using an existing library project and adding all my VOs to it. This way I'll never have to move a VO from the module to a common folder so both module A and module B can access it. The basic idea is I want to be able to complete abstract any module from shell into its own widget or Air app with out depending on any other modules.

View 2 Replies


Similar Posts:


Flex :: Organizing Functionality Modules In Project?

Apr 19, 2010

What's the best way to organize functionality modules in a flex project? I saw some people put all modules in one view stack ,and so the application interface is only load once, but when the application get larger, the whole compiled swf would be very big. If we put swfs in different pages, we pass request parameters through HTTP request, we lost the benefits from flex RPC services, slow loading, and we can't see any superior comparing to php,asp,jsp... what's the best practice to organize front end architecture?

View 3 Replies

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

Html :: Parser Library In As3 For Flex Project?

Nov 8, 2009

Simple html parsing library, written in as3 for a flex project?

View 3 Replies

ActionScript 3.0 :: Use Flex Classes From Flex Library Project?

Mar 4, 2012

If I create a Flex Library project, am I able to use Flex classes from within the library?

The reason I ask is because I'm working in a Flex Library project and trying to use the mx.rpc.soap package. I can import the the package without an issue, and even get code hinting making me think the package is available. Of course I can even see the swcs included in the project. However, when I try to instantiate the WebService class, I get an error when building. Flash Buidler IDE doesn't tell me what the error is, and I don't go into debug mode when I continue with building. I haven't tried connecting to the service yet, just importing the Class and creating a new instance.

View 3 Replies

Actionscript :: Vector Class In A Flex Library Project?

Dec 20, 2009

i seem to be having some problems with the Vector class in actionscript 3 in a Flex Project or an ActionScript Project it is possible to do this var v:Vector.<String>; But when i do the same thing in a Flex Library Project (to create an SWC) then i get the following error on that line of code 1046: Type was not found or was not a compile-time constant: String.

so when using Flex Library Project it fails..., but when i compile the same thing using compc there are no problems any idea why only the library project is complaining about Vector ?

[Code]...

View 5 Replies

Flash :: Use Open Chart (or Any Library) In Flex 3 Project?

Jan 22, 2010

I want to use Open Flash Chart in Flex3/AS3 project?

I mean,How Can I use Open-flash-chart in Flex application client side.. ??? (I use FlashDevelop)

Can i do that by just adding .swf file?? If yes? then where to add? I am not using FlexBuilder, I am using FlashDevelop OR Command line for compiling..

Or I have to add .swc file.. ??? If yes, then how to generate one for open flash chart..???

View 3 Replies

Actionscript 3 :: Flex Library Project: NativeMenu Vs. ContextMenu?

Jul 13, 2010

I have a Flex Library Project which has both Flex specific classes, and Air specific classes.When I reference the library in an Air project, the compiler complains about an overriding contextMenu in mx.containers.Panel, saying that the param should be of type NativeMenu (instead of ContextMenu). If I switch it over to NativeMenu then it compiles fine.

The issue is when I reference the library in a Flex Project. This time it complains that it doesn't know the type NativeMenu. If I try to change it back to ContextMenu, then I get the same error as above.I've searched google to no avail (found that someone else encountered the exact same problem: http:url.... )

View 2 Replies

Flex :: Access A SOAP WebService From Library Project?

Oct 29, 2010

I would like to access a soap webservice from a class in a Flex (AIR) Library Project.

How can I instantiate a WebService and get data from a SOAP WebService.

View 1 Replies

Flex :: Put Library Folders Relative To Project In FlashBuilder?

Mar 27, 2011

If I create a new ActionScript project with Flash Builder and want to add some library (for example Tweenlite) where do I have to put the gs folder of Tweenlite relative to my project folder? and what do I need to setup in the project settings in order to be able to use it?

View 2 Replies

ActionScript 3.0 :: JQuery - Import Flex Library In Project?

Feb 18, 2010

I wonder if there is any way to use a JQury code in my Flex application? Can I import this Library in my Flex Project?

View 1 Replies

Css :: Flex - Properly Reference An Image In A Library Project File?

Sep 26, 2011

My flex (flash builder 4) project references (embeds) a flex library project (ReusableFx). I have it working fine when it builds and runs, but I am struggling with a Design mode error "Design mode: Error during component layout...". In the flex library project there is a 'default.css' file which references a png file. Specifically like this:

[Code]...

It works when I build and run, I see the icon, but the problem is that design mode must work different in flash builder and breaks with this line. I tried a few things with no difference:

[Code]...

View 2 Replies

ActionScript 3 :: Library For Similar To JQuery Touch For Developing IPhone Applications With Flash?

Aug 5, 2011

Is there a library for ActionScript 3 similar to jQuery touch for developing iPhone applications with Flash?

Basically there is a jQuery library that emulates the native cocoa gui widgets with JavaScript for mobile websites, just wondering if there is something similar in Flash.

An acceptable answer would include, 'there isn't one'.

View 2 Replies

Actionscript 3 :: Prevent MXML Custom Component In Flex Library Project Always In Default Package??

Mar 31, 2010

I'm creating some custom components and backing code. I've created a Flex library project in Flash Builder which compiles to a SWC. The problem is now that all my MXML files get compiled into classes in the default package, making the whole thing a big mess.Is there a way to set a package declaration for MXML files? After all it just gets translated into AS3 classes. This seems to work in regular Flex projects using a namespace declaration so I'm at a loss how that is supposed to work. The other option is building out all the components in AS3 which I'd like to avoid.

View 1 Replies

Flex :: Flash Loader Demands Library Files In Folder Other Than Folder Where Main Project File Is?

Jul 29, 2010

i have situation in which i have some library projects, say

"DataProcessors","Lib2"

, included in my lets say "MainProject" (a web project) placed on directory

"E:in-debugMainProject.swf"

, when i build the project it automatically place all the libs .swf in its "E:in-debug" folder, but when i debug or run the project it it gives loading error that

"E:DataProcessors.swf"

not found but i have those lib files on

"E:in-debugDataProcessors.swf"..

what could be the possible errors.

View 1 Replies

Asp.net :: Get Flex Modules From MVC?

Aug 18, 2010

We´re developing an ASP MVC application witch the View (aspx) has a Flex embed. This aspx/flex view is composed by a flex application and several modules. when we call the application url [URL] the server invoke the method the will return the ActionResult that represents this action, in this case the ~/Views/Flex/Index.aspx (with the Flex app). However when the ModuleLoader, in the Flex application, try to load a module an error occurs. The problem is that the Flex application can´t directly access the modules folder (~/Views/Flex/modules/module.swf). Are there any way to get the module through an ASP MVC action? Or the best approach is to allow the access to this folder through web.config?

View 1 Replies

Flex :: Using RSLs With Modules

Feb 23, 2010

We are building a fairly complex application that we need to be able to release different parts of at different times. To help us solve this problem we are using RSLs and Modules.so let me describe the projects (names have been changed to protect the innocent)[code]We have one application client that loads the areas of the application as modules. We have a core RSL that does things like login and holds entitlements and provides an API for the modules to access this sort of state and also to communicate with each other.

When we load client we only want the core rsl to be loaded as that is that is currently required. When the groceries module is loaded we want the groceries rsl to load and likewise when the bakery module is loaded we want the bakeryCore rsl to load.In reality this isn't what happens. If we set the projects up like that at run time the core rsl loads at application startup but the module RSLs do not load when the module is loaded. If we run an application from the project that houses the groceries module then he rsl loads when the application loads but not when the module does. We need a way of loading the rsl when the module loads.At the moment we specify groceriesCore and bakeryCore in the client application so they all load when the client loads. This is obviously not a good idea as when we add another 30 departments we don't want all these departments being downloaded at application startup - we only want them to be downloaded when they are required - when the application loads.

View 1 Replies

Flex :: Why Do Modules Keep Getting Rebuilt

Aug 26, 2011

I have a flex project, which has a main application, and then a number of small modules (17 of them). For reasons I have not been able to figure out, when I do a 'debug-compile' to test, frequently (but not always), it decides to rebuild the modules, though, nothing within the modules has changed in any way. Without the modules re-compiling, it takes about 5 seconds to build the app, but with it, it's upwards of 2 minutes. I assume its that something the modules all need is getting changed, but for the life of me, I can't figure it out.

View 1 Replies

Flex :: Flash - How To Access Modules

Jul 8, 2009

I have build a module in Flex that I call myModule, this module has a method myMethod. Now I use the ModuleManager to load this module.

mod = ModuleManager.getModule("myModule.swf");
mod.addEventListener(ModuleEvent.READY, modEventHandler);
mod.load();

now I want to access the method

(customComp as myModule).myMethod()

where customComp is the DisplayObject created by the factore.create() method of the module info. This code will not compile as myModule is not a defined property. Can someone help me with that? What do I have to import? The myModule.swf is not an asset, it lies in the bin directory of my project.

View 1 Replies

Flex :: Share Components IDs Through Modules?

Apr 16, 2010

Are IDs attributes shared between different modules in Flex ?

i.e. I have a text area with id="text1" in my menu.mxml file.

And I want to write on it from another module mainArea.mxml

The debug gives me error, so how can I share different components ?

View 1 Replies

Flex :: Flash - XML Declaration Available In Modules?

May 20, 2010

I'm building a Flex/Flash Builder 4 application that loads data using E4X/XML, like this:I originally build an application that was a single MXML file which loaded this XML file and built a form from the data.I've now build a main menu screen with a button to load the form screen as a seperate module. How do I get the XML declaration to work in this module without loading it again.

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 :: Common Function Across Modules?

Jun 25, 2011

We are working on a project where we have multiple modules- all these share a common set of functions like rounding, string parsing etc.Currently, we have added these functions into the parent container (which calls these modules) and use them in the respective modules. Likewise, if we have to share variables between modules, we add them to the parent module- so it becomes shareable across.Is this the right approach- both from a performance and structure perspective?

View 2 Replies

Actionscript 3 :: What Is The Sense Of Flex Modules

Jul 20, 2011

As far as my understanding goes Modules kann be used to split an Application into different parts. A big advantage seems to be to be able to load Module after Application Start, to get a better Startup performance. I personally would like Modules to make me able to have an own Code Sandbox for the Module Code. So neither the Main App Code nor the Module Code should influence each other. But for examples CSS Styles from modules influence the Main Application an visa vers. My Question:

1. What can I use Modules for beside Runtimeloading ?

2. Are there options to run code in an own sandbox ? For Example via Loading swf assets ?

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

Flex :: IDE Does Not Treat Mx:Module Descendants As Modules?

Jan 12, 2010

I'm playing with Modules and they work as advertised: the module swf's ares built and deployed in the output directories automatically. My problem is that if I use descendants of mx:Module, the IDE does NOT do all this nice work for me. I've listed the module in the Flex Modules section of the project properties, but still nothing. I'm going to end up repeating a lot of code in each module (to fulfill an interface) if I cannot figure out how to make the IDE do its thing.

View 1 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 :: Include Resource Bundles In Modules?

Sep 21, 2010

In the simplest of Flex Projects, create an MXML Flex Module and then load it using the ModuleManager.Create an ActionScript class that extends Module and then configure your project to compile that into a Module.Load this new module instead. The project compiles, but crashes when running with the following error:"Error: Could not find compiled resource bundle 'containers' for locale 'en_US'."I believe the compiler is failing to compile the required class definitions into ActionScript only module, while it succeeds for the MXML module.I can see that my skeleton MXML module is slightly larger than my ActionScript module (66KB vs. 45KB).

View 3 Replies

Flex :: Load Multiple Modules In Sequence?

Oct 15, 2010

I'm planning to break my Flex applications into different modules and need some advice regarding the loading of modules.Currently, on load of the application, I need to add 5 modules as children to HGroups under a viewstack.I'm using a ModuleManager to perform this and listens to the ModuleEvent to add the elements as IVisualElement under the HGroup.

View 1 Replies

Flex :: Modules Does Not Inherit Css Styles When Built With Ant

Nov 26, 2010

I'm creating a Flex 4 application which contains different modules in it. The main application contains a style sheet and the modules inherit the styles defined in this file.Its working fine when the swf's are generated using Flash Builder. But when I'm generating it using Ant script, the modules does not inherit the styles and everything looks weird.I added isolate-styles="false" as an additional parameter to mxmlc, but still its not working.

View 2 Replies







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