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 access is a problem at the
player level, but the other stuff is all fixable.)
 
-rg




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Bjorn Schultheiss
Sent: Wednesday, March 07, 2007 7:00 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Modules at 360Flex conference



Shaun, 

Smaller Swf output file sizes, 
Module support within the mx framework,
Module support within Cairngorm,
Issues with Viewstacks and Binding,
Embedding Fonts,

I think there are a couple more as well.


Bjorn


On 08/03/2007, at 1:11 PM, shaun wrote:




Bjorn Schultheiss wrote:
 Hey Alex,
 
 After your experience with modules do you believe it
was the correct 
 decision to include it in 2.01 as opposed to waiting
for 3.0?
!  Over here we just refactored away from modules to
the mon! olithic ria 
 because of outstanding issues..
 

What are the outstanding issues?

cheers,
- shaun







 



RE: [flexcoders] Modules at 360Flex conference

2007-03-08 Thread Roger Gonzalez
There are basically three solutions right now.
 
Brute force hammer solutions:
1) Embed the font everywhere in all SWFs, so that there is never any
confusion about where to find the font, because its everywhere.
2) Use Font.registerFont to globally register a particular font name
across all SWF boundaries forever.
 
Complicated solution that I tried to automate but it was just too weird:
3) Guarantee that whenever you create a TextField using a font that the
code creating the TextField is located in the same SWF as the font.
 
You'd think that 3 sounds doable, until you mix in the fact that if it
is utility code, it cannot be code that is shared between a parent SWF
and a client SWF, because the parent's version of the code will get used
and it will look in the wrong SWF context.
 
Basically, after wrasslin' with 3 for a while (by replacing all
instances of new TextField() with a getter to a per-SWF-unique class
factory hooked off of CSS blobs that almost worked until I hit the
PopupManager case), my head asplode.
 
-rg




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of - FI / Jonas Eliasson +
Sent: Thursday, March 08, 2007 3:54 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Modules at 360Flex conference





Regarding the embedded font issue:



We have following solution which seems to work well. It's also a
similar solution we have used on Flash 7 and 8. 





Embed the fonts into a SWF (Flash 8 or 9) both work with Flex.
Basically put them in a clip on the stage in the Flash IDE. Lets call it
fonts.swf. 



Then you create a CSS with following tags



@font-face {

src:url(../fonts/fonts.swf) ;

fontFamily: DIN Neuzeit Grotesk Std Bold Cn ;

}



.MainHeading {

  fontFamily: DIN Neuzeit Grotesk Std Bold Cn ;

  fontSize: 22px ;

  color: #55852A ;

}



Now you use FlexBuilder and compile the CSS into a SWF. 



Then use the StyleManager to reference and load the generated
css SWF 



Then you could do [UIComponent].styleName = .MainHeading ;





Hope that helps, I might be behind you guys but this has worked
on a couple of tests we have done. I guess the font.swf will still be
loaded from each module using it but it will be returned from the
browser cache.  Not sure if Adobe have some internal caching on these
loaders. 



Cheers, 



Jonas 







From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Bjorn Schultheiss
Sent: den 8 mars 2007 17:13
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Modules at 360Flex conference



RG,



1  2  3 are both linked.



200 kb for a shell plus another 600 kb for RSL's in the initial
download is too nasty.



What i need is modularization of the framework so that it can
'broken up', 

a cairngorm framework that supports a Model that is suited for
module development, 

and an alternative to databinding that doesn't break each time a
module is set to invisible or unloaded. 



Not being able to use embedded fonts is also painful.



This is not a module bashing email by the way.

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 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 access is a problem at
the player level, but the other stuff is all fixable.)

-rg







From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Bjorn Schultheiss
Sent: Wednesday, March 07, 2007 7:00 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Modules at 360Flex conference



Shaun,



Smaller Swf output file sizes,

Module support within the mx framework,

Module support within Cairngorm,

Issues with Viewstacks and Binding,

Embedding Fonts,



I think there are a couple

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 instances don't always
get fully cleaned up for GC (there certainly is no guarantee that
they'll get recycled immediately, but there are also occasionally some
references in the frameworks that don't always get unhooked correctly..
this is an active area of cleanup in the frameworks code).
 
I suggest that you play with the low-level ModuleManager/IModuleInfo API
to get a feel for the memory behavior of modules outside of the context
of modules that use the frameworks, and then work your way back to using
ModuleLoader to load frameworks components.
 
Cheers,
 
-rg




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Fabio Terracini
Sent: Tuesday, March 06, 2007 7:06 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex Player 9's (Flex 2) Memory Usage
- What's Normal?



Speaking on Modules, I might suggest you an hybrid approach.

If you load ModuleA, then load ModuleB and load ModuleA again
(either
by ModuleLoader or by SWFLoader), you'll end with two ModuleA
loaded
up into memory - you can confirm this by placing a Timer to
output a
trace (it's really hard to really remove a displayObject from
memory).
If you use ViewStack instead, you'll only have that ModuleA
loaded
once - but ViewStack implies on downloading all the Module at
the same
time - no progressive download at all.

So, the hybrid approach is something that I call
StackedModules.
I've blogged about

(http://blog.dclick.com.br/2007/01/23/gerenciamento-de-memoria-e-tamanho
-dos-arquivos-em-grandes-aplicativos-utilizando-o-modules-do-flex-201/
http://blog.dclick.com.br/2007/01/23/gerenciamento-de-memoria-e-tamanho
-dos-arquivos-em-grandes-aplicativos-utilizando-o-modules-do-flex-201/
)
but it's in Portuguese so you might just check the performance
charts
(or Google Translate it ;-)). At first sight it's simples as:

mx:ViewStack
mx:ModuleLoader /
mx:ModuleLoader /
/mx:ViewStack

You might improve by using ModuleManager.getModule() to check if
the
Module is loaded, then load if necessary, or just change the
selectedIndex, and so on. And build it using dynamic linking
(either
external or RSLs).

[]s
Fabio Terracini

On 3/5/07, jeofmoyster [EMAIL PROTECTED] mailto:jeof%40jeof.net 
wrote:
 So I'm developing what will be a good-sized application, but
I'll be
 carefully planning for download speed and runtime efficiency
through
 ModuleLoader, SWFLoader, etc.

 Right now I've barely begun but have finished the ground level
for the
 Data Retrieval, Normalization and Management (no FDS). The
memory
 monitor object shows about 40 megabytes of memory being used
when the
 data comes in, and drops to 24 MB if I leave the app still for
a a
 couple minutes afterward (I assume that's garbage collection
kicking
 after the data normalization).

 Flex is one my first forays into needing to worry about things
like
 memory management, so I'm looking for best practice and a
baseline of
 what's expected and acceptable.

 1) What's average memory load for a Flex application? When
do I
 start freaking out about using too much memory?

 2) How do I optimize memory management during run time? What's
the
 best way to encourage good garbage collection?

 Ideally this app will cache the data it receives over the
course of
 its runtime so switching back to older sets is faster than
reloading
 it from the server, but if this seriously chokes memory, I
need to
 come up with a new strategy.

 Any help is appreciated!





 --
 Flexcoders Mailing List
 FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
 Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links






 



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 need to always put the module info into a
single variable though, of course its going to get overridden.  You
could always keep an array of module infos.  Or, you can just call
getModule again.  No big deal.
 
-rg




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of aaronvm707
Sent: Sunday, March 04, 2007 10:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Managing Multiple Modules



Hello, I am trying to create an application that has a tab
navigator 
that gets loaded with different modules, similar to a browser
window 
opening multiple tabs. I have tried different methods but do not
know 
how to get a reference to a module to unload it once multiple
modules 
have been loaded. This is the code I am using to load the
modules:

public var info:IModuleInfo;

private function LoadModule(strUrl:String):void
{
info = ModuleManager.getModule(strUrl);

info.addEventListener(ModuleEvent.READY, modEventHandler);
info.load();
}
private function modEventHandler(e:ModuleEvent):void 
{
var m:Module = info.factory.create() as Module;
myTabs.addChild(m);
}

This code works very well to load as many modules as I need. The

problem is the public var info gets updated as each new module
get 
loaded. So I do I get an IModuleInfo object for a module that
has 
already been loaded that I can then call the unload() method.
Please 
any help or suggestions would be greatly appreciated. Thanks

Aaron 



 



RE: [flexcoders] Re: Managing Multiple Modules

2007-03-05 Thread Roger Gonzalez
The module manager knows what modules have been loaded, but it doesn't
provide an iterator.
 
If you know the URLs, you can check a given module's load status.  It is
harmless (other than creating some cached state) to probe a given URL
before you call load.
 
Removing the tab (and ensuring that you have no other references to the
child control) will only cause instance data to be GC'ed, not the
underlying bytecode.
 
The module's code will never get fully recycled unless you call
unload, because there is a ModuleInfo reference handing onto its
internal module class factory (in case there is a subsequent need to
reuse it).
 
-rg




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of aaronvm707
Sent: Monday, March 05, 2007 10:40 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Managing Multiple Modules



Roger, thank you for your quick response.

Does the module factory hold information (module ID, URL etc...)

about the modules I have loaded?

How important is it to unload modules? If I remove a specific
tab 
from 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 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 need to always put the module info
into a
 single variable though, of course its going to get overridden.
You
 could always keep an array of module infos. Or, you can just
call
 getModule again. No big deal.
 
 -rg
 
 
 
 
 From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com ] On Behalf Of aaronvm707
 Sent: Sunday, March 04, 2007 10:13 PM
 To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Managing Multiple Modules
 
 
 
 Hello, I am trying to create an application that has a tab
 navigator 
 that gets loaded with different modules, similar to a browser
 window 
 opening multiple tabs. I have tried different methods but do 
not
 know 
 how to get a reference to a module to unload it once multiple
 modules 
 have been loaded. This is the code I am using to load the
 modules:
 
 public var info:IModuleInfo;
 
 private function LoadModule(strUrl:String):void
 {
 info = ModuleManager.getModule(strUrl);
 
 info.addEventListener(ModuleEvent.READY, modEventHandler);
 info.load();
 }
 private function modEventHandler(e:ModuleEvent):void 
 {
 var m:Module = info.factory.create() as Module;
 myTabs.addChild(m);
 }
 
 This code works very well to load as many modules as I need. 
The
 
 problem is the public var info gets updated as each new module
 get 
 loaded. So I do I get an IModuleInfo object for a module that
 has 
 already been loaded that I can then call the unload() method.
 Please 
 any help or suggestions would be greatly appreciated. Thanks
 
 Aaron




 



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 classes.  There are many design patterns that can provide
a useful scheme design base (the 2.0.1 Modules feature uses the
factory pattern to good effect here.)
 
-rg




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of jack_freud
Sent: Monday, March 05, 2007 10:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex embedding SWF file and using it like
a component



I'm planning a rather large application that has several
sub-modules
that I thought should be loaded individually as separate swf's
to
decrease load time and memory requirements since the sub-modules
would
never need to be loaded at the same time.

I'm having trouble finding any articles on how to access the swf
from
the swfloader once it's loaded.

I found one blog from Peter Ent:

http://weblogs.macromedia.com/pent/archives/2004/12/accessing_swfs.cfm
http://weblogs.macromedia.com/pent/archives/2004/12/accessing_swfs.cfm


but the sample files are not there any more, and it's from 2004
so I'm
not sure if it would work with Flex 2 either...

I'm trying to access the content of the loaded swf throught the
swfloader's content property, but it's not finding the objects
within
the swf because it hasn't been loaded yet, and so the outer mxml
will
not compile without errors.

Does anyone have any sample code that does this, or have a
suggestion
as to whether this is a good design idea or not - I'm afraid of
loading a Flex app with hundreds of screens and having it take
forever
to load.

Thanks!



 



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 preferable to you?
 
-rg




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of - FI / Jonas Eliasson +
Sent: Monday, February 26, 2007 8:24 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Just curious, A big development
team or individual developers



We are a team of 6 developers working on a flex project from two
offices
using SVN. We have a modular setup where we use different RSL's
and external
modules which are pulled in from a main application. This way we
can work
independently. 

I have been developing Adobe (Macromedia) products for about 5
years and
this time I was hoping for a solid product. But right now it
feels like I am
a paying beta tester... Flexbuilder is not easy to setup for a
modular
application approach. Right now we are using the Flex SDK and
ANT which
makes it easier to set up a large application with many external
modules and
RSL's. Now we only use Flexbuiler for the text editor and step
debugger.
$500 for a text editor, silly huh! Hopefully we will se good
updates in the
near future. 

Jonas 

-Original Message-
From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
Behalf Of softwarecat
Sent: den 23 februari 2007 15:35
To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
Subject: [flexcoders] Re: Just curious, A big development team
or individual
developers

For our project it is a TEAM of 2. I am entirely new to flex and
AS3 
with more of a design/html background. I'm now knee (sometimes
it 
feels neck deep) in the front end design while my partner is
more 
code PHP background is providing the code and architectures. It 
seems to work.

We are sharing with CVS through flex builder, but it is tough to
work 
on the main file (commit - update issues maybe someone has some

advice on this area). It is working, but we are only 6 weeks in
and 
development has definately been slowed by our learning curve,
But 
with that said I'm head over heels in love with Flex and AS.

We plan to add an additional developer over the next two weeks
(any 
ideas where to find a respectable one?)

--- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com ,
Robert Chyko [EMAIL PROTECTED] wrote:

 For the project I am on now, it is just me.
 
 For the project that is being designed it will be a team. We
have 3
 inhouse Flex devs currently (myself and 2 others) and will
either be
 hiring more or bringing in some consultants.
 
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com ]
On Behalf Of boy_trike
 Sent: Friday, February 23, 2007 1:57 PM
 To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Just curious, A big development team or
 individual developers
 
 
 
 I wonder how many people are working on TEAM to develop their
 flex applications (and how 
 many are 1 or 2 men (whoops I mean PEOPLE) developers. Please
 discount the Graphic 
 artists, HTML coders. et. al. If you have 3 or more people
 working on the same flex 
 application, please answer as a TEAM. 2 or 1, INDIVIDUAL.
 
 Thanks
 Bruce




 



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: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith
Sent: Wednesday, February 21, 2007 3:44 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] compc - degrees of specification




Resending because this didn't seem to make it through to the
list.
 
- Gordon



From: Gordon Smith 
Sent: Wednesday, February 21, 2007 9:15 AM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] compc - degrees of specification


A typical way to do this is to first create a manifest file
for the components in the library, so that they can be associated with a
namespace of your choosing that is unrelated to your package hierarchy.
(Take a look at the file mxml-manifest.xml in the frameworks directory.
The flex-config.xml file associates this manifest file with the single
namespace http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  despite the fact that its classes are
in various packages like mx.controls, mx.containers, etc.)
 
After you have set up a manifest file, you can use compc's
-namespace and -include-namespaces options to include all the components
in that namespace's manifest (and all the classes that they depend on)
without naming each one:
 
compc -namespace
http://www.yourcompany.com/flex/coolcomponents
http://www.yourcompany.com/flex/coolcomponents
mycoolcomponents-manifest.xml
   -include-namespaces
http://www.yourcompany.com/flex/coolcomponents
http://www.yourcompany.com/flex/coolcomponents 
 
If there are other classes that should go into your SWC which
aren't listed in your manifest or which the compiler can't discover by
doing a dependency analysis starting from the classes in your manifest,
then you can use the -include-classes option to list them one-by-one.
 
- Gordon



From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of alehrens
Sent: Wednesday, February 21, 2007 8:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] compc - degrees of specification



Hi,

I'm tinkering with using Ant for our flex build... We have two
libraries that contain a good amount of files (say, 25 .as file
and 20
.mxml files for this example).

My questions are:

1. Do I include both types of files in the compc task - to build
everything in our library into one .swc?
2. Is there any way to wildcard it or do I have to specify every
file
out explicitly?

aaron





 



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 ByteArray {}
 
and then use Loader.loadBytes to dynamically load the SWF out of the
binary blob.  From there, use getDefinition as you describe.
 
-rg




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Matt Freer
Sent: Sunday, February 18, 2007 3:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flash 9 swf as RSL



Hey Guys,

I am trying to embed a Flash 9 compiled AS3 swf into a Flex 2
app. Once the flash swf is loaded into the Flex app I want access to all
the exported library items and there associated classes.

I have successfully achieved loading an AS3 swf into a Flex 2
app at runtime via the loader class. Through using a combination of
setting the context.applicationDomain and
applicationDomain.getDefinition(), I am able to successfully create
instances of the swf library objects

However I want to achieve this NOT at runtime but by embedding
the swf into the Flex app. 
It seems logical to me that this would be possible using a RSL -
but so far no joy.

Has anyone done this?

Cheers
Matt


 



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.
 
Basically, it doesn't make any sense for a compiler to ignore CSS
errors, particularly since in Flex they result in code generation.
 
If we moved to runtime parsed CSS where the compiler never sees it, I'd
expect that should do the best effort approach, though.
 
-rg




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Chuck White
Sent: Tuesday, February 13, 2007 12:35 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] New Version of Flex Style Explorer
with Tons on New Features




Peter, isn't that a bug in the Flex compiler?
 
CSS specification is pretty clear that bad rules should be
ignored. Compilation errors are an inherent flaw in the Flex compiler if
they are generated by CSS rules, especially if those rules include
specific binary font requirements.


- Original Message 
From: Brian Holmes [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 13, 2007 11:45:21 AM
Subject: RE: [flexcoders] New Version of Flex Style Explorer
with Tons on New Features




Peter,
 Yeah I saw that. Just so you guys know, MyriadWebPro. ttf and
MyriadWebPro- Bold.ttf isn't included in the download, so it won't
compile until you go get the files off your server or remove the
reference from the css.
 
thanks again,
B..



From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@
yahoogroups. com] On Behalf Of Peter Baird
Sent: Tuesday, February 13, 2007 12:13 PM
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] New Version of Flex Style Explorer
with Tons on New Features


Eh, personal preference I guess. Personally, I didn't care for
all the visual clutter that a million color wheels added.  

The good news, however, is that the source code is available to
you with view source (from the online version at http://examples.
adobe.com/ flex2/consulting /styleexplorer/ Flex2StyleExplor er.html),
http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExpl
orer.html),  and you can go into the colorPicker components
(components/ colorPicker, components/doubleCo lorPicker, and
components/quadColo rPicker) and change the visibilty of the images to
be always visible and recompile for your very own version where color
wheels are always visible.

-Peter  


On 2/13/07 1:59 PM, Brian Holmes [EMAIL PROTECTED] com wrote:



Peter,
 The new style explorer's great, but man you guys are
killing me with the roll over to show the advanced color picker. Makes
the whole thing look buggy IMHO, can you just show them all the time?

Brian..




From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@
yahoogroups. com] mailto:[EMAIL PROTECTED]  On Behalf Of
Peter Baird
Sent: Tuesday, February 13, 2007 11:33 AM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] New Version of Flex Style Explorer
with Tons on New Features

Hello All,

I wanted to let you all know that we've just released a
new version of the Flex Style Explorer with Tons of new features,
including export all CSS functionality, advanced color picker, support
for style names, inclusion of new components, and several other
features.  I've got a full article on all the new features, and the new
style explorer can be downloaded at the below URL. 

http://weblogs. macromedia. com/mc/archives/
2007/02/new_ flex_style. cfm
http://weblogs.macromedia.com/mc/archives/2007/02/new_flex_style.cfm 

Enjoy, and happing styling.

-Peter

/ \(r)   PETER BAIRD
888/   \888User Experience Consultant
88/  /  \88Adobe Consulting | Adobe Systems, Inc
8/  /8\  \8275 Grove St. Newton, MA
/  /888\  \
\8\  




***
The information in this e-mail is confidential and
intended solely for the individual or entity to whom it is addressed.
If you have received this e-mail in error please 

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: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of mthielman11
Sent: Friday, February 02, 2007 9:59 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Module Loader progress bar



We have a large app we are building and decided to break it into
modules. We have the module loading after a user successfully
logins
in. After the login it changes states to a box that just
contains th
moduleLoader. Its all working fine except we get no feedback as
to
the progress of the module. Is there a way to make it appear
similar
to the way the flex swf progress appears when loading the flex
app? I
have tried, unsuccessfully to use the module loader code in the
docs.
Thanks



 



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 mindmillmedia
Sent: Friday, February 02, 2007 2:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Displaying Mathematical Formulas in Flex



I am the lead on a project that I really want to use flex on. 
However, I have a bit of a problem. Without going into a great
deal
of detail, I need to be able to generate and display
mathematical
equations within flex (complicated ones). 

I had a few thoughts on the issue:

1. If I could have an outside script that could create the
equations
and save them as images, it would be fine. However, it would
have to
be web app - not a desktop one. If there were a library for
PHP's GD
Library or something like that.

2. If there were a Flash Component that could generate the
equation,
I could easily write a script to extract that data and save it
in some
useful format.

3. If I had to, I could leverage the browser and use the IFrame
concept first demonstrated by Christophe Conraets. However,
there is
still no widely supported way of displaying equations in HTML
(yes, I
know about MathML - but it is still not fully supported in all
browsers without plugins).

I hope someone has an idea of how this could work best.

David Tucker



 



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 mouseover/mousehits.  I did something pretty
simple, just used a coarse version of the coordinates as a hash key to a
list of items in that cell.
 
-rg




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith
Sent: Thursday, February 01, 2007 4:23 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] What is the best way to draw about
10,000 to 15,000 rectangles?





 adding all of them to the display list takes so long and is
just too much 



What kind of time are you seeing? I was able to add 10,000
UIComponents as children in about 10 seconds. And I was able to add
10,000 Sprites as raw children (using rawChildren.addChild()) in about
2 seconds. How fast do you need it to be?



- Gordon







From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of arcencie1978
Sent: Thursday, February 01, 2007 6:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] What is the best way to draw about 10,000
to 15,000 rectangles?



Hello folks,

I'm trying to put about 10,000 to 15,000 rectangles 

in a stage.

And I'd like to know what could be the best way to do this..

Of course, I can just draw everything on the stage,

without having to make instances of a class,

which defines the way to draw them.

Yet the thing is that,

every rectangle,sized about 5~10 pixel width and 3 pixel height,

has to respond to events such as mouse over and mouse click
events..

So I've tried to make a cell class and made some 10,000
instances of 
it

but adding all of them to the display list takes so long and is
just 

too much

Yet forgetting about making instances of this sort of class and 
using something like BitmapData 

doesn't give me any idea about how to register events to each
cell..

So is there anybody who has developed this sort of application?

By the way, the reason I have to draw these so many pieces is
because

each cell actually represents a container in the harbor and
there are

just so many of them and my client wants to put all of'em in the

application. 





 



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
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Problems with embeding in class



Hey people!

I'm trying to make something stright forward in here with Flex
but somehow I'm running itno frustration instead of work.
What I'm trying to do is most simple thing:

public class foo extends UIComponent { 
[Embed(source='assets/ResizeArrow.swf')]
private var pointerSource:Class;
}

Looks like there no place for any error, but there is.
Current lines give me folowing errror: 
'source='assets/ResizeArrow.swf'' does not have a recognized
extension, and a mimeType was not provided
Unable to transcode source='assets/ResizeArrow.swf'

In current project there is folder named assets and there is
file named  ResizeArrow.swf, whats a problem?

Could it be that problem is because this class is placed in
classPath Build path, not in project root? 
If so, where is Embed commands root, where does it start to look
for files? 

Since Flex was complaining about lack of mimeType I added one
and got most frustrating error message there can be:
source='assets/ResizeArrow.swf',
mimeType='application/x-shockwave-flash '' does not have a recognized
extension, and a mimeType was not provided 
That is so great!

One more question.
Many samples in help docs use [Bindable] for Class variable, is
that obligatory? Anyways I tried to add that with no luck.

Couuld it be that flex gone crazy, or is it just me? 

Janis 

 



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 zzwi89
Sent: Wednesday, January 31, 2007 12:58 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Question on managing Flex libaries and
Modules



I should add that for the two non-library projects, I have set
the
project properties to include the library. I even tried setting
the
link type of the library in each project to External, which has
the
desired effect of decreasing file size, but causes this error:

VerifyError: Error #1014: Class IWatcherSetupUtil could not be
found.
at flash.display::MovieClip/nextFrame()
at mx.core::FlexModuleFactory/::deferredNextFrame()
at mx.core::FlexModuleFactory/::update()
at mx.core::FlexModuleFactory/::moduleCompleteHandler()

Consequently, none of the modules are loaded.



 



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 name/definition).  Make sure you're loading the module into a child
of the main app.  (I assumed that you were - is the ready event
handler you cite defined in the parent?  If so, I'd think it would be
linked in.  Just checking.)
 
Dump out a link-report for each of the things that you're compiling and
ensure that the interface is defined where you expect.
 
-rg




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of jerome_cordiez
Sent: Tuesday, January 23, 2007 10:54 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Module subclass issue



Hello,

I finally decided to port an existing development towards the
new
Modules architecture, and i am facing a pretty tough issue here.

I have a bunch of modules, that all extend BlockModule, which is
a
Module subclass that itself implements the IBlockModule
interface.
BlockModule and IBlockModule are in a library that the modules
project
includes. 
Apparently, everything compiles fine, so far so good.

But now, in my application, I load these modules (using
ModuleLoader),
and, when ready, try to set a symbol property on these
modules.
Using the target property of the ModuleEvent, I correctly find
the
modules. But, in order to be able to set the symbol property,
I need
to cast them as IBlockModule.

And, that simply doesn't work.

Here is what my ready event listener looks like :

private function blockReady( pEvt:ModuleEvent ) : void
{
var ml:ModuleLoader = pEvt.target as ModuleLoader;
var block:IBlockModule = ml.child as IBlockModule;
trace (ml.child); // output is correct
trace (block); // null (apparently, the casting failed)
if( block != null) {
block.symbol = symbol;
}
}

From what my googling tells me, I believe it might be an issue
with
the shared library But I honestly have no clue of what
precisely
(everything seems correct to me) nor of how I could solve this.

If anyone has an idea, i would love to hear it :)
cheers,
J.



 



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 into issues if you try to make a
frameworks-based module that doesn't extend mx:Module.  There is some
codegen magic that happens in that case that doesn't happen if you
extend the more stripped-down ModuleBase.
 
-rg




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of tvikatos
Sent: Friday, January 19, 2007 12:51 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Problem with module classes
instantiation through ModuleManager



Anyone expert in modules, has a clue?
Is ModuleManager and the factory you get when loading a module, 
supposed to work with AS-only modules?
We are generally lacking documentation and examples with the 
ModuleManager...

--- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , tvikatos [EMAIL PROTECTED] wrote:

 I have a module that combines mxml and as3. The problem I
describe
 below happens in either case:
 * main module file in AS extending ModuleBase
 * main module file in MXML extending mx:Module
 
 When I load the module using ModuleLoader and its 'child'
property,
 all is good.
 When I use ModuleManager and I instantiate a module object
through
 IModuleInfo.factory.create(), the objects defined as MXML tags

within
 my module are not instantiated (properties remain null).
 Is there something I can do to properly instantiate the module
 (something that apparently ModuleLoader does behind the
scene)?
 
 Or should I just not use any MXML with modules?




 



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
Subject: [flexcoders] Loading Modules issue/confusion



Playing with the whole Module loading thing and discovered a few
things that seem odd, or maybe I just don't get Modules like I
thought
I did.

I created an Application with a ModuleLoader including two
listeners:
Setup and Ready.

Inside of my Module.swf (swf to load into the ModuleLoader) I
have a
simple Canvas object, within the Module tag I also include a
creationComplete which calls initMod. Also inside the Module.swf
I
have a function called getInfo that does a simple trace.

When I compile my Application I expected to see some traces in
the
following order:

Loading Module...
Module Setup...
Loaded Module created...
Module Ready...
getInfo called...

or 

Loading Module...
Module Setup...
Module Ready...
Loaded Module created...
getInfo called...

My thinking was that as I load the Module.swf I would see the
Setup
called when it begins to load, then when the Module.swf is
loaded the
creationComplete would fire, followed by the Ready with my
getInfo
call firing last. The Ready and the creationComplete may be flip
flopped I was not sure which would fire first.

What did trace out surprised me.

Loading Module...
Module Setup...
Module Ready...
getInfo called...
Loaded Module created...

So what stumped me is that the getInfo call actually worked
before the
creationComplete fired. Why did this happen in this order?

Also having issues with the idea of passing data on the Query
string
but that is for another post still playing with the code.

Thanks.

LD



 



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 batch friendly.
 
-rg




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of jonrmayer
Sent: Friday, January 19, 2007 11:15 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dynamic creation then compilation of
classes



A total newbie question but:-

I want to dynamically create actionscript classes from a
database - 
Currently using .net

This is fine BUT the problem I am having is how do I compile
them into 
swf format.

Each one has to be an independent swf file

I have Flex Builder but for the life of me I can't work out how
to do 
multiple file compilations

I could either have 10 files or 1000 - so I need to work out how
to do 
this.

All help gratefully received.

Jonathan



 



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: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of kristian_wright2002
Sent: Wednesday, January 17, 2007 6:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Module Interface Problems




I'm having a problem passing variables from one module to
another via
an interface.

I have an application that calls a module when it enters a
specific
state, which works fine. The module is loaded through
mx:ModuleLoader
id=modMyModule1 url=myModule1.swf and it works as expected.

Within this module, I have a button that when pressed, calls a
second
module via a module loader, using an interface. I need an
interface,
as there is a variable that I need to pass between these two
modules.
Clicking the button runs a couple of functions, ending with:

currentState='Results';
modMyModule2.url='myResults.swf;

and the states look like:

mx:states
mx:State name=Results
mx:AddChild
mx:ModuleLoader id=modMyModule2 ready=readyModule(event)
error=modErrorHandler(event) /
/mx:AddChild
/mx:State
/mx:states

So when the module is ready, the following code is invoked in
modMyModule1:

private function readyModule(evt:ModuleEvent):void
{
var ichild:* = modMyModule2.child as IResults;
if(ichild != null) { ichild.searchResults = arrSearchResults;
trace(NOT NULL); }
else { trace(NULL!); }
}

modMyModule2 contains 'implements=IResults' in it's root
module tag,
and IResults is defined as follows:

package
{
import flash.events.IEventDispatcher;
import mx.collections.ArrayCollection;

public interface IResults extends IEventDispatcher
{
function set searchResults(arrResults:ArrayCollection):void;
function get searchResults():ArrayCollection;
}
}

I have corresponding getter and setter functions in my
modMyModule2,
but they never seem to get called! For some reason, the
interface is
always failing, and therefore in my readyModule() function in
the
first module, it always traces NULL.

I can access the required variable in the second module via
parentApplication.modMyModule1.child.arrSearchResults, but I'd
prefer
to do it via the interface.

I've gone through all the docs, but I can't see what I've done
that's
different from anything in them, except for the fact that I'm
calling
a module from a module via an interface.

Can anyone shed some light on this at all?

Cheers,
K. 



 



RE: [flexcoders] Re: Compiling modules

2007-01-11 Thread Roger Gonzalez
ModuleLoader is a kind of strange API that is really just intended to
look like SwfLoader for modules that contain a single visual component,
and hides most of the module loading infrastructure, which is all about
class factories.
 
What I mean by only loaded once is that if you have several places in
the code that call the ModuleManager.getModule(url).load() call, it
will only ever get loaded over the wire and interpreted once, subsequent
loads will just re-dispatch pseudo-load events to the new client.  In
other words, the class factory is a singleton for a given url.
 
Unloading is a totally different story.  As you note, not everything is
truly unloadable, because there may be lots of references to stuff in
the module that will keep it alive and un-GC'ed.
 
I suggest playing with the low-level API so that you understand the
backing implementation, and this should help you understand the limits
of ModuleLoader.
 
-rg




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Fabio Terracini
Sent: Thursday, January 11, 2007 1:43 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Compiling modules



Hello Roger, you told below that they only ever get loaded once.
This loaded mean loaded in memory or loaded by transferring over the
wire?

I've made tests between Modules and SWFLoader, specifically
about memory consumption. In one of them, I called loadModule() and
unloadModule() several times (loading the same module, of course), and
the memory only increases! I think this is the expected (although not
the willed) behavior (as is in the SWFLoader) since Flash Player can't
really kill (and free the memory) a DisplayObject. It would 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]  wrote: 

The main difference between modules and applications is
that modules have lower overhead, and they only ever get loaded once, no
matter how many times you load them.
 
If you're using the ModuleLoader API, keep in mind that
you're losing about half the functionality of the module system.  I will
assume that you are, because otherwise it would be obvious where to
expose methods.  You might want to play around with the lower level
ModuleManager API just to get a hang of what's going on - ModuleLoader
is a pretty thin veneer over the lower API.
 
Basically, what you want to do is to have your module
implement an interface, say IModuleWhatever.
 
Have your application implement another interface, say
IShellWhatever.
 
Now, add an event handler in the shell application such
that when the module is loaded, you get called back.
 
The ModuleLoader's child property will be an instance
of your module class.  You can cast it to the interface inside the shell
application, and then do something like:
 

IModuleWhatever(moduleLoader.child).setupStuff(IShellWhatever(app))
 
-rg




From: flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com  [mailto:flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com ] On Behalf Of Brian Holmes
Sent: Tuesday, January 09, 2007 8:05 AM 

To: flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com 
Subject: RE: [flexcoders] Re: Compiling modules






Roger,
 Would it be possible to get an example of how a
shell app could communicate or pass data to a module and vice versa. I'm
having difficulty understanding of how to expose methods on both sides
that allow for interoperability. What I'd like to do is to load  user
data in the shell application and then add modules at runtime as needed.
If they require user information then have them look to the shell for
that information so it's always in the same place.
 
And Also, I can't really see any real difference
between a module and another application except for it's extremely
tedious to debug the modules?!  Couldn't the module automatically look
for a debug version of the swf if the shell is a debug version? 
 
Thanks,
Brian
 



From: flexcoders@yahoogroups.com

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 (in
particular, does it rely on CSS, and do you expect the product of the
module to be able to be added as a visual component) then you need to
extend Module so that the compiler does the correct code generation.
 
If you extend Module in a non-frameworks AS project, you will pull in
lots of code that you don't want.
 
-rg




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Daniel Freiman
Sent: Tuesday, January 09, 2007 7:01 AM
To: flexcoders
Subject: [flexcoders] Modules and ActionScript



The docs say that you should extend from Module if you are using
mxml and ModuleBase if you are using Actionscript, but these Classes are
drastically different.  One is a subclass of EventDispatcher (similar to
and Object) and one subclasses LayoutContainer (similar to Container).
This is a very important difference.  I've tried using actionscript to
subclass Module and it works perfectly fine.  Are the docs incorrect or
is there a more subtle reason why actionscript shouldn't extend Module? 

- Dan


 



RE: [flexcoders] Re: Compiling modules

2007-01-09 Thread Roger Gonzalez
The main difference between modules and applications is that modules
have lower overhead, and they only ever get loaded once, no matter how
many times you load them.
 
If you're using the ModuleLoader API, keep in mind that you're losing
about half the functionality of the module system.  I will assume that
you are, because otherwise it would be obvious where to expose methods.
You might want to play around with the lower level ModuleManager API
just to get a hang of what's going on - ModuleLoader is a pretty thin
veneer over the lower API.
 
Basically, what you want to do is to have your module implement an
interface, say IModuleWhatever.
 
Have your application implement another interface, say IShellWhatever.
 
Now, add an event handler in the shell application such that when the
module is loaded, you get called back.
 
The ModuleLoader's child property will be an instance of your module
class.  You can cast it to the interface inside the shell application,
and then do something like:
 
IModuleWhatever(moduleLoader.child).setupStuff(IShellWhatever(app))
 
-rg




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Brian Holmes
Sent: Tuesday, January 09, 2007 8:05 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Compiling modules




Roger,
 Would it be possible to get an example of how a shell app could
communicate or pass data to a module and vice versa. I'm  having
difficulty understanding of how to expose methods on both sides that
allow for interoperability. What I'd like to do is to load  user data in
the shell application and then add modules at runtime as needed. If they
require user information then have them look to the shell for that
information so it's always in the same place.
 
And Also, I can't really see any real difference between a
module and another application except for it's extremely tedious to
debug the modules?!  Couldn't the module automatically look for a debug
version of the swf 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
Subject: RE: [flexcoders] Re: Compiling modules


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: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of John Kirby
Sent: Monday, January 08, 2007 12:32 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Compiling modules



Thanks for the examples.

Question... if you are passing parameters to a module I
assume your url syntax is the same as a SWFLoader (myswf.swf?foo=bar)
... but module has no parameter property?  How do access passed
parameters to a module?

phillips1021 said the following: 

See: 

http://www.brucephillips.name/blog/index.cfm/2007/1/8/Example-Of-Using-M
odules-In-Flex-201
http://www.brucephillips.name/blog/index.cfm/2007/1/8/Example-Of-Using-
Modules-In-Flex-201 

for a simple example.




-- 
Whether you think that you can, or that you can't, you
are usually right.
 - Henry Ford 









***
The information in this e-mail is confidential and intended
solely for the individual or entity to whom it is addressed. If you have
received this e-mail in error please notify the sender by return e-mail
delete this e-mail and refrain from any disclosure or action based on
the information.
*** 





 



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 asymmetry in the FB project structure in that you can
add a new MXML Application (which could be a module) to a MXML project
- its a many-to-one relationship, but you can't add a new AS Application
to an AS project, its always one-to-one.)
 
-rg




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of phillips1021
Sent: Monday, January 08, 2007 5:13 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Compiling modules



Great question. I've run into the same problem. How do you use
Flex
Builder to compile just the module?

The only work-around I've found so far is to right-click on the
module
name in the navigator panel and select Run As Flex Application.
This
command will create a .swf and .html files for the module and
try to
load it in the browser (where nothing will display). 

It's not the best solution and I hope someone posts a better
one, but
it is all I've found to work so far.

I did search through the Flex 2.0.1 help files but did not find
anything.

Bruce



 



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: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of John Kirby
Sent: Monday, January 08, 2007 12:32 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Compiling modules



Thanks for the examples.

Question... if you are passing parameters to a module I assume
your url syntax is the same as a SWFLoader (myswf.swf?foo=bar) ... but
module has no parameter property?  How do access passed parameters to a
module?

phillips1021 said the following: 

See: 

http://www.brucephillips.name/blog/index.cfm/2007/1/8/Example-Of-Using-M
odules-In-Flex-201
http://www.brucephillips.name/blog/index.cfm/2007/1/8/Example-Of-Using-
Modules-In-Flex-201 

for a simple example.




-- 
Whether you think that you can, or that you can't, you are
usually right.
 - Henry Ford 




 



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 tooling
support.  If we'd waited for tooling support, you'd be waiting until
Flex 3.  So, you'll have to do a bit more manually.  Its annoying, but
not particularly onerous.
 
-rg




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Brian Holmes
Sent: Monday, January 08, 2007 10:07 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Compiling modules



Would it be possible to post an example of how to use the
mx.modules? 

I would assume that you add a mx:Module/mx:Module instead of
the
Application tag and it would get compiled
And then in your shell application you use the mx:ModuleLoader
tag to
point to your module.

Is this correct or am I way off. I can't get it to work either.
Also, I
also assumed I could just right click on my application in
Flex Builder and select the option of New  Module. That doesn't
work
either.

I've really been looking forward to modules, but after upgrading
this
morning and reading your message about how to use them,
I'm nothing but extremely confused and discouraged.

Brian..

-Original Message-
From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
Behalf Of Matt Horn
Sent: Monday, January 08, 2007 8:10 AM
To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
Subject: RE: [flexcoders] Re: Compiling modules

There is no explicit project type for modules in Flex Builder 2.
To
create a module in Flex Builder, you treat the module as an MXML
application and compile it. 

There are two basic approaches:

1) One-project model: Create the modules in the same project as
your
application and add them to the application list. This approach
works as
long as the application and the modules share the same compiler
settings
(such as library path).
To debug the application with modules, reference the debug SWF
file from
source code during development, and switch to the non-debug one
when you
are ready to deploy. 

2) Multiple-project model: Create a separate Flex or
ActionScript
project for each module. Add a linked file to the source folder
of your
shell projects that want to use it. This copies the module's SWF
file
over at shell project build time. 
Alternatively you could point the module project's output folder
at your
shell project's output folder, but a linked file is better.
To support debugging, point the link at the debug SWF file and
change
that when you are ready to deploy, without altering source code.

My apologies for not getting this into the proper documentation.
I am
currently working on a section about compiling modules with Flex
Builder
that will be added to livedocs. The reality is that Flex Builder
2.0.1
does not have explicit support for modules. What you need to do
(what
you have already figured out) is someone hacky.

I'll post to this list when the livedocs pages have been
updated.

-matt horn
flex docs

 -Original Message-
 From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com ] On Behalf Of phillips1021
 Sent: Monday, January 08, 2007 8:13 AM
 To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Re: Compiling modules
 
 Great question. I've run into the same problem. How do you use
Flex 
 Builder to compile just the module?
 
 The only work-around I've found so far is to right-click on
the module

 name in the navigator panel and select Run As Flex
Application. This 
 command will create a .swf and .html files for the module and
try to 
 load it in the browser (where nothing will display).
 
 It's not the best solution and I hope someone posts a better
one, but 
 it is all I've found to work so far.
 
 I did search through the Flex 2.0.1 help files but did not
find 
 anything.
 
 Bruce
 
 
 
 
 

--

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 loads of
the same class - first definition in wins.
 
What are you using to do the loading?  Can you make a small repro?
 
-rg




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of jerome_cordiez
Sent: Wednesday, January 03, 2007 5:45 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Loading assets with inheritance issue



Hi all,

yet another issue I'm currently facing...

I have a main swf file, loading multiple external swf, each
containing
a component in the library wich is linked to a specific class
that
inherits from one SuperClass that itself extends MovieClip.

so we have :

fileA.swf contains componentA that extends SuperClass and
implements
BaseInterface
fileB.swf contains componentB that extends SuperClass and
implements
BaseInterface
fileC.swf contains componentC that extends SuperClass and
implements
BaseInterface
etc...

and main.swf, that at runtime loads all these library files,
and
retrieve the classes definitions of all the components... which
works
pretty well as long as I only load ONE library file.

If I try to load all the files in a queue, after the first
loading, I
run into a Error #1074: Illegal write to read-only property
BaseInterface on global at global$init() error...
If I modify the components so that they don't implement the
BaseInterface anymore, I still get the same error, but caused by
writing on SuperClass, which leads me to think that the problem
is
coming from the fact that each file tries to overwrite the
common
superclass's definition Am I correct assuming this?

If so, is there a way I could prevent this from happening?
Anyway, as always, any kind of help would be greatly
appreciated,
thanks a lot! :)

cheers,
J.



 



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 Embed).  However, this is only for older SWFs.  You can't
reference an AS3 class this way.
 
-rg





From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Rick Schmitty
Sent: Friday, December 29, 2006 11:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How do you load library symbols without
embedding via SWFLoader?



Hi all, trying to load some assets from a Flash AS3Preview
project but
I can't figure out how to specify the symbol when loading
dynamically

Here's the flex example

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
mx:Script
![CDATA[ 
[Bindable]
[Embed(source=/ball.swf, symbol=ball_mc)]
public var swf:Class;

public function debug():void { 
trace(set break point here and inspect swfLoader.content vs
swfLoaderEmbed);
swfLoaderEmbed.content[label_txt].text=Hello World!;
} 
]]
/mx:Script

mx:SWFLoader id=swfLoader source=ball.swf/
mx:SWFLoader id=swfLoaderEmbed source={swf}/

mx:Button label=click click=debug()/


/mx:Application

Ball.swf is a simple ball contained in ball_mc in the library,
and it
has a text field in that object of the name label_txt

How do I work in the symbol=xxx aspect of the embed into the
SWFLoader
that is loading dynamically? This library could potentially be
very
large and I'd rather not embed the whole thing up front


 



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 going
to do that.  :-)
 
-rg




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of ssundke
Sent: Tuesday, December 19, 2006 1:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Load swc instead of swf



Hi

I was using a .swf file generated wrappers to show a flash file
on the 
web. Due to some recent changes, I wanted to explore changing
this to 
a .swc file since I need some resources (help files, etc) and
they are 
better bundled in the swc file. Do html wrappers work with swc?
I was 
able to generate the swc file (with a library.swf and
catalog.xml) but 
done know how to use it with the wrapper (the .js files seem to
use 
the .swf files)

What am i missing?

- Saba



 



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.
(c) dynamically load another SWF that contains the definition, and use
ApplicationDomain.getDefinition.
 
-rg




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of genius_gen2k
Sent: Thursday, December 14, 2006 8:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Instantiating Class Dynamically



Hello Everyone,

I am trying to instantiate a class dynamically via the data from
an
external XML file. I get the class name as a String in Flex code
and
then I have applied the below code to instantiate that string as
a
class. Here MyClass is a custom class inside the com.apps 
package. I have also imported the above class with fully
qualified 
name.

I have a code written as below:

try {
var dynamicClass: String = com.apps.MyClass;
var classRef:Class = flash.utils. getDefinitionByN
ame(dynamicClass )
as Class;
var myClass:* = new classRef();
} 
catch(e:ReferenceEr ror) {
tracer.traceMe( e.errorID +  +e.message);
}

This code works perfectly with the standard Flex classes like
flash.display. MovieClip but gives me Reference error (code
1065)
when I use com.apps.MyClass for the dynamicClass statement
above.

Anything specific needed to be done with the custom class, to
make it
accessible, the way MovieClip class is accessed. Any ideas of
how do 
i go about this?

Amol.



 



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
member of type XML.
 
-rg
 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of tobiaspatton
Sent: Tuesday, December 12, 2006 1:55 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Embedding XML document in Actionscript



Hello list;

I can't do this in MXML:

mx:XML id=summary source=Data/summary.xml/

But I can't do this in ActionScript

[Embed( 'Data/Summary.xml' )]
private var summary : XML

(I get this compiler error: Embed only supported with variables
of 
type Class or String. )

Any workarounds?



 



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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
René
Sent: Monday, December 11, 2006 6:08 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex mx.modules :: Status ?




Since a month I have seen messages concerning the new Flex mx:modules
package announced for Flex Version 2.0.1. Still its difficult for us to
get a grip on this, as information is scattered all over the place. So
we are not sure whether mx:modules is just a ghost we are hunting or
whether it is for real.

Although Matt Chotin was mentioned to have a stake in this - we were not
able not find anything related on his blog.

Are there any news on this ? Is there a prototype ? Who else is working
in similar concepts ?



 



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 linking.  Check out the configuration options
externs, load-externs, and external-library-path for techniques
for excluding things from linking.
 
Note that if the definitions were previously loaded (either in the
current or a parent AppDom) it is harmless (just wasteful) to load them
again, as they will only get initialized once.
 
-rg




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Shannon
Sent: Sunday, December 10, 2006 4:46 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Incremental loading or load-on-demand



And also how do we not load the classes (components, classes,
etc...) 
that have already loaded?

There is some information on Flex 2.0.1 modules in Roger
Gonzalez's 
MAX Presentation... 

http://blogs.adobe.com/rgonzalez/
http://blogs.adobe.com/rgonzalez/  

Be sure to check out the ppt.

--- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Collin Peters [EMAIL PROTECTED] 
wrote:

 Does anyone have some examples or links regarding
load-on-demand
 applications? By this I mean a Flex application that is made
up of
 many sub applications or modules that are loaded when
requested by
 the parent application. The modules are only loaded when they
are
 requested instead of being all loaded at application load
time.
 
 Is there any best practices defined for this?
 
 Regards,
 Collin Peters




 



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: flexcoders@yahoogroups.com
Subject: [flexcoders] RSL's and Dynamic components



Hi all,

I'm currently working on a big project and need to load
components
dynamicaly but this doesnt seem to be working to well with our
framework so the other option is to use seperate applications as
the
entire application is binding driven.

The problem here is that empty applications come in at 120K so I
need
to figure out how to reduce that by sharing whatever gets loaded
by
default into a shared library so all my application swf's will
be
pretty small by default.

Thanks



 



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
Sent: Thursday, December 07, 2006 11:27 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Custom component manifests in Flex Builder



Hi all,

I'm developing an enterprise application that will have a fairly
large
number of view components (dozens to hundreds). Naturally I
don't want
them all in the same folder, but I don't want to have to use a
namespace declaration for every view package I have, so I'd like
to be
able to use an mxml manifest, as can be configured in
flex-config.xml,
thusly:

namespaces
!-- Specify a URI to associate with a manifest of components
for
use as MXML --
!-- elements. --
namespace
urihttp://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml /uri
manifestmxml-manifest.xml/manifest
/namespace
namespace
urihttp://fancy.new.namespace http://fancy.new.namespace
/uri
manifestmy-manifest.xml/manifest
namespace
/namespaces

Except that I can't for the life of me figure out how to do the
equivalent configuration in Flex Builder. (Note too that this
configuration should be part of the project, not the sdk
installation,
so a command-line build on a dev server or setting up a new
developer
with FB is as painless as possible.)

Any help would be appreciated.

TIA,
Chris

(PS: Yes, I searched the forums/Adobe
site/documentation/Google/grandma's attic first)



 



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 to use the compiler flags (i.e. on the command line) to set
the values for AS, or to use root tag attributes from MXML.
 
(For what its worth, I think you have the entire set we support at the
moment.)
 
-rg




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of h8me4everplus1
Sent: Tuesday, December 05, 2006 6:49 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] SWF Meta Data



Hey guys, I really like the idea of defining my SWF parameters
for AS
projects right at the main script file for actionscript files,
but I
have two problems:

1, wish it worked, my source:

package {

[SWF(width=500, height=500, backgroundColor=#ff,
frameRate=40)]

That's it, just defining the SWF parameters at the package
level.

2, wish I knew where to look for the available parameters, does
anyone
know where it's documented?

Sincerely,

Elibol



 



RE: [flexcoders] Re: SWF Meta Data

2006-12-05 Thread Roger Gonzalez
Is it on the line directly before public class whatever extends
Sprite?
 
Metadata modifies the thing directly below it.  If you had (for example)
an import, then it modifies the import.
 
Can't provide further guidance without seeing your code.
 
-rg




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of h8me4everplus1
Sent: Tuesday, December 05, 2006 9:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: SWF Meta Data



Hi rg,

Thanks.

Here is a description of my process:

Step 1: I created a new Actionscript project.
Step 2: I wrote the meta data into the as file designated as the
Default Application.

This has no effect, and as you've outlined, the tag must be
defined
before 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 Gonzalez [EMAIL PROTECTED]
wrote:

 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 to use the compiler flags (i.e. on the command
line) to set
 the values for AS, or to use root tag attributes from MXML.
 
 (For what its worth, I think you have the entire set we
support at the
 moment.)
 
 -rg
 
 
 
 
 From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com ] On Behalf Of h8me4everplus1
 Sent: Tuesday, December 05, 2006 6:49 AM
 To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] SWF Meta Data
 
 
 
 Hey guys, I really like the idea of defining my SWF parameters
 for AS
 projects right at the main script file for actionscript files,
 but I
 have two problems:
 
 1, wish it worked, my source:
 
 package {
 
 [SWF(width=500, height=500, backgroundColor=#ff,
 frameRate=40)]
 
 That's it, just defining the SWF parameters at the package
 level.
 
 2, wish I knew where to look for the available parameters,
does
 anyone
 know where it's documented?
 
 Sincerely,
 
 Elibol




 



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,
MovieClipAsset, or MovieClipLoaderAsset, depending on how you embedded
it.)
 
-rg




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of jgraham_us
Sent: Thursday, November 30, 2006 12:15 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] how to access assets in RSL file



Not sure what I am doing wrong here, I would think this would
work.

I have a Flex Library project called that builds to TestLib.swc,
this 
swc has several components and some common assets which are SWF 
files. 

So for example in this swc I have com/x/y/z/MyTest.swf.

I then have a Flex project which uses this SWC file. I attempt
to use 
SWFLoader with URL=com/x/y/MyTest.swf

This doesn't work, I have tried a ton of other ways to access
the SWF 
thats in the SWC file. 

Whats the correct way to access assets in the SWC file?

Thanks



 



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

2006-11-30 Thread Roger Gonzalez
Did you actually include-file com/bmc/assets/myimage.png?  That is the
only way that file will be inside the SWC.  But in any case, that's
irrelevant.
 
Do you really want it to be runtime-loaded and not embedded?  You could
use @Embed(source='com/bmv/assets/myimage.png') to transcode and embed
it at compile time.  
 
But at any rate, you can't put a runtime asset inside a SWC.  You need
it extracted out in a directory that is in a location where the player
can download it.  SWCs are for compile-time only - the player doesn't
know anything about the format.
 
-rg





From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of jgraham_us
Sent: Thursday, November 30, 2006 1:40 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: how to access assets in RSL file



To give more details on the problem.

Basically I have a Flex Library Project called for example 
TestLib.swc this has a flex component in it called MyComp.mxml.

In this component I have a SWFLoader that points to an asset in
the 
same SWC file. I refer to it via
url=com/bmc/assets/myimage.png

When I create a Flex project that includes TestLib.swc and uses 
MyComp.mxml, myimage.png is never found. 

I have a component which needs to dynamically load images at
runtime 
and this component is in a SWC file. I want 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 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,
 MovieClipAsset, or MovieClipLoaderAsset, depending on how you 
embedded
 it.)
 
 -rg
 
 
 
 
 From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com ] On Behalf Of jgraham_us
 Sent: Thursday, November 30, 2006 12:15 PM
 To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] how to access assets in RSL file
 
 
 
 Not sure what I am doing wrong here, I would think this would
 work.
 
 I have a Flex Library project called that builds to 
TestLib.swc,
 this 
 swc has several components and some common assets which are 
SWF 
 files. 
 
 So for example in this swc I have com/x/y/z/MyTest.swf.
 
 I then have a Flex project which uses this SWC file. I 
attempt
 to use 
 SWFLoader with URL=com/x/y/MyTest.swf
 
 This doesn't work, I have tried a ton of other ways to access
 the SWF 
 thats in the SWC file. 
 
 Whats the correct way to access assets in the SWC file?
 
 Thanks




 



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?
 
-rg




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of The Crow
Sent: Tuesday, November 28, 2006 3:13 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex crashing @ compilation time



Hello. I've been using Flex 2 for 3 months now. There's around
40 mxml
applications plus component, and actionscript files in the
project and
the compilation (building) time has considerably increased with
time...taking up to 5-10 minutes at times. I've upgraded to Java
1.5.0.09 and changed the settings in the FlexBuilder
configuration
file and still no significant improvements have been noticed.
Could
anyone help me out with this issue.

Deleting the Bin folder and re-compiling the whole project as
well did
not solve the problem.

PC Specs: Pentium 4 HT (3.0 MHz, 1GB DDR2 Memory, Integrated
graphic card)

Thanks for your cooperation.

Regards,
Anoop



 



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

2006-10-31 Thread Roger Gonzalez





That looks ok to me at first glance. What error do you get in this 
case? Are you sure that bgImage is a bitmap? (If you're using 
Scale-9, it will be a SpriteAsset, for example.)

-rg

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of 
  joshuajnobleSent: 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 
  c()). Hi Roger,I had given that a try but got type 
  casting errors then too. I'm not sure what's wrong with it since this is 
  basically right out of the documentation for BitmapAsset. Here's what I 
  tried:var c:Class = 
  SessionLocator.getSession().assets[bgImage];var 
  icon:BitmapAsset = BitmapAsset(new c());if(icon != 
  null)graphics.beginBitmapFill(icon.bitmapData);
__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



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 from symbol in SWF file?
  
  
  Sorry, this somehow got cut off and came out completely 
  incoherently.What I meant to write is:var c:Class = 
  (SessionLocator.getSession().assets[bgImage] as Class);var 
  b:Bitmap = Bitmap(c as Bitmap);if(icon != null) 
  {graphics.beginBitmapFill(icon.bitmapData);I've tried 
  using BitmapData, BitmapAsset, and Bitmap. Any ideas or advice?--- In 
  [EMAIL PROTECTED]ups.com, 
  "joshuajnoble" [EMAIL PROTECTED] wrote: I'm trying to get 
  BitmapData from an icon in a swf file that is referenced as a class. I 
  need to get the BitmapData so that I can use the 'beginBitmapFill' 
  from the Graphics. Here's what I'm trying to do (which doesn't work at 
  all, btw)  var c:Class = 
  (SessionLocator.getSession().assets[bgImage] as 
  Class); var b:Bitmap = Bitmap(); var icon:BitmapAsset = 
  BitmapAsset(b); if(icon != null) 
  {graphics.beginBitmapFill(icon.bitmapData);
__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



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 the street 
  (actually some blogging of max) says Flex 2.01 has a module 
  manager.
  I am in the 
  initial stages of planning the architecture of large enterprise application, 
  
  Can I perhaps see 
  the Class(interfaces) so that I can plan ahead for it, 
  please?
  
  Thanks,
  Bjorn
  
  
  
  
__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



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 the salad bar shoved down 
your throat. :-)

-rg


  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of 
  thunderstumpgesatworkSent: Thursday, October 19, 2006 7:55 
  AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] 
  Re: [Flex2] Ant + compc - include-libraries not being found during 
  compile..?
  
  
  I figured this one out Looks like I was supposed to use 
  'library-path' instead of'include-libraries'. I'm not sure the 
  difference between these two,the documentation is almost the same for 
  each. Anyway, changing 'include-libraries' to 'library-path' did the 
  trick.cheers,Thunder--- In [EMAIL PROTECTED]ups.com, 
  "thunderstumpgesatwork"thunder.stumpges@... 
  wrote:  Hi guys. Can someone check my ant task? I 
  copied and modified slightly several different tasks I found around 
  here, and I'm getting errors about finding base classes (Cairngorm's 
  FrontController, ServiceLocator, and the FDS's IManaged) 
   I am pretty sure the libs (swc's) are being found, because if 
  I misspell any of them it complains that it can't find it. 
   This project compiles fine in FlexBuilder, but I can't get the 
  ant task to work.  What do I have wrong? 
   Also, I have tried compiling with the '-include-sources' option 
  to include the whole source directory and kept getting 
  "circular inheritance" errors, so thats why I'm trying the 
  -include-classes option instead.   thanks in 
  advance, Thunder  ___ 
   java jar="${compcjar}" fork="true" 
  failonerror="true" maxmemory="128m" 
  dir="${flexsdk}\frameworks" arg 
  value="-load-config=${flexsdk}/frameworks/flex-config.xml"/ 
  arg 
  value="-include-libraries+=${cairngorm.lib}/cairngorm.swc" 
  / arg 
  value="-include-libraries+=${flex.libs}/charts.swc" 
  / arg 
  value="-include-libraries+=${flex.libs}/flex.swc" / 
  arg value="-include-libraries+=${flex.libs}/rpc.swc" 
  / arg 
  value="-include-libraries+=${flex.libs}/utilities.swc" 
  / arg 
  value="-include-libraries+=${fds.libs}/fds.swc" / 
   arg 
  value="-external-library-path+=${flex.libs}/playerglobal.swc,\ 
  ${flex.libs}/framework.swc"/  arg 
  value="-source-path=${af.src}" /  arg 
  value="-include-classes=af.components.DashboardApplication" 
  / !--arg 
  value="-include-sources=${af.src}/af" / -- 
   arg value="-output=${out}\af.swc" / 
  /java  _  here's 
  the errors:  [java] 
  C:\Work\p4_root\Flex\src\af\commands\control\RFFrontController.as(6): 
  col: 41 Error: The definition of base class FrontController was 
  notfound. [java] public class RFFrontController extends 
  FrontController [java] ^ [java] 
  C:\Work\p4_root\Flex\src\af\remoting\RPCServiceLocator.as(5): 
  col: 41 Error: The definition of base class ServiceLocator was 
  notfound. [java] public class RPCServiceLocator extends 
  ServiceLocator [java] ^ [java] 
  C:\Work\p4_root\Flex\src\com\af\config\presentation\ConfigObjVO.as(11): 
  col: 44 Error: Interface IManaged was not found. [java] 
  [RemoteClass(alias="com.af.config.presentation.ConfigObj")] 
  [java] ^
__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



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: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] Embedding fonts 
  at runtime
  
  
  [Embed] is always at compile time, so I dont think this solution 
  matchesyour requirements of loading teh fonts at run time.-m 
   -Original Message- From: [EMAIL PROTECTED]ups.com 
   [mailto:[EMAIL PROTECTED]ups.com] 
  On Behalf Of Tom Lee Sent: Wednesday, August 30, 2006 4:01 PM 
  To: [EMAIL PROTECTED]ups.com 
  Subject: RE: [flexcoders] Embedding fonts at runtime  Just 
  wondering, is [Embed] directive compile-time, or run-time?  
 
   From: [EMAIL PROTECTED]ups.com 
   [mailto:[EMAIL PROTECTED]ups.com] 
  On Behalf Of Brian Deitte Sent: Wednesday, August 30, 2006 2:43 
  PM To: [EMAIL PROTECTED]ups.com 
  Subject: RE: [flexcoders] Embedding fonts at runtime   
   One addition to this, which is that we always include the  
  space character when you specify the unicode range. I'm not  sure the 
  original reasoning for this, but I just noticed it  in the code. Also, 
  you can specify multiple ranges,  separated by commas. -Brian 
  
     
  From: [EMAIL PROTECTED]ups.com 
   [mailto:[EMAIL PROTECTED]ups.com] 
  On Behalf Of Dirk Eismann Sent: Wednesday, August 30, 2006 2:07 
  PM To: [EMAIL PROTECTED]ups.com 
  Subject: RE: [flexcoders] Embedding fonts at runtime  Yes, 
  this is possible:
  [Embed(source="Arial.ttf", fontName="myArial",  
  unicodeRange="U+0041-U+005A" )]  public var 
  myClass:Class;Dirk.  
 
     Von: 
  [EMAIL PROTECTED]ups.com 
  im Auftrag von Daniel Wabyick Gesendet: Mi 30.08.2006 18:58 
  An: [EMAIL PROTECTED]ups.com 
  Betreff: Re: [flexcoders] Embedding fonts at runtime  Awesome! 
  I'll definitely have to check this out.  On a related note, I 
  wonder if its possible to embed  fonts with a specific unicode 
  range via this syntax. It doesn't  appear to be.  
  [Embed(systemFont='Symbol', fontName='mySymbol', 
  mimeType='application/x-font')] var myFont:Class; 
   I know you can use @font-face, which appears to  
  automatically generate a variable in the class, but its not a 
  consistently named  variable. I am sure a utility function in 
  the class could be used to  ferret out that variable 
  name.   Daniel Freiman wrote:  
   I altered the code a little and got it half working.  It works 
  if  you're setting the imported font using setStyle, but  
  not if you're  setting the font through the TextFormat object. 
   Simply add the lines:   var 
  content:DisplayObject = ldr.content;  var c:Class = 
  content["myFont"];  Font.registerFont(c); 
to the begining of onloadercomplete.  
   I'm going to continue working on how to get the font  to show 
  up  through TextFormat.On 
  8/29/06, * Daniel Wabyick* [EMAIL PROTECTED]com  
  mailto:[EMAIL PROTECTED]com 
   mailto:[EMAIL PROTECTED]com  
  wrote:   I just tried to dynamically load a font at 
   runtime, and the  results are  not too 
  promising.   For other's benefits, here is what I 
  did:   - Created an AS3 project and generated a SWF 
   (SymbolEmbed.swf)  with the  Symbol font 
  embedded.   - Verified the font is available in the 
  SWF via  Font.enumerateFonts();   - 
  Loaded SymbolEmbed.swf into a Flex app using  the Loader 
  class,  following instructions to keep the SWF's on the 
  same  applicationDomain.   - Checked if 
  the font is available to the Flex  app, it is not. 
Please let me know if anyone has any ideas, 
-Daniel
Code: AS3 project with embedded font.  
  ---  public class SymbolInclude extends 
  Sprite  {  public function 
  SymbolInclude()  {  
  [Embed(systemFont='Symbol',  fontName='mySymbol', 
   mimeType='application/x-font')]  var 
  myFont:Class;   trace("here in 
  SymbolInclude");  var fontList : Array = 
  Font.enumerateFonts();  for ( var i:String in fontList 
  )  {  trace("font: " + Font(  fontList[i] 
  ).fontName);  }  }  }  
Code: Loader code in Flex app.  
  --- 
mx:Script  ![CDATA[ 
private var ldr:Loader;  private function 
  onInit() : void  {  showFonts();  
   var context:LoaderContext = new  
  LoaderContext();  //context.securityDomain = 
   SecurityDomain.currentDomain;  
  context.applicationDomain =  
  ApplicationDomain.currentDomain;   ldr = new 
  Loader();  
  ldr.contentLoaderInfo.addEventListener(  
  Event.COMPLETE,  onLoaderComplete );  ldr.load( new 
  URLRequest(  "SymbolInclude.swf"),  context 
  );  }   private function  
  onLoaderComplete(e:Event) : void  {  
  trace("onLoaderComplete: ");  showFonts();  
  }   public function showFonts():void { 
   trace("showFonts()");  var 

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 known issue with morph shapes. Do you have any of those 
in your SWF?

(Actually... you're not pulling a symbol out of the SWF, but are 
embedding the whole thing? Hmm. You're embedding on a var, 
right? Flex doesn't actually look inside that file. Do you have 
flex.swc in your library-path?)

-rg





From: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
dadrobsonSent: Monday, August 14, 2006 11:39 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] exception during 
transcoding:

  
  
  I keep getting the following compiler message:exception during 
  transcoding:That is the entire message. It's interesting that there is 
  noexplanation as to what caused the exception; the colon at the 
  endmakes me think that something should follow, but nothing does. 
  I'mleft without a clue as to what is throwing the exception. Here 
  is the line of code that it's complaining 
  about:[Embed(source="assets/map.swf", 
  mimeType="application/x-shockwave-flash")]A couple of 
  notes:1. assets/map.swf is really there. If it weren't, the compiler 
  wouldsay so; e.g., "unable to resolve 'map.swf' for transcoding"2. 
  map.swf is a functioning flash file. I can open it in the FlashPlayer or 
  load it into a file created using Flash 8 IDE. Any 
  ideas?
__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   



  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



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 config files are pretty much identical (+/- the 
compc-specific values that you can find out about via compc -help as Renaun says 
below).

You'll then generally want to use "mxmlc -load-config+=mycfg.xml" to 
compile. Note the "+=", which says "don't nuke the existing default value 
of load-config (which points to the flex-config.xml file) just overlay these 
settings on top".

Inside your config file, you can do the same sort of operation as += via 
the (undocumented?) "append" attribute:

library-path append="true"
 
path-elementmylib.swc/path-element
/library-path

Of course, you can also use these config files by naming them 
myapp-config.xml (where myapp is the name of your mxml/as application) and have 
them automatically loaded:

Given
myapp-config.xml
myapp.mxml

mxmlc myapp.mxml

will automatically load myapp-config.xml as if it were 
-load-config+=myapp-config.xml

Enjoy,

-rg

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Renaun 
  EricksonSent: Wednesday, August 09, 2006 2:20 PMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Re: Schema files 
  for mxmlc and compc config files
  
  
  Have you tried:mxmlc -help listmxmlc -help advancedmxmlc 
  -help syntaxmxmlc -help aliasesmxmlc -help detailsYou can find 
  alot of information from the executables themselves.Renaun--- 
  In [EMAIL PROTECTED]ups.com, 
  "Lance Linder" [EMAIL PROTECTED] wrote: Anyone know 
  where I could get schema files for the config files for both the mxmlc 
  and compc compilers?As I do more and more 
  build scripts for Flex2 apps these schema files sure would 
  help!Thanks,  
  Lance
__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



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, it first grabs the existing value 
and then appends the new value that you set. Very handy for library-path, 
external-library-path, source-path, load-config, etc.

This obviously doesn't mean anything for a single-value var (i.e. how do 
you append to "debug"?) but it will work on anything marked as "repeatable", as 
its equivilent to doing mxmlc -library-path=foo 
-library-path=bar.

Good luck,

-rg

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Lance 
  LinderSent: Wednesday, August 09, 2006 3:33 PMTo: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: Schema 
  files for mxmlc and compc config files
  
  
  
  
  Thanks for the 
  additional information Roger!
  
  I didnt know about 
  the += feature for overlaying config files. This will be really useful as I 
  end up using 90% of the same settings as the defaults with exception of my 
  compc config files which tend to get a little more involved to 
  create.
  
  The append attribute 
  is also a nice trick. Thanks!
  
  The auto load feature 
  is something new to me as well. Until now I have been loading my config files 
  with the load-config attribute.
  
  These all some great 
  tricks and will definitely make things a little more organized and a lot 
  cleaner when working with the config files for me!
  
  Lance
  
  
  
  
  
  
  
  From: 
  [EMAIL PROTECTED]ups.com 
  [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Roger GonzalezSent: Wednesday, August 09, 2006 4:55 
  PMTo: 
  [EMAIL PROTECTED]ups.comSubject: RE: [flexcoders] Re: Schema 
  files for mxmlc and compc config files
  
  
  
  
  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 
  config files are pretty much identical (+/- the compc-specific values that you 
  can find out about via compc -help as Renaun says 
  below).
  
  You'll then generally want 
  to use "mxmlc -load-config+=mycfg.xml" to compile. Note the "+=", 
  which says "don't nuke the existing default value of load-config (which points 
  to the flex-config.xml file) just overlay these settings on 
  top".
  
  Inside your config file, 
  you can do the same sort of operation as += via the (undocumented?) 
  "append" attribute:
  
  library-path 
  append="true"
   
  path-elementmylib.swc/path-element
  /library-path
  
  Of course, you can also 
  use these config files by naming them myapp-config.xml (where myapp is 
  the name of your mxml/as application) and have them automatically 
  loaded:
  
  Given
  myapp-config.xml
  myapp.mxml
  
  mxmlc 
  myapp.mxml
  
  will automatically load 
  myapp-config.xml as if it were 
  -load-config+=myapp-config.xml
  
  Enjoy,
  
  -rg
  




From: 
[EMAIL PROTECTED]ups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of Renaun 
EricksonSent: Wednesday, 
August 09, 2006 2:20 PMTo: 
[EMAIL PROTECTED]ups.comSubject: [flexcoders] Re: Schema files 
for mxmlc and compc config files

Have 
you tried:mxmlc -help listmxmlc -help advancedmxmlc -help 
syntaxmxmlc -help aliasesmxmlc -help detailsYou can find 
alot of information from the executables 
themselves.Renaun--- In [EMAIL PROTECTED]ups.com, 
"Lance Linder" [EMAIL PROTECTED] wrote: 
Anyone know where I could get schema files for the config files for 
both the mxmlc and compc compilers?   
 As I do more and more build scripts for Flex2 apps these schema 
files sure would help!
Thanks,  
  Lance
  
  
__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



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 combined together, rather than having large "do 
all this magic stuff at once" options.

-rg

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of 
  astgtcivSent: Tuesday, August 01, 2006 11:09 AMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] [Flex 2] Compiling 
  all classes into an application, whether referenced or 
not
  
  
  [Flex 2]. Hi, is it possible somehow to instruct mxmlc to compile _all_ the 
  classes in a project into the resulting SWF, whether those classes be 
  referenced from the Document class/Application or not? I know I can use 
  "-includes" to include the classes one-by-one, and if "-includes" 
  supported wildcards it would do the trick, but it does not.I guess 
  one possibility would be a two-step compile where first I build a library 
  with compc using "include-sources", and then include everything in 
  that library into the resulting swf with mxmlc using 
  "include-libraries".
__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



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 Behalf Of 
  kobi6810Sent: Thursday, July 06, 2006 2:07 PMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] swc too 
  heavy
  
  
  Hi,I have compiled my first component and was very surprise by 
  itssize...255 KB.It's just a login component which extends the 
  panel class and is madeof a username  password textInput and a 
  button. All theses componentsare put in form.this is the command i 
  have used for compilationcompc.exe -source-path . ../libsrc -o 
  ../lib/LoginBox.swc-include-classes LoginBoxWhat did i make 
  wrong ?Thanks in advance.
__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   



  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



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, you either need an 
absolute path or else a relative ".." path.

(Not 100% positive, but I think this is the final policy we ended 
with. There were a lot of other permutations we experimented 
with.)

-rg

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Tim 
  HoffSent: Thursday, June 29, 2006 2:57 AMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Re: Flex2: Embed 
  Source path
  
  
  Thanks João,Yes, it was just a typo in the example. Adding the 
  extra slash worked. I thought that I had tried that, but I guess not. 
  Strange, I have other images that are embeded for icons in CSS that work 
  without the slash. Anyways Muchas Gracias,Tim--- In [EMAIL PROTECTED]ups.com, 
  João Fernandes joaofernandes@... wrote: Tim, 
  First , in your code is missing a ' just 
  after the = (don't know if it's just a typo in your message) 
   mx:Image 
  source="@Embed(source=org/ets/main/code/view/assets/images/logo.swf')"/ 
   But did you try this?  mx:Image 
  source="@Embed(source='/org/ets/main/code/view/assets/images/logo.swf')"/ 
   João Fernandes Dep. 
  Informática - Área de Desenvolvimento Cofina media  
  Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL Tel (+351) 
  213 185 200 . Fax (+351) 213 540 370 joaofernandes@... 
  mailto:joaofernand[EMAIL PROTECTED] 
  From: [EMAIL PROTECTED]ups.com 
  [mailto:[EMAIL PROTECTED]ups.com] 
  On Behalf Of Tim Hoff Sent: quinta-feira, 29 de Junho de 2006 
  10:27 To: [EMAIL PROTECTED]ups.com 
  Subject: [flexcoders] Flex2: Embed Source path   
   Noticed something interesting. This works:  
  mx:Image 
  source="org/ets/main/code/view/assets/images/logo.swf"/ 
   When I embed the swf, like this, I get an unable to resolve ... 
  for transcoding error:  mx:Image 
  source="@Embed(source=org/ets/main/code/view/assets/images/logo.swf')"/ 
   However, if I add the full path to the swf, it works: 
   mx:Image source="@Embed(source='c:/Documents and 
  Settings/Tim/My 
  Documents/Flex/ets/org/ets/main/code/view/assets/images/logo.swf')"/ 
   The same thing happened when I tried the class method and CSS. 
  It's not a big deal, but a little confusing.  
  -TH
__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



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 
  sound
  
  
  Anyone know if it is possible to generate sound / tones from flash / flex? 
  Something like a beep function to play a sound of a certain frequency, though 
  not by loading a sound file.Thanks-- 
  david"Many people die at twenty five and aren't buried until they 
  are seventy five".- Benjamin Franklin 
__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



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 very well anyway, can you 
strip this asset out of the SWF before embedding?

Even if you get it working, please submit a bug with your SWF, there 
aren't any cases where we consider uncaught exceptions to be 
acceptable.

-rg


  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of martin 
  schioethSent: Tuesday, June 27, 2006 4:53 AMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] 
  Embed(source,symbol) results in internal build error
  
  
  
  
  Hi,
  
  Im trying to embed an exported 
  symbol from a swf
  I get An internal build error has 
  occurred. Please check the Error Log.
  I have absolutely no idea how to 
  fix this, and im going slighty mad. I should think my syntax is exactly the 
  same as the documentation specifies.
  
  // ERROR LOG 
  ///
  Error 2006-06-27 13:32:57.817 
  Uncaught exception in compiler
  java.lang.IllegalArgumentException: 
  symbol 32006 not defined
   
  at flash.swf.Dictionary.getTag(Dictionary.java:172)
   
  at 
  flash.swf.TagDecoder.decodeButtonRecord(TagDecoder.java:2068)
   
  at 
  flash.swf.TagDecoder.decodeDefineButton2(TagDecoder.java:1211)
   
  at 
  flash.swf.TagDecoder.decodeTag(TagDecoder.java:285)
   
  at 
  flash.swf.TagDecoder.decodeTags(TagDecoder.java:169)
   
  at flash.swf.TagDecoder.parse(TagDecoder.java:119)
   
  at 
  flex2.compiler.media.MovieTranscoder.getDictionary(MovieTranscoder.java:162)
   
  at 
  flex2.compiler.media.MovieTranscoder.extractDefineTag(MovieTranscoder.java:188)
   
  at 
  flex2.compiler.media.MovieTranscoder.doTranscode(MovieTranscoder.java:84)
   
  at 
  flex2.compiler.media.AbstractTranscoder.transcode(AbstractTranscoder.java:128)
   
  at 
  flex2.compiler.as3.EmbedUtil.transcode(EmbedUtil.java:161)
   
  at 
  flex2.compiler.as3.EmbedUtil.transcode(EmbedUtil.java:71)
   
  at 
  flex2.compiler.as3.EmbedEvaluator.generateSource(EmbedEvaluator.java:259)
   
  at 
  flex2.compiler.as3.EmbedEvaluator.generateSources(EmbedEvaluator.java:324)
   
  at 
  flex2.compiler.as3.EmbedEvaluator.evaluate(EmbedEvaluator.java:80)
   
  at 
  macromedia.asc.parser.ClassDefinitionNode.evaluate(ClassDefinitionNode.java:86)
   
  at 
  flash.swf.tools.as3.EvaluatorAdapter.evaluate(EvaluatorAdapter.java:330)
   
  at 
  macromedia.asc.parser.StatementListNode.evaluate(StatementListNode.java:36)
   
  at 
  flash.swf.tools.as3.EvaluatorAdapter.evaluate(EvaluatorAdapter.java:910)
   
  at 
  flex2.compiler.as3.EmbedEvaluator.evaluate(EmbedEvaluator.java:244)
   
  at 
  macromedia.asc.parser.ProgramNode.evaluate(ProgramNode.java:63)
   
  at 
  flex2.compiler.as3.EmbedExtension.parse(EmbedExtension.java:39)
   
  at 
  flex2.compiler.as3.Compiler.parse(Compiler.java:313)
   
  at 
  flex2.compiler.mxml.ImplementationCompiler.parse(ImplementationCompiler.java:148)
   
  at 
  flex2.compiler.mxml.Compiler.parse(Compiler.java:89)
   
  at flex2.compiler.API.parse(API.java:1631)
   
  at flex2.compiler.API.parse(API.java:1592)
   
  at flex2.compiler.API.batch2(API.java:285)
   
  at flex2.compiler.API.batch(API.java:764)
   
  at flex2.compiler.API.compile(API.java:889)
   
  at com.adobe.flexbuilder.project.compiler.Compiler.compile(Unknown 
  Source)
   
  at 
  com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.buildApplication(Unknown 
  Source)
   
  at 
  com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.build(Unknown 
  Source)
   
  at 
  org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:593)
   
  at 
  org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
   
  at 
  org.eclipse.core.runtime.Platform.run(Platform.java:783)
   
  at 
  org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:168)
   
  at 
  org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:202)
   
  at 
  org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:231)
   
  at 
  org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
   
  at 
  org.eclipse.core.runtime.Platform.run(Platform.java:783)
   
  at 
  org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:234)
   
  at 
  org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:253)
   
  at 
  org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:282)
   
  at 
  org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:139)
   
  at 
  org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:200)
   
  at 
  org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
  
   ERROR LOG 
  /
  

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 schema, like we did for 
1.x. Unfortunately, for any non-toy application, you'll be writing new 
components. So, lets say you write a new component, and its in the 
yourcompany.whatever.* namespace. The base of your component is 
VBox. That's nice. In order to make the XML tools happy, YOU need to 
write the schema for yourcompany.whatever.*. You might be able to extend 
our schema (which if you've ever tried it you'll know what a pain this 
is)But anyway, lets sayyou go and write that schema. And 
then you decide to extend HBox instead. Oops. Go rewrite that 
schema. 

At some point you say, hey, gosh it would be really nice if I just had a 
smart tool that could generate that schema for me. It seems like there 
should be some way of parsing the tags such that you know what the subset of 
child tags and attributes will be legal for a given base class, and you could 
then generate the appropriate schema for that class.

But then BING a lightbulb goes off in your head, and you realize that the 
entire notion of trying to enter code that follows a schema at the same time 
you're writing the code that will modify the schema is sort of a losing 
proposition. It only works if you assume that most of your classes are 
never going to change, which is silly.

Thats when you say, "hey, what I really need is an MXML-aware tool that 
knows ALL the rules of the language". And you look around, and hey, look, 
there's FlexBuilder!

-rg


  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Gordon 
  SmithSent: Thursday, June 15, 2006 2:16 PMTo: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] DTD Schema for 
  Flex 2
  
  
  
  
  That's not 
  true.
  
  - 
  Gordon
  
  
  
  
  
  From: 
  flexcoders@yahoogroups.com 
  [mailto:flexcoders@yahoogroups.com] On Behalf Of Daniel TuppenySent: Thursday, June 15, 2006 6:01 
  AMTo: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] DTD Schema for 
  Flex 2
  
  
  
  
  I'm confused 
  too.
  
  If it's XML (which I 
  assume it is, because it has xml tags and namespaces!), then why can't they 
  write a DTD? If there's anything in their that wouldn't fit into a DTD, then 
  surely it's not valid XML either?
  
  
  
  
  From: 
  flexcoders@yahoogroups.com 
  [mailto:flexcoders@yahoogroups.com] On Behalf Of Michael SchmalleSent: 15 June 2006 12:55To: 
  flexcoders@yahoogroups.comSubject: Re: [flexcoders] DTD Schema for 
  Flex 2
  Becasue it's a namespace, that is the point 
  ;-)It's arbituary and a way to seperate mx component names for 
  my component names.It's like finding out majik isn't real 
  huh... :(HAHAHAPeace, Mike
  
  On 6/15/06, Tom Chiverton [EMAIL PROTECTED] 
  wrote: 
  
  
  
  
  
  On Thursday 15 
  June 2006 12:13, Gareth Edwards wrote: Flex 2.0 isn't compatible with a DTD 
  Schema.
  
  Bwuh !So why do all the examples 
  assign a namespace / include xml tags ?
  
  -- Tom ChivertonThis email is sent for and on behalf of Halliwells 
  LLP.Halliwells LLP is a limited liability 
  partnership registered in England and Wales 
  under registered number OC307980 whose registered office address is at 
  St James's Court Brown Street Manchester M2 
  2JF. A list of members is available for inspection at the 
  registered office. Any reference to a partner in relation to Halliwells LLP 
  means a member of Halliwells LLP. Regulated by the Law 
  Society.CONFIDENTIALITYThis email is intended only for the use of the addressee named above 
  and may be confidential or legally privileged. If you are not the addressee 
  you must not read it and must not use any information contained in nor copy it 
  nor inform any person other than Halliwells LLP or the addressee of its 
  existence or contents. If you have received this email in error please delete 
  it and notify Halliwells LLP IT Department on 0870 365 
  8008.For more information about Halliwells LLP 
  visit www.halliwells.com.We are pleased to announce that Halliwells LLP has been voted AIM 
  Lawyer of the Year at the 2005 Growth Company 
  Awards
  -- 
  What goes up, does come down. [Inbound Mail Scanned by 
  MessageLabs]__This 
  email has been scanned by the MessageLabs Email Security System.For more 
  information please visit http://www.messagelabs.com/email 
  __
  
  
__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  

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 detect assignments to
 application' warning.

I believe this is because its a static, and we don't handle those.

Note: Application.application should be avoided at all costs.

-rg


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




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

2006-04-18 Thread Roger Gonzalez
It depends.

Well, if you're in the main app, its just this, obviously.  But if
you're in a child component, you should build the application to pass
down a handle to the application class instance; make a var on the
component of type Application, initialized from outside.

I meant to elaborate a bit more in my previous message.
Application.application is ok for small toy apps, but it doesn't work
well once your app scales.  In general, relative paths of the sort you
were building will lock you in to a very rigid structure that is hard to
change.

Try to figure out the minimal data that a particular control needs to
attach to, then pass a reference to just that piece.

Example:

Application a
  MyController c
Button b
Slider s
  MyDisplay d
Label l
Grid g

Bad: bind Application.application.d.l.text into b.  You're baking
knowledge of internals of MyDisplay outside, it will make things hard to
rewrite.  Using Application.application will also probably break if your
app is dynamically loaded by another app.

Better: make have a getLabel() call on MyDisplay, hand that label to
MyController.

More Betterer: Make MyDisplay implement an interface that has a
setDisplayText method, and have code in a hand an instance of the
display interface to c.

-rg


 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard
 Sent: Tuesday, April 18, 2006 12:16 PM
 To: flexcoders@yahoogroups.com
 Subject: [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
   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 detect assignments to
   application' warning.
  
  I believe this is because its a static, and we don't handle those.
  
  Note: Application.application should be avoided at all costs.
  
  -rg
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links
 
 
 
  
 
 
 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




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


  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Mykola 
  PaliyenkoSent: Friday, April 14, 2006 6:25 AMTo: 
  flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: Question to 
  Adobe about Flex Framework 1.5 Code Quality
  Ok,as a result we have a FlexCompiler servlet that has a 
  memory leaks and kills application server periodically. It is absolutely a 
  stop-ship bug but Adobe has not released new version of Flex 1.5 yet. As a 
  result there is no stable version of Flex. Yeah I'm realizing that Flex is 
  pretty far from being open source, I just cannot imagine how people can sell 
  such poor product for the great price. About breaking code. It is 
  absolutely not acceptable having releases once per year or even more like Flex 
  does. Maybe I'm just from another world but I think being not open to the 
  community like Adobe do is a way to produce the poor quality. Flex has great 
  idea but no good expertise from the community. All the critics about 
  Cairngorn, FlexUnit is just ignored however it is obvious that Flex need to 
  have a strong community involved in development of the components and the 
  architecture Look at Java community, great success stories of Spring, 
  Jboss, Apache and tones of the other really HQ products. We get addicted to 
  the good quality of the design, Not the 200+ UI classes extended from the 
  IEventDispatcher. WBR, Mykola
  On 4/13/06, Weyert de 
  Boer [EMAIL PROTECTED] 
  wrote:
  

Mykola Paliyenko 
wrote: I don't think you should 
change working code only because it's 
doesn't have the perfect design, but that 
might just me. Of course, you can 
do something refactoring. You can only break 
;-) LOL, With such approach Flex will remain 
the same crap as it is no
Well, I am not rewriting working code within 
a current release cycle. Of course, you can branch off a version of the 
code you gonna clean up, for version X.Y.Z. But I am not someone who 
will update framework code of a current version/release only because the 
code quality sucks. You can change such issues step-by-step without 
breaking current functionality. I should change the design of one of my 
components, I can tell you my clients wouldn't appreciate it, neither 
that you probably like breaking code because a partner changed the 
design of the code.
--Flexcoders 
Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 


SPONSORED 
LINKS 

  
  
Web site design development 
Computer software development 
Software design and development 
  
Macromedia flex 
Software development best practice 
  



YAHOO! GROUPS LINKS 


  Visit your group "flexcoders" on the web. 
  To unsubscribe from this group, send an email 
  to: [EMAIL PROTECTED] 
  
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
  Service . 


-- WBR, Mykola 
  





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









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

2006-04-11 Thread Roger Gonzalez
There are no hardcoded limits that I know of, it all comes down to
performance - CPU and memory.

I'd still like to see an instance of what this sort of graph would look
like.  Unless you're doing a scatterplot (and given the amount of data
you're talking about, perhaps even in that case), its sounding like
you're significantly oversampling screen resolution, which doesn't make
sense from a graph design perspective.  You're not going to be able to
read any information out of the plot, it will just look like mud.  On a
1000x1000 pixel graph with zero overlap and one pixel per datapoint,
you're covering 10% of the available surface area with 100k samples.  Of
course, you're not actually going to use one pixel per datapoint (as
that totally hides extrema), so you're probably getting up into the 50%
of the available surface area painted in at this point.  There's no
information there.  Mud.

Have you read Edward Tufte's books?

I think your best approach (never mind Flex, just in general) is to
separate the plotted data from the actual data.  Reduce the actual data
to a representation that can be plotted and interpreted by humans - bars
with high/low extrema, click to zoom, etc.  It isn't a failing of Flex
that 100,000 datapoints can't reasonably be plotted on a normal chart,
its a failing of all normal chart types.  You need to come up with a
better representation.

I could be totally off-base and misinterpreting your needs, though.

-rg 

 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of RAMOS 
 CARDONA JESUS SALVADOR
 Sent: Tuesday, April 11, 2006 8:22 AM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Flex1.5: Limit of series a graph 
 component can have
 
 I don't think they would want to resample or view chunks of 
 data as a graph detail. This is more a political question. If 
 it can be done, then my managers will trust Flex implicitly. 
 Otherwise, they will force us to use some other product, or 
 even switch to .NET. This financial application is being 
 built for our federal government, 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: [flexcoders] Flex1.5: Limit of series a graph 
 component can have
  
 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 overview/detail?  Can 
 you downsample and then plot the downsampled data?
  
 -rg

   
 
 
   From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of RAMOS 
 CARDONA JESUS SALVADOR
   Sent: Monday, April 10, 2006 6:12 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Flex1.5: Limit of series a graph 
 component can have
   Hi all.

   My manager has come to me with an unusual question: 'Is 
 there a limit as to the number of series (or dots) a flex 
 graph can have?' The need arose because of a requirement of a 
 financial application being built on Flex, which needs to 
 output dot graphs of at least 100,000 dots.

   Without considering the performance or overhead, is 
 this possible in Flex?

   Thanks.

   J.
 
 
   --
   Flexcoders Mailing List
   FAQ: 
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
   
   
   
 
 
   YAHOO! GROUPS LINKS 
 
   
   *Visit your group flexcoders 
 http://groups.yahoo.com/group/flexcoders  on the web.
 
   *To unsubscribe from this group, send an email to:
[EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] 
 
   *Your use of Yahoo! Groups is subject to the 
 Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . 
 
 
 
 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




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: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Valy 
  SivecSent: Monday, April 10, 2006 11:50 AMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] VerifyError: Error 
  #1042: Not an ABC file. major_version=46 minor_version=16
  
  Installed the last version of Flash Player and when I want to run the 
  samples app I get an alert window and the error message reads like:
  
  VerifyError: Error #1042: Not an ABC file. major_version=46 
  minor_version=16. Below are 2 buttons "Dismiss all" and Continue. I see this 
  problem only on my local computer.
  
  Any suggestions?
  
  Thanks,
  Valy
  
  
  New Yahoo! Messenger with Voice. Call 
  regular phones from your PC and save big. 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









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 overview/detail? Can 
you downsample and then plot the downsampled data?

-rg

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of RAMOS CARDONA JESUS 
  SALVADORSent: Monday, April 10, 2006 6:12 PMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Flex1.5: Limit of 
  series a graph component can have
  
  
  Hi 
  all.
  
  My 
  manager has come to me with an unusual question: Is there a limit as to the 
  number of series (or dots) a flex graph can have? The need arose because of a 
  requirement of a financial application being built on Flex, which needs to 
  output dot graphs of at least 100,000 dots.
  
  Without 
  considering the performance or overhead, is this possible in 
  Flex?
  
  Thanks.
  
  J.





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] FLexB2 Embed flv into SWF

2006-04-09 Thread Roger Gonzalez





I decided to just file one on your behalf. All set, 
hopefully we'll get it in post-2.0.

-rg

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Carlos 
  RoviraSent: Sunday, April 09, 2006 12:22 PMTo: 
  flexcoders@yahoogroups.comSubject: Re: [flexcoders] FLexB2 Embed 
  flv into SWF
  Hi Roger,I'm interested as well in get the *.flv 
  inserted without any hack, could you provide the url for enhacement 
  request?Thanks.C.
  On 4/7/06, Sönke 
  Rohde [EMAIL PROTECTED] wrote:
  
Hi Roger,I am very curious about the 
nifty workaround!Where can I 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: [flexcoders] FLexB2 Embed flv into SWF  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   [mailto:flexcoders@yahoogroups.com] On Behalf Of Sönke 
Rohde  Sent: Thursday, April 06, 2006 1:43 AM  To: 
flexcoders@yahoogroups.com  Subject: 
[flexcoders] FLexB2 Embed flv into SWF
Hi,  When using the Image-Tag it's possible to embed images into 
  the SWF with  mx:Image 
source="@Embed('test.jpg')" /  I tried the same for the 
VideoDisplay: mx:VideoDisplay  
url="" /  But I get the error: 
test.flv does not have a recognized   extension, and a 
 mimeType was not provied  Unable to transcode 
test.flvWill embedding of Flash Video will be 
supported in beta3 or   flex2 final or  is embedding 
restricted to images like jpg,png, gif etc.?
Cheers,  Sönke   
 --  Flexcoders Mailing List  FAQ:  http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
 Search Archives:   http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  Yahoo! Groups Links  
  
   -- Flexcoders Mailing List FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
 Search Archives:  http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links


--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 




YAHOO! GROUPS LINKS 

  Visit your group "flexcoders" on the web. 
  To unsubscribe from this group, send an email 
  to: [EMAIL PROTECTED] 
  
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
  Service . 


-- ::| Carlos 
  Rovira::| http://www.carlosrovira.com 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









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, April 07, 2006 11:34 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Link Error: unresolved symbol ...
 
 I have tried this question at the labs forum, but had no luck, so here
 it goes again...
 
 Also, I tried sending this email from the yahoo groups web interface
 first, and it so far didn't appear on the list (3 days), so I am
 resending, and hope it won't result in a duplicate. I apologize in
 advance otherwise.
 
 I am trying to create a swc file from a bunch of AS files. The
 compilation seems to go through and the SWC file gets created, but I
 get a bunch of unresolved symbol error at the end. I tried to use the
 file anyway as a library to a project, but the add operation seems to
 fail for the same reason. I even tried to create an SWC file from a
 dummy single AS class (the simplest possible class definition), and
 still see the link errors (though less of them as there are very few
 references). The problem appears even with beta2. Here are a few of
 the link errors (there are about 80 or so):
 
 [java] Error: Link error: unresolved symbol flash.events:MouseEvent
 [java]
 [java] Error: Link error: unresolved symbol flash.events:EventRoot
 [java]
 [java] Error: Link error: unresolved symbol decodeURI
 [java]
 [java] Error: Link error: unresolved symbol flash.util:ByteArray
 [java]
 [java] Error: Link error: unresolved symbol Class
 [java]
 [java] Error: Link error: unresolved symbol Date
 
 I specified both playerglobal.swc and framework.swc in the library
 path (otherwise, the compile itself won't go through), so the symbols
 it is complaining about are there in the libraries. Here is my
 flex-config.xml:
 
 ?xml version=1.0?
 flex-config xmlns=http://www.macromedia.com/2005/flex-config;
 compiler
 actionscript-classpath
 path-element./path-element
 /actionscript-classpath
 library-path
 path-elementC:\apps\macromedia\FlexFramework2b1\Flex
 Framework 2\frameworks\libs\framework.swc/path-element
 path-elementC:\apps\macromedia\FlexFramework2b1\Flex
 Framework 2\frameworks\libs\playerglobal.swc/path-element
 /library-path
 /compiler
 outputpvapi.swc/output
 directoryfalse/directory
 include-classes
 [ The classes listed ]
 /include-classes
 /flex-config
 
 
 Does anyone have an idea how to solve this problem? If anyone is
 interested, I can post the sample code and configuration to reproduce
 this problem.
 
 Thank you,
 Hari
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links
 
 
 
  
 
 
 
 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




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 necessary.)

-rg

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Torben 
  NielsenSent: Saturday, April 08, 2006 2:35 PMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Accessing 
  methods/properties (Flash 8 movies in Loader component)
  
  
  Hi,
  
  maybe it would be 
  better if I specified what it is that I am trying to 
  do.
  
  I am developing an 
  application that loads external Flash 8 movies that contains some movieclips, 
  methods and properties. I load them into a Loader component like 
  this:
  
  mx:Loader 
  id="detailClip" source="assets/IC51030.swf" width="650" height="400" 
  /
  
  How can I access a 
  method in the Flash 8 movie loaded into the Loader 
  component???
  
  I saw the thread 
  below but I am not able to grab the solution from these bits and pieces of 
  information. Could somebody help me please. I need this to work otherwise I 
  have to abandon Flex for this project and move back into Flash. I really would 
  prefer to make it in Flex.
  
  Thanks.
  
  Best 
  regards.
  
  Torben 
  Nielsen
  
  
  
  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Torben 
  NielsenSent: sabato 8 aprile 2006 20.16To: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] Flash 8 swf in 
  Flex 2.0 App?
  
  Hi,
  
  I am wrestling with 
  the same kind of problem. Anyone got some code examples for the kind of 
  solution mentioned below?
  
  I would be most 
  greatfull, since this is a crucial issue to the application I am working 
  on.
  
  Best 
  regards.
  
  Torben 
  Nielsen
  
  
  
  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Jason Y. 
  KwongSent: sabato 18 febbraio 2006 20.10To: 
  flexcoders@yahoogroups.comSubject: Re: [flexcoders] Flash 8 swf in 
  Flex 2.0 App?
  
  We had a bit of a discussion 
  here about this a little while back. The solution I'm using right now 
  uses the Loader component to load the Flash 8 swf at runtime. And, as 
  mentioned, I use LocalConnection to communicate between the Flash 8 swf and 
  the Flex app. It's not great, but it's the only supported solution right 
  now. 
  
  On 17/02/06, Steve Polk 
  [EMAIL PROTECTED] 
  wrote:
  
  I am 
  trying to figure out how to embed a Flash 8 swf into Flex and read any 
  properties from it. From the couple posts I have found while searching the 
  archives and the limited documentation in Flex, it would appear that you can 
  only embed the file, but you cannot access its properties and 
  MovieClips.
  
  
  
  I was 
  hoping I could build my next application andframework into Flex, but 
  would need to embed other Flash content on occasion, not created by me. The 
  idea was that if the other movie had a text field or a combobox, I would be 
  able to listen to change events and possibly grab the new values of these 
  components from the Flash 8 file within my Flex 
  application.
  
  
  
  Thanks 
  for any insight on this.
  
  
  
  Steve
  --Flexcoders Mailing 
  ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  
  
  SPONSORED LINKS 
  


  
Web site design development 
  
  
Computer software development 

  
Software design and development 


  
Macromedia flex 
  
Software development best practice 

  

  
  
  
  
  
  YAHOO! GROUPS LINKS 
  
  
Visit your group "flexcoders" on the web. 

To unsubscribe from this group, send an email 
to: 
[EMAIL PROTECTED] 

Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service . 
  
  
  
  
  
  --Flexcoders Mailing 
  ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  
  
  SPONSORED LINKS 
  


  
Web 
site design development 
  
Computer 
software development 
  
Software 
design and development 

  
Macromedia 
flex 
  
Software 
development best practice 
  

  
  
  
  
  
  YAHOO! GROUPS LINKS 
  
  
Visit your group 
"flexcoders" on the 
web. 
To unsubscribe 
from this group, send an email to:[EMAIL PROTECTED] 

Your use of Yahoo! 
Groups is subject to the Yahoo! 
Terms of Service. 
  
  
  
  
  
  --Flexcoders Mailing 
  ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives: 

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 inner class,
which we don't support in this version.

Import, on the other hand, tells it that you're just giving access to
the other class.

Sorry to be pedantic here, but I'm curious about what you did that
worked...

-rg

 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of Clint Willard
 Sent: Wednesday, April 05, 2006 5:25 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: [A]F2B2: Classes must not be nested??
 
 You are correct. Flex 2.0 obviously does not let you use a class in
 the source parameter of script. I used include instead and it worked.
 Thanks.
 
 
 --- In flexcoders@yahoogroups.com, Clint Willard 
 [EMAIL PROTECTED] wrote:
 
  
  What is this error message mean exactly:
  
  Classes must not be nested
  
  I've search and found the error code but no discription, 
 reason why, or
  any solutions. The class is not nested that I know of:
  
  class ShoppingCart{
  
   var items : Array;
   var total : Number = 0;
  
   function ShoppingCart() {
   items=new Array();
   }
  
   function
  
  }
  
  Called from a Flex 1.5 coded Flex Store converting to Flex 2.0 b2:
  
  mx:Application xmlns:mx= http://www.adobe.com/2006/mxml
  http://www.adobe.com/2006/mxml  xmlns=*
   initialize=initApp()
   verticalGap=0
   pageTitle=FlexStore
  
   !-- The ActionScript code for this class is externalized --
   mx:Script source=ShoppingCart.as/
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links
 
 
 
  
 
 
 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





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 
 [mailto:[EMAIL PROTECTED] On Behalf Of Sönke Rohde
 Sent: Thursday, April 06, 2006 1:43 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] FLexB2 Embed flv into SWF
 
 Hi,
 When using the Image-Tag it's possible to embed images into 
 the SWF with
 mx:Image source=@Embed('test.jpg') /
 I tried the same for the VideoDisplay: mx:VideoDisplay
 url=@Embed(source='test.flv') /
 But I get the error: test.flv does not have a recognized 
 extension, and a
 mimeType was not provied
 Unable to transcode test.flv
 
 Will embedding of Flash Video will be supported in beta3 or 
 flex2 final or
 is embedding restricted to images like jpg,png, gif etc.?
 
 Cheers,
 Sönke
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links
 
 
 
  
 
 
 
 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





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 test.mxml to get test.swf,
and then load that.

Where was this example?  (It seems very Flex 1.5ish to me...)

-rg

 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of Karuna Rao
 Sent: Thursday, April 06, 2006 3:00 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Query on loader control
 
 Hi, 
 How do you really use a loader control? Does it have 
 any restrictions? We followed the example stated in the Flex 
 help section, but all we could display is a placeholder, the 
 file does not load.
 Here's the code: 
 ?xml version=1.0 encoding=utf-8? 
 mx:Application 
 xmlns:mx=http://www.adobe.com/2006/mxml; 
 xmlns:comp=components.* layout=absolute 
 mx:HDividedBox id=mainHD horizontalGap=0 
 verticalGap=1 height=100% 
 mx:Image id=inetooImg 
 source=images/inetoo_bg.jpg/ 
 comp:navigation/  
 mx:Loader source=test.mxml.swf/ 
 !-- the test.mxml file resides in the main project folder--
 /mx:HDividedBox 
 /mx:Application 
  
 Rgds
 KR
 
 
 
 New Yahoo! Messenger with Voice. Call regular phones from 
 your PC 
 http://us.rd.yahoo.com/mail_us/taglines/postman6/*http://us.r
d.yahoo.com/evt=39663/*http://voice.yahoo.com  and save big. 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 
 
 
 
 
 YAHOO! GROUPS LINKS 
 
 
   
 *  Visit your group flexcoders 
 http://groups.yahoo.com/group/flexcoders  on the web.
 
 *  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] 
 
 *  Your use of Yahoo! Groups is subject to the Yahoo! 
 Terms of Service http://docs.yahoo.com/info/terms/ . 
 
 
 
 
 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





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: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of hari_lists
 Sent: Thursday, April 06, 2006 1:09 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Link Error: unresolved symbol ...
 
 
 I have tried this question at the labs forum, but had no luck, so here
 it goes again...
 
 I am trying to create a swc file from a bunch of AS files. The
 compilation seems to go through and the SWC file gets created, but I
 get a bunch of unresolved symbol error at the end. I tried to use the
 file anyway as a library to a project, but the add operation seems to
 fail for the same reason. I even tried to create an SWC file from a
 dummy single AS class (the simplest possible class definition), and
 still see the link errors (though less of them as there are very few
 references). The problem appears even with beta2. Here are a few of
 the link errors (there are about 80 or so):
 
 [java] Error: Link error: unresolved symbol flash.events:MouseEvent
 [java]
 [java] Error: Link error: unresolved symbol flash.events:EventRoot
 [java]
 [java] Error: Link error: unresolved symbol decodeURI
 [java]
 [java] Error: Link error: unresolved symbol flash.util:ByteArray
 [java]
 [java] Error: Link error: unresolved symbol Class
 [java]
 [java] Error: Link error: unresolved symbol Date
 
 I specified both playerglobal.swc and framework.swc in the library
 path (otherwise, the compile itself won't go through), so the symbols
 it is complaining about are there in the libraries. Here is my
 flex-config.xml:
 
 ?xml version=1.0?
 flex-config xmlns=http://www.macromedia.com/2005/flex-config;
 compiler
 actionscript-classpath
 path-element./path-element
 /actionscript-classpath
 library-path
 path-elementC:\apps\macromedia\FlexFramework2b1\Flex
 Framework 2\frameworks\libs\framework.swc/path-element
 path-elementC:\apps\macromedia\FlexFramework2b1\Flex
 Framework 2\frameworks\libs\playerglobal.swc/path-element
 /library-path
 /compiler
 outputpvapi.swc/output
 directoryfalse/directory
 include-classes
 [ The classes listed ]
 /include-classes
 /flex-config
 
 
 Does anyone have an idea how to solve this problem? If anyone is
 interested, I can post the sample code and configuration to reproduce
 this problem.
 
 Thank you,
 Hari
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links
 
 
 
  
 
 
 
 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





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 use them, though!  :-)

-rg

 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of tinkiknit
 Sent: Tuesday, April 04, 2006 2:31 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Does Flex have drawing components?
 
 Hi...
 
 Newbie to Flex here...I'm evaluating it for use in a graphical 
 tasking application...here is what I am trying to do with flex...
 
 I have a palette that contains components which represent 
 individuals. Each person has a specific task s/he has to perform. 
 The user needs to be able to drag a components/persons to a canvas 
 and define what s/he has to do. Next, once at least two components 
 are defined in the canvas, the user needs to be able to draw a line 
 between components then define this relationship (the line 
 represents a relationship)...for example, if person A has to write 
 chapter 1 of a book, but person B has to write chapter 2 based on 
 what chapter 1 has, this line would indicate this.
 
 I've been tweaking the flexstore 1.5 application and have the drag 
 and drop stuff running but am not sure if flex has a component to 
 allow a user to freehand draw a line and attach properties to that 
 line.
 
 Any ideas on how to do this if at all possible?
 
 thanks!
 Christine
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links
 
 
 
  
 
 
 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




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 generate a wrapper class around them, which you then create 
via "new".

Once the next version of Authoring is out, you will simply 
export a SWC from Blaze, add it to your Flex library path, and just use "new" - 
the "export" library symbol name in Flash will become the 
classname.

-rg

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Manuel 
  Saint-VictorSent: Monday, April 03, 2006 10:24 AMTo: 
  flexcoders@yahoogroups.comSubject: Re: [flexcoders] attachMovie() 
  Flex equiv?
  Which version of Flex are you using? 
  On 4/3/06, bclinkinbeard [EMAIL PROTECTED] 
  wrote: 
  
Hello all,Very new to Flex 
development and am having a hard time figuring out howyou can create 
interfaces that aren't completely component based. Isthere a Flex 
equivalent to attachMovie()? The only info I have foundtalks about 
loading a library swf and then using Embed to grab aparticular symbol by 
doing something like my.swf#symbolName. Is this theonly way? Is this the 
best way? Seems like it would be quite a pain ifyou had a library swf 
with 50 symbols you wanted to be able to load inand access.Any 
help is 
appreciated.Thanks,Ben--Flexcoders 
Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 



YAHOO! GROUPS LINKS 

  Visit your group "flexcoders" on the web. 
  To unsubscribe from this group, send an email 
  to: [EMAIL PROTECTED] 
  
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
  Service . 








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









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 mx.core.Application,
you get a bunch of things that a toy application might not need,
but that a real-world application probably will.

A Flex app has a higher initial cost, but levels off.
Flex also allows you to write your own frameworks from scratch
in AS.

 I believe they're also working on ways to use
 shared runtime libraries/frameworks so it'll be possible to 
 include apps that don't include the framework, instead reuse
 the libs supplied in the container application - makes it
 easier to break your apps into smaller, reuseable modules.

Flex has this today.  See the runtime-shared-libraries
and externs and external-library-path configuration options.

-rg


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




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 PROTECTED] On Behalf Of SCOTT 
  FANETTISent: Monday, March 27, 2006 7:19 AMTo: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: Weird 
  Gradient Fill error
  Roger - I posted a few days ago about the continued gradient 
  fill funk in Beta 2. Do you have any more information about why these 
  gradient fills continue to fail to transcode?this is the link to the 
  archived 
  message:http://groups.yahoo.com/group/flexcoders/message/32258Roger 
  Gonzalez [EMAIL PROTECTED] wrote:
  

There were several gradient 
fillbugsthatI recently fixed.

The next beta build should solve your problems, 
but let me know if it doesn't!

-rg

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Scott 
  FanettiSent: Thursday, March 09, 2006 1:54 PMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Re: Weird 
  Gradient Fill error
  Does anyone know if anyone has been having weird compile time 
  bugs ! with Flex when they try to import a shape or symbol 
  from Flash 8 that has a gradient fill? The gradient stoke seems to 
  work fine, but when I tried to import a shape with a gradient fill that 
  used any of the Flash 8 gradient transforms or overflow features it errors 
  with: Unable to transcode 
  ../media/NewGradientFillWithGradientStroke.swf unrecognized fill style 
  type: 19 I guess these things are to be expected with Beta 
  software.Scott FanettiRosettaStone.com
  SPONSORED 
  LINKS 
  


  Web 
site design development 
  Computer 
software development 
  Software 
design and development 

  Macromedia 
flex 
  Software 
development best practice 
  
  
  Yahoo! 
  Messenger with Voice. PC-to-Phone calls for ridiculously low rates. 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









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 apps.)

My suggestion is to start building your app with interfaces connecting
the modules, and try to avoid concrete implementation dependencies.

After that, by the time we ship, I should have an article out describing
how to set things up.

-rg 

 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of Tom Sobut
 Sent: Monday, March 27, 2006 11:16 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Large App Architecture
 
 We're looking at possibly developing a large Flex application 
 which could have 50+ screens 
 and lots of sub views on those screens.
 
 We will have users with various connection speeds, including 
 dialup, so we'd like to minimize 
 initial download time of the app.
 
 We also have the situation where some user types use only a 
 subset of the screens.
 
 Our concern is that deployed as a monolithic app, initial 
 load times could be painful over 
 slow connections.
 
 Can a Flex application be architected so that modules would 
 be programatically loaded as 
 needed?  Would this be done as separate .swf's?  Are there 
 tradeoffs in this type of approach?
 
 Thanks in advance.
 
 Tom
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links
 
 
 
  
 
 
 
 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Large App Architecture

2006-03-27 Thread Roger Gonzalez





May I ask your rationale for avoiding interfaces? If 
you use concrete implementations, you'll generally need to do a lot more 
recompilation..

-rg

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Anatole 
  TartakovskySent: Monday, March 27, 2006 4:51 PMTo: 
  flexcoders@yahoogroups.comSubject: Re: [flexcoders] Large App 
  Architecture
  
  Tom,
   Partitioning of the 
  application is the must, and thanks to the advise from Roger, it is not hard. 
  However, I would advocate to not to use interfaces, but rather use small 
  applications and shared 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 

Sent: Monday, March 27, 2006 4:19 
PM
Subject: RE: [flexcoders] Large App 
Architecture
Yes, it can. Multiple SWFs. 
Tradeoffs are increased potential forerrors, a bit more architecture 
work needed up front, and the potentialthat the Flex frameworks isn't 
fully designed for this case, so youmight run into some tricky (but not 
unsolvable) issues. (It workspretty well for pure-AS 
apps.)My suggestion is to start building your app with interfaces 
connectingthe modules, and try to avoid concrete implementation 
dependencies.After that, by the time we ship, I should have an 
article out describinghow to set things up.-rg  
-Original Message- From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of Tom Sobut Sent: 
Monday, March 27, 2006 11:16 AM To: 
flexcoders@yahoogroups.com Subject: [flexcoders] Large App 
Architecture  We're looking at possibly developing a large 
Flex application  which could have 50+ screens  and lots of 
sub views on those screens.  We will have users with various 
connection speeds, including  dialup, so we'd like to minimize 
 initial download time of the app.  We also have the 
situation where some user types use only a  subset of the 
screens.  Our concern is that deployed as a monolithic app, 
initial  load times could be painful over  slow 
connections.  Can a Flex application be architected so that 
modules would  be programatically loaded as  needed? 
Would this be done as separate .swf's? Are there  tradeoffs in 
this type of approach?  Thanks in advance.  
Tom   -- 
Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
Search Archives:  http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









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 some web forum that lets you upload a 
SWF as an image. Every person who visits the page runs that SWF. It 
would thus be bad if the SWF was allowed to connect to some site that the SWF 
author wanted to crash.

Dig it?

-rg





From: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
dos dedosSent: Monday, March 27, 2006 7:58 PMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: Flex 2: about 
"potential" HTTPService timeout/security issues ...

  (I'm still in complaining mode)ActiveX and Java used 
  applet signing to solve this ...Wouldn't it be better to "respect" the 
  end user's right to choose whether or not to trust a given Flash app to do 
  what it's suppose to do rather than to force the user to install crossdomain 
  on their machine or force teh sys admin (in case of LAN) to install cross 
  domain inside the LAN? How about some security through 
  democracy?How many times does the average person click OK on a signed 
  applet or ActiveX permission screen and end up regreting 
  it?dosTed Patrick 
  [EMAIL PROTECTED] wrote:
  1. 
Delegate security to the server side on a domain/subdomain basis.2. 
Enable high and low ports access. 3. Prevent Flash Player from being 
used as "denial of service" toolset. Crossdomain.xml has really 
improved things, it was a great addition to the player at the release of 
Flash Player 7. I complained about it but eventually I saw the 
light.Cheers,Cynergy Systems, Inc.Theodore 
PatrickSr. Consultant[EMAIL PROTECTED]tel: 
1.866.CYNERGYhttp://www.cynergysystems.comFrom: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
dos dedosSent: Monday, March 27, 2006 6:14 PMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: Flex 2: about 
"potential" HTTPService timeout/security issues ...thanks! 
bwt, does anyone know what is the security scenario that promoted 
the introduction of the crossdomain requirement? it would be educating to 
know Carson Hager [EMAIL PROTECTED] 
wrote:You will need a crossdomain file.��-- No 
virus found in this outgoing message.Checked by AVG Free 
Edition.Version: 7.1.385 / Virus Database: 268.3.2/293 - Release Date: 
3/26/2006
  
  
  Blab-away for as little as 1¢/min. Make PC-to-Phone 
  Calls using Yahoo! Messenger with Voice. 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









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 asynchronously?
  Let's say you had 8 or 16 "Wav" files that you wanted to 
  play at the same time (e.g. for special sound effects in games) then one way 
  woudl be to issue async calls to play each file in sequence, so that all of 
  them would start at approx the same time.Is that possible in 
  Flex?I've seen games and demos in Shockwave where multiple audio 
  channels are mixed.. Not sure if it's possible in Flash and 
  Flex?
  
  
  New Yahoo! 
  Messenger with Voice. Call regular phones from your PC for low, low 
  rates. 






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









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 Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of Vadim Melnik
 Sent: Thursday, March 23, 2006 4:49 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Flex 2.0 b2: 'getClassByName' 
 method of the 'flash.util' package
 
 Is there some special mxmlc option to prevent optimization, and 
 force compiler to include all classes from classpath or at least 
 imported ones (like import MyClass;) ? I saw -compiler.keep-all-
 type-selectors option, described as disables the pruning of unused 
 type selectors (advanced), but don't clearly understand it effect.
 
 --
 Thanks,
 Vadim Melnik.
 
 --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] 
 wrote:
 
  No, you must have a refernence to MyClass somewhere in your code in
  order for it to be linked in to the SWF at compile time. A string
  'myPackage.MyClass' does not constitute a reference. This is not a 
 bug -
  the compiler must optimize what classes are actually needed to 
 keep the
  SWF size down.
   
  
  -Original Message-
  From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On
  Behalf Of tyombria
  Sent: Wednesday, March 22, 2006 4:44 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Flex 2.0 b2: 'getClassByName' method of the
  'flash.util' package
  
  Hi, all.
  
  Method 'getClassByName' works correctly only with adobe classes.
  For example, getClassByName('flash.net.URLLoader') works fine.
  
  I've got a problem with my custom classes.
  For example:
  var myClassReference:MyClass = getClassByName('myPackage.MyClass');
  I get error:
  Error #1065: Variable MyClass is not defined.
  
  Class exists in classpath or in the library.
  
  If i put somewhere inside declaration block: var myClass:MyClass It
  (getClassByName) works fine.
  
  Is it a bug?
  
  
  
  
  
  --
  Flexcoders Mailing List
  FAQ: 
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.com
  Yahoo! Groups Links
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links
 
 
 
  
 
 
 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




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 
will create individual assets in Flash 8, export them in the library with a 
unique name, and then use Embed in Flex 2 to pull them in. All scripting 
needs to be done on the Flex side. You can either use var-level Embed to 
have an AS3 class for your asset created for you, or you can use class-level 
Embed on an appropriate class for the particular asset type you want to 
use.

See the docs on skinning for more details.

-rg

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan 
  BezuidenhoutSent: Thursday, March 23, 2006 6:58 AMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Flash custom 
  components in Flex 2
  Hi everyone,In the Flex 1.5 docs there was a section on 
  how to make a custom component in Flash and how to export it etc for use in 
  Flex. I have noticed that this content is missing from the new Flex 2 
  docs.Is this not encouraged anymore or have they just not been 
  included?I have tried to make a swc component using the directions in 
  the old docs. I am not very good with Flash at all - but here is 
  what I did: I am trying something simple - I create a graphic in Flash 
  - in the library, I make the graphic to be a component called Navigator and I 
  have an associated .as class file like this:class Navigator extends 
  mx.core.UIComponent { static var 
  symbolName:String="Navigator"; static var 
  symbolOwner:Object="Navigator"; var 
  className:String="Navigator"; function Navigator() 
  {  } 
  function init() {  
  super.init();  
  invalidate(); }}I then export this as a swc 
  and call it Navigator.swc. I place this swc file in the root of my app - 
  the same place where the mxml files are. In my main.mxml I then try and 
  instantiate it as Navigator /The Flex Builder compiler then 
  says 'Could not resolve Navigator to be a component 
  implementation.Do I need to do anything else?The end result 
  needs (I guess once I have the basic thing above working) is to have a graphic 
  with a bunch of objects of different shapes that are actually buttons - but 
  they do not look like buttons - they have irregualr edges and I need to be 
  able to disable/enable them from Flex and monitor in Flex when they get 
  clicked etc. Any idea as to where I am going 
  wrong?ThanksJonathan






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









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 isn't getting something it needs. Have you done the 
same sort of "copy the en_us directory" locale hack that has worked for other 
people?

-rg

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Tobias 
  PattonSent: Thursday, March 23, 2006 8:15 AMTo: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] Flex 2.0: mxmlc 
  question
  
  
  Hi 
  Roger;
  
  
  So, to link 
  corelib.swc into my application, youd supply the path to corelib as an 
  argument to the library-path option? Heres the command-line Im 
  using:
  
  mxmlc 
  -actionscript-classpath=D:\PerforceDepot\galiano\Galiano.Tobias_Patton\Client\classes 
  -library-path 
  D:\PerforceDepot\galiano\Galiano.Tobias_Patton\tools\compiler\Flex2b2\frameworks\libs\ 
  D:\PerforceDepot\galiano\Galiano.Tobias_Patton\Client\oem\corelib\bin\corelib.swc 
  -- 
  D:\PerforceDepot\galiano\Galiano.Tobias_Patton\Client\DashboardJobsView\DashboardJobsView.mxml
  
  This compiles, but I 
  get the following runtime error when I launch my 
  application:
  
  Error: Key 
  outOfBounds was not found in resource bundle 
  SharedResources
   
  at mx.resource::ResourceBundle/getObject()
   
  at mx.resource::ResourceBundle/getString()
   
  at 
  mx.collections::ListCollectionView$/::loadResources()
   
  at mx.managers::SystemManager$/registerInitCallback()
   
  at mx.collections::ListCollectionView$cinit()
   
  at global$init()
   
  at global$init()
   
  at _DashboardJobsView_FlexInit$/init()
   
  at mx.managers::SystemManager/::frameEndHandler()
  
  This used to 
  work in Beta 1.
  
  If I remove the 
  reference to corelib.swc from the command line (and comment out any code that 
  depends on corelib), I can compile and run the application. 
  
  
  Can you suggest what 
  might be wrong with the way Im building the 
  application?
  Thanks.
  
  Tobias.
  
  BTW: The reason 
  flex-config.xml couldnt be found was that I was running mxmlc with java jar 
  mxmlc.jar
  
  
  
  
  From: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Roger GonzalezSent: Wednesday, March 22, 2006 8:09 
  PMTo: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] Flex 2.0: mxmlc 
  question
  
  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 Flex Builder. By 
  default, the compiler tries to load flex-config.xml out of ${flexlib}, which 
  for mxmlc.exe is relative to the bin directory, and I suspect is set 
  explicitly by Flex Builder.
  
  I don't know what the 
  "does not use a config file by default" means. mxmlc certainly loads a 
  flex-config.xml file by default. I'm not positive what Flex Builder 
  does, though.
  
  In beta 2, you should 
  be able to use -load-config+=otherfile.xml to overlay your config on top of 
  the default config.
  
  In other words, the 
  config file isn't required, but there are some default settings that are 
  trying to load it. Something about your setup sounds 
  broken.
  
  -rg
  




From: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tobias PattonSent: Wednesday, March 22, 2006 4:38 
PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Flex 2.0: mxmlc 
question

Can someone explain the 
difference between the -include-libraries and -library-path compiler 
options?
The documentation states 
that -include-libraries is commonly used to link in an .swc file 
containing localized resources. But what about .swc file containing other 
.swc files used by the application? The documentation for -library-path 
implies that this option should be used to link in custom components. What 
is the difference? When I add a library in Flex Builder, does this translate 
to an -include-libraries option of a -library-path 
option?
Also, the documentation 
states that the Flex compilers do not use a config file by default. However, 
unless I specify the -load-config option, I get the error: defaults: 
Error: unable to open './flex-config.xml'. Is this flag required or 
not?
Thanks.
Tobias.
Creo Inc., a 
subsidiary of Kodak
Tobias Patton | 
Software Developer | Tel: 1.604.451.2700 ext: 5148 | mailto:[EMAIL PROTECTED] 
| 
http://www.creo.com 

  






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: 

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: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of Vadim Melnik
 Sent: Thursday, March 23, 2006 10:10 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] How to enumerate ApplicationDomain classes?
 
 Hi All,
 
 ApplicationDomain provides getClass(getDefinition??) method to 
 retrieve class definition. Is it possible to enumerate all available 
 class definitions or class names loaded by certain application domain 
 at runtime from AS code?
 
 --
 Thanks,
 Vadim Melnik.
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links
 
 
 
  
 
 
 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




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 makes impossible to update library binaries 
 without recompilation of application SWF. Each time shared library 
 is updated, we need to recompile all applications as well. Also all 
 dynamic classes declared in RSL must be explicitly referenced by 
 main application,(as otherwise these classes will be loaded without 
 initialization). 

If you're finding this to be the case, I suggest refactoring to use more
interfaces.  If you set things up correctly, you should only need to
rebuild the other piece if the interface changes.  This helps decouple
the dependencies, and makes for faster recompiles.

 For the same reason we are unable to load unknown library at 
 runtime and dynamically create class without problem (I mean classes 
 with complex UI, remoting code etc). 

In order to get the initialization code, you need to build using mxmlc.
I'm working on some skunkworks code to make building these sorts of
loadable modules easier.

 Ideally it would be better if compc stored all initialization 
 information in SWC binaries. So loader could access it at runtime 
 and automatically initialize external library on demand. Just my 
 2c...

The player doesn't know SWCs, but you're welcome to write an AS3 SWC
parser.  :-)

-rg


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




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 Flex Builder. By default, the compiler tries to load 
flex-config.xml out of ${flexlib}, which for mxmlc.exe is relative to the bin 
directory, and I suspect is set explicitly by Flex Builder.

I don't know what the "does not use a config file by 
default" means. mxmlc certainly loads a flex-config.xml file by 
default. I'm not positive what Flex Builder does, 
though.

In beta 2, you should be able to use 
-load-config+=otherfile.xml to overlay your config on top of the default 
config.

In other words, the config file isn't required, but there 
are some default settings that are trying to load it. Something about your 
setup sounds broken.

-rg

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Tobias 
  PattonSent: Wednesday, March 22, 2006 4:38 PMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Flex 2.0: mxmlc 
  question
  
  
  Can someone explain the difference 
  between the -include-libraries and -library-path compiler 
  options?
  
  The documentation states that 
  -include-libraries is commonly used to link in an .swc file containing 
  localized resources. But what about .swc file containing other .swc files used 
  by the application? The documentation for -library-path implies that this 
  option should be used to link in custom components. What is the difference? 
  When I add a library in Flex Builder, does this translate to an 
  -include-libraries option of a -library-path 
  option?
  
  Also, the documentation states 
  that the Flex compilers do not use a config file by default. However, unless I 
  specify the -load-config option, I get the error: defaults: Error: unable to 
  open './flex-config.xml'. Is this flag required or 
  not?
  
  Thanks.
  Tobias.
  
  Creo Inc., a subsidiary of 
  Kodak
  Tobias Patton | 
  Software Developer | Tel: 1.604.451.2700 ext: 5148 | mailto:[EMAIL PROTECTED] 
  | http://www.creo.com 
  
  






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









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 project settings for experimentation like this.  I'm a big fan of
using ant to automate a build when you get to the point where you're
using RSLs.

Anyway.

The key insight in this is that a SWC is a library, and contains a SWF
(runtime definitions) and some additional metadata (used by the compiler
for dependency tracking, among other things).  SWCs are just zipfiles.
You can look inside them.

Your first step should be to figure out how to use SWCs for static
linking, never mind RSLs.  Get a project set up to build a SWC, then get
your app set up to use that SWC.

Lets say you have an app with app.mxml, xyzzy.as, and plugh.as.

project/src/app.mxml
project/libsrc/xyzzy.as
project/libsrc/plugh.as
project/lib/
project/bin/

Normally, you might compile:

% cd project/src
% mxmlc -o=../bin/app.swf -actionscript-classpath+=../libsrc app.mxml

which would pull in xyzzy and plugh via dependencies.  To convert this
to use libraries, you might do:

% cd project
% compc -actionscript-classpath+=libsrc -o=lib/mylib.swc xyzzy plugh

resulting in project/lib/mylib.swc

To rebuild your app, you'd use:

% cd project/src
% mxmlc -o=../bin/app.swf -library-path+=../lib/mylib.swc app.mxml

We're ready to recompile our application to use the RSL.  This is a bit
complex at first glance, but that is because there are three dimensions.

1) Tell the compiler to not link certain classes into your application.
2) Get the RSL deployed so that it can be found and used at runtime.
3) Tell the compiler to generate some extra stuff that loads your RSL.

Lets just tackle #1 for the moment, and see where it leads us.

% cd project/src
% mxmlc -o=../bin/app.swf -external-library-path+=../lib/mylib.swc
app.mxml

If you run app.swf now, you'll get a RTE, because xyzzy and plugh
aren't defined.  The external-library-path configuration option says
compile against these libraries, but leave out every definition that
they define.  There's a corresponding -externs option, if you wanted
to do it class-by-class, but its generally a lot more convenient to do
it this way.

So, on to #2.  Lets get the RSL ready for use.

Converting our SWC to a RSL is easy.  Its already halfway there, you
just need to extract out the SWF inside, since the player doesn't
understand SWCs.

% cd project/lib
% unzip mylib.swc library.swf
% mv library.swf ../bin/myrsl.swf

For convenience, I just renamed and moved the library SWF file down so
that its in the same directory as the application SWF.  Honestly, half
the battle for RSLs is just figuring out where to deploy things.

Finally, lets recompile the application to use that RSL:

% cd project/src
% mxmlc -o=../bin/app.swf -external-library-path+=../lib/mylib.swc
-runtime-shared-libraries=myrsl.swf app.mxml

What this does is generate a SWF that will dynamically load the RSL
before letting the application run.

Make sense?

(Note: there are a couple more steps involved if your main application
is built in pure AS instead of MXML, because the code that does the RSL
loading is actually inside your application's bootstrap class
(normally a class derived from SystemManager for MXML apps).  In a pure
AS app, you might not have a bootstrap class unless you go out of your
way to use one.)

-rg

 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of bussesven
 Sent: Tuesday, March 21, 2006 6:05 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Runtime Shared Libraries (flex 2)
 
 Hi,
 
 i have a question concerning runtime shared libraries in Flex 
 2. I have 
 read through the documentation but i don't get it. Can 
 someone give me 
 an example on how rsl are created and used? I want to have a rsl that 
 holds some classes that i want to use in several other applications.
 
 How do i reference a class, that lies in a rsl? With the Embed tag?
 
 thank you
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links
 
 
 
  
 
 
 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




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 
problems.

-rg

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Scott 
  FanettiSent: Tuesday, March 21, 2006 10:53 AMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Gradient Fill bugs 
  in Beta 1 and Beta 2
  There were several gradient fill bugs in Beta 1 - do any of you 
  Macrodobe folks know if they have been fixed for Beta 3? I built a test 
  harness to check if swfs with gradients could be embedded and I still 
  cannot get them to transcode. Additionally, the as classes that feature 
  an embed directive have a new error: Definition of base class 
  'SkinSprite' not found SkinSprite used to be in mx.core but I can't 
  find it now. Any suggestions? -- 
  Thanks,Scott FanettiSoftware EngineerFairfield Language 
  TechnologiesRosettastone.com[EMAIL PROTECTED] [EMAIL PROTECTED] 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









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: non-syntactic)

// IManager.as
package {
public interface IManager {...}
}

// Manager.as
package {
public class Manager
{
  private static var _impl:ManagerImpl = null;
  public static function getInstance():IManager
  {
if (_impl == null) _impl = new ManagerImpl();
return _impl;
  }
}
}
// outside the package decl!
class ManagerImpl implements IManager {..}

Benefits: no way to make a ManagerImpl from outside, because it has no
visibility.  Compile-time checking.  Implementation decoupling.

One objection: but they could make a new Manager!.  My first response
is so what?, because the key thing for a singleton is usually to
guarantee a correctly running application by ensuring that an invariant
(only one impl in existence) is not violated.  By this metric, they can
create Manager all day, and its harmless, because its just the
wrapper.  However, my second response is that if this bothers you, you
could also just make a getManager() call.  I personally find
getManager.as to be jarring, so I prefer a static method, but YMMV.

-rg
 

 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Tapper
 Sent: Monday, March 20, 2006 7:06 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Singleton not usable?
 
 We've solved this one a few times.  I've blogged about it in my AS3 
 Datamanager entry.  take a look.
 
 http://jeff.mxdj.com/as3_datamanager.htm
 
 At 09:24 AM 3/20/2006, you wrote:
 Hi all,
 
 I'm trying to make a singleton class as demonstrated below, 
 but get the 
 error: a constructor may only be declared 'public'. Well, 
 that error is 
 clear, the reason for it is not however.
 Isn't it possible anymore to make a singleton class, or is 
 there another 
 method for it?
 
 Class Singleton {
 
 private static var _instance:Singleton = null;
 
 private function Sinleton() {
 }
 
 public static function getInstance():Singleton {
 if(Singleton._instance == null) {
_instance = new Singleton();
 }
 return _instance;
 }
 
 }
 
 Any help would be much appreciated.
 
 Kind regards,
 Sonja Duijvesteijn
 
 
 --
 Flexcoders Mailing List
 FAQ: 
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ
 .txthttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comhtt
p://www.mail-archive.com/flexcoders%40yahoogroups.com 
 
 
 
 
 --
 YAHOO! GROUPS LINKS
 
 *  Visit your group 
  http://groups.yahoo.com/group/flexcodersflexcoders on the web.
 *
 *  To unsubscribe from this group, send an email to:
 * 
  
 mailto:[EMAIL PROTECTED]
ribe[EMAIL PROTECTED] 
 
 *
 *  Your use of Yahoo! Groups is subject to the 
  http://docs.yahoo.com/info/terms/Yahoo! Terms of Service.
 
 
 --
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links
 
 
 
  
 
 
 
 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




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 control the base class.

// MyTest.as
package 
{
import flash.display.MovieClip;
[Embed(source=test.swf)]
public class MyTest extends MovieClip {}
}

Now, if you do Embed, we can't guarantee that older bytecode will run.
In fact, we'll be stripping it out at some point.

If you dynamically load the other SWF, then the bytecode inside will
run, but you're fairly limited in communication between the two virtual
machines.

-rg


 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of riskyseven
 Sent: Monday, March 20, 2006 12:55 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flash within Flex?
 
 I am very new to Flex, and only working in Flex 2.0 Beta 1.  What are 
 the limitations for embedding a flash swf in flex?  It seems 
 if I embed 
 the swf as an image, it only shows/plays frame 1 of the 
 embedded swf.  
 Supposing I get past this, can you get access to the embedded swf's 
 actionscript/variables?  Thanks.
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links
 
 
 
  
 
 
 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




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.

However... I have a prototype of a new feature that will allow you to
embed -any- SWF into another SWF and have it work; it will just be
subject to the cross-VM communications rules of a dynamically loaded
SWF.  As a related item, there's another prototype feature to improve
cross-VM calling.  We're trying to get these new features approved, and
I'm cautiously optimistic.  Stay tuned!

-rg

 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of alpharythms
 Sent: Saturday, March 18, 2006 12:27 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Embedding Flash 7 or 8 into Flex
 
 What is the best way to embed a SWF created in Flash 8 or earlier into
 a Flex app?
 
 I've tried using the image and the loader controls.
 
 They both appear to work the same.  I get an error that says:
 ReferenceError: Error #1056: Cannot create property _th_ on
 _testEmbed_mx_managers_SystemManager but then the files work... kinda.
 
 The external SWF is able to load external XML files but is not able to
 load jpeg assets.
 
 Now here is where it gets really interesting.  If I embed two copies
 of the file  (Two Image controls each taking up half the page both
 linking to the same file) then...  the first SWF is able to load the
 jpegs.  How weird is that?
 
 Also none of the ZigoTweens are working in either SWF. 
 
 This is MUCH closer to working then previous Flex versions.  
 
 The compile times are so much faster now.  Makes it a LOT easier to
 mess around.  :)
 
 I'm using Beta 2.
 
 Any tips or tricks for me?
 
 Thanks!
 Adam Schroeder
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links
 
 
 
  
 
 
 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





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 force the other type to be 
  linked in (ka-ching!). If using the interface feels awkward, there's 
  probably a "thinko" in your (or our) design 
  abstraction.
  
  When used internally, can you imagine any situation where you might use 
  a different implemetation? If not, use a concrete 
  type.
-rg

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Michael 
  SchmalleSent: Friday, March 17, 2006 6:05 AMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] AS3 :: Interface 
  type verses Concrete type return
  Hello,The question I have is what is the general concensus 
  dealing with how you pass and type a property.Would you type a 
  property with a concerte type if it is used internally in a class ?Or 
  with say ArrayCollection, you need to type it IListViewCollection?I 
  guess the real question is, where is the line between interface implementation 
  and concrete implementation?It's a lot easier to use the getItemAt() 
  of array collection then the cursor internally sometimes, but for a returned 
  type I do understand that you want to hide that by using the interface of 
  ArrayCollection's IListViewCollection.If I keep the 
  interface type this is forcing the client to use the IViewCursor 
  right?Now, is this the standard practice the methods like getItemAt() 
  are only supposed to be used by the objects owner not a client?I'm 
  just trying to nail standard practices here.This question really 
  pertains to the ArrayCollection for me right now. Peace, 
  MikePS Yes, program to an interface not to an implementation. Sorry if 
  this post might not be clear. I am having a hard time explaing what my true 
  question is :)-- What goes up, does come down. 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









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: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of thunderstumpgesatwork
 Sent: Thursday, March 16, 2006 10:28 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: 2.0B1 - Use of CSS style sheet with 
 DataGridColumn styleName
 
 OK, this is just terrible... the documentation in the guide for Using
 the StyleManager here:
 http://livedocs.macromedia.com/flex/20beta1/docs/1019.html#171182
 
 is terribly inconsistent about what text to use to reference the
 styles. It uses font-family, fontFamily, font-weight,
 borderStyle... What is it supposed to be?
 
 thanks,
 Thunder
 
 Quoted from the above mentioned page:
 
 
 public function initializeStyles():void {
 // Initialize the global settings.
 StyleManager.getStyleDeclaration(global).
 setStyle(font-family, Arial);
 StyleManager.getStyleDeclaration(global).
  setStyle(font-weight, bold);
 
 // Initialize all TextInput controls to have solid borders.
 StyleManager.getStyleDeclaration(TextInput).
  setStyle(borderStyle, solid);
 .
 .
 .
 To reset a style property of a CSSStyleDeclaration object, use the
 clearStyle() method, as the following example shows:
 
 myComponent.clearStyle('color');
 myComponent.clearStyle('fontFamily')
 myComponent.clearStyle('themeColor')
 
 
 
 
 --- In flexcoders@yahoogroups.com, thunderstumpgesatwork
 [EMAIL PROTECTED] wrote:
 
  Guys,
  
  I'm quite confused and frustrated with these external style sheets.
  The style name in the documentation sometimes matches the style name
  you should use in the CSS file, but not usually... 
  
  For example, I'm trying to set the background color for a
  datagridcolumn via CSS. I have successfully set it via ActionScript
  setStyle(backgroundColor,0x5A5A5A);
  
  Now, I have commented the above line out, and set the styleName
  property to a CSS class defined as such:
  
  .PivotTableDimColumn
  {
  background-color: #5A5A5A;
  color: #FF;
  }
  
  What's strange is I know the CSS class is getting linked to the
  column, because the color property is working... the text 
 is white.
  HOWEVER, the background color does not get set. I have tried
  backgroundColor and background-color... which should it 
 be and why
  doesn't it work?
  
  How can I tell what the proper CSS style name should be based on the
  documented style name in the ActionScript documentation? Is there a
  separate CSS documentation somewhere that describes the proper
  styles to use?
  
  thanks,
  Thunder
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links
 
 
 
  
 
 
 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





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 omitted. 

You'll need to relink your RSL to include the theme, so that when they
are eventually provided, the correct version will be used.

I think you may also be able to actually specify the theme as a RSL as
well, although its been ages since I looked at 1.5.

(In 2.0, themes are done entirely differently, based more on CSS.)

-rg

 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of moyosaned
 Sent: Friday, March 10, 2006 6:43 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Themes are gone when using rsl...??
 
 Anybody got a solution? .. I can't use RSL.. Theme is gone when i do
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links
 
 
 
  
 
 
 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




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: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of pk_wasp
 Sent: Wednesday, March 08, 2006 10:34 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Effects - Newbie help
 
 the text on the label won't fade coz Flex uses device fonts by default
 
 if you use embedded fonts u should see the effect
 
 does anyone know if Flex 2.0 is going to support Flash Type e.g. 
 that new font engine in Flash Player 8 which should sort this problem 
 out?
 
 --- In flexcoders@yahoogroups.com, Brent Johnson [EMAIL PROTECTED] wrote:
 
   I'm having a litle trouble understanding how effects work. 
  Apparently when you play() an effect, it is asynchronous, but I 
 can't
  seem to wrap my head around a solution.
  
   I have a Timer set up.  Each time it fires, I want to do the 
 following:
  
  1) Fade the Label to alpha=0.0
  2) Change the Label text
  3) Fade to alpha=1.0
  
  
  So I define one mx:Fade to fade in and one to fade out.  Then in my
  timer handler I try:
  
  fadeOut.play([salesTxt], true);
  
  salesTxt.text = cf.format(tickerData[current].value);
  
  fadeIn.play([salesTxt], true);
  
  ...but the text just pops to alpha 0.0 and then fades in.
  
  Could someone explain why this happens and what would be a good way 
 to
  accomplish this?
  
   Thanks,
 Brent
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links
 
 
 
  
 
 
 
 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




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 
  ShenoySent: Thursday, March 09, 2006 3:10 AMTo: 
  flexcoders@yahoogroups.comSubject: Re: [flexcoders] FlashRemoting 
  in ActionScript Project
  use mxml project to using remoteobject tag and while compiling use 
  -keep along with flex-enterprise-service.xml, it will generate .as classes for 
  all mxml files in generated directory under project directory, go to that 
  directory, look for filename.as for filename.mxml in that dir. 
  open that file and see how file is gnerated. is it make 
  sense--Prabs
  On 3/8/06, sn197412 
  [EMAIL PROTECTED] 
  wrote: 
  
Hi.Can we connect to ColdFusion from 
SWF of ActionScript Project??I got an error like below.[Couldn't 
establish a connection to 'ColdFusion']I'm sure I did set a compiler 
option of flex-enterprise-services.xml.But it never work.Please 
somebody tell me how I can connect to FlashRemoting withActionScript 
Project.--Shigeru--Flexcoders 
Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 

SPONSORED 
LINKS 

  
  
Web site design development 
Computer software development 
Software design and development 
  
Macromedia flex 
Software development best practice 
  


YAHOO! GROUPS LINKS 

  Visit your group "flexcoders" on the web. 
  To unsubscribe from this group, send an email 
  to: [EMAIL PROTECTED] 
  
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
  Service . 


-- regards and 
  thanksM.Prabhakar Shenoy+91 94483 77460 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









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 bhaq1972
 Sent: Thursday, March 09, 2006 7:33 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: XMLList as dataProvder for TileList
 
 without looking at your code, i'll take a big guess. try putting 
 your XMLList into a XMLLIstCollection
 eg
 
 var xlc:XMLListCollection = new XMLListCollection(yourXMLList);
 yourTileList.dataProvider = xlc;
 
 
 
 --- In flexcoders@yahoogroups.com, Jonathan Bezuidenhout 
 [EMAIL PROTECTED] wrote:
 
  Hi,
  
  I create a XMLList result from a query by using the e4x method - 
 and I would
  like to use this as the data provider for a TileList.
  
  In the TileList I create a custom component as a listItemRenderer, 
 and in
  that component I use e.g. [EMAIL PROTECTED] to try and display the 
 value of
  my attribute.
  
  The weird thing is that I get a TileList created with only one row 
 in it
  (the XML has 5), and all the values for each field is concatenated.
  
  So instead of seeing rows with values
  1
  4
  5
  I see one row with value 145.
  
  Hopefully this makes sense.  Is there any trick to make this work?
  
  Thanks
  
  Jonathan
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links
 
 
 
  
 
 
 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





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 PROTECTED] On Behalf Of tobiaspatton
 Sent: Thursday, March 09, 2006 9:03 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Internal compiler error
 
 Hello;
 
 I'm stuck! When compiling my project I am getting an internal 
 compiler error, and can't for the life of me figure out why. I've 
 reproduced the problem with a very small set of files that implement 
 the same structure as my project. 
 
 Essentially, I have a custom component, COMP_List, that derives from 
 mx:List and implements some custom behaviors. I have another custom 
 component DSHB_List that dervies from COMP_List. The main 
 application instantiates a DSHB_List object.
 
 
 /com/foo/bar/COMP/COMP_List.mxml:
 
 ?xml version=1.0 encoding=utf-8?
 mx:List xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=*
 /mx:List
 
 /com/foo/bar/DSHB/DSHB_List.mxml:
 
 ?xml version=1.0 encoding=utf-8?
 COMP:COMP_List xmlns:COMP=com.foo.bar.COMP.*  
 /COMP:COMP_List
 
 /CompilerError.mxml:
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; 
   xmlns:DSHB=com.foo.bar.DSHB.*
   xmlns=* 
   layout=absolute
   DSHB:DSHB_List/
 /mx:Application
 
 This is the command line I'm using to compile, along with the 
 compiler output:
 
 C:\Program Files\Adobe\Flex Builder 2 Beta 1\Flex Framework 2
 \binmxmlc --load-config ..\frameworks\flex-config.xml c:\Documents 
 and Settings\tpatton\My 
 Documents\Flex\CompilerError\CompilerError.mxml
 
 Loading configuration file C:\Program Files\Adobe\Flex Builder 2 
 Beta 1\Flex Framework 2\frameworks\flex-config.xml, root element 
 flex-config
 Initial setup: 343ms
 Loaded 6 SWCs: 594ms
 License Service: Flex 2.0 Developer Edition enabled (beta period 
 ends May 1, 2006)
 Compiling...
 Error: null
 
 java.lang.AssertionError
 at flex2.compiler.mxml.lang.StandardDefs.isIUIComponent
 (StandardDefs.java:267)
 at 
 flex2.compiler.mxml.builder.ComponentBuilder.constructComponent
 (ComponentBuilder.java:78)
 at flex2.compiler.mxml.builder.ApplicationBuilder.analyze
 (ApplicationBuilder.java:102)
 at flex2.compiler.mxml.dom.Node.analyze(Node.java:36)
 at flex2.compiler.mxml.ImplementationCompiler.parse
 (ImplementationCompiler.java:130)
 at flex2.compiler.mxml.Compiler.parse(Compiler.java:73)
 at flex2.compiler.API.parse(API.java:1104)
 at flex2.compiler.API.parse(API.java:1072)
 at flex2.compiler.API.batchInner(API.java:156)
 at flex2.compiler.API.batch(API.java:260)
 at flex2.compiler.API.compile(API.java:361)
 at flex2.compiler.API.compile(API.java:289)
 at flex2.tools.Compiler.main(Compiler.java:167)
 Total time: 3062ms
 Peak memory usage: 49 MB (Heap: 31, Non-Heap: 18)
 
 Am I doing something obviously wrong here? Does anyone have any 
 suggestions as to how I can track down an eliminate the internal 
 compiler error?
 
 Thanks.
 Tobias
 
 
 
 
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links
 
 
 
  
 
 
 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Re: Internal compiler error

2006-03-09 Thread Roger Gonzalez
You're right, I've looked at the specific line of code, and its not
unhappy about IUIComponent as I suspected, its unhappy about some other
class being unresolved.

We'll check this out internally, its quite possible its already been
fixed for Beta 2.

-rg 

 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of tobiaspatton
 Sent: Thursday, March 09, 2006 9:20 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Internal compiler error
 
 Hi Roger;
 
 Thanks for replying.
 
 For this test, I'm actually using the command-line compiler. If I 
 explicitly link against framworks.swc I get the same error:
 
 C:\Program Files\Adobe\Flex Builder 2 Beta 1\Flex Framework 2
 \binmxmlc --load-config ..\frameworks\flex-config.xml c:\Documents 
 and Settings\tpatton\My 
 Documents\Flex\CompilerError\CompilerError.mxml -library-
 path=c:\Program Files\Adobe\Flex Builder 2 Beta 1\Flex Framework 2
 \frameworks\libs\framework.swc
 
 Also, if frameworks.swc were corrupt or missing, wouldn't I have 
 problems compiling *any* project? It's only this particular project 
 that I'm having trouble with.
 
 Tobias.
 
 --- In flexcoders@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 Message-
   From: flexcoders@yahoogroups.com 
   [mailto:[EMAIL PROTECTED] On Behalf Of tobiaspatton
   Sent: Thursday, March 09, 2006 9:03 AM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Internal compiler error
   
   Hello;
   
   I'm stuck! When compiling my project I am getting an internal 
   compiler error, and can't for the life of me figure out why. 
 I've 
   reproduced the problem with a very small set of files that 
 implement 
   the same structure as my project. 
   
   Essentially, I have a custom component, COMP_List, that derives 
 from 
   mx:List and implements some custom behaviors. I have another 
 custom 
   component DSHB_List that dervies from COMP_List. The main 
   application instantiates a DSHB_List object.
   
   
   /com/foo/bar/COMP/COMP_List.mxml:
   
   ?xml version=1.0 encoding=utf-8?
   mx:List xmlns:mx=http://www.macromedia.com/2005/mxml; 
 xmlns=*
   /mx:List
   
   /com/foo/bar/DSHB/DSHB_List.mxml:
   
   ?xml version=1.0 encoding=utf-8?
   COMP:COMP_List xmlns:COMP=com.foo.bar.COMP.*  
   /COMP:COMP_List
   
   /CompilerError.mxml:
   
   ?xml version=1.0 encoding=utf-8?
   mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; 
 xmlns:DSHB=com.foo.bar.DSHB.*
 xmlns=* 
 layout=absolute
 DSHB:DSHB_List/
   /mx:Application
   
   This is the command line I'm using to compile, along with the 
   compiler output:
   
   C:\Program Files\Adobe\Flex Builder 2 Beta 1\Flex Framework 2
   \binmxmlc --load-config ..\frameworks\flex-
 config.xml c:\Documents 
   and Settings\tpatton\My 
   Documents\Flex\CompilerError\CompilerError.mxml
   
   Loading configuration file C:\Program Files\Adobe\Flex Builder 2 
   Beta 1\Flex Framework 2\frameworks\flex-config.xml, root element 
   flex-config
   Initial setup: 343ms
   Loaded 6 SWCs: 594ms
   License Service: Flex 2.0 Developer Edition enabled (beta period 
   ends May 1, 2006)
   Compiling...
   Error: null
   
   java.lang.AssertionError
   at flex2.compiler.mxml.lang.StandardDefs.isIUIComponent
   (StandardDefs.java:267)
   at 
   flex2.compiler.mxml.builder.ComponentBuilder.constructComponent
   (ComponentBuilder.java:78)
   at flex2.compiler.mxml.builder.ApplicationBuilder.analyze
   (ApplicationBuilder.java:102)
   at flex2.compiler.mxml.dom.Node.analyze(Node.java:36)
   at flex2.compiler.mxml.ImplementationCompiler.parse
   (ImplementationCompiler.java:130)
   at flex2.compiler.mxml.Compiler.parse(Compiler.java:73)
   at flex2.compiler.API.parse(API.java:1104)
   at flex2.compiler.API.parse(API.java:1072)
   at flex2.compiler.API.batchInner(API.java:156)
   at flex2.compiler.API.batch(API.java:260)
   at flex2.compiler.API.compile(API.java:361)
   at flex2.compiler.API.compile(API.java:289)
   at flex2.tools.Compiler.main(Compiler.java:167)
   Total time: 3062ms
   Peak memory usage: 49 MB (Heap: 31, Non-Heap: 18)
   
   Am I doing something obviously wrong here? Does anyone have any 
   suggestions as to how I can track down an eliminate the internal 
   compiler error?
   
   Thanks.
   Tobias
   
   
   
   
   
   
   
   
   
   
   
   --
   Flexcoders Mailing List
   FAQ: 
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Search Archives: 
   http://www.mail-archive.com/flexcoders%40yahoogroups.com 
   Yahoo! Groups Links
   
   
   

   
   
  
 
 
 
 
 
 
 
 
 --
 Flexcoders Mailing

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 

 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of tobiaspatton
 Sent: Thursday, March 09, 2006 9:03 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Internal compiler error
 
 Hello;
 
 I'm stuck! When compiling my project I am getting an internal 
 compiler error, and can't for the life of me figure out why. I've 
 reproduced the problem with a very small set of files that implement 
 the same structure as my project. 
 
 Essentially, I have a custom component, COMP_List, that derives from 
 mx:List and implements some custom behaviors. I have another custom 
 component DSHB_List that dervies from COMP_List. The main 
 application instantiates a DSHB_List object.
 
 
 /com/foo/bar/COMP/COMP_List.mxml:
 
 ?xml version=1.0 encoding=utf-8?
 mx:List xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=*
 /mx:List
 
 /com/foo/bar/DSHB/DSHB_List.mxml:
 
 ?xml version=1.0 encoding=utf-8?
 COMP:COMP_List xmlns:COMP=com.foo.bar.COMP.*  
 /COMP:COMP_List
 
 /CompilerError.mxml:
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; 
   xmlns:DSHB=com.foo.bar.DSHB.*
   xmlns=* 
   layout=absolute
   DSHB:DSHB_List/
 /mx:Application
 
 This is the command line I'm using to compile, along with the 
 compiler output:
 
 C:\Program Files\Adobe\Flex Builder 2 Beta 1\Flex Framework 2
 \binmxmlc --load-config ..\frameworks\flex-config.xml c:\Documents 
 and Settings\tpatton\My 
 Documents\Flex\CompilerError\CompilerError.mxml
 
 Loading configuration file C:\Program Files\Adobe\Flex Builder 2 
 Beta 1\Flex Framework 2\frameworks\flex-config.xml, root element 
 flex-config
 Initial setup: 343ms
 Loaded 6 SWCs: 594ms
 License Service: Flex 2.0 Developer Edition enabled (beta period 
 ends May 1, 2006)
 Compiling...
 Error: null
 
 java.lang.AssertionError
 at flex2.compiler.mxml.lang.StandardDefs.isIUIComponent
 (StandardDefs.java:267)
 at 
 flex2.compiler.mxml.builder.ComponentBuilder.constructComponent
 (ComponentBuilder.java:78)
 at flex2.compiler.mxml.builder.ApplicationBuilder.analyze
 (ApplicationBuilder.java:102)
 at flex2.compiler.mxml.dom.Node.analyze(Node.java:36)
 at flex2.compiler.mxml.ImplementationCompiler.parse
 (ImplementationCompiler.java:130)
 at flex2.compiler.mxml.Compiler.parse(Compiler.java:73)
 at flex2.compiler.API.parse(API.java:1104)
 at flex2.compiler.API.parse(API.java:1072)
 at flex2.compiler.API.batchInner(API.java:156)
 at flex2.compiler.API.batch(API.java:260)
 at flex2.compiler.API.compile(API.java:361)
 at flex2.compiler.API.compile(API.java:289)
 at flex2.tools.Compiler.main(Compiler.java:167)
 Total time: 3062ms
 Peak memory usage: 49 MB (Heap: 31, Non-Heap: 18)
 
 Am I doing something obviously wrong here? Does anyone have any 
 suggestions as to how I can track down an eliminate the internal 
 compiler error?
 
 Thanks.
 Tobias
 
 
 
 
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links
 
 
 
  
 
 
 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





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 version. Because you're 
importing flash.display.* in a MXML document (which is using the MXML namespace, 
which makes everything in mx.* available), and there's a flash.display.Loader, 
it doesn't know which one you want.

-rg




From: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Richard SchuttenSent: Wednesday, March 08, 2006 1:36 
AMTo: [EMAIL PROTECTED] ComSubject: [flexcoders] 
Error can not resolve a multiname reference 
unambiguously...

  
  Hi there,I still get the following error:
  Can not resolve a multiname reference 
  unambiguously. flash.display:Loader(fromframework.swc(mx/controls/loader)) 
  are available.
  Please take a look at my code:?xml version="1.0" 
  encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*" 
  layout="absolute" 
  mx:Script 
   
  ![CDATA[ 
   
   import 
  mx.controls.ProgressBar; 
   
   import 
  mx.controls.Alert; 
   
   import 
  mx.controls.Image; 
   
   
   
   import 
  flash.events.*; 
   
   import 
  flash.display.*; 
   
   
   
   private function 
  loadImage(url:String) : void {  
   
   
   
   
   
   
   
   var myloader:Loader = new 
  Loader(); 
   
   
   
  addEventListeners(myloader); 
   
   
   
   
   
   var myprogress:ProgressBar = new 
  ProgressBar(); 
   
   
   myprogress.name = 
  'myprogress'; 
   
   
   myprogress.source = 
  myloader; 
   
   
   
  myvbox.addChild(myprogress); 
   
   
   
   
   
   var myurlrequest:URLRequest = new 
  URLRequest(url); 
   
   
   
  myloader.load(myurlrequest); 
   
   
  } 
   
   
   
   private function 
  addEventListeners(ldr:Loader) : void 
  { 
   
   
   
  ldr.addEventListener(Event.COMPLETE, handleComplete); 
   
   
   
   
   
   
  ldr.addEventListener(IOErrorEvent.IO_ERROR, 
  handleIOError); 
   
   
   
  ldr.addEventListener(HTTPStatusEvent.HTTP_STATUS, 
  handleHTTPStatus); 
   
   
  } 
   
   
   
   private function 
  handleComplete(event:Event) : void 
  { 
   
   
   
   
   
   var myimage:Image = new 
  Image(); 
   
   
   myimage.width = 
  640; 
   
   
   myimage.height = 
  480; 
   
   
   var ldr2:flash.display.Loader = 
  flash.display.Loader(event.target); 
   
   
   
  myimage.load(ldr2.content); 
   
   
   
   
   
   
  myvbox.addChild(myimage); 
   
   
   
   
   
   //hide progressbar when image is 
  loaded 
   
   
   
  myvbox.getChildByName('myprogress').visible = 
  false; 
   
   
  } 
   
   
   
   private function 
  handleIOError(event:IOErrorEvent) : void 
  { 
   
   
   Alert.show('file not found', 'IO 
  error'); 
   
   
  } 
   
   
   
   
   
   
   
   
   private function 
  handleHTTPStatus(event:HTTPStatusEvent) : void 
  { 
   
   
   if (event.status != 200)//200 = 
  HTTP STATUS OK  
   
   
   
   
   
   Alert.show('HTTP error: ' + 
  event.status, 'HTTP error'); 
   
   
  } 
   
   
   
   
   
  ]] 
  /mx:Script 
  mx:Model id="persons" 
   
  result 
   
   
  item 
   
   
   
  id10/id 
   
   
   
  nameRichard/name 
   
   
   
   
   
  /item 
   
   
  item 
   
   
   
  id20/id 
   
   
   
  nameBas/name 
   
   
   
   
   
  /item 
   
   
  item 
   
   
   
  id30/id 
   
   
   
  nameDimitry/name 
   
   
   
   
   /item 
   
   
   
   
   
   
  /result 
  /mx:Model 
  mx:VBox id="myvbox" 
   mx:Button label="load" 
  click="loadImage('http://...')"/ 
   mx:ComboBox id="combo" 
  labelField="name" dataProvider="{persons.result.item}"/ 
  /mx:VBox/mx:Application 
  This results in an error:
  mx:ComboBox id="combo" labelField="name" 
  dataProvider="{persons.result.item}"/
  This too:
  mx:ComboBox id="combo" 
  labelField="name" dataProvider="{}"/
  And this is no problem:
  mx:ComboBox id="combo" 
  labelField="name" dataProvider=""/
  Why? It doesn't make sense to me!
  Richard
  





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Re: Dynamic Image Loading

2006-03-07 Thread Roger Gonzalez
Not so, jpeg is definitely supported.

Progressive jpegs are not supported in 1.5, though.  You might just need
to reencode.

-rg 

 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of wujunjr
 Sent: Tuesday, March 07, 2006 2:20 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Dynamic Image Loading
 
 what kind of picture format r u using?
 only png can be loaded at runtime.
 jpg is definitely not supported.
 
 --- In flexcoders@yahoogroups.com, shahnavaz Alware [EMAIL PROTECTED] 
 wrote:
 
  Hi,
  
   
  
  I changed my mxml file to have mx:Image  mx:Loader but still I 
 am not
  able to see any Image. 
  
   
  
  * mxml */
  
  ?xml version=1.0 encoding=utf-8?
  
 mx:TitleWindow xmlns:mx=http://www.macromedia.com/2003/mxml;
  
  closeButton=true   width=600  height=600 
  
 modalTransparency=20 click=this.deletePopUp(); 
  
  
   
  
  mx:Script
  
  ![CDATA[
  
  public var attachmentImageLocation:String;
  
  public var attacmentImageTitle:String;
  
   
  
  ]]
  
   
  
  /mx:Script
  
   
  
  mx:VBox id=imageBox height=100% width=100%
  hScrollPolicy=on vScrollPolicy=on
  
  mx:Image id=imageSource
  source=../../../../../images/{attachmentImageLocation}/mx:Image
  
  mx:Loader id=imageLoader
  source=../../../../../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@yahoogroups.com
  Subject: RE: [flexcoders] Dynamic Image Loading
  
   
  
  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 Alware
  Sent: Monday, March 06, 2006 1:56 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Dynamic Image Loading
  
  Hi 
  
   
  
  I have to create an image in a TitleWindow when User clicks on one 
 of the
  button.
  
  * mxml */
  
  ?xml version=1.0 encoding=utf-8?
  
 mx:TitleWindow xmlns:mx=http://www.macromedia.com/2003/mxml;
  
  closeButton=true
  
  width=600  
  
  height=600 
  
  xmlns:attachment=com.hmssoftware.sfm.view.attachment.*
  
  modalTransparency=20 click=this.deletePopUp();
  creationComplete=createImage();   
  
   
  
  public var attachmentImageLocation:String;
  
  public var attacmentImageTitle:String;
  
  public var initObject:Object;
  
  
  
  
   
  [Embed(icon=../../../../../images/+attachmentImageLocation)]
  
  
  
  var _imgAttachment;
  
   
  
  
  public function createImage
 ():Void
  
  {
  
  initObject = new 
 Object();
  
  initObject.source =
  _imgAttachment;
  
  Image
 (imageBox.createChild(
  Image, undefined, initObject));   
  
  
  
  }
  
   
  
  mx:VBox id=imageBox height=100% width=100%
  hScrollPolicy=on vScrollPolicy=on
  
  /mx:VBox  
  
  /mx:TitleWindow
  
   
  
  I get the following error result Failed to find resource:
  ../../../../../images/  
  
   
  
  Can show me how to load images dynamically? My 
 attachmentImageLocation is
  the full name of the image file without path e.g. Op120.jpg.
  
   
  
  Thanks,
  
   
  
  Shahn
  
   
  
  Shahnavaz Alware | Software Engineer | Visiprise | office: +1 760-
 929-2300
  ext 140 | cell: +1 858-366-3440 |  http://www.visiprise.com/
  www.visiprise.com
  
   
  
  It is our company policy not to accept email of any data controlled 
 by the
  International Traffic in Arms Regulations (ITAR). Please contact our
  Security Officer, Matt Reeves, for instructions and authorization to
  transmit such data.
  
   
  
  
  
  --
  Flexcoders Mailing List
  FAQ: 
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives: http://www.mail-archive.com/flexcoders%
 40yahoogroups.com 
  
  
  
  
  SPONSORED LINKS 
  
  
  Web
  http://groups.yahoo.com/gads?
 t=msk=Web+site+design+developmentw1=Web+site
  
 +design+developmentw2=Computer+software+developmentw3=Software

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 digital_eyezed
 Sent: Tuesday, March 07, 2006 4:41 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Why Java 1.4?
 
 Why wont flex 1.5 work with anything other than 1.4 JDK?
 
 It doesn't even work with the latest Tomcat, why would anyone 
 constrain an application to a version of JRE, JDK or tomcat version?
 
 This is useless if the rest of the environment want to move on to 
 pastures new and Flex is left behind dragging everyone back.
 
 I guess this is going to be the same problem with Flex 2, as soon as 
 it's released it's stuck in a timewarp of 'old java'.
 
 It doesn't work with the latest JBOSS either or for that matter the 
 last 14 versions, that's how sanboxed a technology it is.
 
 Maybe they should have spent time thinking about how to suppport it 
 rather than how to price it, it only makes life difficult for us in 
 a lose lose situation.
 
 Please remember that Flex 2 is still in beta and they should be 
 supporting their existing release, without trying to hype everyone 
 up about what the future brings..
 
 Iain
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links
 
 
 
  
 
 
 
 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





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: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Dynamic Image 
  Loading
  
  
  Hi 
  
  I have to create an image in a 
  TitleWindow when User clicks on one of the 
button.
  * 
  mxml */
  ?xml version="1.0" 
  encoding="utf-8"?
   mx:TitleWindow 
  xmlns:mx="http://www.macromedia.com/2003/mxml"
   
  closeButton="true"
   
  width="600" 
  
   
   
  height="600" 
  
   
  xmlns:attachment="com.hmssoftware.sfm.view.attachment.*"
   
  modalTransparency="20" click="this.deletePopUp();" 
  creationComplete="createImage();"  
   
  
  
  public var 
  attachmentImageLocation:String;
  public var 
  attacmentImageTitle:String;
   
  public var 
  initObject:Object; 
  
   
  
   
  [Embed(icon="../../../../../images/"+attachmentImageLocation)]
   
  
   
  var _imgAttachment;
   
  
   
  public function createImage():Void
   
  {
   
  initObject = new Object();
   
  initObject.source = _imgAttachment;
   
  Image(imageBox.createChild( Image, undefined, 
  initObject)); 
  
   
  
   
  }
  
   
  mx:VBox id="imageBox" height="100%" width="100%" hScrollPolicy="on" 
  vScrollPolicy="on"
   
  /mx:VBox 
  /mx:TitleWindow
  
  I get the following error result Failed to find 
  resource: ../../../../../images/ 
  
  Can show me how to load images dynamically? My 
  attachmentImageLocation is the full name of the image file without path e.g. 
  Op120.jpg.
  
  Thanks,
  
  Shahn
  
  ShahnavazAlware 
  |Software 
  Engineer| Visiprise 
  | office: +1 760-929-2300 ext 
  140| cell: +1 858-366-3440 | www.visiprise.com
  
  It is our company 
  policy not to accept email of any data controlled by the International Traffic 
  in Arms Regulations (ITAR). Please contact our Security Officer,Matt 
  Reeves, for instructions and authorization to transmit such 
  data.
  





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Reading or Embedding SWFs?

2006-03-03 Thread Roger Gonzalez





Oh, its a Flex Builder problem. Sheesh, why didn't 
you say so? That's what you get for being coddled! What, you have 
someone snuggle you up in a binky and give you some warm milk while you're 
coding, too? Be a hairy-chested manly programmer and suffer the raw rage 
of pure unfiltered mxmlc! 

ok, so I love using Flex Builder too, its like the IDE is 
giving me a big hug. but don't tell.

-rg

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of 
  JesterXLSent: Friday, March 03, 2006 7:55 AMTo: 
  flexcoders@yahoogroups.comSubject: Re: [flexcoders] Reading or 
  Embedding SWFs?
  
  Because it works consistently with the embedding 
  of the path. Once Flex Builder fails to transcode, it refuses to budge 
  on "re-checking" the embed path.
  
  I'll try to send you a re-producible test case by 
  Monday.
  
  - Original Message - 
  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 recommend embedding to the class 
  rather than a variable, though. All that embedding to a variable does is 
  generate a class for you and tweak your variable to point to the 
  class.
  
  -rg
  
  


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of 
JesterXLSent: Thursday, March 02, 2006 7:01 PMTo: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Reading or 
Embedding SWFs?

It doesn't import your frame labels either, but 
it DOES work. Word of advice; embed your movieclip asset to a class 
rather than a variable.


[Embed(source="your.swf")]
public class YouClass extends 
MovieClip

vs. 

[Embed(source="your.swf#SymbolName")]
public var MySymbol:Class;

- Original Message - 
From: Roger Gonzalez 

To: flexcoders@yahoogroups.com 

Sent: Thursday, March 02, 2006 9:35 PM
Subject: RE: [flexcoders] Reading or Embedding SWFs?

Not so.

Flex does support embedding older SWFs. The only 
restriction is that because we can't mix-n-match bytecode formats, we strip 
out AS2 code. This is not likely to change.

(In fact, Flex will not support embedding 8.5 and newer 
SWFs, because all assets are now classes, and we need to link classes, not 
embed them. You will have to either dynamically load 8.5 SWFs, or else 
build SWCs instead, and just link to them. No need to 
embed.)

Embedded SWFs have nothing to do with trust files, so 
I'm not sure if everybody is talking about the same thing 
here.

-rg

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Bruce 
  EckelSent: Thursday, March 02, 2006 2:38 PMTo: 
  flexcoders@yahoogroups.comSubject: Re: [flexcoders] Reading or 
  Embedding SWFs?
  It turns out that Flex2 will not embed SWF files that are pre 
  8.5 (or maybe pre 8). This is apparently a bug that will be fixed in a 
  later beta (possibly the next one).
  On 2/28/06, Abdul 
  Qabiz [EMAIL PROTECTED] 
  wrote: 
  
Cool! I had heard of the trust files but 
never tried using it.Thanks Harish for info 
:)-abdul

On 2/28/06, Harish Sivaramakrishnan  
[EMAIL PROTECTED] wrote: 
Hi 
  Bruce,For getting rid of the Security Sandbox violation 
  error that you are getting, you will have toexplicitly trust 
  the swfs / images that you areloading. One way of doing this is 
  the method thatabdul has suggested in his 
  mailalternatively, You could also do this: Trust an 
  SWF explicitly by adding it to the TrustList. This could be done 
  by adding a cfg file in thefollowing 
  location:C:\Windows\system32\Macromed\Flash\FlashPlayerTrust\TrustedStuff.cfgJust 
  enter the folder which you want to always trust. For example if 
  one wants to trust C:\Flex, just addthat in the cfg file. You 
  could comment out things byadding a #.The following links 
  have some useful info too:http://livedocs.macromedia.com/flash/8/main/1604.htmlhttp://flashplatform/dev/projects/maelstrom/specs/localfilesecurity/LocalFileSecurity.cfm 
  http://www.macromedia.com/devnet/flashplayer/articles/flash_player_8_security.pdf 
  Hope this helps,Thanks 
  HarishFlex-QAAdobe India.--- Abdul Qabiz 
  [EMAIL PROTECTED] wrote: Hi 
  Bruce, Loading local SWF might not be working because 
  of  Security Sandbox. Try giving the permission to 
  your main to load SWFs from context-menu of Flash 
  Player. Context-menu  Settings 

  1   2   3   >