[flexcoders] Two way binding and stric mode compiler options

2011-08-03 Thread jitendra jain
Hi Guys,

  Iam using one data grid in which in have written one inline selectedItem 
=@{employee} , it is throwing a strict mode compiler error. I dont want to 
change my compiler options .. Please help

 

Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798

[flexcoders] Fw: Two way binding and stric mode compiler options

2011-08-03 Thread jitendra jain
This is working for other components like list but only creating problem with 
datagrid of spark library.

 
Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798

- Forwarded Message -
From: jitendra jain jitendra_jain_2...@yahoo.com
To: flex group flex flexcoders@yahoogroups.com
Sent: Wednesday, 3 August 2011 12:39 PM
Subject: Two way binding and stric mode compiler options


Hi Guys,

  Iam using one data grid in which in have written one inline selectedItem 
=@{employee} , it is throwing a strict mode compiler error. I dont want to 
change my compiler options .. Please help

 
Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798

[flexcoders] Re: HTTPService timeout?

2011-08-03 Thread mitek17
Hi,

Yep, there is PHP setting in php.ini for that

max_execution_time = 30 ; Maximum execution time of each script, in seconds

PS php_error.log is a good thing to check

Cheers,


--- In flexcoders@yahoogroups.com, georgemeng2011 georgemeng2000@... wrote:

 
 Hello,
 
 I have very simple code to call a simple PHP page. PHP page will insret
 2000 records to mysql table, takes about 2 minutes.
 
 On PHP side, it is fine, I tested the php page within browser, it ran
 for 2 minutes and stoped. (I have configured on PHP to run longer than
 normal.)
 
 One Flex side, I call PHP page using HTTPService with requestTimeout =
 300 to avoid timeout. Here is the code:
 
  var ws:HTTPService = new HTTPService();
  ws.requestTimeout = 300;
  ws.useProxy = false;
  ws.url = http://localhost:85/test.php
 http://localhost:85/test.php ;
  ws.addEventListener(FaultEvent.FAULT, fault );
  ws.addEventListener(ResultEvent.RESULT, result);
  ws.send();
 
 However, after 30 seconds, it return fault event. I really don't
 understand.
 
 Can anyone let me know how I do this correctly?
 
 Thank you!
 
 George





[flexcoders] Fw: Two way binding and stric mode compiler options

2011-08-03 Thread jitendra jain




This is working for other components like list but only creating problem with 
datagrid of spark library.

 
Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798

- Forwarded Message -
From: jitendra jain jitendra_jain_2...@yahoo.com
To: flex group flex flexcoders@yahoogroups.com
Sent: Wednesday, 3 August 2011 12:39 PM
Subject: Two way binding and stric mode compiler options


Hi Guys,

  Iam using one data grid in which in have written one inline selectedItem 
=@{employee} , it is throwing a strict mode compiler error. I dont want to 
change my compiler options .. Please help

 
Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798

Re: [flexcoders] Hide and show buttons

2011-08-03 Thread Lars Östling
Hi,

remove the quotes from your true and false values. The visible property is a
boolean property. Your non empty strings (true/false) will type coerce
to true.

Lars
http://www.flexceptional.com

On Mon, Jul 18, 2011 at 11:41 AM, chinwesley wesleyc...@hotmail.com wrote:

 **


 Hi everyone,

 I have created a viewstack that shows some text in a text area. It goes to
 the next textarea when I click the next button and the previous textarea
 when I click the previous button. What I want to do is that when it gets to
 the first textarea, it must hide the previous button (set its visible
 property to false) and then when it gets to the last textarea to hide the
 next button (set its visible property to false). I tried it here below but
 it's not working, please can you help me solve my problem:

 private function tipsResult(event:ResultEvent) {
 tips = event.result as Array;

 for each (var str:String in tips) {
 var textarea:TextArea = new TextArea;
 textarea.percentHeight = 100;
 textarea.percentWidth = 100;
 textarea.editable = false;
 textarea.setStyle(verticalScrollPolicy,true);
 textarea.setStyle(backgroundColor,#EBEBEC);
 textarea.text = str;
 var can:Canvas = new Canvas;
 can.percentHeight = 100;
 can.percentWidth = 100;
 can.addChild(textarea);
 viewstack.addChild(can);
 }
 viewstack.selectedIndex = 0;
 }

 private function viewPrevTip() : void {
 if(viewstack.selectedIndex != 0)
 viewstack.selectedIndex -= 1;

 if(viewstack.selectedIndex == 0)
 previous.visible=false;
 }

 private function viewNextTip() : void {

 if(viewstack.selectedIndex  (viewstack.numChildren -1))
 viewstack.selectedIndex += 1;

 if((viewstack.selectedIndex + 1)== viewstack.numChildren)
 next.visible=false;

 previous.visible=true;
 }

  



[flexcoders] Licence component

2011-08-03 Thread isa_loyer
Dear Flexer,

I'm developping an AIR application.
I'd like include licence system to protect my soft.

Do you if free component exist or do you have an idea to do that?

Thanks for help



[flexcoders] Form Item Multiline

2011-08-03 Thread isa_loyer
I try to do a beautiful form on my AIR app.
But with s:FormItem, I don't find how to place label in two lines.

Can you help me to solve that?

Thanks.



Re: [flexcoders] Form Item Multiline

2011-08-03 Thread Rishi Tandon
Have you tried using the StackedFormItem akin

You might have to do some skin modifications

Sent from my iPhone

On Aug 3, 2011, at 3:46 PM, isa_loyer isa_lo...@yahoo.fr wrote:

 I try to do a beautiful form on my AIR app.
 But with s:FormItem, I don't find how to place label in two lines.
 
 Can you help me to solve that?
 
 Thanks.
 
 


Re: [flexcoders] Licence component

2011-08-03 Thread Nick Collins
I don't know of any free component, but you may want to investigate either
Zarqon ( from Cliff Hall, the creator of PureMVC ), or NitroLM.

On Wed, Aug 3, 2011 at 5:14 AM, isa_loyer isa_lo...@yahoo.fr wrote:

 **


 Dear Flexer,

 I'm developping an AIR application.
 I'd like include licence system to protect my soft.

 Do you if free component exist or do you have an idea to do that?

 Thanks for help

  



Re: [flexcoders] Licence component

2011-08-03 Thread Jeffry Houser


 I believe Sharify is the other Player in the space.

 With Flextras; we wrote our own.  This isn't usually the type of thing 
you look for a free component for.


On 8/3/2011 10:12 AM, Nick Collins wrote:


I don't know of any free component, but you may want to investigate 
either Zarqon ( from Cliff Hall, the creator of PureMVC ), or NitroLM.


On Wed, Aug 3, 2011 at 5:14 AM, isa_loyer isa_lo...@yahoo.fr 
mailto:isa_lo...@yahoo.fr wrote:


Dear Flexer,

I'm developping an AIR application.
I'd like include licence system to protect my soft.

Do you if free component exist or do you have an idea to do that?

Thanks for help






--
Jeffry Houser
Technical Entrepreneur
203-379-0773
--
http://www.flextras.com?c=104
UI Flex Components: Tested! Supported! Ready!
--
http://www.theflexshow.com
http://www.jeffryhouser.com
http://www.asktheflexpert.com
--
Part of the DotComIt Brain Trust



Re: [flexcoders] Fw: Two way binding and stric mode compiler options

2011-08-03 Thread Alex Harui
A test case and full text of the error are helpful things to post.


On 8/3/11 12:58 AM, jitendra jain jitendra_jain_2...@yahoo.com wrote:








This is working for other components like list but only creating problem with 
datagrid of spark library.

Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798
- Forwarded Message -
From: jitendra jain jitendra_jain_2...@yahoo.com
To: flex group flex flexcoders@yahoogroups.com
Sent: Wednesday, 3 August 2011 12:39 PM
Subject: Two way binding and stric mode compiler opt! ions

Hi Guys,

  Iam using one data grid in which in have written one inline selectedItem 
=@{employee} , it is throwing a strict mode compiler error. I dont want to 
change my compiler options .. Please help

Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798









--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


[flexcoders] Preventing Spark List from scrolling to top when adding / removing items.

2011-08-03 Thread vigilsolace
Any time I add or remove an item from a Spark list, the list resets itself to 
display the first element at the top. Is there a way to get the list to 
remember its current location? For example if I'm scrolled half way down a list 
and remove an item I would like the list to remain scrolled to where it was, 
rather than resetting.

I'm currently listening for change events on the dataprovider and capturing the 
list layout's lastIndexInView, then using ensureIndexIsVisible to restore that 
index after the next display update. However, this still results in the list 
jumping around quite a bit. Is there a better solution? Shouldn't the list 
handle this by default?



Re: [flexcoders] Form Item Multiline

2011-08-03 Thread Isabelle Loyer Perso













[flexcoders] Launch a .bat

2011-08-03 Thread cjacquel73
Hello,

Is it possible to launch a .bat from the web application in Flex ?

Thx,
Chris,




[flexcoders] Re: HTTPService timeout?

2011-08-03 Thread georgemeng2011
Thank for taking time to answer my question!

As I mentioned in my post, I have configured and tested php within brower. It 
worked, so it is not php side issue.

My environment:

Flex Builder 4.1 with AIR 2.6, it is an AIR application. I tested within IDE as 
well as released version.

Thanks!

George


--- In flexcoders@yahoogroups.com, mitek17 mitek17@... wrote:

 Hi,
 
 Yep, there is PHP setting in php.ini for that
 
 max_execution_time = 30 ; Maximum execution time of each script, in seconds
 
 PS php_error.log is a good thing to check
 
 Cheers,
 
 
 --- In flexcoders@yahoogroups.com, georgemeng2011 georgemeng2000@ wrote:
 
  
  Hello,
  
  I have very simple code to call a simple PHP page. PHP page will insret
  2000 records to mysql table, takes about 2 minutes.
  
  On PHP side, it is fine, I tested the php page within browser, it ran
  for 2 minutes and stoped. (I have configured on PHP to run longer than
  normal.)
  
  One Flex side, I call PHP page using HTTPService with requestTimeout =
  300 to avoid timeout. Here is the code:
  
   var ws:HTTPService = new HTTPService();
   ws.requestTimeout = 300;
   ws.useProxy = false;
   ws.url = http://localhost:85/test.php
  http://localhost:85/test.php ;
   ws.addEventListener(FaultEvent.FAULT, fault );
   ws.addEventListener(ResultEvent.RESULT, result);
   ws.send();
  
  However, after 30 seconds, it return fault event. I really don't
  understand.
  
  Can anyone let me know how I do this correctly?
  
  Thank you!
  
  George
 





[flexcoders] Re: HTTPService timeout?

2011-08-03 Thread georgemeng2011
Sorry, forgot to mention that I put exactly the same code into Web application, 
it worked. 

So it must be something wrong on the AIR side. 

Again, my environment is:

Flash Builder 4.1
AIR 2.6

Thanks,

George

--- In flexcoders@yahoogroups.com, mitek17 mitek17@... wrote:

 Hi,
 
 Yep, there is PHP setting in php.ini for that
 
 max_execution_time = 30 ; Maximum execution time of each script, in seconds
 
 PS php_error.log is a good thing to check
 
 Cheers,
 
 
 --- In flexcoders@yahoogroups.com, georgemeng2011 georgemeng2000@ wrote:
 
  
  Hello,
  
  I have very simple code to call a simple PHP page. PHP page will insret
  2000 records to mysql table, takes about 2 minutes.
  
  On PHP side, it is fine, I tested the php page within browser, it ran
  for 2 minutes and stoped. (I have configured on PHP to run longer than
  normal.)
  
  One Flex side, I call PHP page using HTTPService with requestTimeout =
  300 to avoid timeout. Here is the code:
  
   var ws:HTTPService = new HTTPService();
   ws.requestTimeout = 300;
   ws.useProxy = false;
   ws.url = http://localhost:85/test.php
  http://localhost:85/test.php ;
   ws.addEventListener(FaultEvent.FAULT, fault );
   ws.addEventListener(ResultEvent.RESULT, result);
   ws.send();
  
  However, after 30 seconds, it return fault event. I really don't
  understand.
  
  Can anyone let me know how I do this correctly?
  
  Thank you!
  
  George
 





[flexcoders] HTTP requestTimeout limit in AIR 2.6?

2011-08-03 Thread georgemeng2011
I posted another post with the same question, but that post was not clear. So 
here is the update.

In short, I have the same code works in Web, Framework 3.5 AIR, but not 
Framework 4.1 AIR.


Environment first: Flash Builder 4.1, AIR 2.6

I have a PHP page which insert records to DB, takes 2 minutes to run, I have 
already configured and tested on PHP side, it worked.

When I call it using AIR application (using AIR 2.6, Framework 4.1), it return 
faults after 30 seconds, within IDE as well as after release.

However, I take the same code to web, still using Framework 4.1, it worked as 
expected; I also run the code with AIR application (Air 2.0, Framework 3.5), it 
worked as well.

So the only thing not work is Framework 4.1, AIR 2.6. That is where I don't 
understand.

Once again, no problem on server side, already tested within browser as well as 
Flex Web application, Flex 3.5 Air application.

So any ideas? The code is here, as you can see, I even set requestTimeout to 
300 seconds:

var ws:HTTPService = new HTTPService();
ws.requestTimeout = 300;
ws.useProxy = false;
ws.url = http://localhost:85/test.php;;
ws.addEventListener(FaultEvent.FAULT, fault );
ws.addEventListener(ResultEvent.RESULT, result);
ws.send();

Thanks very much!

George



[flexcoders] 60 seconds cut-off for batch HTTPService?

2011-08-03 Thread georgemeng2011
First my environment: Flash Builder 4.1, AIR 2.6

Within AIR application, I have code like this:

private function init():void
{

for ( var i:int = 0; i  500; i++ )
{
var ws:HTTPService = new HTTPService();
ws.requestTimeout = 300;
ws.useProxy = false;
ws.url = http://localhost:85/test.php;;
ws.addEventListener(FaultEvent.FAULT, fault );
ws.addEventListener(ResultEvent.RESULT, result);
ws.send();
}
}

I send multiple HTTP request to server to process, each HTTP request suppose to 
run 2 seconds then return (result or fault).

I expect the code to run up to 5 minutes. However, It run only one minutes.

I tried:
1) Increase requestTimeout, still one minute
2) Switch to different PHP server with different configuration, still one minute
3) Switch to Coldfusion, still one minute
4) Run the same code using Framework 3.5. Still one minute

Looks like when I send multiple HTTPService request, AIR/Framework override 
requestTimeout with 60 seconds. Is that true?

Just wonder where 60 seconds cut-off time come from.

Thanks very much!

George







RE: [flexcoders] mx:Datagrid nowto detect drop column

2011-08-03 Thread Sells, Fred
Would you have a snippet of that code handy?  If not, I’ll figure it out.  
Thanks.

 

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of j2me_soul
Sent: Tuesday, August 02, 2011 11:46 PM
To: flexcoders@yahoogroups.com
Subject: Re:[flexcoders] mx:Datagrid nowto detect drop column

 

  

I finish my job like yours to calculate the mouse point belongs to which cell 
using RowHeigh CellWidth then operate the dataPrivoder to do anything


At 2011-08-02 23:02:08,bu4fred fred.se...@adventistcare.org wrote:



  

I would like to move cell contents around in a datagrid (or AdvancedDatagrid if 
necessar) but so far all I can do is detect the row of the drop target.

II need to get both the row and column index of the source and destination of 
the drag-n-drop action.

Any suggestions please???










RE: [flexcoders] Flex View States

2011-08-03 Thread Sells, Fred
Could you just put your form in a modal popup window?

 

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of nikunj_n123
Sent: Tuesday, August 02, 2011 7:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex View States

 

  

Hello All,

My Application has a Tree, and all the elements of the tree belong to
the same state.
I want a new form to be launched each time I click an item of the tree.
But since all the items belong to the same state, my forms are never
recreated.

P.S - I have to use states because there are other views in my
application besides the tree.

And help/pointers are much appreciated.

Thanks and Regards





Re: [flexcoders] Launch a .bat

2011-08-03 Thread Pete
I think you'd need to install a protocol handler in a web browser and use 
gotourl to go to that protocol.

I've used the same technique to start scripts on a mac at the client... It's a 
pain, you need to do it even in Adobe Air.

Regards,
Pete 

cjacquel73 chjacque...@gmail.com wrote:

Hello,

Is it possible to launch a .bat from the web application in Flex ?

Thx,
Chris,




RE: [flexcoders] Form Item Multiline

2011-08-03 Thread yang chen

By label do you mean the form item label appeared at the front or the content 
of the form item? In the latter case try to add a VGroup inside the formitem. 
Regards,Yang
 To: flexcoders@yahoogroups.com
CC: rishitandon...@yahoo.com
From: isa_lo...@yahoo.fr
Date: Wed, 3 Aug 2011 21:38:05 +0200
Subject: Re: [flexcoders] Form Item Multiline












  

  
  












Thanks for this answer.

I try to use StackedFormItem akin but I don't where I should done
modification.



Best regards



Le 03/08/11 12:36, Rishi Tandon a écrit :

   
  
  
Have you tried using the StackedFormItem akin



You might have to do some skin modifications

  

  Sent from my iPhone


  On Aug 3, 2011, at 3:46 PM, isa_loyer isa_lo...@yahoo.fr
  wrote:

  



  
 

  I try to do a beautiful form on my AIR app.

But with s:FormItem, I don't find how to place label
in two lines.



Can you help me to solve that?



Thanks.



  


  

  
  
  
  

  
















  

[flexcoders] URGENT: Need an *Expert (Alex?)* in Flex 4.5.1 Mobile Text

2011-08-03 Thread nagaofthesea
Howdy Alex (or anyone else)-

SCENARIO:
Flex 4.5.1 mobile application targeting Android and iOS (no pad) only.
Works flawlessly on desktop emulations (all profiles) and on all Android 
devices.

Started testing on iOS 3GS and I get the following error (only top-most 
relevant lines are displayed) after the app hangs at the splash screen:

TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
at 
_iForesee_mx_managers_SystemManager/callInContext()[_iForesee_mx_managers_SystemManager.as:38]
at 
mx.core::EmbeddedFontRegistry/getAssociatedModuleFactory()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\EmbeddedFontRegistry.as:469]
at 
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::getFontContext()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:12682]
at 
mx.core::UIComponent/createInFontContext()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:12740]
at 
TitleDisplayComponent/createChildren()[/Users/srd3/Documents/codeline/iForesee-4-5-1/src/assets/skins/FActionBarSkin.as:573]
at 
mx.core::UIComponent/initialize()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7624]
at 
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7485]
at 
mx.core::UIComponent/addChild()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7166]
at 
assets.skins::FActionBarSkin/createChildren()[/Users/srd3/Documents/codeline/iForesee-4-5-1/src/assets/skins/FActionBarSkin.as:272]

COMMENT ON DEBUG OUTPUT.
I have made custom skins based on Adobe mobile skins.  The custom skins have 
F prepended to the Adobe mobile skin name.  They are clones of the mobile 
theme skins with my custom art etc as hard-coded ActinScript and FXG skins.

I have four very narrow range nonCFF embedded fonts declared appropriately at 
the top.  My data renderers use _sans.

When I mentally step through the code starting at UIComponent line 12739 I 
don't see the problem(!?!).  There are no NULLS.

I understand that the relevant lines of code causing the problem are mostly for 
debug purposes, but I just can't see what the problem is.  All the way up to 
the call to SystemManager.callInContext() there are no NULLS that I can find 
checking the variables -- save for the `this` argument which is NULL as it 
should be.

The fonts are in the registry as:
embed_font_cine_bold_normal_899163827;
embed_font_cine_medium_normal_597874558;
embed_font_serpe_bold_normal_1790603002;
embed_font_serpe_medium_normal_1688454721;

 :-/

Alex, should I just write an uncaught error handler for this?

Regards,
Naga




[flexcoders] Re: HTTP requestTimeout limit in AIR 2.6?

2011-08-03 Thread mitek17
Hi George,

Well, the difference between AIR  browser is explainable, as HTTPService 
piggybacks the browser's API, while AIR uses it's own.

A quick googling shows that there are related issues with RemoteObject calls in 
AIR 2.0
http://forums.adobe.com/thread/696177
https://bugs.adobe.com/jira/browse/FP-4934


PS I don't want to change the subject and the problem itself, but database 
script which runs for 2 mins does not sound right to me. It should take no more 
than a second to insert 2000 rows. You can check the indexes and triggers on 
the tables involved. 

Cheers,

--- In flexcoders@yahoogroups.com, georgemeng2011 georgemeng2000@... wrote:

 I posted another post with the same question, but that post was not clear. So 
 here is the update.
 
 In short, I have the same code works in Web, Framework 3.5 AIR, but not 
 Framework 4.1 AIR.
 
 
 Environment first: Flash Builder 4.1, AIR 2.6
 
 I have a PHP page which insert records to DB, takes 2 minutes to run, I have 
 already configured and tested on PHP side, it worked.
 
 When I call it using AIR application (using AIR 2.6, Framework 4.1), it 
 return faults after 30 seconds, within IDE as well as after release.
 
 However, I take the same code to web, still using Framework 4.1, it worked as 
 expected; I also run the code with AIR application (Air 2.0, Framework 3.5), 
 it worked as well.
 
 So the only thing not work is Framework 4.1, AIR 2.6. That is where I don't 
 understand.
 
 Once again, no problem on server side, already tested within browser as well 
 as Flex Web application, Flex 3.5 Air application.
 
 So any ideas? The code is here, as you can see, I even set requestTimeout to 
 300 seconds:
 
   var ws:HTTPService = new HTTPService();
   ws.requestTimeout = 300;
   ws.useProxy = false;
   ws.url = http://localhost:85/test.php;;
   ws.addEventListener(FaultEvent.FAULT, fault );
   ws.addEventListener(ResultEvent.RESULT, result);
   ws.send();
 
 Thanks very much!
 
 George