[flexcoders] Re: Special characters (eg. Cyrillic) TextArea

2009-12-02 Thread polestar11
Thanks Andriy for your help

I've managed to track down the issue (but not explain it)
One of our team - also using Mac OSX - built his project using a manually 
updated version of Flex 3.2 sdk (versus updating to flexbuilder 3.0.2, which 
automatically udpates to the 3.2 sdk)

If I build the exact same project (same checked-out items from SVN), cyrillic 
in a release build works fine. Since then he has upgraded to Flexbuilder 3.0.2, 
so theoretically he should have the same environment as me. He has since built 
new swc versions of his component and we still get issues with typing cyrillic 
in a textarea.

For now at least there is the work around that I can build a version of his 
component to be used in my project and cyrillic / special characters will 
always work.

It is strange that with his updated environment which is the same as mine, 
there is some incompatibility that is causing special characters not to display 
properly (now this occurs in release as well as debug builds)

Cheers
Tracy


--- In flexcoders@yahoogroups.com, Andriy Panas a.pa...@... wrote:

 Hi Tracy,
 
 Are you using Safari browser under Mac OS 10.6?
 
 If yes, then probably you are victim of the following bug
 
 Can't enter cyrillic symbols
 https://bugs.adobe.com/jira/browse/FP-3213
 http://www.openradar.appspot.com/7395808
 
 --
 Best regards,
 Andriy Panas
 
 
 
 
 2009/12/1 Andriy Panas a.pa...@...:
  Hi Tracy,
  I am afraid your code sample is too generic and will not help me to isolate
  your issue.
     Me as a native speaker that uses Cyrillic alphabet had never seen any
  problems with displaying Cyrillic alphabet symbols in mx:TextArea, but
  this remain valid only for  Windows OS, never tried Mac OS.
    I see that you're running Flash Player at Mac and had created the
  issue https://bugs.adobe.com/jira/browse/FB-24484 at Adobe JIRA bug-base,
  let move the discussion over this issue to Adobe JIRA.
     You should try as many Flash player dot versions as possible to test this
  issue, e.g 9.0.115,  9.0.246, 10.0.32.18 etc because we are talking here not
  about Flex SDK, but about Flash player features.
  --
  Best regards,
  Andriy Panas
 
 
 
  2009/12/1 polestar11 polesta...@...
 
 
 
  Hi there
 
  It is the mx:TextArea:
  mx:TextArea width=200 y=20 x=20 /
 
  Here is a code snippet:
  mx:Box width=100% height=100% horizontalAlign=center
  verticalAlign=middle
  mx:ViewStack id=viewStack width=100% height=100% selectedIndex=1
  component:MainPanel id=mainPanel width=100% height=100% /--
  mx:VBox width=100% id=progressView height=100%
  horizontalAlign=center verticalAlign=middle
  mx:ProgressBar height=15 indeterminate=true label=Initializing
  ChessCube ... fontSize=14 /
  /mx:VBox
  /mx:ViewStack
  /mx:Box
  mx:TextArea width=200 y=20 x=20 /
 
  The textarea works for special characters in debug mode, but not in
  release build mode. I've tried replicating / isolating the issue using
  different applications / projects but haven't found anything close to a
  solution yet, other than sometimes my tests fail for special characters 
  even
  in debug mode (I think because I haven't cleaned the project properly)
 
  Cheers
  Tracy
 
  --- In flexcoders@yahoogroups.com, Gordon Smith gosmith@ wrote:
  
   BTW, are you are talking about the old MX TextArea or the or new Spark
   TextArea?
  
   Gordon Smith
   Adobe Flex SDK Team
  
   From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
   Behalf Of Andriy Panas
   Sent: Monday, November 30, 2009 10:49 AM
   To: flexcoders@yahoogroups.com
   Subject: Re: [flexcoders] Special characters (eg. Cyrillic)  TextArea
  
  
  
   Hi polestar11,
  
   Simple code sample will definitely help to understand your issue.
  
   --
   Best regards,
   Andriy Panas
  
  
   2009/11/30 polestar11 polestar11@mailto:polestar11@
  
  
   Hi there
  
   I have a problem where I am not able to paste special characters (eg.
   cyrillic  arabic) into a flex TextArea component. This occasionally 
   happens
   in a debug version of my app and always happens in a release build.
  
   I created a test application in the same project to try isolate the
   issue. I intermittently am not able to paste special characters into a
   textarea. I also created a different project entirely and never 
   experience
   the issue.
  
   My guess is that the compiler is misbehaving  getting stuck.
  
   Any help MUCH appreciated
  
   Cheers
   Tracy
  
  ,___
 





[flexcoders] Re: remote php

2009-12-02 Thread valdhor
Download WebORB for PHP 
(http://www.themidnightcoders.com/products/weborb-for-php/overview.html) and 
place it on your server somewhere.

When you create your Flex project, do NOT set a server type (All this does is 
setup your project for you. You can do it manually).

You can either code your connection manually or use config XML files (eg. 
services-config.xml). Going forward I would recommend the config XML files.

A semi tutorial for creating and using a connection manually can be found at 
http://tech.groups.yahoo.com/group/flexcoders/message/126803

One of these days, I will have to create a full tutorial on this (I have been 
threatening to do so for awhile ;-)

If you need any help, don't hesitate to ask.



--- In flexcoders@yahoogroups.com, gandalfhr gandal...@... wrote:

 Hi,
 i opened an account at 000webhost.com and put some of my php files that 
 access mysql there. How do i use those php files in flash builder? In all the 
 tutorials i have seen, people use localhost as Root URL and some local folder 
 for Web Root..
 
 Plz help





RE: [flexcoders] Re: the most popular way to be connected with sql server REFdn0085136210

2009-12-02 Thread dennis
Nobody knows about AWS!?

 

dennis

 

From: dennis [mailto:den...@anel.cc] 
Sent: Monday, November 30, 2009 11:57 PM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] Re: the most popular way to be connected with sql
server REFdn0085136210

 

Guys have a look at the AWS. the Amazon Web Services where they look just
great. at least from introduction pages.

They serve their extreme servers and their capabilities, not for free, but
for few money.

Read this. http://aws.amazon.com/what-is-aws/ and specially this.
http://aws.amazon.com/rds/ 

 

Share your thoughts. It is the begging of the cloud computing.

Does anybody has experience on AWS?

 

dennis

...we are what we are doing...  P Think! before you print. 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of valdhor
Sent: Wednesday, November 25, 2009 3:18 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: the most popular way to be connected with sql
server REFdn0085136210

 

  

There is a community edition of WebORB for PHP that is free. Also, Adobe has
ties with Zend and you can use Zend_AMF (Part of the Zend Framework) for
free.

I think free is cheap enough for everyone ;-}

Also, if you want to connect directly to a MySQL database you can look into
a component like ASSQL (http://code.google.com/p/assql/)

 



[flexcoders] Trying to compile LZW compresses resource strings into aResource Rodule

2009-12-02 Thread taude1
Hello,
  I'm using the command-line flex compiler to compile LZW resource strings into 
a SWF that can be dynamically loaded into an application at run time.  I have 
no problem generating the Module and and loading it into the application when 
I'm doing simple name value pairs.
  I wish to use more complex name value pairings where the value is a LZW 
compressed WSDL file...
  I'm having issues with the encoded string wrapping multiple lines in the 
resource file.  I've tries appending the \ at the end of the line, and this 
seems to fix the problem of getting the resrouce SWF to actually compile.  
However, it's (or something is) corrupting the compressed LZW string so it 
doesn't decode properly.

  Anyone ever done anything like this?  Any ideas?
 
Thanks




[flexcoders] Re: the most popular way to be connected with sql server REFdn0085136210

2009-12-02 Thread valdhor
I know that I don't. I use my own local web services.

--- In flexcoders@yahoogroups.com, dennis den...@... wrote:

 Nobody knows about AWS!?
 
  
 
 dennis
 
  
 
 From: dennis [mailto:den...@...] 
 Sent: Monday, November 30, 2009 11:57 PM
 To: 'flexcoders@yahoogroups.com'
 Subject: RE: [flexcoders] Re: the most popular way to be connected with sql
 server REFdn0085136210
 
  
 
 Guys have a look at the AWS. the Amazon Web Services where they look just
 great. at least from introduction pages.
 
 They serve their extreme servers and their capabilities, not for free, but
 for few money.
 
 Read this. http://aws.amazon.com/what-is-aws/ and specially this.
 http://aws.amazon.com/rds/ 
 
  
 
 Share your thoughts. It is the begging of the cloud computing.
 
 Does anybody has experience on AWS?
 
  
 
 dennis
 
 ...we are what we are doing...  P Think! before you print. 
 
  
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of valdhor
 Sent: Wednesday, November 25, 2009 3:18 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: the most popular way to be connected with sql
 server REFdn0085136210
 
  
 
   
 
 There is a community edition of WebORB for PHP that is free. Also, Adobe has
 ties with Zend and you can use Zend_AMF (Part of the Zend Framework) for
 free.
 
 I think free is cheap enough for everyone ;-}
 
 Also, if you want to connect directly to a MySQL database you can look into
 a component like ASSQL (http://code.google.com/p/assql/)





[flexcoders] Re: Trying to compile LZW compresses resource strings into aResource Rodule

2009-12-02 Thread taude1
I've changed my strategy a bit on this and I'm using the [Embed] directive with 
application/octet-stream.

It seems that there's some default compression going on when the MXMLC compiler 
embeds these text assets.  

Does anyone know what it is?  I can't find much in the docs, though I probably 
missed it.

Thanks

--- In flexcoders@yahoogroups.com, taude1 tpreka...@... wrote:

 Hello,
   I'm using the command-line flex compiler to compile LZW resource strings 
 into a SWF that can be dynamically loaded into an application at run time.  I 
 have no problem generating the Module and and loading it into the application 
 when I'm doing simple name value pairs.
   I wish to use more complex name value pairings where the value is a LZW 
 compressed WSDL file...
   I'm having issues with the encoded string wrapping multiple lines in the 
 resource file.  I've tries appending the \ at the end of the line, and this 
 seems to fix the problem of getting the resrouce SWF to actually compile.  
 However, it's (or something is) corrupting the compressed LZW string so it 
 doesn't decode properly.
 
   Anyone ever done anything like this?  Any ideas?
  
 Thanks





[flexcoders] XMLList += operator

2009-12-02 Thread Breizo
Hi,
I am a bit puzzled by the XMLList operator +=.
I created the following small test code:
var xmll:XMLList = new XMLList();
xmll+=node1/;
trace(xmll.toXMLString());
addX(xmll);
trace(xmll.toXMLString());
  
private function addX(x:XMLList):void{
  x+=node2/;
  trace(x.toXMLString());
}
  
and I was expecting to see:
node1/
node1/
node2/
node1/
node2/
but instead I saw :
node1/
node1/
node2/
node1/
i.e., the += seems to create a new instance of the XMLList, it doesn't update 
the current one.
  
Can anyone confirm?
Thanks


[flexcoders] Multiple -services in Flex compiler

2009-12-02 Thread Wally Kolcz
Ok, here is a fun one that I might be wrong on, but...

I am using ColdFusion to connect with the majority of my data in an 
application. It works fine and all is right in the world. However, I am 
also attempting to use WebORB.NET to do chat and video chat. I kept getting 
this error when ever I attempted to connect to the server.

Channel 'weborb-rtmp' does not exist in the configuration.

After Googling the issue, I see that I need to add '-services 
c:\Inetpub\wwwroot\weborb30\web-inf\flex\services-config.xml' to the 
compiler so it can connect to the services-config.xml. Ok, that makes 
sense...however...

I am currently connecting to '-services 
C:\Apache\htdocs\WEB-INF\flex\services-config.xml' to connect to the 
ColdFusion server.

Can you have 2 arguments for services? I don't suppose I can still connect 
to CF if I remove the current service (No,tested). Since they are both the 
same file name, and I have CF running on the Prod server, can I combine the 
two together?

Wow, this would suck if I have to drop one or the other since they both are 
serving 2 different purposes for me right now...

Thanks for any ideas.



[flexcoders] Re: Multiple -services in Flex compiler

2009-12-02 Thread valdhor
You can only include one -services argument to the compiler but you could try 
using the XML command:

service-include 
file-path=c:\Inetpub\wwwroot\weborb30\web-inf\flex\services-config.xml /

inside your current services-config.xml file.


--- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote:

 Ok, here is a fun one that I might be wrong on, but...
 
 I am using ColdFusion to connect with the majority of my data in an 
 application. It works fine and all is right in the world. However, I am 
 also attempting to use WebORB.NET to do chat and video chat. I kept getting 
 this error when ever I attempted to connect to the server.
 
 Channel 'weborb-rtmp' does not exist in the configuration.
 
 After Googling the issue, I see that I need to add '-services 
 c:\Inetpub\wwwroot\weborb30\web-inf\flex\services-config.xml' to the 
 compiler so it can connect to the services-config.xml. Ok, that makes 
 sense...however...
 
 I am currently connecting to '-services 
 C:\Apache\htdocs\WEB-INF\flex\services-config.xml' to connect to the 
 ColdFusion server.
 
 Can you have 2 arguments for services? I don't suppose I can still connect 
 to CF if I remove the current service (No,tested). Since they are both the 
 same file name, and I have CF running on the Prod server, can I combine the 
 two together?
 
 Wow, this would suck if I have to drop one or the other since they both are 
 serving 2 different purposes for me right now...
 
 Thanks for any ideas.





[flexcoders] Passing Excel file to Java

2009-12-02 Thread Matthew
Hi -

I have a Flex UI and I want to allow a user to upload an Excel file. Since 
parsing Excel in Flex is quite difficult I'd rather pass it to Java (via Blaze 
DS) and have Java return me a CSV file. 

But I'm doubtful that I can pass an Excel file thru Blaze. Can I? Is there some 
other trickery I can use? 

Thanks for any tips. 

Matt



[flexcoders] Help, please

2009-12-02 Thread Greg Morphis
I need help when trying to compile a Flex 2 app with SSL using Ant I
keep getting an error. I've Googled Error: Unable to locate specified
base class 'mx.core.Application' for component class 'index'
with not much help. I'm using Eclipse with Flex builder 2 lugin. Please help.

Buildfile:
C:\eclipseworkspace\flexdev\rrtbuilds\RetailForms.xml

compileSSL:
[java] Loading configuration file C:\Program Files\Adobe\Flex Builder
2 Plug-in\Flex SDK 2\frameworks\flex-config.xml
[java] C:\Temp\RetailForms\index.mxml: Error: Unable to locate
specified base class 'mx.core.Application' for component class
'index'.
BUILD FAILED

C:\eclipseworkspace\flexdev\rrtbuilds\RetailForms.xml:85: Java returned: 1

Total time: 3 seconds

Here's from the build file

!-- compile the actual project for SSL --
target name=compileSSL depends= 
java jar=${mxmlcjar}
fork=true
failonerror=true
maxmemory=128m
dir=${flexsdk}\frameworks
arg value=-local-fonts-snapshot=${flexsdk}\frameworks\winFonts.ser/
arg value=-load-config=${flexsdk}\frameworks\flex-config.xml/
arg value=-services=${flexservices}\ssl-services-config.xml /
arg value=-include-libraries=${lib}\cairngorm.swc /
arg value=-include-libraries+=${lib}\RRTUtilities.swc /
arg value=-context-root=/ /
arg value=-output=${bin}\${flex.ouput_file} /
arg value=-file-specs=${src}\${flex.src_file}/
/java
/target


[flexcoders] Re: Passing Excel file to Java

2009-12-02 Thread valdhor
I came across this just the other day (It's no use to me as I don't use Java) 
which may be useful to you:

http://www.adobe.com/devnet/flex/articles/file_upload.html

--- In flexcoders@yahoogroups.com, Matthew fume...@... wrote:

 Hi -
 
 I have a Flex UI and I want to allow a user to upload an Excel file. Since 
 parsing Excel in Flex is quite difficult I'd rather pass it to Java (via 
 Blaze DS) and have Java return me a CSV file. 
 
 But I'm doubtful that I can pass an Excel file thru Blaze. Can I? Is there 
 some other trickery I can use? 
 
 Thanks for any tips. 
 
 Matt





[flexcoders] html_template replaces in js folder at random

2009-12-02 Thread djhatrick
It's always replacing these files -  I don't know where it gets them from, they 
are not in my project.  Is there a way to make the ones I want 'stick', I have 
my html_template connected with subversion, so I can get my files back.

Thanks for your time,
patrick



[flexcoders] Re: Changing the background of an AS3 project in Flex

2009-12-02 Thread djhatrick

If you don't need it to by dynamic put this at the top of your constructor:

[SWF(width=1000, height=1000, frameRate=24, 
backgroundColor=#00)]

P

--- In flexcoders@yahoogroups.com, Calbeans jwrigh...@... wrote:

 
 
 --- In flexcoders@yahoogroups.com, Michael mportuesi@ wrote:
 
  In your top-level application MXML file, try adding this attribute to your 
  mx:Application tag:
  
  mx:Application 
xmlns:mx=http://www.adobe.com/2006/mxml; 
backgroundColor=#ff
  
  
  
  
  --- In flexcoders@yahoogroups.com, Calbeans jwright04@ wrote:
  
   Hi All, 
   
   I'm working on an AS3 project using Flex and I'm trying to figure out how 
   to change the background from that default light off blueish color to 
   something different.  I looked at the index.template.html file and 
   figured that I can do it in there, but it appears that I can't.  Anyone 
   have an idea on how to do this?? Thanks in advance.
  
 
 
 Since it's all AS3, i don't have an MXML file =(  I guess I can just publish 
 another HTML file and just use that one.  It's just one less step I wanted to 
 take, but I guess it's not a huge problem.





[flexcoders] Re: html_template replaces in js folder at random

2009-12-02 Thread djhatrick
I misspoke, it's actually my bin_debug js folder that's getting these 
mysterious js files in there... 

Does just replacing the folder fix this issue, thx?


--- In flexcoders@yahoogroups.com, djhatrick djhatr...@... wrote:

 It's always replacing these files -  I don't know where it gets them from, 
 they are not in my project.  Is there a way to make the ones I want 'stick', 
 I have my html_template connected with subversion, so I can get my files back.
 
 Thanks for your time,
 patrick





[flexcoders] Flex and Weblogic JMS

2009-12-02 Thread Nick Collins
I am having a problem with consuming messages using WebLogic 10.2's JMS to
send messages to my Flex client.

The error I am getting is the following:

*ArgumentError: Error #2173: Unable to read object in stream.  The class
weblogic.jndi.internal.WLEventContextImpl does not implement
flash.utils.IExternalizable but is aliased to an externalizable class.*

I am essentially customizing the trader desktop application to work in a
weblogic cluster ( as a POC / load testing tool ).

In my messaging-config.xml I have the following destination configured:

destination id=LCDSLoadTest
properties
network
session-timeout0/session-timeout
/network
server
max-cache-size1000/max-cache-size
message-time-to-live0/message-time-to-live
durablefalse/durable
allow-subtopicstrue/allow-subtopics
subtopic-separator./subtopic-separator
/server
jms
destination-typetopic/destination-type
message-typejavax.jms.TextMessage/message-type

connection-factoryweblogic.jms.ConnectionFactory/connection-factory

destination-jndi-nameLCDSLoadTestTopic/destination-jndi-name
delivery-modeNON_PERSISTENT/delivery-mode
message-priorityDEFAULT_PRIORITY/message-priority
acknowledge-modeAUTO_ACKNOWLEDGE/acknowledge-mode
transacted-sessionsfalse/transacted-sessions
/jms
/properties

channels
channel ref=my-rtmp/
channel ref=my-nio-amf-poll/
channel ref=my-nio-amf-longpoll/
channel ref=my-nio-amf-stream/
channel ref=my-nio-http-poll/
channel ref=my-nio-http-longpoll/
channel ref=my-nio-http-stream/
channel ref=my-polling-amf/
channel ref=my-streaming-amf/
/channels
adapter ref=jms /
/destination

My JMS topic is configured in Weblogic 10.2 as follows:

?xml version='1.0' encoding='UTF-8'?
weblogic-jms xmlns=http://www.bea.com/ns/weblogic/90; xmlns:sec=
http://www.bea.com/ns/weblogic/90/security; xmlns:xsi=
http://www.w3.org/2001/XMLSchema-instance; xmlns:wls=
http://www.bea.com/ns/weblogic/90/security/wls; xsi:schemaLocation=
http://www.bea.com/ns/weblogic/920 http://www.bea.com/ns/weblogic/920.xsd;
  topic name=LCDSLoadTestTopic
jndi-nameLCDSLoadTestTopic/jndi-name
  /topic
/weblogic-jms

Does anybody have any idea what I might be missing, and why the object is
not able to be deserialized by Flex? It works fine using the messaging built
into LCDS, but that doesn't work well in a clustered environment, so I need
to use the appserver's JMS capabilities.

Thanks in advance!

Nick


[flexcoders] How can i give tooltip to images in ADG column without using an Image renderer?

2009-12-02 Thread Thomas Silvester
Hi All,
Is there any way can I give tooltip to images w/o using an Image renderer since 
for some reason When I use an Image renderer the images are not created 
properly. Some of the icons gets created and some of them are missing. I have 
5000 to 1 icons in the AdvancedGridColumn.
 
Below is my image Renderer 
 
 
package 
{


import mx.controls.*;
import mx.events.ItemClickEvent; 
import mx.core.*;
import mx.containers.Canvas; 


public class ImageRenderer extends Canvas implements IDataRenderer
{


private var healthimage:Image= new Image(); 
private var _data:Object;
private var imageReference:Image = null;



public function ImageRenderer()
{
super();
}



override public function set data(value:Object) :void
{

if(healthimage) 
{

healthimage.source= value.Health ; 


if( healthimage.source.indexOf(0)  0){
healthimage.toolTip=Normal;
}else if (healthimage.source.indexOf(1)  0){
healthimage.toolTip=Minor;
}else if(healthimage.source.indexOf(2)  0){
healthimage.toolTip=Major;
}else if(healthimage.source.indexOf(3)  0){
healthimage.toolTip=Critical;
}else if(healthimage.source.indexOf(4)  0){
healthimage.toolTip=Down;
}else{
healthimage.toolTip=Error; 
}
}

;
}
override protected function createChildren():void
{
super.createChildren(); 
healthimage = new Image(); 
healthimage.setStyle(horizontalCenter, 0);
healthimage.setStyle(verticalCenter, 0); 
addChild(healthimage) ;


}
}



}
 
 
Thanks in Advance,
Anitha.

[flexcoders] Does any one know why ican not drag and drop ADG column with icons as data

2009-12-02 Thread Thomas Silvester
Hi All,
Doea anyone know why I can not Drag and Drop coulms with icons as Data? Is 
there any way i can do this?
 
thanks,
Anitha.

[flexcoders] How can I sort ADGColumn with icons as data?

2009-12-02 Thread Thomas Silvester
Hi All,
 How can I sort icons according to  severity in an ADG column? Please if any 
one know can you give me sample code?
thanks,
Anitha.

[flexcoders] DataGrid adds extra row unexpectedly

2009-12-02 Thread Amy
Hi, all;

I have a datagrid whose rowcount is set to thedataGrid.dataProvider.length -1 
(because the datagrid has no header row, I have to subtract 1).

The problem is that, even though the datagrid's editable property is set to 
false, there appears to be an extra, invisible row at the bottom of the 
datagrid that, if you roll over it, will highlight one of the rows (two up from 
the bottom).  If you click while the highlight is visible, it will add an extra 
row to the datagrid.  When this happens, the itemClick event does not fire, so 
I can't prevent this with preventDefault() on that event.

Does anyone know what event I should be looking at for this, or whether there's 
a property that equates to don't allow wonky extra invisible row to be 
clickable and add data to my dataprovider?

Thanks;

Amy



[flexcoders] Logging in flex (urgent help)

2009-12-02 Thread Shashi
Hi All,

 Can anybody help me in creating logs in flex.
For example when i click a button it should create a log in a file in 
specified destination



Re: [flexcoders] Re: Starting with Cairngorm or PureMvc

2009-12-02 Thread Malik Jaibeer
Hi Christophe,

There are multiple things you would like to explore about different available 
Flex MVC frameworks. The list is big like Cairngorm, PureMVC, Swiz, Mate, MVCS, 
RobotLegs, Parsley etc. and each one has its own pros and cons. But compare 
these with your requirements:

-Learning curve
-Dependency injection (IOC)
-Documentation
-Convention over configuration
-Testing
-Easy solution to common business problems (like view notifications etc.)
-Boiler plate code
many more similar things

I started with Cairngorm (see different posts here, 
http://jaibeermalik.wordpress.com/category/tech-stuff/flex/) and found that 
there are multiple hooks and extensions I need to use to solve small-small 
things which are provided by other frameworks out of box.

I compared few like PureMVC, Mate and Swiz, and figured out that Swiz is good 
choice for me. The learning curve for PureMVC is more. Mate is more mxml 
oriented which I don't want to code every time (prefer it be JAVA way :) ) and 
Swiz is more of Metadata/Annotation based.

Have a look at the sample code of Swiz application and see if you like it and 
fits best for you.

Thanks,
-Jai
http://jaibeermalik.wordpress.com







--- In flexcod...@yahoogro ups.com, Christophe christophe_ jacquelin@ ... 
wrote:


 Hello, 
 
 Is it easy to learn and use Cairngorm or PureMvc. I have a one year 
 application and I would like to use these frameworks to structured it.
 
 Thank you,
 Christophe,



 


  The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. 
http://in.yahoo.com/

[flexcoders] Chart Markers

2009-12-02 Thread deanriverson
Is there a way to draw a marker on top of a line chart?  In my case, I need to 
draw and update this marker (a simple line would do) as a video is being played.

Regards,

Dean



[flexcoders] 5.1 soundchannel

2009-12-02 Thread Csomák Gábor
Hello!
anyone has an idea, how to make a stereo sound played on all speakers in a
5.1 system?
thanks!


[flexcoders] Re: remote php

2009-12-02 Thread gandalfhr
ok.. im new at this so help me out a little bit more
in order to use bind to data function in flash builder with php service type, 
i have to set my project's server type to php and fill out the Web Root and 
Root URL parameters. I know that i can install say apache server on my pc and 
then use http://localhost as Root URL. But what do i use if i dont install 
local apache server and instead put my php files on some free web host like i 
mentioned?


--- In flexcoders@yahoogroups.com, Csomák Gábor csom...@... wrote:

 you can use the urlloader class (
 http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/URLLoader.html
 )
 for faster performance, you should use amfphp. (http://www.amfphp.org/)
 there are other methods for querying db. From list FAQ:
 
 Q: How do I get Flex to query my database?
 
 A: Flex does not have any native database integration functionality. you
 will require some server-side tier that will do the database access and
 send the data back to Flex via one of three protocols:
 
 * RemoteObjects: Fastest. communicates with server side EJB's or POJOs using
 AMF, a binary, compressed format.
 * HTTPService: uses HTTP protocol. Sources can be JSP, ASPx,.NET, files, any
 url
 that returns HTTP.
 * WebService: Slowest. Uses SOAP protocol. Sources can be .Net, or any
 WebService.
 
 2009/12/1 gandalfhr gandal...@...
 
 
 
  Hi,
  i opened an account at 000webhost.com and put some of my php files that
  access mysql there. How do i use those php files in flash builder? In all
  the tutorials i have seen, people use localhost as Root URL and some local
  folder for Web Root..
 
  Plz help
 
   
 
 
 
 
 -- 
 before printing, think about enviromental responsibility





[flexcoders] How use an environment variable in a custom config.xml given to mxmlc ?

2009-12-02 Thread Yannick Lacaute
Hi, I am using FlexAntTask and I am using a custom config.xml, given to
mxmlc like this:

mxmlc ... 
 load-config filename=${APP_ROOT_DIR}/${APP_CONFIG_FILE}/
 compiler.source-path path-element=${SRC_DIR}/
/mxmlc

It works, but i can't use environment variables in the config.xml, unless
${FLEX_HOME}  !!

flex-config
compiler
library-path
...

path-element${FLEX_HOME}/frameworks/libs/path-element


path-element${THORPORA_HOME}/swc/org/thorpora/lib/ThorporaUILib.swc/path-element
/library-path
   ...

The ${THORPORA_HOME} make this error (in french yeah ^^) :
  [mxmlc] D:\workspace\ThorporaTextEditorLibTest\build.app.xml(23): Erreur:
la valeur de la variable de configuration compiler.library-path contient le
jeton inconnu THORPORA_HOME
  [mxmlc] /library-path


At the begenning of my ant script, I check environment variables and we can
see:

prepare:
 [echo] PROJECT.TYPE set to Application
 [echo] PROJECT.NAME set to ThorporaTextEditorLibTest
 [echo] FLEX_HOME set to D:\app\Adobe\flex_sdk_4.0.0.10485
 [echo] ANT_HOME set to D:\app\apache-ant-1.7.1
 [echo] THORPORA_HOME set to D:\workspace\ThorporaHome

Both ${FLEX_HOME} and ${THORPORA_HOME} are correct, but only ${FLEX_HOME}
works.

I tryied a lot's of others name like ${TEST}, $TEST, {TEST}, in user and
system environment, with machine reboot, etc, only ${FLEX_HOME} works...
(!!)

Is that a bug ? Can't we use an environment variable in a custom config.xml
? (or just a variable from the build.xml ^^)
Can you tell where are the best places to post this kind of problem ?

It's stange becasue flex-config.xml use things like
{targetPlayerMajorVersion}, it is a variable, so it should be possible to do
same... do you know whre is defined targetPlayerMajorVersion ?

Sorry, many questions... :)
Thanks.

-- 
Yannick Lacaute


[flexcoders] Re: How use an environment variable in a custom config.xml given to mxmlc ?

2009-12-02 Thread Yannick Lacaute
Ok, i solved my problem. In fact, I don't use FlexAntTask anymore which is
definitevely useless in my mind, just the executables, config file (xml) and
build.properties.

SOLUTION:
 To give variables to the config.xml loaded by -load-config, add arguments
to the compiler executable (mxmlc or compc) like that:
+myVarName=myVarValue
 Then access the variable as usual : ${myVarName}
 No need to access environment var since we can do that ofc :)

-- 
Yannick Lacaute

On Wed, Dec 2, 2009 at 8:56 AM, Yannick Lacaute
yannick.laca...@gmail.comwrote:

 Hi, I am using FlexAntTask and I am using a custom config.xml, given to
 mxmlc like this:

 mxmlc ... 
  load-config filename=${APP_ROOT_DIR}/${APP_CONFIG_FILE}/
  compiler.source-path path-element=${SRC_DIR}/
 /mxmlc

 It works, but i can't use environment variables in the config.xml, unless
 ${FLEX_HOME}  !!

 flex-config
 compiler
 library-path
 ...

 path-element${FLEX_HOME}/frameworks/libs/path-element


 path-element${THORPORA_HOME}/swc/org/thorpora/lib/ThorporaUILib.swc/path-element
 /library-path
...

 The ${THORPORA_HOME} make this error (in french yeah ^^) :
   [mxmlc] D:\workspace\ThorporaTextEditorLibTest\build.app.xml(23): Erreur:
 la valeur de la variable de configuration compiler.library-path contient le
 jeton inconnu THORPORA_HOME
   [mxmlc] /library-path


 At the begenning of my ant script, I check environment variables and we can
 see:

 prepare:
  [echo] PROJECT.TYPE set to Application
  [echo] PROJECT.NAME set to ThorporaTextEditorLibTest
  [echo] FLEX_HOME set to D:\app\Adobe\flex_sdk_4.0.0.10485
  [echo] ANT_HOME set to D:\app\apache-ant-1.7.1
  [echo] THORPORA_HOME set to D:\workspace\ThorporaHome

 Both ${FLEX_HOME} and ${THORPORA_HOME} are correct, but only ${FLEX_HOME}
 works.

 I tryied a lot's of others name like ${TEST}, $TEST, {TEST}, in user
 and system environment, with machine reboot, etc, only ${FLEX_HOME} works...
 (!!)

 Is that a bug ? Can't we use an environment variable in a custom config.xml
 ? (or just a variable from the build.xml ^^)
 Can you tell where are the best places to post this kind of problem ?

 It's stange becasue flex-config.xml use things like
 {targetPlayerMajorVersion}, it is a variable, so it should be possible to do
 same... do you know whre is defined targetPlayerMajorVersion ?

 Sorry, many questions... :)
 Thanks.

 --
 Yannick Lacaute




RE: [SPAM] [flexcoders] Logging in flex (urgent help)

2009-12-02 Thread Tracy Spratt
For logging in production, look into to the mx.logging classes in the docs.

 

For debugging I just use trace().

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Shashi
Sent: Wednesday, December 02, 2009 1:24 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] Logging in flex (urgent help)

 

  

Hi All,

Can anybody help me in creating logs in flex.
For example when i click a button it should create a log in a file in
specified destination