AS3 :: Flex - Module No More A Module When Extended?

Jan 25, 2010

I have created a module in Flex like below:

modules/ModuleBase.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Module xmlns:mx="http://www.adobe.com/2006/mxml">

[code].....

View 1 Replies


Similar Posts:


Actionscript 3 :: Flex: Are Unused Module Project Files Included In The Module Swf's

Jan 11, 2011

Currently optimizing an application at work. There are many files in some of the module projects that are not used by the exported (release build) Module.swf's. Are these unused files included in the swf's?

View 1 Replies

Actionscript 3 :: Send Custom Event From One Module To Another Module?

Jan 2, 2012

I have created a modular application. I have two modules, for example Module1 and Module2.I have loaded these modules in my application. I am using Parsley in my application. I have loaded separate different context builder in both modules.

But when I am dispatching event from Module1, I am able to listen that event in that Module1 but I am trying to listen that event in another Module2. I am not able to listen that event in that Module2 through Parsley.

View 2 Replies

ActionScript 3.0 :: Embeding A Flex Module?

Aug 28, 2009

i cant find info on this anywhere on google, even adobe's description doesnt work. basically i have figured out how to embed and access the children of a swf built in flash (YAY!!!), but theres another problem now.

a flex module complied to flash behaves differently, and embedding it doesnt seem to work, at all.

however this application pretty much depends on the modules being loaded with the main application so embedding the module is vital. i've tried countless techniques and so far the only thing i know woks so far is:

[code]...

View 1 Replies

Flex :: Module Development Workflow?

Oct 6, 2009

I have just started looking into using Modules in Flex and would like to know how you all go about developing them.I understand how to use them (load, unload, application domains, shared classes, etc.), but I'm wondering what a good workflow is in creating them and using them in multiple applications.If I were building reusable application components (text editor, image cropper, compass, whatever), and I wanted to reuse them in many different applications, it seems like I would:

1) Create an Application specifically for one of those modules

2) Create a Module inside that Application

3) Develop the Module by itself, make it work right

4) Link shared libraries to it somehow (like library projects I would use between all of the modules)

5) ... then I'm unclear what's next.I now have lets say 10 Module/Applications, and I want to start mashing them together into usable applications.What's the best way to do this?I would like to not have to copy-paste code and swfs, using something like git submodules if an equivalent is possible.

View 1 Replies

Flex :: Different Uses Of Component And Module In Application?

Jun 9, 2010

purpose of component and module of flex app

View 1 Replies

Flex :: API - How To Load Class That Is On Another Module

Sep 6, 2010

I'm trying to build my flex modular app, and got the following scenario
Portal (which includes, 2 modules:)
-Mod1 (.swf)
-Mod2 (.swf)

Also, I have Mod1-API (.swc). The Mod1-API, defines interfaces which are implemented on the Mod1 (.swf). Both the Mod1 and Mod2 swfs import the Mod1-API swc. I'm trying to call the API method on the Mod2. On Mod2 I've the interface, since it is shared via the Mod1-API project. What I'm trying to achieve is the real implementation class loading on Mod2, via reflection, using the getDefinitionByName method, but it says its not defined. How from the mod2 load a class that is on the Mod1 project, returning just the interfacce to the mod2 so it can call methods just like an ordinary API method?

View 1 Replies

Flex :: Getting All Info From An Object/module?

Jan 6, 2011

I'm wondering if there's any reasonable way to get a reference to an object in Flex, and look through everything in every sub object (every property and everything). That is, I want to know if I can completely map all of the data within an object, from another object. I'm aware that this wouldn't work for private (or protected) members, but for anything public, it should be possible, correct?

View 1 Replies

Passing Param To Flex Module Via Url?

Feb 5, 2011

Im using a few modules repeatedly in a Flex app and varying the conditions by passing in params via the 'loaderInfo.url' var. This works fine for the first iteration of a given module but subsequent attempts will always see the same params as the first creation regardless of what is actually used.

[Code]...

When I view the param in the 'CreationComplete' handler (eg 'trace( this.loaderInfo.url );') its the same every time (for a given module) regardless of what is actually passed in via the ?param=string. What am I doing wrong?

View 2 Replies

Flex :: Invoke F3 Module From F2 Application?

Feb 13, 2011

I have an application built on Flex 2. I am writing a new application (module based) in Flex 3. Will these be able to co-exist? Can I invoke Flex 3 module from Flex 2 application?

View 1 Replies

Flex :: 4 - Pass Data To The Module

Apr 18, 2011

I have a Flex 4 application that loads a module. Everything works fine except that I cant create and object or cast an object to a type of my module. At run time it throws an error. I'm not sure if there is an issue with modules, Flex4, and spark? I've tried many different ways to set/cast these objects, but nothing seems to work.

[Code]....

View 1 Replies

Flex :: How To Popup TitleWindow In Module

Jun 22, 2011

I want to open TitleWindow in flex Module.

My Main page is Application Page and I want to open Module page from Main Page. In Module page there is TitleWindow control. I want to popup title window in Module Page.

View 1 Replies

Flex :: Communication Between Module And Application?

Jul 21, 2011

Ok, modules in Flex are popular but I have no idea why documentation and examples on the different uses of Flex modules can be so scarce.Anyway, for this question, I will take the classic Employee/Department example. I have a main.mxml that contains an mx:TabNavigator. Each tab is loaded by an s:ModuleLoader.Tables: Employees {empID,empName,deptID}, Deparments {deptID,deptName}The Tab Navigator contains only one tab (for our example) called Employee. I have an Employee.mxml module. In that module, I have a datagrid that is populated with Employee details. I use the getEmployees($deptID) function. This function, as you may guess, returns me an array of Employees who work in a particular department.

Outside the TabNavigator, I have a departmentDropDownList that is populated with departments.deptName.My objective is to load the Employee module when I select a particular department from the DropDownList. I have a changeHandler for the DropDownList that can give me the deptID.

protected function departmentDropDownList_changeHandler(event:IndexChangeEvent):void
{
MyDeptID=departmentDropDownList.selectedItem.deptID;

[code].....

View 3 Replies

Flex :: Loading Module With Progress Bar?

Aug 16, 2011

My application has a couple of modules which am loading as thus in my application.

<local:moduleloader url="Module1.swf" id="modulel" />
<local:moduleloader url="Module2.swf" id="module2" />

Then while loading each module I am showing the progress bar. The progress bar shows but does not go away. It remains above the whole frame of the application. The module loader is as follows:(Also note that in Flex 3 the same works, but am using Flex 4 and in Fx 4 it does not)

<mx:ModuleLoader 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 2 Replies

Ios :: Opening A Module Created In Flex Under Ios App?

Nov 30, 2011

We are creating an ios app, In which we want to use certain interactive functionality which is created in flex. Though flex 4.5 does gives an option to create an ipa file and lauch it in app store as a app. But we want only a certain functionality in flex and want to develop other functionality using Objective C only. Is that possible? Can we use a module developed in flex inside an objective C app?

I have searched and found out that we can make .ane packages through flex. These packages use .a file to access the native ios functionality. To know about Adobe Native extensions (ane) click here

To see the sample provided by adobe click here. All I want to know is Can we include this ane in ios app, being developed using objective C using xcode 4? Is there any way I can use a module developed in flex under my cocoa app?

View 1 Replies

Create A Module For A Flex Application

May 27, 2009

I'm trying to create a module for a flex application, and I want to send notifications to clients. I've been looking at the BlazeDS messaging service to push out the notifications to clients, but I want to be able to send certain updates to certain clients. The Flex notification framework doesn't seem to allow this - if we have a field in the message with a value of the user's user id for example, any client could theoretically subscribe to all messages for any given user id, and there's no verification on the server side to make sure that the client that has subscribed is logged in as that user id.Is there something I've missed here, or is the best way to handle this writing my own polling mechanism on the client side?

View 2 Replies

Overridden Styles For Flex Module?

Jun 11, 2009

Can a flex module have styles different from the main application which loads the modules? Meaning... can I have a main set of styles for the application, and separate styles for each module.. with each of them rendering their own styles without disturbing the other at runtime?

My specific case:The main application is developed by me... and the modules are developed by different people who want to contribute to the main application. I want to provide some way for each of the module developers to have their own styles for their modules, without touching the main application or its styles.

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

Javascript :: Embed Module Within Flex Application?

Mar 15, 2010

I have a large module written in JS which uses Canvas to draw and animate trees. This module was written for a product which is now being migrated to flex.

Is there a way in flex to embed this JS module as is? Or would I have to rewrite the whole module in AS3 (shudder)? Further, if embedding is possible, would user interactions (mouse clicks) etc. work seamlessly?

An example of the tree structure I am talking about can be found here - [URL]..

View 1 Replies

Flex :: Dispatch Event From Application To Module?

Mar 29, 2010

Is there a way how modules can listen to parent application event? My current solution that works is:

private function directoryRemoteObject_saveCompany_resultHandler(e:ResultEvent):void
{
this.directoryModuleLoader.child.dispatchEvent(new CompanyEvent(CompanyEvent.COMPANY_SAVED, e.result as int));
}

this means that I need to dispatch event for every module.

View 2 Replies

Android :: Flex - Loading Module On An Air Application?

Dec 13, 2010

I'm building an Air for Android App and I'm having problems loading a flex module. Does anyone know if loading modules is possible???

I built a simple app with just a ModuleLoader in it, which loads a mx:module. The module has only a simple mx:Label with a "Hello World" text.I build a .air with this. Then I build a .apk with the followin adt command.

adt -package -target apk-emulator -storetype pkcs12 -keystore certificate.p12 hello.apk hello.air

The application works just fine when running it on the PC, but when I do it on the apk-emulator it just goes blank and throws error #2032.

View 1 Replies

AS3 :: Flex - Unload Module Event Handling?

Mar 25, 2011

I am developing an AIR app. In the main app I have a module loader 'mainModuleLoader'. I am creating modules as separate mxml files using the <mx:Module> tag. And I am loading such a module in mainModuleLoader dynamically using actionscript. Everything works fine.For the module which I am creating as mxml files, I would like to know how to add an unload event handler. So that, whenever I call mainModuleLoader.unload(), the unload event hander is triggered from inside the module.mxml. I have tried the following without any success.

<mx:Module creatingComplete="init()" unload="unloadHandler()"/>
<mx:Module creatingComplete="init()" remove="unloadHandler()"/>

The problem with the second statement above is that it triggers the unloadHandler even if some child is removed inside the module. I have also tried to add the following in the action script.

private function init()
{
this.addEventListener(ModuleEvent.UNLOAD, unloadHandler);

[code].....

View 1 Replies

Actionscript 3 :: Flex ModuleManager Unload Module?

May 11, 2011

I use ModuleManager load a module, like this Class:

public class LoadModule
{
private static var info:IModuleInfo;
private static var display:IVisualElement;
private static var downloadBar:ProgressBar;
private static var parent:Group;

[Code]...

View 1 Replies

Flex :: Module - Relative Sizing And Performance?

May 11, 2011

We are building a flex project and would like it to render faster. We do have situations where we reference parent module size properties to size current module containers, as well as current module size properties for a bunch of attributes including font size and element positions and sizes.

Would it help to create temporary variables for
a) pcw=parentcontainer.width, pch= parentcontainer.height
b) ccw=currentcontainer.width, cch=currentcontainer.height

and reference to pcw,pch,ccw and cch while doing positioning. Also given the bulk of the positioning will be done in mxml, will setting these interim variables in initialization function, allow them to be used in mxml such that they will resize as browser size is changed.

View 2 Replies

ActionScript 3.0 :: Flex Send Data To Module?

Jan 27, 2009

im calling a module in my flex app, but i need to send it a variable and have no idea how this is done (both sending the variable and then the module retrieving it)...basically, the module generates a tree which gathers data from a PHP-generated XML...so I need the data that is sent to the module to be sent to the PHP file to show the details depending on which page the user is on.

Code:
<mx:ModuleLoader url="lists.swf" width="30%" height="100%" />

just a thought, if I were to add "?id=3" to the SWF, would that work and how would I retrieve that value in the module to use?

View 1 Replies

Flex :: Mxml - Converting A Custom Component To A Module?

Sep 25, 2009

How to take an existing custom component in Flex and convert it into a module? EDIT: What should be done in the mxml where this custom component is used? Should it be replaced with a to load the module? If yes, how to deal with code that uses instances of the components?

View 2 Replies

Actionscript :: Flex Import Class From A Module Within A Sub Directory

Apr 22, 2010

I put some modules in a module folder. How do I import classes with the import statement when I'm in a sub folder?

This won't work, not like classes which are in packages. modules/SomeModule.mxml

<?xml version="1.0"?>
<mx:Module>
<mx:Script>

[Code].....

View 1 Replies

Actionscript 3 :: Unload Module Event Handling In Flex

Oct 13, 2010

I am developing an AIR app. In the main app I have a module loader 'mainModuleLoader'. I am creating modules as separate mxml files using the <mx:Module> tag. And I am loading such a module in mainModuleLoader dynamically using actionscript. Everything works fine.For the module which I am creating as mxml files, I would like to know how to add an unload event handler. So that, whenever I call mainModuleLoader.unload(), the unload event hander is triggered from inside the module.mxml. I have tried the following without any success.[code]The problem with the second statement above is that it triggers the unloadHandler even if some child is removed inside the module.I have also tried to add the following in the action script.[code]But, it doesn't trigger on unloading the module. Kindly let me know if I am going wrong somewhere or if there is any other method to attach the event handlers.

View 2 Replies

Flex :: Call Parent Method From Module Using Interface?

Feb 22, 2011

I am using this guide for passing data to modules "Using interfaces for module communication". For getting child module instances they have done this

var ichild:* = mod.child as IModuleInterface; (mod = moduleLoader)

What should I do to get instance of parent application inside module? How can I call parent methods inside modules?

View 1 Replies

Flex :: BlazeDS + Multi Module Maven Project?

Apr 29, 2011

I've got a multi module Maven project (about 10 modules) where 2 of the modules are a flex project and its corresponding server project, communicating via BlazeDS. The server module is dependent on another module containing common things, shared over the whole project.When using objects from the common module, the objects aren't serialized and sent via AMF to the SWF. Everything in the server-module is serialized and is working fine, but the objects from the common module (which has valid values on the server side) is not sent to the client.

I'm using Flexmojos to build this. What do I have to do to make the classes in the common project available for serialization, and being able to use them as RemoteClass-objects in my swf-project?

[Code]...

View 3 Replies







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