[flexcoders] Syntax question

2007-09-22 Thread candysmate
The conpiler complains with a syntax error 'expecting rightparen
before 1.'

for my line:

var selectedGrowerAddress1:String =
event.currentTarget.growerSearchGrid.selectedItem.ADDRESS_LINE#1;

my client's database field name has a # in it which I have to accept.
But, as this is used extensively throughout the code, it is annoying
to have endless (extra :) )errors to trawl through during debugging.
Is there any way around this?



[flexcoders] Re: Open SWF from another SWF.

2007-09-22 Thread helix206
Ok, i have tryed this with fscommand(exec, test.exe); and it works, 
all SWF files must be projectors.

Now i have 2 problems, the projector test.exe witch is an application 
runs fine when run directly, but when i execute it from my first 
projector (runner.exe) the second test.exe wont read any XML files with 
HTTPRequest method, i get an error that it cant find the file. 

I examined the path to the XML file and it changes if called from 
another projector from :

URL: file:///G|/Directory/fscommand/myXML.xml]. 

to :

URL:file:3F/G|/Directory/fscommand/myXML.xml]. 

Any way to fix that?

And another Q, when creating projectors, now i can create them with 
file-Create Projector. Is there a way to create them from command line 
because all my apps are in full screen and i have blocked the ESC 
button. Btw, if anyone is interested i blocked ESC button with : 
fscommand(trapallkeys,True);.

I hope someone can help.

thx.

--- In flexcoders@yahoogroups.com, helix206 [EMAIL PROTECTED] wrote:

 I have a problem.  I have several local SWF files built for a 
 client,all run in full screen, and all are seperate applications. Now 
 the client wants one unique window for running all thiose apps. 
 
 Is it even possible to call and open SWF application from another SWF 
 application. 
 
 thx.





Re: [flexcoders] propiedad headerText de DataGridColumn cargar en tiempo de ejec ución.

2007-09-22 Thread [EMAIL PROTECTED]

Gracias nuevamente.

Todo funcionó OK

Muchas Gracias por todo.

Pablo Dario Ingelhorn
Ingelhorn Sistemas


Alex Harui escribió:


dg.columns[i].headerText = new header text;

 




*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
*On Behalf Of [EMAIL PROTECTED]

*Sent:* Thursday, September 20, 2007 4:31 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] propiedad headerText de DataGridColumn cargar 
en tiempo de ejecución.


 



Necesito cargar en tiempo de ejecución la propiedad headerText
(encabezado de las columnas mx:DataGridColumn headerText=.).

Es posible esto ?

Los datos los cargo con mx:HTTPService...y los vuelco en un
mx:XMLListCollection , para luego ser asignado al mx:DataGrid
dataProvider.

El usuario realiza consultas entre una Fecha Desde y una Fecha Hasta
(Período de días), los cuales deberan completar los encabezados de las
columnas.

Muchas Gracias por todo.

Dios los bendiga.

Pablo Dario Ingelhorn
Ingelhorn Sistemas

 




Re: [flexcoders] DataGrid (dejar fijo 1er.columna y 1er.fila a pesar de scroll)

2007-09-22 Thread [EMAIL PROTECTED]

Mil gracias Alex 
Hace justo lo que necesitaba.


Muchas Gracias por todo nuevamente.

Dios te bendiga.

Pablo Dario Ingelhorn
Ingelhorn Sistemas

Alex Harui escribió:


lockedRowCount, lockedColumnCount?

 




*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
*On Behalf Of [EMAIL PROTECTED]

*Sent:* Thursday, September 20, 2007 4:19 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] DataGrid (dejar fijo 1er.columna y 1er.fila a 
pesar de scroll)


 


Estimados Listeros:

Desearía saber si es posible en un mx:DataGrid dejar fijo no solo la
primera fila (cabeceras de las columnas), sino que ante un scroll
horizontal, dejar fijo tambien la primera columna.
En definitiva quiero dejar fijo la primera columna y la primer fila
(esto ultimo ya lo obtuve pues viene ese comportamiento por defecto ) .
Esto es muy util dado que siempre deben estar visibles en el DataGrid la
primer fila y la primer columna, por mas que se produzca scroll vertical
y/o horizontal. (Comportamiento similar a una Planilla de calculo)

Muchas Gracias por todo.

Dios los bendiga.

Pablo Dario Ingelhorn
Ingelhorn Sistemas

 




Re: [flexcoders] Re: How to converst an XML to AS Object ?

2007-09-22 Thread Roger Braunstein
Hi there,
Tony Alves tipped me off that there was a thread about this when I posted my
article on instant binding to XML models. Feel free to use the code I
present in my approach here:
http://www.partlyhuman.com/blog/roger/instant-model-binding-with-reflection

Cheers!
Roger Braunstein


[flexcoders] Flex2/AS3 Shopping Cart API

2007-09-22 Thread illiasdissi
 I'm looking to create mini E-comm sites preferably done in Flex2/AS3,
so as to implement the kind of interface seen in Adobe's sample store
application
(http://examples.adobe.com/flex2/inproduct/sdk/flexstore/flexstore.html).I'm


I'd also like to make use of PHP on the backend, as that's how our
servers are setup, I wonder if this would mean use of AMFPHP.

I guess a really good yet simple php based shopping cart with a large
community around it would be a perfect starting point, then it would
be a matter of developing the Flex based frontend, and then creating
the Methods for the PHP Cart and Flex Interface to communicate.

Of course I could seriously be underestimating this, though if
solutions already exist at a reasonable price, I'd love to know about
them.

Below are some of the experiences I've had so far:

I started by exploring Drupal/Ubercart/AMFPHP as a backend but the
functionality out of the box is quite basic, I was able to load data
from the Drupal/UberCart Catalog and display as I wanted in a simple
Flex interface, but as far creating an order and having it processed
by the backend, those methods didn't exist, and I dont know enough PHP
to create them. 

I've heard of both 'Allurent Buy' from
http://www.allurent.com/page.php?id=46 
and 'DotShop Admin/MySQL' from http://www.dotography.com/product.php

The first is far too expensive for my purposes, and the second doesn't
have the interface features I'd like, and seems like closed source
option so there probably wouldnt be a chance to modify.



[flexcoders] Custom Components Data

2007-09-22 Thread Andrew
Hello, i am new to flex and im just starting to get the hang of it.
Currently i am working on a project that requires a custom component.
The problem i am having is how to get data to that component. I am
trying to read tutorials but i must be missing something. Currently it
my main movie that has a data grid that is updated by a xml file. Now
when a user click on a name the into will be displayed to the right of
it in the custom component, i just dont know how to get the data from
the grid to the custom component. Any help would be great.


Thanks...

-Andrew




[flexcoders] Re: Buttons in Flex !

2007-09-22 Thread restlessdesign
Hmmm...not as easy as expected. Anyone have any ideas (MXML or
Actionscript)?

mx:Button id=myButton x=10 y=10 label=Squirrels!
styleName=customBtn
mx:transitions
mx:Transition fromState=* toState=*
mx:Fade alphaFrom=0 alphaTo=100 duration=2 /
/mx:Transition
/mx:transitions
/mx:Button

Stylesheet:
.customBtn {
upSkin: Embed(source='../assets/defaultButton_up.png',
scaleGridTop='6', scaleGridBottom='10', scaleGridLeft='40',
scaleGridRight='80');
overSkin: Embed(source='../assets/defaultButton_over.png',
scaleGridTop='6', scaleGridBottom='10', scaleGridLeft='40',
scaleGridRight='80');
downSkin: Embed(source='../assets/defaultButton_down.png',
scaleGridTop='6', scaleGridBottom='10', scaleGridLeft='40',
scaleGridRight='80');
}

Thanks!

--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 In theory you can do this in Moxie, but in 2.x, all you are seeing is an
 inherited prop that Button does not use.
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of restlessdesign
 Sent: Monday, September 17, 2007 11:10 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Buttons in Flex !
 
  
 
 I too have this issue and did some quick research. Would it be
 possible to use the transitions property of the Button class and pass
 in effects that way using its pre-defined states (upState, overState,
 downState, etc.)?





RE: [flexcoders] Are you going to MAX?

2007-09-22 Thread Dimitrios Gianninas
I will be there!
 
Dimitrios Gianninas
Development Team Lead / Moderator
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
ben.clinkinbeard
Sent: Friday, September 21, 2007 9:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Are you going to MAX?



Just curious how many people from the list will be in Chicago.

Ben



 

-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.



RE: [flexcoders] FDS Compiler Error Eclipse 3.3

2007-09-22 Thread Dimitrios Gianninas
Which FB plugin version you got? the 2.0? it only works with Eclipse 3.2... you 
have to have FB 3.0 for it to work Eclipse 3.3 and even then this is on XP, 
doesnt work on Vista.
 
Dimitrios Gianninas
Development Team Lead
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Lepine, 
Ron
Sent: Friday, September 21, 2007 11:52 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] FDS Compiler Error Eclipse 3.3



Just installed Eclipse 3.3  and Flexbuilder plugin. Flex works find but when I 
try an fds project I get an Unknown Error when compiling the mxml file.  Also 
tried it with granite data services, same error. The -services in the compile 
option seems to be the problem.  Anyone else experiencing this problem? Is it 
not suppose to work under eclipse 3.3? Do I need to stick with eclipse 3.2.

Any help/suggestions will be appreciated,

Ron

 

-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.



RE: [flexcoders] firefox and FileReference.upload over SSL - error 2038

2007-09-22 Thread Dimitrios Gianninas
I have it working in FF... one issue with FF of course is that when you do a 
file upload it creates a brand new session on the server-side and there is 
nothing you can do to work around that. It is something that Adobe knows about 
but requires and extensive change in the Flash player to get it to work 
properly.
 
You shouldn't need to set any special headers. I use Java as my backend, so I 
have a servlet waiting to receive the files and I just use the FileReference 
class in Flex to do the upload.
 
Dimitrios Gianninas
Development Team Lead
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
wizardry_wiz
Sent: Friday, September 21, 2007 2:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] firefox and FileReference.upload over SSL - error 2038



If you have file upload working on firefox over SSL, please let me
know it is possible.
If nobody replies, I'm going to assume flex cannot do it, and call
javascript to pop up a window and upload files that way.

I cannot seem to log the connect attempt in any way on my server, but
examining my packets via ethereal I see its trying something.
I have it completely working in IE, after getting around the SSL
problem and sending the right stuff (as I mentioned to its_llpj):
header(Cache-Control: );
header(Pragma: );
session_cache_limiter('public'); 

Is it possible I have to do something similar in order to get firefox
to upload files? The problem is showing similar symptoms.

Please help,

Seth



 

-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.



RE: [flexcoders] Re: Sending custom clases (value objects) to remote services

2007-09-22 Thread Dimitrios Gianninas
it is free is you use the Express edition which runs on only one CPU. If you 
need more CPUs then yes you have to pay.
 
Dimitrios Gianninas
Development Team Lead
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Muzak
Sent: Friday, September 21, 2007 5:17 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Sending custom clases (value objects) to remote 
services




 RemoteObject comes with FDS (Flex Data Services) which is not free.

Remoting comes in different flavors: PHP, ColdFusion, Java, .NET.
And FDS is now LCDS (LiveCycle DataServices)

regards,
Muzak

- Original Message - 
From: Sandeep Malik [EMAIL PROTECTED] mailto:sandeep.malik%40gmail.com 
To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
Sent: Friday, September 21, 2007 3:53 PM
Subject: [flexcoders] Re: Sending custom clases (value objects) to remote 
services

Unfortunately not one that I know of. Generally to get a typed object
on the server side, you will need a Flash Remoting Server sort of
stuff (basically something that can deserialize that format in which
the data was sent. So, if services like Amazon, Google don't have that
running, it wouldn't be possible. The 'free' flex framework does not
provide any such services and hence the requests/responses of
HTTPService, WebService etc are all Strings (or XMLs). The
RemoteObject comes with FDS (Flex Data Services) which is not free.

Regards,
Sandeep



 

-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.



[flexcoders] Setting the crossdomain.xml file for WebService in a diffferent path than root

2007-09-22 Thread Claude Hussenet

I would like to be able to deploy the crossdomain file
in the same domain name as the webservice but NOT in the root
domain.

Possible solution would be able to set the path of the crossdomain file  
before the initialization of the webservice on the client side.

I tried the following method without any success :
flash.system.Security.loadPolicyFile(http://samedomainasmyws:sameportasmyws/onefolder/onsubfolder/crossdomain.xml;);
 

Do I miss something ?

Thx for your help.

Claude Hussenet




Re: [flexcoders] Eeeeek! Development grinds to a halt due to stupid syntax problem

2007-09-22 Thread Paul Andrews
Why do you have to use the database field names inside the flex application?

- Original Message - 
From: candysmate [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, September 22, 2007 3:58 PM
Subject: [flexcoders] Ek! Development grinds to a halt due to stupid 
syntax problem


 My client's database contains hash symbols as part of the field name(s).
 So a line like:


 var selectedGrowerAddress2:String =
 StringUtil.trim(String(event.currentTarget.growerSearchGrid.selectedItem.ADDRESS_LINE#2));

 throws a compiler syntax error: expecting a semicolon before the 2.

 How can I get around this please?

 No, renaming the client's daatabase fields is NOT an option. Their
 main app uses this. My bespoke Flex app runs parallel to it.



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



 



Re: [flexcoders] Eeeeek! Development grinds to a halt due to stupid syntax problem

2007-09-22 Thread Stephen Allison
Are you able to use the square brackets syntax for accessing  
properties ?
This should work if your data objects are type object or are dynamic (?)

var selectedGrowerAddress2:String =
StringUtil.trim(String 
(event.currentTarget.growerSearchGrid.selectedItem[ADDRESS_LINE#2]));


 My client's database contains hash symbols as part of the field name 
 (s).
 So a line like:

 var selectedGrowerAddress2:String =
 StringUtil.trim(String 
 (event.currentTarget.growerSearchGrid.selectedItem.ADDRESS_LINE#2));

 throws a compiler syntax error: expecting a semicolon before the 2.

 How can I get around this please?

 No, renaming the client's daatabase fields is NOT an option. Their
 main app uses this. My bespoke Flex app runs parallel to it.



[flexcoders] Max Conference

2007-09-22 Thread Ed Capistrano
Seems like tokyo game show to me yipee! Btw could you just go in there w/o any 
fees

Edtrade;

Send instant messages to your online friends http://uk.messenger.yahoo.com 


Re: [flexcoders] Is it possible to anti-alias fonts without embedding?

2007-09-22 Thread Jon Bradley


On Sep 22, 2007, at 1:23 AM, Alex Harui wrote:

Device fonts are anti-aliased except when cached as bitmaps.  They  
should be anti-aliased even when cached as bitmaps in the upcoming  
Player 9,0,60 and later.


Now all you guys need to do is support rotation on non-embedded fonts.

That would so make my day - using the bitmap conversion hack is  
tricky (especially for user-controlled rotation and scale of a field).


Was there a nice elegant solution you guys developed for the Premier  
Express Flex application? I know now that chart labels do this, but  
I'm still having issues drawing the fields when they are first loaded  
up into an application - prior to them actually being rendered on the  
screen through normal interaction.


Maybe I'm missing an event or something that would solve that issue...

- jon





[flexcoders] IE 7 not showing my flex app

2007-09-22 Thread Guillermo Villasana Cardoza
Hello, I have a problem with ie 7 and flex, IE7 keeps telling me that 
flash is not installed, I was told that I had to specify size of my app. 
But the problem is that even though I specify size, it still shows me 
that flash is not installed. How can I solve this?
Thanks


[flexcoders] Re: Eeeeek! Development grinds to a halt due to stupid syntax problem

2007-09-22 Thread candysmate
--- In flexcoders@yahoogroups.com, Paul Andrews [EMAIL PROTECTED] wrote:

 Why do you have to use the database field names inside the flex
application?
 

What alternative approach would you suggest Paul?  I use them to help
me keep track of everything, as I'm using both a MS SQL database and
an ODBC linked database to a proprietry format. I'm open to
alternative method suggestions.



Re: [flexcoders] Syntax question

2007-09-22 Thread Daniel Freiman
 try

event.currentTarget.growerSearchGrid.selectedItem[ADDRESS_LINE#1];

- Dan Freiman

On 9/22/07, candysmate [EMAIL PROTECTED] wrote:

   The conpiler complains with a syntax error 'expecting rightparen
 before 1.'

 for my line:

 var selectedGrowerAddress1:String =
 event.currentTarget.growerSearchGrid.selectedItem.ADDRESS_LINE#1;

 my client's database field name has a # in it which I have to accept.
 But, as this is used extensively throughout the code, it is annoying
 to have endless (extra :) )errors to trawl through during debugging.
 Is there any way around this?

  



[flexcoders] JPGEncoder with progress support?

2007-09-22 Thread Jon Bradley
Has anyone attempted to modify the corelib JPGEncoder to support  
progress. Rather than letting it bang away for a seemingly long time,  
I'd like to provide feedback for JPG (and PNG) compression if possible.

many thanks for any pointers...

- jon


[flexcoders] Re: IE 7 not showing my flex app

2007-09-22 Thread mitek17
Hi Guillermo,

I had same problem recently. The fix is to reinstall Flash Player.
1 step - download the uninstaller as a standard Windows Remove program
will not fix the problem. 
http://fpdownload.macromedia.com/get/flashplayer/current/uninstall_flash_player.exe

2 step - install it FP again, debug or release version.

Cheers,
Dmitri. 



--- In flexcoders@yahoogroups.com, Guillermo Villasana Cardoza
[EMAIL PROTECTED] wrote:

 Hello, I have a problem with ie 7 and flex, IE7 keeps telling me that 
 flash is not installed, I was told that I had to specify size of my
app. 
 But the problem is that even though I specify size, it still shows me 
 that flash is not installed. How can I solve this?
 Thanks





[flexcoders] Re: ItemRenderer : listData and dataChange event

2007-09-22 Thread benoit.kogut
Thanks, so it is a case of performance trade-off.

Alas, I may not get sleep so easily, by now I'm trying to figure out
the drag n drop mechanics within a Tree (calculateDropIndex, ah!)

Thanks for the reply

--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 Every once in a while, we cheat to get some performance.  It makes for
 inconsistencies and annoys people or trips them up.  If there was a way
 in the language to enforce the order these properties get set I would've
 used it, then you wouldn't get burned as easily.  However, we covered
 the rules for it in documentation since that's as good as we could do.
 
  
 
 Performance outweighed consistency and extensibility in the framework
 thus far.
 
  
 
 So,  your example won't work as expected, but that's because you're not
 using the component in the documented and supported way.
 
  
 
 Hope you don't lose too much sleep.
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of benoit.kogut
 Sent: Friday, September 21, 2007 3:32 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: ItemRenderer : listData and dataChange event
 
  
 
 I understood that, but I expected a bit more information.
 
 The listData property does not comply to its description, since it
 relies on another somewhat unrelated property (i'm streching a bit the
 matter, please don't flame), that could be seen as a severe
 inconsistency.
 
 An amazingly stupid example, since data and listData are not meant to
 be used that way At ALL :
 
 private function mungoClick():void
 {
 mungo.data = {a: null}
 mungo.listData = new BaseListData('energise !', '', null)
 // mungo.data = {a: null}
 }
 
 (...)
 
 mx:TextInput text={mungo.listData.label} /
 mx:Button id=mungo click=mungoClick() /
 
 Should that work ? the code seems correct, but the data binding
 doesn't work (unless the data property is set afterward).
 
 Does it matter ? maybe, at least enough to keep make awake late at
 night ;-)
 
 thanks ^_^
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Alex Harui aharui@ wrote:
 
  The setter does not have to call dispatchevent in this case because by
  convention, the list classes set listData then set data which will
 fire
  the dataChange. This is required since we have to set both in order
 for
  the two properties to remain synced up. So you don't want or need to
  dispatch the event in the listData setter.
  
  
  
  
  
  
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of agggka
  Sent: Friday, September 21, 2007 2:31 AM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] ItemRenderer : listData and dataChange event
  
  
  
  hello there,
  
  Using the advices found on Alex Harui's blog, I wrote a simple
  ItemRenderer. I stumble upon a weird (but documented) flex behavior,
  the 'listData' property is describted as [Bindable(dataChange)] but
  the property setter does not dispatch a dataChange event.
  
  I did check the IDropInListItemRenderer's documentation, I understand
  that it's the common way item renderers work, but it's bugging me.
  
  So there are my questions : 
  
  What would be the consequences if the dataChange event was dispatched
  by both 'data' and 'listData' properties setters ? Would it introduce
  unexpected behaviors ? or have a noticeable cost ?
  
  Why on hell the 'listData' property was made public if it imply that
  it can't comply to its description (does not dispatch the event) ?
  Could the item renderer mechanic change someday ?
  
  thanks ^_^
 





Re: [flexcoders] Re: Eeeeek! Development grinds to a halt due to stupid syntax problem

2007-09-22 Thread Paul Andrews
- Original Message - 
From: candysmate [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, September 22, 2007 6:12 PM
Subject: [flexcoders] Re: Ek! Development grinds to a halt due to stupid 
syntax problem


 --- In flexcoders@yahoogroups.com, Paul Andrews [EMAIL PROTECTED] wrote:

 Why do you have to use the database field names inside the flex
 application?


 What alternative approach would you suggest Paul?  I use them to help
 me keep track of everything, as I'm using both a MS SQL database and
 an ODBC linked database to a proprietry format. I'm open to
 alternative method suggestions.

I'd be looking to try and map the fieldnames to something more acceptable, 
perhaps switch that # for an underscore, or _h_.

I used to specialise in DB development and have yet to see a schema with 
field names with a hash in them (not that that's your fault - it's just your 
problem). Depending on the DB, it might be possible to define a 1:1 view 
that could map the field names.

Paul



Re: [flexcoders] JPGEncoder with progress support?

2007-09-22 Thread Doug McCune
This is doable, but requires a little more work than you probably think. To
do this you would modify JPEGEncoder, if you're using Moxie take a look at
the JPEGEncoder class around line 121. You'll see this double for loop:

for (var ypos:int = 0; ypos  height; ypos += 8)
{
for (var xpos:int = 0; xpos  width; xpos += 8)
{
RGB2YUV(source, xpos, ypos, width, height);
DCY = processDU(YDU, fdtbl_Y, DCY, YDC_HT, YAC_HT);
DCU = processDU(UDU, fdtbl_UV, DCU, UVDC_HT, UVAC_HT);
DCV = processDU(VDU, fdtbl_UV, DCV, UVDC_HT, UVAC_HT);
}
}

As far as I can tell that's where the bulk of the processing happens. What
you're going to want to do is add progress events dispatching in there. But
simply dispatching progress events isn't going to be enough. That would
effectively give you notifications for progress of encoding, but since flash
player is single threaded, your display won't ever have time to update while
those for loops are running.

So you'll need to split the processing up into smaller tasks and insert idle
times between them. You'll want to use the Timer class to make your code
wait for a given period (I've found that even just a few milliseconds is
enough for the display to update).

I would split up the algorithm to process one row at a time (so basically
that inner for loop gets turned into its own function). Then have the
function that processes a row start a timer once it's completed, and once
that timer completes, then run the function for the next row and so on until
you finish. That was you can dispatch a progress event for each row and the
display will have time to update.

Hope some of that makes sense.

Doug

On 9/22/07, Jon Bradley [EMAIL PROTECTED] wrote:

   Has anyone attempted to modify the corelib JPGEncoder to support
 progress. Rather than letting it bang away for a seemingly long time,
 I'd like to provide feedback for JPG (and PNG) compression if possible.

 many thanks for any pointers...

 - jon
  



RE: [flexcoders] pixel font [old] issue

2007-09-22 Thread Randy Martin
I've always had good results like this:
 
In your application.css file (or in a mx:Style block), add these kinds of
font statements:
 
@font-face {
  src: url(fonts/MyriadWebPro.ttf) ;
  fontFamily: Myriad;
  unicodeRange:
  U+0021-U+007E; /* Normal Chars */
}
 
@font-face {
  src: url(fonts/MyriadWebPro-Bold.ttf) ;
  fontFamily: Myriad;
  fontWeight: bold;
  unicodeRange:
  U+0021-U+007E; /* Normal Chars */
}
 
@font-face {
  src: url(fonts/MyriadWebPro-Italic.ttf) ;
  fontFamily: Myriad;
  fontStyle: italic;
  unicodeRange:
  U+0021-U+007E; /* Normal Chars */
}
 
@font-face {
  src: url(fonts/Myriad-BoldItalic.ttf) ;
  fontFamily: Myriad;
  fontWeight: bold;
  fontStyle: italic;
  unicodeRange:
  U+0021-U+007E; /* Normal Chars */
}
 
You can change the unicodeRange to include whichever characters you need in
your application (see HYPERLINK
http://www.w3.org/TR/1998/REC-CSS2-19980512/fonts.html#descdef-unicode-rang
ewww.w3.org/TR/1998/REC-CSS2-19980512/fonts.html#descdef-unicode-range).
Remember, if you don't need all the characters, then only include the one's
you actually need. This will make the swf file smaller.
 
Then, you can use these fonts in styles for different components. Like:
 
DateChooser {
  fontFamily: Myriad;   /* here's the font you declared in
the @font-face statements */
  fontSize: 12;
  fontWeight: normal;   /* this is now MyriadWebPro */
  headerColors: #84affe, #ff;
  fillColors: #0057fe, #ff, #209820, #ff;
  todayColor: #0057fe;
  rollOverColor: #84affe;
  selectionColor: #6cbb6c;
  borderColor: #66;
  backgroundColor: #ff;
  themeColor: #209820;
  dropShadowEnabled: true;
  shadowDirection: right;
  shadowDistance: 1;
  headerStyleName: mydateChooserHeaderStyle;
  weekDayStyleName: mydateChooserWeekDayStyle;
}
 
.mydateChooserHeaderStyle {
  fontWeight: bold;  /* this becomes MyriadWebPro-Bold */
  fontStyle: normal;
  textDecoration: none;
}
 
.mydateChooserWeekDayStyle {
  color: #0b333c;
}
 
You get the general idea. I use this all the time, and I've never had any
trouble with blurry fonts.
 
Hope this helps,
Randy



   _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ary
Sent: Friday, September 21, 2007 4:42 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] pixel font [old] issue



Hi Guys,

i already try everything that i could found on the
internet to make it work, attaching direct
truetypefont(-blurry), make an swf file first from
flash and embed it on css(always get font 'fontname'
with normal weight and regular style not found).

could anyone pointing me into some direction please?
:|
and if possible with working example, when user dont
have that certain bitmap font on their system

thanks in advance
ary

-_-_-_-_-_-_
Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel
and lay it on us. HYPERLINK
http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7http://surveyli
nk.-yahoo.com/-gmrs/yahoo_-panel_invite.-asp?a=7 



 


No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.488 / Virus Database: 269.13.28/1021 - Release Date: 9/21/2007
2:02 PM
 


[flexcoders] Re: IE 7 not showing my flex app

2007-09-22 Thread Mike Morearty
Another possibility is, are you running 64-bit Windows?  See this
earlier message on that topic:
http://www.cflex.net/flexcoders.cfm?Message=msg68141.html

- Mike Morearty, Adobe Flex Builder team


--- In flexcoders@yahoogroups.com, mitek17 [EMAIL PROTECTED] wrote:

 Hi Guillermo,
 
 I had same problem recently. The fix is to reinstall Flash Player.
 1 step - download the uninstaller as a standard Windows Remove program
 will not fix the problem. 

http://fpdownload.macromedia.com/get/flashplayer/current/uninstall_flash_player.exe
 
 2 step - install it FP again, debug or release version.
 
 Cheers,
 Dmitri. 
 
 
 
 --- In flexcoders@yahoogroups.com, Guillermo Villasana Cardoza
 terius@ wrote:
 
  Hello, I have a problem with ie 7 and flex, IE7 keeps telling me that 
  flash is not installed, I was told that I had to specify size of my
 app. 
  But the problem is that even though I specify size, it still shows me 
  that flash is not installed. How can I solve this?
  Thanks
 





Re: [flexcoders] JPGEncoder with progress support?

2007-09-22 Thread Jon Bradley

Sure does Doug! Thanks for the tips.

I'm actually re-writing the corelib version now to make it more  
efficient for larger images. Right now encoding a 2k image takes much  
longer than I'm happy with. :)


I was doing a bit more research and will be breaking it up into  
'chunks' with progress events, hopefully.


If I get a good result I'll post back the code to the corelib project.

peace,

jon


On Sep 22, 2007, at 1:38 PM, Doug McCune wrote:

This is doable, but requires a little more work than you probably  
think. To do this you would modify JPEGEncoder, if you're using  
Moxie take a look at the JPEGEncoder class around line 121. You'll  
see this double for loop:


for (var ypos:int = 0; ypos  height; ypos += 8)
{
for (var xpos:int = 0; xpos  width; xpos += 8)
{
RGB2YUV(source, xpos, ypos, width, height);
DCY = processDU(YDU, fdtbl_Y, DCY, YDC_HT, YAC_HT);
DCU = processDU(UDU, fdtbl_UV, DCU, UVDC_HT, UVAC_HT);
DCV = processDU(VDU, fdtbl_UV, DCV, UVDC_HT, UVAC_HT);
}
}

As far as I can tell that's where the bulk of the processing  
happens. What you're going to want to do is add progress events  
dispatching in there. But simply dispatching progress events isn't  
going to be enough. That would effectively give you notifications  
for progress of encoding, but since flash player is single  
threaded, your display won't ever have time to update while those  
for loops are running.


So you'll need to split the processing up into smaller tasks and  
insert idle times between them. You'll want to use the Timer class  
to make your code wait for a given period (I've found that even  
just a few milliseconds is enough for the display to update).


I would split up the algorithm to process one row at a time (so  
basically that inner for loop gets turned into its own function).  
Then have the function that processes a row start a timer once it's  
completed, and once that timer completes, then run the function for  
the next row and so on until you finish. That was you can dispatch  
a progress event for each row and the display will have time to  
update.


Hope some of that makes sense.

Doug




Re: [flexcoders] pixel font [old] issue

2007-09-22 Thread Jon Bradley
But I do not believe that solution helps with pixel fonts that need  
to be antialiased based on the grid. The only way that I know of to  
get it to work properly is by using Flash to export the font.


I'd love a cleaner method though...

- j

On Sep 22, 2007, at 1:47 PM, Randy Martin wrote:

You get the general idea. I use this all the time, and I've never  
had any trouble with blurry fonts.


Hope this helps,
Randy




RE: [flexcoders] Setting the crossdomain.xml file for WebService in a diffferent path than root

2007-09-22 Thread Alex Harui
a.b.com is not the same domain as d.b.com.

 

You should be able to use a file from a different folder in a.b.com.
Did you get it before calling send on the webservice?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Claude Hussenet
Sent: Saturday, September 22, 2007 7:34 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Setting the crossdomain.xml file for WebService in
a diffferent path than root

 


I would like to be able to deploy the crossdomain file
in the same domain name as the webservice but NOT in the root
domain.

Possible solution would be able to set the path of the crossdomain file 
before the initialization of the webservice on the client side.

I tried the following method without any success :
flash.system.Security.loadPolicyFile(http://samedomainasmyws:sameportas
myws/onefolder/onsubfolder/crossdomain.xml
http://samedomainasmyws:sameportasmyws/onefolder/onsubfolder/crossdomai
n.xml );


Do I miss something ?

Thx for your help.

Claude Hussenet

 



RE: [flexcoders] Is it possible to anti-alias fonts without embedding?

2007-09-22 Thread Alex Harui
If chart labels are looking fine to you, then you should be able to
duplicate.  What kind of issues are you having?  Is it that you're
trying to get bitmaps before attaching the text widgets to the display
list?  Or are you seeing visual problems over certain backgrounds or
angles?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jon Bradley
Sent: Saturday, September 22, 2007 9:44 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Is it possible to anti-alias fonts without
embedding?

 

 

On Sep 22, 2007, at 1:23 AM, Alex Harui wrote:





Device fonts are anti-aliased except when cached as bitmaps.  They
should be anti-aliased even when cached as bitmaps in the upcoming
Player 9,0,60 and later.

 

Now all you guys need to do is support rotation on non-embedded fonts.

 

That would so make my day - using the bitmap conversion hack is tricky
(especially for user-controlled rotation and scale of a field).

 

Was there a nice elegant solution you guys developed for the Premier
Express Flex application? I know now that chart labels do this, but I'm
still having issues drawing the fields when they are first loaded up
into an application - prior to them actually being rendered on the
screen through normal interaction.

 

Maybe I'm missing an event or something that would solve that issue...

 

- jon

 

 

 

 



RE: [flexcoders] Re: Buttons in Flex !

2007-09-22 Thread Alex Harui
Are you saying you're trying this in Moxie?  Did you read up on how to
do it in the release notes?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of restlessdesign
Sent: Friday, September 21, 2007 9:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Buttons in Flex !

 

Hmmm...not as easy as expected. Anyone have any ideas (MXML or
Actionscript)?

mx:Button id=myButton x=10 y=10 label=Squirrels!
styleName=customBtn
mx:transitions
mx:Transition fromState=* toState=*
mx:Fade alphaFrom=0 alphaTo=100 duration=2 /
/mx:Transition
/mx:transitions
/mx:Button

Stylesheet:
.customBtn {
upSkin: Embed(source='../assets/defaultButton_up.png',
scaleGridTop='6', scaleGridBottom='10', scaleGridLeft='40',
scaleGridRight='80');
overSkin: Embed(source='../assets/defaultButton_over.png',
scaleGridTop='6', scaleGridBottom='10', scaleGridLeft='40',
scaleGridRight='80');
downSkin: Embed(source='../assets/defaultButton_down.png',
scaleGridTop='6', scaleGridBottom='10', scaleGridLeft='40',
scaleGridRight='80');
}

Thanks!

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

 In theory you can do this in Moxie, but in 2.x, all you are seeing is
an
 inherited prop that Button does not use.
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of restlessdesign
 Sent: Monday, September 17, 2007 11:10 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Re: Buttons in Flex !
 
 
 
 I too have this issue and did some quick research. Would it be
 possible to use the transitions property of the Button class and pass
 in effects that way using its pre-defined states (upState, overState,
 downState, etc.)?


 



RE: [flexcoders] Custom Components Data

2007-09-22 Thread Alex Harui
Usually by binding to the datagrid's selectedItem.

 

mx:TextInput text={myDg.selectedItem.name}

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andrew
Sent: Friday, September 21, 2007 3:48 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Custom Components  Data

 

Hello, i am new to flex and im just starting to get the hang of it.
Currently i am working on a project that requires a custom component.
The problem i am having is how to get data to that component. I am
trying to read tutorials but i must be missing something. Currently it
my main movie that has a data grid that is updated by a xml file. Now
when a user click on a name the into will be displayed to the right of
it in the custom component, i just dont know how to get the data from
the grid to the custom component. Any help would be great.

Thanks...

-Andrew

 



RE: [flexcoders] Re: Open SWF from another SWF.

2007-09-22 Thread Alex Harui
You can't use a shell app with SWFLoader?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of helix206
Sent: Saturday, September 22, 2007 4:04 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Open SWF from another SWF.

 

Ok, i have tryed this with fscommand(exec, test.exe); and it works, 
all SWF files must be projectors.

Now i have 2 problems, the projector test.exe witch is an application 
runs fine when run directly, but when i execute it from my first 
projector (runner.exe) the second test.exe wont read any XML files with 
HTTPRequest method, i get an error that it cant find the file. 

I examined the path to the XML file and it changes if called from 
another projector from :

URL: file:///G file:///\\G |/Directory/fscommand/myXML.xml]. 

to :

URL:file:3F/G file:///\\3F\G |/Directory/fscommand/myXML.xml]. 

Any way to fix that?

And another Q, when creating projectors, now i can create them with 
file-Create Projector. Is there a way to create them from command line 
because all my apps are in full screen and i have blocked the ESC 
button. Btw, if anyone is interested i blocked ESC button with : 
fscommand(trapallkeys,True);.

I hope someone can help.

thx.

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

 I have a problem. I have several local SWF files built for a 
 client,all run in full screen, and all are seperate applications. Now 
 the client wants one unique window for running all thiose apps. 
 
 Is it even possible to call and open SWF application from another SWF 
 application. 
 
 thx.


 



[flexcoders] Re: Eeeeek! Development grinds to a halt due to stupid syntax problem

2007-09-22 Thread candysmate
It's actually a Sage Line 100 database if that means anything to you.
Sage have now uses SQL Server 2005 i believe, but this old proprietary
format that I have to work with doesn't allow for anything 'creative'.  

Looks like I'm hosed, unless one of you clever people can think of a
way around it. 



Re: [flexcoders] Is it possible to anti-alias fonts without embedding?

2007-09-22 Thread Jon Bradley

Thanks for any help Alex...

I'm actually having issues on the initial draw of the bitmap - so  
visual problems.


While the user rotates and scales the field, everything is fine and  
dandy. BUT, when the class for handling the bitmap and the text field  
itself is first instantiated, the field is not drawn accurately.


The field draws out at the proper scale, but it doesn't respect the  
new 'width' that the field should have once type is added to it.


For example, the initial size of the created field is some width X  
height. I'm using autosize on the field itself, so when the text is  
changed, the new width and height are used to draw the result onto  
the screen (new bitmap size to match). This works fine during live  
editing, such as changing the text of the field. When the class first  
loads though, I get the right size and color font and Bitmap that it  
should be, but all that is drawn is up to the height/width of the  
field that it was when it was first created.


I looked to see if there was an event for autosize ... to no avail. I  
also tried to use resize events, render events, etc. Nothing has  
solved the problem.


My initial guess is that it might have to do with the styles that get  
set on the field and some type of delay.


Unfortunately, I can't share the code for the classes on the list,  
but I'd be more than happy to send along if you're willing to take a  
look.


best,

jon



On Sep 22, 2007, at 2:12 PM, Alex Harui wrote:

If chart labels are looking fine to you, then you should be able to  
duplicate.  What kind of issues are you having?  Is it that you’re  
trying to get bitmaps before attaching the text widgets to the  
display list?  Or are you seeing visual problems over certain  
backgrounds or angles?




Re: [flexcoders] Re: Eeeeek! Development grinds to a halt due to stupid syntax problem

2007-09-22 Thread Doug McCune
Multiple people have already said this on both of the threads you posted
with the same question: use square brackets to reference your properties.

Try: selectedItem[ADDRESS_LINE#2]

And if that doesn't work tell us that it doesn't and what happens if you
try.

On 9/22/07, candysmate [EMAIL PROTECTED] wrote:

   It's actually a Sage Line 100 database if that means anything to you.
 Sage have now uses SQL Server 2005 i believe, but this old proprietary
 format that I have to work with doesn't allow for anything 'creative'.

 Looks like I'm hosed, unless one of you clever people can think of a
 way around it.

  



RE: [flexcoders] Re: Eeeeek! Development grinds to a halt due to stupid syntax problem

2007-09-22 Thread Randy Martin
If it were me, I'd just change the name of the field in the SQL select
statement, like:
 
select
  [ADDRESS_LINE#2] as addr2,
-  .
  .
from.
 
Then use addr2 in your app.
 


   _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of candysmate
Sent: Saturday, September 22, 2007 12:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Ek! Development grinds to a halt due to stupid
syntax problem



--- In HYPERLINK
mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED], Paul
Andrews [EMAIL PROTECTED] wrote:

 Why do you have to use the database field names inside the flex
application?
 

What alternative approach would you suggest Paul? I use them to help
me keep track of everything, as I'm using both a MS SQL database and
an ODBC linked database to a proprietry format. I'm open to
alternative method suggestions.



 


No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.488 / Virus Database: 269.13.28/1021 - Release Date: 9/21/2007
2:02 PM
 


Re: [flexcoders] Re: Real size of components

2007-09-22 Thread Arpit Mathur
Would this work?

component.percentWidth = 50
component.percentHeight = 50
component.validateSize()
trace(component.measuredWidth)

I have never really used the validation thing so I am curious. Its how I
would imagine it would work.



On 9/21/07, Gordon Smith [EMAIL PROTECTED] wrote:

It sounds like you are expecting to set percentWidth and immediately
 have the width change. Flex visual components don't work like this.
 Typically when you set properties, the component enters a kind of invalid
 state until the LayoutManager updates it. If you wait until the component
 dispatches an updateComplete event, the width should then be correct.

 - Gordon


  --
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Sandeep Malik
 *Sent:* Friday, September 21, 2007 6:57 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: Real size of components



 I guess you should use getExplicitOrMeasuredWidth() and
 getExplicitOrMeasuredHeight().

 Regards,
 Sandeep

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, 
 ben.clinkinbeard
 [EMAIL PROTECTED] wrote:
 
  measuredWidth and measuredHeight I think.
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Daniel danielterraza@ wrote:
  
   Hey guys...
  
   I'm setting the size of a panel through the percentWidth property, but
   when I ask for the width of the component it doesn't give me the real
   size... How can I know the real size when I set width and height
   through percentage?
  
   Thanx,
   DaNooB.
  
 

 




-- 
Arpit Mathur
Lead Software Engineer,
Comcast Interactive Media
---
post your flex tips on
http://flextips.corank.com


[flexcoders] Re: Eeeeek! Development grinds to a halt due to stupid syntax problem

2007-09-22 Thread candysmate
--- In flexcoders@yahoogroups.com, Stephen Allison [EMAIL PROTECTED]
wrote:

 Are you able to use the square brackets syntax for accessing  
 properties ?
 This should work if your data objects are type object or are dynamic (?)
 
 var selectedGrowerAddress2:String =
 StringUtil.trim(String 
 (event.currentTarget.growerSearchGrid.selectedItem[ADDRESS_LINE#2]));
 
 

That worked Stephen. MANY thanks for your reply. I'd never have
figured that on my own. No sleep for me tonight as I have to catch up. :(
Thanks again.



Re: [flexcoders] Is it possible to anti-alias fonts without embedding?

2007-09-22 Thread Jon Bradley

I think I actually fixed it

I was doing this in my constructor for the custom field:

if (m != null)
{
transform.matrix = m;
setTransform(m);
}
else ...

when I should've been doing this:


if (m != identityMatrix)
{
transform.matrix = m;
setTransform(m);
}
else ...

I may or may not pass in a matrix to the class, but the 'optional'  
matrix has to evaluate to something, or else it doesn't compile. So,  
the m matrix is never null, and I was never updating the  
transformations on my class when a custom matrix was loaded up.


Testing local it seems to work when I load up a field that's rotated  
some arbitrary angle. I have to test online though, because I suspect  
there may be an underlying issue with the style loading.


Hope it works...

- j

On Sep 22, 2007, at 2:26 PM, Jon Bradley wrote:

I'm actually having issues on the initial draw of the bitmap - so  
visual problems.




RE: [flexcoders] Is it possible to anti-alias fonts without embedding?

2007-09-22 Thread Alex Harui
TextField definitely has quirks.  If you look in TextArea, you'll see
some callLaters used to deal with it.  And I think we don't use
autosize, we trust textWidth/Height and dictate size.

 

Also note that until applicationComplete event, you aren't really on the
display list.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jon Bradley
Sent: Saturday, September 22, 2007 11:27 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Is it possible to anti-alias fonts without
embedding?

 

Thanks for any help Alex...

 

I'm actually having issues on the initial draw of the bitmap - so visual
problems.

 

While the user rotates and scales the field, everything is fine and
dandy. BUT, when the class for handling the bitmap and the text field
itself is first instantiated, the field is not drawn accurately.

 

The field draws out at the proper scale, but it doesn't respect the new
'width' that the field should have once type is added to it.

 

For example, the initial size of the created field is some width X
height. I'm using autosize on the field itself, so when the text is
changed, the new width and height are used to draw the result onto the
screen (new bitmap size to match). This works fine during live editing,
such as changing the text of the field. When the class first loads
though, I get the right size and color font and Bitmap that it should
be, but all that is drawn is up to the height/width of the field that it
was when it was first created.

 

I looked to see if there was an event for autosize ... to no avail. I
also tried to use resize events, render events, etc. Nothing has solved
the problem.

 

My initial guess is that it might have to do with the styles that get
set on the field and some type of delay.

 

Unfortunately, I can't share the code for the classes on the list, but
I'd be more than happy to send along if you're willing to take a look.

 

best,

 

jon

 

 

 

On Sep 22, 2007, at 2:12 PM, Alex Harui wrote:





If chart labels are looking fine to you, then you should be able to
duplicate.  What kind of issues are you having?  Is it that you're
trying to get bitmaps before attaching the text widgets to the display
list?  Or are you seeing visual problems over certain backgrounds or
angles?

 

 



RE: [flexcoders] Re: Real size of components

2007-09-22 Thread Alex Harui
Use validateNow() or validateClient().  ValidateSize is for internal use
by the framework and calling it by itself isn't guaranteed to work.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Arpit Mathur
Sent: Saturday, September 22, 2007 11:49 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Real size of components

 

Would this work?

 

component.percentWidth = 50

component.percentHeight = 50

component.validateSize()

trace(component.measuredWidth)

 

I have never really used the validation thing so I am curious. Its how I
would imagine it would work.



 

On 9/21/07, Gordon Smith [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
wrote: 

It sounds like you are expecting to set percentWidth and immediately
have the width change. Flex visual components don't work like this.
Typically when you set properties, the component enters a kind of
invalid state until the LayoutManager updates it. If you wait until
the component dispatches an updateComplete event, the width should then
be correct.

 

- Gordon


 



From: flexcoders@yahoogroups.com http://ups.com/  [mailto: flexcoders@
mailto:flexcoders@ yahoogroups.com http://yahoogroups.com ] On
Behalf Of Sandeep Malik
Sent: Friday, September 21, 2007 6:57 AM
To: [EMAIL PROTECTED] ups.com http://ups.com/ 
Subject: [flexcoders] Re: Real size of components

 

I guess you should use getExplicitOrMeasuredWidth() and
getExplicitOrMeasuredHeight().

Regards,
Sandeep

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

 measuredWidth and measuredHeight I think.
 
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Daniel danielterraza@ wrote:
 
  Hey guys...
  
  I'm setting the size of a panel through the percentWidth property,
but
  when I ask for the width of the component it doesn't give me the
real
  size... How can I know the real size when I set width and height
  through percentage?
  
  Thanx, 
  DaNooB.
 





-- 
Arpit Mathur
Lead Software Engineer, 
Comcast Interactive Media
---
post your flex tips on 
http://flextips.corank.com http://flextips.corank.com  

 



Re: [flexcoders] Re: Anyone seen this effect as Flex module - Accordion Menu

2007-09-22 Thread Doug McCune
Here's my example with write-up and source code:
http://dougmccune.com/blog/2007/09/22/nifty-flex-accordion-menu-like-on-applecom/

Or straight to the example (right click to view source):
http://dougmccune.com/flex/apple_accordion/

Doug

On 9/20/07, Tony Alves [EMAIL PROTECTED] wrote:

Doug,
 That is off the board.  Do you think it will be possible to get rid of the
 history tracking on it.
 For some reason that always bothers me about the accordion, so I turn it
 off usually.
 Still, nice job!  You rock dude.

 Tony


 Doug McCune wrote:

  holla

 http://dougmccune.com/flex/apple_accordion

 source will be coming soon, gotta do a little cleanup and write up a blog
 post. It uses a slightly modified Accordion component and some flexlib
 components.

 Doug

  On 9/20/07, Mike Krotscheck [EMAIL PROTECTED] wrote:
 
 We did something very similar to this using a VBox and container
  resizing. Basically, every other element is a clickresponsive component that
  on rollover changes the height of the previous container, with a resize
  effect added for good measure. Fairly simple, should take a decent developer
  about 30 minutes to implement.
 
 
 
  *Michael Krotscheck*
 
  Senior Developer
 
 
 
 
  *RESOURCE INTERACTIVE*
 
  www.resource.com
 
  [EMAIL PROTECTED]
--
 
  *From:* flexcoders@yahoogroups.com [mailto: [EMAIL PROTECTED]
  *On Behalf Of *Michael Schmalle
  *Sent:* Thursday, September 20, 2007 2:04 PM
  *To:* flexcoders@yahoogroups.com
  *Subject:* Re: [flexcoders] Re: Anyone seen this effect as Flex module -
  Accordion Menu
 
 
 
  Hi,
 
  I also found another workaround for the rollover. I added a timer to the
  dispatch method and it will wait the determined amount of milliseconds
  before firing the open event.
 
  This improves usability greatly.
 
  Peace, Mike
 
  On 9/20/07, *Michael Schmalle* [EMAIL PROTECTED] wrote:
 
  Hi,
 
  I slapped this together. There are a lot of things that could be
  improved but, you be the judge.
 
  One thing is it doesn't quite 'slide' like the apple example does but,
  that would be another component that used a canvas and funky depth
  management.
 
  Plus whenever you use rollOver, there are bound to be issues. MouseDowns
  are much better but, this uses rollOver. For the time I put into it about 1
  1/2 hours it's close.
 
  The Image is actually the content that could be whatever you want. The
  gray part is the custom titleBar that was made with an inline itemRenderer
  with the Component tag.
 
  http://www.teotigraphix.com/flexAssets/taskpanefx/AppleMenu.html
 
  The example was done with this product;
 
  http://www.teotigraphix.com/components/containers/taskpanefx
 
  Peace, Mike
 
 
 
  On 9/20/07, *Tony Alves *[EMAIL PROTECTED]  wrote:
 
  Now there is an example of why you should use flex over ajax.
 
  oneproofdk wrote:
 
   Hi Mike
 
  Sounds good - if you dont mind the trouble - I'd love to see an
  example on how to make the Apple version
 
  Thanks for your reply though.
 
  Mark
 
 
 
 
 
--
  Teoti Graphix
  http://www.teotigraphix.com
 
  Blog - Flex2Components
  http://www.flex2components.com
 
  You can find more by solving the problem then by 'asking the question'.
 
 
 
 
  --
  Teoti Graphix
  http://www.teotigraphix.com
 
  Blog - Flex2Components
  http://www.flex2components.com
 
  You can find more by solving the problem then by 'asking the question'.
 

   



[flexcoders] Re: Setting the crossdomain.xml file for WebService in a diffferent path than root

2007-09-22 Thread Claude Hussenet
I am getting the Security error before calling the send method .

Using an HTTP Proxy(Fiddler)I have noticed that whatever file is set
to the loadPolicyFile method a SECOND request after is executed to 
load the policy file from the web root domain !!

So Fiddler reports 2 HTTP requests to the security policy file when 
my component is loaded.
One to the policy file identifies by the method 
flash.system.Security.loadPolicyFile

A second to the security file defined in the same root domain which 
does not exist in my case.

Let me know what is wrong ?  


Thx-CLaude


--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 a.b.com is not the same domain as d.b.com.
 
  
 
 You should be able to use a file from a different folder in 
a.b.com.
 Did you get it before calling send on the webservice?
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Claude Hussenet
 Sent: Saturday, September 22, 2007 7:34 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Setting the crossdomain.xml file for 
WebService in
 a diffferent path than root
 
  
 
 
 I would like to be able to deploy the crossdomain file
 in the same domain name as the webservice but NOT in the root
 domain.
 
 Possible solution would be able to set the path of the crossdomain 
file 
 before the initialization of the webservice on the client side.
 
 I tried the following method without any success :
 flash.system.Security.loadPolicyFile
(http://samedomainasmyws:sameportas
 myws/onefolder/onsubfolder/crossdomain.xml
 
http://samedomainasmyws:sameportasmyws/onefolder/onsubfolder/crossdo
mai
 n.xml );
 
 
 Do I miss something ?
 
 Thx for your help.
 
 Claude Hussenet





[flexcoders] Re: Eeeeek! Development grinds to a halt due to stupid syntax problem

2007-09-22 Thread candysmate
--- In flexcoders@yahoogroups.com, Doug McCune [EMAIL PROTECTED] wrote:

 Multiple people have already said this on both of the threads you posted
 with the same question: use square brackets to reference your
properties.
 
 Try: selectedItem[ADDRESS_LINE#2]
 
 And if that doesn't work tell us that it doesn't and what happens if you
 try.
 
My apologies for the double posting, and thanks to everyone who replied.




Re: [flexcoders] pixel font [old] issue

2007-09-22 Thread Ary
yes i try both already ...embeding .ttf files and make
a dynamic text on swf file, i choose embeding dynamic
text ,embedding ttf doesnt work at all, while
embedding swf is working, but blurred text, i define
normal,italic and bold in font face already...i even
got fontantialiastype set to advanced rather than
normal (i get it from a site, although it still
blurred). 

at the momment im using transparent gif to display
pixel text(way less than 1 kb in file size)...since
its not so many text involved...but im really curious
on this one.


thanks for responding guys!
ary.


--- Jon Bradley [EMAIL PROTECTED] wrote:

 But I do not believe that solution helps with
 pixel fonts that need  
 to be antialiased based on the grid. The only way
 that I know of to  
 get it to work properly is by using Flash to export
 the font.
 
 I'd love a cleaner method though...
 
 - j
 
 On Sep 22, 2007, at 1:47 PM, Randy Martin wrote:
 
  You get the general idea. I use this all the time,
 and I've never  
  had any trouble with blurry fonts.
 
  Hope this helps,
  Randy
 
 



  

Check out the hottest 2008 models today at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html


[flexcoders] Simulating mouse click on itemRenderer in dataGrid

2007-09-22 Thread candysmate
I need to simulate that a textInput itemdenderer in a dataGrid has
just been click in/on with the mouse. My efforts with manually
dispatching an event to the itemRenderer have failed, as I do not know
how to reference it. Can anyone help please?

I can reference the grid with:

var mev:MouseEvent = new MouseEvent(click,false,false);
mydataGrid.dispatchEvent(mev);

but the itemRenderer within a dataGridColumn?




Re: [flexcoders] pixel font [old] issue

2007-09-22 Thread Jon Bradley
Search archives. Another embedding fonts thread was discussed up  
about a week ago (Embed Flash Font was the subject).


Text of my post is below, which works for all pixel fonts I've tested  
so far (provided you use the proper font size in the Flex CSS document).


First step is to put a dynamic text field on the stage in Flash, set  
your font for the field and choose the character(s) you wish to  
embed. Make sure the text field is set to use Bitmap Text (whatever  
the drop down is). You do not have control over the characters after  
this step, so all your embedding is done in Flash (ie, no unicode  
control in Flex CSS).


The use of font-weight: normal and fontAntiAliasType: normal are  
necessary, from what I recall. You have no control over this in Flex  
for pixel fonts.


The following steps are:

--

1. Don't name the embedded font in the Flash 8 swf file the same as  
the system font.


2. Open the Flash 8 SWF back up into Flash 8 IDE (or CS3 IDE). When  
you do that, do a list variables - Debug  List Variables. Make note  
of the 'exported' font name that Flash used for the font. That name  
is what you'll use in Flex.


For example, on using a pixel font (Kroeger 05_56), I exported the  
Flash 8 SWF file, the embedded symbol name ended up as kroeger  
05_56_8pt_st. And in Flex, I used this in the CSS as follows:


@font-face {
src: url(../fonts/Kroeger.swf) ;
fontFamily: kroeger 05_56_8pt_st;
font-weight: normal;
}

And defining the usage of that font, recognizing that in this case  
it's a pixel font and doesn't use the advanced anti aliasing


.assetInfoTitle
{
color:#66;
fontFamily: kroeger 05_56_8pt_st;
font-weight: normal;
fontSize: 8;
fontAntiAliasType: normal;
}

Hopefully that will get you on your way.

best,

Jon




On Sep 22, 2007, at 3:56 PM, Ary wrote:


yes i try both already ...embeding .ttf files and make
a dynamic text on swf file, i choose embeding dynamic
text ,embedding ttf doesnt work at all, while
embedding swf is working, but blurred text, i define
normal,italic and bold in font face already...i even
got fontantialiastype set to advanced rather than
normal (i get it from a site, although it still
blurred).





[flexcoders] Re: Custom Components Data

2007-09-22 Thread Andrew
Well the datagrid on the main movie is fine, but my fields in the
custom componet do not update or obtain information.

mx:TextArea x=10 y=10 width=225 
htmlText={teams.selectedItem.team_name} 
height=29 editable=false fontSize=21 fontWeight=bold
borderStyle=solid backgroundAlpha=0.0 color=#00/

Thats in the component but will not show data




--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 Usually by binding to the datagrid's selectedItem.
 
  
 
 mx:TextInput text={myDg.selectedItem.name}
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Andrew
 Sent: Friday, September 21, 2007 3:48 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Custom Components  Data
 
  
 
 Hello, i am new to flex and im just starting to get the hang of it.
 Currently i am working on a project that requires a custom component.
 The problem i am having is how to get data to that component. I am
 trying to read tutorials but i must be missing something. Currently it
 my main movie that has a data grid that is updated by a xml file. Now
 when a user click on a name the into will be displayed to the right of
 it in the custom component, i just dont know how to get the data from
 the grid to the custom component. Any help would be great.
 
 Thanks...
 
 -Andrew





RE: [flexcoders] Re: Setting the crossdomain.xml file for WebService in a diffferent path than root

2007-09-22 Thread Alex Harui
I'm not well-versed on webservice.  Did you specify a wsdl?  Maybe it is
getting loaded before you hit send.  When do you try to get the policy
file?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Claude Hussenet
Sent: Saturday, September 22, 2007 12:34 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Setting the crossdomain.xml file for
WebService in a diffferent path than root

 

I am getting the Security error before calling the send method .

Using an HTTP Proxy(Fiddler)I have noticed that whatever file is set
to the loadPolicyFile method a SECOND request after is executed to 
load the policy file from the web root domain !!

So Fiddler reports 2 HTTP requests to the security policy file when 
my component is loaded.
One to the policy file identifies by the method 
flash.system.Security.loadPolicyFile

A second to the security file defined in the same root domain which 
does not exist in my case.

Let me know what is wrong ? 

Thx-CLaude

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

 a.b.com is not the same domain as d.b.com.
 
 
 
 You should be able to use a file from a different folder in 
a.b.com.
 Did you get it before calling send on the webservice?
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Claude Hussenet
 Sent: Saturday, September 22, 2007 7:34 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Setting the crossdomain.xml file for 
WebService in
 a diffferent path than root
 
 
 
 
 I would like to be able to deploy the crossdomain file
 in the same domain name as the webservice but NOT in the root
 domain.
 
 Possible solution would be able to set the path of the crossdomain 
file 
 before the initialization of the webservice on the client side.
 
 I tried the following method without any success :
 flash.system.Security.loadPolicyFile
(http://samedomainasmyws:sameportas
http://samedomainasmyws:sameportas 
 myws/onefolder/onsubfolder/crossdomain.xml
 
http://samedomainasmyws:sameportasmyws/onefolder/onsubfolder/crossdo
http://samedomainasmyws:sameportasmyws/onefolder/onsubfolder/crossdo 
mai
 n.xml );
 
 
 Do I miss something ?
 
 Thx for your help.
 
 Claude Hussenet


 



RE: [flexcoders] Simulating mouse click on itemRenderer in dataGrid

2007-09-22 Thread Alex Harui
Are you using editable=true?  Then editedItemRenderer should be the one.
You can also set editedItemPosition to shift editing and focus to a
cell.

 

You shouldn't need to fake a mouse event.  The TextField is handled by
the player and doesn't listen for them anyway.  Are you trying to set
focus or the insertion point?  Use setFocus or setSelection instead.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of candysmate
Sent: Saturday, September 22, 2007 1:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Simulating mouse click on itemRenderer in dataGrid

 

I need to simulate that a textInput itemdenderer in a dataGrid has
just been click in/on with the mouse. My efforts with manually
dispatching an event to the itemRenderer have failed, as I do not know
how to reference it. Can anyone help please?

I can reference the grid with:

var mev:MouseEvent = new MouseEvent(click,false,false);
mydataGrid.dispatchEvent(mev);

but the itemRenderer within a dataGridColumn?

 



RE: [flexcoders] Re: Custom Components Data

2007-09-22 Thread Alex Harui
This implies you have:

 

mx:DataGrid id=teams' ... /

 

And

 

data objects in the data provider that have a property called team_name.
How are your data objects defined?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andrew
Sent: Saturday, September 22, 2007 1:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Custom Components  Data

 

Well the datagrid on the main movie is fine, but my fields in the
custom componet do not update or obtain information.

mx:TextArea x=10 y=10 width=225 
htmlText={teams.selectedItem.team_name} 
height=29 editable=false fontSize=21 fontWeight=bold
borderStyle=solid backgroundAlpha=0.0 color=#00/

Thats in the component but will not show data

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

 Usually by binding to the datagrid's selectedItem.
 
 
 
 mx:TextInput text={myDg.selectedItem.name}
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Andrew
 Sent: Friday, September 21, 2007 3:48 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Custom Components  Data
 
 
 
 Hello, i am new to flex and im just starting to get the hang of it.
 Currently i am working on a project that requires a custom component.
 The problem i am having is how to get data to that component. I am
 trying to read tutorials but i must be missing something. Currently it
 my main movie that has a data grid that is updated by a xml file. Now
 when a user click on a name the into will be displayed to the right of
 it in the custom component, i just dont know how to get the data from
 the grid to the custom component. Any help would be great.
 
 Thanks...
 
 -Andrew


 



[flexcoders] Re: Custom Components Data

2007-09-22 Thread Andrew
Here i am kinda confused so here is the code so you can see what i mean.

Code of Main app.mxml
[Code]
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
creationComplete=teamRequest.send() layout=absolute
xmlns:ns1=bin.myComponents.* xmlns:ns2=myComponents.*

mx:HTTPService 
id=teamRequest url=./data.php useProxy=false/
mx:Script

![CDATA[
import mx.controls.Alert;
]]
/mx:Script
mx:Panel width=35% layout=absolute id=teamDB left=10
top=10 height=50%
mx:DataGrid id=teams width=100% height=100%
dataProvider={teamRequest.lastResult.teams.item} textAlign=center
   itemClick=currentState='details'
mx:columns
mx:DataGridColumn headerText=Teams Number
dataField=team_number/
mx:DataGridColumn headerText=Team Name
dataField=team_name/

/mx:columns
/mx:DataGrid
/mx:Panel
mx:VBox y=10 width=60% height=95% borderStyle=solid
cornerRadius=6 backgroundColor=#FF backgroundAlpha=0.4
right=10
ns2:details
/ns2:details

/mx:VBox

/mx:Application 


[/Code]

Now Details Component Code

[Code]
?xml version=1.0 encoding=utf-8? 
mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; width=100%
height=100%
mx:TextArea x=109.5 y=224 width=311 
htmlText={teams.selectedItem.info}  height=91
editable=false/
mx:Button x=6 label=lt;- Back id=back
click=currentState='' bottom=9/
mx:Image x=265 y=10 width=200 height=200
scaleContent=true data={teams.selectedItem.picture}/
mx:Text x=2 y=48 text=Team Number:
fontFamily=Verdana fontWeight=bold/
mx:Text x=2 y=74 text=Height / Weight:
fontFamily=Verdana fontWeight=bold/
mx:Text x=2 y=100 text=Drivetrain:
fontFamily=Verdana fontWeight=bold width=67/
mx:Text x=2 y=126 text=Autonomous:
fontFamily=Verdana fontWeight=bold/
mx:Text x=23.5 y=225 text=Extra Info:
fontFamily=Verdana fontWeight=bold/
mx:TextArea x=10 y=10 width=225 
htmlText={teams.selectedItem.team_name} 
height=29 editable=false fontSize=21 fontWeight=bold
borderStyle=solid backgroundAlpha=0.0 color=#00/
mx:TextArea x=109.5 y=47 width=125.5 
htmlText={teams.selectedItem.team_number} 
height=19 editable=false/
mx:TextArea x=109.5 y=73 width=125.5 
htmlText={teams.selectedItem.autonomous} 
height=19 editable=false/
mx:TextArea x=109.5 y=99 width=125.5 
htmlText={teams.selectedItem.drivetrain} 
height=19 editable=false/
mx:TextArea x=109.5 y=125 width=125.5 
htmlText={teams.selectedItem.height_weight} 
height=19 editable=false/

/mx:Canvas
[/Code]

Now what i am trying to do is get it so that when i click on the
infomation in the main datagrid that i will show it in the custom
component.


Thanks.



[flexcoders]Air Bus tour in Minneapolis

2007-09-22 Thread dorkie dork from dorktown
Anyone from the list attending the AIR Bus Tour in Minneapolis?

http://onair.adobe.com/blogs/tour/2007/09/21/leg-3-speakers-and-agendas-updated/

repost:

September 21st, 2007 by Mike Chambers

We have just updated the website with the agendas and
speakershttp://onair.adobe.com/bus/for leg 3 of the bus tour. The
last leg of the North American part of the
tour starts next week in New York
Cityhttp://onair.adobe.com/schedule/cities/newyork.php,
winding its way through
Torontohttp://onair.adobe.com/schedule/cities/toronto.php,
Minneapolis http://onair.adobe.com/schedule/cities/minneapolis.php, and
ending up at Max in Chicagohttp://onair.adobe.com/schedule/cities/chicago.php
.

Here are the developers on the bus for leg 3:

   - Lee Brimelow http://www.theflexblog.com/
   - Mike Chambers http://www.mikechambers.com/blog/
   - Andre Charland http://blogs.nitobi.com/andre/
   - Mike Downey http://madowney.com/blog/
   - Daniel Dura http://www.danieldura.com/
   - Kevin Hoyt http://blog.kevinhoyt.org/
   - Grant Skinner http://www.gskinner.com/blog/
   - Ryan Stewart http://blogs.zdnet.com/Stewart/

Both New York City and Toronto are sold out. We will also be camping out for
Halo 3 Monday night at Best Buy on 5th Ave, and will be stopping by Niagra
Falls on the way to Toronto.

If you haven't registered for
Minneapolishttp://onair.adobe.com/schedule/cities/minneapolis.php,
and Chicago http://onair.adobe.com/schedule/cities/chicago.php, make sure
to do so before they also sell out.


[flexcoders] Is there any way to access code within a flash-generated SWF?

2007-09-22 Thread thegiffman
Hi All,

Is it at all possible to access code within a flash-generated SWF?  I
have an animated character that I want to color on the fly, and use
external ActionScript 3.0 class linkages to do this.  However, when I
load the swf into flex by embedding the symbol, all of the types
revert to MovieClip and I cannot call any of the methods.  

This is frustrating.  Is there any way around this, or must all code
be done only after the files are loaded into flex?



Re: [flexcoders] Is there any way to access code within a flash-generated SWF?

2007-09-22 Thread Muzak
http://labs.adobe.com/wiki/index.php/Flex_Component_Kit_for_Flash_CS3

- Original Message - 
From: thegiffman [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Sunday, September 23, 2007 12:04 AM
Subject: [flexcoders] Is there any way to access code within a flash-generated 
SWF?


Hi All,

Is it at all possible to access code within a flash-generated SWF?  I
have an animated character that I want to color on the fly, and use
external ActionScript 3.0 class linkages to do this.  However, when I
load the swf into flex by embedding the symbol, all of the types
revert to MovieClip and I cannot call any of the methods.

This is frustrating.  Is there any way around this, or must all code
be done only after the files are loaded into flex?





[flexcoders] Re: Is it possible to query a Flash SWF for its images / symbol list ?

2007-09-22 Thread helihobby
The issue I am trying to solve is this ...

If a user loads a compiled SWF to my site ... How can I dynamically 
from within Actionscript get a list of the embeded images ( 
Symbols ) ?

Is it possible ?

Regards and thanks again,

Sean.

--- In flexcoders@yahoogroups.com, helihobby [EMAIL PROTECTED] wrote:

 Hello all,
 
 I have a SWF that has some Symbols / images !!! ( Created using 
Flash 
 Editor CS3 )
 
 How can I retrieve the Symbols list it holds using ActionScript 
from 
 the loaded Flash swf ? ( I Used SWFLoader to load it ... )
 
 Regards,
 
 Sean.
 
 Click below to view my ALON Design Pattern:
 
 http://www.helihobby.com/html/alon_desingpattern.html





RE: [flexcoders] Re: Custom Components Data

2007-09-22 Thread Alex Harui
Each mxml is its own document with its own set of variables just like
HTML files.  If the custom component is a used in the main app, then
using parentDocument.teams should work.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andrew
Sent: Saturday, September 22, 2007 2:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Custom Components  Data

 

Here i am kinda confused so here is the code so you can see what i mean.

Code of Main app.mxml
[Code]
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
creationComplete=teamRequest.send() layout=absolute
xmlns:ns1=bin.myComponents.* xmlns:ns2=myComponents.*

mx:HTTPService 
id=teamRequest url=./data.php useProxy=false/
mx:Script

![CDATA[
import mx.controls.Alert;
]]
/mx:Script
mx:Panel width=35% layout=absolute id=teamDB left=10
top=10 height=50%
mx:DataGrid id=teams width=100% height=100%
dataProvider={teamRequest.lastResult.teams.item} textAlign=center
itemClick=currentState='details'
mx:columns
mx:DataGridColumn headerText=Teams Number
dataField=team_number/
mx:DataGridColumn headerText=Team Name
dataField=team_name/

/mx:columns
/mx:DataGrid
/mx:Panel
mx:VBox y=10 width=60% height=95% borderStyle=solid
cornerRadius=6 backgroundColor=#FF backgroundAlpha=0.4
right=10
ns2:details
/ns2:details

/mx:VBox

/mx:Application 

[/Code]

Now Details Component Code

[Code]
?xml version=1.0 encoding=utf-8? 
mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  width=100%
height=100%
mx:TextArea x=109.5 y=224 width=311 
htmlText={teams.selectedItem.info} height=91
editable=false/
mx:Button x=6 label=lt;- Back id=back
click=currentState='' bottom=9/
mx:Image x=265 y=10 width=200 height=200
scaleContent=true data={teams.selectedItem.picture}/
mx:Text x=2 y=48 text=Team Number:
fontFamily=Verdana fontWeight=bold/
mx:Text x=2 y=74 text=Height / Weight:
fontFamily=Verdana fontWeight=bold/
mx:Text x=2 y=100 text=Drivetrain:
fontFamily=Verdana fontWeight=bold width=67/
mx:Text x=2 y=126 text=Autonomous:
fontFamily=Verdana fontWeight=bold/
mx:Text x=23.5 y=225 text=Extra Info:
fontFamily=Verdana fontWeight=bold/
mx:TextArea x=10 y=10 width=225 
htmlText={teams.selectedItem.team_name} 
height=29 editable=false fontSize=21 fontWeight=bold
borderStyle=solid backgroundAlpha=0.0 color=#00/
mx:TextArea x=109.5 y=47 width=125.5 
htmlText={teams.selectedItem.team_number} 
height=19 editable=false/
mx:TextArea x=109.5 y=73 width=125.5 
htmlText={teams.selectedItem.autonomous} 
height=19 editable=false/
mx:TextArea x=109.5 y=99 width=125.5 
htmlText={teams.selectedItem.drivetrain} 
height=19 editable=false/
mx:TextArea x=109.5 y=125 width=125.5 
htmlText={teams.selectedItem.height_weight} 
height=19 editable=false/

/mx:Canvas
[/Code]

Now what i am trying to do is get it so that when i click on the
infomation in the main datagrid that i will show it in the custom
component.

Thanks.

 



RE: [flexcoders] Is there any way to access code within a flash-generated SWF?

2007-09-22 Thread Alex Harui
Flash8 swfs are sandboxed and only localConnection will communicate
between them.

 

Flash9 swfs are available to as3.  When you embed them, they get buried
in a MovieClipLoader.   You can still get at it.  Search the archives
for past threads on this topic.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of thegiffman
Sent: Saturday, September 22, 2007 3:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Is there any way to access code within a
flash-generated SWF?

 

Hi All,

Is it at all possible to access code within a flash-generated SWF? I
have an animated character that I want to color on the fly, and use
external ActionScript 3.0 class linkages to do this. However, when I
load the swf into flex by embedding the symbol, all of the types
revert to MovieClip and I cannot call any of the methods. 

This is frustrating. Is there any way around this, or must all code
be done only after the files are loaded into flex?

 



RE: [flexcoders] Re: Is it possible to query a Flash SWF for its images / symbol list ?

2007-09-22 Thread Alex Harui
There is no API to query a SWF for its contents.  The easiest way is to
force everyone to put a list somewhere that you know how to get to.

 

There is a way to load the swf as a bytearray and scan its contents, but
that won't be fun.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of helihobby
Sent: Saturday, September 22, 2007 5:50 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Is it possible to query a Flash SWF for its
images / symbol list ?

 

The issue I am trying to solve is this ...

If a user loads a compiled SWF to my site ... How can I dynamically 
from within Actionscript get a list of the embeded images ( 
Symbols ) ?

Is it possible ?

Regards and thanks again,

Sean.

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

 Hello all,
 
 I have a SWF that has some Symbols / images !!! ( Created using 
Flash 
 Editor CS3 )
 
 How can I retrieve the Symbols list it holds using ActionScript 
from 
 the loaded Flash swf ? ( I Used SWFLoader to load it ... )
 
 Regards,
 
 Sean.
 
 Click below to view my ALON Design Pattern:
 
 http://www.helihobby.com/html/alon_desingpattern.html
http://www.helihobby.com/html/alon_desingpattern.html 


 



[flexcoders] SWFLoader onRoll: can it be set in Actionscript?

2007-09-22 Thread grimmwerks
I've got a swfloader that I want to assign it's rollOver / rollOut  
handler to call only after it's creationComplete fires - can I do it  
in actionscript?

In other worse, I've a page that loads in - and if the user's cursor  
is right over the area of the swfloader as it's being drawn, it gets  
all screwed up; is there a simple way of setting this? 


[flexcoders] Re: Setting the crossdomain.xml file for WebService in a diffferent path than ro

2007-09-22 Thread Claude Hussenet

Yes,I did specify a WSDL.

As noticed in my previous email the crossdomain.xml is loaded from the
web ROOT domain  at the instanciation of the WebService regardless of
calling the method flash.system.Security.loadPolicyFile.

When I call the method loadPolicyFile,the crossdomain.xml file
is loaded TWICE.Once from the location specified by loadPolicyFile and
twice from the web ROOT domain.

Let me know if I miss something.

Thx-Claude






--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 I'm not well-versed on webservice.  Did you specify a wsdl?  Maybe it is
 getting loaded before you hit send.  When do you try to get the policy
 file?
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Claude Hussenet
 Sent: Saturday, September 22, 2007 12:34 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Setting the crossdomain.xml file for
 WebService in a diffferent path than root
 
  
 
 I am getting the Security error before calling the send method .
 
 Using an HTTP Proxy(Fiddler)I have noticed that whatever file is set
 to the loadPolicyFile method a SECOND request after is executed to 
 load the policy file from the web root domain !!
 
 So Fiddler reports 2 HTTP requests to the security policy file when 
 my component is loaded.
 One to the policy file identifies by the method 
 flash.system.Security.loadPolicyFile
 
 A second to the security file defined in the same root domain which 
 does not exist in my case.
 
 Let me know what is wrong ? 
 
 Thx-CLaude
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Alex Harui aharui@ wrote:
 
  a.b.com is not the same domain as d.b.com.
  
  
  
  You should be able to use a file from a different folder in 
 a.b.com.
  Did you get it before calling send on the webservice?
  
  
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of Claude Hussenet
  Sent: Saturday, September 22, 2007 7:34 AM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] Setting the crossdomain.xml file for 
 WebService in
  a diffferent path than root
  
  
  
  
  I would like to be able to deploy the crossdomain file
  in the same domain name as the webservice but NOT in the root
  domain.
  
  Possible solution would be able to set the path of the crossdomain 
 file 
  before the initialization of the webservice on the client side.
  
  I tried the following method without any success :
  flash.system.Security.loadPolicyFile
 (http://samedomainasmyws:sameportas
 http://samedomainasmyws:sameportas 
  myws/onefolder/onsubfolder/crossdomain.xml
  
 http://samedomainasmyws:sameportasmyws/onefolder/onsubfolder/crossdo
 http://samedomainasmyws:sameportasmyws/onefolder/onsubfolder/crossdo 
 mai
  n.xml );
  
  
  Do I miss something ?
  
  Thx for your help.
  
  Claude Hussenet
 





[flexcoders] Datagrid Sorting by Row

2007-09-22 Thread Jeremy Rottman
I am not even sure if this is possible, but here it comes anyways.

I have two arrays that I am using to create a the dataprovider for a
datagrid. The first grid tranMonth holds the data for the dynamic
columns that I am creating. It holds the column header, and data field.

The second grid holds all the data that is populating the datagrid.
It looks something like this transData(sort:2007, janTotal:0,
febTotal:5, etc).

The over all sort that I am trying to do is allow the user to sort by
the year they select. So that the month(column) with the most
transactions now becomes the first column in the grid.

Any help with this would be greatly appreciated.