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


Similar Posts:


Flash :: Flex Declaration Order Bug?

Feb 11, 2011

In Flex you can use Declarations tags fo non UI elements.Problem:The order of classes inside the Declaration is sorted ascending or something...Meaning that in this example, AClass will be instantiated before BClass:

<fx:Declarations>
<local:AClass />
<local:BClass />

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

Flash :: Flex Load Modules READY Event Not Fired

Oct 12, 2009

Using flex builder with flex sdk 3.4.0 if the module is remote like url...The READY event is never fired, i don't understand why.Do you get the same behavior? Original code is from url...[code]

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

XML :: Prepend Declaration To Flex E4X Object

Aug 20, 2010

How do you add an XML declaration - < ?xml version="1.0" encoding="UTF-8"? > - to a Flex XML object? The same thing you could do with the old XML - new XMLDocument class and the xmlDecl property.

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

Css :: Embed A Flex Assets Class In A Declaration?

Dec 8, 2010

I have an SWC which includes a number of Assets for my project. Within this SWC is also a static AS file which contains Class declarations for each image in the library. For example, the SWF contains these images:

[CODE]...

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 :: 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 :: When Do The Properties In A Mxml Declaration Get Committed To The Object

Feb 1, 2010

If I do something like:

<myComponent id="foo" title="bar" />

The parameters don't seem to be available immediately within the component. When do they become available?

View 2 Replies

Actionscript 3 :: Flex 4 Syntax Declaration Inside Of A Method?

Aug 13, 2010

One (dumb) question: Is it possible to use flex 4 syntax declaration inside of a actionscript method? For example, something like that:

[Code]....

View 2 Replies

Flex :: Use A String Constant In ID Declaration Of An MXML Component?

May 25, 2011

I was wondering, if you have multiple components files that uses the same child component (but with slightly modified parameters), is it possible to assign that child component an ID with a String Constant?[code]...

View 1 Replies

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

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 :: 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 :: 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

Flex :: Modules Over MXML Component Architecture?

Dec 2, 2010

I am actually in the process of Architectural of our project. We have choosen Mate framework. The project is not so quite complex, but what advantages i would get over MXML when i choose Modules.

Main App - > Views - > Events - > Maps - > Services [PHP or Java]

When i come up with Modules based Architecture, it seems to be good but i doubt it should not end up with tight coupling and unwanted issues which may break the head later to solve.

Main APP - > Modules - > Module Interface -> Events - > Maps - > Services
[PHP or Java]

What advantages i do get if i choose Modules over MXML Component? What is the prefered and the best way to Architect an FlexApplication? Since the Application is going to communicate with Backend, do we need to make the frontend more complex?

View 3 Replies

Flex :: Embedded Images Do Not Work With Modules

Dec 17, 2010

I have an Image component with a source set to an embedded image. When I load this module into a shell module, the image doesn't show up. Why? I have to put an instance of that image into the shell module's codebase just to make it work. That shouldn't be, right?

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 :: Eclipse Adding Flex Modules

May 25, 2010

Is it possible to add multiple Flex Modules at a time to be built in a project as opposed to adding them one by one, as this is becoming a very tedious task.This is for both Eclipse and Flash Builder 4

View 1 Replies

Flex :: Parent App Access Versus Events In Modules

Feb 2, 2010

Inspired by this Flex question, is it seen as better practice to dispatch an event back to the parent app, as opposed to calling a method on the instance of the parent app, from within a module? To me it seems that the module shouldn't know what methods are available at the parent, as such approach leads to tight coupling.

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







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