[flexcoders] Re: f_in_box memory issues

2009-07-10 Thread ag_rcuren
I was messing around and opened several instances of my application 
simultaniously and received a warning that my I was out of virtual memory. So I 
starting looking at task manager and saw that my page file usage was around 8 
gig! After seeing this I jumped over to process view and saw that my app was 
using quite a bit of virtual memory. This lead me to test the flex app straight 
in the Flash player and then in the f_in_box test application because I wanted 
to ensure that it was not our other code. Running Flash player next to f_in_box 
I noticed via task manager that the f_in_box process was using a large amount 
of virtual memory.

Again this is virtual memory (page file) usage. Inside of task manager you can 
select more information to be shown, one of which is virtual memory. The non 
virtual memory usage that it shows for the application is about what we expect.

I have no idea what would cause f_in_box to be using so much of the page file.

--- In flexcoders@yahoogroups.com, Steve Mathews  wrote:
>
> What methods are you using to determine the memory usage? We use f_in_box
> and I don't think we have seen that kind of discrepancy before.
> 
> On Fri, Jul 10, 2009 at 11:57 AM, ag_rcuren wrote:
> 
> > I am currently using f_in_box for a project I am working on. I was doing
> > some profiling and noticed that when using f_in_box virtual memory usage is
> > super high. When running our app stand alone in the flash player we are
> > seeing virtual memory usage of around 20 megs vs. running in f_in_box it is
> > around 120 megs. This is over 5 times worse. I was hoping some one might
> > have some insight or may have worked with f_in_box before and dealt with
> > this issue.
> >
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Alternative FAQ location:
> > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> > Links
> >
> >
> >
> >
>




RE: [flexcoders] Max Chr limit in TextArea

2009-07-10 Thread Alex Harui
I'm wondering if you're hitting a parsing error rather than limit.  How many 
bytes are we talking about?  What if you shovel in that many bytes of plain 
text?

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Don Kerr
Sent: Friday, July 10, 2009 6:34 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Max Chr limit in TextArea





I have a large html text log loading into a TextArea and it truncates. The full 
html makes it from the server to the Flex client, but not all of it shows in 
the TextArea.

Setting Max Chr = 0, for unlimited size, is really still limited. Setting Max 
Chr to a very high number doesn't work.

Is there a way to truly increase/override the limit?

Thanks,
Don Kerr
Manager, Space City Adobe User Group



[flexcoders] Flash component play in flex issue

2009-07-10 Thread j2me_soul
I use this code to jump to each frame. But the component didn't play as same as 
playing in flash.

All the transition effect disappear. It just jump one frame to another directly 
without transition.

How to make the component play as in flash ?

 

if (stateBtn.currentLabel == "tiny")
{
 stateBtn.gotoAndPlay("half");
 stateBtn.stop();
}
else if (stateBtn.currentLabel == "half")
{
 stateBtn.gotoAndPlay("entire");
 stateBtn.stop();
}
else
{
 stateBtn.gotoAndPlay("tiny");
 stateBtn.stop();
}




[flexcoders] Flash component play in flex issue

2009-07-10 Thread j2me_soul
 I use this code to jump to each frame. But the component didn't play as same 
as playing in flash.

All the transition effect disappear. It just jump one frame to another directly 
without transition. 

How to make the component play as in flash ?

 

if (stateBtn.currentLabel == "tiny")
{
 stateBtn.gotoAndPlay("half");
 stateBtn.stop();
}
else if (stateBtn.currentLabel == "half")
{
 stateBtn.gotoAndPlay("entire");
 stateBtn.stop();
}
else
{
 stateBtn.gotoAndPlay("tiny");
 stateBtn.stop();
}


Messages in this topic  (1)  Reply  (via web post)  |  Start a new topic 
Messages
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
MARKETPLACE
Mom Power: Discover the community of moms doing more for their families, for 
the world and for each other

Change settings via the Web (Yahoo! ID required) 
Change settings via email: Switch delivery to Daily Digest | Switch format to 
Traditional
Visit Your Group  |  Yahoo! Groups Terms of Use  |  Unsubscribe 
Recent Activity
 31
New Members
Visit Your Group 
Yahoo! Finance

It's Now Personal

Guides, news,

advice & more.

New business?

Get new customers.

List your web site

in Yahoo! Search.

Y! Groups blog

the best source

for the latest

scoop on Groups.



Re: [flexcoders] Re: Set up zendamf with flexbuilder

2009-07-10 Thread Yesaya handoyo
I'm following the
http://www.thetechlabs.com/tutorials/flex/integrate-flex-builder-30-php-easly-with-the-fresh-zendamf/

Thanks
handoyo

On 7/11/09, R. S. Patil  wrote:
> Yes I second it. Corlon's all AMF tutorials are working perfectly.
> I agree there are some hitches even if you follow character by character.
> Some googling and minor changes are essential to make them work
> on one's computer depending on how it's configured But those are
> great resource to start with and my experience is those give you a
> very good start. I am also beginner in flex and PHP and I found
> those to be most useful in development of our pilot project
> with Flex->AMFPHP/ZendAMF->ADOdb->firebird.
> The project is almost in finishing stage within 20 to 30 days.
> We are using Birt->PHP for reporting and Flex->PHP for UI and
> data collection.
>
> Thanks and best regards.
>
> Raja.
>
> Which tutorial did you follow? I tried the one at
>> http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/ and it
>> worked for me.
>>
>>
>>
>


[flexcoders] Re: Image Loader COMPLETE event wont fire for some images

2009-07-10 Thread quattos
I think this explains it -
>From 
>http://livedocs.adobe.com/flex/gumbo/langref/flash/display/BitmapData.html:

"In AIR 1.5 and Flash Player 10, the maximum size for a BitmapData object is 
8,191 pixels in width or height, and the total number of pixels cannot exceed 
16,777,215 pixels. (So, if a BitmapData object is 8,191 pixels wide, it can 
only be 2,048 pixels high.) In Flash Player 9 and earlier and AIR 1.1 and 
earlier, the limitation is 2,880 pixels in height and 2,880 in width."

-Lance


--- In flexcoders@yahoogroups.com, "toofah_gm"  wrote:
>
> Tim,
> 
> Thanks for your help on this.  I feel like I am getting a little closer, but 
> would like to get full understanding so that I can make a good decision on 
> how to proceed.
> 
> The 2880 limit seems to be related to the problem, however it is interesting 
> that this limit only seems to affect transparent images, or at least I 
> haven't hit a limit yet for non transparent images.
> 
> Also, I am using FP10, which is supposed to have higher limits.  Do you know 
> if this is dependent on the SDK that the app is compiled with?
> 
> If I change the image to "http://www.mangumfamily.org/pedigreeLargeBook.png";, 
> which is 3764 x 2610 with transparency...it doesn't load.
> 
> "http://www.mangumfamily.org/pedigreeLargeBook2.png";, which is the same 
> image, saved at 2880 x 1997 with transparency...loads great.
> 
> "http://www.mangumfamily.org/pedigreeLargeBook3.png";, which is the same 
> image, saved at 2885 x 2000 with transparency...does not load.
> This seems to prove that there is some sort of 2880 limit still with 
> transparent images.
> 
> Interesting thing is that 
> "http://www.mangumfamily.org/backgroundOriginal.jpg";, which is much larger, 
> 4200 x 3188, but has no transparency, loads just fine.
> 
> Does anybody have some good understanding on this issue? or can you point me 
> to some better documentation on such?
> 
> Thanks!
> 
> Gary
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
> >
> > 
> > Well, probably a question better answered by Alex.  I suspect that the
> > transparency is adding to the file size and hitting the size limit. 
> > But, at this point, it's just a guess.  Try cropping the image down to
> > see if you get to a point that it works.
> > 
> > -TH
> > 
> > --- In flexcoders@yahoogroups.com, "toofah_gm"  wrote:
> > >
> > > I tried this as well...I think that the original file is actually a
> > PNG and not a JPG...unfortunately, this does not make a difference
> > either.
> > >
> > > Gary
> > >
> > >
> > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> > > >
> > > >
> > > > What happens if you convert the jpg to a png with transparency? I
> > seem
> > > > to remember a problem with the alphas for a jpg.
> > > >
> > > > -TH
> > > >
> > > > --- In flexcoders@yahoogroups.com, "toofah_gm"  wrote:
> > > > >
> > > > > TH,
> > > > >
> > > > > Thanks for the quick response. If the image is too wide, why does
> > > > "http://www.mangumfamily.org/bar3.jpg"; work? It has the same
> > dimensions,
> > > > just no transparency.
> > > > >
> > > > > Gary
> > > > >
> > > > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> > > > > >
> > > > > >
> > > > > > Hi Gary,
> > > > > >
> > > > > > There is a 2880 pixel limit for images. Your image is too wide.
> > > > > >
> > > > > > -TH
> > > > > >
> > > > > > --- In flexcoders@yahoogroups.com, "toofah_gm"  wrote:
> > > > > > >
> > > > > > > I am seeing cases when the image loader COMPLETE event will
> > not
> > > > fire.
> > > > > > Does anyone know why this is the case? I wonder if there is
> > > > something
> > > > > > wrong with some of my images that causes a bug in FLEX.
> > > > > > >
> > > > > > > Here is an example:
> > > > > > >
> > > > > > > 
> > > > > > > http://www.adobe.com/2006/mxml";
> > > > > > layout="absolute" applicationComplete="init()">
> > > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > >
> > > > > > > Notice that COMPLETE never gets called. If you copy the URL
> > into a
> > > > web
> > > > > > browser it loads fine.
> > > > > > >
> > > > > > > If you change the url in the code to the Google one, it loads
> > > > fine.
> > > > > > >
> > > > > > > What is wrong with my image? Maybe I need to log a bug to
> > FLEX.
> > > > > > >
> > > > > > > Thanks for your help!
> > > > > > >
> > > > > > > Gary
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>



Re: [flexcoders] Re: AdvacncedDataGrid: Column Group Issue [2 Attachments]

2009-07-10 Thread Patricia Han
I copied the code as my base. It works without grouping other fields (by using 
AdvancedDataGridColumnGroup) . Let's say is you group Actual and Estimate. It 
won't work. Please see the attached screen shots. I want both of them in the 
same table.

Any other idea?

Thanks,








From: valdhor 
To: flexcoders@yahoogroups.com
Sent: Friday, July 10, 2009 12:40:51 PM
Subject: [flexcoders] Re: AdvacncedDataGrid: Column Group Issue





Have you tried modifying the example at http://livedocs. adobe.com/ 
flex/3/langref/ mx/controls/ AdvancedDataGrid .html#includeExa mplesSummary ?

--- In flexcod...@yahoogro ups.com, Patricia Han  wrote:
>
> Hi There,
> 
> Have you ever successfully create a table or grid with hierarchical data and 
> grouping some columns? I am trying to create a grid showing folders and want 
> to group two columns. It does not work. Please let me know if you know the 
> trick. Without the grouping, everything
> Thanks in advance!
> 
> Nancy
> 
> Here's code I have,
> 
>  width="100%" height="100% "  
> variableRowHeight= "true" selectionColor= "#AAC5CE"
> initialize=" gc.refresh( );"> 
> 
>  source="{serverData }">
> 
> 
>  name="Servers" />
>  name="Port"/ >
> 
> 
> 
>  
> 
> 
>  dataField="Port" headerText=" Server/Port" />
>   dataField="VirtualR esourceType" headerText=" Virtual Type"/>
>  dataField="CIR" />
>  dataField="PIR" />
>   headerText=" Capacity" > 
>AdvancedDataGridCol umn 
> dataField="Avail" />
>   AdvancedDataGridCol umn 
> dataField="Total" />
>  
> 
>
>


   


  

Re: [flexcoders] Re: Set up zendamf with flexbuilder

2009-07-10 Thread R. S. Patil
Yes I second it. Corlon's all AMF tutorials are working perfectly.
I agree there are some hitches even if you follow character by character.
Some googling and minor changes are essential to make them work
on one's computer depending on how it's configured But those are
great resource to start with and my experience is those give you a
very good start. I am also beginner in flex and PHP and I found
those to be most useful in development of our pilot project
with Flex->AMFPHP/ZendAMF->ADOdb->firebird.
The project is almost in finishing stage within 20 to 30 days.
We are using Birt->PHP for reporting and Flex->PHP for UI and
data collection.

Thanks and best regards.

Raja.

Which tutorial did you follow? I tried the one at
> http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/ and it
> worked for me.
>
>
>


[flexcoders] Re: AdvacncedDataGrid: Column Group Issue

2009-07-10 Thread Don Kerr
oops ... wrong kind of grouping previous post ... here is another example:






  

  

   
   
   





  


  
   
   
   
   





  


   
   
   
   






  




  


 
 




@Embed(source='images/open.gif')




 
   
   
 
 
 
 
 
  
  
   
   
   





--- In flexcoders@yahoogroups.com, "Don Kerr"  wrote:
>
> Try something like this below ...
> 
> Don Kerr
> 
>  dataProvider="{linksDP}" change="changeLink(linksDG.selectedItem.linkID);">
>   
>   
>dataField="linkID"/>
>   
>  
>headerText="Exp" dataField="linkMargin" textAlign="right"/>
>headerText="Spec" dataField="specMargin" textAlign="right"/>
>
> headerText="Type" dataField="linkType"/>
>   
>
>headerText="Phase" dataField="missionPhase"/>
>headerText="Links" dataField="missionSubPhase"/>
>   
>headerText="Service" dataField="services"/>
>dataField="timePeriod"/>
>headerText="Es/No" dataField="esNo"/>
>   
>   
> 
>headerText="Transmit" dataField="transmitAnt"/>
>headerText="Receive" dataField="receiveAnt"/>
> 
>
>  
>headerText="Mode" dataField="mode"/>
>headerText="kbps" dataField="rate" textAlign="right"/>
>  
>   
>   
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, Patricia Han  wrote:
> >
> > Hi There,
> > 
> > Have you ever successfully create a table or grid with hierarchical data 
> > and grouping some columns? I am trying to create a grid showing folders and 
> > want to group two columns. It does not work. Please let me know if you know 
> > the trick. Without the grouping, everything
> > Thanks in advance!
> > 
> > Nancy
> > 
> > Here's code I have,
> > 
> >  > width="100%" height="100%"  
> > variableRowHeight="true" selectionColor="#AAC5CE"
> > initialize="gc.refresh();">
> > 
> >  > source="{serverData}">
> > 
> > 
> >  > name="Servers"/>
> >  > name="Port"/>
> > 
> > 
> > 

[flexcoders] Re: AdvacncedDataGrid: Column Group Issue

2009-07-10 Thread Don Kerr
Try something like this below ...

Don Kerr






   


 
 

 








  


  
 
 


   






--- In flexcoders@yahoogroups.com, Patricia Han  wrote:
>
> Hi There,
> 
> Have you ever successfully create a table or grid with hierarchical data and 
> grouping some columns? I am trying to create a grid showing folders and want 
> to group two columns. It does not work. Please let me know if you know the 
> trick. Without the grouping, everything
> Thanks in advance!
> 
> Nancy
> 
> Here's code I have,
> 
>  width="100%" height="100%"  
> variableRowHeight="true" selectionColor="#AAC5CE"
> initialize="gc.refresh();">
> 
>  source="{serverData}">
> 
> 
>  name="Servers"/>
>  name="Port"/>
> 
> 
> 
> 
> 
> 
>  dataField="Port" headerText="Server/Port"/>
>   dataField="VirtualResourceType" headerText="Virtual Type"/>
>  dataField="CIR"/>
>  dataField="PIR"/>
>   headerText="Capacity"> 
>AdvancedDataGridColumn 
> dataField="Avail"/>
>   AdvancedDataGridColumn 
> dataField="Total"/>
>  
> 
>
>




[flexcoders] Re: Advanced DataGrid Issue Help???

2009-07-10 Thread Don Kerr
You might check out the verticalScrollPosition property of the datagrid and set 
it to the selectedIndex onchange.  Haven't tried in this specific tree 
scenario, but it may work. Not sure if it will move it up for you automatically 
or not.

change="mygrid.verticalScrollPosition = mygrid.selectedIndex"

Or possibly set the scroll position to the current selectedIndex + 1, to move 
the scroll bar enough.

Don Kerr



--- In flexcoders@yahoogroups.com, "vin.flex"  wrote:
>
> 
> 
> Hi,
> 
>   I have noticed a issue. In an advanced datagrid if you open a 
> row which is the last row visible then the children are not visible.
> we need to scroll down to see them. is there any work around so that 
> if we click to open a node, it is moves to the top so that their 
> children are visible.
> 
> thanks 
> vin
>




[flexcoders] Max Chr limit in TextArea

2009-07-10 Thread Don Kerr
I have a large html text log loading into a TextArea and it truncates. The full 
html makes it from the server to the Flex client, but not all of it shows in 
the TextArea.

Setting Max Chr = 0, for unlimited size, is really still limited.  Setting Max 
Chr to a very high number doesn't work.  

Is there a way to truly increase/override the limit?

Thanks,
Don Kerr
Manager, Space City Adobe User Group






[flexcoders] Advanced DataGrid Issue Help???

2009-07-10 Thread vin.flex


Hi,

  I have noticed a issue. In an advanced datagrid if you open a 
row which is the last row visible then the children are not visible.
we need to scroll down to see them. is there any work around so that 
if we click to open a node, it is moves to the top so that their 
children are visible.

thanks 
vin



[flexcoders] Flash component play in flex issue

2009-07-10 Thread Benoitcn
I use this code to jump to each frame. But the component didn't play as same as 
playing in flash. 

All the transition effect disappear. It just jump one frame to another directly 
without transition. 

How to make the component play as in flash ?



if (stateBtn.currentLabel == "tiny")
{
 stateBtn.gotoAndPlay("half");
 stateBtn.stop();
}
else if (stateBtn.currentLabel == "half")
{
 stateBtn.gotoAndPlay("entire");
 stateBtn.stop();
}
else
{
 stateBtn.gotoAndPlay("tiny");
 stateBtn.stop();
}


Re: [flexcoders] f_in_box memory issues

2009-07-10 Thread Steve Mathews
What methods are you using to determine the memory usage? We use f_in_box
and I don't think we have seen that kind of discrepancy before.

On Fri, Jul 10, 2009 at 11:57 AM, ag_rcuren wrote:

> I am currently using f_in_box for a project I am working on. I was doing
> some profiling and noticed that when using f_in_box virtual memory usage is
> super high. When running our app stand alone in the flash player we are
> seeing virtual memory usage of around 20 megs vs. running in f_in_box it is
> around 120 megs. This is over 5 times worse. I was hoping some one might
> have some insight or may have worked with f_in_box before and dealt with
> this issue.
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


[flexcoders] Re: AdvacncedDataGrid: Column Group Issue

2009-07-10 Thread valdhor
Have you tried modifying the example at 
http://livedocs.adobe.com/flex/3/langref/mx/controls/AdvancedDataGrid.html#includeExamplesSummary
 ?


--- In flexcoders@yahoogroups.com, Patricia Han  wrote:
>
> Hi There,
> 
> Have you ever successfully create a table or grid with hierarchical data and 
> grouping some columns? I am trying to create a grid showing folders and want 
> to group two columns. It does not work. Please let me know if you know the 
> trick. Without the grouping, everything
> Thanks in advance!
> 
> Nancy
> 
> Here's code I have,
> 
>  width="100%" height="100%"  
> variableRowHeight="true" selectionColor="#AAC5CE"
> initialize="gc.refresh();">
> 
>  source="{serverData}">
> 
> 
>  name="Servers"/>
>  name="Port"/>
> 
> 
> 
> 
> 
> 
>  dataField="Port" headerText="Server/Port"/>
>   dataField="VirtualResourceType" headerText="Virtual Type"/>
>  dataField="CIR"/>
>  dataField="PIR"/>
>   headerText="Capacity"> 
>AdvancedDataGridColumn 
> dataField="Avail"/>
>   AdvancedDataGridColumn 
> dataField="Total"/>
>  
> 
>
>




[flexcoders] Re: Set up zendamf with flexbuilder

2009-07-10 Thread valdhor
Which tutorial did you follow? I tried the one at 
http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/ and it worked 
for me.



--- In flexcoders@yahoogroups.com, "yonghan79"  wrote:
>
> Hi all,i follow the tutorial about Integrate Flex Builder 3.0 & Php easly 
> with the fresh ZendAMF..I got this error message 
> 
> [RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" 
> faultDetail="Channel.Connect.Failed error NetConnection.Call.BadVersion: : 
> url: 'http://localhost/zend_gateway.php'"]
>   at 
> mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:220]
>   at 
> mx.rpc::Responder/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:53]
>   at 
> mx.rpc::AsyncRequest/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:103]
>   at 
> mx.messaging::ChannelSet/faultPendingSends()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\ChannelSet.as:1482]
>   at 
> mx.messaging::ChannelSet/channelFaultHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\ChannelSet.as:975]
>   at flash.events::EventDispatcher/dispatchEventFunction()
>   at flash.events::EventDispatcher/dispatchEvent()
>   at 
> mx.messaging::Channel/connectFailed()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\Channel.as:997]
>   at 
> mx.messaging.channels::PollingChannel/connectFailed()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\channels\PollingChannel.as:354]
>   at 
> mx.messaging.channels::AMFChannel/statusHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\channels\AMFChannel.as:390]
> 
> Where did i go wrong..Also i don't know how to set up the bootstrap..I hope 
> that someone is willing to point me the right direction..Thanks a lot... ^_^
>




Re: [flexcoders] Re: "undefined" in stack trace (Console), stack overflow

2009-07-10 Thread thomas parquier
I think "undefined" can come from a problem of error string localization.

thomas
---
http://www.web-attitude.fr/
msn : thomas.parqu...@web-attitude.fr
softphone : sip:webattit...@ekiga.net 
téléphone portable : +33601 822 056


2009/7/9 erikdebruin_nl 

>
>
> Hi Thomas,
>
> Thanks for your patience.
>
> I wasn't clear about the "undefined": it is not a regular trace() line
> (which show up in black in the Console), it is the word "undefined" in RED
> and it shows up as the top line of the stack trace dump after the crash,
> like this:
>
> 
> SWF] Presenter_AIR.swf - 2,508,088 bytes after decompression
> undefined
> at
> nl.ixms.app.data::SheetItem/loadFromDbResultHandler()[/{removed}/SheetItem.as:114]
> at nl.ixms.db::Db/dbResultHandler()[/{removed}/Db.as:214]
> at flash.data::SQLStatement/internalExecute()
> at flash.data::SQLStatement/execute()
> etc.
> 
>
>
> EdB
>
> --- In flexcoders@yahoogroups.com, thomas parquier 
> wrote:
> >
> > I would say the "undefined" trace matches a simple "trace(one_var);" in a
> > file which is particular to your offline project (not in shared libs).
> >
> > To talk again about events based stack overflow, I would put two
> surrounding
> > "trace" in event handlers to see stacked functions :
> >
> > > function handlerFunction(e:event):void {
> > > trace('handlerFunction for', e.type);
> > > // code goes here
> > > trace('/handlerFunction for',e.type);
> > > }
> >
> >
> >
> > thomas
> > ---
> > http://www.web-attitude.fr/
> > msn : thomas.parqu...@...
> > softphone : sip:webattit...@...  > téléphone portable : +33601 822 056
> >
> >
> > 2009/7/8 Erik de Bruin erikdebr...@...
> >
> > >
> > >
> > > Hi,
> > >
> > > Thanks for your swift reply.
> > >
> > > I did a check to see if what you suggest might be the case, by
> > > inserting a trace() in all the event dispatch and handler functions,
> > > but nowhere in the chain does this type of recursion occur.
> > >
> > > I do however see that the entire chain is run dozens of times, while
> > > the data structure is build from the data in the database. But this is
> > > expected behavior, and the case remains that this code functions
> > > flawlessly in the online version (again, build from the same
> > > codebase).
> > >
> > > Any suggestions on how to proceed with debugging, as well as why the
> > > stack trace shows a single final line with only the word "undefined"
> > > in it, are much apreciated.
> > >
> > > Regards,
> > >
> > > EdB
> > >
> > >
> > > On Wed, Jul 8, 2009 at 5:44 PM, thomas
> > > parquiermailingli...@... >
> > > wrote:
> > > >
> > > >
> > > > You may have one type of event (A) handled in a function which
> dispatches
> > > > another type of event (B) handled in a function which dispatches an
> event
> > > of
> > > > type A. If dispatching occurs before handler functions return you may
> get
> > > a
> > > > stack overflow.
> > > >
> > > > thomas
> > > > ---
> > > > http://www.web-attitude.fr/
> > >
> > > > msn : thomas.parqu...@...
> > > > softphone : sip:webattit...@... 
> > > > téléphone portable : +33601 822 056
> > > >
> > > >
> > > > 2009/7/8 erikdebruin_nl  ...
>
> > > >
> > > >>
> > > >>
> > > >> Hi,
> > > >>
> > > >> I've Googled me senseless, but I can't find a clue to my latest
> problem:
> > > >>
> > > >> When I run my application in the browser, all is fine. When the same
> app
> > > >> in AIR (we've build it so the same codebase is shared between on-
> and
> > > >> offline versions), I get an exception and the last line in the stack
> > > trace
> > > >> (as shown in the Console) reads "undefined". The error dialog the
> player
> > > >> throws up (after clicking on the "Resume (F8)" button in the debug
> > > >> perspective) tells me a "stack overflow" happened.
> > > >>
> > > >> The "funny" thing is, when I disable the code that seems to be the
> cause
> > > >> (taking my clues from the stack trace), the problem remains, but the
> > > stack
> > > >> trace tells me another line is the problem... and so on and on.
> > > >>
> > > >> Google tells me that a stack overflow mostly has to do with rampant
> > > >> recursion, but my app doesn't use recursion anywhere. It does
> however
> > > use a
> > > >> lot of event chains. Do these count as "recursion"?
> > > >>
> > > >> What does it mean that the last line of the stack trace reads
> > > "undefined"?
> > > >>
> > > >> Any suggestions about further debugging my problem are very welcome!
> > > >>
> > > >> Thanks in advance,
> > > >>
> > > >> EdB
> > > >>
> > > >
> > > >
> > >
> > > --
> > > Ix Multimedia Software
> > >
> > > Jan Luykenstraat 27
> > > 3521 VB Utrecht
> > >
> > > T. 06-51952295
> > > I. www.ixsoftware.nl
> > >
> > >
> >
>  
>


[flexcoders] f_in_box memory issues

2009-07-10 Thread ag_rcuren
I am currently using f_in_box for a project I am working on. I was doing some 
profiling and noticed that when using f_in_box virtual memory usage is super 
high. When running our app stand alone in the flash player we are seeing 
virtual memory usage of around 20 megs vs. running in f_in_box it is around 120 
megs. This is over 5 times worse. I was hoping some one might have some insight 
or may have worked with f_in_box before and dealt with this issue.



[flexcoders] Gumbo Issue - crossdomain.xml due to missing Content-Type

2009-07-10 Thread lrlarsonny
Hello --

Spent hours on this and combed the web as well as this forum.

I have a simple php test app that I built in Flash Builder beta. It works on 
localhost.

However, if I try load the page from another computer I get a 'send failed'. In 
serviceCapture I see that I am getting this error:

'Error: [strict] Ignoring policy file at http://localhost:/crossdomain.xml 
due to missing Content-Type.'

(I have a well formed crossdomain.xml file at my site root with --for testing 
purposes- very liberal policies).

When I load crossdomain.xml in my browser directly, it shows a header type of 
application/xml, which is on the header white list.

Am I missing something obvious? 

I really appreciate any insight.

Thank you

lrlarson
nyc



[flexcoders] AdvacncedDataGrid: Column Group Issue

2009-07-10 Thread Patricia Han
Hi There,

Have you ever successfully create a table or grid with hierarchical data and 
grouping some columns? I am trying to create a grid showing folders and want to 
group two columns. It does not work. Please let me know if you know the trick. 
Without the grouping, everything
Thanks in advance!

Nancy

Here's code I have,















 


  
   AdvancedDataGridColumn 
dataField="Avail"/>
  AdvancedDataGridColumn 
dataField="Total"/>
 

   


  

RE: [flexcoders] BrowserManager not working

2009-07-10 Thread Alex Harui
Compare with the examples.  You're not calling init() and you may need to add 
an event listener as well.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of edencane
Sent: Thursday, July 09, 2009 1:30 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] BrowserManager not working





Hi.

I want to get the information of the current URL

This is my code. It aint workin'. What 'm I doing wrong?


http://www.adobe.com/2006/mxml"; layout="absolute"
creationComplete="init()">








--
View this message in context: 
http://www.nabble.com/BrowserManager-not-working-tp24406204p24406204.html
Sent from the FlexCoders mailing list archive at Nabble.com.



RE: [flexcoders] Re: "undefined" in stack trace (Console), stack overflow (2nd try)

2009-07-10 Thread Alex Harui
Or show the code in that method.  If you blow up the stack, you can't guarantee 
you'll get correct information in the stacktrace.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of valdhor
Sent: Friday, July 10, 2009 9:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: "undefined" in stack trace (Console), stack overflow 
(2nd try)





Possibly completely unrelated to the Stack Overflow error (Or maybe the change 
is now showing where the original error came from.

I would try debugging at or around line 114 of SheetItem.as.

--- In flexcoders@yahoogroups.com, 
"erikdebruin_nl"  wrote:
>
> Steve,
>
> No luck :-(
>
> The stack trace look like this:
>
> 
> [SWF] Presenter_AIR.swf - 2,508,088 bytes after decompression
> undefined
> at
> nl.ixms.app.data::SheetItem/loadFromDbResultHandler()[/{removed}/SheetIt\
> em.as:114]
> at nl.ixms.db::Db/dbResultHandler()[/{removed}/Db.as:214]
> at flash.data::SQLStatement/internalExecute()
> at flash.data::SQLStatement/execute()
> 
> Any ideas or suggestions as to what might cause the "undefined"?
>
> Regards,
>
> EdB
>
> --- In flexcoders@yahoogroups.com, 
> "valdhor"  wrote:
> >
> > A co-worker had the same error the other day (In the web application
> though, not in AIR): Stack Overflow.
> >
> > In his case it turned out to be "rampant" events. He made sure to use
> event.stopImmediatePropagation() when the event was no longer required
> to bubble and the error went away.
> >
> > This may not fix your problem but it is well worth doing.
> >
> >
> > HTH.
> >
> >
> > Steve
> >
> >
> >
> > --- In flexcoders@yahoogroups.com, 
> > "erikdebruin_nl"
>  > >
> > > Hi,
> > >
> > > I've Googled me senseless, but I can't find a clue to my latest
> problem:
> > >
> > > When I run my application in the browser, all is fine. When the same
> app in AIR (we've build it so the same codebase is shared between on-
> and offline versions), I get an exception and the last line in the stack
> trace (as shown in the Console) reads "undefined". The error dialog the
> player throws up (after clicking on the "Resume (F8)" button in the
> debug perspective) tells me a "stack overflow" happened.
> > >
> > > The "funny" thing is, when I disable the code that seems to be the
> cause (taking my clues from the stack trace), the problem remains, but
> the stack trace tells me another line is the problem... and so on and
> on.
> > >
> > > Google tells me that a stack overflow mostly has to do with rampant
> recursion, but my app doesn't use recursion anywhere. It does however
> use a lot of event chains. Do these count as "recursion"?
> > >
> > > What does it mean that the last line of the stack trace reads
> "undefined"?
> > >
> > > Any suggestions about further debugging my problem are very welcome!
> > >
> > > Thanks in advance,
> > >
> > > EdB
> > >
> >
>



[flexcoders] Re: How to connect Xcelsius data to Flex Chart component

2009-07-10 Thread valdhor
For the purpose of having at least one person respond, I don't believe we can 
help you (Unless someone else has done this with Xcelsius).

You would be better off using an example from SAP.



--- In flexcoders@yahoogroups.com, "riadashboard"  wrote:
>
> I am needing to use spreadsheet data in my Xcelsius project and also use
> Flex to  create custom components. I was able to successfully build and
> deploy a Flex  custom component into Xcelsius, however, this component
> used hard-coded data  inside the Flex source to compile the charts. This
> is not a workable solution  for us as we need to be able to use the
> inherent data in Xcelsius spreadsheets  to bind to the custom components
> we bring into Xcelsius.
> 
> So...how can I  bind the spreadsheet data from Xcelsius to the custom
> Flex component  charts/graphs to create a visualization or population of
> the graph? Xcelsius  graphs are able to use the properties panel to
> create "titles" and create the  data connection, however, my new custom
> component from Flex does not have this  properties panel available. This
> panel is empty. Is there a way to either create  properties to use or
> enable Xcelsius to bind inherent properties to my custom  components?
> 
> I found in the book "Xcelsis 2008: Dashboard Best  Practices", written
> by Loren Abdulezer who is also connected with Xcelsius  Journal, that is
> states to modify a line of code from a previous example in the  book.
> The instructions don't directly fix the problem because they only
> address  the example used in the book and not a generic, custom
> application. Here is the  abridged code from the previous sample 
> BasicHorizontalSlider.as:
> 
> package  com.anl.book.basicslider
> {
> import  mx.controls.HSlider;
> import  mx.controls.Label;
> [CxInspectableList ("title",  "showTitle")]
> [Inspectable(defaultValue="showTitle",  type="String")]
> [Inspectable(defaultValue="Title",  type="String")]
> .
> .
> .
> 
> There is also a get/set function for  each "title" and "showTitle"
> 
> public function get  title():String{...}
> public function set  title(value:String):void):String{...}
> public function get  showTitle():String{...}
> public function set  showTitle(value:String):void):String{...}
> .
> .
> .
> 
> The steps  for the fix are as follows:
> 1. Change the line of code in the  BasicHorizontalSlider.as file from 
> [CxInspectableList("title","showTitle")] to 
> [CxInspectableList("title","showTitle","value")]
> 2. Save  file
> 3. Re-compile the SWF
> 4. Rebuld the .xlx file for  Xcelsius
> 5. Load the new component
> 
> I suppose my question  would be how does this solution get modified to
> my example or for any other  example in the future? The previous sample
> referenced by  BasicHorizontalSlider.as is a app which displays a
> sliding bar displaying  the x-value in a tooltip as you drag the control
> left and right. So, then is the  element CxInspectableList the variable
> which needs to be changed per  usage?
> 
> Support from SAP, on a separate discussion thread I am having, has
> stated the  following in a separate discussion thread on their boards:
> 
> When the Xcelsius 2008 Default Property Sheet loads for your add-on this
> is  what is does:
> 
> 
> 
> * Looks for the
> [CxInspectableList(+propertyName+,propertyName2,+...+)]
> meta  data in your add-on class
> 
> 
> * So you must have a property in your add-on class for each name in 
> CxInspectableList.
> * The property sheet will have an entry for each name in
> CxInspectableList --  the data type is picked up from the Inspectable
> meta-data for each property.
> * You can define a property in Flex as a public var (and Flex
> generates a  getter and setter for you) or you create your own getter
> and setter as we do for  the majority of our properties.
> * The reason you see us you our own getter and setter (for example
> with the  title) is so we can detect when the title has been changed (so
> the setter has  been called) and do something to update our add-on
> display.
> 
> So for  each property that you want to see in the Xcelsius 2008 Default
> Property Sheet  you need to:
> 
> 
> * Create the property in your add-on, add the http://Inspectable
>  (...+) meta data for your  property.
> * Add the property name to CxInspectableList
> * Re-compile your SWF.
> * Re-package your XLX
> * Re-import the XLX into Xcelsius
> Then if you have done things  correctly you should see your new property
> in the add-on property sheet.
> My code snippet for the attempted fix, as instructed by SAP's support,
> is  as follows:
> public var scores:String;
> public var names:String;
> public  var scoreValues:Number;
> 
> 
> [Inspectable(defaultValue="true")]
> [CxInspectable("scores","names","scoreValues")]
> 
> Somewhere  I am doing something wrong, however, I cant determine where
> my errors are  located...hmm.
> 
> 
> Does the fact that I am wanting to databind to a B

RE: [flexcoders] Flex 4 System Manager idle threshold

2009-07-10 Thread Alex Harui
File an enhancement request (and a patch)

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of superabe superabe
Sent: Thursday, July 09, 2009 4:19 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex 4 System Manager idle threshold





Ok.

Anyway this can be made an enhancement for the Flex 4 SDK? It should be 
relatively easy to modify the System Manager to accept the threshold as a user 
epecified value, no? ( I believe NativeApplication in AIR allows for this)

- superabe
On Thu, Jul 9, 2009 at 1:13 AM, Alex Harui 
mailto:aha...@adobe.com>> wrote:


I don't see an easy way to change it.  Probably have to monkey-patch it



Alex Harui

Flex SDK Developer

Adobe Systems Inc.

Blog: http://blogs.adobe.com/aharui



From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On 
Behalf Of superabe superabe
Sent: Wednesday, July 08, 2009 5:18 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 4 System Manager idle threshold





Is there a way to change the "idle time threshold" for the Flex 4 
SystemManager. ?

I'd like to change the idle time to be 2 seconds but the value seems to be read 
from a private static const in SystemManager and set to a default of 1 second?

TIA,

superabe




[flexcoders] Re: setStyle not valid

2009-07-10 Thread Tim Hoff

I try change cause no work and me no Google.

--- In flexcoders@yahoogroups.com, "ag_rcuren" 
wrote:
>
> --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> >
> >
> > styleLabel.setStyle("fontSize", 72);
> > -TH
> >
> > --- In flexcoders@yahoogroups.com, j2me_soul  wrote:
> > >
> > > I try to change the style at runtime
> > >
> > >  > click="butClickHandler(event)"/>
> > > 
> > >
> > > private function butClickHandler(event:MouseEvent):void
> > > {
> > > /* it doesn't work */
> > > styleLabel.setStyle("font-size", 72);
> > > }
> > >
> >
>
>
> Try this:
>
> styleLabel.setStyle("fontSize", 72);
>
> Flex Style names are camel cased so instead of font-size it is
fontSize
>





[flexcoders] AMR Format and ActionScript

2009-07-10 Thread app.developer
Is there a way to play back the audio format, AMR without having to convert it 
to something like an MP3...with actionscript?

Thx bunches,
P



[flexcoders] AMF, IE, and a non-trusted certificate

2009-07-10 Thread jer_ela
All of our applications have to run over SSL. On the dev and eval servers we 
use internally generated certificates. With firefox once you install the 
certificate everything is fine.  

But with IE, if you just tell it to proceed to the website, all http calls to 
the the server work including HttpService call from the flex app.  But amf 
RemoteObject calls fail.

Installing the certificate in IE seems to have no effect, the RemoteObject 
calls still fail, and when you come back in an new session, IE still complains 
about the certificate.

Has anyone else seen this, got a workaround other than buying a certificate 
from a known authority?

Just getting rid of IE is unfortunately not a option.



[flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2

2009-07-10 Thread valdhor
Caveat: This may or may not work.

Go to 
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html

Click Edit Locations... then Add Location... Click the Browse for folder... 
button then select your bin-debug directory. Try again.

This has worked for me in the past.


--- In flexcoders@yahoogroups.com, "zi or"  wrote:
>
> While I try to run my Flex Profiler I got this error message:
> 
> In the flash application I got the following exception:
> Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox 
> violation: 
> file:///C|%2Fwork%2Flabsense%2Fbranches%2Frel%5F1%5F2%5F5%5FEA%2Fsources%2Fui%2F.metadata%2F.plugins%2Fcom.adobe.flash.profiler%2FProfilerAgent.swf?host=localhost&port=
>  cannot load data from localhost:.
> at 
> ProfilerAgent()[C:\SVN\branches\3.2.0\modules\profiler3\as\ProfilerAgent.as:127]
> 
> 
> And in the flex Profiler console (at the eclipse) I got : Socket timeout.
> 
> I am run on windows vista,
> Flex builder: 3.2
> Flash debugger : 10,0,22,87
> 
> Things that I have done to resolve this issue:
> • Switch the connection port of the profiler to 9998 (and back)
> • Remove and reinstall the flash debugger player.
> • Install flex builder 3.2 (instead of 3.0)
> • Delete all the enters in the mm.cfg file
> • Add enter to the mm.cfg : 
> PreloadSwf=C:\work\labsense\Sources\ui\.metadata\.plugins\com.adobe.flash.profiler\ProfilerAgent.swf?host=localhost&port=
>  
> or
> PreloadSwf=C:\work\labsense\Sources\ui\.metadata\.plugins\com.adobe.flash.profiler\ProfilerAgent.swf?host=localhost&port=9998
> or
> PreloadSwf=C:/work/labsense/Sources/ui/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf?host=localhost&port=
> or with spaces:
> PreloadSwf=C: \ work \ labsense \ Sources \ ui \ .metadata \ .plugins \ 
> com.adobe.flash.profiler \ ProfilerAgent.swf?host=localhost&port=
> or
> C:\work\labsense\Sources\ui\.metadata\.plugins\com.adobe.flash.profiler\ProfilerAgent.swf?
> or add all or some of the enters:
> TraceOutputFileName=C:\Users\zivo\AppData\Roaming\Macromedia\Flash 
> Player\Logs\flashlog.txt
> ErrorReportingEnable=1
> MaxWarnings=0
> TraceOutputFileEnable=1
> ProfilingFileOutputEnable=1
> • Turn on and off the vista firewall
> • Add exception for port  in the vista firewall
> • Try to run the profiler SWF separately
> 
> Same result.
> 
> Try one last thing:
> 
> Because I have expreins problem little bit similar before with the flash 
> debugger , the resolution then was :
> 1.Right click on flash player (debugger),
> 2.choose "Debugger",
> 3.choose "other machine" 
> 4.add "127.0.0.1"
> 5.click ok
> then, it solve the issue (but apparently he connect to the debugger with host 
> 127.0.0.1 instead of localhost (which is a same )
> I now add to the mm.cfg file, the follow entry:
> PreloadSwf=C:/work/labsense/branches/rel_1_2_5_EA/sources/ui/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf?host=127.0.0.1&port=
> Then, after saving , I run the profiler, and its work!!
> 
> 
> And the resonse for all this was :
> Some program change the file:
> C:\Windows\System32\drivers\etc\hosts
> To:
> # Copyright (c) 1993-2006 Microsoft Corp.
> #
> # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
> #
> # This file contains the mappings of IP addresses to host names. Each
> # entry should be kept on an individual line. The IP address should
> # be placed in the first column followed by the corresponding host name.
> # The IP address and the host name should be separated by at least one
> # space.
> #
> # Additionally, comments (such as these) may be inserted on individual
> # lines or following the machine name denoted by a '#' symbol.
> #
> # For example:
> #
> #  102.54.94.97 rhino.acme.com  # source server
> #   38.25.63.10 x.acme.com  # x client host
> 
> 
> ::1 localhost
> 127.0.0.1   iDBO # LMS GENERATED LINE
> 
> 
> This means that localhost is not lead to 127.0.0.1!!!
> 
> Fixing is easy :
> 
> # ::1 localhost
> # 127.0.0.1   iDBO # LMS GENERATED LINE
> 127.0.0.1   localhost
> 
> Instead (remark the problem and fix the problem
> 
> 
> Thenks
> 
> Ziv
> 
> 
> --- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
> >
> > 
> > Hi all,
> > 
> > I just updated the Flex SDK to version 3.2, and am now getting a
> > Security sandbox violation error everytime that I launch an AIR
> > application from Eclipse.  I was wondering if anyone else has run into
> > this and might know of a fix.  The stack trace is listed below.
> > 
> > Thanks,
> > -TH
> > 
> > Error #2044: Unhandled securityError:. text=Error #2048: Security
> > sandbox violation:
> > file:///C|%2Fdev%2Fworkspace%2F.metadata%2F.plugins%2Fcom.adobe.flash.pr\
> > ofiler%2FProfilerAgent.swf?host=localhost&port=
> >  > rofiler%2FProfilerAgent.swf?host=localhost&port=>  cannot load

[flexcoders] Re: how to hide ADG sort divider?

2009-07-10 Thread grg_blls
Yes,
there is. Set for the ADG:
sortExpertMode="true" 

George



--- In flexcoders@yahoogroups.com, "danilabuonora"  wrote:
>
> hi, 
> does anyone know how to make an andaceddatagrid look like a datagrid (hide de 
> sorting thing, it takes way to much space)???
> (I want to make it look like a datagrid)
> 
> thanks a lot!
>




[flexcoders] Re: Image Loader COMPLETE event wont fire for some images

2009-07-10 Thread toofah_gm
Tim,

Thanks for your help on this.  I feel like I am getting a little closer, but 
would like to get full understanding so that I can make a good decision on how 
to proceed.

The 2880 limit seems to be related to the problem, however it is interesting 
that this limit only seems to affect transparent images, or at least I haven't 
hit a limit yet for non transparent images.

Also, I am using FP10, which is supposed to have higher limits.  Do you know if 
this is dependent on the SDK that the app is compiled with?

If I change the image to "http://www.mangumfamily.org/pedigreeLargeBook.png";, 
which is 3764 x 2610 with transparency...it doesn't load.

"http://www.mangumfamily.org/pedigreeLargeBook2.png";, which is the same image, 
saved at 2880 x 1997 with transparency...loads great.

"http://www.mangumfamily.org/pedigreeLargeBook3.png";, which is the same image, 
saved at 2885 x 2000 with transparency...does not load.
This seems to prove that there is some sort of 2880 limit still with 
transparent images.

Interesting thing is that "http://www.mangumfamily.org/backgroundOriginal.jpg";, 
which is much larger, 4200 x 3188, but has no transparency, loads just fine.

Does anybody have some good understanding on this issue? or can you point me to 
some better documentation on such?

Thanks!

Gary



--- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
>
> 
> Well, probably a question better answered by Alex.  I suspect that the
> transparency is adding to the file size and hitting the size limit. 
> But, at this point, it's just a guess.  Try cropping the image down to
> see if you get to a point that it works.
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "toofah_gm"  wrote:
> >
> > I tried this as well...I think that the original file is actually a
> PNG and not a JPG...unfortunately, this does not make a difference
> either.
> >
> > Gary
> >
> >
> > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> > >
> > >
> > > What happens if you convert the jpg to a png with transparency? I
> seem
> > > to remember a problem with the alphas for a jpg.
> > >
> > > -TH
> > >
> > > --- In flexcoders@yahoogroups.com, "toofah_gm"  wrote:
> > > >
> > > > TH,
> > > >
> > > > Thanks for the quick response. If the image is too wide, why does
> > > "http://www.mangumfamily.org/bar3.jpg"; work? It has the same
> dimensions,
> > > just no transparency.
> > > >
> > > > Gary
> > > >
> > > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> > > > >
> > > > >
> > > > > Hi Gary,
> > > > >
> > > > > There is a 2880 pixel limit for images. Your image is too wide.
> > > > >
> > > > > -TH
> > > > >
> > > > > --- In flexcoders@yahoogroups.com, "toofah_gm"  wrote:
> > > > > >
> > > > > > I am seeing cases when the image loader COMPLETE event will
> not
> > > fire.
> > > > > Does anyone know why this is the case? I wonder if there is
> > > something
> > > > > wrong with some of my images that causes a bug in FLEX.
> > > > > >
> > > > > > Here is an example:
> > > > > >
> > > > > > 
> > > > > > http://www.adobe.com/2006/mxml";
> > > > > layout="absolute" applicationComplete="init()">
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > >
> > > > > > Notice that COMPLETE never gets called. If you copy the URL
> into a
> > > web
> > > > > browser it loads fine.
> > > > > >
> > > > > > If you change the url in the code to the Google one, it loads
> > > fine.
> > > > > >
> > > > > > What is wrong with my image? Maybe I need to log a bug to
> FLEX.
> > > > > >
> > > > > > Thanks for your help!
> > > > > >
> > > > > > Gary
> > > > > >
> > > > >
> > > >
> > >
> >
>



[flexcoders] Re: "undefined" in stack trace (Console), stack overflow (2nd try)

2009-07-10 Thread valdhor
Possibly completely unrelated to the Stack Overflow error (Or maybe the change 
is now showing where the original error came from.

I would try debugging at or around line 114 of SheetItem.as.


--- In flexcoders@yahoogroups.com, "erikdebruin_nl"  wrote:
>
> Steve,
> 
> No luck :-(
> 
> The stack trace look like this:
> 
> 
> [SWF] Presenter_AIR.swf - 2,508,088 bytes after decompression
> undefined
>  at
> nl.ixms.app.data::SheetItem/loadFromDbResultHandler()[/{removed}/SheetIt\
> em.as:114]
>  at nl.ixms.db::Db/dbResultHandler()[/{removed}/Db.as:214]
>  at flash.data::SQLStatement/internalExecute()
>  at flash.data::SQLStatement/execute()
>  
> Any ideas or suggestions as to what might cause the "undefined"?
> 
> Regards,
> 
> EdB
> 
> --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
> >
> > A co-worker had the same error the other day (In the web application
> though, not in AIR): Stack Overflow.
> >
> > In his case it turned out to be "rampant" events. He made sure to use
> event.stopImmediatePropagation() when the event was no longer required
> to bubble and the error went away.
> >
> > This may not fix your problem but it is well worth doing.
> >
> >
> > HTH.
> >
> >
> > Steve
> >
> >
> >
> > --- In flexcoders@yahoogroups.com, "erikdebruin_nl"
>  > >
> > > Hi,
> > >
> > > I've Googled me senseless, but I can't find a clue to my latest
> problem:
> > >
> > > When I run my application in the browser, all is fine. When the same
> app in AIR (we've build it so the same codebase is shared between on-
> and offline versions), I get an exception and the last line in the stack
> trace (as shown in the Console) reads "undefined". The error dialog the
> player throws up (after clicking on the "Resume (F8)" button in the
> debug perspective) tells me a "stack overflow" happened.
> > >
> > > The "funny" thing is, when I disable the code that seems to be the
> cause (taking my clues from the stack trace), the problem remains, but
> the stack trace tells me another line is the problem... and so on and
> on.
> > >
> > > Google tells me that a stack overflow mostly has to do with rampant
> recursion, but my app doesn't use recursion anywhere. It does however
> use a lot of event chains. Do these count as "recursion"?
> > >
> > > What does it mean that the last line of the stack trace reads
> "undefined"?
> > >
> > > Any suggestions about further debugging my problem are very welcome!
> > >
> > > Thanks in advance,
> > >
> > > EdB
> > >
> >
>




[flexcoders] Re: Establishing a AMF Secure connection need 1 second delay!!!?

2009-07-10 Thread valdhor
I wonder if it is the time it takes to encrypt/decrypt the stream? Does it 
happen with non-secure calls?



--- In flexcoders@yahoogroups.com, "Dan"  wrote:
>
> Thanks Valdhor for your response,
> 
> my case is much more simple. It only has one RO and makes a single call, 
> however from the Charles, there are two amfsecure under the messagebroker/, 
> the second call is the call the RO explicity makes, and the first call is 
> detailed as
> 
> Command Message: 5
> Parameters Object
> Result DSK
> headers
> \ DSId
> \ DSMessagingVersion
> 
> Which i have no idea what is it about.
> 
> And between the first and second call, the delay is from 0.4 to 1s
> 
> Daniel
> 
> --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
> >
> > I don't use secure communications (My applications are deployed in an 
> > intranet) but I just had a look at my communications in Charles.
> > 
> > On startup I create two remote objects that call a total of three remote 
> > methods. Each remote object sends a "Command Message" of 2.3KB which takes 
> > 160ms. The first RO makes two calls which takes 288ms and uses a total of 
> > 8.1KB. The second RO makes a single call which takes 369ms and uses a total 
> > of 2.5KB.
> > 
> > By my reckoning that is 977ms for 15.2KB of data. One thing I don't know is 
> > if each RO call is made concurrently. If so (And I believe it is) then the 
> > max time taken for all calls is 529ms.
> > 
> > Perhaps it is something else going on in your application? Can you create a 
> > test case that shows the delay?
> > 
> > 
> > Best Regards
> > 
> > 
> > 
> > 
> > Steve
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "Dan"  wrote:
> > >
> > > Hi,
> > > 
> > > Does anyone notice that it takes nearlly ONE second for the first AMF or 
> > > AMFsecure call to establish? Is there way to make this time shorter?
> > > 
> > > The observation is from when the swf is loaded, imediately a amfsecure A' 
> > > call is made, from a Charles proxy, there is another unknown amfsecure 
> > > call before that and has a one second delay before the A' really emit.
> > > 
> > > Regards
> > > Dan
> > >
> >
>




[flexcoders] how to hide ADG sort divider?

2009-07-10 Thread danilabuonora
hi, 
does anyone know how to make an andaceddatagrid look like a datagrid (hide de 
sorting thing, it takes way to much space)???
(I want to make it look like a datagrid)

thanks a lot!



[flexcoders] setRemoteCredentials timeout?

2009-07-10 Thread Derrick Anderson
Hi,  when you setRemoteCredentials on a RemoteObject- is there a timeout for
that?  I do not use sessions with my back-end, i pass credentials with every
request- but it seems after a certain period of time the RemoteObject stops
sending those credentials. Is there any way to get around that?

thanks,
d.


[flexcoders] Re: Setting Tree.selectedItem

2009-07-10 Thread bhaq1972
Problem solved. This is what I wanted

public function test():void
{
  // Select "Receipt" node -> first Expand menu then selectItem
menuTree.expandItem(XML(menuTree.dataProvider[0]..node.(@label == 
"Receipt")).normalize().parent(), true, true);

menuTree.selectedItem = XML(menuTree.dataProvider[0]..node.(@label == 
"Receipt")).normalize();
}

--- In flexcoders@yahoogroups.com, "bhaq1972"  wrote:
>
> I'm trying to set the selectedItem for the given example. But I'm having all 
> sorts of problems. 
> 
> The tree's dataprovider is XML. I'm only interested in selecting the child 
> nodes (@label == "Receipt")that means I have to expand the menu as well.
> 
> Can someone give me some ideas?
> 
> Code ->
> http://www.adobe.com/2006/mxml";>
>   
>   
>showRoot="false" dataProvider="{menu_data}"/>
>   
>
>  
> 
>   
> 
>   
>
>  
>  
> 
> 
>
>
>  
>   
> 
> 
>




[flexcoders] Who else is here - SharedObjects?

2009-07-10 Thread Wally Kolcz
I want to do a conference room application for work and would like to
show who else is logged in and in the 'room'. I was thinking that
SharedObjects would be the way to go, but after doing a little
research, it doesn't seem that is the way it works. Is there a way for
a Flex/LCDS application to 'see' who all is on or logged in to be able
to create a list of people. Similar to a traditional chat room setting?
Thanks!


[flexcoders] Re: java data send to flex issue

2009-07-10 Thread valdhor
Try returning an array of strongly typed objects.


--- In flexcoders@yahoogroups.com, j2me_soul  wrote:
>
> This is my data structure at back-end using java,
> 
>  
> 
> ArrayList
> 
>   HashTable(keys, values);
> 
>   HashTable(keys, values);
> 
>   ...
> 
>   ...
> 
>  
> 
> but the problem is when push the data to flex this data structure will be 
> coverd to a instance of ArrayCollection and the HashTable covered to a Object.
> 
> HashTable is out-of-order so the order of my data in flex is different every 
> time . I use the ArrayCollection bind to the DataList component directly, and 
> I don't want to indicate the order of each columns of  each DataList 
> Component.How can I fix this ?
> 
>  
> 
>  
> 
> var dataSource:ArrayCollection = from Java back-end;
> 
>  
> 
> 
> 
>  
> 
> I don't want to indicate each columns like this, because I have a lot of 
> different structure tables in SQL.
> 
>  
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>




[flexcoders] Re: Custom DataGrid with Form for itemeditor (any examples)???

2009-07-10 Thread flexaustin
I would prefer not to use a popup, but rather an inline form in the actual 
datagrid row. Just not sure how I would get the inline form to expand across 
all the columns.




--- In flexcoders@yahoogroups.com, niamath basha  wrote:
>
> you mean
> when we click on datagrid row display a popup with a form containing details
> of the selected row
> and then you can edit, delete the details.
> 
> With Regards,
> Niamath Basha
> www.niamathbasha.wordpress.com
> 
> 
> 
> On Thu, Jul 9, 2009 at 10:08 PM, flexaustin  wrote:
> 
> >
> >
> > Wondering if anyone has ever seen and example of a custom DataGrid
> > component where you click a row in the DataGrid to edit it and instead of
> > showing a combobox or textfield as an itemeditor you replace the entire row
> > with a form.
> >
> > So any row or columns lines would be removed or the form would be
> > positioned overtop of the row.
> >
> > TIA
> >
> >  
> >
>




[flexcoders] Re: Trying to make SoundManager class using getDefinitionByName

2009-07-10 Thread valdhor
Hmmm... You got me.

This is what I came up with...

package assets.sounds
{
 import flash.media.Sound;
 import flash.media.SoundChannel;
 import flash.net.URLRequest;

 public class SoundManager
 {
 private var sound:Sound;
 private var channel:SoundChannel;

 public function playSound(sSoundName:String):void
 {
 if(channel != null)
 {
 channel.stop();
 }
 sound = new Sound();
 var req:URLRequest = new URLRequest("assets/sounds/" +
sSoundName + ".mp3");
 sound.load(req);
 channel = sound.play();
 }//playSound
 }//class SoundManager
}//package assets.sounds


http://www.adobe.com/2006/mxml";
layout="horizontal"
 creationComplete="onCreationComplete()">
 
 
 
 
 
 



--- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
>
> I am trying to make a sound manager class that will simplify playing a
sound by using an id string.  I have embedded the sound files, but am
havign trouble getting the Sound object initialized. I get an error,
"Variable beep1 is not defined" though cllearly it is.
>
> I suspect I am misusing getDefinitionByName.  If there is an
easier/better way, I am open to that as well.  The full class code is
below.
>
> Tracy
>
> package assets.sounds
> {
>   import flash.utils.getDefinitionByName;
>   import flash.media.Sound;
>
>   public class SoundManager
>   {
> [Embed(source="beep-1.mp3")]private var beep1:Class;
> [Embed(source="beep-2.mp3")]private var beep2:Class;
> [Embed(source="beep-3.mp3")]private var beep3:Class;
>
>
> public function playSound(sSoundName:String):void
> {
>   var classRef:Class = getDefinitionByName(sSoundName) as Class; 
//Variable beep1 is not defined.
>   var s:Sound = new classRef as Sound;
>   s.play();
> }//playSound
>   }//class SoundManager
> }//package assets.sounds
>



[flexcoders] BrowserManager not working

2009-07-10 Thread edencane

Hi.

I want to get the information of the current URL

This is my code. It aint workin'. What 'm I doing wrong?


http://www.adobe.com/2006/mxml"; layout="absolute" 
creationComplete="init()">








-- 
View this message in context: 
http://www.nabble.com/BrowserManager-not-working-tp24406204p24406204.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Help me in Citation Map

2009-07-10 Thread Satish Chowdary
hi folks,

Please provide any valuable information about citation map 
i need some guidelines to how to create and all

 
Thanks inAdvance
Satish





From: valdhor 
To: flexcoders@yahoogroups.com
Sent: Wednesday, 8 July, 2009 10:46:33 AM
Subject: [flexcoders] Re: Accesing Webservices behind Firewall





So long as the server hosting WebORB can access the Web Service behind the 
firewall, then you can use WebORB.

Just download the latest version of WebORB.

--- In flexcod...@yahoogro ups.com, "vin.flex"  wrote:
>
> Hi there,
> 
> I have developed a Flex app with .NET webservices as the
> backend. Webservices are deployed beind firewall. How can I access
> those webservices from my client side Flex app.
> 
> Can I access using proxie using Weborb? If so what is the edition I
> need to use. Can any body guide me in this issue?
> 
> thanks
> vin
>





  See the Web's breaking stories, chosen by people like you. Check out 
Yahoo! Buzz. http://in.buzz.yahoo.com/

[flexcoders] Re: 3 questions

2009-07-10 Thread ag_rcuren
The ButtonBar allows you to specify 3 different styles:




This lets you provide separate styles for both end buttons and the ones
in the middle

--- In flexcoders@yahoogroups.com, "christophe_jacquelin"
 wrote:
>
> Hello,
>
> I have 3 questions
>
> - How to initialize a DateField with the date of the day ?
>
> - How to add a skin for the buttons of a buttonbar ?
>
> - How to display in red a given row of a DataGrid ?
>
> Thank you,
> Christophe
>




[flexcoders] How to connect Xcelsius data to Flex Chart component

2009-07-10 Thread riadashboard
I am needing to use spreadsheet data in my Xcelsius project and also use
Flex to  create custom components. I was able to successfully build and
deploy a Flex  custom component into Xcelsius, however, this component
used hard-coded data  inside the Flex source to compile the charts. This
is not a workable solution  for us as we need to be able to use the
inherent data in Xcelsius spreadsheets  to bind to the custom components
we bring into Xcelsius.

So...how can I  bind the spreadsheet data from Xcelsius to the custom
Flex component  charts/graphs to create a visualization or population of
the graph? Xcelsius  graphs are able to use the properties panel to
create "titles" and create the  data connection, however, my new custom
component from Flex does not have this  properties panel available. This
panel is empty. Is there a way to either create  properties to use or
enable Xcelsius to bind inherent properties to my custom  components?

I found in the book "Xcelsis 2008: Dashboard Best  Practices", written
by Loren Abdulezer who is also connected with Xcelsius  Journal, that is
states to modify a line of code from a previous example in the  book.
The instructions don't directly fix the problem because they only
address  the example used in the book and not a generic, custom
application. Here is the  abridged code from the previous sample 
BasicHorizontalSlider.as:

package  com.anl.book.basicslider
{
import  mx.controls.HSlider;
import  mx.controls.Label;
[CxInspectableList ("title",  "showTitle")]
[Inspectable(defaultValue="showTitle",  type="String")]
[Inspectable(defaultValue="Title",  type="String")]
.
.
.

There is also a get/set function for  each "title" and "showTitle"

public function get  title():String{...}
public function set  title(value:String):void):String{...}
public function get  showTitle():String{...}
public function set  showTitle(value:String):void):String{...}
.
.
.

The steps  for the fix are as follows:
1. Change the line of code in the  BasicHorizontalSlider.as file from 
[CxInspectableList("title","showTitle")] to 
[CxInspectableList("title","showTitle","value")]
2. Save  file
3. Re-compile the SWF
4. Rebuld the .xlx file for  Xcelsius
5. Load the new component

I suppose my question  would be how does this solution get modified to
my example or for any other  example in the future? The previous sample
referenced by  BasicHorizontalSlider.as is a app which displays a
sliding bar displaying  the x-value in a tooltip as you drag the control
left and right. So, then is the  element CxInspectableList the variable
which needs to be changed per  usage?

Support from SAP, on a separate discussion thread I am having, has
stated the  following in a separate discussion thread on their boards:

When the Xcelsius 2008 Default Property Sheet loads for your add-on this
is  what is does:



* Looks for the
[CxInspectableList(+propertyName+,propertyName2,+...+)]
meta  data in your add-on class


* So you must have a property in your add-on class for each name in 
CxInspectableList.
* The property sheet will have an entry for each name in
CxInspectableList --  the data type is picked up from the Inspectable
meta-data for each property.
* You can define a property in Flex as a public var (and Flex
generates a  getter and setter for you) or you create your own getter
and setter as we do for  the majority of our properties.
* The reason you see us you our own getter and setter (for example
with the  title) is so we can detect when the title has been changed (so
the setter has  been called) and do something to update our add-on
display.

So for  each property that you want to see in the Xcelsius 2008 Default
Property Sheet  you need to:


* Create the property in your add-on, add the http://Inspectable
 (...+) meta data for your  property.
* Add the property name to CxInspectableList
* Re-compile your SWF.
* Re-package your XLX
* Re-import the XLX into Xcelsius
Then if you have done things  correctly you should see your new property
in the add-on property sheet.
My code snippet for the attempted fix, as instructed by SAP's support,
is  as follows:
public var scores:String;
public var names:String;
public  var scoreValues:Number;


[Inspectable(defaultValue="true")]
[CxInspectable("scores","names","scoreValues")]

Somewhere  I am doing something wrong, however, I cant determine where
my errors are  located...hmm.


Does the fact that I am wanting to databind to a BarChart have an effect
of the  coding syntax? If in my first example the code was
straightforward for using  only one linear value of data to populate a
sliding control bar, I would presume  the syntax for a bar chart would
be contain more variables and be slightly more  complex?

Any suggestions?
Thanks in advance.
Alex Dove


[flexcoders] Re: 3 questions

2009-07-10 Thread ag_rcuren
--- In flexcoders@yahoogroups.com, "christophe_jacquelin" 
 wrote:
>
> Hello, 
> 
> I have 3 questions 
> 
> - How to initialize a DateField with the date of the day ? 
> 
> - How to add a skin for the buttons of a buttonbar ?
> 
> - How to display in red a given row of a DataGrid ?
> 
> Thank you,
> Christophe
>

A ButtonBar allows you to specify styles for the first button, the last button, 
and the buttons in the middle.






[flexcoders] Set up zendamf with flexbuilder

2009-07-10 Thread yonghan79
Hi all,i follow the tutorial about Integrate Flex Builder 3.0 & Php easly with 
the fresh ZendAMF..I got this error message 

[RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" 
faultDetail="Channel.Connect.Failed error NetConnection.Call.BadVersion: : url: 
'http://localhost/zend_gateway.php'"]
at 
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:220]
at 
mx.rpc::Responder/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:53]
at 
mx.rpc::AsyncRequest/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:103]
at 
mx.messaging::ChannelSet/faultPendingSends()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\ChannelSet.as:1482]
at 
mx.messaging::ChannelSet/channelFaultHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\ChannelSet.as:975]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at 
mx.messaging::Channel/connectFailed()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\Channel.as:997]
at 
mx.messaging.channels::PollingChannel/connectFailed()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\channels\PollingChannel.as:354]
at 
mx.messaging.channels::AMFChannel/statusHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\channels\AMFChannel.as:390]

Where did i go wrong..Also i don't know how to set up the bootstrap..I hope 
that someone is willing to point me the right direction..Thanks a lot... ^_^



Re: [flexcoders] How to link effects so that one starts after one finishes?

2009-07-10 Thread Robert VanCuren Jr
You could also use a sequence effect that would play the effects on after
the other



  

  

  



On Thu, Jul 9, 2009 at 11:10 AM, claudiu ursica wrote:

>
>
> You can play the first effect and listen to the effectEnd event ant in the
> handler start the second effect or you can go with putting the effects
> inside a Sequence.
>
> C
>
> --
> *From:* Chet Haase 
> *To:* "flexcoders@yahoogroups.com" 
> *Sent:* Thursday, July 9, 2009 5:50:27 PM
> *Subject:* RE: [flexcoders] How to link effects so that one starts after
> one finishes?
>
>
>
> There are a couple of ways you could make this work:
>
>
>
> 1)  Simplest: make your triggered effects do the right thing (the
> appearing one waits for the disappearing one to finish, via a startDelay):
>
>
>
> 
> 
>
>
>
> This would ensure that the wipeUp effect (which always runs on the
> component coming into view, in your example) will not run until the duration
> of the wipeDown (used for the disappearing component) is finished.
>
>
>
> 2)  More involved: Use transitions
>
> Instead of triggers for these one-off effects, you could set up your
> application to use states for your components. in one state, the DataGrid
> would be there anre the List would not, in the other state the List would be
> there and the DataGrid would not. Then you could set up transitions for
> these states. It’s a bit more involved, but might scale better than just
> running individual effects on the components.
>
>
>
> Chet.
>
>
>
> *From:* flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com]
> *On Behalf Of *gmoniey22
> *Sent:* Wednesday, July 08, 2009 6:29 PM
> *To:* flexcod...@yahoogro ups.com
> *Subject:* [flexcoders] How to link effects so that one starts after one
> finishes?
>
>
>
>
>
>
>  I have two components, and I want to swap between them using wipe
> down/up. i.e. click a button, the visible panel slides down, and after that
> panel is no longer visible, the other panel slides up and takes its place.
>
> I have tried something like the following (please excuse the crude
> example), but the effects occur at the same time, and it doesn't look that
> good.
>
> 
> http://www.adobe. com/2006/ 
> mxml"
> layout="absolute">
> 
> 
> 
>
>
> 
> 
>
> 
>  showEffect="wipeUp" hideEffect="wipeDown" />
>  hideEffect="wipeDown"/>
> 
> 
> 
>
>
>  
>


[flexcoders] Re: "undefined" in stack trace (Console), stack overflow

2009-07-10 Thread erikdebruin_nl
Hi,

Thanks for your swift reply.

I did a check to see if what you suggest might be the case, by
inserting a trace() in all the event dispatch and handler functions,
but nowhere in the chain does this type of recursion occur.

I do however see that the entire chain is run dozens of times, while
the data structure is build from the data in the database. But this is
expected behavior, and the case remains that this code functions
flawlessly in the online version (again, build from the same
codebase).

Any suggestions on how to proceed with debugging, as well as why the
stack trace shows a single final line with only the word "undefined"
in it, are much apreciated.

Regards,

EdB

--- In flexcoders@yahoogroups.com, thomas parquier  wrote:
>
> You may have one type of event (A) handled in a function which dispatches
> another type of event (B) handled in a function which dispatches an event of
> type A. If dispatching occurs before handler functions return you may get a
> stack overflow.
> 
> thomas
> ---
> http://www.web-attitude.fr/
> msn : thomas.parqu...@...
> softphone : sip:webattit...@... 
> téléphone portable : +33601 822 056
> 
> 
> 2009/7/8 erikdebruin_nl
> 
> >
> 
> >
> >
> > Hi,
> >
> > I've Googled me senseless, but I can't find a clue to my latest problem:
> >
> > When I run my application in the browser, all is fine. When the same app in
> > AIR (we've build it so the same codebase is shared between on- and offline
> > versions), I get an exception and the last line in the stack trace (as shown
> > in the Console) reads "undefined". The error dialog the player throws up
> > (after clicking on the "Resume (F8)" button in the debug perspective) tells
> > me a "stack overflow" happened.
> >
> > The "funny" thing is, when I disable the code that seems to be the cause
> > (taking my clues from the stack trace), the problem remains, but the stack
> > trace tells me another line is the problem... and so on and on.
> >
> > Google tells me that a stack overflow mostly has to do with rampant
> > recursion, but my app doesn't use recursion anywhere. It does however use a
> > lot of event chains. Do these count as "recursion"?
> >
> > What does it mean that the last line of the stack trace reads "undefined"?
> >
> > Any suggestions about further debugging my problem are very welcome!
> >
> > Thanks in advance,
> >
> > EdB
> >
> >  
> >
>




Re: [flexcoders] Re: "undefined" in stack trace (Console), stack overflow

2009-07-10 Thread Erik de Bruin
Amy, is that you?

AWARE forever!

;-P

EdB

PS. I'm trying your suggestion now, thanks.

On Thu, Jul 9, 2009 at 3:06 PM, Amy wrote:
>
>
> --- In flexcoders@yahoogroups.com, Erik de Bruin  wrote:
>>
>> Hi,
>>
>> Thanks for your swift reply.
>>
>> I did a check to see if what you suggest might be the case, by
>> inserting a trace() in all the event dispatch and handler functions,
>> but nowhere in the chain does this type of recursion occur.
>>
>> I do however see that the entire chain is run dozens of times, while
>> the data structure is build from the data in the database. But this is
>> expected behavior, and the case remains that this code functions
>> flawlessly in the online version (again, build from the same
>> codebase).
>>
>> Any suggestions on how to proceed with debugging, as well as why the
>> stack trace shows a single final line with only the word "undefined"
>> in it, are much apreciated.
>
> Hey, Erik;
>
> You might want to call disableAutoUpdate on the collection, so you just get
> one event at the end (when you call enableAutoUpdate).
>
> If that doesn't help, I'm not sure what else to suggest without looking at
> your code.
>
> HTH;
>
> Amy
>
> 



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl


[flexcoders] Re: "undefined" in stack trace (Console), stack overflow

2009-07-10 Thread erikdebruin_nl
Hi,

Thanks for your swift reply.

I did a check to see if what you suggest might be the case, by
inserting a trace() in all the event dispatch and handler functions,
but nowhere in the chain does this type of recursion occur.

I do however see that the entire chain is run dozens of times, while
the data structure is build from the data in the database. But this is
expected behavior, and the case remains that this code functions
flawlessly in the online version (again, build from the same
codebase).

I tried putting event.stopImmediatePropagation() is all event handler, but that 
didn't do the trick either.

Any suggestions on how to proceed with debugging, as well as why the
stack trace shows a single final line with only the word "undefined"
in it, are much apreciated.

Regards,

EdB

--- In flexcoders@yahoogroups.com, thomas parquier  wrote:
>
> You may have one type of event (A) handled in a function which dispatches
> another type of event (B) handled in a function which dispatches an event of
> type A. If dispatching occurs before handler functions return you may get a
> stack overflow.
> 
> thomas
> ---
> http://www.web-attitude.fr/
> msn : thomas.parqu...@...
> softphone : sip:webattit...@... 
> téléphone portable : +33601 822 056
> 
> 
> 2009/7/8 erikdebruin_nl
> 
> >
> 
> >
> >
> > Hi,
> >
> > I've Googled me senseless, but I can't find a clue to my latest problem:
> >
> > When I run my application in the browser, all is fine. When the same app in
> > AIR (we've build it so the same codebase is shared between on- and offline
> > versions), I get an exception and the last line in the stack trace (as shown
> > in the Console) reads "undefined". The error dialog the player throws up
> > (after clicking on the "Resume (F8)" button in the debug perspective) tells
> > me a "stack overflow" happened.
> >
> > The "funny" thing is, when I disable the code that seems to be the cause
> > (taking my clues from the stack trace), the problem remains, but the stack
> > trace tells me another line is the problem... and so on and on.
> >
> > Google tells me that a stack overflow mostly has to do with rampant
> > recursion, but my app doesn't use recursion anywhere. It does however use a
> > lot of event chains. Do these count as "recursion"?
> >
> > What does it mean that the last line of the stack trace reads "undefined"?
> >
> > Any suggestions about further debugging my problem are very welcome!
> >
> > Thanks in advance,
> >
> > EdB
> >
> >  
> >
>




[flexcoders] "undefined" in red in the Console

2009-07-10 Thread erikdebruin_nl
Hi all,

What does it mean when I see the word "undefined" in red in the Console, as the 
top line of the stack trace after an apparent exception happened?

EdB



[flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2

2009-07-10 Thread zi or
While I try to run my Flex Profiler I got this error message:

In the flash application I got the following exception:
Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox 
violation: 
file:///C|%2Fwork%2Flabsense%2Fbranches%2Frel%5F1%5F2%5F5%5FEA%2Fsources%2Fui%2F.metadata%2F.plugins%2Fcom.adobe.flash.profiler%2FProfilerAgent.swf?host=localhost&port=
 cannot load data from localhost:.
at 
ProfilerAgent()[C:\SVN\branches\3.2.0\modules\profiler3\as\ProfilerAgent.as:127]


And in the flex Profiler console (at the eclipse) I got : Socket timeout.

I am run on windows vista,
Flex builder: 3.2
Flash debugger : 10,0,22,87

Things that I have done to resolve this issue:
•   Switch the connection port of the profiler to 9998 (and back)
•   Remove and reinstall the flash debugger player.
•   Install flex builder 3.2 (instead of 3.0)
•   Delete all the enters in the mm.cfg file
•   Add enter to the mm.cfg : 
PreloadSwf=C:\work\labsense\Sources\ui\.metadata\.plugins\com.adobe.flash.profiler\ProfilerAgent.swf?host=localhost&port=
 
or
PreloadSwf=C:\work\labsense\Sources\ui\.metadata\.plugins\com.adobe.flash.profiler\ProfilerAgent.swf?host=localhost&port=9998
or
PreloadSwf=C:/work/labsense/Sources/ui/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf?host=localhost&port=
or with spaces:
PreloadSwf=C: \ work \ labsense \ Sources \ ui \ .metadata \ .plugins \ 
com.adobe.flash.profiler \ ProfilerAgent.swf?host=localhost&port=
or
C:\work\labsense\Sources\ui\.metadata\.plugins\com.adobe.flash.profiler\ProfilerAgent.swf?
or add all or some of the enters:
TraceOutputFileName=C:\Users\zivo\AppData\Roaming\Macromedia\Flash 
Player\Logs\flashlog.txt
ErrorReportingEnable=1
MaxWarnings=0
TraceOutputFileEnable=1
ProfilingFileOutputEnable=1
•   Turn on and off the vista firewall
•   Add exception for port  in the vista firewall
•   Try to run the profiler SWF separately

Same result.

Try one last thing:

Because I have expreins problem little bit similar before with the flash 
debugger , the resolution then was :
1.  Right click on flash player (debugger),
2.  choose "Debugger",
3.  choose "other machine" 
4.  add "127.0.0.1"
5.  click ok
then, it solve the issue (but apparently he connect to the debugger with host 
127.0.0.1 instead of localhost (which is a same )
I now add to the mm.cfg file, the follow entry:
PreloadSwf=C:/work/labsense/branches/rel_1_2_5_EA/sources/ui/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf?host=127.0.0.1&port=
Then, after saving , I run the profiler, and its work!!


And the resonse for all this was :
Some program change the file:
C:\Windows\System32\drivers\etc\hosts
To:
# Copyright (c) 1993-2006 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#  102.54.94.97 rhino.acme.com  # source server
#   38.25.63.10 x.acme.com  # x client host


::1 localhost
127.0.0.1   iDBO # LMS GENERATED LINE


This means that localhost is not lead to 127.0.0.1!!!

Fixing is easy :

# ::1 localhost
# 127.0.0.1   iDBO # LMS GENERATED LINE
127.0.0.1   localhost

Instead (remark the problem and fix the problem


Thenks

Ziv


--- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
>
> 
> Hi all,
> 
> I just updated the Flex SDK to version 3.2, and am now getting a
> Security sandbox violation error everytime that I launch an AIR
> application from Eclipse.  I was wondering if anyone else has run into
> this and might know of a fix.  The stack trace is listed below.
> 
> Thanks,
> -TH
> 
> Error #2044: Unhandled securityError:. text=Error #2048: Security
> sandbox violation:
> file:///C|%2Fdev%2Fworkspace%2F.metadata%2F.plugins%2Fcom.adobe.flash.pr\
> ofiler%2FProfilerAgent.swf?host=localhost&port=
>  rofiler%2FProfilerAgent.swf?host=localhost&port=>  cannot load data
> from localhost:.
>   at
> ProfilerAgent()[C:\faramir\flex\sdk\modules\profiler3\as\ProfilerAgent.a\
> s:127]
>   at runtime::ContentPlayer/loadInitialContent()
>   at runtime::ContentPlayer/playRawContent()
>   at runtime::ContentPlayer/playContent()
>   at runtime::AppRunner/run()
>   at global/runtime::ADLEntry()
>




[flexcoders] Re: "undefined" in stack trace (Console), stack overflow (2nd try)

2009-07-10 Thread erikdebruin_nl
Steve,

Thanks for you reply.

I added event.stopImmediatePropagation() in the (seemingly) relevant event 
handlers, but no luck :-(

Any idea where the "undefined" in the stack trace might come from?

EdB

--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> A co-worker had the same error the other day (In the web application though, 
> not in AIR): Stack Overflow.
> 
> In his case it turned out to be "rampant" events. He made sure to use 
> event.stopImmediatePropagation() when the event was no longer required to 
> bubble and the error went away.
> 
> This may not fix your problem but it is well worth doing.
> 
> 
> HTH.
> 
> 
> Steve
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "erikdebruin_nl"  
> wrote:
> >
> > Hi,
> > 
> > I've Googled me senseless, but I can't find a clue to my latest problem:
> > 
> > When I run my application in the browser, all is fine. When the same app in 
> > AIR (we've build it so the same codebase is shared between on- and offline 
> > versions), I get an exception and the last line in the stack trace (as 
> > shown in the Console) reads "undefined". The error dialog the player throws 
> > up (after clicking on the "Resume (F8)" button in the debug perspective) 
> > tells me a "stack overflow" happened. 
> > 
> > The "funny" thing is, when I disable the code that seems to be the cause 
> > (taking my clues from the stack trace), the problem remains, but the stack 
> > trace tells me another line is the problem... and so on and on.
> > 
> > Google tells me that a stack overflow mostly has to do with rampant 
> > recursion, but my app doesn't use recursion anywhere. It does however use a 
> > lot of event chains. Do these count as "recursion"?
> > 
> > What does it mean that the last line of the stack trace reads "undefined"?
> > 
> > Any suggestions about further debugging my problem are very welcome!
> > 
> > Thanks in advance,
> > 
> > EdB
> >
>




[flexcoders] Re: "undefined" in stack trace (Console), stack overflow

2009-07-10 Thread erikdebruin_nl
Hi Thomas,

Thanks for your patience.

I wasn't clear about the "undefined": it is not a regular trace() line
(which show up in black in the Console), it is the word "undefined" in
RED and it shows up as the top line of the stack trace dump after the
crash, like this:


SWF] Presenter_AIR.swf - 2,508,088 bytes after decompression
undefined
 at
nl.ixms.app.data::SheetItem/loadFromDbResultHandler()[/{removed}/SheetIt\
em.as:114]
 at nl.ixms.db::Db/dbResultHandler()[/{removed}/Db.as:214]
 at flash.data::SQLStatement/internalExecute()
 at flash.data::SQLStatement/execute()
etc.


EdB

--- In flexcoders@yahoogroups.com, thomas parquier 
wrote:
>
> I would say the "undefined" trace matches a simple "trace(one_var);"
in a
> file which is particular to your offline project (not in shared libs).
>
> To talk again about events based stack overflow, I would put two
surrounding
> "trace" in event handlers to see stacked functions :
>
> > function handlerFunction(e:event):void {
> >trace('handlerFunction for', e.type);
> >// code goes here
> >trace('/handlerFunction for',e.type);
> > }
>
>
>
> thomas
> ---
> http://www.web-attitude.fr/
> msn : thomas.parqu...@...
> softphone : sip:webattit...@...  téléphone portable : +33601 822 056
>
>
> 2009/7/8 Erik de Bruin erikdebr...@...
>
> >
> >
> > Hi,
> >
> > Thanks for your swift reply.
> >
> > I did a check to see if what you suggest might be the case, by
> > inserting a trace() in all the event dispatch and handler functions,
> > but nowhere in the chain does this type of recursion occur.
> >
> > I do however see that the entire chain is run dozens of times, while
> > the data structure is build from the data in the database. But this
is
> > expected behavior, and the case remains that this code functions
> > flawlessly in the online version (again, build from the same
> > codebase).
> >
> > Any suggestions on how to proceed with debugging, as well as why the
> > stack trace shows a single final line with only the word "undefined"
> > in it, are much apreciated.
> >
> > Regards,
> >
> > EdB
> >
> >
> > On Wed, Jul 8, 2009 at 5:44 PM, thomas
> > parquiermailingli...@... >
> > wrote:
> > >
> > >
> > > You may have one type of event (A) handled in a function which
dispatches
> > > another type of event (B) handled in a function which dispatches
an event
> > of
> > > type A. If dispatching occurs before handler functions return you
may get
> > a
> > > stack overflow.
> > >
> > > thomas
> > > ---
> > > http://www.web-attitude.fr/
> >
> > > msn : thomas.parqu...@...
> > > softphone : sip:webattit...@... 
> > > téléphone portable : +33601 822 056
> > >
> > >
> > > 2009/7/8 erikdebruin_nl

> > >
> > >>
> > >>
> > >> Hi,
> > >>
> > >> I've Googled me senseless, but I can't find a clue to my latest
problem:
> > >>
> > >> When I run my application in the browser, all is fine. When the
same app
> > >> in AIR (we've build it so the same codebase is shared between on-
and
> > >> offline versions), I get an exception and the last line in the
stack
> > trace
> > >> (as shown in the Console) reads "undefined". The error dialog the
player
> > >> throws up (after clicking on the "Resume (F8)" button in the
debug
> > >> perspective) tells me a "stack overflow" happened.
> > >>
> > >> The "funny" thing is, when I disable the code that seems to be
the cause
> > >> (taking my clues from the stack trace), the problem remains, but
the
> > stack
> > >> trace tells me another line is the problem... and so on and on.
> > >>
> > >> Google tells me that a stack overflow mostly has to do with
rampant
> > >> recursion, but my app doesn't use recursion anywhere. It does
however
> > use a
> > >> lot of event chains. Do these count as "recursion"?
> > >>
> > >> What does it mean that the last line of the stack trace reads
> > "undefined"?
> > >>
> > >> Any suggestions about further debugging my problem are very
welcome!
> > >>
> > >> Thanks in advance,
> > >>
> > >> EdB
> > >>
> > >
> > >
> >
> > --
> > Ix Multimedia Software
> >
> > Jan Luykenstraat 27
> > 3521 VB Utrecht
> >
> > T. 06-51952295
> > I. www.ixsoftware.nl
> >
> >
>



[flexcoders] Re: "undefined" in stack trace (Console), stack overflow (2nd try)

2009-07-10 Thread erikdebruin_nl
Steve,

No luck :-(

The stack trace look like this:


[SWF] Presenter_AIR.swf - 2,508,088 bytes after decompression
undefined
 at
nl.ixms.app.data::SheetItem/loadFromDbResultHandler()[/{removed}/SheetIt\
em.as:114]
 at nl.ixms.db::Db/dbResultHandler()[/{removed}/Db.as:214]
 at flash.data::SQLStatement/internalExecute()
 at flash.data::SQLStatement/execute()
 wrote:
>
> A co-worker had the same error the other day (In the web application
though, not in AIR): Stack Overflow.
>
> In his case it turned out to be "rampant" events. He made sure to use
event.stopImmediatePropagation() when the event was no longer required
to bubble and the error went away.
>
> This may not fix your problem but it is well worth doing.
>
>
> HTH.
>
>
> Steve
>
>
>
> --- In flexcoders@yahoogroups.com, "erikdebruin_nl"
 >
> > Hi,
> >
> > I've Googled me senseless, but I can't find a clue to my latest
problem:
> >
> > When I run my application in the browser, all is fine. When the same
app in AIR (we've build it so the same codebase is shared between on-
and offline versions), I get an exception and the last line in the stack
trace (as shown in the Console) reads "undefined". The error dialog the
player throws up (after clicking on the "Resume (F8)" button in the
debug perspective) tells me a "stack overflow" happened.
> >
> > The "funny" thing is, when I disable the code that seems to be the
cause (taking my clues from the stack trace), the problem remains, but
the stack trace tells me another line is the problem... and so on and
on.
> >
> > Google tells me that a stack overflow mostly has to do with rampant
recursion, but my app doesn't use recursion anywhere. It does however
use a lot of event chains. Do these count as "recursion"?
> >
> > What does it mean that the last line of the stack trace reads
"undefined"?
> >
> > Any suggestions about further debugging my problem are very welcome!
> >
> > Thanks in advance,
> >
> > EdB
> >
>



[flexcoders] Re: setStyle not valid

2009-07-10 Thread ag_rcuren
--- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
>
> 
> styleLabel.setStyle("fontSize", 72);
> -TH
> 
> --- In flexcoders@yahoogroups.com, j2me_soul  wrote:
> >
> > I try to change the style at runtime
> >
> >  click="butClickHandler(event)"/>
> > 
> >
> > private function butClickHandler(event:MouseEvent):void
> > {
> > /* it doesn't work */
> > styleLabel.setStyle("font-size", 72);
> > }
> >
>


Try this:

styleLabel.setStyle("fontSize", 72);

Flex Style names are camel cased so instead of font-size it is fontSize



[flexcoders] Error adding image to DisplayList

2009-07-10 Thread gordofeatherfoot
Hello all,

I have a problem that is not very easy to explain so please bare with me.

Here is the context:

I have a Component class written in pure AS3 that extends the Canvas Class. I 
then have a Weather component that extends that Component Class. This Weather 
Component contains a couple of labels some HBoxes and an Image component.

Now here is the problem:

When I addChild(x) where x is my Weather component. I get an Error :

TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
at 
mx.controls::SWFLoader/addedToStageHandler()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\controls\SWFLoader.as:1990]
at flash.display::DisplayObjectContainer/addChildAt()
at 
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$addChildAt()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\core\UIComponent.as:5083]
...

Hints to the reason for this error:

1. My weather component is compiled seperatly and loaded at runtime.
2. The IMAGE in the Weather component is the culprit. The other components in 
the Weather comp get added with no errors .
3. I traced the error to the "addedToStageHandler" of the SWFLoader:

private function addedToStageHandler(event:Event):void
{

systemManager.getSandboxRoot().addEventListener(InterManagerRequest.DRAG_MANAGER_REQUEST,
 
mouseShieldHandler, false, 0, true);
}

In this funtion the systemManager is null!

There, I hope I made myself clear :-)
Any help would be very very apreaciated.

Thank you,
Bounce



[flexcoders] Setting Tree.selectedItem

2009-07-10 Thread bhaq1972
I'm trying to set the selectedItem for the given example. But I'm having all 
sorts of problems. 

The tree's dataprovider is XML. I'm only interested in selecting the child 
nodes (@label == "Receipt")that means I have to expand the menu as well.

Can someone give me some ideas?

Code ->
http://www.adobe.com/2006/mxml";>

  
  

   
 



  
 
   
   
  
  
 
 
   
  





[flexcoders] Right mouse button with Flash Player 10

2009-07-10 Thread christophe_jacquelin
Hello, 

How to start a function when the user press on the right mouse button on an 
image. 

I have tried solutions on the web : they are working with Flash Player 9 but 
not with Flash Player 10.

Thank you,
Christophe, 




Re: [flexcoders] Re: dynamic image gallery

2009-07-10 Thread thomas parquier
oops, read "event.result.getItemAt(0)" instead of "lastResult[0]"...
I think you should keep one data holder ( or arrayCollection)
which would be bound to gallery and whatever has to get images path and
label.
You may keep  (because easier to read than AS)  to store data
usefull for gallery component :

> 
>

  title
>   {home_tiles.selectedItem.data.imgId_home}
>   
>
> img1{dataAr1.getItemAt(0).img1}
>
> img2{dataAr1.getItemAt(0).img2}
>
> img3{dataAr1.getItemAt(0).img3}
>
> img4{dataAr1.getItemAt(0).img4}
>
>   

   
> 
>
then use "parentDocument.homeImages.images.img" as data provider for
gallery's horizontalList, and "parentDocument.homeImages.label" for
gallery's label.

thomas
---
http://www.web-attitude.fr/
msn : thomas.parqu...@web-attitude.fr
softphone : sip:webattit...@ekiga.net 
téléphone portable : +33601 822 056


2009/7/10 stinasius 

>
>
> Hi you were not being offensive, sorry if i gave you the idea you were, as
> a matter of fact you are trying to help and i am grateful for it. now i cant
> use lastResult because i am using a remote object and there is no
> resultFormat property on RemoteObject methods. so am still stuck, plus where
> you suggesting i do away with the  completely?
>
>  
>


[flexcoders] Re: Establishing a AMF Secure connection need 1 second delay!!!?

2009-07-10 Thread Dan
Thanks Valdhor for your response,

my case is much more simple. It only has one RO and makes a single call, 
however from the Charles, there are two amfsecure under the messagebroker/, the 
second call is the call the RO explicity makes, and the first call is detailed 
as

Command Message: 5
Parameters Object
Result DSK
headers
\ DSId
\ DSMessagingVersion

Which i have no idea what is it about.

And between the first and second call, the delay is from 0.4 to 1s

Daniel

--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> I don't use secure communications (My applications are deployed in an 
> intranet) but I just had a look at my communications in Charles.
> 
> On startup I create two remote objects that call a total of three remote 
> methods. Each remote object sends a "Command Message" of 2.3KB which takes 
> 160ms. The first RO makes two calls which takes 288ms and uses a total of 
> 8.1KB. The second RO makes a single call which takes 369ms and uses a total 
> of 2.5KB.
> 
> By my reckoning that is 977ms for 15.2KB of data. One thing I don't know is 
> if each RO call is made concurrently. If so (And I believe it is) then the 
> max time taken for all calls is 529ms.
> 
> Perhaps it is something else going on in your application? Can you create a 
> test case that shows the delay?
> 
> 
> Best Regards
> 
> 
> 
> 
> Steve
> 
> 
> --- In flexcoders@yahoogroups.com, "Dan"  wrote:
> >
> > Hi,
> > 
> > Does anyone notice that it takes nearlly ONE second for the first AMF or 
> > AMFsecure call to establish? Is there way to make this time shorter?
> > 
> > The observation is from when the swf is loaded, imediately a amfsecure A' 
> > call is made, from a Charles proxy, there is another unknown amfsecure call 
> > before that and has a one second delay before the A' really emit.
> > 
> > Regards
> > Dan
> >
>




Re: [flexcoders] Re: why does my MXML act differently than my AS?

2009-07-10 Thread Tom Chiverton
On Thursday 09 Jul 2009, Pan Troglodytes wrote:
> Yes, that's what I was referring to in the first post about digging through
> the generated source.

Sorry, didn't see that in the issue.

-- 
Helping to assertively innovate 24/365 principle-centered metrics as part of 
the IT team of the year, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

[flexcoders] Make label of LegendItem selectable

2009-07-10 Thread rleuthold
Hi,

I try to make the text of the LegendItem label selectable, unfortunately with 
no luck.

I thought this approach woud do the trick:

1.) Extend LegendItem
2.) override the set label and get label methods
3.) override the createChildren method

In the createChildren() method I try to add a Label (made it selectable) to the 
LegendItem, with the text which is set by the setter for the label.

Unfortunately the Label never shows up - anybody knows how to do this right?

Thank's
rico



[flexcoders] Stop tree to tree drag and drop from adding node?

2009-07-10 Thread Mic
Cannot find a preDrop() type method. It seems like the dropped leaf/node is 
added by the time I get into the target tree dragDrop handler. Based on 
comparing XML attributes in source and target nodes I need to "stop a drop" :-) 
At the moment I am having to go through the target tree looking for the dropped 
node and delete it - a pain. Can I stop it being added in the first place. As 
always, TIA,

Mic.



[flexcoders] Antialiasing true removing characters

2009-07-10 Thread Rohit Sharma
Hi All,

 I am using an embedded font in my application. I am using
advancedantialiasing to show sharper digits.
But using advancedAntiAliasing as true is removing . (U+002E) character.

So, when advancedAntiAliasing is false 7...45 is printed as 7...45
but changing advancedAntiAliasing to true
makes it 745 removing all the dots.

  Has somebody else also faced a similar problem?

Regards,
Rohit


[flexcoders] Re: tree not expanding with expandItem()

2009-07-10 Thread Mic
Thanks Tracy!

--- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
>
> When you assign a dataProvider programmatically, you need to wait for the
> control to update before attempting to interact with the visual elements,
> like node expanding.
> 
>  
> 
> Use callLater to delay the expand code.
> 
>  
> 
> I have an example on www.cflex.net   if you need it.
> 
>  
> 
> Tracy Spratt,
> 
> Lariat Services, development services available
> 
>   _  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of Mic
> Sent: Wednesday, July 08, 2009 12:53 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] tree not expanding with expandItem()
> 
>  
> 
> 
> 
> 
> 
> 
> collSearchHierarchy = new XMLListCollection(procXML);
> treeSrchHrchy.expandItem(collSearchHierarchy.getItemAt(0), true);
> 
> Tree is staying collapsed and not expanding. Interesting that stepping
> through above, treeSrchHrchy.openItems is null before the .expandItem() and
> does show the top node in the openItems array after setting expandItem().
> Which would suggest that expandItem is working but the display is not
> displaying it? Adding a 
> 
> treeSrchHrchy.invalidateDisplayList(); does not help. TIA,
> 
> Mic.
>




Re: [flexcoders] java data send to flex issue

2009-07-10 Thread niamath basha
try to create an object in flex similar to java return object

With Regards,
Niamath Basha
www.niamathbasha.wordpress.com



2009/7/10 j2me_soul 

>
>
> This is my data structure at back-end using java,
>
>
>
> ArrayList
>
>   HashTable(keys, values);
>
>   HashTable(keys, values);
>
>   ...
>
>   ...
>
>
>
> but the problem is when push the data to flex this data structure will be
> coverd to a instance of ArrayCollection and the HashTable covered to a
> Object.
>
> HashTable is out-of-order so the order of my data in flex is different
> every time . I use the ArrayCollection bind to the DataList component
> directly, and I don't want to indicate the order of each columns of  each
> DataList Component.How can I fix this ?
>
>
>
>
>
> var dataSource:ArrayCollection = from Java back-end;
>
>
>
> 
>
>
>
> I don't want to indicate each columns like this, because I have a lot of
> different structure tables in SQL.
>
>
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
>
>
>
> --
> 200万种商品,最低价格,疯狂诱惑你
> 
>


Re: [flexcoders] Re: Streaming in LCDS

2009-07-10 Thread niamath basha
hey there is no reply
you just replied blank..

With Regards,
Niamath Basha
www.niamathbasha.wordpress.com



On Fri, Jul 10, 2009 at 12:50 AM, Shailesh Mangal  wrote:

>
>
>
> --- In flexcoders@yahoogroups.com , niamath
> basha 
> wrote:
>
> >
> > Hi all,
> >
> > I have a problem with streaming in LCDS. while running the sample
> using
> > streaming channel it works fine when run it as 'localhost'. but when I
> tried
> > to run it through IP address its not working. I tried to change the
> endpoint
> > url by giveing ip address. but its not working. plese help me out.
> >
> > With Regards,
> > Niamath Basha
> > www.niamathbasha.wordpress.com
> >
>
>  
>


Re: [flexcoders] Custom DataGrid with Form for itemeditor (any examples)???

2009-07-10 Thread niamath basha
you mean
when we click on datagrid row display a popup with a form containing details
of the selected row
and then you can edit, delete the details.

With Regards,
Niamath Basha
www.niamathbasha.wordpress.com



On Thu, Jul 9, 2009 at 10:08 PM, flexaustin  wrote:

>
>
> Wondering if anyone has ever seen and example of a custom DataGrid
> component where you click a row in the DataGrid to edit it and instead of
> showing a combobox or textfield as an itemeditor you replace the entire row
> with a form.
>
> So any row or columns lines would be removed or the form would be
> positioned overtop of the row.
>
> TIA
>
>  
>