RE: [flexcoders] Modules at 360Flex conference

2007-03-08 Thread Roger Gonzalez
What is the issue with smaller swf output file sizes? If you use link-report and load-externs, you can optimize swf size for both the modules and the main app without any issues. Just out of curiosity, have you filed any bugs regarding the other issues you've encountered? (Cross-SWF font

RE: [flexcoders] Modules at 360Flex conference

2007-03-08 Thread Roger Gonzalez
. This is just a perspective of the the pain i've been through. Bjorn On 09/03/2007, at 5:17 AM, Roger Gonzalez wrote: What is the issue

RE: [flexcoders] Flex Player 9's (Flex 2) Memory Usage - What's Normal?

2007-03-07 Thread Roger Gonzalez
Er, this isn't strictly correct. The module (the SWF and the class factory it contains) are only ever loaded/instantiated once, ever, no matter how many times you call load. ModuleLoader, on the other hand, creates -instances- using the module's class factory, and adds them as a child. These

RE: [flexcoders] Managing Multiple Modules

2007-03-05 Thread Roger Gonzalez
The URL for a given module is a unique key for the module at that URL, no matter how many times you get it. Each time you get a ModuleInfo, you can use it to request an unload. (Note that unload just makes things available for GC, it does not force things to unload.) There's no reason why you

RE: [flexcoders] Re: Managing Multiple Modules

2007-03-05 Thread Roger Gonzalez
the navigator will GC eventually clean up the child module on that tab? Aaron --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Roger Gonzalez [EMAIL PROTECTED] wrote: The URL for a given module is a unique

RE: [flexcoders] Flex embedding SWF file and using it like a component

2007-03-05 Thread Roger Gonzalez
You should use the 2.0.1 Modules feature for this, its pretty much exactly what you want. In any case, whenever you do make a reference to objects within dynamically loaded code, you should design some interfaces for communication so that you're not making hard type references to implementation

RE: [flexcoders] Re: Just curious, A big development team or individual developers

2007-02-28 Thread Roger Gonzalez
Modules were a point-release feature that were released earlier than the corresponding IDE support so that we could get feedback from the community about what people wanted. If we had waited to get Module support into FlexBuilder, you wouldn't have seen Modules until 3.0. Would that have been

RE: [flexcoders] compc - degrees of specification

2007-02-23 Thread Roger Gonzalez
Note that you can also cause an entire directory tree to be compiled in. This should be used with caution, since it will also try to compile any included helper code as if they were classes, which might not be what you want. -rg From:

RE: [flexcoders] Flash 9 swf as RSL

2007-02-19 Thread Roger Gonzalez
What you're doing is a little odd, but you can build your own version of the MovieClipLoaderAsset class (which is what is used to do embedding of visual SWFs). Basically, embed the RSL SWF using [Embed(source='as3rsl.swf', mimeType='application/octet-stream')] public class MyBinaryBlob extends

RE: [flexcoders] New Version of Flex Style Explorer with Tons on New Features

2007-02-13 Thread Roger Gonzalez
It makes sense to ignore CSS errors when a CSS file is first parsed at runtime. You want a best effort rendering of the CSS. Web pages aren't required to be compiled and typechecked before they're put on the server. If they were, you would in fact want to catch the error at authoring time.

RE: [flexcoders] Module Loader progress bar

2007-02-02 Thread Roger Gonzalez
Yes, the module loading code dispatches loading events, so you can create a component that displays very similar to the Flex download progress bar. My preferred way to do it so that it is usable from MXML is to subclass ModuleLoader. -rg From:

RE: [flexcoders] Displaying Mathematical Formulas in Flex

2007-02-02 Thread Roger Gonzalez
Cool problem. If you're willing to write some code, I think its entirely feasible to do this in AS3. Rendering MathML in Actionscript would be a really fun project! -rg From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of

RE: [flexcoders] What is the best way to draw about 10,000 to 15,000 rectangles?

2007-02-01 Thread Roger Gonzalez
I had a similar problem drawing dependency graphs. I've had the best luck simply drawing them to a Graphics, adding them as children was too expensive and couldn't keep up with the frame rate. You'll probably want to create a spatial partitioning scheme so that you can quickly determine

RE: [flexcoders] Problems with embeding in class

2007-01-31 Thread Roger Gonzalez
Your syntax is incorrect. Remove the double quotes, it should just be [Embed(source='assets/ResizeArrow.swf')]. -rg From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Janis Radins Sent: Wednesday, January 31, 2007 7:52 AM

RE: [flexcoders] Re: Question on managing Flex libaries and Modules

2007-01-31 Thread Roger Gonzalez
If you mark the library as external from the modules, you'll need to ensure that it is either fully included in the application or else loaded as a RSL by the application. -rg From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of

RE: [flexcoders] Module subclass issue

2007-01-24 Thread Roger Gonzalez
This sort of situation usually arises when the interface isn't defined in a common ApplicationDomain (generally the parent). Did you load the module into a separate ApplicationDomain rooted off the system domain? If so, then the two interfaces are unrelated (even though they have the same

RE: [flexcoders] Re: Problem with module classes instantiation through ModuleManager

2007-01-19 Thread Roger Gonzalez
This isn't technically a module question. I believe that you will find the same behavior if you were to new a frameworks class and then try to access it. Did you call addChild() on the product of the factory? I'd get that working first in a simple hard-linked case. Note that you may well run

RE: [flexcoders] Loading Modules issue/confusion

2007-01-19 Thread Roger Gonzalez
Where is getInfo called from? I'd need to see the actual code, I guess. -rg From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of lar.drolet Sent: Thursday, January 18, 2007 3:23 PM To: flexcoders@yahoogroups.com

RE: [flexcoders] Dynamic creation then compilation of classes

2007-01-19 Thread Roger Gonzalez
Apologies if I'm being dense, but I can't imagine any problem where this would be the best solution in Flex. Why not just use the -data- from the database to change the behavior dynamically? But if this really is the best solution, why not use the mxmlc command line for this? Its much more

RE: [flexcoders] Module Interface Problems

2007-01-17 Thread Roger Gonzalez
For what its worth, it appears at first glance that your code should work. Have you tried strong typing rather than using *? var results:IResults= IResults(modMyModule2.child) Not sure why it isn't working though, sorry. -rg From:

RE: [flexcoders] Re: Compiling modules

2007-01-11 Thread Roger Gonzalez
be a hard work to remove all the references of the loaded application's objects (without talking about the Flex framework per se) to elect they to GC. Thanks Fabio Terracini On 1/9/07, Roger Gonzalez [EMAIL PROTECTED] mailto:[EMAIL PROTECTED

RE: [flexcoders] Modules and ActionScript

2007-01-09 Thread Roger Gonzalez
This is called lost in translation between engineering and documentation, because its somewhat subtle. It means that if you are using modules for code that doesn't include any frameworks code, you should extend ModuleBase. If your modules use code that interacts directly with the frameworks

RE: [flexcoders] Re: Compiling modules

2007-01-09 Thread Roger Gonzalez
if the shell is a debug version? Thanks, Brian From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Roger Gonzalez Sent: Monday, January 08, 2007 2:35 PM To: flexcoders@yahoogroups.com

RE: [flexcoders] Re: Compiling modules

2007-01-08 Thread Roger Gonzalez
Just make a new project. You'll need to change the root tag from mx:Application to mx:Module for a MXML project, or change the base class of an ActionScript project from flash.display.Sprite to mx.modules.ModuleBase because FlexBuilder doesn't know about modules directly. (There is some odd

RE: [flexcoders] Re: Compiling modules

2007-01-08 Thread Roger Gonzalez
I can't think of any reason why you would want to do this. Modules are class factories, not instances. You will create an instance of the class baked into the module, and then the application can pass those parameters to the instance. -rg From:

RE: [flexcoders] Re: Compiling modules

2007-01-08 Thread Roger Gonzalez
You just described it. Its just a normal project. Create a project for your module, create a project for your application, make sure you know what the binary path is going to be, and use that SWF path as your ModuleLoader url. Modules were functionality snuck into a dot release. There's no

RE: [flexcoders] Loading assets with inheritance issue

2007-01-03 Thread Roger Gonzalez
Are you loading them into new child ApplicationDomains, or into ApplicationDomain.currentDomain? I assume that something in main.swf contains both SuperClass and BaseInterface? (Have you looked into the externs options to leave out redundant classes?) The VM is supposed to ignore subsequent

RE: [flexcoders] How do you load library symbols without embedding via SWFLoader?

2007-01-02 Thread Roger Gonzalez
Symbols don't exist in AS3, there are only classes. If you exported the SWF from Flash as an AS3 SWF, you should be able to use getDefinitionByName to find the class instance in the dynamically loaded SWF. The compiler knows how to reference old-style Flash symbols at compile time (via

RE: [flexcoders] Load swc instead of swf

2006-12-19 Thread Roger Gonzalez
SWC files are compile-time only. A HTML wrapper wouldn't know what to do with it. In theory, you could write an unzip implementation in Actionscript, load a SWC as raw data, decompress it, extract its bits, and then send those bits around to AS or JS or whatever, but realistically, you're not

RE: [flexcoders] Instantiating Class Dynamically

2006-12-14 Thread Roger Gonzalez
Your class isn't being linked in, because it isn't referenced. Your options are: (a) force it to be linked in, either with an explicit reference, or via a compiler flag. (b) make sure that the code below is in a SWF is loaded into (or as a child of) an ApplicationDomain containing your class.

RE: [flexcoders] Embedding XML document in Actionscript

2006-12-12 Thread Roger Gonzalez
You always need to embed onto a variable of type class or string. Using [Embed] on XML is actually an undocumented trick, I believe, but it works something like this: [Embed('Data/Summary.xml')] private var summaryClass:Class; If I remember correctly, it creates a class with a (static?) data

RE: [flexcoders] Flex mx.modules :: Status ?

2006-12-11 Thread Roger Gonzalez
It is a real feature in the 2.0.1 release. That release will be the authoratative source of docs/info, but for now, you can check out my blog http://blogs.adobe.com/rgonzalez for details. Check out my MAX preso. -rg From:

RE: [flexcoders] Re: Incremental loading or load-on-demand

2006-12-11 Thread Roger Gonzalez
Yep, browse the powerpoint (turn on the notes pages as well) and check out the samples. Collin, this is basically the purpose of the 2.0.1 Modules feature, so I think its exactly what you want. Shannon, the only way to not load classes that have already been loaded is to omit them from

RE: [flexcoders] RSL's and Dynamic components

2006-12-08 Thread Roger Gonzalez
Hi, RSLs aren't the best match for what you need. Look into the new 2.0.1 Modules feature. -rg From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wljammal Sent: Thursday, December 07, 2006 6:36 AM To:

RE: [flexcoders] Custom component manifests in Flex Builder

2006-12-07 Thread Roger Gonzalez
I don't believe there's a UI for this, but you can always add additional command-line parameters to the FlexBuilder project. Use --namespace uri manifestfile. -rg From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cluebcke

RE: [flexcoders] SWF Meta Data

2006-12-05 Thread Roger Gonzalez
Because Flex always creates a root class for the SWF, the [SWF] metadata must be attached to (i.e. immediately before) the root class definition. The parameters may not be documented, as they're pretty much intended for code generated by the compiler from MXML source. End users are encouraged

RE: [flexcoders] Re: SWF Meta Data

2006-12-05 Thread Roger Gonzalez
the root class definition. I've deduced from this that the Default Application is not the root class. Could you guide me further? Sincerely, Elibol --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Roger

RE: [flexcoders] how to access assets in RSL file

2006-11-30 Thread Roger Gonzalez
SWC files are used at compile time. SWFLoader is runtime. Won't work. (Note that if you caused MyTest.swf to be embedded instead of included when you built TestLib.swc, you can then refer to it as a class from your main project, and just instantiate an object of type SpriteAsset,

RE: [flexcoders] Re: how to access assets in RSL file

2006-11-30 Thread Roger Gonzalez
to use this component in my flex applications, but alas the images just don't show up. Any ideas? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Roger Gonzalez [EMAIL PROTECTED] wrote: SWC files are used

RE: [flexcoders] Flex crashing @ compilation time

2006-11-29 Thread Roger Gonzalez
That seems like a crazy amount of compilation time for 40 files. Something is wrong. BTW, have you tried creating some library projects and linking to them, instead of having just one source tree? However, you said that Flex is actually crashing during the compile.. is it? Or is it just slow?

RE: [flexcoders] Re: Get BitmapData from symbol in SWF file?

2006-10-31 Thread Roger Gonzalez
: Monday, October 30, 2006 1:51 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Re: Get BitmapData from symbol in SWF file? --- In [EMAIL PROTECTED]ups.com, "Roger Gonzalez" [EMAIL PROTECTED]. wrote: You can't cast a Class to a Bitmap. You need to do BitmapAsset(new

RE: [flexcoders] Re: Get BitmapData from symbol in SWF file?

2006-10-30 Thread Roger Gonzalez
You can't cast a Class to a Bitmap. You need to do BitmapAsset(new c()). -rg From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of joshuajnobleSent: Monday, October 30, 2006 10:18 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Re: Get BitmapData

RE: [flexcoders] ModuleManager

2006-10-26 Thread Roger Gonzalez
http://blogs.adobe.com/rgonzalez Cheers, :-) -rg From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Bjorn SchultheissSent: Thursday, October 26, 2006 9:35 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] ModuleManager Yo! Word on

RE: [flexcoders] Re: [Flex2] Ant + compc - include-libraries not being found during compile..?

2006-10-19 Thread Roger Gonzalez
library-path causes the libraries to be available as a source for linking. include-libraries includesALL symbols from a library, and I believe does not work for compc in 2.0.1 beta, there was a bug. It only works for mxmlc. Its the difference between eating at a salad bar vs. having

RE: [flexcoders] Embedding fonts at runtime

2006-08-31 Thread Roger Gonzalez
It is however possible to [Embed] font(s) into an AS class used to build a SWF, and then dynamically load that SWF. -rg From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt HornSent: Wednesday, August 30, 2006 1:23 PMTo:

RE: [flexcoders] exception during transcoding:

2006-08-14 Thread Roger Gonzalez
Odds are good that there's a Flash 8 SWF tag in the file that we don't support in Flex 2. You're only looking at the error messages, I think uncaught compiler exceptions are logged in "About Flex Builder 2 Configuration Details Error Log". (Or run mxmlc at the command line.) We have a

RE: [flexcoders] Re: Schema files for mxmlc and compc config files

2006-08-09 Thread Roger Gonzalez
You can also use "mxmlc -dump-config=mycfg.xml -otheroptions..." to build a starter config file. In general, you'll then want to edit it down to the bare minimum settings you need. I somehow overlooked to have "dump-config" enabled on compc (will put this into a dot release) but the

RE: [flexcoders] Re: Schema files for mxmlc and compc config files

2006-08-09 Thread Roger Gonzalez
Glad it will help. Note that "append" and "+=" work with any "list" config var. Most of the time when you set a config var, it clears out the value set at a lower level... defaults system properties flex-config.xml (other config files) command line but if you use the "append" variants,

RE: [flexcoders] [Flex 2] Compiling all classes into an application, whether referenced or not

2006-08-01 Thread Roger Gonzalez
Your second thought is the technique that we recommend. Since you want to build all the classes, that's a library. You then want to include everything, so use include-libraries. In general, our philosophy for mxmlc/compc was to make a bunch of small "atomic" behaviors that could be

RE: [flexcoders] swc too heavy

2006-07-10 Thread Roger Gonzalez
Your SWC is including all its dependencies - which includes most of the frameworks. You can build a SWC that doesn't do this by using adding frameworks.swc to the external-library-path configuration option. -rg From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On

RE: [flexcoders] Re: Flex2: Embed Source path

2006-06-29 Thread Roger Gonzalez
Without the slash, the path resolution will be relative to the referencing source file. With the slash, I believe it will be relative to the referencing source file's local subtree root (i.e. the particular entry in the source-path). Topoint toa file outsidethereferencingsource subtree,

RE: [flexcoders] Generate sound

2006-06-28 Thread Roger Gonzalez
Yes, but not easily. I'll be writing a blog post with example code on this soon. :-) -rg From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David ClarkSent: Wednesday, June 28, 2006 11:51 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Generate

RE: [flexcoders] Embed(source,symbol) results in internal build error

2006-06-27 Thread Roger Gonzalez
Flex is unhappy about the SWF you're trying to embed. Your Embed syntax looks fine, but it appears that your SWF contains a button (built in Flash?) that is either corrupted, or else our decoder is getting out of sync for some other reason. Since Flex doesn't really support Flash buttons

RE: [flexcoders] DTD Schema for Flex 2

2006-06-15 Thread Roger Gonzalez
To provide a little more detail, the problem is: 1) MXML imposes ADDITIONAL constraints above and beyond what can be expressed in DTD or XSD. 2) MXML is open-ended, and the rules for how new namespaces tietogether cannot be expressed in DTD or XSD. For example, lets say we did provide the

RE: [flexcoders] Accessing and binding to (and from) Application level vars

2006-04-18 Thread Roger Gonzalez
Hello, I have a couple of questions relating to Application level access and binding. First off, why can I not bind to a property using this syntax even if the var is declared [Bindable]?: dataProvider={Application.application.arr_selectedPlans} I get the 'Data binding will not be able to

RE: [flexcoders] Re: Accessing and binding to (and from) Application level vars

2006-04-18 Thread Roger Gonzalez
: [flexcoders] Re: Accessing and binding to (and from) Application level vars What is the proper way to access application-level vars and methods then? --- In flexcoders@yahoogroups.com, Roger Gonzalez [EMAIL PROTECTED] wrote: Hello, I have a couple of questions relating to Application level

RE: [flexcoders] Re: Question to Adobe about Flex Framework 1.5 Code Quality

2006-04-14 Thread Roger Gonzalez
Yeah, Adobe is so terribly unresponsive. Its too bad that their engineers don't actuallytake time to respondon randomforums or anything.Why won't they just put out anew version that directly addresses the community's reaction to the 1.0 product? Hmm... Thank you, drive through. -rg

RE: [flexcoders] Flex1.5: Limit of series a graph component can have

2006-04-11 Thread Roger Gonzalez
, and so there's a lot of red-tape going on in this project. So I ask again...can it be done? Thanks in advance. J. -Mensaje original- De: Roger Gonzalez [mailto:[EMAIL PROTECTED] Enviado el: Lunes, 10 de Abril de 2006 08:35 p.m. Para: flexcoders@yahoogroups.com Asunto: RE

RE: [flexcoders] VerifyError: Error #1042: Not an ABC file. major_version=46 minor_version=16

2006-04-10 Thread Roger Gonzalez
I'm not sure about the specifics of this samples app, but the error is because you're mixing stuff from two different releases. During the beta program, we're still making bytecode changes, so you need to keep the SWF files synchronized with their matching player. -rg From:

RE: [flexcoders] Flex1.5: Limit of series a graph component can have

2006-04-10 Thread Roger Gonzalez
That would be pretty impractical in Flex 1.5 without providing truckloads of RAM. I suspect you need to either do it on the server as an image sent to the client, or else do it in Flex 2. What kind of graph is this? Do you really need 100k samples on screen simultaneously? Can you do

RE: [flexcoders] FLexB2 Embed flv into SWF

2006-04-09 Thread Roger Gonzalez
post/send my enhancement request?Thanks, Sönke -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Roger Gonzalez Sent: Thursday, April 06, 2006 6:59 PM To: flexcoders@yahoogroups.com Subject: RE

RE: [flexcoders] Link Error: unresolved symbol ...

2006-04-08 Thread Roger Gonzalez
playerglobal.swc needs to be in external-library-path, because it only contains class intrinsics for definitions that are actually in the player itself. -rg -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Hari Krishna Dara Sent: Friday,

RE: [flexcoders] Accessing methods/properties (Flash 8 movies in Loader component)

2006-04-08 Thread Roger Gonzalez
Flash 8 SWFs and Flash 8.5 SWFs run different versions of Actionscript, and cannot communicate directly. You need to build a layer using LocalConnection to proxycommunications between the two different virtual machines. (Once the next version of Flash Authoring is out, this won't be

RE: [flexcoders] Re: [A]F2B2: Classes must not be nested??

2006-04-06 Thread Roger Gonzalez
I used include instead and it worked. It did?? That's odd. Are you sure you don't mean import? Each MXML file generates a class. Script snippets are simply added to that class, including stuff included with include. If these script snippets are a class definition, you're basically adding an

RE: [flexcoders] FLexB2 Embed flv into SWF

2006-04-06 Thread Roger Gonzalez
We don't support direct embedding of .FLV (feel free to file an enhancement request that we should!) but Beta 3 will have a nifty workaround that might actually make this work. I'll investigate a bit. Stay tuned... -rg -Original Message- From: flexcoders@yahoogroups.com

RE: [flexcoders] Query on loader control

2006-04-06 Thread Roger Gonzalez
Hrm. Are you using the webtier compiler? Based on the namespace you're using, you're obviously using Flex 2, but if you're using Flex Builder (or mxmlc.exe), this example won't work. Loading test.mxml.swf requires server side compilation, so if you don't have that, you need to precompile

RE: [flexcoders] Link Error: unresolved symbol ...

2006-04-06 Thread Roger Gonzalez
I'm not positive this is the issue, but playerglobal.swc should be in external-library-path, because it contains definitions that are built in the player. I suspect you're confusing the linker by telling it to force-link empty definitions. -rg -Original Message- From:

RE: [flexcoders] Does Flex have drawing components?

2006-04-04 Thread Roger Gonzalez
Its quite possible to implement this sort of thing via the lower level flash.graphics.* Actionscript API, but we do not currently provide any prebuilt drawing components usable via declarative MXML elements. Once you write the components, I bet lots of people in the community here would love to

RE: [flexcoders] attachMovie() Flex equiv?

2006-04-03 Thread Roger Gonzalez
All assets in Flash 8.5 and AS3 are now class-based. The equivilent to attachMovie is "new", as in "create a class instance". Because there is no public version of Flash Authoring out that emits AS3 classes, we're in a temporary phase where we embed old-style assets and have Flex

RE: [flexcoders] Re: FLEX and Open Lazslo Comparision

2006-03-28 Thread Roger Gonzalez
Does it happen to remove the unused components? What if I'm only using one button - does Flex include all components? Flex only includes classes found in the dependency chain from your application class (or configuration settings). When you create an application that extends

RE: [flexcoders] Re: Weird Gradient Fill error

2006-03-27 Thread Roger Gonzalez
I've fixed everything I have testcases for! If you have one that is broken, please email both the original Flash 8 SWF and the resulting Flex SWF. DO NOT ZIP THE FILES, OR OUR SPAM FILTER WILL THROW IT AWAY! Thanks, -rg From: flexcoders@yahoogroups.com [mailto:[EMAIL

RE: [flexcoders] Large App Architecture

2006-03-27 Thread Roger Gonzalez
Yes, it can. Multiple SWFs. Tradeoffs are increased potential for errors, a bit more architecture work needed up front, and the potential that the Flex frameworks isn't fully designed for this case, so you might run into some tricky (but not unsolvable) issues. (It works pretty well for pure-AS

RE: [flexcoders] Large App Architecture

2006-03-27 Thread Roger Gonzalez
frameworkAND loosely bounded resources for UI/server interaction code approach. I should provide link to an article on the subject next week. Thank you, Anatole Tartakovsky - Original Message - From: Roger Gonzalez To: flexcoders@yahoogroups.com

RE: [flexcoders] Re: Flex 2: about potential HTTPService timeout/security issues ...

2006-03-27 Thread Roger Gonzalez
You have the purpose backwards. (There's an entirely different mechanism for what trust you want to grant to a particular SWF.) The point is fora server owner to prevent you from distributing a SWF that canact as a distributeddenial-of-service attack on a server. Consider the case of

RE: [flexcoders] Flex 2: can you play audio asynchronously?

2006-03-24 Thread Roger Gonzalez
Existence proof: http://www.albinoblacksheep.com/flash/homer.php -rg From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dos dedosSent: Friday, March 24, 2006 6:12 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Flex 2: can you play audio

RE: [flexcoders] Re: Flex 2.0 b2: 'getClassByName' method of the 'flash.util' package

2006-03-23 Thread Roger Gonzalez
-include-libraries will force entire SWCs to be linked in. (And Beta 3 will have -include, which will do it for individual definitions.) A better path might be to dynamically load another SWF that contains the definitions that you want to have soft references to. -rg -Original

RE: [flexcoders] Flash custom components in Flex 2

2006-03-23 Thread Roger Gonzalez
Hi... due to changes between the virtual machines in Flash Player 8 and 8.5, there is no cross-compatibility with scripting between the two versions. Until the new AS3-basedversion of Flash Authoring comes out, we are only supporting a workflow based on non-scripted assets. You basically

RE: [flexcoders] Flex 2.0: mxmlc question

2006-03-23 Thread Roger Gonzalez
First, make certain you don't have any Beta1 SWCs being loaded by Beta2. That will break. If you add corelib.swc (or its parent directory) to your library path, it will make it available to be linked in. Its choking in the ResourceBundle code, which implies to me that ListCollectionView

RE: [flexcoders] How to enumerate ApplicationDomain classes?

2006-03-23 Thread Roger Gonzalez
I fought the battle, and lost. :-( It was deemed a potential security issue, and I although I think I successfully argued that down, it was deprioritized compared to other more critical issues. We'll hopefully revisit it for a future release. -rg -Original Message- From:

RE: [flexcoders] Re: Flex 2.0 b2: 'getClassByName' method of the 'flash.util' package

2006-03-23 Thread Roger Gonzalez
It's interesting idea. But current Flex release doesn't provide good external libraries support as for me. Some RSL initialization code is statically injected by mxlmlc to the application SWF file during compilation process ( binding initialization, remote class registration etc). It

RE: [flexcoders] Flex 2.0: mxmlc question

2006-03-22 Thread Roger Gonzalez
library-path makes SWCs available for resolving class dependencies. Thisis normally what you want. include-libraries forces all symbols in the SWCs to be included in the application, whether they are needed or not. I don't know why you'd get that error unless you're not using mxmlc or

RE: [flexcoders] Runtime Shared Libraries (flex 2)

2006-03-21 Thread Roger Gonzalez
I apologize for not being able to give the walkthrough in terms of Flex Builder; I work on the lower level, so I'm going to talk in terms of the command line. Hopefully you'll be able to translate. You might want to walk through it using the low level tools anyway, because its hard to tweak

RE: [flexcoders] Gradient Fill bugs in Beta 1 and Beta 2

2006-03-21 Thread Roger Gonzalez
I fixedgradient fill embeddingfor Beta 2, so I'm surprised that you're hitting a problem. What are you getting for an error? The AS classes need you to add framework.swc to your project. They're still in mx.core. Please send me the SWF you're embedding if that doesn't clear up your

RE: [flexcoders] Singleton not usable?

2006-03-20 Thread Roger Gonzalez
Not to pick on Jeff (because even our docs use the same approach), but I'm not a fan of this solution, because its trivial to pass in null where its expecting a PrivateClass. To protect against that, you need to have a runtime check, and throw. Yuck. My personal solution is as follows (warning:

RE: [flexcoders] Flash within Flex?

2006-03-20 Thread Roger Gonzalez
If you let the compiler generate a resource class for you, it generates a class derived from Sprite (which does not support animation). I think this is a bug, it should probably look to see if there are multiple frames to make this choice or something. If you embed at the class level, you can

RE: [flexcoders] Embedding Flash 7 or 8 into Flex

2006-03-18 Thread Roger Gonzalez
You have some AS2 code that is doing something like root._th_ = ... in your SWF, which won't work when Flex 2 comes out. Basically, AVM- opcodes (AS1 and AS2) will not work in an AVM+ (AS3) SWF; support will be disabled in an upcoming release, and I'll be stripping them out when you do the embed.

RE: [flexcoders] AS3 :: Interface type verses Concrete type return

2006-03-17 Thread Roger Gonzalez
My rules of thumb: When passed in from the outside, use an interface. There's generally no reason to bake in a dependency to a particular implementation, whereas adding a concrete type reference will make it strongly coupled; whenever your class is compiled, it will always

RE: [flexcoders] Re: 2.0B1 - Use of CSS style sheet with DataGridColumn styleName

2006-03-16 Thread Roger Gonzalez
I can't speak to why your particular style isn't being set, but we accept both style name variants as equivilent, because foo-bar-ick gets internally converted to fooBarIck in order to map to AS identifiers (hyphens obviously don't work in identifiers). -rg -Original Message- From:

RE: [flexcoders] Themes are gone when using rsl...??

2006-03-10 Thread Roger Gonzalez
I assume you're talking about 1.5 here. Themes in 1.5 are a linker trick that says use this replacement definition instead of the one you were going to use. Because the use of RSLs says don't include any of these definitions, they'll be pulled in at runtime, the theme definitions are also

RE: [flexcoders] Re: Effects - Newbie help

2006-03-09 Thread Roger Gonzalez
We do support the new Flash Type engine, but indirectly - you have to export a SWF containing the font from Flash 8, and then embed it into your Flex 2 app. This doesn't change the need to have the font embedded, device fonts are still the default. -rg -Original Message- From:

RE: [flexcoders] FlashRemoting in ActionScript Project

2006-03-09 Thread Roger Gonzalez
No need to do it this way, see my previous solution. All you need is to make your Actionscript base class use FlexLoader as its bootstrap class (which has other benefits as well). -rg From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of M.Prabhakar

RE: [flexcoders] Re: XMLList as dataProvder for TileList

2006-03-09 Thread Roger Gonzalez
Also note that we have no way to monitor an XMLList for changes (its a snapshot), so if you want your dataprovider to update, your expression needs to include a reference to the actual XML. -rg -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of

RE: [flexcoders] Internal compiler error

2006-03-09 Thread Roger Gonzalez
I'm guessing that your project isn't finding the frameworks SWC. There are a few key classes that really irk the compiler if it can't find them. Did you remove it from your project, or perhaps move the file? -rg -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL

RE: [flexcoders] Re: Internal compiler error

2006-03-09 Thread Roger Gonzalez
@yahoogroups.com, Roger Gonzalez [EMAIL PROTECTED] wrote: I'm guessing that your project isn't finding the frameworks SWC. There are a few key classes that really irk the compiler if it can't find them. Did you remove it from your project, or perhaps move the file? -rg -Original

RE: [flexcoders] Internal compiler error

2006-03-09 Thread Roger Gonzalez
I know this isn't going to help you at the moment, but I just tested your code against our latest compiler, and it compiled without any error. I'm CC'ing the guy on our team who I suspect fixed the issue, to see if there are any workarounds to hold you until Beta 2 is out. Cheers, -rg

RE: [flexcoders] Error can not resolve a multiname reference unambiguously...

2006-03-08 Thread Roger Gonzalez
Change the line in loadImage to: var myloader:mx.controls.Loader = new mx.controls.Loader(); or var myloader:flash.display.Loader = new flash.display.Loader(); depending on which you want. If you were to have used mx:Loader as a MXML tag, we spell out the entire mx.controls.Loader

RE: [flexcoders] Re: Dynamic Image Loading

2006-03-07 Thread Roger Gonzalez
=../../../../../images/ {attachmentImageLocation}/mx:Loader /mx:VBox /mx:TitleWindow Thanks, _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Roger Gonzalez Sent: Monday, March 06, 2006 5:31 PM To: flexcoders

RE: [flexcoders] Why Java 1.4?????

2006-03-07 Thread Roger Gonzalez
So, not to get in the way of your rant, but perhaps instead of assuming the worst and going ballistic, you could first see if perhaps there -is- a solution. Did you contact support? -rg -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of

RE: [flexcoders] Dynamic Image Loading

2006-03-06 Thread Roger Gonzalez
Embed is a compile-time directive, not a runtime directive. You need to use mx:Image or mx:Loader to pull in your image. -rg From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of shahnavaz AlwareSent: Monday, March 06, 2006 1:56 PMTo:

RE: [flexcoders] Reading or Embedding SWFs?

2006-03-03 Thread Roger Gonzalez
-- From: Roger Gonzalez To: flexcoders@yahoogroups.com Sent: Friday, March 03, 2006 12:08 AM Subject: RE: [flexcoders] Reading or Embedding SWFs? If it doesn't import your frame labels, that's a bug. I don't know of any reason why those would be skipped. Not sure why you

  1   2   3   >