Re: [flexcoders] Halo and Spark Scroll bar problem

2011-08-01 Thread Rishi Tandon
The scroller will only apply to the container such as group which implements 
IViewport.

Rishi

Sent from my iPhone

On Aug 2, 2011, at 10:46 AM, jitendra jain  wrote:

> Thanks Alex.. Yes the component is the child of the scroller. But i want its 
> layout to be automatically..  Can u throw some more light as iam not 
> getting.. ?
>  
> Thanks,
> 
> with Regards,
> Jitendra Jain
> Software Engineer
> 91-9979960798
> From: Alex Harui 
> To: "flexcoders@yahoogroups.com" 
> Sent: Monday, 1 August 2011 9:23 PM
> Subject: Re: [flexcoders] Halo and Spark Scroll bar problem
> 
>  
> Is the component the child of the scroller?  It has to report contentSize 
> properly.  Otherwise, it probably has to report measuredWidth/Height properly.
> 
> 
> On 7/31/11 11:18 PM, "jitendra jain"  wrote:
> 
> 
>  
>  
>
> 
> Hi Guys,
> 
>   I have a halo component in which iam adding some spark components.. This 
> halo component is child of another spark component and when iam applying 
> scroller to the top spark component, it is not appearing.. Please help..
>  
> Thanks,
> 
> with Regards,
> Jitendra Jain
> Software Engineer
> 91-9979960798
> 
>
> 
> 
> 
> -- 
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
> 
> 
> 


Re: [flexcoders] HTTPService timeout?

2011-08-02 Thread Rishi Tandon
Have you check the network monitor in flash builder 4?

Sent from my iPhone

On Aug 2, 2011, at 5:16 PM, "georgemeng2011"  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";;
> 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
> 
>  
> 
>  
> 
> 


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"  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] Flex e4X escape quote in flex text input

2011-08-08 Thread Rishi Tandon
Before assigning the text use the replace method of the string class and 
replace the square to quote back

Sent from my iPhone

On Aug 9, 2011, at 4:09 AM, "isa_loyer"  wrote:

> Dear Flexer,
> 
> I use httpservice to query my database.
> when xml data is loaded on text input quote is replace by a square.
> How can I solve that.
> 
> Thanks
> 
> 


Re: [flexcoders] Re: AdvancedDataGrid Performance Issue

2011-08-09 Thread Rishi Tandon
You mean that using a adg with > 20 columns degrade the performance?

My question
How many adg are u using?
What's the no of rows for each adg?
Have u used paging?

Sent from my iPhone

On Aug 9, 2011, at 10:33 PM, Alex Harui  wrote:

> Use the profiler to see what is going on.
> 
> 
> On 8/9/11 6:57 AM, "steveroger_flex"  wrote:
> 
> 
> 
>  
>  
>
> 
> now, I have remove all renderer code of ADG.
> ADG is displaying data without any formating.
> 
> But Still its too too slow. Application struck at that point.
> 
> any idea about this?
> 
> Steve
> 
> --- In flexcoders@yahoogroups.com  , 
> "steveroger_flex"  wrote:
> >
> > I found one thing after doing some experiment with my application.
> > Slow performance is not happen due to column number exceed.
> > 
> > It happens after initializing dataprovide of ADG. Renderer will create 
> > performance problem with ADG.
> > Renderer handling some graphic (background & Font) operation depend on cell 
> > value.
> > 
> > So is there any way to minimize this problem?
> > 
> > --- In flexcoders@yahoogroups.com  , 
> > "steveroger_flex"  wrote:
> > >
> > > Hello Friends,
> > > 
> > > I am using AdvancedDataGrid to represent statistical data.
> > > I am creating AdvancedDataGrid column at runtine. Also assigning
> > > renderer at runtime. (Using this Reference
> > >  )
> > > 
> > > Actually performance issue occurs when number of columns are exceed to
> > > 20.
> > > Its really too slow. Actually application is hang at that point. I have
> > > to close the application.
> > > 
> > > How to improve ADG performance to handle this situation?
> > > 
> > > Thank you,
> > > 
> > > Steve Roger.
> > >
> >
> 
>  
>
> 
> 
> 
> -- 
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
> 


Re: [flexcoders] PopUpAnchor in the Hierarchy

2011-08-10 Thread Rishi Tandon
Jitendra can you share the solution too.

Sent from my iPhone

On Aug 10, 2011, at 11:24 AM, jitendra jain  
wrote:

> Alex.. Thanks I have resolved my problem, but want to ask you a 
> question...(may be sounds funny for u ;) )..How to know that a specific 
> component is a skin or control..?
>  
> Thanks,
> 
> with Regards,
> Jitendra Jain
> Software Engineer
> 91-9979960798
> From: Alex Harui 
> To: "flexcoders@yahoogroups.com" 
> Sent: Tuesday, 9 August 2011 12:15 PM
> Subject: Re: [flexcoders] PopUpAnchor in the Hierarchy
> 
>  
> PopUpAnchor is a child of the skin or container.
> 
> 
> On 8/8/11 10:58 PM, "jitendra jain"  wrote:
> 
> 
>  
>  
>
> 
> Alex, I want the PopUpAnchors and not the popups..
>  
> Thanks,
> 
> with Regards,
> Jitendra Jain
> Software Engineer
> 91-9979960798
> From: Alex Harui 
> To: "flexcoders@yahoogroups.com" 
> Sent: Monday, 8 August 2011 10:42 PM
> Subject: Re: [flexcoders] PopUpAnchor in the Hierarchy
> 
>
>
> PopUpAnchor or the thing it pops up?  The popups are in 
> systemManager.popupChildren.
> 
> 
> On 8/8/11 3:17 AM, "jitendra jain"  wrote:
> 
> 
>  
>  
>
> 
> Hi Group,
> 
>   From where do i find the number of PopUpAnchors in the systemManager 
> hierarchy..?
>  
> Thanks,
> 
> with Regards,
> Jitendra Jain
> Software Engineer
> 91-9979960798
> 
>
> 
> 
> 
> -- 
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
> 
> 
> 


Re: [flexcoders] how to make a class can be iterated by for each/in

2011-08-11 Thread Rishi Tandon
for each works for collection.
If you have an instance of the collections consist of your class object then u 
can retrieve each item as class object using for each iterator.

Sent from my iPhone

On Aug 11, 2011, at 2:25 PM, j2me_soul  wrote:

> How to custom a class can by iterate all children by for each
>  
> for each( var item:* in myCustomeClass ){
>  
> }
> 
> 
> 


Re: [flexcoders] Re: Spark Datagrid selectedItem question

2011-08-24 Thread Rishi Tandon
Make a pop up window which include the searchable row based on some unique ID 
and then display the row field and data inside a form.

After changing the field value, update the grid data provider with the changed 
row value.

Sent from my iPhone

On Aug 24, 2011, at 10:56 PM, "Amy"  wrote:

> How would a user edit a row that is not selected?
> 
> --- In flexcoders@yahoogroups.com, "bhaq1972"  wrote:
> >
> > How would I go about making the datagrid.selectedItem the ONLY editable row?
> > 
> > A bit like making individual columns editable by setting 
> > GridColumn.editable.
> > 
> > Thanks
> > 
> > BH
> >
> 
> 


Re: [flexcoders] How to call container's method into component file

2011-08-27 Thread Rishi Tandon
Use object oriented best practice.
Mxml I'd nothing but a actionscript class.
If u r initializing  the custom component inside the other component, then u 
can directly access the method or else use the 
Application.application.componentiD.methodName if u are 
Where are u initializing globally.

Sent from my iPhone

On Aug 28, 2011, at 2:21 AM, "shail"  wrote:

> Hi Group,
> 
> I have a customize container component in which i am using one sub-component. 
> The customize container has one overriden method save(), i want to call this 
> method in subcomponent. Can this be possible?
> 
> my code looks like this -
> 
> GraphDex.mxml
> 
> 
> overrides public void save(){
> //plz ignore syntex
> }
> 
> 
> 
> 
> 
> Here I want to call mentioned save() method in Dex component that contain 
> some graphs, so on click event of Dex graphs i want to call save 
> functionality.
> 
> As being new bee,Please suggest if my approach is wrong.
> 
> 


Re: [flexcoders] adding and managing children dynamically - accordion

2011-08-30 Thread Rishi Tandon
R u adding the datagrid after the accordian layout been created.
Might be you have to check the sequence of events for the same.

Sent from my iPhone

On Aug 31, 2011, at 1:07 AM, Michael Sumner  
wrote:

>  
> 
> I was trying to build a component that would dynamically add NavigatorContent 
> as children to an Accordion based on how many items were in an 
> ArrayCollection.  That worked I got the expected number of accordion tabs 
> labeled correctly.  I now want to add a DataGrid to each NavigatorContent.
> 
>  
> 
> When I set a break point I do not see a reference to the NavigatorContent by 
> the id that I set when they were added to the Accordion or anywhere in the 
> component. 
> 
>  
> 
> How can I work with the DataGrid and set its DataProvider, etc?
> 
>  
> 
> I will want to work with data in the DataGrid - crud
> 
>  
> 
> I was trying to mimic what I had done using JQueryMobile with header tag and 
> queries return to the cfm page.  They have a collapsible content block that 
> worked well on the small screen, but I need to be able to do more when a 
> larger screen is available.
> 
>  
> 
> Any suggestion?
> 
>  
> 
>  
> 
> 


Re: [flexcoders] Automatically flip through 3 charts

2011-09-06 Thread Rishi Tandon
Use a timer and set the rotation angle in some global variable.
Whenever user clicks on the viewstack, use apply the hlabal variable to the 
corresponding chart.

Sent from my iPhone

On Sep 6, 2011, at 7:42 PM, "chinwesley"  wrote:

> Hi everyone,
> 
> I am using Flex 4.5.
> 
> I have 3 charts in a viewstack. I would like to rotate through each chart 
> after every 5 seconds. It must do this automatically. So I guess the 
> viewstack will have to update every 5 seconds. How can I do this?
> 
> Any help is appreciated.
> 
> 


Re: [flexcoders] flex time-out Issue...????

2011-09-07 Thread Rishi Tandon
http://www.flashdevelop.org/community/viewtopic.php?f=9&t=2881

Sent from my iPhone

On Sep 7, 2011, at 9:06 AM, "Varun"  wrote:

> Hi,
> 
> I actually want to increase the flex timeout from 15sec to max 60sec.
> I have tried the following ways.
> 
> 1)By adding -default-script-timelimit 1000 60 in the Aditional compiler 
> arguments of the project properties - no result.
> 
> 2)By adding the  
> - 
> 1000 
> 60 
> 
> to the flex-config file in the sdk ---> no result.
> 
> 3) By creating my own config file and loading using -load-config in the 
> compiler arguments in the project--->no result.
> 
> I m using flash builder 4.5 version.
> 
> Any solution or suggestions always welcome.Earliest response is highly 
> appreciated.
> 
> Thanks
> Varun
> 
> 


Re: [flexcoders] Regarding a book

2011-09-07 Thread Rishi Tandon
Go through the video tutorial first and then live documentIon by adobe is the 
complete and best learning material.
Also install tour de flex for quick demos.

Sent from my iPhone

On Sep 7, 2011, at 5:59 PM, "Adarsh"  wrote:

> Hi all
> i am very new to flex please suggest me which book to follow and which one is 
> best for me...
> 
> 


Re: [flexcoders] FlashVar

2011-11-24 Thread Rishi Tandon
http://livedocs.adobe.com/flex/3/html/help.html?content=passingarguments_3.html

Sent from my iPad

On 24-Nov-2011, at 12:48 PM, "Sreeja I"  wrote:

> how to pass values using flashVar in flex?
> 
> 


Re: [flexcoders] passing Data

2011-11-24 Thread Rishi Tandon
Use http object for the same.

Sent from my iPad

On 24-Nov-2011, at 12:46 PM, "Sreeja I"  wrote:

> how to pass data from flex applications to a ne tab through url?
> 
> 


Re: [flexcoders] Re: Flex alternatives

2012-01-12 Thread Rishi Tandon
Well Ron, I don't agree with you.
There is a difference between a reality and our own perception.
I have seen a huge demand for flex based solution in 
Education (hmh, piersons)
Finance (j p morgon, boa)
Healthcare (hospira)
Entertainment (directv)
Ecommerce ( eBay ) and the list goes on and on...

If as of today companies decide to change the strategy and port all the 
existing flex based application into HTML 5, then it would take around 5 years 
to do so as HTML 5 is still not mature for web and desktop.
Check the percent of browser which support HTML 5.
N what about desktop apps that are so beautifully created using adobe air.

My personal thought is that some people are trying to take advantage of this 
bad rumours and advertising the dead tools which were existed for years.

Please be patience and watch the change.
N Stop spreading the rumours.

Regards
Rishi Tandon
Software Development Adviser Flex 


Sent from my iPad

On 13-Jan-2012, at 7:40 AM, "Ron G"  wrote:

> 
> 
> So, I think we have a similar vision for where things are going with respect 
> to Adobe supporting HTML5 for the enterprise. But, I fail to see why Flex and 
> FlashBuilder would have any part of that. Why not just fall back to your 
> excellent product, Dreamweaver, and enhance it as the IDE for building HTML5 
> style web applications? No translation is then required. 
> 
> I too like the FlashBuilder/Flex paradigm for development. But, it seems to 
> me that, sooner or later, what you end up with is the FlashBuilder paradigm 
> that allows the user to code with a pseudo OO type of HTML5 as an alternative 
> option to MXML and AS3, since we agree that it's not the translation from as3 
> to HTML5 that makes sense, but the paradigm itself. 
> 
> As for "that doesn't mean you should stop using Flex/ActionScript/FlashPlayer 
> right now", I would disagree. Over the past dozen years, I have already gone 
> through 4 generations of web architecture:
> 
> 1) CGI 
> 2) server side XSLT transformation rendering a DHTML web page for client side
> 3) Flash 2004 until Adobe abandoned the push for developers to use Flash for 
> applications and created...
> 4) Flex
> 
> I would like to settle upon a single client-side technology that I can rely 
> upon to be here in 15 years. Novell and Adobe have failed me in this regard. 
> The only piece of my stack to not drop the ball on me is Java, which is why 
> we are going with a Java based framework where the UI logic can reside server 
> side. 
> 
> Do you know how hard it is to hire someone that can come in and be competent 
> in all 4 of my web architecture generations? Very difficult. So, it's better 
> to stop developing in Flex now so that I have less older generation 
> architectures to eventually convert to ZKoss. Once that is done, finding 
> someone who can help maintain all of our projects becomes a much easier task. 
> 
> Anyway, I very much appreciate hearing from an Adobe Flex SDK staff member. 
> You have helped clarify that the direction I am taking is the right one. 
> Hopefully, it's convinced a few others to not waste time writing in a 
> technology that will one day require migration of an even greater backlog of 
> projects to their inevitably new chosen technology stack.
> 
> Ron
> 
> --- In flexcoders@yahoogroups.com, Alex Harui  wrote:
> 
> > I'm not in disagreement that in the long term, the advantages of 
> > Flex/ActionScript/FlashPlayer will be diminished by advances in the 
> > HTML/CSS/JS stack. That's why Adobe has made a major strategic shift to 
> > become the tooling leader in the HTML stack. But that doesn't mean that you 
> > should stop using Flex/ActionScript/FlashPlayer right now.
> > 
> > Many folks who work with HTML/CSS/JS, even using the many libraries and 
> > development methodologies available for it, still feel like the Flex 
> > paradigm is superior. Apparently, even Google agrees because they are 
> > trying to create their own version of that paradigm with DART.  While 
> > translated code is never as good, the productivity advantages of a better 
> > paradigm have been pretty much proven to be worth it, otherwise, Flex 
> > wouldn't have been that successful either since MXML isn't as efficient as 
> > pure ActionScript, and Google wouldn't have invested so much in writing 
> > their website logic in Java and/or Google Closure and/or DART.
> > 
> > There is general support in the Apache Flex project for exploring ways of 
> > using the Flex paradigm to create HTML5 apps. Those working on the project 
> > are motivated to future-proof their investment in Flex. I don't see any 
> > technical issue blocking us from translating the paradigm to HTML5, and I 
> > invite all those who like the Flex paradigm to participate. But at the same 
> > time, there is lots of work to be done, lots of solutions to be built, and 
> > lots of money to be made on the Flex/AS/FP stack while we wait for the 
> > HTML5 stack to deliver on its promises.
> 
> 


Re: [flexcoders] different handling of mouseWheelEvents in internet explorer and firefox/Chrome

2012-02-09 Thread Rishi Tandon
Have u checked the version of flash player plugin installed for IE?

Sent from my iPad

On 09-Feb-2012, at 5:26 PM, Wouter Schreuders  wrote:

> Hi All
> 
> 
> I've been having problems with the amount of scrolling that happens when you 
> use the mouse-wheel with VScrollBar. I came up with two possible 
> solutions(well actually my co-worked came up with the one and I came up with 
> the other), one is to prevent the default behaviour of the mouseWheelChanging 
> event. The other was to extend the vScrollbar class and overwrite some 
> functionality inside it. Both implementations are below. The problem is that 
> while both of these solutions work inside of firefox and chrome, they don't 
> seem to work in IE9, I'm guessing that IE9 is somehow sending mouse-wheel 
> events differently to the way it's done with the flashplayer in the other 
> browsers.
> 
> Has anyone encountered this before and know of a workaround?
> 
> Thanks
> 
> Wouter
> 
> like so:
> 
> ---MXML-
>  mouseWheelChanging="MouseWheelInhibitor.mouseWheelChangingHandler(event)" />
> --- AS 
> -
> package za.co.briteblue.twentytwoseven.presentation.components
> {
>   import mx.events.FlexMouseEvent;
>   
>   import spark.components.VScrollBar;
> 
>   public class MouseWheelInhibitor
>   {
>   public static function 
> mouseWheelChangingHandler(event:FlexMouseEvent):void
>   {
>   // don't scroll by preventing default
>   event.preventDefault(); 
>   // est amount to scroll based on height of viewport.
>   var delta:Number = 
> VScrollBar(event.target).viewport.height / 20;
>   
>   if(event.delta < 0)
>   
> VScrollBar(event.target).viewport.verticalScrollPosition += delta;
>   else
>   
> VScrollBar(event.target).viewport.verticalScrollPosition -= delta;
>   }
>   }
> }
> 
> --- other solution extending the vscrollbar 
> class -
> 
> package za.co.briteblue.twentytwoseven.presentation.components
> {
>   import flash.events.Event;
>   import flash.events.MouseEvent;
>   
>   import mx.core.IInvalidating;
>   import mx.core.mx_internal;
>   import mx.events.FlexMouseEvent;
>   
>   import spark.components.VScrollBar;
>   import spark.core.IViewport;
>   import spark.core.NavigationUnit;
>   import spark.utils.MouseEventUtil;
>   
>   use namespace mx_internal;
>   
>   public class TTSVScrollBar extends VScrollBar
>   {
>   public function TTSVScrollBar()
>   {
>   super();
>   }
>   
>   // @author: braam
>   // overridden to prevent viewport forced validation with every 
> vertical scroll position update.
>   // when viewport is a datagrid, performance is terrible for 
> mouse wheel scrolling.
>   override mx_internal function 
> mouseWheelHandler(event:MouseEvent):void
>   {
>   const vp:IViewport = viewport;
>   if (event.isDefaultPrevented() || !vp || !vp.visible || 
> !visible)
>   return;
>   
>   // Dispatch the "mouseWheelChanging" event. If 
> preventDefault() is called
>   // on this event, the event will be cancelled.  
> Otherwise if  the delta
>   // is modified the new value will be used.
>   var changingEvent:FlexMouseEvent = 
> MouseEventUtil.createMouseWheelChangingEvent(event);
>   if (!dispatchEvent(changingEvent))
>   {
>   event.preventDefault();
>   return;
>   }
>   
>   const delta:int = changingEvent.delta;
>   
>   var nSteps:uint = Math.abs(delta);
>   var navigationUnit:uint;
>   var scrollPositionChanged:Boolean;
>   
>   // Scroll delta "steps".  
>   navigationUnit = (delta < 0) ? NavigationUnit.DOWN : 
> NavigationUnit.UP;
>   for (var vStep:int = 0; vStep < nSteps; vStep++)
>   {
>   var vspDelta:Number = 
> vp.getVerticalScrollPositionDelta(navigationUnit);
>   if (!isNaN(vspDelta))
>   {
>   vp.verticalScrollPos

Re: [flexcoders] Copy Support in Adobe Flex 4.6

2012-08-10 Thread Rishi Tandon
Hi Balinder,

You can create a CUSTOMISED UI control where the selectable is always TRUE. 
Later you can replace all LABEL component with the custom UI control.

You can apply same approach to other component as well. 

Sent from my iPad

On 10-Aug-2012, at 8:28 PM, Balinder Ahuja  wrote:

> Hi all,
>  
> I'm trying to implement copy support/ selecting the text from flex 
> application and copy it on notepad or MS word etc.
>  
> I know we can set set selectable = "true" and it allow us to copy the text
> 
>  
> or we can use this 
>  
> 
> 
> 
> 
> 
>  
> I want it to set across the application and we have few applications based on 
> flex and it will be very time consuming and not efficient to apply it to each 
> and every tag.
>  
> Note: We are not developing any application from scratch, I've to apply it to 
> existing application.
>  
> If you have some solution or example, that will be very helpful for me.
>  
> Thanks
> 
> 
> 
> 
> 
> 
> 
>  

Re: [flexcoders] Re: What happened to the Flex Style Explorer?

2013-02-14 Thread Rishi Tandon
Please Find Attached :)

Sent from my iPhone

On Feb 14, 2013, at 10:25 PM, "Gohlke, Greg"  
wrote:

> Sorry for my ignorance but what is PFA?
>  
> Thanks,
>  
> Greg   
> 
> This message may contain confidential information only for the use of the 
> intendedrecipient. No waiver of confidentiality, privileged or 
> otherwise, is intended or made by this communication. Any use, dissemination 
> or copying not authorized by Edict Systems, Inc. is strictly prohibited. If 
> you have received this email in error or are not the intended recipient, 
> please immediately notify Edict Systems, Inc. and destroy all copies. Any 
> dissemination or use of this information by a person other than the intended 
> recipient is unauthorized and may be illegal.
>  
>