Flex Module
Hi everybody,
When create flex application, i usually create modules. Here is example that i handle when module is load:
var module:Module = evt.currentTarget as IFlexModuleFactory).create() as Module
I don't know the exactly workflow of flex module so i digg flex code and language reference and find that:
IFlexModule: "The IFlexModule interface is used as an optional contract with IFlexModuleFactory. When an IFlexModule instance is created with the IFlexModuleFactory, the factory stores a reference to itself after creation."
And here is the code:
package mx.core {
* The IFlexModule interface is used as an optional contract with IFlexModuleFactory.
* When an IFlexModule instance is created with the IFlexModuleFactory, the factory
* stores a reference to itself after creation.
* @langversion 3.0
* @playerversion Flash 9
* @playerversion AIR 1.1
* @productversion Flex 3
public interface IFlexModule
* @private
function set moduleFactory(factory:IFlexModuleFactory):void;
* @private
function get moduleFactory():IFlexModuleFactory;
The question is that when instance of IFlexModule and FlexModuleFactory are created? The ModuleLoader and ModuleManager class do not create them.
Thanks
It stopped happening for awhile but then started up again. I
put an exception catch around the whole thing and now I know it is:
Error #2124: Loaded file is an unknown type. URL: xx.swf
Any thoughts?
Similar Messages
-
Hello everyone. I have the following problem.
In my application I have several modules and each of them have components CollapsableTitleWindow (extends Panel). After opening the window it is added to the container which is in the main application (CollapsableTitleWindowContainer). In these windows you can open another window (and so on).
Now, what is the problem. When I change (reload) any module and I want to open a new window (sub window) with the already loaded window I get this error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mx.containers::Panel/layoutChrome()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\containers\Panel.as:1405]
at com::CollapsableTitleWindow/layoutChrome()[D:\Flex 3 Workspace\WesobCrm\src\com\CollapsableTitleWindow.as:216]
at mx.core::Container/updateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\Container.as:2867] (...)
Indicates that the main applications have object Panel
Please help.
P.S. I found a similar problem on http://www.nabble.com/Flex-Module-issue-with-Panel-td20168053.html
ADDED: I extendes the Panel class and do something like that:
override protected function layoutChrome(unscaledWidth:Number, unscaledHeight:Number):void
use namespace mx_internal;
if(!(mx_internal::titleBarBackground is TitleBackground)) {
mx_internal::titleBarBackground = new TitleBackground();
super.layoutChrome(unscaledWidth, unscaledHeight);
But now i had something like that: Before After
You can see that it loos style declaration.HThanks for the anserw.
I don't exacly understand all but i found a solution for my problem and it works.
Could you tell me if this is ok ?
I Add in my main app
public function getProductWindow():ProductWindow {
return new ProductWindow();
And in the module i change
From var productWindow:ProductWindow = new ProductWindow();
To var productWindow:ProductWindow = Application.application.getProductWindow(); -
Window XP
Apache Server 2.2.4
Flex 3 Builder
Java TM 6 update 6
Java 2 RE SE 1.4.2.17
After installing Flex SDK and Apache Flex Module during
testing *.mxml file by
http://localhost/etc. I obtained
an error message as follows:"An error occured on server. Server
error is:"Error occured in server thread;nested exception
is:java.lang.NoSuchMethodError;flex.license.License.(Ljava/util/Map;Ljava/lang/String;Lfl ex/license/Logger;)V'
"Hi,
Do you have problems installing FlexModule on Apache? Can you
tell us more details about your problem?
Regards,
Catalin Anastasoaie -
FlashBuilder 4.7 Flex Module "Output SWF" path not working.
I would like to use the Flex Module feature in FlashBuilder to easily compile some child SWF which are Modules. The problem is that the "Output SWF" path is not respected, when I compile FlashBuilder 4.7 aways compiles the file default path.
Cheers,
HaysI forgot to attach my image.
-
Looking for a Flex module to do Login, Registration, and License management
I'm looking for an open-source or commercial Adobe Flex module to do user Login, Registration, and License management. The back-end can be either on my site (PHP and MySQL) or secure 3'rd party site.
User Interface would have the following:
Register (new user)
Log-in (registered user)
Purchase a new license (logged-in user)
Apply the license to enable Flex app features (logged-in user)
Any suggestions are appreciated,
OutputLogicI've seen Flex login components out there, but I'm pretty sure you'd end up customizing the heck out of them to work with your app and back-end server. It may be faster to look at some examples and roll your own to suit.
"purchasing a license" ... Take a look at PayPal's site for instructions on how to use their payment gateway in your app. It is pretty straightforward.
"enable Flex app features"... I would store the license information on the server, along with the user's account information. Then when they load the Flex app, a simple license check (during login) could enable certain protected views within the app. -
Hi everyone,
Today we've just released an update to the Flex Module for
Apache and IIS on labs. This update fixes the bugs you guys found
on the forum and adds further support for Windows Vista and Apache
1.3.7 on Windows. You can see the release notes on the
wiki
page.
One of the most visible enhancements though will be the
increased compilation speed - it now matches the incremental
compilation speed of FCSH (another tool available on labs) - by
caching the most recent 5 different Flex applications.
Regards,
CristianSo it works with FB 2? Awesome! Will check it out after 10:00
meeting.
Great work!
Nancy Gill
Adobe Community Expert
Author: Dreamweaver 8 e-book for the DMX Zone
Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
2003)
Technical Editor: DMX 2004: The Complete Reference, DMX 2004:
A Beginner''s
Guide, Mastering Macromedia Contribute
Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
Web Development
"Ivascu Cristian" <[email protected]> wrote
in message
news:f1c5aa$pqk$[email protected]..
> Hi everyone,
> Today we've just released an update to the Flex Module
for Apache and IIS
> on
> labs. This update fixes the bugs you guys found on the
forum and adds
> further
> support for Windows Vista and Apache 1.3.7 on Windows.
You can see the
> release
> notes on the
>
http://labs.adobe.com/wiki/index.php/Flex_Module_for_Apache_and_IIS#Release_note
> s page.
> One of the most visible enhancements though will be the
increased
> compilation
> speed - it now matches the incremental compilation speed
of FCSH (another
> tool
> available on labs) - by caching the most recent 5
different Flex
> applications.
>
> Regards,
> Cristian
> -
Flex Module for Apache and IIS for Flex3 Release
All materials said that Flex Module for Apache and IIS was
included in Flex3 Release of Feb. 25,but I did not find it.
Does Anyone know about where to download the kit.
Thanks
AiguoThis link seems to have it, for Win and Mac:
http://labs.adobe.com/wiki/index.php/Flex_Module_for_Apache_and_IIS#Installation -
I am working in flex since last 7-8 months.I just want to know the main difference between swf loader and module loader as i was using swfloader previously but found module loader interesting.Plz help with proper explanation..And how i can make my application loosely coupled using this module loader with some basic example.Thanks in advance.
Is there an InDesign question in there somplace? I suspect you may have posted in the wrong forum.
-
Flex Module call parentApplications Method
I have got modules loading and can call methods and get and
set variables in my module from my main Flex app. As per this code
source:
Design
http://thanksmister.com/moduletest/srcview/index.html
That all works great but it appears that this is one way. I
want my module to do an outro then call the parentApplication to
say 'i'm ready' before unloading it. Am I missing something
obvious? I can't call parentApplication..perhaps I have to add a
custom EventListener to the ModuleLoader?
Q: How do I call a method in my parentApplication from the
module?
Holland Risley
Mentor Digital - UK Web
Design (Bristol) - Content Management System (CMS)Hi Baran,
This thing is not possible with module pool program.......
In case you want to do something like this do it with call screen or leave to screen so that you are you can go to next screen...
Thanks and Regards,
Kunjal Patel -
Flex module sometimes is blank.
Hi guys,
My application consistens two parts : client side and server side. Client side is created using flex . Client side includes several modules under different tabs.When first access the client by browser, the module will load data from server backend.
I met such problems that the module sometimes be blank. There's nothing in the tab.I moniter the http request and response when blank tab is met . There's data in http request content and the data is same with content of http response when tab is correct.
I have already be troubled with this for several days and could some one give some advice about what problem maybe? Flex sdk3.2 is used.
Thanks very much.
Ivan.Thanks for the suggestion. I add flexspy button in the first tab. And I moniter the property value tree when empty tab is met. All is same with the value when no errors happen. But I notice one thing:
1. only one canvas in the tab navigator visible=true at one time. i.e. currently A is the initial page, and you changed canvas b's visible property to true using FlexSPY , the display object of canva B will be overlapped with canvas A's object. This is the regular scenario, For the empty tab case, nothing change when you do above action..
So I am thinking whether there exist such a scenario:
as you know, when switching between tabs, the current canvas' visible property will change from false to true. And does there exist sometimes, only the visible property value changed , the display object isn't changed to display?
The action happened during first lanuching is :
1. get a list of tabs
2. create canvas based on above list and add to tabnavigator
3. then initial from the first canvas to last.
My application will create most UI component at the launch time -
Hello..I am very new to flex. I have recently studied little
bit about modular pgming in flex..I am doing a simple project as
explained below..but for some reason I am not able to make it to
work..I am gettig below error..I really apreciate some help on
this.
ReferenceError: Error #1069: Property subViewStack not found
on IntranetHome and there is no default value.
I have a 'IntranetHome' which has code similar to below:
<mx:Application>
<mx:ViewStack id="superViewStack" borderStyle="solid"
width="100%" height="100%" >
<mx:ModuleLoader url="Module1" width="100%" height="100%"
/>
<mx:ModuleLoader url="Module2" width="100%" height="100%"
/>
</mx:ViewStack>
</mx:Application>
In Module1..I have code similar to below:
<mx:Module>
<mx:ViewStack id="subViewStack" borderStyle="solid"
width="100%" height="100%" >
<mx:ModuleLoader url="SubModule1.swf" id="sm"
width="100%" height="100%" />
<mx:ModuleLoader url="SubModule2.swf" id="sm1"
width="100%" height="100%" />
</mx:ViewStack>
</mx:Module>
In SubModule1 there are couple of buttons..when I click on
these buttons..I would like to load SubModule2.swf which is under
subViewStack of Module1.. I am getting errors when I am trying to
say :
on button
click="Applixation.application.subViewStack.selectedIndex=1"
Am I doing something wrong...Please help me out here..If
there is a better way please let me know. Thanks"Smart_flex" <[email protected]> wrote in
message
news:g7b8ol$d57$[email protected]..
> Hello..I am very new to flex. I have recently studied
little bit about
> modular
> pgming in flex..I am doing a simple project as explained
below..but for
> some
> reason I am not able to make it to work..I am gettig
below error..I really
> apreciate some help on this.
>
> ReferenceError: Error #1069: Property subViewStack not
found on
> IntranetHome
> and there is no default value.
>
> I have a 'IntranetHome' which has code similar to below:
> <mx:Application>
> <mx:ViewStack id="superViewStack" borderStyle="solid"
width="100%"
> height="100%" >
> <mx:ModuleLoader url="Module1" width="100%"
height="100%" />
> <mx:ModuleLoader url="Module2" width="100%"
height="100%" />
> ...
> </mx:ViewStack>
> </mx:Application>
>
> In Module1..I have code similar to below:
>
> <mx:Module>
> <mx:ViewStack id="subViewStack" borderStyle="solid"
width="100%"
> height="100%" >
> <mx:ModuleLoader url="SubModule1.swf" id="sm"
width="100%"
> height="100%" />
> <mx:ModuleLoader url="SubModule2.swf" id="sm1"
width="100%"
> height="100%" />
> .....
> </mx:ViewStack>
> </mx:Module>
>
> In SubModule1 there are couple of buttons..when I click
on these
> buttons..I
> would like to load SubModule2.swf which is under
subViewStack of
> Module1.. I
> am getting errors when I am trying to say :
>
> on button
click="Applixation.application.subViewStack.selectedIndex=1"
>
> Am I doing something wrong...Please help me out here..If
there is a better
> way
> please let me know. Thanks
http://blogs.adobe.com/aharui/presentations/
Look at the last one -
OS X Flash Player + Flex Modules + Embedded Assets cause errors
I'm getting some strange errors when using modules which have
embedded assets, the module will load fine the first time it loads
after compile, but after then everytime I load the module I get
lots of the following errors (once for each embedded asset, images,
fonts etc.):
TypeError: Error #2023: Class
Test__embed__font_EmbedTrebuchet_medium_normal_1428760394$ must
inherit from Sprite to link to the root.
at flash.display::MovieClip/nextFrame()
at
mx.core::FlexModuleFactory/mx.core:FlexModuleFactory::deferredNextFrame()[E:\dev\flex_201 _borneo\sdk\frameworks\mx\core\FlexModuleFactory.as:365]
at
mx.core::FlexModuleFactory/mx.core:FlexModuleFactory::update()[E:\dev\flex_201_borneo\sdk \frameworks\mx\core\FlexModuleFactory.as:262]
at
mx.core::FlexModuleFactory/mx.core:FlexModuleFactory::moduleCompleteHandler()[E:\dev\flex _201_borneo\sdk\frameworks\mx\core\FlexModuleFactory.as:454]
However this only seems to be happening on OS X and seems
related to the flash player, I originally had 9.0.47 installed, but
got the 9.0.28 version of the debug player to try (which gave the
same errors).
I've tried to access the same application from a Windows
machine and vice versa and the errors only occur when viewing the
application from OS X. Also this only seems to happen when I'm
using the debug version of the application, the release version
seems to be okay - but obviously this is making developing the
application difficult when I'm on OS X.
I have tried the latest beta version of Flash Player 9 also,
but as that doesn't have a debug version it doesn't really tell me
if it resolves the issue or not.
I can't find any reference to this error elsewhere.
Any help would be greatly appreciated.
-DI found a suggestion in another debugger problem thread to run a Flash Player installer from within the Flex Builder folder. I found an app named "Flash Player 9 Silent Installer.app" and ran it. My debugging functionality is back now, but the player version is a lot older.
The only culprit I can think of for this problem is Firefox. I recently upgraded to v 3.5.3 and I remember it popping up a warning about Flash Player needing to be upgraded immediately. I wonder if it overwrote something that caused this? -
hello everybody,
i'm using mac os X 10.4.11, MAMP 1.7 with Apache/2.0.59. When
i want to start the server i've got this error message :
[Wed Jan 16 17:49:45 2008] [notice] caught SIGTERM, shutting
down
what does it mean ? Anybody know a solution ?This link seems to have it, for Win and Mac:
http://labs.adobe.com/wiki/index.php/Flex_Module_for_Apache_and_IIS#Installation -
Hi All,
I have migrated my application from Flex 3 to Flex 4. My application has 3 different modules. The modules are not loading when I run my application with Flex 4. Please help me in this respect.
Thanks in advance,
Nirmal Kumar BhogadiHi Nirmal,
Right click on the project and go in Properties. On the left bar, go in the Flex Modules tab and check if your modules are present there.
If not, browse your modules from the project and add them one by one.
Regards
Monika -
Problem loading modules in flex 4.5
Hi,
I'm new to flex 4.5 and working with Parsley 2.4 and SDK 4.5.
I'm getting the following error when loading a module:
VerifyError: Error #1053: Illegal override of ParsleyFlexModuleFactory in com.adobe.cairngorm.module.ParsleyFlexModuleFactory.
at com.adobe.cairngorm.module::ParsleyModuleInfoProxy/get factory()
at com.adobe.cairngorm.module::ModuleViewLoader/addLoadedModuleToStage()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\hero_private\frameworks\projects\frame work\src\mx\core\UIComponent.as:12208]
at mx.core::UIComponent/callLaterDispatcher()[E:\dev\hero_private\frameworks\projects\framew ork\src\mx\core\UIComponent.as:12146]
Does anybody knows what is the problem?
Thanks!
AssafHello Nico,
The problem just happened to me this morning, in order to fix it, it is enought to patch the Cairngorm Module Library in order to implement some methods witch extends IFlexModuleFactory, this new interface is done in order to check if an RSL is already loaded before loading, so modules and sub-applications will not load RSLs that are already loaded.
You can patch it like that, in a project where you use the Cairngorm Module Library:
1- Create the package "com.adobe.cairngorm.module" at the root source of the project.
2- Download and paste in it the http://opensource.adobe.com/svn/opensource/cairngorm3/tags/cairngorm3-3.0.9/libraries/Modu le/src/com/adobe/cairngorm/module/ParsleyFlexModuleFactory.as
3- In ParsleyFlexModuleFactory.as, remove the CONFIG::Flex4 tags (they're used for the conditional compilation but we don't need them because we'll indeed compile it for flex 4.5+ and not everybody uses a conditional compilation configuration).
4- add this code :
public function get allowDomainsInNewRSLs():Boolean
return factory.allowDomainsInNewRSLs;
public function set allowDomainsInNewRSLs(value:Boolean):void
factory.allowDomainsInNewRSLs = value;
public function get allowInsecureDomainsInNewRSLs():Boolean
return factory.allowInsecureDomainsInNewRSLs;
public function set allowInsecureDomainsInNewRSLs(value:Boolean):void
factory.allowInsecureDomainsInNewRSLs = value;
public function addPreloadedRSL(loaderInfo:LoaderInfo, rsl:Vector.<RSLData>):void
factory.addPreloadedRSL(loaderInfo, rsl);
5- Add the spicelib-flex-2.4+.swc and the parsley-flex4-2.4+.swc (or the Parsley counterpart libraries) as support for the patched ParsleyFlexModuleFactory.
6- Compile it with the SDK 4.5+ and that's done, it works now with the SDK 4+.
(If you've got more projects where you use the Cairngorm Module Library, just copy and paste the new patched package and add thespicelib-flex-2.4+ and the parsley-flex4-2.4+.swc (or the Parsley counterpart libraries)
That will only allows the library to be fully compatible with the SDK 4.5+
(maybe it's good to keep Alex Uhlmann in touch with it allowing him to implement a conditional compilation or another version of the artifact the time it migrates completely its library in 4.5).
(For the those who have a lot of Maven projects, it's preferable to re-compile the original Cairngorm Module Library with the code above in order to have the patched artifact in your maven repository, indeed, you won't have to remove the CONFIG::Flex4 tags or to add the spicelib, parsley libraries, the patched module is self-suffisent and a simple "mvn clean install" does the job)
Note: Anyway, now, with Parsley 2.4, the flex module integration is FULLY tranparent and the need of this library is less important.
Frédéric THOMAS
Maybe you are looking for
-
Help my Ipod Touch is not working properly.
the password lock that I have on the Ipod Touch will not allow me to type in my password, please help.
-
Iphone will not appear in itunes at all
Recently, I partook in a method to finally get my iPhone 6 to appear in Windows Explorer so that I could import my photos on it to my laptop. When I did that, I set it to automatically open Windows to my phone's folder. But now, it won't appear in it
-
Images being resized in book file in FM10
I'm using TCS3, FM10 in Windows XP. When we generate books all of our images are being resized to 72 dpi. Most of them are 150dpi in the source files. What is causing this?
-
Receiver File content conversion with nested structure
Hi Guys, I have the below nested structure and have to convert it using receiver file content conversion. <Header> [o, unbounded] <A>a</A> <B>b</B> </Header> <record> [0, unbounded] <field1> <X1>x</X1> <Y1>y</Y1> </field
-
Im trying to disable my phone and i can't, whats going ojn?
it says iphone disable, connect to itunes,,, i did it and doesnt do anything , only charge, still saying the same thing.... why?????????