Actionscript 3 :: Min. Flex Module Size Is 30kb And Contains Framework Classes?

Jun 16, 2010

Compile the following module with all framework SWC-s excluded in release mode in Flex 4:[URL]..The SWF size will be 35,658 bytes.

Now generate link report via -link-report for this SWF and load it via -load-externs. Size of the SWF now is 33.174 bytes.

If you check link report now, you will see that some framework classes like mx.modules:IModuleInfo or mx.utils:LoaderUtil are still there.

View 3 Replies


Similar Posts:


Flash - What's The Size Of The Bootstrap Code For Cairngorm Framework Which Is Based On Flex

Dec 25, 2010

what's the size of the bootstrap code for cairngorm framework which is based on flex?

View 1 Replies

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

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

Flash - Making Starling FrameWork To Work With Classes That Uses Native DisplayObject?

Dec 6, 2011

I'm trying to use Greensock LoaderMax on a Starling Framework project, but since Starling have a lots of its own class, how I can make it work with other classes that is using the native class?

Exp:

package
{
import flash.display.Sprite;
import flash.events.Event;

[code]....

will return the error:

Error: Implicit coercion of a value of type com.greensock.loading.display:ContentDisplay to an unrelated type starling.display:DisplayObject.

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

Can Flash Load A Flex Mx:module Created In Flex Builder 4

Feb 16, 2011

I have a Flex module created in Flash Builder 4 as a swf file. I am trying to load and run in within a Flash application. I can get the module loaded but I can not get the flash application to access any module functions. Here is how I load the module in Flash and the error I get. If I change the module to an application type swf then it loads and runs but now I have two applications on top of each other. I would like the loaded module swf to be able to have access the Flash stage object.

ReferenceError: Error #1069: Property application not found on MyModule__mx_core_FlexModuleFactory and there is no default value.
var loader:Loader = new Loader();

[code].....

View 1 Replies

Flex :: Connecting Flex Application To Tomcat + Spring 3.0 Framework With BlazeDS?

Apr 9, 2011

I'm developing a web application (client in Flash Builder 4, server in Eclipse 3.6 + Tomcat 7 + Spring 3 Framework). How do I make the Flex client automatically deploy in the Tomcat server and use BlazeDS messaging and remoting more seamlessly?

View 14 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 :: Framework Have Used So Far?

Aug 7, 2009

I have been seeing some Flex Frameworks, but would like to ask to the programmers and Architects down here on which has suited best in your application.

View 3 Replies

Flex :: Use Framework Within An Air App?

Sep 11, 2009

Possible to use the flex 4 framework within an Air app.

View 1 Replies

Flex :: Use The Framework RSL Within An RSL?

Sep 25, 2009

I have a rather large Flex SWF and am breaking it up into separate Modules. There is some overlap between the modules and I want to put all of this into one shared RSL. The problem is that this RSL gets really large as soon as I use any Flex code because it has to include the Flex Library.Flex Builder doesn't seem to give me the option to use the Flex framework RSL in a library. Also compiling with compc and passing the runtime-shared-library-path doesn't seem to actually use the rsl.So it seems like this is something that is unsupported? Does anyone have any idea how I can do this? Is it just not possible? Is this something that is likely to be supported in the future or already supported in Gumbo?

View 1 Replies

ActionScript 3.0 :: File Size And Loading Classes?

Feb 6, 2010

i have several custom classes which all contain Sprites.does the fact that each as file imports flash.display.Sprite increase file size?i would assume when compiling that flash is smart enough to just import each package once but i just want to make sure.an over simplified example (obviously in this example the over all effect is 0 but i am starting to have more and more custom classes so i want to know)say i have a simple class that extends sprite to include an index property.

public class NewSprite extends Sprite {
public var index:int
}

now if in my code i would like to have "Sprite"s and "NewSprite"s for my own benefit of keeping track of what needs an index but does it add to file size to import flash.graphics.Sprite twice or would i be better off just importing NewSprite.also if i add variables to a custom class but dont give them a value does it take up extra space - for instance if the above NewSprite had 99999 indices instead of 1 - i am assuming if each index has a value the NewSprite is much bigger, but if i leave each index null, does it still increase file size?

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

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







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