[flexcoders] Re: Modules the way to go?

2008-05-06 Thread Daniel

That's the problem... I won't develop the modules that will be running
in the desktop manager... I'll only load them and unload them... But I
want to make sure the application runs fast...

Are there any tricks or tips to ensure the modules run fast and
release unused resources? 

If I have several small modules opened (say 6 to 10, each of 20K to
60K size), they shouldnt crash or overload the browser?


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

 A module is as big as you make it.  I'd be checking to make sure it is
 small and releases unused resources.
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Daniel
 Sent: Monday, May 05, 2008 8:19 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Modules the way to go?
 
  
 
 Hey guys,
 
 Im actually working on an application that controls several Flex made
 apps. It's like a desktop manager application that manages several
 widgets. The applications running in the desktop manager are modules
 set on the server, that are loaded and unloaded per user request, but
 when a user have 6 or more Modules opened at the time the desktop
 manager becomes really slow, and the explorer can even crash!
 
 Am I working the modules the wrong way, or this component really adds
 that kind of weight to the computer? Is there another way to go?
 
 Thanx a lot guys...





[flexcoders] SOAP requests and arrays being collapsed into val1,val2,val3... Any ideas?

2008-05-06 Thread Josh McDonald
Hi guys,

I've got something that should be going out like this:

allocations:invoices
xmlns:allocations=urn:www.sgintl.biz:schemas:allocations:v1

 allocations:invoiceALLOC005is1/allocations:invoice
 allocations:invoiceNoveaux/allocations:invoice
/allocations:invoices

but what I'm getting in my message is this:

allocations:invoices
xmlns:allocations=urn:www.sgintl.biz:schemas:allocations:v1

 allocations:invoiceALLOC005is1,Noveaux/allocations:invoice
/allocations:invoices

Is this something you've come across before? Any ideas? Even any ideas what
I should be looking for?

-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


RE: [flexcoders] Re: Modules the way to go?

2008-05-06 Thread Gregor Kiddie
I won't develop the modules

Well, that's your biggest problem, without being able to control the
modules, you can't guarantee the behaviour. It's quite possible if one
misbehaves it could lock your app up.

 

If I have several small modules opened (say 6 to 10, each of 20K to
60K size), they shouldnt crash or overload the browser?

No they shouldn't. We run an application with similar amounts of modules
(though bigger in size) without too many problems. There is anecdotal
evidence of people on this board running with many more (40? IIRC).

How are you organising the desktop? Do you have all the modules
displayed at the same time (you did mention open but that's not the same
thing)?

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
blocked::http://www.inps.co.uk/ 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED]



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Daniel
Sent: 06 May 2008 07:22
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Modules the way to go?

 


That's the problem... I won't develop the modules that will be running
in the desktop manager... I'll only load them and unload them... But I
want to make sure the application runs fast...

Are there any tricks or tips to ensure the modules run fast and
release unused resources? 

If I have several small modules opened (say 6 to 10, each of 20K to
60K size), they shouldnt crash or overload the browser?

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

 A module is as big as you make it. I'd be checking to make sure it is
 small and releases unused resources.
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Daniel
 Sent: Monday, May 05, 2008 8:19 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Modules the way to go?
 
 
 
 Hey guys,
 
 Im actually working on an application that controls several Flex made
 apps. It's like a desktop manager application that manages several
 widgets. The applications running in the desktop manager are modules
 set on the server, that are loaded and unloaded per user request, but
 when a user have 6 or more Modules opened at the time the desktop
 manager becomes really slow, and the explorer can even crash!
 
 Am I working the modules the wrong way, or this component really adds
 that kind of weight to the computer? Is there another way to go?
 
 Thanx a lot guys...


 



[flexcoders] Re: Modules the way to go?

2008-05-06 Thread Bjorn Schultheiss
Any external swf you load can crash your app.
It's a really big issue with the player at the moment.

From my experience Modules provide you a good basis for multi-swf
architecture with Flex.



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

 I won't develop the modules
 
 Well, that's your biggest problem, without being able to control the
 modules, you can't guarantee the behaviour. It's quite possible if one
 misbehaves it could lock your app up.
 
  
 
 If I have several small modules opened (say 6 to 10, each of 20K to
 60K size), they shouldnt crash or overload the browser?
 
 No they shouldn't. We run an application with similar amounts of modules
 (though bigger in size) without too many problems. There is anecdotal
 evidence of people on this board running with many more (40? IIRC).
 
 How are you organising the desktop? Do you have all the modules
 displayed at the same time (you did mention open but that's not the same
 thing)?
 
 Gk.
 
 Gregor Kiddie
 Senior Developer
 INPS
 
 Tel:   01382 564343
 
 Registered address: The Bread Factory, 1a Broughton Street, London SW8
 3QJ
 
 Registered Number: 1788577
 
 Registered in the UK
 
 Visit our Internet Web site at www.inps.co.uk
 blocked::http://www.inps.co.uk/ 
 
 The information in this internet email is confidential and is intended
 solely for the addressee. Access, copying or re-use of information in it
 by anyone else is not authorised. Any views or opinions presented are
 solely those of the author and do not necessarily represent those of
 INPS or any of its affiliates. If you are not the intended recipient
 please contact [EMAIL PROTECTED]
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Daniel
 Sent: 06 May 2008 07:22
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Modules the way to go?
 
  
 
 
 That's the problem... I won't develop the modules that will be running
 in the desktop manager... I'll only load them and unload them... But I
 want to make sure the application runs fast...
 
 Are there any tricks or tips to ensure the modules run fast and
 release unused resources? 
 
 If I have several small modules opened (say 6 to 10, each of 20K to
 60K size), they shouldnt crash or overload the browser?
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Alex Harui aharui@ wrote:
 
  A module is as big as you make it. I'd be checking to make sure it is
  small and releases unused resources.
  
  
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of Daniel
  Sent: Monday, May 05, 2008 8:19 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] Modules the way to go?
  
  
  
  Hey guys,
  
  Im actually working on an application that controls several Flex made
  apps. It's like a desktop manager application that manages several
  widgets. The applications running in the desktop manager are modules
  set on the server, that are loaded and unloaded per user request, but
  when a user have 6 or more Modules opened at the time the desktop
  manager becomes really slow, and the explorer can even crash!
  
  Am I working the modules the wrong way, or this component really adds
  that kind of weight to the computer? Is there another way to go?
  
  Thanx a lot guys...
 





Re: [flexcoders] Child items in custom component

2008-05-06 Thread Stephen Downs

sure you added your '_nodeContainer' Sprite to the display list?




On 5 May 2008, at 16:34, Weyert de Boer wrote:


Hello!

I am currently a bit clueless regarding using Flex components. I am
currently trying to port a .NET component to Flex. Only I have some
problems. In a simplified form the problem is that I am trying to add
childs to the component. The idea is to use public method to add nodes
to the component. The code could be:

var node: MyNode = new MyNode();
node.width = node.height = 125;
myComponentInstance.addNode( node );

The addNode-method is basically contains:

public function addNode( node: MyNode ): void {
_nodeContainer.addChild( DisplayObject(node) );
invalidateDisplayList();
}

The _nodeContainer is a Sprite class which gets created in the  
overriden
createChildren-method. Now I would be expected that the MyNode- 
instance

(which just draws a simple rectangle 125x125) would be shown. Sadly
enough, this is not the case.

Does anyone know what should be done to get this working?

Yours,
Weyert de Boer






[flexcoders] pass value to a headerRenderer?

2008-05-06 Thread cyrill.zadra
Hi,

I have a little test datagrid where each column has a header that
contains a label an a combobox. Now I'd like to fill the data from the
column as value in the combobox. Is there a way the pass value to a
header renderer? 

the demo you'll find on
http://www.zadra.ch/flex/datagridfilter/DataGridComboBoxFilter.html

datagrid code snippet

mx:DataGrid id=objlist x=293 y=188 width=407 height=182
sortableColumns=true dataProvider={addresses}
mx:columns
mx:DataGridColumn headerText=Country 
dataField=country
headerRenderer=comp.FilterComboBox /
mx:DataGridColumn headerText=State dataField=state
headerRenderer=comp.FilterComboBox/
mx:DataGridColumn headerText=City dataField=city
headerRenderer=comp.FilterComboBox/
/mx:columns
/mx:DataGrid


thanks  regards

cyrill



Re: [flexcoders] Flex/ColdFusion use-mappings ignored?

2008-05-06 Thread Tom Chiverton
On Friday 02 May 2008, Battershall, Jeff wrote:
 As I said, I'm willing to be convinced otherwise, but you'd have to make
 sure that your paths are correct 

Dev. is the same as live, as far as ColdSpring is concerned (a 'coldspring' 
mapping) and the generated CFCs use a relative path of '/com/foo/bar/baz' so 
as long as ...

 and that CF has write permissions on 
 the directory that you've designated for your proxies, although I
 suppose some big, fat exeception would be thrown if it didn't. 

... we either remember to set the permissions, or understand the exception 
when creating the bean, it's fine.

 Another thing I've used at times in Flex/CF integration are pre-defined
 destinations to specific source locations in remoting-config.xml - how
 would auto-generated remote proxies work with that?

Exactly the same as to any other CFC. That's one of the strengths of 
autogenerating them - your Flex app now does not care you've got 
AOP/ColdSpring in the back end, it just sees a CFC.

-- 
Tom Chiverton, convinced yet ?



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. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



[flexcoders] unsubscribe

2008-05-06 Thread Tom Lee



Re: [flexcoders] Re: Use Cairngorm wihtout Dispatch

2008-05-06 Thread Tom Chiverton
On Sunday 04 May 2008, Stephen Downs wrote:
 What is the difference of the view knowing what event it has to
 dispatch, to it actually knowing the method on the controller it was
 to invoke? 

If your Controller changes, you have to change every view that uses it.

-- 
Tom Chiverton
Helping to preemptively maintain strategic e-commerce
on: http://thefalken.livejournal.com



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. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



[flexcoders] httpservice.send() problem in flex

2008-05-06 Thread Deniz Davutoglu
Hello everyone,
I try to use some data driven tree control with php mysql and apache
server. I include or delete new nodes to tree and save it. When I
browse page in firefox send() method works fine and save data to
mysql, but in ie or opera it doesn't! it seems that it does something
because tree controll is blinking during refresh but actual data is
not saved.
Do you have any idea why it is like this?

Thanks
Deniz



[flexcoders] Re: Checkbox as a headerRenderer

2008-05-06 Thread markgoldin_2000
Not sure I am following. 
When a user clicks on a checkbox I have to accomplish a few tasks. 
First, I want to make a column enabled because be default it comes 
disabled. How do I reference the column from my checkbox rendereder?


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

 Have your classfactory only return one instance.
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of markgoldin_2000
 Sent: Monday, May 05, 2008 1:22 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Checkbox as a headerRenderer
 
  
 
 I am implementing a checkbox as a headerRenderer:
 public class CheckBoxHeaderRenderer extends CheckBox
 {
 public function CheckBoxHeaderRenderer()
 {
 super();
 addEventListener(click, clickHandler);
 }
 override protected function clickHandler(event:MouseEvent):void
 {
 super.clickHandler(event);
 }
 }
 I need to be able to communicate to a column that would have that 
 header. I need to enable/disable it, as well as reset column's 
data. 
 Any idea? 
 Thanks





[flexcoders] Understanding Actionscript 3 and CFCs with CF8

2008-05-06 Thread corsini.bruno
Hello everyone!
I am a developer Italian struggling in the world of flex 3.
I apologize for my poor English ...

I am planning an authentication system works and RemoteObject CFCs ...

I Need some help figuring out how to operate ...

Disinguo 2 files:

1) cfc: contains query that comes from the database
2) remoteobject and tags mx: script that creates a SharedObject to
save username and password

I do not know how to go to ShareObject username and password since in
cfc not use actioscript?

Thanks ... I thank you in advance.




[flexcoders] File Uploading

2008-05-06 Thread Pravin Uttarwar
Hi All,

I have requirement in my project of uploading the image file only.
This can be done through  using FileReference class but can anybody tell me
how
it can be done using BlazeDs with java (not using jsp)

Thanks in advance.


[flexcoders] Learning flex !

2008-05-06 Thread Laila Towailib
What is the best way to learn flex coding in your opinion ?


[flexcoders] RTMP vs AMF

2008-05-06 Thread Adolfo Ruiz
What is the difference bettwen these two channels? i cant find  a good answer .


best regards. 


  

Yahoo! Deportes Beta
¡No te pierdas lo último sobre el torneo clausura 2008! Entérate aquí 
http://deportes.yahoo.com

[flexcoders] Re: How do I add a header or additional post parameter to a RemoteObject Request

2008-05-06 Thread jennie_mai_nguyen
Valdhor, thanks for the reply. I actually call the function directly
on the service with the args: 

myService.getMyStuff(data1, data2);

I want to put uniqueToken on the POST request itself, so that I
don't have to change all the method signatures to include the token. 

When the request goes through a web filter in my app, I want to be
able to do something like
httpServletRequest.getParameter(uniqueToken) or putting it on the
header would work: httpServletRequest.getHeader(uniqueToken)

Is there any way to do this? Thanks again.

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

 Just send an object as the parameter that you send:
 
 var myService:RemoteObject = new RemoteObject();
 myService.source = myServices.MyService;
 myService.destination = amfphp;
 myService.requestTimeout = 30;
 myService.addEventListener(ResultEvent.RESULT, myResult);
 myService.addEventListener(FaultEvent.FAULT, faultHandler);
 
 var myParameters:Object = new Object();
 myParameters.data1 = data1;
 myParameters.data2 = data2;
 myParameters.uniqueToken = myUniqueToken ;
 myService.getOperation('getMyStuff').send(myParameters);
 
 
 --- In flexcoders@yahoogroups.com, jennie_mai_nguyen
 jennie_mai_nguyen@ wrote:
 
  Hi there, 
  
  Is it possible to add a header or an additional post parameter to a
  remoting request (using RemoteObject)? 
  
  I need to include a unique token to every remoting request, but have
  not found a way to do it. 
  
  I also tried to use the RemoteObject.setRemoteCredentials(), reading
  that it will set the DSCredentials header, but I don't see it on the
  servletRequest when one of the web filters on the server processes
it. 
  
  Any feedback is appreciated. Thanks.
 





[flexcoders] How to clear an ArrayCollection

2008-05-06 Thread timgerr
Is there a command that will clear an array collection or do I have to
use a loop to do it?

Thanks,
timgerr



[flexcoders] Re: FB and command line mxmlc inconsistency

2008-05-06 Thread marstonstudio
I posted a bug in the adobe flex database on this issue. Vote for it
if you have experienced the same issue

https://bugs.adobe.com/jira/browse/SDK-15466

Jon Marston

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

 In Flexbuilder, the following declaration (in a stylesheet)is okay.
 
 Embed(source=assets/images/pen.png)
 
 but when I build the project using command-line mxmlc, i get an error
 
 Invalid Embed directive in style sheet - can't resolve source 
 
 
 BTW. I dont want to use Embed(source=/assets/images/pen.png).
 
 
 any ideas?





AW: [flexcoders] How to clear an ArrayCollection

2008-05-06 Thread Andreas Santoro
var arr:ArrayCollection = new ArrayCollection();
 arr.removeAll()


Andreas Santoro
Senior Consultant


Plan-B GmbH
Kolpingstr. 6
D-73433 Aalen

Tel.: +49 (0) 177 1762129
Mail: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]-b-gmbh.commailto:[EMAIL 
PROTECTED]
Web: 
www.planhttp://www.plan-b-gmbh.com/-b-gmbh.comhttp://www.plan-b-gmbh.com/

Geschäftsführer
Tobias Schmailzl
Ralph Sturm
Registergericht Ulm
HRB 720355
Sitz der Gesellschaft ist Aalen
Ust.ID DE250875731

Von: flexcoders@yahoogroups.com [EMAIL PROTECTED] im Auftrag von timgerr [EMAIL 
PROTECTED]
Gesendet: Dienstag, 6. Mai 2008 06:30
An: flexcoders@yahoogroups.com
Betreff: [flexcoders] How to clear an ArrayCollection


Is there a command that will clear an array collection or do I have to
use a loop to do it?

Thanks,
timgerr





[flexcoders] Re: How do I add a header or additional post parameter to a RemoteObject Request

2008-05-06 Thread valdhor
The only way I see to do what you want is to delve into sockets but
this would be a very difficult proposition.

I still think you are better off putting all your data into a generic
object (Or better yet, a VO) and pulling it out on the server. This
will give you a lot more flexibility in the future (If you need to add
another parameter, it is very simple to do so) for a bit of extra
effort to rewrite your accessor methods.

Maybe someone else here has an idea?


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

 Valdhor, thanks for the reply. I actually call the function directly
 on the service with the args: 
 
 myService.getMyStuff(data1, data2);
 
 I want to put uniqueToken on the POST request itself, so that I
 don't have to change all the method signatures to include the token. 
 
 When the request goes through a web filter in my app, I want to be
 able to do something like
 httpServletRequest.getParameter(uniqueToken) or putting it on the
 header would work: httpServletRequest.getHeader(uniqueToken)
 
 Is there any way to do this? Thanks again.
 
 --- In flexcoders@yahoogroups.com, valdhor stevedepp@ wrote:
 
  Just send an object as the parameter that you send:
  
  var myService:RemoteObject = new RemoteObject();
  myService.source = myServices.MyService;
  myService.destination = amfphp;
  myService.requestTimeout = 30;
  myService.addEventListener(ResultEvent.RESULT, myResult);
  myService.addEventListener(FaultEvent.FAULT, faultHandler);
  
  var myParameters:Object = new Object();
  myParameters.data1 = data1;
  myParameters.data2 = data2;
  myParameters.uniqueToken = myUniqueToken ;
 
myService.getOperation('getMyStuff').send(myParameters);
  
  
  --- In flexcoders@yahoogroups.com, jennie_mai_nguyen
  jennie_mai_nguyen@ wrote:
  
   Hi there, 
   
   Is it possible to add a header or an additional post parameter to a
   remoting request (using RemoteObject)? 
   
   I need to include a unique token to every remoting request, but have
   not found a way to do it. 
   
   I also tried to use the RemoteObject.setRemoteCredentials(), reading
   that it will set the DSCredentials header, but I don't see it on the
   servletRequest when one of the web filters on the server processes
 it. 
   
   Any feedback is appreciated. Thanks.
  
 





Re: [flexcoders] Is it possible to build a Flex 3 app that will play in Flash Player 7 for Wii

2008-05-06 Thread Greg Hess
Thanks folks, much appreciated! Fresh new flash app and code base it is :-(.

-Greg

On Fri, May 2, 2008 at 3:23 PM, Battershall, Jeff 
[EMAIL PROTECTED] wrote:

I wouldn't get  your hopes up - at least as far as Flex 2 or 3 is
 concerned.  You can use component versions that shipped with Flash 2004 +
 AS2.  You could do alot of things, including remoting, but it would be a
 relatively slow and arduous process to develop.  It is possible to compile
 Flex 1.5 apps using mxmlc to standalone swfs, but there are licensing
 hurdles to surmount.

 Jeff

  -Original Message-
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Greg Hess
  *Sent:* Friday, May 02, 2008 2:35 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Is it possible to build a Flex 3 app that will
 play in Flash Player 7 for Wii

   Well, I'm not sure :-).

 Our application or at least one of our modules must be supported by the
 Flash 7 VM installed on the Wii.

 -Greg

 On Fri, May 2, 2008 at 1:46 PM, Tracy Spratt [EMAIL PROTECTED]
 wrote:

 Do you really mean Flash 7, or do you mean Flex 1.5 + AS 2?
 
 
 
  Tracy
 
 
   --
 
  *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
  Behalf Of *Greg Hess
  *Sent:* Friday, May 02, 2008 12:58 PM
  *To:* flexcoders@yahoogroups.com
  *Subject:* Re: [flexcoders] Is it possible to build a Flex 3 app that
  will play in Flash Player 7 for Wii
 
 
 
  Bummer. I was hoping to reuse 'some' code from our main application.
 
 
 
  Do you know the dev environment that supports building Flash 7
  applications?
 
 
 
  Thanks,
 
 
  Greg
 
  On Fri, May 2, 2008 at 11:13 AM, Jim Hayes [EMAIL PROTECTED]
  wrote:
 
  I don't believe so, flex 3 is AS3 only as far as I know.
 
 
 
  -Original Message-
  *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
  Behalf Of *Greg Hess
  *Sent:* 02 May 2008 16:08
  *To:* flexcoders@yahoogroups.com
  *Subject:* [flexcoders] Is it possible to build a Flex 3 app that will
  play in Flash Player 7 for Wii
 
 
 
  Hi All,
 
 
 
  I have a requirement to support Flash Player 7 for the Wii for one of
  our application modules. Is it possible to build this using Flex 3?
 
 
 
  Thanks,
 
 
  Greg
 
 
 
  __
  This communication is from Primal Pictures Ltd., a company registered in
  England and Wales with registration No. 02622298 and registered office: 4th
  Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK.
  VAT registration No. 648874577.
 
  This e-mail is confidential and may be privileged. It may be read,
  copied and used only by the intended recipient. If you have received it in
  error, please contact the sender immediately by return e-mail or by
  telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not
  disclose its contents to any person.
  This email has been scanned for Primal Pictures by the MessageLabs Email
  Security System.
  __
 
 
 
 
 



[flexcoders] Re: AdvancedDataGrid (focus?) problem

2008-05-06 Thread sameerbhatt13
Kindly log a bug here - http://bugs.adobe.com/flex/

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

 I'm having some weird issues with ADG that seem to be somehow focus
 related. In some cases ADG will open editor for the last edited cell
 even though the editing has been stopped earlier.
 
 This can be reproduced in the example program (which can be found from
 the end of this message) by following these steps:
 1. Open Southwest - Nevada.
 2. Click Estimate column for the Bethany Pittman row to start editing.
 3. Cancel edit by pressing ESC.
 4. Select Northern California.
 5. Select Submenu from Menu.
 
 What's happening here is that after clicking submenu, an editor will
 open for the cell that was edited in step 2 and that row becomes
 selected again. This seems to happen with Opera, Firefox and IE.
 
 There is also another similar issue that seems to exist only for
 Firefox and Opera:
 1. Follow steps 1-4 from the previous example.
 2. Change to some other program window.
 3. Go back to the browser.
 4. Click anywhere in the table.
 
 Again, editor for the last edited cell will open where ever you click.
 
 Is there something I'm missing here or is this a bug in ADG?
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute
   mx:Script
 ![CDATA[
 import mx.collections.ArrayCollection;
   
 [Bindable]
 private var dpFlat:ArrayCollection = new ArrayCollection([
   {Region:Southwest, Territory:Arizona, 
   Territory_Rep:Barbara Jennings, Actual:38865,
 Estimate:4}, 
   {Region:Southwest, Territory:Arizona, 
   Territory_Rep:Dana Binn, Actual:29885,
 Estimate:3},  
   {Region:Southwest, Territory:Central California, 
   Territory_Rep:Joe Smith, Actual:29134,
 Estimate:3},  
   {Region:Southwest, Territory:Nevada, 
   Territory_Rep:Bethany Pittman, Actual:52888,
 Estimate:45000},  
   {Region:Southwest, Territory:Northern California, 
   Territory_Rep:Lauren Ipsum, Actual:38805,
 Estimate:4}, 
   {Region:Southwest, Territory:Northern California, 
   Territory_Rep:T.R. Smith, Actual:55498,
 Estimate:4},  
   {Region:Southwest, Territory:Southern California, 
   Territory_Rep:Alice Treu, Actual:44985,
 Estimate:45000}, 
   {Region:Southwest, Territory:Southern California, 
   Territory_Rep:Jane Grove, Actual:44913,
 Estimate:45000}
 ]);
 ]]
 /mx:Script
 
 mx:Panel title=AdvancedDataGrid Control Example
 height=75% width=75% layout=horizontal
 paddingTop=10 paddingBottom=10 paddingLeft=10
 paddingRight=10
 
   mx:MenuBar labelField=@label
   mx:XMLList
   menuitem label=Menu
   menuitem label=Submenu /
   /menuitem
   /mx:XMLList
   /mx:MenuBar
 
 mx:AdvancedDataGrid id=myADG 
 width=100% height=100%
 editable=true 
 initialize=gc.refresh();
 mx:dataProvider
 mx:GroupingCollection id=gc source={dpFlat}
 mx:grouping
 mx:Grouping
 mx:GroupingField name=Region/
 mx:GroupingField name=Territory/
 /mx:Grouping
 /mx:grouping
 /mx:GroupingCollection
 /mx:dataProvider
 
 mx:columns
 mx:AdvancedDataGridColumn dataField=Region
 editable=false/
 mx:AdvancedDataGridColumn dataField=Territory
 editable=false/
 mx:AdvancedDataGridColumn dataField=Territory_Rep
 headerText=Territory Rep editable=false/
 mx:AdvancedDataGridColumn dataField=Actual
 editable=false/
 mx:AdvancedDataGridColumn dataField=Estimate
 editable=true/
 /mx:columns
/mx:AdvancedDataGrid
 /mx:Panel
   
 /mx:Application





Re: [flexcoders] Learning flex !

2008-05-06 Thread Riccardo Cohen
1) I've read the book Programming Flex 2 from Joey Lott and Chafic 
Kazoun, it helped me very much. They have published a flex3 version that 
seems valuable too.

2) using flex builder instead of free sdk is easier because there are a 
lot of helpers.


Laila Towailib wrote:
 What is the best way to learn flex coding in your opinion ?
 

-- 
Très cordialement,

Riccardo Cohen
---
Articque
http://www.articque.com
149 av Général de Gaulle
37230 Fondettes - France
tel : 02-47-49-90-49
fax : 02-47-49-91-49


Re: [flexcoders] itemUpdated() functionality for XML properties?

2008-05-06 Thread Daniel Gold
I believe I've seen XMLChangeWatchers used in generated source to listen for
attribute changes, etc, on XML data. I think the DataBinding chapter of the
Flex developers guide claims you can only bind to XML attributes and changes
in MXML, but at some point it gets compiled to AS.

On Mon, May 5, 2008 at 12:28 PM, Tracy Spratt [EMAIL PROTECTED] wrote:

 I have a bindable data model implemented as a singleton, several
 properties of which are implemented as XML.  My app uses binding and
 ChangeWatchers to respond to changes in this XML data.

 If I assign an entire xml to one of these properties, the property change is
 dispatched and my bindings fire and my watchers are called.

 But if I update an item in the xml, like set and attribute value or text
 node, it APPEARS that the events are not dispatched.  This is unsurprising,
 as it is analagous to updating an item property in a Collection, for 
 whichitemUpdated() method
 exists.

 First, is the behavior I am seeing is expected?  I know that XML
 dispatches ordinary events that fire bindings, but those events are 
 notgetting out of my model instance.  Second, if the behavior is expected,is
 there some similar itemUpdated() functionality for XML?

 Tracy
  



[flexcoders] FlashVars CF issue

2008-05-06 Thread nwebb
Hi,

I've set up my project so that when I hit Run or Debug my swf gets
published to a location on a development machine (rather than to the local
bin folder(s))

While the swf gets published to the correct location,  my problem is that,
by default, Flex generates an HTML wrapper to go with it. However, the
original HTML wrapper (i.e. the one on the remote machine) contains
FlashVars which I need to access.

My initial thought was to open up the Debug Dialogue/Run Dialogue and swap
the url/path to point to the original html. The problem is that the original
html wrapper is actually generated from a ColdFusion file, and pointing to
the ColdFusion file directly doesn't work of course.

Is there a better way of  of working like this with FlashVars, or do I
simply have to fake an html file with some FlashVars hardcoded? Any feedback
much appreciated.

Hopefully I've worded this post clearly enough to make some sense! (if not,
I've added a little more detail below).

Cheers,
Neil

MORE INFO


In the Flex Build Path settings I have set my Output Folder to be
Z:\wwwroot\project\folder
and my Output URL to be http://devMachineName/folder/

By default, the Debug Dialogue for the Flex project specifies the html
wrapper as:  http://devMachineName/folder/ProjectName.html

The swf is actually wrapped in some HTML which is generated by a ColdFusion
file (and this contains  FlashVars). The CFM is at
Z:\wwwroot\project\folder\ProjectName.cfm

*


[flexcoders] What are the analogous properties of Event Audio Play back and Stream Audio Play back in FLEX 3.0 vs. Flash?

2008-05-06 Thread Robert Thompson
I'm a very proficient ActionScript 2.0 programmer still learning to  
reach the same proficiency in ActionScript 3.0


So I wanted to ask anyone from Adobe or any other flexcoder experts  
out there:


What are the analogous properties of Event Audio Play back and Stream  
Audio Play back in FLEX 3.0 vs. Flash?


That is, in Flash, the stream method has been very good at ensuring  
the syncing of audio with visual animations, even if it has to skip  
frames, while the event mode simply plays.


I'm interested in capturing spectrum data in an event type mode  
(that's what it would be called in Flash) in FLEX 3.0


Then, I'm interested in playing back in a stream type mode (again  
referring to traditional Flash mp3 terms), that skips frames if it has  
to, to keep up with an accurate alignment of animation in a play-back  
mode.


Some may ask, why not just use computeSpectrum --- well I would be in  
the pre-processing, but in the playback, my requirements are necessary  
to play back in stream mode (once again a Flash term; so if I'm  
ignorant of the audio in ActionScript 3.0 forgive me).


So that in playback mode I'm not using computeSpectrum, but simply  
looking up in cell Index (or time Index) what the spectrum data would  
be that I had saved in pre-processing mode.


I'm creating a Logic Studio 8 Audio Unit and I want to ensure that I  
have a couterpart in FLEX 3.0 that can demonstrate some of what I'm  
trying to do.


-r

RE: [flexcoders] Flex/ColdFusion use-mappings ignored?

2008-05-06 Thread Battershall, Jeff
Tom,

C'mon - I'm not questioning your decision to take that approach - all I
was just trying to help the guy with the off-the-wall behavior he was
seeing. What's your take on his problem?

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Tuesday, May 06, 2008 6:14 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex/ColdFusion use-mappings ignored?


On Friday 02 May 2008, Battershall, Jeff wrote:
 As I said, I'm willing to be convinced otherwise, but you'd have to 
 make sure that your paths are correct

Dev. is the same as live, as far as ColdSpring is concerned (a
'coldspring' 
mapping) and the generated CFCs use a relative path of
'/com/foo/bar/baz' so 
as long as ...

 and that CF has write permissions on
 the directory that you've designated for your proxies, although I
 suppose some big, fat exeception would be thrown if it didn't. 

... we either remember to set the permissions, or understand the
exception 
when creating the bean, it's fine.

 Another thing I've used at times in Flex/CF integration are 
 pre-defined destinations to specific source locations in 
 remoting-config.xml - how would auto-generated remote proxies work 
 with that?

Exactly the same as to any other CFC. That's one of the strengths of 
autogenerating them - your Flex app now does not care you've got 
AOP/ColdSpring in the back end, it just sees a CFC.

-- 
Tom Chiverton, convinced yet ?



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. Any reference to a partner in relation to
Halliwells LLP means a member of Halliwells LLP.  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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
Links





RE: [flexcoders] Learning flex !

2008-05-06 Thread Matt Horn
The Flex Getting Started Experience has examples and conceptual information 
that are mean to give you an introduction to Flex coding:

 

http://learn.adobe.com/wiki/display/Flex/Getting+Started

 

hth,

matt horn

flex docs

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Riccardo Cohen
Sent: Tuesday, May 06, 2008 9:30 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Learning flex !

 

1) I've read the book Programming Flex 2 from Joey Lott and Chafic 
Kazoun, it helped me very much. They have published a flex3 version that 
seems valuable too.

2) using flex builder instead of free sdk is easier because there are a 
lot of helpers.

Laila Towailib wrote:
 What is the best way to learn flex coding in your opinion ?
 

-- 
Très cordialement,

Riccardo Cohen
---
Articque
http://www.articque.com http://www.articque.com 
149 av Général de Gaulle
37230 Fondettes - France
tel : 02-47-49-90-49
fax : 02-47-49-91-49

 



[flexcoders] questionfor AdvancedDataGrid?

2008-05-06 Thread markflex2007
Hi,

I have the following question about AdvancedDataGrid?

The code works fine:(code 1)

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
backgroundColor=#32669D
xmlns:ext=nl.wv.extenders.panel.*
  width=854
   
mx:Script
![CDATA[   

import mx.collections.ArrayCollection; 
 
   
[Bindable]
private var dpFlat:ArrayCollection = new ArrayCollection([
  {Region:Southwest, Territory:Arizona,
  Territory_Rep:Barbara Jennings, Actual:38865,
Estimate:4},
  {Region:Southwest, Territory:Arizona,
  Territory_Rep:Dana Binn, Actual:29885,
Estimate:3},
  {Region:Southwest, Territory:Central California,
  Territory_Rep:Joe Smith, Actual:29134,
Estimate:3},
  {Region:Southwest, Territory:Nevada,
  Territory_Rep:Bethany Pittman, Actual:52888,
Estimate:45000},
  {Region:Southwest, Territory:Northern California,
  Territory_Rep:Lauren Ipsum, Actual:38805,
Estimate:4},
  {Region:Southwest, Territory:Northern California,
  Territory_Rep:T.R. Smith, Actual:55498,
Estimate:4},
  {Region:Southwest, Territory:Southern California,
  Territory_Rep:Alice Treu, Actual:44985,
Estimate:45000},
  {Region:Southwest, Territory:Southern California,
  Territory_Rep:Jane Grove, Actual:44913,
Estimate:45000}
]);
   

   
   
]]
/mx:Script   
   
mx:Panel id=panel04 title=test panel
x=255 y=100 width=575 height=342
layout=absolute  
mx:Label x=15
y=46 text= Requests in the queue:
width=152 f/
   
 
 
mx:AdvancedDataGrid id=myADG  x=36 y=72
initialize=gc.refresh(); width=520 height=218
mx:dataProvider
mx:GroupingCollection id=gc source={dpFlat}
mx:grouping
mx:Grouping
 
mx:GroupingField name=Territory/
/mx:Grouping
/mx:grouping
/mx:GroupingCollection
/mx:dataProvider

mx:columns
mx:AdvancedDataGridColumn dataField=Region/
mx:AdvancedDataGridColumn dataField=Territory/
mx:AdvancedDataGridColumn dataField=Territory_Rep
headerText=Territory Rep/

/mx:columns
/mx:AdvancedDataGrid   
   
   
/mx:Panel   

   
/mx:Application

---

This code doesn't work (code 2)

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
backgroundColor=#32669D
xmlns:ext=nl.wv.extenders.panel.*
creati  show=QueueRequest()  width=854
   
mx:Script
![CDATA[   

import mx.collections.ArrayCollection; 
 
   
[Bindable]
public var dpFlat:ArrayCollection ; 
   
   
private function QueueRequest():void{
   
var dpFlat:ArrayCollection = new ArrayCollection([
  {Region:Southwest, Territory:Arizona,
  Territory_Rep:Barbara Jennings, Actual:38865,
Estimate:4},
  {Region:Southwest, Territory:Arizona,
  Territory_Rep:Dana Binn, Actual:29885,
Estimate:3},
  {Region:Southwest, Territory:Central California,
  Territory_Rep:Joe Smith, Actual:29134,
Estimate:3},
  {Region:Southwest, Territory:Nevada,
  Territory_Rep:Bethany Pittman, Actual:52888,
Estimate:45000},
  {Region:Southwest, Territory:Northern California,
  Territory_Rep:Lauren Ipsum, Actual:38805,
Estimate:4},
  {Region:Southwest, Territory:Northern California,
  Territory_Rep:T.R. Smith, Actual:55498,
Estimate:4},
  {Region:Southwest, Territory:Southern California,
  Territory_Rep:Alice Treu, Actual:44985,
Estimate:45000},
  {Region:Southwest, Territory:Southern California,
  Territory_Rep:Jane Grove, Actual:44913,
Estimate:45000}
]);

   
}   
   
]]
/mx:Script   
   
mx:Panel id=panel04 title=test panel
x=255 y=100 width=575 

[flexcoders] SWFLoader Object and Panel

2008-05-06 Thread hokjay
Hi All,
I am new to Flex, so please bear with me. I can load my swf sucessfully 
into both a SWFLoader and Image Component, and both as a static file 
and binary. My problem is when I render it in my panel, if the 
SWFLoader or Image component is smaller than than the panel, it floats 
on top (and is much larger than the panel itself - it actually goes 
larger than the canvas. If I make SWFLoader or Image component a little 
larger than the panel, it is contained in the panel, but with 
scrollbars (and this is not a desired behavior). Like I said, I am 
need, so it is probably something stupid I am doing. Any advice or a 
point in the right directions would be much appreciated.

I am using Flex 3 Builder.

Thanks. 




[flexcoders] Custom renderers - need help

2008-05-06 Thread markgoldin_2000
I am still having problem understanding how to do some things with 
custom renderers.
Here is a scanario (The code is simplified):
There is a HBox. That would have a few children:
public class columnHeaderCheckBox extends HBox
{
  public function columnHeaderCheckBox()
  {
super();
  }
  override protected function createChildren():void
  {
super.createChildren();
var leftSpace:Spacer = new Spacer();
leftSpace.width = 2;
addChild(leftSpace);
checkBox = new CheckBoxHeaderRenderer();
addChild(checkBox);
var title:Label = new Label();
title.text = Set;
addChild(title);
  }
}
CheckBoxHeaderRenderer is an extension of a checkbox.
I am setting a custom renderer for a header like this:
setOrderHeaderRenderer = new ClassFactory(columnHeaderCheckBox);
Gridreceiving.columns[4].headerRenderer = setOrderHeaderRenderer;
So far so good.
But what if I want to run some code on one of the children of 
columnHeaderCheckBox before it actually is shown? To make it more 
generic? So it might check for its parent and adjusts itself 
accordinally. Thus my question is, how can I execute a method of the 
child checkBox while a renderer is getting set to the header?

I am kind of stuck with that.

Thanks for any help.




AW: [flexcoders] questionfor AdvancedDataGrid?

2008-05-06 Thread Andreas Santoro
you have a local Variable in your function


private function QueueRequest():void{

var dpFlat:ArrayCollection = new ArrayCollection([
{Region:Southwest, Territory:Arizona,
Territory_Rep:Barbara Jennings, Actual:38865,

CHANGE TO

private function QueueRequest():void{

dpFlat= new ArrayCollection([
{Region:Southwest, Territory:Arizona,
Territory_Rep:Barbara Jennings, Actual:38865,



Andreas Santoro
Senior Consultant


Plan-B GmbH
Kolpingstr. 6
D-73433 Aalen

Tel.: +49 (0) 177 1762129
Mail: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]-b-gmbh.commailto:[EMAIL 
PROTECTED]
Web: 
www.planhttp://www.plan-b-gmbh.com/-b-gmbh.comhttp://www.plan-b-gmbh.com/

Geschäftsführer
Tobias Schmailzl
Ralph Sturm
Registergericht Ulm
HRB 720355
Sitz der Gesellschaft ist Aalen
Ust.ID DE250875731

Von: flexcoders@yahoogroups.com [EMAIL PROTECTED] im Auftrag von markflex2007 
[EMAIL PROTECTED]
Gesendet: Dienstag, 6. Mai 2008 15:55
An: flexcoders@yahoogroups.com
Betreff: [flexcoders] questionfor AdvancedDataGrid?


Hi,

I have the following question about AdvancedDataGrid?

The code works fine:(code 1)

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
backgroundColor=#32669D
xmlns:ext=nl.wv.extenders.panel.*
width=854

mx:Script
![CDATA[

import mx.collections.ArrayCollection;


[Bindable]
private var dpFlat:ArrayCollection = new ArrayCollection([
{Region:Southwest, Territory:Arizona,
Territory_Rep:Barbara Jennings, Actual:38865,
Estimate:4},
{Region:Southwest, Territory:Arizona,
Territory_Rep:Dana Binn, Actual:29885,
Estimate:3},
{Region:Southwest, Territory:Central California,
Territory_Rep:Joe Smith, Actual:29134,
Estimate:3},
{Region:Southwest, Territory:Nevada,
Territory_Rep:Bethany Pittman, Actual:52888,
Estimate:45000},
{Region:Southwest, Territory:Northern California,
Territory_Rep:Lauren Ipsum, Actual:38805,
Estimate:4},
{Region:Southwest, Territory:Northern California,
Territory_Rep:T.R. Smith, Actual:55498,
Estimate:4},
{Region:Southwest, Territory:Southern California,
Territory_Rep:Alice Treu, Actual:44985,
Estimate:45000},
{Region:Southwest, Territory:Southern California,
Territory_Rep:Jane Grove, Actual:44913,
Estimate:45000}
]);


]]
/mx:Script

mx:Panel id=panel04 title=test panel
x=255 y=100 width=575 height=342
layout=absolute 
mx:Label x=15
y=46 text= Requests in the queue:
width=152 f/



mx:AdvancedDataGrid id=myADG x=36 y=72
initialize=gc.refresh(); width=520 height=218
mx:dataProvider
mx:GroupingCollection id=gc source={dpFlat}
mx:grouping
mx:Grouping

mx:GroupingField name=Territory/
/mx:Grouping
/mx:grouping
/mx:GroupingCollection
/mx:dataProvider

mx:columns
mx:AdvancedDataGridColumn dataField=Region/
mx:AdvancedDataGridColumn dataField=Territory/
mx:AdvancedDataGridColumn dataField=Territory_Rep
headerText=Territory Rep/

/mx:columns
/mx:AdvancedDataGrid


/mx:Panel

/mx:Application

--

This code doesn't work (code 2)

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
backgroundColor=#32669D
xmlns:ext=nl.wv.extenders.panel.*
creati show=QueueRequest() width=854

mx:Script
![CDATA[

import mx.collections.ArrayCollection;


[Bindable]
public var dpFlat:ArrayCollection ;


private function QueueRequest():void{

var dpFlat:ArrayCollection = new ArrayCollection([
{Region:Southwest, Territory:Arizona,
Territory_Rep:Barbara Jennings, Actual:38865,
Estimate:4},
{Region:Southwest, Territory:Arizona,
Territory_Rep:Dana Binn, Actual:29885,
Estimate:3},
{Region:Southwest, Territory:Central California,
Territory_Rep:Joe Smith, Actual:29134,
Estimate:3},
{Region:Southwest, Territory:Nevada,
Territory_Rep:Bethany Pittman, Actual:52888,
Estimate:45000},
{Region:Southwest, Territory:Northern California,
Territory_Rep:Lauren Ipsum, Actual:38805,
Estimate:4},
{Region:Southwest, Territory:Northern California,
Territory_Rep:T.R. Smith, Actual:55498,
Estimate:4},
{Region:Southwest, Territory:Southern California,
Territory_Rep:Alice Treu, Actual:44985,
Estimate:45000},
{Region:Southwest, Territory:Southern California,
Territory_Rep:Jane Grove, Actual:44913,
Estimate:45000}
]);

}

]]
/mx:Script

mx:Panel id=panel04 title=test panel
x=255 y=100 width=575 height=342
layout=absolute 
mx:Label x=15
y=46 text= Requests in the queue:
width=152 f/



mx:AdvancedDataGrid id=myADG x=36 y=72
initialize=gc.refresh(); width=520 height=218
mx:dataProvider
mx:GroupingCollection id=gc source={dpFlat}
mx:grouping
mx:Grouping

mx:GroupingField name=Territory/
/mx:Grouping
/mx:grouping
/mx:GroupingCollection
/mx:dataProvider

mx:columns
mx:AdvancedDataGridColumn dataField=Region/
mx:AdvancedDataGridColumn dataField=Territory/
mx:AdvancedDataGridColumn dataField=Territory_Rep
headerText=Territory Rep/

/mx:columns
/mx:AdvancedDataGrid


/mx:Panel

/mx:Application
--

The different between 

RE: [flexcoders] Learning flex !

2008-05-06 Thread Dale Fraser
I think the best way to learn is to have some reference book that you either
read or reference when needed.

 

Then have a real project in mind, and try to write it, when you get stuck
ask questions, refer to your book, search google, use this list etc, you
will make a lot of mistakes, but you will learn a lot also.

 

Once you get to the end of this project, you will feel confidant that you
can take this to more complex projects.

 

Regards

Dale Fraser

 http://learncf.com/ http://learncf.com

 http://flexcf.com/ http://flexcf.com

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Laila Towailib
Sent: Tuesday, 6 May 2008 6:22 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Learning flex !

 

What is the best way to learn flex coding in your opinion ?

 



[flexcoders] Re: datagrid using button or checkbox wHat Code to Trigger

2008-05-06 Thread Jason B
actually ive not heard of dataprovider until now for this before you
mentioned a php issue or xml ? thats the reason i feel confused.
also i mentioned if i could get a working example off the web, which
is still desired but not given. I'll search and see what i can find.
but basically your stating a dataprovider is what im looking for.



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

 Yes, this is the way to do it in a real app, and is the way I do it, by
 building an update message that I send to the server.
 
  
 
 Jason and I have been through all of that in this thread, but he was not
 receptive to that level of advice, and his last question was simply:
 
 How can i remove an item from the data grid using action script?
 
 So that is what I answered.  I'd have given more detail, but he has not
 said what his dataProvider is Hint, Jason.
 
 Tracy
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Amy
 Sent: Monday, May 05, 2008 6:47 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: datagrid using button or checkbox wHat Code to
 Trigger
 
  
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Tracy Spratt tspratt@ wrote:
 
  Use the dataProvider API, to remove the item from the dataProvider.
 
 It might be better to mark the item as removed in the dataProvider, 
 since that will probably make it easier to do the delete operation on 
 the server. After that (correct me if I'm wrong--this is all 
 theoretical to me), you'd need to filter the dataProvider to only show 
 the items that have not been removed. The last step would be either 
 using the dataProvider's source to send to the server or removing the 
 filter.
 
 JMO;
 
 Amy





Re: [flexcoders] Flex/ColdFusion use-mappings ignored?

2008-05-06 Thread Tom McNeer
On Tue, May 6, 2008 at 9:51 AM, Battershall, Jeff 
[EMAIL PROTECTED] wrote:

   C'mon - I'm not questioning your decision to take that approach - all I
  was just trying to help the guy with the off-the-wall behavior he was
  seeing. What's your take on his problem?
 







I'm still here, by the way. And still mystified.

Although unfortunately, I haven't had the opportunity to do any more
testing.

There's no reason in the world why the mappings should work on one CF8
installation and not on another, given identical mappings and identical
remoting-configs. But that sure seems to be what's going on.

I don't expect anyone to do extensive legwork on something this arcane. I'll
keep hammering at it myself.

Mainly, I'm just looking to see if anyone has either a) seen this sort of
behavior before, or b) can quickly see a stupid mistake I'm making.

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


[flexcoders] Re: questionfor AdvancedDataGrid?

2008-05-06 Thread markflex2007
Thanks.

But I get error when I do this.

private function QueueRequest():void{

dpFlat= new ArrayCollection([
{Region:Southwest, Territory:Arizona,
Territory_Rep:Barbara Jennings, Actual:38865,


'illegal assignment to class ArrayCollect'

Now the question seems how to set a public arraycollection in function.
Please help me.Thanks

Mark

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

 you have a local Variable in your function
 
 
 private function QueueRequest():void{
 
 var dpFlat:ArrayCollection = new ArrayCollection([
 {Region:Southwest, Territory:Arizona,
 Territory_Rep:Barbara Jennings, Actual:38865,
 
 CHANGE TO
 
 private function QueueRequest():void{
 
 dpFlat= new ArrayCollection([
 {Region:Southwest, Territory:Arizona,
 Territory_Rep:Barbara Jennings, Actual:38865,
 
 
 
 Andreas Santoro
 Senior Consultant
 
 
 Plan-B GmbH
 Kolpingstr. 6
 D-73433 Aalen
 
 Tel.: +49 (0) 177 1762129
 Mail:
[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]-b-gmbh.commailto:[EMAIL PROTECTED]
 Web:
www.planhttp://www.plan-b-gmbh.com/-b-gmbh.comhttp://www.plan-b-gmbh.com/
 
 Geschäftsführer
 Tobias Schmailzl
 Ralph Sturm
 Registergericht Ulm
 HRB 720355
 Sitz der Gesellschaft ist Aalen
 Ust.ID DE250875731
 
 Von: flexcoders@yahoogroups.com [EMAIL PROTECTED] im
Auftrag von markflex2007 [EMAIL PROTECTED]
 Gesendet: Dienstag, 6. Mai 2008 15:55
 An: flexcoders@yahoogroups.com
 Betreff: [flexcoders] questionfor AdvancedDataGrid?
 
 
 Hi,
 
 I have the following question about AdvancedDataGrid?
 
 The code works fine:(code 1)
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 backgroundColor=#32669D
 xmlns:ext=nl.wv.extenders.panel.*
 width=854
 
 mx:Script
 ![CDATA[
 
 import mx.collections.ArrayCollection;
 
 
 [Bindable]
 private var dpFlat:ArrayCollection = new ArrayCollection([
 {Region:Southwest, Territory:Arizona,
 Territory_Rep:Barbara Jennings, Actual:38865,
 Estimate:4},
 {Region:Southwest, Territory:Arizona,
 Territory_Rep:Dana Binn, Actual:29885,
 Estimate:3},
 {Region:Southwest, Territory:Central California,
 Territory_Rep:Joe Smith, Actual:29134,
 Estimate:3},
 {Region:Southwest, Territory:Nevada,
 Territory_Rep:Bethany Pittman, Actual:52888,
 Estimate:45000},
 {Region:Southwest, Territory:Northern California,
 Territory_Rep:Lauren Ipsum, Actual:38805,
 Estimate:4},
 {Region:Southwest, Territory:Northern California,
 Territory_Rep:T.R. Smith, Actual:55498,
 Estimate:4},
 {Region:Southwest, Territory:Southern California,
 Territory_Rep:Alice Treu, Actual:44985,
 Estimate:45000},
 {Region:Southwest, Territory:Southern California,
 Territory_Rep:Jane Grove, Actual:44913,
 Estimate:45000}
 ]);
 
 
 ]]
 /mx:Script
 
 mx:Panel id=panel04 title=test panel
 x=255 y=100 width=575 height=342
 layout=absolute 
 mx:Label x=15
 y=46 text= Requests in the queue:
 width=152 f/
 
 
 
 mx:AdvancedDataGrid id=myADG x=36 y=72
 initialize=gc.refresh(); width=520 height=218
 mx:dataProvider
 mx:GroupingCollection id=gc source={dpFlat}
 mx:grouping
 mx:Grouping
 
 mx:GroupingField name=Territory/
 /mx:Grouping
 /mx:grouping
 /mx:GroupingCollection
 /mx:dataProvider
 
 mx:columns
 mx:AdvancedDataGridColumn dataField=Region/
 mx:AdvancedDataGridColumn dataField=Territory/
 mx:AdvancedDataGridColumn dataField=Territory_Rep
 headerText=Territory Rep/
 
 /mx:columns
 /mx:AdvancedDataGrid
 
 
 /mx:Panel
 
 /mx:Application
 
 --
 
 This code doesn't work (code 2)
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 backgroundColor=#32669D
 xmlns:ext=nl.wv.extenders.panel.*
 creati show=QueueRequest() width=854
 
 mx:Script
 ![CDATA[
 
 import mx.collections.ArrayCollection;
 
 
 [Bindable]
 public var dpFlat:ArrayCollection ;
 
 
 private function QueueRequest():void{
 
 var dpFlat:ArrayCollection = new ArrayCollection([
 {Region:Southwest, Territory:Arizona,
 Territory_Rep:Barbara Jennings, Actual:38865,
 Estimate:4},
 {Region:Southwest, Territory:Arizona,
 Territory_Rep:Dana Binn, Actual:29885,
 Estimate:3},
 {Region:Southwest, Territory:Central California,
 Territory_Rep:Joe Smith, Actual:29134,
 Estimate:3},
 {Region:Southwest, Territory:Nevada,
 Territory_Rep:Bethany Pittman, Actual:52888,
 Estimate:45000},
 {Region:Southwest, Territory:Northern California,
 Territory_Rep:Lauren Ipsum, Actual:38805,
 Estimate:4},
 {Region:Southwest, Territory:Northern California,
 Territory_Rep:T.R. Smith, Actual:55498,
 Estimate:4},
 {Region:Southwest, Territory:Southern California,
 Territory_Rep:Alice Treu, Actual:44985,
 Estimate:45000},
 {Region:Southwest, Territory:Southern California,
 Territory_Rep:Jane Grove, Actual:44913,
 Estimate:45000}
 ]);
 
 }
 
 ]]
 /mx:Script
 
 mx:Panel id=panel04 title=test panel
 x=255 y=100 width=575 height=342
 layout=absolute 
 mx:Label x=15
 y=46 text= Requests in the 

Re: [flexcoders] FlashVars CF issue

2008-05-06 Thread Tom Chiverton
On Tuesday 06 May 2008, nwebb wrote:
 My initial thought was to open up the Debug Dialogue/Run Dialogue and swap
 the url/path to point to the original html. The problem is that the
 original html wrapper is actually generated from a ColdFusion file, and
 pointing to the ColdFusion file directly doesn't work of course.

I've got my run/debug URLs set to point at a .cfm file, and it works fine.
-- 
Tom Chiverton
Helping to enthusiastically facilitate magnetic customers
on: http://thefalken.livejournal.com



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. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



RE: [flexcoders] questionfor AdvancedDataGrid?

2008-05-06 Thread Gregor Kiddie
I have the following question about AdvancedDataGrid?

Yeah, there is a closed bug about it (can't find the number just now!)

The Grouping and Hierarchical dataproviders don't throw events when
their contents change, so the binding never fires with what you have
there.

The workaround is to subclass the GroupingCollection and manually throw
the event when it changes.

 

I'll try and find the bug number...

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
blocked::http://www.inps.co.uk/ 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED]



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markflex2007
Sent: 06 May 2008 14:55
To: flexcoders@yahoogroups.com
Subject: [flexcoders] questionfor AdvancedDataGrid?

 

Hi,

I have the following question about AdvancedDataGrid?






Re: [flexcoders] Custom renderers - need help

2008-05-06 Thread Tom Chiverton
On Tuesday 06 May 2008, markgoldin_2000 wrote:
 But what if I want to run some code on one of the children of
 columnHeaderCheckBox before it actually is shown?

Why can't you do this in createChildren() ?

-- 
Tom Chiverton
Helping to greatly empower fifth-generation infomediaries
on: http://thefalken.livejournal.com



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. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



AW: [flexcoders] Re: questionfor AdvancedDataGrid?

2008-05-06 Thread Andreas Santoro
First, use CreationComplete as Event if you wannt to wait till the Application 
is ready. After you added your data to the ArrayCollection, you have to call 
gc.refresh() if you using Groupping in AdvancedDatagrid.

this version works.


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
backgroundColor=#32669D
xmlns:ext=nl.wv.extenders.panel.*
width=854 creationComplete=buildData()
mx:Script
![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
private var dpFlat:ArrayCollection = new ArrayCollection();
private function buildData():void{
 dpFlat = new ArrayCollection([{Region:Southwest, 
Territory:Arizona,Territory_Rep:Barbara Jennings, 
Actual:38865,Estimate:4},
 {Region:Southwest, Territory:Arizona,Territory_Rep:Dana Binn, 
Actual:29885,Estimate:3},
 {Region:Southwest, Territory:Central California,Territory_Rep:Joe Smith, 
Actual:29134,Estimate:3},
 {Region:Southwest, Territory:Nevada,Territory_Rep:Bethany Pittman, 
Actual:52888,Estimate:45000},
 {Region:Southwest, Territory:Northern California,Territory_Rep:Lauren 
Ipsum, Actual:38805,Estimate:4},
 {Region:Southwest, Territory:Northern California,Territory_Rep:T.R. 
Smith, Actual:55498,Estimate:4},
 {Region:Southwest, Territory:Southern California,Territory_Rep:Alice 
Treu, Actual:44985,Estimate:45000},
 {Region:Southwest, Territory:Southern California,Territory_Rep:Jane 
Grove, Actual:44913,Estimate:45000}]);

 gc.refresh();
}
]]
/mx:Script
mx:Panel id=panel04 title=test panel
x=255 y=100 width=100% height=100%
layout=absolute 
mx:Label x=15
y=46 text= Requests in the queue:
width=152 /

mx:AdvancedDataGrid id=myADG x=36 y=72
initialize=gc.refresh(); width=520 height=218
m?xml version=1.0 encoding=utf-8?
Andreas Santoro
Senior Consultant


Plan-B GmbH
Kolpingstr. 6
D-73433 Aalen

Tel.: +49 (0) 177 1762129
Mail: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]-b-gmbh.commailto:[EMAIL 
PROTECTED]
Web: 
www.planhttp://www.plan-b-gmbh.com/-b-gmbh.comhttp://www.plan-b-gmbh.com/

Geschäftsführer
Tobias Schmailzl
Ralph Sturm
Registergericht Ulm
HRB 720355
Sitz der Gesellschaft ist Aalen
Ust.ID DE250875731

Von: flexcoders@yahoogroups.com [EMAIL PROTECTED] im Auftrag von markflex2007 
[EMAIL PROTECTED]
Gesendet: Dienstag, 6. Mai 2008 16:23
An: flexcoders@yahoogroups.com
Betreff: [flexcoders] Re: questionfor AdvancedDataGrid?


Thanks.

But I get error when I do this.

private function QueueRequest():void{

dpFlat= new ArrayCollection([
{Region:Southwest, Territory:Arizona,
Territory_Rep:Barbara Jennings, Actual:38865,


'illegal assignment to class ArrayCollect'

Now the question seems how to set a public arraycollection in function.
Please help me.Thanks

Mark

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Andreas 
Santoro
[EMAIL PROTECTED] wrote:

 you have a local Variable in your function


 private function QueueRequest():void{

 var dpFlat:ArrayCollection = new ArrayCollection([
 {Region:Southwest, Territory:Arizona,
 Territory_Rep:Barbara Jennings, Actual:38865,

 CHANGE TO

 private function QueueRequest():void{

 dpFlat= new ArrayCollection([
 {Region:Southwest, Territory:Arizona,
 Territory_Rep:Barbara Jennings, Actual:38865,



 Andreas Santoro
 Senior Consultant


 Plan-B GmbH
 Kolpingstr. 6
 D-73433 Aalen

 Tel.: +49 (0) 177 1762129
 Mail:
[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]-b-gmbh.commailto:[EMAIL PROTECTED]
 Web:
www.planhttp://www.plan-b-gmbh.com/-b-gmbh.comhttp://www.plan-b-gmbh.com/

 Geschäftsführer
 Tobias Schmailzl
 Ralph Sturm
 Registergericht Ulm
 HRB 720355
 Sitz der Gesellschaft ist Aalen
 Ust.ID DE250875731
 
 Von: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [EMAIL 
 PROTECTED]mailto:flexcoders%40yahoogroups.com] im
Auftrag von markflex2007 [EMAIL PROTECTED]
 Gesendet: Dienstag, 6. Mai 2008 15:55
 An: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Betreff: [flexcoders] questionfor AdvancedDataGrid?


 Hi,

 I have the following question about AdvancedDataGrid?

 The code works fine:(code 1)

 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 backgroundColor=#32669D
 xmlns:ext=nl.wv.extenders.panel.*
 width=854

 mx:Script
 ![CDATA[

 import mx.collections.ArrayCollection;


 [Bindable]
 private var dpFlat:ArrayCollection = new ArrayCollection([
 {Region:Southwest, Territory:Arizona,
 Territory_Rep:Barbara Jennings, Actual:38865,
 Estimate:4},
 {Region:Southwest, Territory:Arizona,
 Territory_Rep:Dana Binn, Actual:29885,
 Estimate:3},
 {Region:Southwest, Territory:Central California,
 Territory_Rep:Joe Smith, Actual:29134,
 Estimate:3},
 {Region:Southwest, Territory:Nevada,
 Territory_Rep:Bethany Pittman, Actual:52888,
 Estimate:45000},
 {Region:Southwest, Territory:Northern California,
 Territory_Rep:Lauren Ipsum, Actual:38805,
 Estimate:4},
 {Region:Southwest, Territory:Northern California,
 

Re: [flexcoders] Flex/ColdFusion use-mappings ignored?

2008-05-06 Thread Tom Chiverton
On Tuesday 06 May 2008, Tom McNeer wrote:
 I don't expect anyone to do extensive legwork on something this arcane.
 I'll keep hammering at it myself.

I'd take the .xml config files and 'diff' them, might produce a ton of false 
positives, and you might have to tidy up the XML first, but it might be 
useful.

-- 
Tom Chiverton
Helping to evangelistically maintain integrated e-services
on: http://thefalken.livejournal.com



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. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



RE: [flexcoders] questionfor AdvancedDataGrid?

2008-05-06 Thread Gregor Kiddie
Found it ;) http://bugs.adobe.com/jira/browse/FLEXDMV-1334

 

I think the code below should work (untested and rough but you get the
idea)

 

package com.inpses.util {

  

  import flash.events.Event;

  

  import mx.collections.HierarchicalData;

  import mx.events.CollectionEvent;

  import mx.events.CollectionEventKind;

 

  public class EventHierarchicalDataSource extends HierarchicalData
{



public function
EventHierarchicalDataSource(value:Object=null) {

  super(value);

}



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

  super.source = value;

  dispatchEvent( new CollectionEvent(
CollectionEvent.COLLECTION_CHANGE, false, false,
CollectionEventKind.REFRESH ) );

  if ( value ) {

value.addEventListener(
CollectionEvent.COLLECTION_CHANGE, dispatchSourceChangeEvent, false, 0,
true);

  }

}



private function dispatchSourceChangeEvent ( event : Event )
: void {

  dispatchEvent( new CollectionEvent(
CollectionEvent.COLLECTION_CHANGE, false, false,
CollectionEventKind.REFRESH ) );

}



  }

}

 

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
blocked::http://www.inps.co.uk/ 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED]



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gregor Kiddie
Sent: 06 May 2008 15:58
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] questionfor AdvancedDataGrid?

 

I have the following question about AdvancedDataGrid?

Yeah, there is a closed bug about it (can't find the number just now!)

The Grouping and Hierarchical dataproviders don't throw events when
their contents change, so the binding never fires with what you have
there.

The workaround is to subclass the GroupingCollection and manually throw
the event when it changes.

 

I'll try and find the bug number...

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
blocked::http://www.inps.co.uk/ 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED]



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markflex2007
Sent: 06 May 2008 14:55
To: flexcoders@yahoogroups.com
Subject: [flexcoders] questionfor AdvancedDataGrid?

 

Hi,

I have the following question about AdvancedDataGrid?





 



[flexcoders] Flash 9 cs3 component rendering issues

2008-05-06 Thread kwigbo
I have an actionscript project that uses a SWC exported from CS3. The
SWC is just a MovieClip with nested components. These components won't
show correctly on any flashplayer prior to 9.0.115. Any ideas why?



[flexcoders] Adding/Removing child components

2008-05-06 Thread kalpkat9
Hi,

I am working with a component where I can add and remove line items
('remove' buttons).
I dont know where I am missing it, but I am only able to remove the 
lines from the bottom of the stack and I wish to remove the line 
items as such with their relevant index.

Please take a look at this code:
__
?xml version=1.0?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
mx:Script
![CDATA[

/* Import HBox class. */
import mx.containers.HBox;
/* Array of created containers. */
private var vBoxes:Array = [];  
private var remBtn:Button;  
private var newHB:HBox;

public function addHB():void {
/* Create new HBox container. */
newHB = new HBox();
addRem();
vBoxes.push(myAcc.addChild(newHB));

}

 public function addRem():void{
remBtn = new Button();
newHB.addChild(remBtn);
remBtn.label = Remove+ String(vBoxes.length);
remBtn.addEventListener(click, delHB);
}

public function delHB(e:Event):void {
/* If there is at least one HBox container in the 
Array, 
   remove it. */  
if (vBoxes.length= 1) {
myAcc.removeChild(vBoxes.pop());

}
}
  ]]
/mx:Script

mx:VBox backgroundColor=white   
mx:VBox id=myAcc height=100% width=100%/
mx:HBox width=100%
mx:HBox width=90%/
mx:Button label=Add click=addHB();/
mx:HBox width=5/
/mx:HBox  
/mx:VBox
/mx:Application
__


Could someone please let me know how I can handle this?

Thank you,
Kal.




Re: [flexcoders] Adding/Removing child components

2008-05-06 Thread Tom Chiverton
On Tuesday 06 May 2008, kalpkat9 wrote:
 I dont know where I am missing it, but I am only able to remove the
 lines from the bottom of the stack and I wish to remove the line
 items as such with their relevant index.

If you use a Repeater bound to an ArrayCollection of the items, you could use 
ArrayCollection.removeItemAt() and it should Just Work.

-- 
Tom Chiverton
Helping to conveniently unleash world-class content
on: http://thefalken.livejournal.com



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. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



[flexcoders] Re: TextField - how does it calculate the number of lines?

2008-05-06 Thread Dmitri Girski
Anyone?




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

 Question to Alex and the rest from Adobe gang:
 
 Why the TextField does not include in numLines the number of lines
 which ends up with CR or LF?
 
 I.e. if you have a text:
 
 Mary has a little lambCR (1)
 Mary has a little lambCR (2)
 
 And the width of TextField is big enough to accommodate the whole
 string (1) without breaking it. 
 
 TextField thinks that it has 2 lines. But when it starts rendering
 text it places the CR symbol and we ending up with 4 lines of text. 
 
 Is this a bug or feature?
 
 PS this is .text property, not the .htmlText (which has similar
 problem of missing the brs from the count) 
 
 
 Thanks!





Re: [flexcoders] FlexBuilder3 and Web Service proxy generation tool

2008-05-06 Thread pitirre

Robert,

I'm using Flextense to generate the proxy and I'm having excellent results
using the proxy to communicate with dotNet web services. The proxy generated
by Flextense generate arrayCollections (denpend on how complex is your WSDL)
and I had to fix the Flex SDK 3.0 XMLDecoder/XMLEncoder to make it
compatible with the proxy generated by FlexTense. I submitted my fixes to
Adobe bug System management for their consideration. Yes, The proxy
generator shipped with Flex Builder 3 needs some work and it doesn't like
SOAP version 1.2. It only generate proxy for SOAP version 1.1.

Alberto Acevedo


Robert Csiki wrote:
 
 
 This tool generates Actionscript code that is not usable at all.
 
 I created a very simple Web Service, deployed it and then I used this
 tool from FlexBuilder3 to get the AS code in order to consume the
 service. This generated proxy code is buggy and therefore is not
 working, even for very, very simple services.
 
 Why was this feature shipped with the FlexBuilder3, if it's practically
 unusable?? I can provide you with implementation details of my very
 simple test Web Service.
 
 I really appreciate an answer here. I posted similar questions regarding
 this topic before and got nothing. Thanks. Robert
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/FlexBuilder3-and-Web-Service-proxy-generation-tool-tp16986488p17085844.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Design Choices and best practices for using RTMP/AMF over HTTP/XML communication

2008-05-06 Thread Jalal ud Din
Hi,
I am new to flex/RIA. I am exploring different design choices 
especially in client server communication. On client side we will be 
using Flash based RIA (using Actions scripts). 
There will be some simple forms (like for login, registration, 
payments etc) and some simple reports including with several graphs 
and charts. Each chart might have 1000 to 1500 data points etc. There 
are not video or audio content as such. On server side we have 
Servlets, java API and some EJB's to provide the business logic and 
real time prices/content (price update is usually every 10 
seconds) /data.  Some of the content will be static as well.

I have following questions in my mind. Is it worth it to use RTMP/AMF 
channels for the followings? 

1.  For simple forms processing (Mapping Actions scripts classes 
to Java classes). Like to display/retrieve/update data for/from 
registration forms.   
a.  If yes, why? Am I going to be stuck with LCDS? Is it worth 
it? What could be the cons for heavy usage/traffic scenarios 
b.  If not what are the alternates? Should I create the web 
services? Or only servlets are sufficient (ie. Only HTTP+Java based 
server side with no LCDS+RTMP+AMF)? All forms need to communicate on 
secure channel.
2.  For pushing the real time prices/content which we may need to 
update every 15 seconds on user interface using graphs and charts. 
Can I do it with some standard J2EE/JMS way with RIA (Flex) on front-
end? i.e. Flash application will keep pulling data from some topic. 
Data can be updated after few secs or few minutes which can't be 
predicted.
3.  Are there any scalability issues for using RTMP? What happens 
if concurrent users increase 10 times within a year?
4.  What are the real advantages of using RTMP/AMF instead of 
simple HTTP/HTTPS probably using xml based objects 
5.  Do I need to use LCDS if I am using AMF only on client side? 
Basically I mean if I am sending an object in form of xml from a 
servlet. Can some technology in Flash (probably AMF) in client side 
map it an Action script object? 
6.  What are the primary advantages of using LCDS in a system? Is 
there any alternate solutions? Can I use some standard solutions for 
data push technologies? 

I would like that my server side implementation can be used by 
multiple types of clients e.g. RIA browser based, mobile based, third 
party software (any technology) etc. 

I appreciate if you can kindly refer me to some reading materials 
which can help me deciding the above. If this is not the right place 
to post this message then please do refer me to the place where I can 
post such questions.



Thanks and Kind regards,
Jalal




[flexcoders] Re: RTMP vs AMF

2008-05-06 Thread valdhor
I think these two articles explain them both very well:

http://en.wikipedia.org/wiki/Real_Time_Messaging_Protocol

http://en.wikipedia.org/wiki/Action_Message_Format


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

 What is the difference bettwen these two channels? i cant find  a
good answer .
  



[flexcoders] ProgressBar issue in release build

2008-05-06 Thread Danish Tehseen
On login while loading data in module, users are shown indetermined progress 
bar. There might be more than one module showing progress bar at the same time.
i have used the same control in other modules as well and they are working fine 
but those modules are opened in a popup window. 
If i simply run the project from flex builder IDE it is working fine. But the 
issue is only in the release build. It is throwing the following exception.
TypeError: Error # 1009: Cannot access a property or method of a ull object 
reference.
        at mx.controls::ProgressBar/measure()
        at mx.core::UIComponent/measureSizes()
        at mx.core::UIComponent/validateSize()
        at mx.managers::LayoutManager/doPhasedInstantiation()
        at Function/http://adobe.com/AS3/2006/builtin::apply()
        at mx.core::UIComponent/callLaterDispatcher2()
        at mx.core::UIComponent/callLaterDispatcher()
Can somebody guide me what am i doing wrong?
Thanks.
Danish


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


RE: [flexcoders] Adding/Removing child components

2008-05-06 Thread Tracy Spratt
Yes, unless you have some special needs, using Repeater for your dynamic
instantiation will save you a lot of work.  Plus Repeater supports
recycleChildren, which will help with performance over creating and
removing children.

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Tuesday, May 06, 2008 11:15 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Adding/Removing child components

On Tuesday 06 May 2008, kalpkat9 wrote:
 I dont know where I am missing it, but I am only able to remove the
 lines from the bottom of the stack and I wish to remove the line
 items as such with their relevant index.

If you use a Repeater bound to an ArrayCollection of the items, you
could use 
ArrayCollection.removeItemAt() and it should Just Work.

-- 
Tom Chiverton
Helping to conveniently unleash world-class content
on: http://thefalken.livejournal.com



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. Any reference to a partner in relation to
Halliwells LLP means a member of Halliwells LLP.  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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
Links







RE: [flexcoders] Re: datagrid using button or checkbox wHat Code to Trigger

2008-05-06 Thread Tracy Spratt
Man, if you do not know what a dataProvider is, you have a lot of
studying to do.  Hit the documents for a while before you try to go
further.  You will at least need the basic terminology to understand any
advice I may give you.

 

I fear you will have difficulty finding a full example because you goal
is so general, and there are so many possible ways to do it. 

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jason B
Sent: Tuesday, May 06, 2008 10:14 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: datagrid using button or checkbox wHat Code to
Trigger

 

actually ive not heard of dataprovider until now for this before you
mentioned a php issue or xml ? thats the reason i feel confused.
also i mentioned if i could get a working example off the web, which
is still desired but not given. I'll search and see what i can find.
but basically your stating a dataprovider is what im looking for.

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

 Yes, this is the way to do it in a real app, and is the way I do it,
by
 building an update message that I send to the server.
 
 
 
 Jason and I have been through all of that in this thread, but he was
not
 receptive to that level of advice, and his last question was simply:
 
 How can i remove an item from the data grid using action script?
 
 So that is what I answered. I'd have given more detail, but he has not
 said what his dataProvider is Hint, Jason.
 
 Tracy
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Amy
 Sent: Monday, May 05, 2008 6:47 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Re: datagrid using button or checkbox wHat Code
to
 Trigger
 
 
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 , Tracy Spratt tspratt@ wrote:
 
  Use the dataProvider API, to remove the item from the dataProvider.
 
 It might be better to mark the item as removed in the dataProvider, 
 since that will probably make it easier to do the delete operation on 
 the server. After that (correct me if I'm wrong--this is all 
 theoretical to me), you'd need to filter the dataProvider to only show

 the items that have not been removed. The last step would be either 
 using the dataProvider's source to send to the server or removing the 
 filter.
 
 JMO;
 
 Amy


 



[flexcoders] Re: datagrid using button or checkbox wHat Code to Trigger

2008-05-06 Thread Jason B
yea i would love to know where to begin reading?
i've yet to find a published flex 3 book on any bookstore in my area?

do you have an online beginning on flex 3 covering this info?


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

 Man, if you do not know what a dataProvider is, you have a lot of
 studying to do.  Hit the documents for a while before you try to go
 further.  You will at least need the basic terminology to understand any
 advice I may give you.
 
  
 
 I fear you will have difficulty finding a full example because you goal
 is so general, and there are so many possible ways to do it. 
 
  
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Jason B
 Sent: Tuesday, May 06, 2008 10:14 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: datagrid using button or checkbox wHat Code to
 Trigger
 
  
 
 actually ive not heard of dataprovider until now for this before you
 mentioned a php issue or xml ? thats the reason i feel confused.
 also i mentioned if i could get a working example off the web, which
 is still desired but not given. I'll search and see what i can find.
 but basically your stating a dataprovider is what im looking for.
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Tracy Spratt tspratt@ wrote:
 
  Yes, this is the way to do it in a real app, and is the way I do it,
 by
  building an update message that I send to the server.
  
  
  
  Jason and I have been through all of that in this thread, but he was
 not
  receptive to that level of advice, and his last question was simply:
  
  How can i remove an item from the data grid using action script?
  
  So that is what I answered. I'd have given more detail, but he has not
  said what his dataProvider is Hint, Jason.
  
  Tracy
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of Amy
  Sent: Monday, May 05, 2008 6:47 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] Re: datagrid using button or checkbox wHat Code
 to
  Trigger
  
  
  
  --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  , Tracy Spratt tspratt@ wrote:
  
   Use the dataProvider API, to remove the item from the dataProvider.
  
  It might be better to mark the item as removed in the dataProvider, 
  since that will probably make it easier to do the delete operation on 
  the server. After that (correct me if I'm wrong--this is all 
  theoretical to me), you'd need to filter the dataProvider to only show
 
  the items that have not been removed. The last step would be either 
  using the dataProvider's source to send to the server or removing the 
  filter.
  
  JMO;
  
  Amy
 





RE: [flexcoders] Re: datagrid using button or checkbox wHat Code to Trigger

2008-05-06 Thread Tracy Spratt
The Adobe Flex Getting Started documentation is a great place for, well,
getting started.

http://learn.adobe.com/wiki/display/Flex/Get+oriented+to+Flex

 

That link also has a list of books in the comments as well.

 

Plus the Adobe resources, including the livedocs and Flex Style Explorer
are linked on the left.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jason B
Sent: Tuesday, May 06, 2008 12:28 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: datagrid using button or checkbox wHat Code to
Trigger

 

yea i would love to know where to begin reading?
i've yet to find a published flex 3 book on any bookstore in my area?

do you have an online beginning on flex 3 covering this info?

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

 Man, if you do not know what a dataProvider is, you have a lot of
 studying to do. Hit the documents for a while before you try to go
 further. You will at least need the basic terminology to understand
any
 advice I may give you.
 
 
 
 I fear you will have difficulty finding a full example because you
goal
 is so general, and there are so many possible ways to do it. 
 
 
 
 Tracy
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Jason B
 Sent: Tuesday, May 06, 2008 10:14 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Re: datagrid using button or checkbox wHat Code
to
 Trigger
 
 
 
 actually ive not heard of dataprovider until now for this before you
 mentioned a php issue or xml ? thats the reason i feel confused.
 also i mentioned if i could get a working example off the web, which
 is still desired but not given. I'll search and see what i can find.
 but basically your stating a dataprovider is what im looking for.
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 , Tracy Spratt tspratt@ wrote:
 
  Yes, this is the way to do it in a real app, and is the way I do it,
 by
  building an update message that I send to the server.
  
  
  
  Jason and I have been through all of that in this thread, but he was
 not
  receptive to that level of advice, and his last question was simply:
  
  How can i remove an item from the data grid using action script?
  
  So that is what I answered. I'd have given more detail, but he has
not
  said what his dataProvider is Hint, Jason.
  
  Tracy
  
  
  
  From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of Amy
  Sent: Monday, May 05, 2008 6:47 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] Re: datagrid using button or checkbox wHat
Code
 to
  Trigger
  
  
  
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  , Tracy Spratt tspratt@ wrote:
  
   Use the dataProvider API, to remove the item from the
dataProvider.
  
  It might be better to mark the item as removed in the dataProvider, 
  since that will probably make it easier to do the delete operation
on 
  the server. After that (correct me if I'm wrong--this is all 
  theoretical to me), you'd need to filter the dataProvider to only
show
 
  the items that have not been removed. The last step would be either 
  using the dataProvider's source to send to the server or removing
the 
  filter.
  
  JMO;
  
  Amy
 


 



[flexcoders] NumericStepper goes nuts. Who to stop it?

2008-05-06 Thread Dmitri Girski
Hi all,

Just bumped into some strange effect - if you click on the
NumericStepper, then processing function disables it, does something
and re-enables it - it starts clicking by itself.

Any ideas how to stop this?


Here is the code:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
mx:Script
![CDATA[
import mx.managers.CursorManager;
[Bindable]
private var m_bFlag:Boolean = true;
private var m_timer:Timer = new Timer(1000, 1);

private function fOnChange():void
{
CursorManager.setBusyCursor();
m_bFlag = false;
m_timer.addEventListener(TimerEvent.TIMER_COMPLETE,
fStop);
m_timer.start();
}
private function fStop(event:TimerEvent):void
{
CursorManager.removeBusyCursor();
m_timer.removeEventListener(TimerEvent.TIMER_COMPLETE,
fStop);
m_bFlag = true;
}
]]
/mx:Script
mx:NumericStepper x=278 y=222 change=fOnChange()
enabled={m_bFlag}/
/mx:Application 


Thanks!

Dmitri.



RE: [flexcoders] Re: RTMP vs AMF

2008-05-06 Thread Seth Hodgson
And if you're more interested in channel behavior versus raw protocol details, 
there's a short summary of the various channels and their respective pros and 
cons here: 
http://www.dcooper.org/blog/client/index.cfm?mode=entryentry=8E1439AD-4E22-1671-58710DD528E9C2E7

Seth

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of valdhor
Sent: Tuesday, May 06, 2008 8:40 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: RTMP vs AMF

I think these two articles explain them both very well:

http://en.wikipedia.org/wiki/Real_Time_Messaging_Protocol

http://en.wikipedia.org/wiki/Action_Message_Format

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

 What is the difference bettwen these two channels? i cant find a
good answer .

 


[flexcoders] AdvancedDataGrid doesn't update with real data?

2008-05-06 Thread markflex2007
Hi,

I am working with cairngorm with Flex 3.

I use Datagrid before in the page and it works fine.The Datagrid
automatically update when the data updated in database.

...
mx:DataGrid x=15 y=72 width=581.5 height=239
dataProvider={ModelLocator.QModel}

mx:columns

mx:DataGridColumn headerText=Name dataField=Name/

mx:DataGridColumn headerText=Department
dataField=Department/
 

/mx:columns
/mx:DataGrid 
...

I just use AdvancedDataGrid to raplace DataGrid and add grouping
feature.But it has a problem now.


mx:AdvancedDataGrid  x=15 y=72 width=581.5 height=239   
 rowCount=4  initialize=gc1.refresh();   

mx:dataProvider   

mx:GroupingCollection id=gc1 source={ModelLocator.QModel}
 mx:grouping
   mx:Grouping
   
mx:GroupingField name=TypeName /
   
/mx:Grouping
   
/mx:grouping 

/mx:GroupingCollection 
 
 /mx:dataProvider 
 
 


mx:columns

mx:AdvancedDataGridColumn headerText=Name
dataField=Name/

mx:AdvancedDataGridColumn headerText=Department
dataField=Department/
 
/mx:columns
/mx:AdvancedDataGrid  


The problem is the AdvancedDataGrid doesn't update even if data
updated in database when I visit the page again.

Please give me a idea how to fix this.why this happen

Thanks for your help

Mark



[flexcoders] Re: Bind to Dynamic Component or Panel

2008-05-06 Thread gjessup1
I am on the path of creating an associative array with reference to
the objects (which is this case is a datagrid). 
However I can't seem to figure out how to update the data provider
when a new message is received from my source. Here is how I create
the GUI dynamically. 
CONFIGARRAY gets populated from a DB query. I then loop through
creating a panel with a datagrid. At the end I add the panel to the
canvas for display. 

Can someone advise how I could reference the datagrids to bind new
data to them when a message is recieved from the server. This step
would obviously occur based on an event listener. 

Basically what I need to do is say something like (if message contains
msgType1 then send the message to datagrid1)

Here is the gui creation code:

for ( var i:int = 0; i  CONFIGARRAY.length; i++)
 {  
var panel:SuperPanel = new SuperPanel();
var datagrid:DashBoardADG = new DashBoardADG();
datagrid.percentHeight = 100;
datagrid.percentWidth = 100; 
datagrid.id = CONFIGARRAY.getItemAt(i).Panel_Name; 
datagrid.dataProvider = dataFeed;   
panel.title = CONFIGARRAY.getItemAt(i).Panel_Name;  
panel.showControls = true;
panel.enableResize = true;
panel.width = 400;
panel.height = 150; 
panel.x = X;
X = X + 410;
panel.y = Y;
//
if (panelcounter  2) {
Y = Y + 160;
X = 0;
panelcounter = 1;
}
panelcounter++; 
panel.addChild(datagrid);
PANELARRAY.addItem(); //ADD something for reference to datagrid
this.MAIN2.addChild(panel); //MAIN2 is a canvas 
  

 }






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

 I would instead advise that when you create the child, you place a 
 reference to it in some kind of dictionary structure, like an array, 
 an associative array(object), or dictionary.
 
 Use that reference to access public members, add event listeners, etc.
 
 You will not need to worry about where it is in the dom. 
 
 Tracy
 
 
 --- In flexcoders@yahoogroups.com, gjessup1 gregjessup@ wrote:
 
  Oscar, 
  Thanks for that. That is basically exactly what I needed. The one
  problem I am running into is that I want my panels to be only 3 wide
  on the page and I have 12 entries in the DB. So I am creating a 
 page 3
  panels wide and 4 panels down.
  
  To do this I create a new HBOX every 3rd Panel.
  
  so I need a way to figure out which HBOX the panel is in. Then I 
 can do 
  HBOX3.getChildByName(My Panel) 
  
  The way I am starting to do this is by creating an array collection
  that keeps the Panel Names and the childIndex for the HBOX and the 
 Panel.
  
  What would be nice is if you had a Canvas and and it didn't matter 
 how
  many levels deep the panel was (i.e the panel had a global bindable 
 name) 
  Then you could do Canvas.getChildByName.
  
  I can post code if that doesn't make sense.
 





[flexcoders] Re: Puzzling Drag Drop Issues/Bug??

2008-05-06 Thread rueter007
Apparently, this issue still remains in the AIR release version. works
fine in the flex version though. The mouseY never changes while
dragging and hence, dragScroll does not work either. Has anyone found
a work around?

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

 So it is a bug, http://bugs.adobe.com/jira/browse/SDK-13227. This 
 seems quite impossible to workaround, as you can't capture any drop 
 location positioning information about the item being 
 dragged/dropped. Any ideas?
 
 JF
 --- In flexcoders@yahoogroups.com, jmfillman jmfillman@ wrote:
 
  This is a little complicated to explain, so please bear with me. 
 Run 
  the example AIR app below, drag the button to see what happens, and 
  then read on. 
  
  I can't seem to calculate the place where the item was actually 
  dropped in the Canvas?
  I tried calculate the position in the dragDropHandler based on the 
  canvas mouseY + verticalScrollPosition, but the mouseY position 
 value 
  oddly gets fixed to the mouse position where the drag started, not 
  the current mouseY position.
  
  Is this a bug?
  
  
  ?xml version=1.0 encoding=utf-8?
  mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; 
  layout=absolute initialize=initApp();
  mx:Script
  ![CDATA[
  import mx.controls.Button;
  
  import mx.events.DragEvent;
  import mx.core.DragSource;
  import mx.managers.DragManager;
  
  private function initApp():void{
  maximize();
  var myButton:Button = new Button;
  myButton.y = 1355;
  myButton.x = 60;
  myButton.label = Drag Me;
  myButton.addEventListener
  (MouseEvent.MOUSE_MOVE, mouseMoveHandler,false,0,true);
  myDropCanvas.addChild(myButton);
  myDropCanvas.verticalScrollPosition = 
  1255;
  }
  private function mouseMoveHandler
  (event:MouseEvent):void {
  if (event.currentTarget is Button){
  var myProxy:Button = 
  event.currentTarget as Button
  var 
  dragInitiator:Button=Button(event.currentTarget);
  var ds:DragSource = new 
  DragSource();
  ds.addData
  (dragInitiator,dragAppt);
  DragManager.doDrag
  (dragInitiator, ds, event, myProxy, 0, 0,1.0,true);
  txtDragMouseY.text = 
  myDropCanvas.mouseY.toString();
  }
  trace (Mouse Move Trace:  + 
  myDropCanvas.mouseY);
  }
  private function dragEnterHandler
  (event:DragEvent):void{
  if (event.dragSource.hasFormat(dragAppt))
  {
  DragManager.acceptDragDrop(Canvas
  (event.currentTarget));
  }
  }
  
  private function dragDropHandler
  (event:DragEvent):void{
  Button(event.dragInitiator).y = Canvas
  (event.currentTarget).mouseY; 
  trace (Drag Drop Trace:  + 
  myDropCanvas.mouseY);   
  }
  ]]
  /mx:Script
  mx:Canvas id=myDropCanvas top=5 bottom=0 width=100% 
  verticalScrollPolicy=on dragEnter=dragEnterHandler(event); 
  dragDrop=dragDropHandler(event); click=trace (stage.mouseY); 
  left=180
  mx:VRule left=53 top=16 width=5 height=2875 
  styleName=gridVerticalLines/
  /mx:Canvas
  mx:Label x=0 y=10 text=Canvas Mouse Y During Drag 
  fontWeight=bold/
  mx:Text left=10 top=36 id=txtDragMouseY/
  /mx:WindowedApplication
 





[flexcoders] Re: NumericStepper goes nuts. Who to stop it?

2008-05-06 Thread valdhor
I can see why - you are triggering the fOnChange function on a change
event. Then you go ahead and change the numeric stepper by changing
the enabled flag which triggers the change event and so on...




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

 Hi all,
 
 Just bumped into some strange effect - if you click on the
 NumericStepper, then processing function disables it, does something
 and re-enables it - it starts clicking by itself.
 
 Any ideas how to stop this?
 
 
 Here is the code:
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute
 mx:Script
 ![CDATA[
 import mx.managers.CursorManager;
 [Bindable]
 private var m_bFlag:Boolean = true;
 private var m_timer:Timer = new Timer(1000, 1);
 
 private function fOnChange():void
 {
 CursorManager.setBusyCursor();
 m_bFlag = false;
 m_timer.addEventListener(TimerEvent.TIMER_COMPLETE,
 fStop);
 m_timer.start();
 }
 private function fStop(event:TimerEvent):void
 {
   CursorManager.removeBusyCursor();
   m_timer.removeEventListener(TimerEvent.TIMER_COMPLETE,
 fStop);
   m_bFlag = true;
 }
 ]]
 /mx:Script
 mx:NumericStepper x=278 y=222 change=fOnChange()
 enabled={m_bFlag}/
 /mx:Application 
 
 
 Thanks!
 
 Dmitri.





[flexcoders] Only 2 weeks until FlexManiacs 2008

2008-05-06 Thread Steve Drucker
Flex/AIR conference in Washington, DC on May 21-23.
 
View the conference schedule here:
http://www.webmaniacsconference.com/sessions/schedule.cfm
http://www.webmaniacsconference.com/sessions/schedule.cfm 
 
View the list of topics here:
http://www.webmaniacsconference.com/sessions/flextopics.cfm
http://www.webmaniacsconference.com/sessions/flextopics.cfm 
 
Register here:
https://www.webmaniacsconference.com/registration/
https://www.webmaniacsconference.com/registration/ 
 
Only $599 to attend the 3 day conference. Many hands-on sessions still
available!
 
Regards,
Steve Drucker
CEO
Fig Leaf Software
Adobe / Google / WebSense / Paperthin  Premier Consulting and Training
Partners
http://www.figleaf.com http://www.figleaf.com/ 
http://training.figleaf.com http://training.figleaf.com/ 


 
http://geo.yahoo.com/serv?s=97359714/grpId=12286167/grpspId=1705007207/msgI
d=112217/stime=1210095873/nc1=4507179/nc2=5202322/nc3=5170416 
 


[flexcoders] PlotSeries plots on baseline when it shouldn't, anyone else have this issue?

2008-05-06 Thread mecasetta
Is anyone else getting this?  Anyone know any workaround or 
resolution?

The issue is that the PlotSeries plots on the zero line of my chart 
when there is no data to support it.  In my example the chart should 
only render one plot on the graph, it renders one correctly and then 
others appear at the baseline of the cartesian chart. These other 
ones do not have any coinciding xml to warrant a plot on the graph. 

Interesting note: When I add 1 to each of the values in the xml then 
this issue does not appear, but can not have that as a workaround. 
(ex: So the value was 0.92, I made it 1.92) May be value base with 
code when the values of the collection is  n? (Just thinking out 
loud). 
  
Expected Results: 
One plot on the chart and no plots on the baseline. 
  
Workaround (if any): 
 None 

Below is a link to the bug on Adobe.  Inside the site are example 
files that demonstrate this issue

http://bugs.adobe.com/jira/browse/FB-12490

XML CONFIGURATION:

?xml version=1.0 encoding=utf-8?
mx:Application 
xmlns:mx=http://www.adobe.com/2006/mxml; 
xmlns:qsc=asincludes.src.qs.charts.*   
creationComplete=data.send() 
styleName=plain

mx:HTTPService id=data url=plotissue.xml/
mx:CartesianChart id=priceChart 
dataProvider={data.lastResult.seriesData.entry} showDataTips=true
mx:horizontalAxis
mx:DateTimeAxis/
/mx:horizontalAxis
mx:series
mx:LineSeries xField=date yField=price /
mx:PlotSeries xField=date yField=sell/
/mx:series
/mx:CartesianChart
/mx:Application

XML DATA:

seriesData
 entry
  date02/03/2008/date 
  price0.85/price 
 /entry
 entry
  date02/04/2008/date 
  price0.92/price 
  sell0.92/sell 
 /entry
 entry
  date02/05/2008/date 
  price0.90/price 
 /entry
 entry
  date02/06/2008/date 
  price0.84/price 
 /entry
 entry
  date02/07/2008/date 
  price0.84/price 
 /entry
 entry
  date02/08/2008/date 
  price0.82/price 
 /entry
/seriesData




[flexcoders] Cartesian vs ColumnChart Issue

2008-05-06 Thread j_lentzz
Does anyone know of an underlying reason why a column chart would
display the second vertical axis and not a cartesian chart?  I have a
mixture of mxml and actionscript I use to create a chart.  If I have
the chart as a ColumnChart, the second axis appears just fine, but the
mixture of columns and lines don't line up properly.  If I change
nothing but the chart type to Cartesian, the columns and lines are
centered properly, but the second axis is no longer visible.  Has
anyone else seen this or know what causes it?

Thanks,

John



RE: [flexcoders] Re: TextField - how does it calculate the number of lines?

2008-05-06 Thread Alex Harui
Sorry, haven't gotten around to it yet.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dmitri Girski
Sent: Tuesday, May 06, 2008 8:21 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: TextField - how does it calculate the number
of lines?

 

Anyone?

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

 Question to Alex and the rest from Adobe gang:
 
 Why the TextField does not include in numLines the number of lines
 which ends up with CR or LF?
 
 I.e. if you have a text:
 
 Mary has a little lambCR (1)
 Mary has a little lambCR (2)
 
 And the width of TextField is big enough to accommodate the whole
 string (1) without breaking it. 
 
 TextField thinks that it has 2 lines. But when it starts rendering
 text it places the CR symbol and we ending up with 4 lines of text. 
 
 Is this a bug or feature?
 
 PS this is .text property, not the .htmlText (which has similar
 problem of missing the brs from the count) 
 
 
 Thanks!


 



[flexcoders] Re: Adding/Removing child components

2008-05-06 Thread Tim Hoff

Tom and Tracy both have good suggestions.  However, I'd recommend using
any of the List based controls, with an itemRenderer, instead of using a
repeater.  Unlike the Repeater component, which instantiates all objects
that are repeated (no recycling), the List based controls instantiate
only objects visible in the list.

I dont know where I am missing it, but I am only able to remove the
lines from the bottom of the stack

Your problem is with this line:  myAcc.removeChild(vBoxes.pop());.  Here
you are using the array method pop; which always removes the last
element in an array.  While the removeChild method works here, since the
value of the removed array element is returned from pop, this is kind of
a backwards way of controlling the displayList.

There may be some confusion here about collections (data) and the
display list (components).  While you can certainly create an array
and/or arrayCollection of components, it's much easier to create and
maintain a List based control; with an arrayCollection of data bound as
the dataProvider.Then, as Tom indicated, use the built-in
ArrayCollection methods to add/remove the data; and the display
automatically adjusts.  All that you have to do is something like:

myACC.removeItemAt(myList.selectedIndex) ;

-TH

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

 Yes, unless you have some special needs, using Repeater for your
dynamic
 instantiation will save you a lot of work. Plus Repeater supports
 recycleChildren, which will help with performance over creating and
 removing children.

 Tracy

 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
 Behalf Of Tom Chiverton
 Sent: Tuesday, May 06, 2008 11:15 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Adding/Removing child components

 On Tuesday 06 May 2008, kalpkat9 wrote:
  I dont know where I am missing it, but I am only able to remove the
  lines from the bottom of the stack and I wish to remove the line
  items as such with their relevant index.

 If you use a Repeater bound to an ArrayCollection of the items, you
 could use
 ArrayCollection.removeItemAt() and it should Just Work.

 --
 Tom Chiverton
 Helping to conveniently unleash world-class content
 on: http://thefalken.livejournal.com

 

 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. Any reference to a partner in relation to
 Halliwells LLP means a member of Halliwells LLP. 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 Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links





RE: [flexcoders] SWFLoader Object and Panel

2008-05-06 Thread Alex Harui
There is no clipping unless there are scrollbars.  Why are your swfs
being placed outside the Panel?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of hokjay
Sent: Tuesday, May 06, 2008 6:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] SWFLoader Object and Panel

 

Hi All,
I am new to Flex, so please bear with me. I can load my swf sucessfully 
into both a SWFLoader and Image Component, and both as a static file 
and binary. My problem is when I render it in my panel, if the 
SWFLoader or Image component is smaller than than the panel, it floats 
on top (and is much larger than the panel itself - it actually goes 
larger than the canvas. If I make SWFLoader or Image component a little 
larger than the panel, it is contained in the panel, but with 
scrollbars (and this is not a desired behavior). Like I said, I am 
need, so it is probably something stupid I am doing. Any advice or a 
point in the right directions would be much appreciated.

I am using Flex 3 Builder.

Thanks. 

 



[flexcoders] Re: Adding/Removing child components

2008-05-06 Thread Tim Hoff

Wanted to clarify that when I say (no recycling), I'm refering to
itemRenderer reuse with the same set of data.  The recycleChildren
property of a Rpeater does allow for the re-use of children; when a new
data is used.

-TH

In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote:


 Tom and Tracy both have good suggestions. However, I'd recommend using
 any of the List based controls, with an itemRenderer, instead of using
a
 repeater. Unlike the Repeater component, which instantiates all
objects
 that are repeated (no recycling), the List based controls instantiate
 only objects visible in the list.

 I dont know where I am missing it, but I am only able to remove the
 lines from the bottom of the stack

 Your problem is with this line: myAcc.removeChild(vBoxes.pop());. Here
 you are using the array method pop; which always removes the last
 element in an array. While the removeChild method works here, since
the
 value of the removed array element is returned from pop, this is kind
of
 a backwards way of controlling the displayList.

 There may be some confusion here about collections (data) and the
 display list (components). While you can certainly create an array
 and/or arrayCollection of components, it's much easier to create and
 maintain a List based control; with an arrayCollection of data bound
as
 the dataProvider. Then, as Tom indicated, use the built-in
 ArrayCollection methods to add/remove the data; and the display
 automatically adjusts. All that you have to do is something like:

 myACC.removeItemAt(myList.selectedIndex) ;

 -TH

 --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote:
 
  Yes, unless you have some special needs, using Repeater for your
 dynamic
  instantiation will save you a lot of work. Plus Repeater supports
  recycleChildren, which will help with performance over creating and
  removing children.
 
  Tracy
 
  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
 On
  Behalf Of Tom Chiverton
  Sent: Tuesday, May 06, 2008 11:15 AM
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] Adding/Removing child components
 
  On Tuesday 06 May 2008, kalpkat9 wrote:
   I dont know where I am missing it, but I am only able to remove
the
   lines from the bottom of the stack and I wish to remove the line
   items as such with their relevant index.
 
  If you use a Repeater bound to an ArrayCollection of the items, you
  could use
  ArrayCollection.removeItemAt() and it should Just Work.
 
  --
  Tom Chiverton
  Helping to conveniently unleash world-class content
  on: http://thefalken.livejournal.com
 
  
 
  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. Any reference to a partner in relation to
  Halliwells LLP means a member of Halliwells LLP. 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 Mailing List
  FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
Groups
  Links
 






[flexcoders] how to remove the shade of ApplicationControlBar

2008-05-06 Thread coder3

Hi All,

the  mx:ApplicationControlBar comes with a default shade. I would like to
remove it but can't find out which attribute handles it.

help?

thanks!

c. 
-- 
View this message in context: 
http://www.nabble.com/how-to-remove-the-shade-of-ApplicationControlBar-tp17089637p17089637.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Inline Tree's node name editing creates visible empty nodes in a Tree when labelFunction property is set

2008-05-06 Thread Andriy Panas
Thanks Alex for the hint, it worked for us after we began to call
event.preventDefault() in our custom itemEditEnd event handler.

   Personally, I think we had hit quite a widespread issue here as it
is visible from the google search for labelFunction, itemEditEnd
keywords http://www.google.com/search?q=labelFunction+itemEditEnd, e.g
http://bugs.adobe.com/jira/browse/SDK-14312

   I would like Adobe to document this issue better in docs or in
blogs illustrated with code samples.

--
Med venlig hilsen / Best regards
Andriy Panas
[EMAIL PROTECTED]


[flexcoders] Re: Learning flex !

2008-05-06 Thread x77686d
I've found Adobe Flex 3: Training from the Source by Tapper et al.
to be useful.  I also like Flex Solutions by Casario.

Flex 3 in Action is available via Manning's Early Access Program. 
I've learned some things from it but, as you'd expect with early
access, a lot of rough spots remain.

Don't overlook the Adobe documentation -- it's really pretty good,
albeit poorly organized, IMO. 
http://livedocs.adobe.com/flex/3/html/index.html seems to be a root
for all the Flex 3 material but note that I say seems to be.

I'd say an ActionScript book is a necessary adjunct and Essential
ActionScript 3.0 by Moock seems to be widely regarded as the best AS3
book at present.

But what I'd really like to see is a Flex book that assumes knowledge
of all the basics and instead goes into depth, and seeks to provide
some real insight.  It seems like there are N books on Flex that take
the reader to roughly the same first plateau of understanding.  I want
a book that goes from the first plateau to the second.



[flexcoders] Adobe Help Please: Expired License Hell

2008-05-06 Thread Ethan Miller
Greetings -

I'm a licensed owner of FlexBuilder 3.0 Pro (Upgrade version) which 
was installed and happily running on my Mac G5 Tower. On day two
 weeks ago or so when I launched Flex Builder it told me that I was 
in trial mode and that I had x days left. I reentered my license 
numbers, which it accepted, but every day since then I get the 
trial message and today it expired, my valid license numbers 
have no effect, the application does not work, it appears to 
be running but doesn't display files, etc.  Seems to be stuck 
mind body and soul in a spurious trial mode.

I have uninstalled and re-installed repeatedly to no effect. 
Talked to about 20 different Adobe Tech Support reps, etc.

Any ideas?






[flexcoders] Re: NumericStepper goes nuts. Who to stop it?

2008-05-06 Thread Dmitri Girski
So, change event comes if you  do enabled = false/true.

Here is the description from docs: Dispatched [change event] when
the value of the NumericStepper control changes as a result of user
interaction.  
I always though that user interaction means clicks and keyboard input.

Does it mean that NumericStepper overreacts on it's own property change?

Thanks!

Dmitri. 



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

 I can see why - you are triggering the fOnChange function on a change
 event. Then you go ahead and change the numeric stepper by changing
 the enabled flag which triggers the change event and so on...
 
 
 
 
 --- In flexcoders@yahoogroups.com, Dmitri Girski mitek17@ wrote:
 
  Hi all,
  
  Just bumped into some strange effect - if you click on the
  NumericStepper, then processing function disables it, does something
  and re-enables it - it starts clicking by itself.
  
  Any ideas how to stop this?
  
  
  Here is the code:
  
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  layout=absolute
  mx:Script
  ![CDATA[
  import mx.managers.CursorManager;
  [Bindable]
  private var m_bFlag:Boolean = true;
  private var m_timer:Timer = new Timer(1000, 1);
  
  private function fOnChange():void
  {
  CursorManager.setBusyCursor();
  m_bFlag = false;
  m_timer.addEventListener(TimerEvent.TIMER_COMPLETE,
  fStop);
  m_timer.start();
  }
  private function fStop(event:TimerEvent):void
  {
  CursorManager.removeBusyCursor();
  m_timer.removeEventListener(TimerEvent.TIMER_COMPLETE,
  fStop);
  m_bFlag = true;
  }
  ]]
  /mx:Script
  mx:NumericStepper x=278 y=222 change=fOnChange()
  enabled={m_bFlag}/
  /mx:Application 
  
  
  Thanks!
  
  Dmitri.
 





[flexcoders] Re: TextField - how does it calculate the number of lines?

2008-05-06 Thread Dmitri Girski
No problem, Alex!

I just found this thing while printing the contents of TextArea and I
am not sure is this a bug or not. 

Thanks!
Dmitri.




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

 Sorry, haven't gotten around to it yet.
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Dmitri Girski
 Sent: Tuesday, May 06, 2008 8:21 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: TextField - how does it calculate the number
 of lines?
 
  
 
 Anyone?
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Dmitri Girski mitek17@ wrote:
 
  Question to Alex and the rest from Adobe gang:
  
  Why the TextField does not include in numLines the number of lines
  which ends up with CR or LF?
  
  I.e. if you have a text:
  
  Mary has a little lambCR (1)
  Mary has a little lambCR (2)
  
  And the width of TextField is big enough to accommodate the whole
  string (1) without breaking it. 
  
  TextField thinks that it has 2 lines. But when it starts rendering
  text it places the CR symbol and we ending up with 4 lines of text. 
  
  Is this a bug or feature?
  
  PS this is .text property, not the .htmlText (which has similar
  problem of missing the brs from the count) 
  
  
  Thanks!
 





[flexcoders] Is this possible?

2008-05-06 Thread Phill B
I want to have a Flex app that will run on server A but it will upload and
delete images from server B. Is this easy to do or is this going to be a
pain in the butt?

-- 
Phil


[flexcoders] Socket receive limit

2008-05-06 Thread Michael Baird
Working with the AS3 Socket class, I'm trying to connect to a .NET
socket server. I can establish the connection and send and receive
data successfully, but if the data from the server-side is greater
than 1260 bytes, the packet gets severed.

However, this isn't always the case... My packet is variable in size,
and the largest one so far has been 4466 bytes, the smallest under
200. On the first try, I was able to receive all 4466 bytes. However,
on the subsequent tries, Flex is only loading in 1260...

I know the server is sending all 4466 bytes because I am tracing out
the amount of bytes written to the socket after sending (the
asynchronous Socket.EndSend method in .NET returns the number of bytes
written after sending data across a socket).

Here is my trace:
INFO: [StatusCommand.execute] Polling server with info object
INFO: [ServerDelegate.pollServer_socketConnected] Socket connected!
INFO: [ServerDelegate.pollServer_socketDataReceived] Socket data
received! [4466 bytes received]
INFO: [ServerDelegate.pollServer_socketClosed] Socket connection closed.

INFO: [StatusCommand.execute] Polling server with info object
INFO: [ServerDelegate.pollServer_socketConnected] Socket connected!
INFO: [ServerDelegate.pollServer_socketDataReceived] Socket data
received! [1260 bytes received]
ERROR: [HomeProxy.pollServer_callback] Error retrieving server results:
TypeError: Error #1090: XML parser failure: element is malformed.
INFO: [ServerDelegate.pollServer_socketClosed] Socket connection closed.

Right now it's an XML string inside the packet that I'm reading, which
is why I need to have the whole packet. =)

Is there a limitation on the number of bytes that the AS3 socket can
receive? Is there any known bug that would cause this problem?

Thanks in advance...



Re: [flexcoders] how to remove the shade of ApplicationControlBar

2008-05-06 Thread coder3

ok, i've found it.

thx.



coder3 wrote:
 
 Hi All,
 
 the  mx:ApplicationControlBar comes with a default shade. I would like
 to remove it but can't find out which attribute handles it.
 
 help?
 
 thanks!
 
 c. 
 

-- 
View this message in context: 
http://www.nabble.com/how-to-remove-the-shade-of-ApplicationControlBar-tp17089637p17091079.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] a datagrid always shows all rows?

2008-05-06 Thread coder3

Hi,

Can i make my datagrid always shows all the rows? I want to datagrid height
be adjusted with the rows of dataprovider. Is this possible?

thx.

C.
-- 
View this message in context: 
http://www.nabble.com/a-datagrid-always-shows-all-rows--tp17091081p17091081.html
Sent from the FlexCoders mailing list archive at Nabble.com.



RE: [flexcoders] a datagrid always shows all rows?

2008-05-06 Thread Alex Harui
Use measureHeightOfItems and add in viewMetrics.top and bottom

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of coder3
Sent: Tuesday, May 06, 2008 1:41 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] a datagrid always shows all rows?

 


Hi,

Can i make my datagrid always shows all the rows? I want to datagrid
height
be adjusted with the rows of dataprovider. Is this possible?

thx.

C.
-- 
View this message in context:
http://www.nabble.com/a-datagrid-always-shows-all-rows--tp17091081p17091
081.html
http://www.nabble.com/a-datagrid-always-shows-all-rows--tp17091081p1709
1081.html 
Sent from the FlexCoders mailing list archive at Nabble.com.

 



RES: [flexcoders] Is this possible?

2008-05-06 Thread Luciano Manerich Junior
Hi,
 
Flex will just call some remote method. You will have to develop some server 
(java, php, asp, ...) to do that for your flex app.
 
There's a lot of samples over the internet.



De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de Phill B
Enviada em: terça-feira, 6 de maio de 2008 17:24
Para: flexcoders@yahoogroups.com
Assunto: [flexcoders] Is this possible?



I want to have a Flex app that will run on server A but it will upload and 
delete images from server B. Is this easy to do or is this going to be a pain 
in the butt? 

-- 
Phil 

 


[flexcoders] Re: Adobe Help Please: Expired License Hell

2008-05-06 Thread spitnas
Hi,

I also had a similar problem on my iMac G5 with FlexBuilder 3.0
Standard.  After some research on Google and emailing Adobe Support I
concluded it was permission issue on my install.  I installed
FlexBuilder in a non-admin account, but the install to FlexBuilder
attempts to put the license in a directory that only an admin account
can access.  I don't have access to this machine at the moment (home
machine) so I can't look up the license location.  What I had to do
was create an adobe license directory and the license file with my
license key.  Once I did that I was able to run FlexBuilder 3.0
without having to continually enter the license.  If you have
FlexBuilder 3.0 installed in a non-admin account you could always try
to install it in an admin account.

Santiago

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

 Greetings -
 
 I'm a licensed owner of FlexBuilder 3.0 Pro (Upgrade version) which 
 was installed and happily running on my Mac G5 Tower. On day two
  weeks ago or so when I launched Flex Builder it told me that I was 
 in trial mode and that I had x days left. I reentered my license 
 numbers, which it accepted, but every day since then I get the 
 trial message and today it expired, my valid license numbers 
 have no effect, the application does not work, it appears to 
 be running but doesn't display files, etc.  Seems to be stuck 
 mind body and soul in a spurious trial mode.
 
 I have uninstalled and re-installed repeatedly to no effect. 
 Talked to about 20 different Adobe Tech Support reps, etc.
 
 Any ideas?





[flexcoders] Datagrid sort order: is there a natsort() such as in PHP?

2008-05-06 Thread mr_j_harris


Datagrid sort order: is there a natsort() such as in PHP?


This is sort order on some strings:

1
10
11
2
21
23

This natsort order on the same strings:
1
2
10
11
21
23

In short, it deals sanely with a numeric string suffix.  Anything like
that in Flash/Flex out-of-the-box?

-- John





[flexcoders] Re: Modules the way to go?

2008-05-06 Thread Daniel

40 modules running at the same time with no issues?
God... That's an accomplishment... Does RAM and processor have
something to do with it? Our test computers are running on 1GB RAM,
and most have Flex Builder opened at a time...

The desktop manager load the modules per user request... The same for
unloading them... The module loaders are childs of a panel that can be
draggable and resizable, with a maximize and a close button... So if
the user choose to open N modules at the same, N modules will be
displayed...

A problem might be that by rule, the modules have tons of bindings...
Each component have at least one binding to it's correspondent value
in the modelLocator, and each component that have a dataProvider have
at one more binding... This bindings are not being set to unwatch
after the modules are unloaded... Could this be the issue that is
overloading the application and crashing the browser? 


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

 Any external swf you load can crash your app.
 It's a really big issue with the player at the moment.
 
 From my experience Modules provide you a good basis for multi-swf
 architecture with Flex.
 
 
 
 --- In flexcoders@yahoogroups.com, Gregor Kiddie gkiddie@ wrote:
 
  I won't develop the modules
  
  Well, that's your biggest problem, without being able to control the
  modules, you can't guarantee the behaviour. It's quite possible if one
  misbehaves it could lock your app up.
  
   
  
  If I have several small modules opened (say 6 to 10, each of 20K to
  60K size), they shouldnt crash or overload the browser?
  
  No they shouldn't. We run an application with similar amounts of
modules
  (though bigger in size) without too many problems. There is anecdotal
  evidence of people on this board running with many more (40? IIRC).
  
  How are you organising the desktop? Do you have all the modules
  displayed at the same time (you did mention open but that's not
the same
  thing)?
  
  Gk.
  
  Gregor Kiddie
  Senior Developer
  INPS
  
  Tel:   01382 564343
  
  Registered address: The Bread Factory, 1a Broughton Street, London SW8
  3QJ
  
  Registered Number: 1788577
  
  Registered in the UK
  
  Visit our Internet Web site at www.inps.co.uk
  blocked::http://www.inps.co.uk/ 
  
  The information in this internet email is confidential and is intended
  solely for the addressee. Access, copying or re-use of information
in it
  by anyone else is not authorised. Any views or opinions presented are
  solely those of the author and do not necessarily represent those of
  INPS or any of its affiliates. If you are not the intended recipient
  please contact is.helpdesk@
  
  
  
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
  Behalf Of Daniel
  Sent: 06 May 2008 07:22
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Modules the way to go?
  
   
  
  
  That's the problem... I won't develop the modules that will be running
  in the desktop manager... I'll only load them and unload them... But I
  want to make sure the application runs fast...
  
  Are there any tricks or tips to ensure the modules run fast and
  release unused resources? 
  
  If I have several small modules opened (say 6 to 10, each of 20K to
  60K size), they shouldnt crash or overload the browser?
  
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
  , Alex Harui aharui@ wrote:
  
   A module is as big as you make it. I'd be checking to make sure
it is
   small and releases unused resources.
   
   
   
   
   
   From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
  ] On
   Behalf Of Daniel
   Sent: Monday, May 05, 2008 8:19 PM
   To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
   Subject: [flexcoders] Modules the way to go?
   
   
   
   Hey guys,
   
   Im actually working on an application that controls several Flex
made
   apps. It's like a desktop manager application that manages several
   widgets. The applications running in the desktop manager are modules
   set on the server, that are loaded and unloaded per user
request, but
   when a user have 6 or more Modules opened at the time the desktop
   manager becomes really slow, and the explorer can even crash!
   
   Am I working the modules the wrong way, or this component really
adds
   that kind of weight to the computer? Is there another way to go?
   
   Thanx a lot guys...
  
 





[flexcoders] Strange behavior

2008-05-06 Thread markgoldin_2000
I am trying to implement a checkbox as a headerRenderer:
public class CheckBoxHeaderRenderer extends CheckBox
{
private var _parentGrid:DataGrid = new DataGrid();
public function CheckBoxHeaderRenderer()
{
super();
selected = true;
addEventListener(click, clickHandler);
}   
override protected function clickHandler
(event:MouseEvent):void
{
super.clickHandler(event);
parentGrid.dataProvider[0].processorder = 10;
}
public function set parentGrid(value:DataGrid):void
{
_parentGrid = value;
}
public function get parentGrid():DataGrid
{
return _parentGrid;
}
  }
That works fine except that when I click on a checkbox it does not 
lose it check mark. Commenting out:
parentGrid.dataProvider[0].processorder = 10;
will resore checkbox's behavior. What am I missing?

Thanks




RE: [flexcoders] Re: TextField - how does it calculate the number of lines?

2008-05-06 Thread Alex Harui
I get 3 using \n, and 5 using \r\n with this test:

 

package {

 

import flash.display.*; 

import flash.events.*;

import flash.filters.*;

import flash.geom.*;

import flash.net.*;

import flash.system.*;

import flash.text.*;

import flash.ui.*;

import flash.utils.*;

import flash.xml.*;

 

public class test2 extends MovieClip

{

public var thing1:Sprite;

public var thing2:Sprite;

public var thing3:Sprite;

public var thing4:Sprite;

public var thing5:Loader;

public var thing6:Loader;

public var max:TextField;

 

public function test2()

{

super();

root.loaderInfo.addEventListener(Event.INIT, initialize);

 

}

 

public function initialize(event:Event):void

{

thing1 = new Sprite();

trace(thing1.name);

addChild(thing1);

thing1.graphics.beginFill(0xFF);

thing1.graphics.drawRect(0, 0, 500, 500);

thing1.graphics.endFill();

 

max = new TextField()

thing1.addChild(max);

max.x = 10;

max.y = 200;

max.width = 500;

max.height = 100;

max.multiline = true;

max.text = Mary had a little lamb\r\nMary had a little lamb\r\n;

 

trace(max.numLines);

 

addEventListener(mouseDown, mouseDownHandler)

}

 

private function mouseDownHandler(event:Event):void

{

trace(max.numLines);

}

 

 

}

 

 

}

 

 

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dmitri Girski
Sent: Tuesday, May 06, 2008 8:21 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: TextField - how does it calculate the number
of lines?

 

Anyone?

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

 Question to Alex and the rest from Adobe gang:
 
 Why the TextField does not include in numLines the number of lines
 which ends up with CR or LF?
 
 I.e. if you have a text:
 
 Mary has a little lambCR (1)
 Mary has a little lambCR (2)
 
 And the width of TextField is big enough to accommodate the whole
 string (1) without breaking it. 
 
 TextField thinks that it has 2 lines. But when it starts rendering
 text it places the CR symbol and we ending up with 4 lines of text. 
 
 Is this a bug or feature?
 
 PS this is .text property, not the .htmlText (which has similar
 problem of missing the brs from the count) 
 
 
 Thanks!


 



RE: [flexcoders] Strange behavior

2008-05-06 Thread Alex Harui
Even headerRenderers get recycled.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Tuesday, May 06, 2008 2:23 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Strange behavior

 

I am trying to implement a checkbox as a headerRenderer:
public class CheckBoxHeaderRenderer extends CheckBox
{
private var _parentGrid:DataGrid = new DataGrid();
public function CheckBoxHeaderRenderer()
{
super();
selected = true;
addEventListener(click, clickHandler);
} 
override protected function clickHandler
(event:MouseEvent):void
{
super.clickHandler(event);
parentGrid.dataProvider[0].processorder = 10;
}
public function set parentGrid(value:DataGrid):void
{
_parentGrid = value;
}
public function get parentGrid():DataGrid
{
return _parentGrid;
}
}
That works fine except that when I click on a checkbox it does not 
lose it check mark. Commenting out:
parentGrid.dataProvider[0].processorder = 10;
will resore checkbox's behavior. What am I missing?

Thanks

 



Re: [flexcoders] Preventing default onClick-behaviour in List-Component

2008-05-06 Thread Andriy Panas
Hi Alex,

What are API design considerations behind of making most of
mx.events.ListEvent events not cancelable?

I just wanted to use event.preventDefault in my custom event handler
for ListEvent.ITEM_DOUBLE_CLICK event, but I could not.


 That is because those events are not cancelable.  Are you just trying to
 reset what the selectedIndex was?  I'd just store the last good one
 somewhere.
--
Med venlig hilsen / Best regards
Andriy Panas
[EMAIL PROTECTED]


[flexcoders] DateField on Windows

2008-05-06 Thread Richard Rodseth
I wonder if anyone else has encountered this situation.

I have a DateField which functions perfectly on my Macintosh running
under Flexbuilder, but when QA runs the app on a Windows machine, and
the app is hosted on a Windows server, the datefield is not editable,
and the calendar doesn't pop up. The app also runs fine on Windows
when launched from Flexbuilder

We are embedding the app with SWFObject 2.0 (in both the hosted and
Flexbuilder) scenarios.

It's demo time tomorrow, so any ideas would be much appreciated.


RE: [flexcoders] Preventing default onClick-behaviour in List-Component

2008-05-06 Thread Alex Harui
I don't think it would change the API as much as add complexity to the
underlying code.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andriy Panas
Sent: Tuesday, May 06, 2008 2:40 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Preventing default onClick-behaviour in
List-Component

 

Hi Alex,

What are API design considerations behind of making most of
mx.events.ListEvent events not cancelable?

I just wanted to use event.preventDefault in my custom event handler
for ListEvent.ITEM_DOUBLE_CLICK event, but I could not.

 That is because those events are not cancelable. Are you just trying
to
 reset what the selectedIndex was? I'd just store the last good one
 somewhere.
--
Med venlig hilsen / Best regards
Andriy Panas
[EMAIL PROTECTED] mailto:a.panas%40gmail.com 

 



RE: [flexcoders] DateField on Windows

2008-05-06 Thread Alex Harui
Any securityErrors in the flashlog.txt?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Richard Rodseth
Sent: Tuesday, May 06, 2008 2:40 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DateField on Windows

 

I wonder if anyone else has encountered this situation.

I have a DateField which functions perfectly on my Macintosh running
under Flexbuilder, but when QA runs the app on a Windows machine, and
the app is hosted on a Windows server, the datefield is not editable,
and the calendar doesn't pop up. The app also runs fine on Windows
when launched from Flexbuilder

We are embedding the app with SWFObject 2.0 (in both the hosted and
Flexbuilder) scenarios.

It's demo time tomorrow, so any ideas would be much appreciated.

 



RE: [flexcoders] Is this possible?

2008-05-06 Thread Tracy Spratt
Yes, in this case it would be worth getting our language accurate.

 

Flex is a client-side technology, and does not run on a server.  The swf 
executes in a Flash Player instance hosted in a browser.  Except for security 
sandbox issues, it is irrelevant what server serves the swf.  If you run a 
Flex app on a server, that server is really a local client, and the Flex 
app has no more functionality than it would from any remote client.

 

That simplifies this question to: Can Flex upload and delete images on a 
server.  The answeer is as Luciano says, yes, but you must have some 
server-side functionality to do it.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Luciano 
Manerich Junior
Sent: Tuesday, May 06, 2008 4:45 PM
To: flexcoders@yahoogroups.com
Subject: RES: [flexcoders] Is this possible?

 

Hi,

 

Flex will just call some remote method. You will have to develop some server 
(java, php, asp, ...) to do that for your flex app.

 

There's a lot of samples over the internet.

 



De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de Phill B
Enviada em: terça-feira, 6 de maio de 2008 17:24
Para: flexcoders@yahoogroups.com
Assunto: [flexcoders] Is this possible?

I want to have a Flex app that will run on server A but it will upload and 
delete images from server B. Is this easy to do or is this going to be a pain 
in the butt? 

-- 
Phil 

 



[flexcoders] Re: Datagrid sort order: is there a natsort() such as in PHP?

2008-05-06 Thread dougco2000
You have to do a sortCompareFunction, ala

mx:DataGridColumn dataField=number
sortCompareFunction={sortOnNumber} /

and then create something like:

private function sortOnNumber( obj1:Object, obj2:Object ):int
{
if( obj1[number]  obj2[number] ) {
return -1;
}
else if( obj1[number] 
obj2[number] ) {
return 1;
}
else {
// They are equal so do
another col sort if you want
if( obj1[ID]  obj2[ID] ) {
return -1;
}
else if( obj1[ID] 
obj2[ID] ) {
return 1;
}
else {
return 0;
}
}
}


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

 
 
 Datagrid sort order: is there a natsort() such as in PHP?
 
 
 This is sort order on some strings:
 
 1
 10
 11
 2
 21
 23
 
 This natsort order on the same strings:
 1
 2
 10
 11
 21
 23
 
 In short, it deals sanely with a numeric string suffix.  Anything like
 that in Flash/Flex out-of-the-box?
 
 -- John





[flexcoders] itemRender Debug Warnings

2008-05-06 Thread jmfillman
Since implementing some itemRenderers, I've been getting warnings, in 
Debug mode, that read like this:

warning: unable to bind to property 'display' on class 'Object' (class 
is not an IEventDispatcher)

From what I've been able to find on the www, is that this is related to 
setting RemoteObject results to an array, like this:

myAC.source = event.result as Array;

Question is, how to I do this correctly to prevent all those warnings?



[flexcoders] Re: Strange behavior

2008-05-06 Thread markgoldin_2000
I see. I am looking into your blog to find the answer but I can't 
find it. Could you please help me to understand what do I do with 
recycling problem?

Thanks alot.

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

 Even headerRenderers get recycled.
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of markgoldin_2000
 Sent: Tuesday, May 06, 2008 2:23 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Strange behavior
 
  
 
 I am trying to implement a checkbox as a headerRenderer:
 public class CheckBoxHeaderRenderer extends CheckBox
 {
 private var _parentGrid:DataGrid = new DataGrid();
 public function CheckBoxHeaderRenderer()
 {
 super();
 selected = true;
 addEventListener(click, clickHandler);
 } 
 override protected function clickHandler
 (event:MouseEvent):void
 {
 super.clickHandler(event);
 parentGrid.dataProvider[0].processorder = 10;
 }
 public function set parentGrid(value:DataGrid):void
 {
 _parentGrid = value;
 }
 public function get parentGrid():DataGrid
 {
 return _parentGrid;
 }
 }
 That works fine except that when I click on a checkbox it does not 
 lose it check mark. Commenting out:
 parentGrid.dataProvider[0].processorder = 10;
 will resore checkbox's behavior. What am I missing?
 
 Thanks





RE: [flexcoders] Re: Strange behavior

2008-05-06 Thread Alex Harui
If you look at the comboboxheaderrenderer example you'll see that it
always pulls its data from the column so the renderer can be recycled or
recreated.  It does not store state within itself

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Tuesday, May 06, 2008 3:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Strange behavior

 

I see. I am looking into your blog to find the answer but I can't 
find it. Could you please help me to understand what do I do with 
recycling problem?

Thanks alot.

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

 Even headerRenderers get recycled.
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of markgoldin_2000
 Sent: Tuesday, May 06, 2008 2:23 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Strange behavior
 
 
 
 I am trying to implement a checkbox as a headerRenderer:
 public class CheckBoxHeaderRenderer extends CheckBox
 {
 private var _parentGrid:DataGrid = new DataGrid();
 public function CheckBoxHeaderRenderer()
 {
 super();
 selected = true;
 addEventListener(click, clickHandler);
 } 
 override protected function clickHandler
 (event:MouseEvent):void
 {
 super.clickHandler(event);
 parentGrid.dataProvider[0].processorder = 10;
 }
 public function set parentGrid(value:DataGrid):void
 {
 _parentGrid = value;
 }
 public function get parentGrid():DataGrid
 {
 return _parentGrid;
 }
 }
 That works fine except that when I click on a checkbox it does not 
 lose it check mark. Commenting out:
 parentGrid.dataProvider[0].processorder = 10;
 will resore checkbox's behavior. What am I missing?
 
 Thanks


 



RE: [flexcoders] itemRender Debug Warnings

2008-05-06 Thread Tracy Spratt
Neither Array nor Object are bindable, they do not dispatch the
necessary events.  Wrap your Array in an ArrayCollection.

 

One other cause of this warning is when you have a bindable object that
you reference through a property typed as Object, as with selectedItem,
currentItem, data, getRepeaterItem(), etc.  In that case you can convert
or cast the Object to the true data type to prevent the warnings.

 

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jmfillman
Sent: Tuesday, May 06, 2008 6:14 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] itemRender Debug Warnings

 

Since implementing some itemRenderers, I've been getting warnings, in 
Debug mode, that read like this:

warning: unable to bind to property 'display' on class 'Object' (class 
is not an IEventDispatcher)

From what I've been able to find on the www, is that this is related to 
setting RemoteObject results to an array, like this:

myAC.source = event.result as Array;

Question is, how to I do this correctly to prevent all those warnings?

 



[flexcoders] Re: Strange behavior

2008-05-06 Thread markgoldin_2000
But I am using checkbox (is that what you meant?) in the header. Does 
it have any kind of data to base the checkbox's state on?

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

 If you look at the comboboxheaderrenderer example you'll see that it
 always pulls its data from the column so the renderer can be 
recycled or
 recreated.  It does not store state within itself
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of markgoldin_2000
 Sent: Tuesday, May 06, 2008 3:17 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Strange behavior
 
  
 
 I see. I am looking into your blog to find the answer but I can't 
 find it. Could you please help me to understand what do I do with 
 recycling problem?
 
 Thanks alot.
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 , Alex Harui aharui@ wrote:
 
  Even headerRenderers get recycled.
  
  
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 ] On
  Behalf Of markgoldin_2000
  Sent: Tuesday, May 06, 2008 2:23 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com 
  Subject: [flexcoders] Strange behavior
  
  
  
  I am trying to implement a checkbox as a headerRenderer:
  public class CheckBoxHeaderRenderer extends CheckBox
  {
  private var _parentGrid:DataGrid = new DataGrid();
  public function CheckBoxHeaderRenderer()
  {
  super();
  selected = true;
  addEventListener(click, clickHandler);
  } 
  override protected function clickHandler
  (event:MouseEvent):void
  {
  super.clickHandler(event);
  parentGrid.dataProvider[0].processorder = 10;
  }
  public function set parentGrid(value:DataGrid):void
  {
  _parentGrid = value;
  }
  public function get parentGrid():DataGrid
  {
  return _parentGrid;
  }
  }
  That works fine except that when I click on a checkbox it does 
not 
  lose it check mark. Commenting out:
  parentGrid.dataProvider[0].processorder = 10;
  will resore checkbox's behavior. What am I missing?
  
  Thanks
 





[flexcoders] Re: itemRender Debug Warnings

2008-05-06 Thread jmfillman
Thank you for the reply Tracy!

So instead of adding the items to the list as an Object I 
should..?

var objDG:Object = {itemID: myID, index: myAC[myID].id, display: 
gridDisplay, toolTip: tipText};

myList.dataProvider.addItem(objDG);


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

 Neither Array nor Object are bindable, they do not dispatch the
 necessary events.  Wrap your Array in an ArrayCollection.
 
  
 
 One other cause of this warning is when you have a bindable object 
that
 you reference through a property typed as Object, as with 
selectedItem,
 currentItem, data, getRepeaterItem(), etc.  In that case you can 
convert
 or cast the Object to the true data type to prevent the warnings.
 
  
 
 Tracy
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of jmfillman
 Sent: Tuesday, May 06, 2008 6:14 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] itemRender Debug Warnings
 
  
 
 Since implementing some itemRenderers, I've been getting warnings, 
in 
 Debug mode, that read like this:
 
 warning: unable to bind to property 'display' on class 'Object' 
(class 
 is not an IEventDispatcher)
 
 From what I've been able to find on the www, is that this is 
related to 
 setting RemoteObject results to an array, like this:
 
 myAC.source = event.result as Array;
 
 Question is, how to I do this correctly to prevent all those 
warnings?





[flexcoders] Re: Adding/Removing child components

2008-05-06 Thread Amy
--- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote:

 
 Tom and Tracy both have good suggestions.  However, I'd recommend 
using
 any of the List based controls, with an itemRenderer, instead of 
using a
 repeater.  Unlike the Repeater component, which instantiates all 
objects
 that are repeated (no recycling), the List based controls instantiate
 only objects visible in the list.

However, if you know that the most likely use case is that the repeater 
will not be showing enough items to cause scrolling, you may want to 
consider this:

http://flexdiary.blogspot.com/2008/04/is-horizontallist-faster-than-
hbox-with.html





Re: [flexcoders] DateField on Windows

2008-05-06 Thread Richard Rodseth
All is well. Crossdomain.xml *was* missing, but a missing flashvar
appears to have been the actual cause. Thanks.

On Tue, May 6, 2008 at 3:03 PM, Alex Harui [EMAIL PROTECTED] wrote:









 Any securityErrors in the flashlog.txt?



  


 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Richard Rodseth
  Sent: Tuesday, May 06, 2008 2:40 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] DateField on Windows








 I wonder if anyone else has encountered this situation.

  I have a DateField which functions perfectly on my Macintosh running
  under Flexbuilder, but when QA runs the app on a Windows machine, and
  the app is hosted on a Windows server, the datefield is not editable,
  and the calendar doesn't pop up. The app also runs fine on Windows
  when launched from Flexbuilder

  We are embedding the app with SWFObject 2.0 (in both the hosted and
  Flexbuilder) scenarios.

  It's demo time tomorrow, so any ideas would be much appreciated.

  


[flexcoders] showcase

2008-05-06 Thread mcmoisei
Hello,

I'm looking for the source code of a large application such as

http://flex.org/showcase/

Anyone can gimme a hint how is done ? I think would be extremely
beneficial to the community if such source would be available. I'm
joining RIA word from the lame world of request-response where the
approach is different.





  1   2   >