Re: [flexcoders] Tutorial zoom in a linechart

2007-02-07 Thread Mikhail Shevchuk

I suppose that it is not difficult to implement. During zooming, just store
smaller (zoomed area, relatively to the whole chart) array collection and
change a dataprovider for the component.

2007/2/7, bcncgn3 [EMAIL PROTECTED]:


  I have linechart and i want that the user can zoom in in the horizontal
axis selecting an area on the chart? Someone knows a tutorial which
explains how to program this?

 





--
A vivid and creative mind characterizes you.


Re: [flexcoders] Tutorial zoom in a linechart

2007-02-07 Thread Brendan Meutzner

As Mikhail pointed out, if by zoom you mean changing the range shown along
the horizontal axis, this example should help.  Just right click to view the
source:

http://examples.adobe.com/flex2/inproduct/sdk/dashboard/dashboard.html

Brendan


On 2/7/07, Mikhail Shevchuk [EMAIL PROTECTED] wrote:


  I suppose that it is not difficult to implement. During zooming, just
store smaller (zoomed area, relatively to the whole chart) array collection
and change a dataprovider for the component.

2007/2/7, bcncgn3 [EMAIL PROTECTED]:

   I have linechart and i want that the user can zoom in in the
 horizontal
 axis selecting an area on the chart? Someone knows a tutorial which
 explains how to program this?




--
A vivid and creative mind characterizes you.

 





--
Brendan Meutzner
Stretch Media - RIA Adobe Flex Development
[EMAIL PROTECTED]
http://www.stretchmedia.ca


Re: [flexcoders] enabled={Boolean(myDataProvider.length)}

2007-02-07 Thread Roman Protsiuk

Well, technically Boolean(-1) == true. Though, it's probably not your case
but...

R.

On 2/6/07, Ralf Bokelberg [EMAIL PROTECTED] wrote:


  I would prefer the following:

*enabled={ myDataProvider.length  0}
*
It's shorter and communicates the intention better imho
Cheers,
Ralf.

On 2/6/07, rd_grimes [EMAIL PROTECTED] wrote:

   Just curious if this type of syntax is wise or advisable? I just
 completed my first major Flex project and I use this in several
 places. But, now I'm wondering if anyone knows of a reason why this
 might cause problems or introduce some undesired side-effect.

 Thanks,

 Ron




--
Ralf Bokelberg [EMAIL PROTECTED]
Flex  Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35
 



[flexcoders] Poor man's PUSH technology (aka reload data using timer)

2007-02-07 Thread oneproofdk
I am building a internal app for my company, where we would eventually
pursue FDS for it's push capabilities - updating the users view when
backend data changes.

Until then, I'm thinking about making a function that will get
triggered by a timer, e.g. every 60 seconds, it should retrieve data
from the server and then compare it to the data currently displayed in
the app [Binded]. Then if data has changed, it should update the
specific data in the ArrayCollection.

Any pointers to how I could accomplish this ?

Im thinking a function dataTimer that would call a function
getData, that function would then compare each row in the dataset to
the data currently in memory in the app. If there's a difference, it
would update the data OR completely replace the currently used
dataset. (only I guess that would make the app flicker?)

Any help is greatly appreciated.

Thanks,
Mark



RE: [flexcoders] Alex's Distortion effects

2007-02-07 Thread Alex Uhlmann
Hi there, 
 
SimpleFlip is just an MXML component, which contains the setup code for
the effects. There are various examples provided in the download like
that. Check out the Creating and Extending Flex 2 Components
documentation, chapter Creating MXML components for more information.
 
Best,
Alex
 

 

 

Alex Uhlmann 
Consultant (Rich Internet Applications)
Adobe Consulting
Westpoint, 4 Redheughs Rigg, 
South Gyle, Edinburgh, EH12 9DQ, UK
p: +44 (0) 131 338 6969
m: +44 (0) 7917 428 951
[EMAIL PROTECTED]
http://weblogs.macromedia.com/auhlmann

Adobe Systems Europe Limited | Registered office: 151 St. Vincent
Street, Glasgow G2 5NJ | Company No. SC101089

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of danj520
Sent: 07 February 2007 00:45
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Alex's Distortion effects



http://weblogs.macromedia.com/auhlmann/archives/2006/11/download_distor.
cfm
http://weblogs.macromedia.com/auhlmann/archives/2006/11/download_distor
.cfm 

The example has the following code:

?xml version=1.0 encoding=utf-8?

mx:Application 
xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
xmlns:distortion=view.distortion.*

distortion:SimpleFlip /
/mx:Application

Do you run this or integrate into other code?

I love these distortion effects, but don't have a clue how to
implement them. Also get Design Mode: Error creating item SimpleFlip
even though paths to classes are correct. Can anyone help me? Thanks
again in advance.. 



 


adobe_logo.gif
Description: adobe_logo.gif


[flexcoders] Re: Filters with DataGrid - Excel

2007-02-07 Thread sanjaypmg
Hi,

I have started this functionality and even I got success but upto an 
extent and now I am stucked.

I have rendered the header and placed a comboBox using 
testCombo.mxml. Here I have a few queries like:

1. How can I get rendered header's column Index so that I can the 
unique value of that purticular column n populate that combo box?

2. Currently, when I change the combo item, it filters my 
arrayCollection and show the data accordingly but it doesnt keep 
selected the selected Item. Suggest something to rectify.

3. How Can I Hide/Show a Column of a dataGrid? or How Can I 
Add/Delete a Column of a DataGrid?

4. How Can I get/set the column Index or Label on which Sorting is 
implemented?

5. How can I get/set width of each column of a dataGrid?

I have some questions also in my mind... but that'll for next 
time .. ;)

I have also pasted the code below.

Please help me to resolve these issues..

Thanks in advance...
Sanjay Sharma

Code:: MainGrid.mxml :::

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=absolute initialize=doInit()   
mx:Script
![CDATA[
import mx.controls.Alert;
import mx.collections.*;

[Bindable]
   public var authorsDataProvider : ArrayCollection = new 
ArrayCollection( [
{ Selection: , Country: USA, Gold: 35, 
Status:Active, URL:http://www.google.com; },
{ Selection: , Country: China, Gold: 32, 
Status:Deactive,URL:http://www.yahoo.com},
{ Selection: , Country: Russia, Gold: 
27,Status:Deactive, URL:http://www.hotmail.com; },
{ Selection: , Country: India, Gold: 12, 
Status:Active,URL:http://www.gmail.com},
{Selection: , Country: Russia, Gold: 27, 
Status:Deleted,URL:http://www.hotmail.com; },
{Selection: , Country: Russia, Gold: 27, 
Status:Deleted,URL:http://www.hotmail.com; },
{ Selection: , Country: China, Gold: 32, 
Status:Deactive,URL:http://www.yahoo.com},
{ Selection: , Country: Russia, Gold: 
27,Status:Deactive, URL:http://www.hotmail.com; },
{ Selection: , Country: India, Gold: 12, 
Status:Active,URL:http://www.gmail.com},
{Selection: , Country: Russia, Gold: 27, 
Status:Deleted,URL:http://www.hotmail.com; },
{Selection: , Country: Russia, Gold: 27, 
Status:Deleted,URL:http://www.hotmail.com; },
{ Selection: , Country: China, Gold: 32, 
Status:Deactive,URL:http://www.yahoo.com},
{ Selection: , Country: Russia, Gold: 
27,Status:Deactive, URL:http://www.hotmail.com; },
{ Selection: , Country: India, Gold: 12, 
Status:Active,URL:http://www.gmail.com},
{Selection: , Country: Russia, Gold: 27, 
Status:Deleted,URL:http://www.hotmail.com; },
{Selection: , Country: Russia, Gold: 27, 
Status:Deleted,URL:http://www.hotmail.com; } ]);

public function doInit():void{
}
public function filterFnc(item:Object):Boolean {
return item.Gold == 27 ;
  }
public function filterFnc1(item:Object):Boolean {
//Alert.show(item: +item.toString
());
//Alert.show(item.Gold.toString())
return item.Status == Deactive ;
  }

]]
/mx:Script
mx:Panel title=Header Filter width=100% height=100%
  mx:DataGrid  allowMultipleSelection=true  id=grid 
dataProvider={authorsDataProvider} width=100% height=100% 
sortableColumns=false   
mx:columns
  mx:Array
mx:DataGridColumn itemRenderer=MyContactEditable 
resizable=false  dataField=Selection width=80 /
mx:DataGridColumn width=300 headerText=Country 
dataField=Country   /
mx:DataGridColumn width=300 headerText=Status 
dataField=Status headerRenderer=testCombo/
mx:DataGridColumn width=300 headerText=Gold 
dataField=Gold /
 /mx:Array
/mx:columns
  /mx:DataGrid
/mx:Panel
/mx:Application


:: testCombo.mxml ::

?xml version=1.0 encoding=utf-8?
mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; 
preinitialize=init()  
mx:Script
![CDATA[
import mx.controls.listClasses.ListData;
import mx.controls.Alert;
import 
mx.controls.dataGridClasses.DataGridListData;
import flash.events.Event;
import mx.events.DataGridEvent;


public var Listener:Object = new Object();
public  var myListData:DataGridListData = 
DataGridListData(myListData);

[Bindable]  
public var statusArray:Array = [All,
Active,

Re: [flexcoders] Semi-noobie architectural style question

2007-02-07 Thread Ralf Bokelberg

You could store it as a member of your Application.
Then you are able to access it by parentApplication.controller

Cheers,
Ralf.

On 2/7/07, rumpleminzeflickr [EMAIL PROTECTED] wrote:


  Hi there,

I have a main app, with a lot of sub custom components.

I've created a singleton class that i'm using as a controller.

what I want to know is, do I have to define access to that singleton
class in every custom component, or is there some way to 'pass' the
instance of it down the line and make it available to all.

Sorry if this is a dumb question, I tried searching without an answer
so far :(

Brett

 





--
Ralf Bokelberg [EMAIL PROTECTED]
Flex  Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35


[flexcoders] Re: Tutorial zoom in a linechart

2007-02-07 Thread g_odds
Everywhere seems to use the slicing the data set style approach.  Why
would one not set the minimum and maximum of an axis to do this?

Graham


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

 As Mikhail pointed out, if by zoom you mean changing the range
shown along
 the horizontal axis, this example should help.  Just right click to
view the
 source:
 
 http://examples.adobe.com/flex2/inproduct/sdk/dashboard/dashboard.html
 
 Brendan
 
 
 On 2/7/07, Mikhail Shevchuk [EMAIL PROTECTED] wrote:
 
I suppose that it is not difficult to implement. During zooming,
just
  store smaller (zoomed area, relatively to the whole chart) array
collection
  and change a dataprovider for the component.
 
  2007/2/7, bcncgn3 [EMAIL PROTECTED]:
  
 I have linechart and i want that the user can zoom in in the
   horizontal
   axis selecting an area on the chart? Someone knows a tutorial which
   explains how to program this?
  
  
 
 
  --
  A vivid and creative mind characterizes you.
 
   
 
 
 
 
 -- 
 Brendan Meutzner
 Stretch Media - RIA Adobe Flex Development
 [EMAIL PROTECTED]
 http://www.stretchmedia.ca





Re: [flexcoders] Re: Tutorial zoom in a linechart

2007-02-07 Thread Brendan Meutzner

I would guess that performance on rendering the chart would be faster
passing it a smaller dataset to work with... setting the minimum and maximum
would still require that the chart filter out non-visible data... just a
guess though...

Brendan


On 2/7/07, g_odds [EMAIL PROTECTED] wrote:


  Everywhere seems to use the slicing the data set style approach. Why
would one not set the minimum and maximum of an axis to do this?

Graham

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Brendan
Meutzner [EMAIL PROTECTED]
wrote:

 As Mikhail pointed out, if by zoom you mean changing the range
shown along
 the horizontal axis, this example should help. Just right click to
view the
 source:

 http://examples.adobe.com/flex2/inproduct/sdk/dashboard/dashboard.html

 Brendan


 On 2/7/07, Mikhail Shevchuk [EMAIL PROTECTED] wrote:
 
  I suppose that it is not difficult to implement. During zooming,
just
  store smaller (zoomed area, relatively to the whole chart) array
collection
  and change a dataprovider for the component.
 
  2007/2/7, bcncgn3 [EMAIL PROTECTED]:
  
   I have linechart and i want that the user can zoom in in the
   horizontal
   axis selecting an area on the chart? Someone knows a tutorial which
   explains how to program this?
  
  
 
 
  --
  A vivid and creative mind characterizes you.
 
 
 



 --
 Brendan Meutzner
 Stretch Media - RIA Adobe Flex Development
 [EMAIL PROTECTED]
 http://www.stretchmedia.ca


 





--
Brendan Meutzner
Stretch Media - RIA Adobe Flex Development
[EMAIL PROTECTED]
http://www.stretchmedia.ca


Re: [flexcoders] Returning 'this' from an overridden method?

2007-02-07 Thread Paul Andrews
- Original Message - 
From: David_Stafford [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, February 07, 2007 2:12 AM
Subject: [flexcoders] Returning 'this' from an overridden method?


 Please pardon this simple-minded question from an AS3 novice.

 My base class often returns 'this' from methods which makes it
 convenient to write code like:

   camera.move( 10, 12 ).rotateX( 45 ).rotateY( 90 );

 The problem comes when code extends the base class and overrides one
 of these functions.  The compiler insists, correctly, that the return
 type of an overriding function must match the one in the base class.
 What I want to do is return the 'this' object that is of the type of
 the derived class.  Is this possible?

 The following is a contrived example to demonstrate.  It won't
 compile because the overridden function in the derived class wants to
 return a type of MyCamera rather than Camera:

This is the correct behaviour. The derived class is MyCamera and any
reference to this, either in the derived class or it's parent will be
working with an object of class MyCamera not Camera.

Make the return type Camera, then it will work. You will be returning an
object reference of class Camera, but in fact it is an object reference to
an object of class MyCamera. You can then cast it elsewhere as a 'MyCamera'
in the application.

The problem is that you are trying to change the signature of the method
that you are overriding.

Paul

 public class Camera
   {
   var x:int = 0;
   var y:int = 0;

   public function move( x:int, y:int ) :Camera
 {
 this.x += x;
 this.y += y;

 return( this );
 }
   }

 public class MyCamera extends Camera
   {
   override public function move( x:int, y:int ) :MyCamera
 {
 super.move( x, y );

 if( x  0 )  x = 0;
 if( y  0 )  y = 0;

 return( this );
 }
   }





 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links








Re: [flexcoders] More Mac licensing issues: [WAS:: Max OS X Flex Builder 2.01 License Issue - still waiting

2007-02-07 Thread Tom Chiverton
On Tuesday 06 Feb 2007, Paul Andrews wrote:
 I saw rather a neat powerbook the other day and the idea of using a
 powerbook appealed until I realised I wouldn't be able to have flex on my
 main PC and on a Mac Powerbook with the same licence. 

There's always Parllel / VMWare to run Windows on your Mac.

-- 
Tom Chiverton
Helping to competently pursue leading-edge ROI



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 St 
James's Court Brown Street Manchester M2 2JF.  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 Law 
Society.

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 8008.

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.com 
Yahoo! 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] Open web-service in Flex application

2007-02-07 Thread Tom Chiverton
On Monday 05 Feb 2007, umumpaul wrote:
 Can I have a Flex Application which contain several methods with can
 open as web-service and let other to call the service to change the
 state of Flex application?

Are you asking if a Flex app can act as a web service server ? If so, no.

 If no, can I control Flex Application (app A) from another Flex
 Application (app B) (with authority), which app B loads app A as Loader?

Yes.

-- 
Tom Chiverton
Helping to preemptively establish dot-com metrics



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 St 
James's Court Brown Street Manchester M2 2JF.  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 Law 
Society.

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 8008.

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.com 
Yahoo! 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: Tutorial zoom in a linechart

2007-02-07 Thread g_odds
That seems like a reasonable answer, yeah.  I'm doing it using the
min-max setting and it seems to work fine with big datasets. 
Admittedly it all starts to get a bit slow when there are 3 or more
series (each has thousands of data points) but it has other
side-effects that are desirable in my application.

I'll post a link to it when my boss lets me.


Graham


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

 I would guess that performance on rendering the chart would be faster
 passing it a smaller dataset to work with... setting the minimum and
maximum
 would still require that the chart filter out non-visible data... just a
 guess though...
 
 Brendan
 
 
 On 2/7/07, g_odds [EMAIL PROTECTED] wrote:
 
Everywhere seems to use the slicing the data set style approach. Why
  would one not set the minimum and maximum of an axis to do this?
 
  Graham
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
Brendan
  Meutzner bmeutzner@
  wrote:
  
   As Mikhail pointed out, if by zoom you mean changing the range
  shown along
   the horizontal axis, this example should help. Just right click to
  view the
   source:
  
  
http://examples.adobe.com/flex2/inproduct/sdk/dashboard/dashboard.html
  
   Brendan
  
  
   On 2/7/07, Mikhail Shevchuk mikhail.shevchuk@ wrote:
   
I suppose that it is not difficult to implement. During zooming,
  just
store smaller (zoomed area, relatively to the whole chart) array
  collection
and change a dataprovider for the component.
   
2007/2/7, bcncgn3 oliver.bruehl@:

 I have linechart and i want that the user can zoom in in the
 horizontal
 axis selecting an area on the chart? Someone knows a
tutorial which
 explains how to program this?


   
   
--
A vivid and creative mind characterizes you.
   
   
   
  
  
  
   --
   Brendan Meutzner
   Stretch Media - RIA Adobe Flex Development
   brendan.meutzner@
   http://www.stretchmedia.ca
  
 
   
 
 
 
 
 -- 
 Brendan Meutzner
 Stretch Media - RIA Adobe Flex Development
 [EMAIL PROTECTED]
 http://www.stretchmedia.ca





Re: [flexcoders] More Mac licensing issues: [WAS:: Max OS X Flex Builder 2.01 License Issue - still waiting

2007-02-07 Thread Paul Andrews
- Original Message - 
From: Tom Chiverton [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, February 07, 2007 9:37 AM
Subject: Re: [flexcoders] More Mac licensing issues: [WAS:: Max OS X Flex 
Builder 2.01 License Issue - still waiting


 On Tuesday 06 Feb 2007, Paul Andrews wrote:
 I saw rather a neat powerbook the other day and the idea of using a
 powerbook appealed until I realised I wouldn't be able to have flex on my
 main PC and on a Mac Powerbook with the same licence.

 There's always Parllel / VMWare to run Windows on your Mac.

LOL - shows what I know about Macs..  ;-)


 -- 
 Tom Chiverton
 Helping to competently pursue leading-edge ROI

 

 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 St James's Court Brown Street Manchester M2 2JF.  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 Law Society.

 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 8008.

 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.com
 Yahoo! Groups Links



 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! 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: Open web-service in Flex application

2007-02-07 Thread umumpaul
Thanks for the answer.

to my 2nd question, if it is possible can u name some related library
name or method name?

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


 On Monday 05 Feb 2007, umumpaul wrote:
  Can I have a Flex Application which contain several methods with can
  open as web-service and let other to call the service to change the
  state of Flex application?
 
 Are you asking if a Flex app can act as a web service server ? If
so, no.
 
  If no, can I control Flex Application (app A) from another Flex
  Application (app B) (with authority), which app B loads app A as
Loader?
 
 Yes.
 
 -- 
 Tom Chiverton
 Helping to preemptively establish dot-com metrics
 
 
 
 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 St James's Court Brown Street Manchester M2 2JF.
 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 Law Society.
 
 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 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.





[flexcoders] Re: RIADEV-FLEXCHINAGROUP

2007-02-07 Thread Tim Hoff
Hello Ju,

I'm a developer in America.  As a semi-regular 
subscriber/contributer to this list, I greatly appreciate hearing 
about life and Flex experiences from everyone on this planet.  It 
warms my heart, that perhaps Flex could be a small building block to 
help us all realize our similarities and respect our differences.  I 
wish you all of the best success with your Flex group in China, and 
sincerely hope that you continue to be a participant here.  You're 
more than welcome.

Respectfully.
Tim Hoff--- In flexcoders@yahoogroups.com, Ju Aedis [EMAIL PROTECTED] 
wrote:

 hi,everyone
 
 I guess that the flexcoders have so many Chinese or foreign 
citizen of
 Chinese origin.
 In China, Flex spread so fast. We also looking forward to the 
arrival of
 APOLLO. Compare with overseas, our experience and skills 
shortages. U konw
 that, so many people in China was pleased to communication with 
Chinese,
 beacause of directness. The D.CAT(Jeremy) 
http://ria.richtechmedia.com/ help
 us in China to compelte out dream, So,
 RIADEVhttp://groups.google.com/group/riadevwas founded, just like
 flexcoders but in Chinese!
 
 If u can read Chinese, join it!
 If u can help us, join it!
 
 Thanks a lot.
 Aedis.Ju
 
 ps:Because of that Chinese Fonts in YahooGroup sometimes 
distortion,  We
 adviced RIADEV founded in GoogleGroup.
 
 
 
 -- 
 Aedis.Ju http://aedisju.blogspot.com/--
http://aedisju.blogspot.com/





[flexcoders] Re: More Mac licensing issues: [WAS:: Max OS X Flex Builder 2.01 License Issue -

2007-02-07 Thread barry.beattie
 
 I think that Adobe should seriously consider revising their
licensing to work on multiple platforms.

one would think so, yes, especially since what we're talking about is
just a plug-in to a cross-platform (and free) IDE.

 There are plenty of people that own Mac laptops and Windows desktops and
 would love to have the chance to run Flex Builder on both without
having to
 resort to solutions like Parallels or Boot Camp.

not much flamin' good if the Mac is a PPC G4! 

 
 At any rate, these guys at Adobe have been very helpful in getting
to the
 bottom of our issue. 

can I ask if there is a resolution? it looks like I'm just about to
end up in this situation. 

thanx







Re: [flexcoders] Poor man's PUSH technology (aka reload data using timer)

2007-02-07 Thread Adam Royle
Hi Mark,

Although I have no experience with this process, the following came to my mind 
when pondering the same issue as yours.

My plan was to keep a history table which tracks all of the updates and 
additions to data (would be simply recording row ids - not the entire row), and 
records a timestamp of when it was changed. This functionality would be coded 
into the server-side code. You would also need a sessions table to track a 
last synced timestamp for each user, which would be updated with the current 
timestamp on each sync of the data.

Every 60 seconds or so you would poll the server and it would return all of the 
rows that were either changed, added or deleted since the last synced 
timestamp. Once that data is delivered back to flex, simply loop through the 
data on the client side and replace the rows where the id's match, add a row if 
it's new, and delete the row if it's deleted.

You'd probably also want a cron cleaning up the history table periodically, 
depending on how many users there are and how frequently data is updated.

From my perspective, this would be a pretty fast operation all up. You could 
even optimise the SQL query so that it joins the history table id's to the 
data table. As long as all steps go smoothly, the data should always be 
current (within 60 sec window of course). The only real hurdle I see is that 
your app needs to know which id's are updated. This might not be a problem if 
you update and delete items based on id's, but if you do something like 
[delete from mydata where name = 'fred'], you will need to know the id's 
before deleting them.

I hope that gives an insight to how I would tackle the problem. Any others want 
to give feedback on this method?

Cheers,
Adam


  - Original Message - 
  From: oneproofdk 
  To: flexcoders@yahoogroups.com 
  Sent: Wednesday, February 07, 2007 6:41 PM
  Subject: [flexcoders] Poor man's PUSH technology (aka reload data using timer)


  I am building a internal app for my company, where we would eventually
  pursue FDS for it's push capabilities - updating the users view when
  backend data changes.

  Until then, I'm thinking about making a function that will get
  triggered by a timer, e.g. every 60 seconds, it should retrieve data
  from the server and then compare it to the data currently displayed in
  the app [Binded]. Then if data has changed, it should update the
  specific data in the ArrayCollection.

  Any pointers to how I could accomplish this ?

  Im thinking a function dataTimer that would call a function
  getData, that function would then compare each row in the dataset to
  the data currently in memory in the app. If there's a difference, it
  would update the data OR completely replace the currently used
  dataset. (only I guess that would make the app flicker?)

  Any help is greatly appreciated.

  Thanks,
  Mark



   

[flexcoders] Re: FDS DataService.commit() doesn't trigger responder result()...?

2007-02-07 Thread simonjpalmer
Thanks Jeff, you're a star.  I'll have a go at this.  

For debugging I have been looking at the Eclipse wtp all-in-one
package which claims to be the dev environment for App Server code.  I
just downloaded it from Eclipse and was planning on rebuilding today.
 If I turn anything useful up I'll let you know.

IOU insert beverage of your choice here :-)

SP

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

 I personally attach to the server after it is started.  It is a pain to
 specify all of the jar files and keep that up to date in my case since
 the jars change a lot (though I have gotten that to work too...).  
 
  
 
 Unfortunately the exact way is dependent on the app server and I am
 still using jrun (yeah, been meaning to switch for a while!)
 
  
 
 For Jrun, I add this to the standard java command line args it uses:
 
  
 
   -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=2005
 
  
 
 Then my eclipse debug target is created from the Remote Java
 Application configuration.  I specify localhost and 2005 for server and
 port.
 
  
 
 Debug logging on the server is in WEB-INF/flex/services-config.xml.
 Search for level=, change that to Debug.  Make sure that Message.* and
 DataService.* are in the patterns.  I personally don't like the
 Endpoint.* unless I'm debugging serialization problems since it is
 pretty verbose and duplicates a lot of the Message.* stuff.
 
  
 
 On the client, you can use the mx:TraceTarget/ in your MXML.  It goes
 to flashlog.txt - same place as the trace statement output.
 
  
 
 Jeff
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of simonjpalmer
 Sent: Monday, February 05, 2007 4:53 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: FDS DataService.commit() doesn't trigger
 responder result()...?
 
  
 
 No answer unfortunately, but I do have two questions...
 
 1) how do you manage to debug your server side jave code? I am
 running under JBoss and using Eclipse as my IDE for both Java and
 FlexBuilder and I can't figure out how to set breakpoints in my Java
 code or attach a debugger to the server.
 
 2) how do you switch on the FDS logging?
 
 not the response you were hoping for I am sure, but you would be
 helping a fella out :-)
 
 SP
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , parkerwhirlow parkerwhirlow@
 wrote:
 
  Hi again,
  
  I've got a simple save case working as far as I can tell (from
  debugging the server java side, everything is OK after leaving the
  HibernateAssembler.java updateItem() method.
  
  But the result never gets back to the client... I have a responder
  registered to the call like so:
  
  call = service.commit();
  call.action = save;
  call.addResponder(responder);
  
  And my responder has both fault and result methods. I know the
  responder is registered because I was getting faults for a long time,
  and those were firing the fault handler. But now that I think I have
  the save going successfully, I'm not getting anything back.
  
  I've turned on FDS logging for messages, see the trace below. Seems
  like the ACK message is being sent... 
  
  Any ideas?
  
  thanks,
  PW
  
  
  02/05 11:01:36 user [Flex] 11:01:36.794 [DEBUG]
  [Message.Data.transacted] After invoke service: data-service
  reply: Flex Message (flex.messaging.messages.AcknowledgeMessage)
  clientId = null
  correlationId = null
  destination = null
  messageId = 7793A2C0-FA0D-5A78-3641-BB1BA4B4ADB5
  timestamp = 1170702096794
  timeToLive = 0
  body =
  [
  
  ]
  
  02/05 11:01:36 user [Flex] 11:01:36.794 [DEBUG] [Endpoint.RTMP]
  Serializing AMF/RTMP response
  Version: 3
  (Command method=_result (0) trxId=20)
  (Typed Object #0 'flex.messaging.messages.AcknowledgeMessage')
  destination = null
  headers = (Object #1)
  correlationId = 322C326C-9C96-8513-7EC3-934715E5D887
  messageId = 7793A2C0-FA0D-5A78-3641-BB1BA4B4ADB5
  timestamp = 1.170702096794E12
  clientId = 77909013-D108-A13B-EC7E-EDBFA5C3A894
  timeToLive = 0.0
  body = (Array #2)
 





[flexcoders] Re: Poor man's PUSH technology (aka reload data using timer)

2007-02-07 Thread oneproofdk
Hi Adam.

Thanks for your reply - I like your idea about keeping the pushed
data to a minimum. My original idea was to get the entire dataset and
then loop through it and compare - your idea is way better.

I'm really in need of some examples of a timer function, and perhaps
some code to make the comparing of data. Anyone that can help me out
there ?

Thanks again,
Mark

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

 Hi Mark,
[snip]



Re: [flexcoders] More Mac licensing issues: [WAS:: Max OS X Flex Builder 2.01 License Issue - still waiting

2007-02-07 Thread Shannon Hicks
And you can't run the same license of Flex Builder on two windows 
computers, either... One license per computer, what does it matter that 
one's a PC and the other's a Mac?


Shan

Paul Andrews wrote:


I saw rather a neat powerbook the other day and the idea of using a 
powerbook appealed until I realised I wouldn't be able to have flex on 
my main PC and on a Mac Powerbook with the same licence. Stick with 
the Dell then..


- Original Message -
*From:* Shannon Hicks mailto:[EMAIL PROTECTED]
*To:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
*Sent:* Monday, February 05, 2007 3:36 PM
*Subject:* Re: [flexcoders] More Mac licensing issues: [WAS:: Max
OS X Flex Builder 2.01 License Issue - still waiting

I'm planning on switching to a Mac in a few months... Maybe I
should start the process for switching my Flex license now, so I
have it in time :)

Shan

Xavi Beumala wrote:


I'm having the same problems here! It's incredible but I've been
trying to transfer my win license to mac for the last 3 weeks,
and today my trial has finally expired! I won't get my license in
less than a week so... this means I can't work!

really bad
X.

On 2/3/07, *Matt Chotin* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:

I'll look into it.

 


Matt

Flex PM

 




*From:* flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com] *On Behalf Of *Chris Allen
*Sent:* Friday, February 02, 2007 12:46 PM
*To:* flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com
*Cc:* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED];
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
*Subject:* [flexcoders] More Mac licensing issues: [WAS:: Max
OS X Flex Builder 2.01 License Issue - still waiting

 


To anyone at Adobe who's listening:

I'm working on a Flex2 project for Scholastic
http://scholastic.com http://scholastic.com and we are
running into a wall in terms of getting our Flex Builder
licenses transfered to the Macintosh platform. We purposely
bought Windows versions knowing that it wouldn't be a
problem to transfer the license when the Mac version became
available.

This licensing situation that we and others have experienced
is completely unacceptable. John Dowdel, do you think that
you can help us out a bit, or escalate the issue, as you did
for others experiencing these problems? Or maybe Ted Patrick,
you could let others there know that this is a major issue
for people, and it should be addressed.

Here are the issues that we are currently facing:

1. In order to transfer the license you have to be the
authorized purchaser of the software and Adobe won't accept a
request form the actual end user of the license. To make it
worse Adobe won't tell us who that person is. At a rather
large organization (10,000 + employees) like Scholastic,
finding this authorized person is really difficult to do.
2. Even if we do find the person above, we are told that the
process will take five days from the approved request before
Adobe will issue the Mac license number.
3. Currently there's no way for us to extend the trial
version until this is worked out. We either have to install
the trial on another computer or just wait it out.

It's a pitty that such a great piece of software has so many
barriers and red tape to actually use it.

Thanks very much for you attention to this issue.

-Chris

On 2/1/07, *Brendan Meutzner* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:

Hi,

Transferring licenses doesn't seem to be the only issue. 
We've been using a trial Mac version which just expired and I

put through the order for a Mac license online last night
thinking we'd have a valid key within a few minutes (like we
did for the PC version last summer)...  Not quite... it
immediately showed as pending last night, and remained that
way this morning.  So after 30 minutes on hold with customer
support this morning, I'm told that the more expensive
transactions are processed manually and that somebody would
be reviewing the details within the next 2-3 days.  WTF? 
Since when is a $499 FlexBuilder license expensive, and even

so, why do they need to process manually?  Really really not
happy this morning... especially because it's pretty much
impossible to find a temporary key for the Mac version (I

RE: [flexcoders] Text Character Spacing

2007-02-07 Thread Jack Caldwell
Peter:
 
Sometimes things are right in front of you or should I say me.
 
Thanks,
 
Jack
 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Peter Baird
Sent: Tuesday, February 06, 2007 4:26 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Text Character Spacing



Yes. As of Flex 2.0.1, letterSpacing is a style for most components.

For example:

mx:Button label=Hello World letterSpacing=5 /

-p

On 2/6/07 11:15 AM, jwc_wensan [EMAIL PROTECTED]
mailto:jwcaldwell%40zingit.com com wrote:

 
 Is there a way to change the character spacing of text? Without
 extending the component or custom fonts?
 
 In other words, either expanding or reducing the space between each
 text character.
 
 Thanks,
 
 Jack
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-
http://www.mail-archive.com/flexcoders%40yahoogroups.com
archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links
 
 
 



 


RE: [flexcoders] detect XML node on click in Tree

2007-02-07 Thread Cashorali, Tanya M.
Thank you!

 

Worked like a charm.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Tracy Spratt
Sent: Tuesday, February 06, 2007 1:57 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] detect XML node on click in Tree

 

selectedItem gives you a reference to the node.

 

Probably what you are seeing is because the event is just an Object containing
the xml, so some propeties are not visible.  Cast/convert the result into an xml
object:

var oItem:Object = event.currentTarget.selectedItem;

var xmlItem:XML = XML(oItem)

 

xmlItem will be the node.

 

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of TCash21
Sent: Tuesday, February 06, 2007 12:55 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] detect XML node on click in Tree

 

I have a Tree that's populated based on e4x XML, which is generated by
PHP from querying the backend. I have a structure like this:

projects
project
experiments
experiment
/experiment
/experiments
/project
/projects

I'd like to be able to double click on an item in the Tree and change
to the necessary viewStack page, which will allow the user to edit the
info. The viewStack page will depend on whether the user clicked on a
project or experiment. 

So far I've tried using onChange(event),
event.currentTarget.selectedItem, which only gives me certain
attributes. I just want to be able to somehow know which XML node
experiment or project was clicked so I can open the right window.

I've been reading about ItemRenderers, will I need to use one?
I'm familiar with eventListeners but I'm still unsure about how to get
the appropriate XML node based on a click.

Thanks for any help.

 





THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY 
FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL 
AND/OR PRIVILEGED MATERIAL.  ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER 
USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR 
ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED.  IF YOU RECEIVED THIS 
INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND 
PROPERLY DISPOSE OF THIS INFORMATION.




[flexcoders] help with scrollTipFunction on List

2007-02-07 Thread Mark
on this board I found someone that created the scrollTipFunction like 
this:

public function myLabelFunc(dir:String, pos:Number):String {
   this.selectedIndex = pos + 7;
   return this.selectedItem.data;
}

It works but at the same time it's selecting that index.  Is there 
another way to show the scroll tip without selecting an item?

Thanks



[flexcoders] is there a way to run Applet in Flash

2007-02-07 Thread huangnankun
As the subject implies.. I'm trying to find a way to embed a java
applet within a flex application. 

I know that java can take over a rectangular area within a HTML page,
but is there a way to have embed an applet within flash?



RE: [flexcoders] More Mac licensing issues: [WAS:: Max OS X Flex Builder 2.01 License Issue - still waiting

2007-02-07 Thread Matt Chotin
We definitely appreciate the desire for a dual-license, unfortunately
it's just something we can't offer at this time.  We continue to examine
licensing options and will keep things like this in mind for the future.

 

Matt

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Chris Allen
Sent: Tuesday, February 06, 2007 8:49 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] More Mac licensing issues: [WAS:: Max OS X
Flex Builder 2.01 License Issue - still waiting

 

On 2/6/07, Paul Andrews [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
wrote:

I saw rather a neat powerbook the other day and the idea of
using a powerbook appealed until I realised I wouldn't be able to have
flex on my main PC and on a Mac Powerbook with the same licence. Stick
with the Dell then..



 

 


Well, then you HAVE to use Windows (obviously). I think that Adobe
should seriously consider revising their licensing to work on multiple
platforms. There are plenty of people that own Mac laptops and Windows
desktops and would love to have the chance to run Flex Builder on both
without having to resort to solutions like Parallels or Boot Camp. 

At any rate, these guys at Adobe have been very helpful in getting to
the bottom of our issue. I really appreciate the attention that they've
given to us. The thing is, all of these issues people are reporting
would not exists if they just let us use the same license regardless of
the platform, thus saving time and money for all involved. 

-Chris

 

 



- Original Message - 

From: Shannon Hicks mailto:[EMAIL PROTECTED]  

To: flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com  

Sent: Monday, February 05, 2007 3:36 PM

Subject: Re: [flexcoders] More Mac licensing issues:
[WAS:: Max OS X Flex Builder 2.01 License Issue - still waiting

 

I'm planning on switching to a Mac in a few months...
Maybe I should start the process for switching my Flex license now, so I
have it in time :)

Shan

Xavi Beumala wrote: 

I'm having the same problems here! It's incredible but
I've been trying to transfer my win license to mac for the last 3 weeks,
and today my trial has finally expired! I won't get my license in less
than a week so... this means I can't work! 

really bad 
X.

On 2/3/07, Matt Chotin [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote: 

I'll look into it.

 

Matt

Flex PM

 





From: flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com  [mailto: flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com ] On Behalf Of Chris Allen
Sent: Friday, February 02, 2007 12:46 PM
To: flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com 
Cc: [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] ; [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 
Subject: [flexcoders] More Mac licensing issues: [WAS::
Max OS X Flex Builder 2.01 License Issue - still waiting

 

To anyone at Adobe who's listening:

I'm working on a Flex2 project for Scholastic
http://scholastic.com http://scholastic.com  and we are running into a
wall in terms of getting our Flex Builder licenses transfered to the
Macintosh platform. We purposely bought Windows versions knowing that it
wouldn't be a problem to transfer the license when the Mac version
became available. 

This licensing situation that we and others have
experienced is completely unacceptable. John Dowdel, do you think that
you can help us out a bit, or escalate the issue, as you did for others
experiencing these problems? Or maybe Ted Patrick, you could let others
there know that this is a major issue for people, and it should be
addressed. 

Here are the issues that we are currently facing:

1. In order to transfer the license you have to be the
authorized purchaser of the software and Adobe won't accept a request
form the actual end user of the license. To make it worse Adobe won't
tell us who that person is. At a rather large organization (10,000 +
employees) like Scholastic, finding this authorized person is really
difficult to do. 
2. Even if we do find the person above, we are told that
the process will take five days from the approved request before Adobe
will issue the Mac license number.
3. Currently there's no way for us to extend the trial
version until this is worked out. We either have to install the 

[flexcoders] Tree XMLListCollection woes

2007-02-07 Thread durnelln
Hi all,

I am trying to dynamically build and display a sorted tree, i.e. 
create branches/leaves purely in actionscript.  I *thought* that 
using XML would make this easy due to its hierarchical nature and 
Flex's e4x extensions (which should allow me to easily locate nodes 
in the tree etc without having to code a load of recursion).  An 
example of the kind of structure I am trying to build looks something 
like this:

group id=1 name=group 1 parent= displayOrder=1
group id=1_1 name=group 1_1 parent=1 displayOrder=1
group id=1_1_1 name=group 1_1_1 parent=1_1 
displayOrder=1 /
/group
group id=1_2 name=group 1_2 parent=1 displayOrder=2 /
/group
group id=2 name=group 2 parent= displayOrder=2 /
group id=3 name=group 3 parent= displayOrder=3
group id=3_1 name=group 3_1 parent=3 displayOrder=1 /
/group

I am using an XMLListCollection as my tree data provider as this 
provides the sorting capabilities I need to retain the sort order as 
I add new nodes.  As new group objects come in the plan is to turn 
them into XML and add them to the tree in the appropriate location 
(based on their parent attribute).  The groups may come in in any 
order so I make use of the sort ability of the XMLListCollection.

After going round in circles for a couple of days trying to get it to 
work, I found the following article on Peter Ent's blog:

http://weblogs.macromedia.com/pent/archives/2006/10/tree_control_da.cf
m

This has proven invaluable (thanks Peter!).  However I am still 
having problems.  In Peter's example he adds top-level nodes via the 
XMLListCollection's addItem method but child nodes via the 
appendChild method of the underlying XML/XMLList object.  Now, while 
this allows me to build a tree, the child nodes added directly to the 
XML are not sorted according to the XMLListCollection's sort order - 
only the top-level nodes are sorted.

Does anyone know how I can build this tree whilst maintaining the 
sort order?  I do not want to hard-code any particular sort function 
as I want the sort field and direction etc. to remain configurable.

Alternatively, is there any way to add child nodes directly through 
the XMLListCollection object?  It surprises me that a collection 
designed for hierarchical XML data doesn't seem to support this (or 
e4x for that matter).  Why should it be necessary to access the 
underlying XML data directly to add child nodes (causing the sort 
order to break)?

Somebody please help - this is driving me nuts!

Nick.




RE: [flexcoders] Text Character Spacing

2007-02-07 Thread Jack Caldwell
Peter:
 
Sometimes things are right in front of you or should I say me.
 
Thanks,
 
Jack
 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Peter Baird
Sent: Tuesday, February 06, 2007 4:26 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Text Character Spacing



Yes. As of Flex 2.0.1, letterSpacing is a style for most components.

For example:

mx:Button label=Hello World letterSpacing=5 /

-p

On 2/6/07 11:15 AM, jwc_wensan [EMAIL PROTECTED]
mailto:jwcaldwell%40zingit.com com wrote:

 
 Is there a way to change the character spacing of text? Without
 extending the component or custom fonts?
 
 In other words, either expanding or reducing the space between each
 text character.
 
 Thanks,
 
 Jack
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-
http://www.mail-archive.com/flexcoders%40yahoogroups.com
archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links
 
 
 



 


RE: [flexcoders] Intellectual property or licensing of posted/blogged work

2007-02-07 Thread Matt Chotin
I believe most of Ely's examples he includes a license or says on his
blog that it's Creative Commons.

 

I don't know what the law states, but I believe most people when posting
will specify rules if they especially don't want you to incorporate.
Full-blown components should include a license, and if not I'd recommend
mailing an author before including their code to confirm that your use
is allowed.  If there is no license included I can't imagine you'd get
in trouble for reading the code in the meantime, but check with your
legal reps to be sure.

 

Matt (with only limited knowledge of this stuff based on all the back
and forth I have to do with legal on our own licenses)

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jeffry Houser
Sent: Tuesday, February 06, 2007 1:14 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Intellectual property or licensing of
posted/blogged work

 


 I didn't think of that.  It is completely contradictory to what I said,
but you might be right.  I suppose it depends what is going on. 

At 03:52 PM 2/6/2007, you wrote:

That's an awesome topic and I'd love to hear more about it. 

My current understanding is that any published work comes under
copyright protection, and that would necessitate permission from the
author before incorporation into a commercial work, if there is no
explicit licensing info provided. 

-Scott

On 2/6/07, engkee [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 wrote:

I have to commend you all for posting a lot of wonderful
components 

and extensions to Flex... eg. Ely's calendar, Doug and Jason's
tab 

navigator extensions, Ben and Trey's reflection effect, Alex's 

distortion effect, just to name a few.

Unfortunately, in these day and age, I would have to ask... am I


allowed to incorporate those wonderful works in commercial
products?

Am I even allowed to look at the source code, if I work for a
company 

producing commercial software, without violating some IP issues.

Most of them are not explicitly associated with any specific 

licensing terms.

Sure would be nice if there could be some standard practice of 

associating these works with a common license, eg. the Creative 

Commons ( http://creativecommons.org/licenses/by/2.5/
http://creativecommons.org/licenses/by/2.5/ )

Maybe there already is some presumed license or disclaimer 

for published works. If so, please send a pointer.

Just a thought.

-Engkee




-- 

: : ) Scott 

--
Jeffry Houser, Software Developer, Writer, Songwriter, Recording
Engineer
AIM: Reboog711  | Phone: 1-203-379-0773
--
My Company:  http://www.dot-com-it.com http://www.dot-com-it.com/  
My Podcast:  http://www.theflexshow.com http://www.theflexshow.com/ 
My Blog:  http://www.jeffryhouser.com http://www.jeffryhouser.com/  
Connecticut Macromedia User Group:  http://www.ctmug.com
http://www.ctmug.com/ 

 



Re: [flexcoders] Returning 'this' from an overridden method?

2007-02-07 Thread shaun
Hi David,

I to am an AS3 novice. Wrote my first(trivial) action script file about 
an hour ago. :)

A couple of ideas. Not sure if they will be of much help to you, but 
incase you hadnt considered them already..

. you could return the value returned by the call to super.
   ie)
   Camera c = super.move;
   //// some local x,y stuff
   return c;

. you could use an interface as the return value. eg) interface ICamera 
would define the move and rotate methods and return an ICamera and your 
Camera classes would implement ICamera.

I realise that these options do not do what you asked for, but you might 
find one of these is an acceptable alternative.

HTH.

cheers,
  - shaun

David_Stafford wrote:
 Please pardon this simple-minded question from an AS3 novice.
 
 My base class often returns 'this' from methods which makes it 
 convenient to write code like:
 
   camera.move( 10, 12 ).rotateX( 45 ).rotateY( 90 );
 
 The problem comes when code extends the base class and overrides one 
 of these functions.  The compiler insists, correctly, that the return 
 type of an overriding function must match the one in the base class.  
 What I want to do is return the 'this' object that is of the type of 
 the derived class.  Is this possible?
 
 The following is a contrived example to demonstrate.  It won't 
 compile because the overridden function in the derived class wants to 
 return a type of MyCamera rather than Camera:
 
 
 public class Camera
   {
   var x:int = 0;
   var y:int = 0;
 
   public function move( x:int, y:int ) :Camera
 {
 this.x += x;
 this.y += y;
 
 return( this );
 }  
   }
 
 public class MyCamera extends Camera
   {
   override public function move( x:int, y:int ) :MyCamera
 {
 super.move( x, y ); 
 
 if( x  0 )  x = 0;
 if( y  0 )  y = 0;
 
 return( this );
 } 
   }




[flexcoders] Re: Filters with DataGrid - Excel

2007-02-07 Thread ben.clinkinbeard
Regarding #2, this should help:
http://www.returnundefined.com/2006/11/creating-truly-reusable-renderers-with-classfactory/

Most of your other questions should be pretty simple to find in the
documentation for DataGrid and DataGridColumn.

HTH,
Ben


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

 Hi,
 
 I have started this functionality and even I got success but upto an 
 extent and now I am stucked.
 
 I have rendered the header and placed a comboBox using 
 testCombo.mxml. Here I have a few queries like:
 
 1. How can I get rendered header's column Index so that I can the 
 unique value of that purticular column n populate that combo box?
 
 2. Currently, when I change the combo item, it filters my 
 arrayCollection and show the data accordingly but it doesnt keep 
 selected the selected Item. Suggest something to rectify.
 
 3. How Can I Hide/Show a Column of a dataGrid? or How Can I 
 Add/Delete a Column of a DataGrid?
 
 4. How Can I get/set the column Index or Label on which Sorting is 
 implemented?
 
 5. How can I get/set width of each column of a dataGrid?
 
 I have some questions also in my mind... but that'll for next 
 time .. ;)
 
 I have also pasted the code below.
 
 Please help me to resolve these issues..
 
 Thanks in advance...
 Sanjay Sharma
 
 Code:: MainGrid.mxml :::
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
 layout=absolute initialize=doInit()   
 mx:Script
   ![CDATA[
   import mx.controls.Alert;
   import mx.collections.*;
   
   [Bindable]
public var authorsDataProvider : ArrayCollection = new 
 ArrayCollection( [
 { Selection: , Country: USA, Gold: 35, 
 Status:Active, URL:http://www.google.com; },
 { Selection: , Country: China, Gold: 32, 
 Status:Deactive,URL:http://www.yahoo.com},
 { Selection: , Country: Russia, Gold: 
 27,Status:Deactive, URL:http://www.hotmail.com; },
 { Selection: , Country: India, Gold: 12, 
 Status:Active,URL:http://www.gmail.com},
 {Selection: , Country: Russia, Gold: 27, 
 Status:Deleted,URL:http://www.hotmail.com; },
 {Selection: , Country: Russia, Gold: 27, 
 Status:Deleted,URL:http://www.hotmail.com; },
 { Selection: , Country: China, Gold: 32, 
 Status:Deactive,URL:http://www.yahoo.com},
 { Selection: , Country: Russia, Gold: 
 27,Status:Deactive, URL:http://www.hotmail.com; },
 { Selection: , Country: India, Gold: 12, 
 Status:Active,URL:http://www.gmail.com},
 {Selection: , Country: Russia, Gold: 27, 
 Status:Deleted,URL:http://www.hotmail.com; },
 {Selection: , Country: Russia, Gold: 27, 
 Status:Deleted,URL:http://www.hotmail.com; },
 { Selection: , Country: China, Gold: 32, 
 Status:Deactive,URL:http://www.yahoo.com},
 { Selection: , Country: Russia, Gold: 
 27,Status:Deactive, URL:http://www.hotmail.com; },
 { Selection: , Country: India, Gold: 12, 
 Status:Active,URL:http://www.gmail.com},
 {Selection: , Country: Russia, Gold: 27, 
 Status:Deleted,URL:http://www.hotmail.com; },
 {Selection: , Country: Russia, Gold: 27, 
 Status:Deleted,URL:http://www.hotmail.com; } ]);
   
   public function doInit():void{
   }
   public function filterFnc(item:Object):Boolean {
 return item.Gold == 27 ;
   }
   public function filterFnc1(item:Object):Boolean {
   //Alert.show(item: +item.toString
 ());
   //Alert.show(item.Gold.toString())
 return item.Status == Deactive ;
   }
 
   ]]
 /mx:Script
 mx:Panel title=Header Filter width=100% height=100%
   mx:DataGrid  allowMultipleSelection=true  id=grid 
 dataProvider={authorsDataProvider} width=100% height=100% 
 sortableColumns=false   
 mx:columns
   mx:Array
 mx:DataGridColumn itemRenderer=MyContactEditable 
 resizable=false  dataField=Selection width=80 /
 mx:DataGridColumn width=300 headerText=Country 
 dataField=Country   /
 mx:DataGridColumn width=300 headerText=Status 
 dataField=Status headerRenderer=testCombo/
 mx:DataGridColumn width=300 headerText=Gold 
 dataField=Gold /
  /mx:Array
 /mx:columns
   /mx:DataGrid
 /mx:Panel
 /mx:Application
 
 
 :: testCombo.mxml ::
 
 ?xml version=1.0 encoding=utf-8?
 mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; 
 preinitialize=init()  
 mx:Script
   ![CDATA[
   import mx.controls.listClasses.ListData;
   import mx.controls.Alert;
   import 
 mx.controls.dataGridClasses.DataGridListData;
 import flash.events.Event;
 

Re: [flexcoders] Re: Poor man's PUSH technology (aka reload data using timer)

2007-02-07 Thread Adam Royle
This is some code I have written for a similar project... It simply runs 
through the dataProvider searching for a matched id. If it finds the id, then 
it replaces the row, otherwise it adds a new row at the end of the 
dataProvider. Since you want to track add, update and delete, you'll probably 
need to specify another field that is returned with the data, such as 
_row_status (0=new,1=updated,2=deleted), and modify the script likewise.



public var dataProvider:ArrayCollection = new ArrayCollection();

public function onUpdateData(result:Array):void
{
 var i:Number, j:Number, row:Object, item:Object, id:Number, found:Boolean;
 for (i=0;iresult.length;i++){
  row = result[i];
  id = row.id;
  
  found = false;
  for (j=0;jdataProvider.length;j++){
   item = dataProvider.getItemAt(j);
   if (item.id == id){
dataProvider.setItemAt(row,j);
found = true;
break;
   }
  }
  
  if (!found){
   dataProvider.addItem(row);
  }
  
 }
 
 dataProvider.refresh();

}



Any questions, just ask.

Cheers,
Adam

  - Original Message - 
  From: oneproofdk 
  To: flexcoders@yahoogroups.com 
  Sent: Wednesday, February 07, 2007 11:10 PM
  Subject: [flexcoders] Re: Poor man's PUSH technology (aka reload data using 
timer)


  Hi Adam.

  Thanks for your reply - I like your idea about keeping the pushed
  data to a minimum. My original idea was to get the entire dataset and
  then loop through it and compare - your idea is way better.

  I'm really in need of some examples of a timer function, and perhaps
  some code to make the comparing of data. Anyone that can help me out
  there ?

  Thanks again,
  Mark

  --- In flexcoders@yahoogroups.com, Adam Royle [EMAIL PROTECTED] wrote:
  
   Hi Mark,
  [snip]



   

Re: [flexcoders] Semi-noobie architectural style question

2007-02-07 Thread Troy Gilbert

That's usually the point of the singleton pattern, that it provides a global
access point for a variable (as well as enforcing a single instance of a
class). Essentially, singleton hijacks a language's type system to use it to
deliver globals.

Of course, in languages like C++ I kinda consider this on par with using
globals and normally prefer something like a monostate object where many
would use a singleton. But, since ActionScript doesn't actually have global
objects, singleton is pretty useful for attaining that.

Perhaps I've missed the guts of your question, but if you create a class
that follows the singleton pattern, you'd have a getInstance() static
method. To access your instance you just need to import your singleton class
wherever you need it and then use MyClass.getInstance() to access the
singleton. You'd have to import the class regardless if you wanted to
*access* the singleton, so I'm not quite sure where the disconnect is in
your question...

Troy.


On 2/6/07, rumpleminzeflickr [EMAIL PROTECTED] wrote:


  Hi there,

I have a main app, with a lot of sub custom components.

I've created a singleton class that i'm using as a controller.

what I want to know is, do I have to define access to that singleton
class in every custom component, or is there some way to 'pass' the
instance of it down the line and make it available to all.

Sorry if this is a dumb question, I tried searching without an answer
so far :(

Brett

 



Re: [flexcoders] Re: More Mac licensing issues: [WAS:: Max OS X Flex Builder 2.01 License Issue -

2007-02-07 Thread Troy Gilbert

I'd vote for cross-platform licenses as well, for all of Adobe's products.
I've got a MacBookPro and a PC desktop that I develop on. I'd love to be
able to run everything natively on my MacBook, but alas, I sometimes *have*
to work on the PC so I have to license all of my Adobe products for Windows.
Hell, I'd be willing to pay a minimal up-cost if that was the compromise
necessary, i.e. $495 for Flex single-platform, $595 for Flex 2
dual-platform.

But I agree... in the case of Flex, Adobe is leveraging the efforts of the
open source community and their porting to an extent, so I don't think 2x
cost is warranted. Photoshop, etc., may be another deal...

Troy.


On 2/7/07, barry.beattie [EMAIL PROTECTED] wrote:



 I think that Adobe should seriously consider revising their
licensing to work on multiple platforms.

one would think so, yes, especially since what we're talking about is
just a plug-in to a cross-platform (and free) IDE.

 There are plenty of people that own Mac laptops and Windows desktops and
 would love to have the chance to run Flex Builder on both without
having to
 resort to solutions like Parallels or Boot Camp.

not much flamin' good if the Mac is a PPC G4!

 At any rate, these guys at Adobe have been very helpful in getting
to the
 bottom of our issue.

can I ask if there is a resolution? it looks like I'm just about to
end up in this situation.

thanx

 



[flexcoders] Building the FDS HibernateManager class in Eclipse

2007-02-07 Thread simonjpalmer
Hi,

I am trying to debug the FDS HibernateAssembler.  I have put the 
HibernateAssembler
HibernateManager
HibernateType
java files into my own package and adjusted dependencies accordingly.  

I am unable to build because of the following problem.  The
HibernateManager.getSession() method contains the following line of code:

if (!syncSession  DataServiceTransaction.getCurrentUserTransaction()
!= null)
syncSession = true;

I get the following two build errors:
1)
The project was not built since its build path is incomplete. Cannot
find the class file for javax.transaction.UserTransaction. Fix the
build path then try building this project
2)
The type javax.transaction.UserTransaction cannot be resolved. It is
indirectly referenced from required .class files

I can't find anything which seems to contain the UserTransaction code
or interface.  Anyone know what I need to do to my Eclipse project
dependencies to have this compile?

SP




Re: [flexcoders] is there a way to run Applet in Flash

2007-02-07 Thread Troy Gilbert

The only way is to fake it by having the surrounding HTML webpage float an
IFRAME over your Flash applet. Same technique folks use for displaying web
pages inside of a Flash app.

I saw a demonstration somewhere of a Flash app that had transparency. I
believe the Flash player allows for a transparent background (I guess that's
how all of those annoying integrated page ads work), so you could probably
float your Flash app over your Java applet as well!

Troy.


On 2/7/07, huangnankun [EMAIL PROTECTED] wrote:


  As the subject implies.. I'm trying to find a way to embed a java
applet within a flex application.

I know that java can take over a rectangular area within a HTML page,
but is there a way to have embed an applet within flash?

 



Re: [flexcoders] Re: Poor man's PUSH technology (aka reload data using timer)

2007-02-07 Thread Johannes Nel

another option you could consider is using red5 (www.osflasg.org/red5) for
the remote shared object.

On 2/7/07, Adam Royle [EMAIL PROTECTED] wrote:


   This is some code I have written for a similar project... It simply
runs through the dataProvider searching for a matched id. If it finds the
id, then it replaces the row, otherwise it adds a new row at the end of the
dataProvider. Since you want to track add, update and delete, you'll
probably need to specify another field that is returned with the data, such
as _row_status (0=new,1=updated,2=deleted), and modify the script likewise.



public var dataProvider:ArrayCollection = new ArrayCollection();

public function onUpdateData(result:Array):void
{
 var i:Number, j:Number, row:Object, item:Object, id:Number,
found:Boolean;
 for (i=0;iresult.length;i++){
  row = result[i];
  id = row.id;

  found = false;
  for (j=0;jdataProvider.length;j++){
   item = dataProvider.getItemAt(j);
   if (item.id == id){
dataProvider.setItemAt(row,j);
found = true;
break;
   }
  }

  if (!found){
   dataProvider.addItem(row);
  }

 }

 dataProvider.refresh();

}



Any questions, just ask.

Cheers,
Adam


- Original Message -
*From:* oneproofdk [EMAIL PROTECTED]
*To:* flexcoders@yahoogroups.com
*Sent:* Wednesday, February 07, 2007 11:10 PM
*Subject:* [flexcoders] Re: Poor man's PUSH technology (aka reload data
using timer)

 Hi Adam.

Thanks for your reply - I like your idea about keeping the pushed
data to a minimum. My original idea was to get the entire dataset and
then loop through it and compare - your idea is way better.

I'm really in need of some examples of a timer function, and perhaps
some code to make the comparing of data. Anyone that can help me out
there ?

Thanks again,
Mark

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Adam
Royle [EMAIL PROTECTED] wrote:

 Hi Mark,
[snip]

 





--
j:pn
http://www.lennel.org


[flexcoders] View State - How to call a function on a custom component???

2007-02-07 Thread paulwelling
Hello,

I would like to be able to call a function on a custom component when
adding a child to a View State.

There is a setProperty tag.  Any way of call a function on that
component from within the AddChild tag of a View State???

Thanks,
Paul



[flexcoders] Resources to Flex Application Architecture articles?

2007-02-07 Thread Private Romeo
Hi everybody,

 

we are looking for (online) resources related to how to best structure
(larger) Flex applications. Most of the great training and tutorial material
available tends to focus on how to construct more complex controls, how to
implement special effects or how to solve DataGrid/Binding related issues,
however, what we are seeking is material as to potential best practices
about how to structure an Flex app best.

 

Should AS code be used inline primarily? Or is a code-behind pattern a
better choice?

Should we ultimately keep the primary MXML application file small and work
with complex custom controls, or should we keep custom controls usage low?

 

Are there any good technical articles out there? Any links? Any hints?

 

Thanks for your support.

 

 



Re: [flexcoders] Semi-noobie architectural style question

2007-02-07 Thread Ralf Bokelberg

The singleton pattern is dangerous, as are global variables.
The problem is, you can't reuse any of the singleton's users without using
the singleton.
I guess, that's the reason why Brett was asking for a poor man's
implementation of IoC

Cheers,
Ralf.



On 2/7/07, Troy Gilbert  [EMAIL PROTECTED] wrote:


  That's usually the point of the singleton pattern, that it provides a
global access point for a variable (as well as enforcing a single instance
of a class). Essentially, singleton hijacks a language's type system to use
it to deliver globals.

Of course, in languages like C++ I kinda consider this on par with using
globals and normally prefer something like a monostate object where many
would use a singleton. But, since ActionScript doesn't actually have global
objects, singleton is pretty useful for attaining that.

Perhaps I've missed the guts of your question, but if you create a class
that follows the singleton pattern, you'd have a getInstance() static
method. To access your instance you just need to import your singleton class
wherever you need it and then use MyClass.getInstance() to access the
singleton. You'd have to import the class regardless if you wanted to
*access* the singleton, so I'm not quite sure where the disconnect is in
your question...

Troy.


On 2/6/07, rumpleminzeflickr [EMAIL PROTECTED]  wrote:

   Hi there,

 I have a main app, with a lot of sub custom components.

 I've created a singleton class that i'm using as a controller.

 what I want to know is, do I have to define access to that singleton
 class in every custom component, or is there some way to 'pass' the
 instance of it down the line and make it available to all.

 Sorry if this is a dumb question, I tried searching without an answer
 so far :(

 Brett


 





--
Ralf Bokelberg [EMAIL PROTECTED]
Flex  Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35


[flexcoders] Re: RemoteObjects for Flex using AS3

2007-02-07 Thread michael_ramirez44
Shannon,

Valid but Bad example. Try this.

employeeRO.getOperation(methodName).send
(deptComboBox.selectedItem.data);

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

 That is not the line that is failing; that is the line that binds 
the event
 listener to the operation. we're trying to execute the method 
dynamically
 (line six of second example)-- have you done that?
  
 Thnx, -Shannon
 
 employeeRO.getOperation(methodName)].addEventListener
 (result,getListResultHandler);
 
 Michael Ramirez
 
 --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com 
ups.com,
 Shannon Jackson flex@ wrote:
 
  In the Flex 2 Developers Guide, it shows an example of how to 
 script a
  remote object as follows:
  
  employeeRO = new RemoteObject();
  employeeRO.destination = SalaryManager;
  employeeRO.getList.addEventListener
(result,getListResultHandler);
  employeeRO.addEventListener(fault, faultHandler);
  employeeRO.getList(deptComboBox.selectedItem.data);
  
  Does anyone know how to do the same thing but implement it so the 
 method
  name is variable? Like this:
  
  var methodName:String = getList;
  employeeRO = new RemoteObject();
  employeeRO.destination = SalaryManager;
  employeeRO[methodName].addEventListener
  employeeRO.addEventListener(fault, faultHandler);
  employeeRO[methodName].(deptComboBox.selectedItem.data);
  
  It fails on the sixth line here (the second variable call) with 
 this error:
  
  Error #1006: value is not a function.
  
  It appears the first attempt correctly creates the
  mx.rpc.remoting::Operation object, but when you attempt to 
actually 
 run the
  service method it fails. Any ideas?
 





Re: [flexcoders] More Mac licensing issues: [WAS:: Max OS X Flex Builder 2.01 License Issue - still waiting

2007-02-07 Thread Paul Andrews

  - Original Message - 
  From: Shannon Hicks 
  To: flexcoders@yahoogroups.com 
  Sent: Tuesday, February 06, 2007 5:24 PM
  Subject: Re: [flexcoders] More Mac licensing issues: [WAS:: Max OS X Flex 
Builder 2.01 License Issue - still waiting


  And you can't run the same license of Flex Builder on two windows computers, 
either... One license per computer, what does it matter that one's a PC and the 
other's a Mac?

I think not.

From the licence:.

3.4  Portable or Home Computer Use.  The primary user of the Computer on which 
the Software is installed may install a second copy of the Software for his or 
her exclusive use on either a portable Computer or a Computer located at his or 
her home, provided the Software on the portable or home Computer is not used at 
the same time as the Software on the primary Computer.

Paul
  Shan


  snip

[flexcoders] Object.addEventListener vs.. adding them inline via MXML

2007-02-07 Thread Mike Anderson
Hello All,

I have a problem, and maybe I am overlooking something here...

What I need to do, is attach multiple functions, to an Event for a
particular Component.

Using inline MXML, this is easy - you just separate out each function,
with a semi-colon and list them one after another.

BUT, I am trying NOT to put my functions within the MXML - I am using
Code-Behind, and I need to add my Event Listeners within the
ActionScript - using the Object.addEventListener() method.

Thing is, how do I add several functions using this type of methodology?
Or can it even be done?

Thanks in advance for any help you can offer regarding this,

Mike


Re: [flexcoders] Poor man's PUSH technology (aka reload data using timer)

2007-02-07 Thread Shannon Hicks
You don't necessarily need FDS for push technology. You should read up 
on the XML Socket.


Shan

oneproofdk wrote:


I am building a internal app for my company, where we would eventually
pursue FDS for it's push capabilities - updating the users view when
backend data changes.

Until then, I'm thinking about making a function that will get
triggered by a timer, e.g. every 60 seconds, it should retrieve data
from the server and then compare it to the data currently displayed in
the app [Binded]. Then if data has changed, it should update the
specific data in the ArrayCollection.

Any pointers to how I could accomplish this ?

Im thinking a function dataTimer that would call a function
getData, that function would then compare each row in the dataset to
the data currently in memory in the app. If there's a difference, it
would update the data OR completely replace the currently used
dataset. (only I guess that would make the app flicker?)

Any help is greatly appreciated.

Thanks,
Mark

 




Re: [flexcoders] More Mac licensing issues: [WAS:: Max OS X Flex Builder 2.01 License Issue - still waiting

2007-02-07 Thread Shannon Hicks

Well, I stand corrected. I'd like my dual-OS license now :)

Shan

Paul Andrews wrote:


 


- Original Message -
*From:* Shannon Hicks mailto:[EMAIL PROTECTED]
*To:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
*Sent:* Tuesday, February 06, 2007 5:24 PM
*Subject:* Re: [flexcoders] More Mac licensing issues: [WAS:: Max
OS X Flex Builder 2.01 License Issue - still waiting

And you can't run the same license of Flex Builder on two windows
computers, either... One license per computer, what does it matter
that one's a PC and the other's a Mac?
 


I think not.
 
From the licence:.
 
3.4  Portable or Home Computer Use.  The primary user of the Computer 
on which the Software is installed may install a second copy of the 
Software for his or her exclusive use on either a portable Computer or 
a Computer located at his or her home, provided the Software on the 
portable or home Computer is not used at the same time as the Software 
on the primary Computer.
 
Paul


Shan

snip

 




Re: [flexcoders] Load Flex app (swf) into Flash App

2007-02-07 Thread Greg Hesla
I've thought about this some more - would it be possible to flip this  
around and build my containers in Flex and load our old Flash SWFs in  
them?


This leads me to another question - how would these dynamically- 
loaded swf files communicate with their container Flex swf files? In  
Flash, I was able to use the _parent pronoun from within the child,  
and the instance name of the movieclip from the parent to send data,  
call functions, etc.


Thanks,
~greg

On Feb 6, 2007, at 4:18 PM, Greg Hesla wrote:


I was afraid of that. Thanks very much for your quick response.


~g

On Feb 6, 2007, at 3:49 PM, Tracy Spratt wrote:



No, because the Flash will be ver 8, AS2, and cannot contain the  
AS3 virtual machine needed for FP 9.




Tracy



From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of Greg Hesla

Sent: Tuesday, February 06, 2007 3:28 PM
To: Flex Coders
Subject: [flexcoders] Load Flex app (swf) into Flash App



Is it possible to load a Flex-based swf file into a Flash movie using
loadMovie()?

We are trying to migrate from Flash / Remoting to Flex. We have
several container movies which load smaller movies that the user
interacts with.

Thanks in advance,
Greg











[flexcoders] Secure .Net Web Services and Flex 2

2007-02-07 Thread Nick Collins
I'm looking at communicating with our internal .Net web services with
Flex 2 but I need it to be secure.  Our .Net developers are saying
that I need to be able to pass a username and password to the server
for it to do the Windows authentication but I don't see how I would do
that with the WebService tag.

Does anyone here have any experience in communicating securely with
.Net webservices? What are your recommendations/suggestions?


[flexcoders] Re: Object.addEventListener vs.. adding them inline via MXML

2007-02-07 Thread dougmccune
You can make as many calls to addEventListener as you want. So you can
add 2 or more event listeners that get triggered for the same event.

So something like:
myButton.addEventListener(MouseEvent.CLICK, myFunction1);
myButton.addEventListener(MouseEvent.CLICK, myFunction2);
myButton.addEventListener(MouseEvent.CLICK, myFunction3);

All three of the above functions would get called when the event
triggers. You can remove each of these separately as well by using
removeEventListener and specifying the particular function you want
removed.

Doug


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

 Hello All,
 
 I have a problem, and maybe I am overlooking something here...
 
 What I need to do, is attach multiple functions, to an Event for a
 particular Component.
 
 Using inline MXML, this is easy - you just separate out each function,
 with a semi-colon and list them one after another.
 
 BUT, I am trying NOT to put my functions within the MXML - I am using
 Code-Behind, and I need to add my Event Listeners within the
 ActionScript - using the Object.addEventListener() method.
 
 Thing is, how do I add several functions using this type of methodology?
 Or can it even be done?
 
 Thanks in advance for any help you can offer regarding this,
 
 Mike





[flexcoders] Re: Returning 'this' from an overridden method?

2007-02-07 Thread dougmccune
Just from first glance I'd suggest not following the design pattern of
returning the object from the function like you're doing. It seems
like the only reason you're doing it is to make it so you can write a
bunch of statements all on one line. In terms of someone else reading
your code, I think it would make a lot more sense if they saw this:

camera.move(10, 12);
camera.rotateX(45);
camera.rotateY(90);

It turns 1 line into 3 lines, but I think it's far less confusing and
this follows the same design pattern that most other Actionscript
classes follow. Methods like move, rotate, etc are used often in
various classes and usually they do what they're supposed to do and
return void. In my experience I've never really seen an OOP class that
returns itself very much.

So that's not a direct answer to your question, merely a coding
suggestion.

Doug


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

 Please pardon this simple-minded question from an AS3 novice.
 
 My base class often returns 'this' from methods which makes it 
 convenient to write code like:
 
   camera.move( 10, 12 ).rotateX( 45 ).rotateY( 90 );
 
 The problem comes when code extends the base class and overrides one 
 of these functions.  The compiler insists, correctly, that the return 
 type of an overriding function must match the one in the base class.  
 What I want to do is return the 'this' object that is of the type of 
 the derived class.  Is this possible?
 
 The following is a contrived example to demonstrate.  It won't 
 compile because the overridden function in the derived class wants to 
 return a type of MyCamera rather than Camera:
 
 
 public class Camera
   {
   var x:int = 0;
   var y:int = 0;
 
   public function move( x:int, y:int ) :Camera
 {
 this.x += x;
 this.y += y;
 
 return( this );
 }  
   }
 
 public class MyCamera extends Camera
   {
   override public function move( x:int, y:int ) :MyCamera
 {
 super.move( x, y ); 
 
 if( x  0 )  x = 0;
 if( y  0 )  y = 0;
 
 return( this );
 } 
   }





RE: [flexcoders] Load Flex app (swf) into Flash App

2007-02-07 Thread Andrew Trice
Yes, you can do that.  You can communicate between the embedded Flash 8
and Flex (Flash 9) swf files using the localConnection object.  More
info can be found at: 

 

http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=749eaa47

 

Hope that helps,

-Andy

 

_

Andrew Trice

Cynergy Systems, Inc.

http://www.cynergysystems.com

 

Blog: http://www.cynergysystems.com/blogs/page/andrewtrice

Email: [EMAIL PROTECTED]

Office: 866-CYNERGY 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Greg Hesla
Sent: Wednesday, February 07, 2007 10:09 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Load Flex app (swf) into Flash App

 

I've thought about this some more - would it be possible to flip this
around and build my containers in Flex and load our old Flash SWFs in
them? 

 

This leads me to another question - how would these dynamically-loaded
swf files communicate with their container Flex swf files? In Flash, I
was able to use the _parent pronoun from within the child, and the
instance name of the movieclip from the parent to send data, call
functions, etc.

 

Thanks,

~greg

 

On Feb 6, 2007, at 4:18 PM, Greg Hesla wrote:





I was afraid of that. Thanks very much for your quick response.

 

~g

 

On Feb 6, 2007, at 3:49 PM, Tracy Spratt wrote:





 

No, because the Flash will be ver 8, AS2, and cannot contain the AS3
virtual machine needed for FP 9. 

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Greg Hesla
Sent: Tuesday, February 06, 2007 3:28 PM
To: Flex Coders
Subject: [flexcoders] Load Flex app (swf) into Flash App

 

Is it possible to load a Flex-based swf file into a Flash movie using 
loadMovie()?

We are trying to migrate from Flash / Remoting to Flex. We have 
several container movies which load smaller movies that the user 
interacts with.

Thanks in advance,
Greg

 

 

 

 

 

 



[flexcoders] Re: java.lang.Runtime complete message?

2007-02-07 Thread Doug Lowder

This is due to the way Runtime.exec() works in Java.  There's a good
article about it here:

   http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

I'm not a ColdFusion programmer, so unfortunately I don't have any tips
on how to incorporate this into CF.

HTH,

Doug


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

 I'm looking at java's waitFor(). When I use it in a CFC though, I
 think its just looping forever.

 Here's what I have so far:

 cfset var myObject = createObject
 (java, java.lang.Runtime).getRuntime()
 cfset startProcess = myObject.exec(someSoftware.exe)
 cfset checkProcess = myObject.waitFor()
 cfreturn checkProcess

 When running this cffunction as a WebService from Flex2, it leaves a
 never ending busy cursor. If I remove checkProcess and return
 startProcess instead, I have some kind of java string - a thread
 identifier or something? i.e.:

 [EMAIL PROTECTED]

 Its really quite simple - I don't know enough about java to make this
 happen and the Java reference perplexes me when in-context with
 Coldfusion. Any help is appreciated.





RE: [flexcoders] Intellectual property or licensing of posted/blogged work

2007-02-07 Thread Ely Greenfield
 
 
Since it was partially some of my code that kicked off this
discussion...
 
In general, almost everything published on my blog is published under
the MIT open source license, which was included earlier in this thread.
Very occasionally, I'll publish something that's not available for use.
I try and be explicit about it, but if you're looking to use something
from quietlyscheming and you can't find a license in the source, or a
description of the licensing on the page where I posted it, it's
probably best to just leave a comment or send me an email asking about
it.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Daniel Freiman
Sent: Tuesday, February 06, 2007 1:08 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Intellectual property or licensing of
posted/blogged work



I will now pass myself off as a legal expert despite the fact that I
haven't attended law school...so anyone with authority should overrule
my opinion.

Generally speaking, if the owner (which is usually the author) publishes
the code on the web, then you are allowed to look at it.  They showed it
to the public, the public gets to see it.  (It's the same theory that
while a billboard is still copyrighted, you can't tell people not to
look at it.)  You can even tell other people about it and where it is
(although you can't necessarily give them a copy yourself). 

As far as using it in your own projects, that depends entirely on the
license.  Sorry, there is no standard.  However, many blogs and most
adobe products/solutions/projects (including many you mentioned) are
pretty explicit on what you can do.  I assume if you publish things on
this list then you're ok with people using them as they see fit, but
that's a personal assumption, not a legal one.  Maybe there was
something in the signup that i missed which said this list is in the
public domain, but I don't remember it. 

- Dan


On 2/6/07, engkee [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  wrote:


I have to commend you all for posting a lot of wonderful
components 
and extensions to Flex... eg. Ely's calendar, Doug and Jason's
tab 
navigator extensions, Ben and Trey's reflection effect, Alex's 
distortion effect, just to name a few.

Unfortunately, in these day and age, I would have to ask... am I

allowed to incorporate those wonderful works in commercial
products?
Am I even allowed to look at the source code, if I work for a
company 
producing commercial software, without violating some IP issues.

Most of them are not explicitly associated with any specific 
licensing terms.

Sure would be nice if there could be some standard practice of 
associating these works with a common license, eg. the Creative 
Commons (http://creativecommons.org/licenses/by/2.5/
http://creativecommons.org/licenses/by/2.5/ )

Maybe there already is some presumed license or disclaimer 
for published works. If so, please send a pointer.

Just a thought.

-Engkee






 


RE: [flexcoders] Re: Object.addEventListener vs.. adding them inline via MXML

2007-02-07 Thread Mike Anderson
Hey Doug,

Well, that's simple enough.  Probably so simple, that I simply
overlooked doing it that way.

Real quick, would it be possible to also do it this way?

Object.addEventListener( click, [funct1, funct2, funct3] );

I know I could just try it, but from a methodology point of view, it
would be nice to know if this was a valid way to do it.

Thanks!

Mike

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dougmccune
Sent: Wednesday, February 07, 2007 10:10 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Object.addEventListener vs.. adding them
inline via MXML

You can make as many calls to addEventListener as you want. So you can
add 2 or more event listeners that get triggered for the same event.

So something like:
myButton.addEventListener(MouseEvent.CLICK, myFunction1);
myButton.addEventListener(MouseEvent.CLICK, myFunction2);
myButton.addEventListener(MouseEvent.CLICK, myFunction3);

All three of the above functions would get called when the event
triggers. You can remove each of these separately as well by using
removeEventListener and specifying the particular function you want
removed.

Doug


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

 Hello All,
 
 I have a problem, and maybe I am overlooking something here...
 
 What I need to do, is attach multiple functions, to an Event for a 
 particular Component.
 
 Using inline MXML, this is easy - you just separate out each function,

 with a semi-colon and list them one after another.
 
 BUT, I am trying NOT to put my functions within the MXML - I am using 
 Code-Behind, and I need to add my Event Listeners within the 
 ActionScript - using the Object.addEventListener() method.
 
 Thing is, how do I add several functions using this type of
methodology?
 Or can it even be done?
 
 Thanks in advance for any help you can offer regarding this,
 
 Mike





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links





Re: [flexcoders] Re: Object.addEventListener vs.. adding them inline via MXML

2007-02-07 Thread Michael Schmalle

Object.addEventListener( click, [funct1, funct2, funct3] );


No,

1. as3 is strongly typed which means the method expects a function when it
is getting an array.
2. addEventListener wouldn't even know what to do with an array.

You could, if you had your own subclass override addEventListener to do that
but, you could also just create a stack of functions in an array if they
were all going to the same event and loop through them to save code lines.

It's personal choice when you get to this point.

Peace, Mike

On 2/7/07, Mike Anderson [EMAIL PROTECTED] wrote:


  Hey Doug,

Well, that's simple enough. Probably so simple, that I simply
overlooked doing it that way.

Real quick, would it be possible to also do it this way?

Object.addEventListener( click, [funct1, funct2, funct3] );

I know I could just try it, but from a methodology point of view, it
would be nice to know if this was a valid way to do it.

Thanks!

Mike


-Original Message-
From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
Behalf Of dougmccune
Sent: Wednesday, February 07, 2007 10:10 AM
To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
Subject: [flexcoders] Re: Object.addEventListener vs.. adding them
inline via MXML

You can make as many calls to addEventListener as you want. So you can
add 2 or more event listeners that get triggered for the same event.

So something like:
myButton.addEventListener(MouseEvent.CLICK, myFunction1);
myButton.addEventListener(MouseEvent.CLICK, myFunction2);
myButton.addEventListener(MouseEvent.CLICK, myFunction3);

All three of the above functions would get called when the event
triggers. You can remove each of these separately as well by using
removeEventListener and specifying the particular function you want
removed.

Doug

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Mike
Anderson [EMAIL PROTECTED] wrote:

 Hello All,

 I have a problem, and maybe I am overlooking something here...

 What I need to do, is attach multiple functions, to an Event for a
 particular Component.

 Using inline MXML, this is easy - you just separate out each function,

 with a semi-colon and list them one after another.

 BUT, I am trying NOT to put my functions within the MXML - I am using
 Code-Behind, and I need to add my Event Listeners within the
 ActionScript - using the Object.addEventListener() method.

 Thing is, how do I add several functions using this type of
methodology?
 Or can it even be done?

 Thanks in advance for any help you can offer regarding this,

 Mike


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links

 





--
Teoti Graphix
http://www.teotigraphix.com

Blog - Flex2Components
http://www.flex2components.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: Object.addEventListener vs.. adding them inline via MXML

2007-02-07 Thread Doug McCune
Nope, I think the second parameter must be a function, trying to pass an 
array of functions should fail.


Also, just a note: it's better practice to not use the string of the 
event listener like click but rather the variable like 
MouseEvent.CLICK. They really do the exact same thing in practice, but 
it's possible that within MouseEvent the click event could be renamed in 
a future release to something like mouseClick and then your code 
wouldn't work.


Doug


Mike Anderson wrote:


Hey Doug,

Well, that's simple enough. Probably so simple, that I simply
overlooked doing it that way.

Real quick, would it be possible to also do it this way?

Object.addEventListener( click, [funct1, funct2, funct3] );

I know I could just try it, but from a methodology point of view, it
would be nice to know if this was a valid way to do it.

Thanks!

Mike

-Original Message-
From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
mailto:flexcoders%40yahoogroups.com] On

Behalf Of dougmccune
Sent: Wednesday, February 07, 2007 10:10 AM
To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
Subject: [flexcoders] Re: Object.addEventListener vs.. adding them
inline via MXML

You can make as many calls to addEventListener as you want. So you can
add 2 or more event listeners that get triggered for the same event.

So something like:
myButton.addEventListener(MouseEvent.CLICK, myFunction1);
myButton.addEventListener(MouseEvent.CLICK, myFunction2);
myButton.addEventListener(MouseEvent.CLICK, myFunction3);

All three of the above functions would get called when the event
triggers. You can remove each of these separately as well by using
removeEventListener and specifying the particular function you want
removed.

Doug

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


 Hello All,

 I have a problem, and maybe I am overlooking something here...

 What I need to do, is attach multiple functions, to an Event for a
 particular Component.

 Using inline MXML, this is easy - you just separate out each function,

 with a semi-colon and list them one after another.

 BUT, I am trying NOT to put my functions within the MXML - I am using
 Code-Behind, and I need to add my Event Listeners within the
 ActionScript - using the Object.addEventListener() method.

 Thing is, how do I add several functions using this type of
methodology?
 Or can it even be done?

 Thanks in advance for any help you can offer regarding this,

 Mike


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
http://www.mail-archive.com/flexcoders%40yahoogroups.com

Yahoo! Groups Links

 




[flexcoders] Validator: disable active validator

2007-02-07 Thread fritzdimmel
Hi!
I've a form with many controls (TextInputs, ...) to validate.
Everything works fine but I can't figure out, how to accomplish this:
I have, let's say, a TextInput, and the validation for this returns
false. The textinput gets a red border.
Now I want to have a possibility to disable the validator temporarliy.
So that the red border disappears until I'm re-enabling the validator.

How can I do this?
By setting Validator.enabled to false the red border (+ the error
message) still exists.

Thanks for any hints!

Fritz



RE: [flexcoders] Re: Tutorial zoom in a linechart

2007-02-07 Thread Ely Greenfield
 
 
Hi Graham. That would work just fine.  It forces the chart to do some
extra work, b/c it still has to process those out of bounds data values
far enough to decide they're out of bounds.  So be alert for performance
issues. But other than that, it should work fine.
 
Ely.
 
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of g_odds
Sent: Wednesday, February 07, 2007 1:04 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Tutorial zoom in a linechart



Everywhere seems to use the slicing the data set style approach. Why
would one not set the minimum and maximum of an axis to do this?

Graham

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

 As Mikhail pointed out, if by zoom you mean changing the range
shown along
 the horizontal axis, this example should help. Just right click to
view the
 source:
 
 http://examples.adobe.com/flex2/inproduct/sdk/dashboard/dashboard.html
http://examples.adobe.com/flex2/inproduct/sdk/dashboard/dashboard.html

 
 Brendan
 
 
 On 2/7/07, Mikhail Shevchuk [EMAIL PROTECTED] wrote:
 
  I suppose that it is not difficult to implement. During zooming,
just
  store smaller (zoomed area, relatively to the whole chart) array
collection
  and change a dataprovider for the component.
 
  2007/2/7, bcncgn3 [EMAIL PROTECTED]:
  
   I have linechart and i want that the user can zoom in in the
   horizontal
   axis selecting an area on the chart? Someone knows a tutorial
which
   explains how to program this?
  
  
 
 
  --
  A vivid and creative mind characterizes you.
 
  
 
 
 
 
 -- 
 Brendan Meutzner
 Stretch Media - RIA Adobe Flex Development
 [EMAIL PROTECTED]
 http://www.stretchmedia.ca http://www.stretchmedia.ca 




 


[flexcoders] Re: Validator: disable active validator

2007-02-07 Thread maunger
Hey Fritz, what's the 'timing' on this?

I mean, under what conditions do you want to disable the validation?

Mitch

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

 Hi!
 I've a form with many controls (TextInputs, ...) to validate.
 Everything works fine but I can't figure out, how to accomplish this:
 I have, let's say, a TextInput, and the validation for this returns
 false. The textinput gets a red border.
 Now I want to have a possibility to disable the validator temporarliy.
 So that the red border disappears until I'm re-enabling the validator.
 
 How can I do this?
 By setting Validator.enabled to false the red border (+ the error
 message) still exists.
 
 Thanks for any hints!
 
 Fritz





[flexcoders] Re: Serious Bug in HistoryManager (introduced in latest release?)

2007-02-07 Thread zenwarden
I can't test the fix because I cannot replicate the bug. It has
mysteriously vanished...The next time I see it, I will try the
suggested fix and report back.

Also sorry if I ranted in my last post. Just don't like to see any
problems with my new favorite technology.



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

 I will give it a try.
 
 One question and one comment:
 
 Question: Did you actually mean drag manager or did you mean History
 manager? (I'll try both sperately).
 
 Commnet: I've been a virtual evenagilist for flex at the company I
 work for; I am very impressed with product and love using it. But this
 does make me a bit nervous. I'm also really hoping that what you are
 sayimg about singletons is not true. Singletons should never be used 
 liberally like this. It's a lazy solution to resource mamnagemnt
 issues. The whole point of design patterns is (in my humble opinion)
 to solve an EXISTING problem. You don't use a singlton because you
 can, or because it's neat or even because you think it will be
 effecient or cleaner --- you use a sington (and any pattern) after
 you've identified a problem.
 
 The flex team needs to stop reading design pattern book.
 
 To sum up: you can always tell what chapter in gang of four a coder is
 reading, its the pattern they are sticking into all their code :) 
 
 
 
  
 
 
 
 
 --- In flexcoders@yahoogroups.com, Bjorn Schultheiss
 bjorn.schultheiss@ wrote:
 
  Here's a reply i got from one of the engineers, Alex Harai on what  
  could be a related issue.
  
  
  This error occurs for two reasons:  One is that somehow, the  
  DragManager or DragManagerImpl is not linked into the movie.
  
  The other, and more common reason is that more than one module is  
  using the DragManager, but the main application does not..  Modules  
  operate in their own application domain, and thus cannot share  
  singletons unless that singleton is loaded by the parent application  
  domain.  The simple solution is to link the DragManager into the
main  
  application by putting something like this in a script block
  
  import mx.managers.DragManager;
  
  var dm:DragManager;
  
  This fattens your application a little.  More complex solutions  
  involve loading the DragManager into the main application's  
  application domain.
  
  The above is true for all managers handled by Singleton and lots of  
  other shared classes in Flex as well.
  
  
  
  
  
  
  
  
  On 06/02/2007, at 11:49 AM, zenwarden wrote:
  
   I am seeing this mostly when I run unit test using the flexunit.swf.
   And I am consistantly seeing it in that situation
  
   I do occasionaly see it when running a single-swf app through the
   builder (However it is making a connection to a server when it  
   occurs).
  
   Chris W
  
   --- In flexcoders@yahoogroups.com, Bjorn Schultheiss
   bjorn.schultheiss@ wrote:
   
does your app use modules, or built using multiple swfs?
   
   
On 06/02/2007, at 5:49 AM, zenwarden wrote:
   
 There appears to be a failry serious bug that I think was  
   introduced
 in the history manager in the latest release 2.0.1

 I never got this errro until I updated and I now see it in a  
   variety
 of situations (including whenever I run testcases. )

 Shutting down the borwoser or even switching borwsers does NOT  
   help. I
 mostly see it when I am running from the flex builder, but
when  
   you
 are trying to run tests -- this becomes failry serious and
very  
   time
 consuming.

   
  
  
  
 





[flexcoders] design area - no scrollbars

2007-02-07 Thread kovalenkojane
Hello,

I have quite a large design that doesn't fit into the the design area.
Unfortunetly there are no scrollbars for me to look at the whole area.

Doesn anyone have the same problem?
How do you fix it?

Thanks



Re: [flexcoders] Re: Object.addEventListener vs.. adding them inline via MXML

2007-02-07 Thread Michael Schmalle

could be renamed in a future release to something like mouseClick and

then your code wouldn't work.

Or even worse, you write cllck, and then for days even months, you think
your app isn't working or 'works' a certain way. Come to find out the event
wasn't even getting captured. :)

This is plain ole preventative maintainence.

That is the worse case for me, renaming events is small potatoes to that
error. ;-)

Peace, Mike

On 2/7/07, Doug McCune [EMAIL PROTECTED] wrote:


   Nope, I think the second parameter must be a function, trying to pass
an array of functions should fail.

Also, just a note: it's better practice to not use the string of the event
listener like click but rather the variable like MouseEvent.CLICK. They
really do the exact same thing in practice, but it's possible that within
MouseEvent the click event could be renamed in a future release to something
like mouseClick and then your code wouldn't work.

Doug



Mike Anderson wrote:

 Hey Doug,

Well, that's simple enough. Probably so simple, that I simply
overlooked doing it that way.

Real quick, would it be possible to also do it this way?

Object.addEventListener( click, [funct1, funct2, funct3] );

I know I could just try it, but from a methodology point of view, it
would be nice to know if this was a valid way to do it.

Thanks!

Mike

-Original Message-
From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
Behalf Of dougmccune
Sent: Wednesday, February 07, 2007 10:10 AM
To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
Subject: [flexcoders] Re: Object.addEventListener vs.. adding them
inline via MXML

You can make as many calls to addEventListener as you want. So you can
add 2 or more event listeners that get triggered for the same event.

So something like:
myButton.addEventListener(MouseEvent.CLICK, myFunction1);
myButton.addEventListener(MouseEvent.CLICK, myFunction2);
myButton.addEventListener(MouseEvent.CLICK, myFunction3);

All three of the above functions would get called when the event
triggers. You can remove each of these separately as well by using
removeEventListener and specifying the particular function you want
removed.

Doug

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Mike
Anderson [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Hello All,

 I have a problem, and maybe I am overlooking something here...

 What I need to do, is attach multiple functions, to an Event for a
 particular Component.

 Using inline MXML, this is easy - you just separate out each function,

 with a semi-colon and list them one after another.

 BUT, I am trying NOT to put my functions within the MXML - I am using
 Code-Behind, and I need to add my Event Listeners within the
 ActionScript - using the Object.addEventListener() method.

 Thing is, how do I add several functions using this type of
methodology?
 Or can it even be done?

 Thanks in advance for any help you can offer regarding this,

 Mike


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links


 





--
Teoti Graphix
http://www.teotigraphix.com

Blog - Flex2Components
http://www.flex2components.com

You can find more by solving the problem then by 'asking the question'.


RE: [flexcoders] View State - How to call a function on a custom component???

2007-02-07 Thread Sho Kuwamoto
I don't believe there is a way to do this.
 
Is your function something that you could turn into a setter?
 
-Sho
 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of paulwelling
Sent: Wednesday, February 07, 2007 6:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] View State - How to call a function on a
custom component???



Hello,

I would like to be able to call a function on a custom component
when
adding a child to a View State.

There is a setProperty tag. Any way of call a function on that
component from within the AddChild tag of a View State???

Thanks,
Paul



 



[flexcoders] 2nd datagrid - no headers, wrong size

2007-02-07 Thread Mike_Robinson_98
I've been spending a lot of time trying to overcome this issue without
any success. Hopefully someone out there has a suggestion.

I have datagrid within a vbox in a component. The grid takes up as
much space as is available (height='100%').

There is another state which does the following:
1) reduces the height of the 1st datagrid to a fixed value (344)
2) adds a 2nd datagrid (height='124') into the vbox as the lastchild.

The problem is when the state gets switched and the 2nd datagrid gets
added..
1) the headers are missing
2) the requested size is not honored

When looking at the state in design mode, the headers are present and
the size of the 2nd grid is correct.

Has anyone run into issues similar to this? Any resolutions? The code
is rather long, but I will post it if anyone is interested.

Thanks



RE: [flexcoders] Returning 'this' from an overridden method?

2007-02-07 Thread Sho Kuwamoto
The short answer is that there is no way to do what you want for the
time being. 
 
What you are looking for is a language feature called covariant return
types. In certain languages (C++, Java) you can have your subclass
redefine the type that is returned by a method.
 
This would be a great thing to get into the AS language, but it is not
there now. There are further wrinkles when you consider how you would
extend properties in a similar way (I wrote about the issues at
http://kuwamoto.org/2007/01/22/covariant-property-types/).
 
 
Cheers,
 
-Sho




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of David_Stafford
Sent: Tuesday, February 06, 2007 6:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Returning 'this' from an overridden
method?




Please pardon this simple-minded question from an AS3 novice.

My base class often returns 'this' from methods which makes it 
convenient to write code like:

camera.move( 10, 12 ).rotateX( 45 ).rotateY( 90 );

The problem comes when code extends the base class and overrides
one 
of these functions. The compiler insists, correctly, that the
return 
type of an overriding function must match the one in the base
class. 
What I want to do is return the 'this' object that is of the
type of 
the derived class. Is this possible?

The following is a contrived example to demonstrate. It won't 
compile because the overridden function in the derived class
wants to 
return a type of MyCamera rather than Camera:

public class Camera
{
var x:int = 0;
var y:int = 0;

public function move( x:int, y:int ) :Camera
{
this.x += x;
this.y += y;

return( this );
} 
}

public class MyCamera extends Camera
{
override public function move( x:int, y:int ) :MyCamera
{
super.move( x, y ); 

if( x  0 ) x = 0;
if( y  0 ) y = 0;

return( this );
} 
}



 



Re: [flexcoders] Returning 'this' from an overridden method?

2007-02-07 Thread Ralf Bokelberg

Nice to know the name of this feature.
Just lately somebody asked me the same question.
He also came from a Java background.
Any chance we will see it in the future?

Cheers,
Ralf.

On 2/7/07, Sho Kuwamoto [EMAIL PROTECTED] wrote:


   The short answer is that there is no way to do what you want for the
time being.

What you are looking for is a language feature called covariant return
types. In certain languages (C++, Java) you can have your subclass redefine
the type that is returned by a method.

This would be a great thing to get into the AS language, but it is not
there now. There are further wrinkles when you consider how you would extend
properties in a similar way (I wrote about the issues at
http://kuwamoto.org/2007/01/22/covariant-property-types/).


Cheers,

-Sho

 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *David_Stafford
*Sent:* Tuesday, February 06, 2007 6:13 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Returning 'this' from an overridden method?

 Please pardon this simple-minded question from an AS3 novice.

My base class often returns 'this' from methods which makes it
convenient to write code like:

camera.move( 10, 12 ).rotateX( 45 ).rotateY( 90 );

The problem comes when code extends the base class and overrides one
of these functions. The compiler insists, correctly, that the return
type of an overriding function must match the one in the base class.
What I want to do is return the 'this' object that is of the type of
the derived class. Is this possible?

The following is a contrived example to demonstrate. It won't
compile because the overridden function in the derived class wants to
return a type of MyCamera rather than Camera:

public class Camera
{
var x:int = 0;
var y:int = 0;

public function move( x:int, y:int ) :Camera
{
this.x += x;
this.y += y;

return( this );
}
}

public class MyCamera extends Camera
{
override public function move( x:int, y:int ) :MyCamera
{
super.move( x, y );

if( x  0 ) x = 0;
if( y  0 ) y = 0;

return( this );
}
}

 





--
Ralf Bokelberg [EMAIL PROTECTED]
Flex  Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35


Re: [flexcoders] Re: Object.addEventListener vs.. adding them inline via MXML

2007-02-07 Thread Doug McCune

Mike,
Looks like you're speaking from personal experience :)
From now on I'll make my custom components dispatch click and cilck 
and cllck and clik etc etc. The google suggest approach to event 
dispatching.


Doug

Michael Schmalle wrote:


 could be renamed in a future release to something like mouseClick 
and then your code wouldn't work.


Or even worse, you write cllck, and then for days even months, you 
think your app isn't working or 'works' a certain way. Come to find 
out the event wasn't even getting captured. :)


This is plain ole preventative maintainence.

That is the worse case for me, renaming events is small potatoes to 
that error. ;-)


Peace, Mike

On 2/7/07, * Doug McCune* [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


Nope, I think the second parameter must be a function, trying to
pass an array of functions should fail.

Also, just a note: it's better practice to not use the string of
the event listener like click but rather the variable like
MouseEvent.CLICK. They really do the exact same thing in practice,
but it's possible that within MouseEvent the click event could be
renamed in a future release to something like mouseClick and
then your code wouldn't work.

Doug




Mike Anderson wrote:


Hey Doug,

Well, that's simple enough. Probably so simple, that I simply
overlooked doing it that way.

Real quick, would it be possible to also do it this way?

Object.addEventListener( click, [funct1, funct2, funct3] );

I know I could just try it, but from a methodology point of view, it
would be nice to know if this was a valid way to do it.

Thanks!

Mike

-Original Message-
From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com] On
Behalf Of dougmccune
Sent: Wednesday, February 07, 2007 10:10 AM
To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
Subject: [flexcoders] Re: Object.addEventListener vs.. adding them
inline via MXML

You can make as many calls to addEventListener as you want. So
you can
add 2 or more event listeners that get triggered for the same event.

So something like:
myButton.addEventListener(MouseEvent.CLICK, myFunction1);
myButton.addEventListener(MouseEvent.CLICK, myFunction2);
myButton.addEventListener(MouseEvent.CLICK, myFunction3);

All three of the above functions would get called when the event
triggers. You can remove each of these separately as well by using
removeEventListener and specifying the particular function you want
removed.

Doug

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

 Hello All,

 I have a problem, and maybe I am overlooking something here...

 What I need to do, is attach multiple functions, to an Event for a
 particular Component.

 Using inline MXML, this is easy - you just separate out each
function,

 with a semi-colon and list them one after another.

 BUT, I am trying NOT to put my functions within the MXML - I am
using
 Code-Behind, and I need to add my Event Listeners within the
 ActionScript - using the Object.addEventListener() method.

 Thing is, how do I add several functions using this type of
methodology?
 Or can it even be done?

 Thanks in advance for any help you can offer regarding this,

 Mike


--
Flexcoders Mailing List
FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links






--
Teoti Graphix
http://www.teotigraphix.com http://www.teotigraphix.com

Blog - Flex2Components
http://www.flex2components.com http://www.flex2components.com

You can find more by solving the problem then by 'asking the question'.
 




[flexcoders] RemoteObject over HTTPS / SSL

2007-02-07 Thread Piotrowski, John
I have been working on this for a few days and I am stuck.  I have an
application that is using the Cairngorm Framework and I create 2
RemoteObjects.  I got these RemoteObjects to work by relying on the
default services-config.xml file on the server (which I don't have
access to) and by simply creating a Basic Project in Flex Builder 2 with
no compiler options and defining the endpoint
(http://SERVER/flex2gateway), destination (ColdFusion), and source (dot
path to cfc).

 

Now here is my problem.  One of my RemoteObjects needs to be over SSL
since it is handling the authentication for the application while the
other one does not and we would like to access the application by just
going to the standard http address (I was using dummy data when logging
in before since it wasn't over HTTPS).  We achieved this in the Past in
Flex 1.5 by creating the RemoteObject with the Protocol attribute set to
https and it was working in 1.5.  Since Flex 2 no longer supports the
protocol attribute, I tried changing the endpoint to
https://SERVER/flex2gateway.  I build the project and then open the HTML
file (in IE) the compiler creates in the bin folder and I get an error
Send Failed, Channel.Connect.Failed error NetConnection.Call.Failed:
HTTP: Status 500.  I get this error when trying to load the html or SWF
directly over HTTP and HTTPS and also in Firefox.

 

So, a co-worker sent me this link
(http://www.simb.net/client/index.cfm/2007/2/2/How-I-create-a-Flex-Proje
ct-with-ColdFusion) where it says to use a local services-config.xml
file and add the compiler option.  So I got one of the server admins to
send me the file and I created libs/services-config.xml in my project
and added -services libs\services-config.xml to my compiler arguments.
I first tried the normal http remoteobject method and it works just like
before, then I changed the endpoint to https like I did before using the
server's config file and I get the same behavior as before.

 

Next, I read that I probably have to create a channel definition for the
SecureAMFChannel.  So edited the current AMF channel definition to read:


channel-definition id=cf-secure-amf
class=mx.messaging.channels.SecureAMFChannel

endpoint
uri=https://{server.name}:{server.port}{context.root}/flex2gateway/;
class=flex.messaging.endpoints.SecureAMFEndpoint/

  properties

add-no-cache-headersfalse/add-no-cache-headers

polling-enabledfalse/polling-enabled

serialization

  instantiate-typesfalse/instantiate-types

/serialization

  /properties

/channel-definition  

 

I also made sure to change the name in the channels tag in the
destination declaration of the xml file.  Then I changed the endpoint in
my remoteObject declaration to https://SERVER/flex2gateway and I still
get the NetConnection error when loading the app over both http and
https and in both IE and FF.  Again ideally, we want to have 2 channels
one over SSL and one standard, but I can't even get SSL only to work.

 

So at this point I am thinking there must be something on the Server
that needs to be changed but I am not sure what to tell the admins to do
and no one else at my work is ready to publish a Flex 2 so I am the
first person to attempt to solve the SSL problem.

 

Any thoughts and thanks,

John

 

 

 

** 

 John R. Piotrowski 

 Programmer Analyst 

 Wharton Computing 

 Email: [EMAIL PROTECTED]

**

 



Re: [flexcoders] Load Flex app (swf) into Flash App

2007-02-07 Thread Greg Hesla

Well, this should do the trick. Thanks much!

~g

On Feb 7, 2007, at 11:25 AM, Andrew Trice wrote:



Yes, you can do that.  You can communicate between the embedded  
Flash 8 and Flex (Flash 9) swf files using the localConnection  
object.  More info can be found at:




http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=749eaa47



Hope that helps,

-Andy



_

Andrew Trice

Cynergy Systems, Inc.

http://www.cynergysystems.com



Blog: http://www.cynergysystems.com/blogs/page/andrewtrice

Email: [EMAIL PROTECTED]

Office: 866-CYNERGY



From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of Greg Hesla

Sent: Wednesday, February 07, 2007 10:09 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Load Flex app (swf) into Flash App



I've thought about this some more - would it be possible to flip  
this around and build my containers in Flex and load our old Flash  
SWFs in them?




This leads me to another question - how would these dynamically- 
loaded swf files communicate with their container Flex swf files?  
In Flash, I was able to use the _parent pronoun from within the  
child, and the instance name of the movieclip from the parent to  
send data, call functions, etc.




Thanks,

~greg



On Feb 6, 2007, at 4:18 PM, Greg Hesla wrote:




I was afraid of that. Thanks very much for your quick response.



~g



On Feb 6, 2007, at 3:49 PM, Tracy Spratt wrote:






No, because the Flash will be ver 8, AS2, and cannot contain the  
AS3 virtual machine needed for FP 9.




Tracy



From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of Greg Hesla

Sent: Tuesday, February 06, 2007 3:28 PM
To: Flex Coders
Subject: [flexcoders] Load Flex app (swf) into Flash App



Is it possible to load a Flex-based swf file into a Flash movie using
loadMovie()?

We are trying to migrate from Flash / Remoting to Flex. We have
several container movies which load smaller movies that the user
interacts with.

Thanks in advance,
Greg


















[flexcoders] basic exception handling

2007-02-07 Thread dantmcgowan
All,
  When I am catching exceptions the catch seems to be ignored and the
actionscript error window pops up. For example if I have a simple
service like this:

mx:HTTPService
id=simpleService
url=http://example.com/someservice/;
useProxy=false
method=GET

And I have a try catch block like this with one statement inside. If I
comment out this statement no errors...so I know this statement is
causing the error:

   
try {
simpleService.send();
}
catch(errObject:Error) {
trace(Error +errObject.message);
}

The scenarios that throw errors (for example TypeError: Error #1034)
opens the actionscript error window and the trace does not appear.
What do I need to be doing so the exception is consumed in the catch
and no error window? Thanks,

Dan 



RE: [flexcoders] Returning 'this' from an overridden method?

2007-02-07 Thread Gordon Smith
That's up to the ECMAScxript committee. But since I think an Adobe
engineer chairs or co-chairs it, we have some influence.

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ralf Bokelberg
Sent: Wednesday, February 07, 2007 11:10 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Returning 'this' from an overridden method?

 

Nice to know the name of this feature. 
Just lately somebody asked me the same question. 
He also came from a Java background. 
Any chance we will see it in the future? 

Cheers,
Ralf. 

On 2/7/07, Sho Kuwamoto [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 wrote:

The short answer is that there is no way to do what you want for the
time being. 

 

What you are looking for is a language feature called covariant return
types. In certain languages (C++, Java) you can have your subclass
redefine the type that is returned by a method.

 

This would be a great thing to get into the AS language, but it is not
there now. There are further wrinkles when you consider how you would
extend properties in a similar way (I wrote about the issues at
http://kuwamoto.org/2007/01/22/covariant-property-types/
http://kuwamoto.org/2007/01/22/covariant-property-types/ ).

 

 

Cheers,

 

-Sho

 





From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com http://yahoogroups.com ] On Behalf
Of David_Stafford
Sent: Tuesday, February 06, 2007 6:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Returning 'this' from an overridden
method?



Please pardon this simple-minded question from an AS3 novice.

My base class often returns 'this' from methods which makes it 
convenient to write code like:

camera.move( 10, 12 ).rotateX( 45 ).rotateY( 90 );

The problem comes when code extends the base class and overrides
one 
of these functions. The compiler insists, correctly, that the
return 
type of an overriding function must match the one in the base
class. 
What I want to do is return the 'this' object that is of the
type of 
the derived class. Is this possible?

The following is a contrived example to demonstrate. It won't 
compile because the overridden function in the derived class
wants to 
return a type of MyCamera rather than Camera:

public class Camera
{
var x:int = 0;
var y:int = 0;

public function move( x:int, y:int ) :Camera
{
this.x += x;
this.y += y;

return( this );
} 
}

public class MyCamera extends Camera
{
override public function move( x:int, y:int ) :MyCamera
{
super.move( x, y ); 

if( x  0 ) x = 0;
if( y  0 ) y = 0;

return( this );
} 
}




-- 
Ralf Bokelberg [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 
Flex  Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35 

 



Re: [flexcoders] basic exception handling

2007-02-07 Thread Clint Tredway

there is a fault attribute of the HTTPService tag that you can set to a
function. that will catch any faults from the call.

On 2/7/07, dantmcgowan [EMAIL PROTECTED] wrote:


  All,
When I am catching exceptions the catch seems to be ignored and the
actionscript error window pops up. For example if I have a simple
service like this:

mx:HTTPService
id=simpleService
url=http://example.com/someservice/;
useProxy=false
method=GET

And I have a try catch block like this with one statement inside. If I
comment out this statement no errors...so I know this statement is
causing the error:

try {
simpleService.send();
}
catch(errObject:Error) {
trace(Error +errObject.message);
}

The scenarios that throw errors (for example TypeError: Error #1034)
opens the actionscript error window and the trace does not appear.
What do I need to be doing so the exception is consumed in the catch
and no error window? Thanks,

Dan

 





--
http://indeegrumpee.spaces.live.com/


[flexcoders] WARNING: css type selectors are not supported in components?

2007-02-07 Thread Brian Holmes
I'm getting this warning message since I upgrade to FB 2.01 and i can't
seem to get rid of it. I don't have any inline css,
but I do have a reference to a style sheet in my application shell. 
 
Anybody else out there experiencing this?
 
B..


***
The information in this e-mail is confidential and intended solely for the 
individual or entity to whom it is addressed.  If you have received this e-mail 
in error please notify the sender by return e-mail delete this e-mail and 
refrain from any disclosure or action based on the information.
***


[flexcoders] navigateToURL bind to datagrid selecteditem

2007-02-07 Thread nasawebguy

I have a linkbutton called Download
The downloaded filename is in a datagrid column called uploadedfile. 
This uploaded filename varies, but the path stays the same
www.mydomain.com/synapse/data/7117/documents/#uploadedfile#

When the user selects a row in drivergrid, the driver details appear 
below the grid with a Download linkbutton.

When the user clicks the download button, I want the driver file to 
begin to download.

I don't know how to write the url below so that it binds the 
uploadedfile to the end of the url.

This doesn't work.

mx:LinkButton label=Download click=navigateToURL(new URLRequest
('http://www.mydomain.com/synapse/data/7117/documents/
{drivergrid.selectedItem.uploadedfile}'), 'Download')/

Will anyone help with the correct syntax?
Also, how would you do a url parameter in a similar way?

Thanks,
Don



RE: [flexcoders] basic exception handling

2007-02-07 Thread Peter Farland
Right, the requests made by HTTPService are asynchronous... so you have
to wait for events to be dispatched some time later. Any errors that
occur prior to actually sending the request are typically caught and
dispatched as fault events too so there shouldn't be a need for a
try/catch.
 
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Clint Tredway
Sent: Wednesday, February 07, 2007 2:37 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] basic exception handling



there is a fault attribute of the HTTPService tag that you can set to a
function. that will catch any faults from the call. 


On 2/7/07, dantmcgowan  [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote: 

All,
When I am catching exceptions the catch seems to be ignored and
the
actionscript error window pops up. For example if I have a
simple
service like this:

mx:HTTPService
id=simpleService
url=http://example.com/someservice/
http://example.com/someservice/ 
useProxy=false
method=GET

And I have a try catch block like this with one statement
inside. If I
comment out this statement no errors...so I know this statement
is
causing the error:

try {
simpleService.send();
}
catch(errObject:Error) {
trace(Error +errObject.message);
}

The scenarios that throw errors (for example TypeError: Error
#1034)
opens the actionscript error window and the trace does not
appear.
What do I need to be doing so the exception is consumed in the
catch
and no error window? Thanks,

Dan 








-- 
http://indeegrumpee.spaces.live.com/
http://indeegrumpee.spaces.live.com/  

 


[flexcoders] Flex Form Field Focus

2007-02-07 Thread Jagos, Allan
In Flex, when you have focus on a form field and then switch to another
web page and then come back you lose focus on that field.  HTML form
fields retain their focus but Flex apparently do not.  Is there some
code or property that will allow this?
 
Thanks, 
 

  Allan M. Jagos 
   Web Developer   

   Robinson  Cole LLP
   280 Trumbull Street
   Hartford, CT  06103-3597
   Direct (860) 275-8335 | Fax (860) 275-8299  
   [EMAIL PROTECTED] | www.rc.com http://www.rc.com/  
   Contact Card http://www.rc.com/documents/peopleVcard/AMJ.vcf  


 Boston  New London  Hartford  Stamford  White Plains  New York
Sarasota 

__
This transmittal may be a confidential attorney-client communication or may 
otherwise be privileged or confidential. If it is not clear that you are the 
intended recipient, you are hereby notified that you have received this 
transmittal in error; any review, dissemination, distribution or copying of 
this transmittal is strictly prohibited. If you suspect that you have received 
this communication in error, please notify us immediately by telephone at 
1-860-275-8200, or e-mail at [EMAIL PROTECTED] and immediately delete this 
message and all its attachments.
__
This email has been scanned by the MessageLabs Email Security System.

[flexcoders] Re: Validator: disable active validator

2007-02-07 Thread fritzdimmel
Hi.
I've a form who's creation time is very long (complete dynamically).
With this form I want to edit several datasets. If one dataset doesn't
validate correctly and I want to edit another, or, let's say, create a
new dataset (with empty values!) I don't want to have that any
TextInput has a red border.
I want to validate a new dataset when the save button is clicked.

Do you understand?

Thanks,
Fritz


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

 Hey Fritz, what's the 'timing' on this?
 
 I mean, under what conditions do you want to disable the validation?
 
 Mitch
 
 --- In flexcoders@yahoogroups.com, fritzdimmel fritz.dimmel@ wrote:
 
  Hi!
  I've a form with many controls (TextInputs, ...) to validate.
  Everything works fine but I can't figure out, how to accomplish this:
  I have, let's say, a TextInput, and the validation for this returns
  false. The textinput gets a red border.
  Now I want to have a possibility to disable the validator temporarliy.
  So that the red border disappears until I'm re-enabling the validator.
  
  How can I do this?
  By setting Validator.enabled to false the red border (+ the error
  message) still exists.
  
  Thanks for any hints!
  
  Fritz
 





RE: [flexcoders] Returning 'this' from an overridden method?

2007-02-07 Thread Sho Kuwamoto
Well, it really depends on the ECMA working group. I would like to get
it in, and I will push for it, and I imagine that others will as well.
 
-Sho




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Ralf Bokelberg
Sent: Wednesday, February 07, 2007 11:10 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Returning 'this' from an overridden
method?



Nice to know the name of this feature. 
Just lately somebody asked me the same question. 
He also came from a Java background. 
Any chance we will see it in the future? 

Cheers,
Ralf. 


On 2/7/07, Sho Kuwamoto [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote: 


The short answer is that there is no way to do what you
want for the time being. 
 
What you are looking for is a language feature called
covariant return types. In certain languages (C++, Java) you can have
your subclass redefine the type that is returned by a method.



 
This would be a great thing to get into the AS language,
but it is not there now. There are further wrinkles when you consider
how you would extend properties in a similar way (I wrote about the
issues at http://kuwamoto.org/2007/01/22/covariant-property-types/
http://kuwamoto.org/2007/01/22/covariant-property-types/ ).
 
 
Cheers,
 
-Sho




From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com http://yahoogroups.com ] On Behalf
Of David_Stafford
Sent: Tuesday, February 06, 2007 6:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Returning 'this' from an
overridden method?


Please pardon this simple-minded question from
an AS3 novice.

My base class often returns 'this' from methods
which makes it 
convenient to write code like:

camera.move( 10, 12 ).rotateX( 45 ).rotateY( 90
);

The problem comes when code extends the base
class and overrides one 
of these functions. The compiler insists,
correctly, that the return 
type of an overriding function must match the
one in the base class. 
What I want to do is return the 'this' object
that is of the type of 
the derived class. Is this possible?

The following is a contrived example to
demonstrate. It won't 
compile because the overridden function in the
derived class wants to 
return a type of MyCamera rather than Camera:

public class Camera
{
var x:int = 0;
var y:int = 0;

public function move( x:int, y:int ) :Camera
{
this.x += x;
this.y += y;

return( this );
} 
}

public class MyCamera extends Camera
{
override public function move( x:int, y:int )
:MyCamera
{
super.move( x, y ); 

if( x  0 ) x = 0;
if( y  0 ) y = 0;

return( this );
} 
}










-- 
Ralf Bokelberg [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 
Flex  Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35 



 



RE: [flexcoders] Load Flex app (swf) into Flash App

2007-02-07 Thread Grant Davies
If you are going flash 8 - 9 and back Flash interface looks a bit better
than local connection since it can be synchronous..
 
http://www.flashextensions.com/products/flashinterface.php
 
 
...
 b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
 [EMAIL PROTECTED]
 http://www.bluetube.com/bti http://www.bluetube.com/bti 
 A Tribal Chicken Designs Affiliate http://www.tribalchicken.com/ 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Greg Hesla
Sent: Wednesday, February 07, 2007 2:10 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Load Flex app (swf) into Flash App



Well, this should do the trick. Thanks much! 

~g

On Feb 7, 2007, at 11:25 AM, Andrew Trice wrote:





Yes, you can do that.  You can communicate between the embedded
Flash 8 and Flex (Flash 9) swf files using the localConnection object.
More info can be found at:



http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=749eaa47
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=749eaa47 



Hope that helps,

-Andy



_

Andrew Trice

Cynergy Systems, Inc.

http://www.cynergysystems.com http://www.cynergysystems.com 



Blog: http://www.cynergysystems.com/blogs/page/andrewtrice
http://www.cynergysystems.com/blogs/page/andrewtrice 

Email: [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 

Office: 866-CYNERGY 







From: flexcoders@yahoogroups.com [
mailto:[EMAIL PROTECTED] On Behalf Of Greg Hesla
Sent: Wednesday, February 07, 2007 10:09 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Load Flex app (swf) into Flash App



I've thought about this some more - would it be possible to flip
this around and build my containers in Flex and load our old Flash SWFs
in them? 



This leads me to another question - how would these
dynamically-loaded swf files communicate with their container Flex swf
files? In Flash, I was able to use the _parent pronoun from within the
child, and the instance name of the movieclip from the parent to send
data, call functions, etc.



Thanks,

~greg



On Feb 6, 2007, at 4:18 PM, Greg Hesla wrote:







I was afraid of that. Thanks very much for your quick response.



~g



On Feb 6, 2007, at 3:49 PM, Tracy Spratt wrote:









No, because the Flash will be ver 8, AS2, and cannot contain the
AS3 virtual machine needed for FP 9. 



Tracy







From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Greg Hesla
Sent: Tuesday, February 06, 2007 3:28 PM
To: Flex Coders
Subject: [flexcoders] Load Flex app (swf) into Flash App



Is it possible to load a Flex-based swf file into a Flash movie
using 
loadMovie()?

We are trying to migrate from Flash / Remoting to Flex. We have 
several container movies which load smaller movies that the
user 
interacts with.

Thanks in advance,
Greg

















 
attachment: small.jpg


[flexcoders] How do i determine when all rendering is complete for added objects in for loop

2007-02-07 Thread scott_flex

I'm parsing an xml document and adding child objects to a VBox.  The
child components all have a text component which receives text that is
set to the htmlText property.  So depending on the text the height of
the control varies.

However, i need to know the height of each control i'm adding (for
printing reason) but i have no idea how to get it right away, at least
when it's added to the VBox, ideally at least.

I've tried listening to the updateComplete and creationComplete
listeners to each control added, then in theory when I handle the event
i know the object is done and i can finally use the object.height
property to get it's height in pixels.  If you attempt to the the
object.height proprety to early you get zero or something that is not
reflective of the final height.

However, listening to the updateComplete, you get multiples calls
because it's dispatched several times throughout the creation of the
child object... how do you know which one is the last one?  this may not
even be the best way to do it.

The creationComplete is only sent once but it's sent before it finishes
rendering the text box which controls the height.

So without intentionally waiting a few seconds for the components to
load, how or when can i be sure all the child components have finished
sizing themselves from which I can get a true height value from them?

Hopefully this makes sense, i'm not quite even sure what to search on. 
I'm a newbie to flex and love it so far, main expierience in asp.net.




Re: [flexcoders] WARNING: css type selectors are not supported in components?

2007-02-07 Thread Michael Schmalle

Hi,

In a custom component you cannot have;

Button {
...
}

You have to specify them in the Application.

Peace, Mike

On 2/7/07, Brian Holmes [EMAIL PROTECTED] wrote:


   I'm getting this warning message since I upgrade to FB 2.01 and i can't
seem to get rid of it. I don't have any inline css,
but I do have a reference to a style sheet in my application shell.

Anybody else out there experiencing this?

B..

--
***
The information in this e-mail is confidential and intended solely for the
individual or entity to whom it is addressed. If you have received this
e-mail in error please notify the sender by return e-mail delete this e-mail
and refrain from any disclosure or action based on the information.
***

 





--
Teoti Graphix
http://www.teotigraphix.com

Blog - Flex2Components
http://www.flex2components.com

You can find more by solving the problem then by 'asking the question'.


[flexcoders] Cant catch mouseClick event in the TreeItemRenderer's buttons

2007-02-07 Thread xvirus001
I created 2 buttons in the ItenRenderer of a tree and cant get the 
click work on those two buttons.

I simply wrote something like this.

   override protected function createChildren():void{ 
myEditButton = new Button()
myEditButton.addEventListener(MouseEvent.CLICK,editNode)
this.addChild(myEditButton)
   }
When I Click on the a tree item. I can see the event easily like this.

   override protected function createChildren():void{ 
this.addEventListener(MouseEvent.CLICK,editNode)
   }


I dont understand why the TreeItemRenderer is keeping the mouseClick 
for himself.




[flexcoders] any interest in an alternative to QTP to automate Flex apps?

2007-02-07 Thread brian.knorr

Automating functional tests is critical to the way we develop software
at my company.  And there are two big things that stop us from using QTP.

1) It's record and playback - we want to write test scripts
2) It costs a lot of money - we want a tool that is free and community
driven

At my company we are writing several applications in Flex2 and are
building out an as3 library that allows us to write test scripts in
as3 to drive the Flex ui as if the user was interacting with it.  If
you are familiar with the Java Swing testing tool called Jemmy, it's
very similar in design.

Is there any interest out there for a tool like this?  I am about to
create a sourceforge project, but first wanted to get a feel for the need.

Thanks,

Brian



RE: [flexcoders] WARNING: css type selectors are not supported in components?

2007-02-07 Thread Brian Holmes
Yeah, I know,
 I don't have any of that in any components. The only thing is in my
application fine, i have a mx:style src=style.css / reference to my
style sheet. 
 
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Michael Schmalle
Sent: Wednesday, February 07, 2007 1:15 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] WARNING: css type selectors are not supported
in components?


Hi,

In a custom component you cannot have;

Button {
...
}

You have to specify them in the Application.

Peace, Mike


On 2/7/07, Brian Holmes [EMAIL PROTECTED] wrote: 



I'm getting this warning message since I upgrade to FB 2.01 and
i can't seem to get rid of it. I don't have any inline css,
but I do have a reference to a style sheet in my application
shell. 
 
Anybody else out there experiencing this?
 
B..





***
The information in this e-mail is confidential and intended
solely for the individual or entity to whom it is addressed. If you have
received this e-mail in error please notify the sender by return e-mail
delete this e-mail and refrain from any disclosure or action based on
the information. 
*** 










-- 
Teoti Graphix
http://www.teotigraphix.com

Blog - Flex2Components
http://www.flex2components.com 

You can find more by solving the problem then by 'asking the question'.
 


***
The information in this e-mail is confidential and intended solely for the 
individual or entity to whom it is addressed.  If you have received this e-mail 
in error please notify the sender by return e-mail delete this e-mail and 
refrain from any disclosure or action based on the information.
***


[flexcoders] Re: basic exception handling

2007-02-07 Thread dantmcgowan
Peter, Clint,
   Thanks. One last question: so in the event handler do I have any
access to the exception that was raised (for trace purposes)? 
Dan

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

 Right, the requests made by HTTPService are asynchronous... so you have
 to wait for events to be dispatched some time later. Any errors that
 occur prior to actually sending the request are typically caught and
 dispatched as fault events too so there shouldn't be a need for a
 try/catch.
  
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Clint Tredway
 Sent: Wednesday, February 07, 2007 2:37 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] basic exception handling
 
 
 
 there is a fault attribute of the HTTPService tag that you can set to a
 function. that will catch any faults from the call. 
 
 
 On 2/7/07, dantmcgowan  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]  wrote: 
 
   All,
   When I am catching exceptions the catch seems to be ignored and
 the
   actionscript error window pops up. For example if I have a
 simple
   service like this:
   
   mx:HTTPService
   id=simpleService
   url=http://example.com/someservice/
 http://example.com/someservice/ 
   useProxy=false
   method=GET
   
   And I have a try catch block like this with one statement
 inside. If I
   comment out this statement no errors...so I know this statement
 is
   causing the error:
   
   try {
   simpleService.send();
   }
   catch(errObject:Error) {
   trace(Error +errObject.message);
   }
   
   The scenarios that throw errors (for example TypeError: Error
 #1034)
   opens the actionscript error window and the trace does not
 appear.
   What do I need to be doing so the exception is consumed in the
 catch
   and no error window? Thanks,
   
   Dan 
   
   
 
   
 
 
 
 
 -- 
 http://indeegrumpee.spaces.live.com/
 http://indeegrumpee.spaces.live.com/




Re: [flexcoders] Re: basic exception handling

2007-02-07 Thread Clint Tredway

yes, a faultEvent is passed which has the info in it. I dont have the exact
syntax at the moment.

On 2/7/07, dantmcgowan [EMAIL PROTECTED] wrote:


  Peter, Clint,
Thanks. One last question: so in the event handler do I have any
access to the exception that was raised (for trace purposes)?
Dan

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Peter
Farland [EMAIL PROTECTED] wrote:

 Right, the requests made by HTTPService are asynchronous... so you have
 to wait for events to be dispatched some time later. Any errors that
 occur prior to actually sending the request are typically caught and
 dispatched as fault events too so there shouldn't be a need for a
 try/catch.



 

 From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
 Behalf Of Clint Tredway
 Sent: Wednesday, February 07, 2007 2:37 PM
 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 Subject: Re: [flexcoders] basic exception handling



 there is a fault attribute of the HTTPService tag that you can set to a
 function. that will catch any faults from the call.


 On 2/7/07, dantmcgowan  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]  wrote:

 All,
 When I am catching exceptions the catch seems to be ignored and
 the
 actionscript error window pops up. For example if I have a
 simple
 service like this:

 mx:HTTPService
 id=simpleService
 url=http://example.com/someservice/
 http://example.com/someservice/ 
 useProxy=false
 method=GET

 And I have a try catch block like this with one statement
 inside. If I
 comment out this statement no errors...so I know this statement
 is
 causing the error:

 try {
 simpleService.send();
 }
 catch(errObject:Error) {
 trace(Error +errObject.message);
 }

 The scenarios that throw errors (for example TypeError: Error
 #1034)
 opens the actionscript error window and the trace does not
 appear.
 What do I need to be doing so the exception is consumed in the
 catch
 and no error window? Thanks,

 Dan








 --
 http://indeegrumpee.spaces.live.com/
 http://indeegrumpee.spaces.live.com/


 





--
http://indeegrumpee.spaces.live.com/


[flexcoders] Re: Populate Tree with data from a query?

2007-02-07 Thread jensen.axel
Malik, 

  I'm not sure if your xml has to be formatted that way, depending on
what your working with(if your getting your xml from a service that is
already in place, and other code is already using that formatted xml)
then you would be forced to use the xml as is...

but if at all possible, try to format your xml this way

companies
  company name=Macrosoft
contact name=Bill Bates/
contact name=Mark Smith/
  /company
  company name=Oracle Corporation
contact name=Larry Jobs/
  /company
/companies

now you can use the label=@name in your mx:Tree

there are also some things you will definitely want to look at in the
example on my blog... 

This issue was pondering me, so i made and example to see what was
going on, and your right it is acting weird in the tree... so anyway
check out the example... it's at the bottom of the page on my blog...
it says CLICK HERE TO VIEW THE EXAMPLE

http://axel.cfwebtools.com/index.cfm/2007/2/6/Returning-a-query-to-flex-as-xml


I'm always looking for more subscribers and comments, so please
subscribe... I usually put up and example on almost every post, unless
i'm just throwing up a link i want to remember.  


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

 Hi Tracy,
 
 When I do a trace as you indicated.  I see this:
 
 companies
company name=Macrosoft
  contact
displayNameBill Bates/displayName
  /contact
  contact
displayNameMark Smith/displayName
  /contact
/company
company name=Oracle Corporation
  contact
displayNameLarry Jobs/displayName
  /contact
/company
 /companies
 
 And this is what I see when my tree is rendered also.
 
 -Malik
 
 
 --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote:
 
  Have you determined that model.treeData contains valid xml?
  (trace(treeData.toXMLString()))  If it does, then the tree should work
  like you have it.  You will need to set the labelField property for
  the label, or use a labelFunction if the data you want for the label
 is
  not a top-level porperty/attribute of the item node.
 
 
 
  Also, I am not familiar with RemoteObject, so this may not apply, but
  you may need to set resultFormat=e4x.  Also, if the data service was
  HTTPService, I would do the result handler like this:
 
  public function result( event:ResultEvent ):void {
  var xmlResult:XML = XML(event.result);
 
  trace(xmlResult.toXMLString());
  model.treeData = xmlResult;
  }
 
 
 
  if you see good xml but are still having difficulty, take the model
  class out of the picture and assign the dataProvider directly:
 
  acTree.dataProvider = xmlResult;
 
 
 
  Tracy
 
 
 
  
 
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
 On
  Behalf Of malik_robinson
  Sent: Tuesday, February 06, 2007 3:09 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Populate Tree with data from a query?
 
 
 
  Hi,
 
  That helps a bit, in my tree I am seeing the actual xml when I run my
  application in flex. I have CFC function returning a string, I tried
  having return xml and same thing.
 
  ***
  After I make my remote object call in my result handler I have this:
 
  public function result( data:Object ):void {
  var event:ResultEvent = data as ResultEvent
  model.treeData = event.result as XML;
  }
 
  It seems I have to cast it as XML otherwise in my model I get a
 'type'
  error
 
  **
  In my model which is a [Bindable] class I have:
 
  public var treeData:XML;
 
  **
  And in the view I have
 
  mx:Tree id=acTree
  width=50%
  height=100%
  showRoot=false
  dataProvider={model.treeData}
  change=treeChanged(event)
  /
 
  Any help appreciated as I am getting the actual xml in the tree. How
 do
  you get the label to work also?
 
  --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  , jensen.axel axel@ wrote:
  
   Hi Malik,
  
   I have never exactly populated a tree with straight query data, i
   usually convert it to xml first within the cfc that i'm calling, and
 i
   return a string from that cfc... it took some playing with but i
   eventually got it...
  
   google the following:
  
   using cfxml returning it to flex? or something along those
 lines...
   that will teach you how to convert your query to xml... but the
 thing
   is, flex doesn't want the actual xml doc from coldfusion, it wants
 the
   valid string format...
  
   here is my example
  
  
 
 http://axel.cfwebtools.com/index.cfm/2007/2/6/Returning-a-query-to-flex-
  \
  as-xml#more
 
 http://axel.cfwebtools.com/index.cfm/2007/2/6/Returning-a-query-to-flex
  -as-xml#more
  
   once you get it into flex, it will be declared as xml, and then in
   your mx:Tree your going to declare a showRoot=false
  
   the blog might be a little hard to follow, but I hope it helps.
  
   --- In flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com , malik_robinson
   

RE: [flexcoders] WARNING: css type selectors are not supported in components?

2007-02-07 Thread Gordon Smith
Is your mx:Style src=style.css tag inside an mx:Application tag or
inside something like mx:ApplicationShell?

 

If it is the latter, I think the MXML compiler thinks
mx:ApplicationShell is a component rather than an application.

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brian Holmes
Sent: Wednesday, February 07, 2007 12:21 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] WARNING: css type selectors are not supported
in components?

 

Yeah, I know,

 I don't have any of that in any components. The only thing is in my
application fine, i have a mx:style src=style.css / reference to my

style sheet. 

 

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Michael Schmalle
Sent: Wednesday, February 07, 2007 1:15 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] WARNING: css type selectors are not supported
in components?

Hi,

In a custom component you cannot have;

Button {
...
}

You have to specify them in the Application.

Peace, Mike

On 2/7/07, Brian Holmes [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote: 

I'm getting this warning message since I upgrade to FB 2.01 and i can't
seem to get rid of it. I don't have any inline css,

but I do have a reference to a style sheet in my application shell. 

 

Anybody else out there experiencing this?

 

B..



***
The information in this e-mail is confidential and intended solely for
the individual or entity to whom it is addressed. If you have received
this e-mail in error please notify the sender by return e-mail delete
this e-mail and refrain from any disclosure or action based on the
information. 
*** 




-- 
Teoti Graphix
http://www.teotigraphix.com http://www.teotigraphix.com 

Blog - Flex2Components
http://www.flex2components.com http://www.flex2components.com 

You can find more by solving the problem then by 'asking the question'. 



***
The information in this e-mail is confidential and intended solely for
the individual or entity to whom it is addressed. If you have received
this e-mail in error please notify the sender by return e-mail delete
this e-mail and refrain from any disclosure or action based on the
information.
*** 

 



[flexcoders] Re: How can I test a UIComponent to see if it is user editable?

2007-02-07 Thread gotgoose09
OK, that'll work, but I'll have to add new components I make to the
list each time. Oh well... :/

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

 I don't think there's a good answer to this question. There's no way
 to figure out via AS whether a component MIGHT dispatch a given event.
 
 I did a search on livedocs to try to find all classes that dispatch a
 change event. This only seems to include base classes, so subclasses
 of any of these controls won't show up, so you'd hve to figure those
 out. Also note that this doesn't mean that some classes might dispatch
 other events that signify change that aren't specifically the same
 change event. And these change events don't necessarily mean user
 input either. All it means is that the component dispatches an event
 called change.
 
 Here's the livedocs search:

http://livedocs.macromedia.com/cfusion/search/index.cfm?loc=en_usterm=site%3Alivedocs.macromedia.com%2Fflex%2F201++%22change%3DNo+default%22action=Search
 
 And here are the classes that come up:
 mx.controls.RadioButtonGroup
 mx.controls.sliderClasses.Slider (which means HSlider and VSlider as
well)
 mx.controls.ColorPicker
 mx.containers.Accordion
 mx.containers.ViewStack
 mx.controls.DateChooser
 mx.controls.NumericStepper
 mx.controls.Button
 mx.controls.DateField
 mx.controls.PopUpMenuButton
 mx.controls.ComboBox
 mx.controls.TextInput 
 mx.controls.TextArea
 mx.controls.Tree
 mx.controls.listClasses.ListBase (so that would mean all list controls
 like List, TileList, DataGrid, etc)
 
 So your best bet is probably to put together a more complete list of
 each component you want to define as having user input and then just
 check against that list using the is test as already mentioned. But
 I think the basic answer to your question is no, there's no good way
 to do this.
 
 Doug
 
 
 
 --- In flexcoders@yahoogroups.com, Ralf Bokelberg
 ralf.bokelberg@ wrote:
 
  I guess the only way to do it reliable is to ask for the type.
  You can use if(  X instanceof Y)  for example
  
  Cheers,
  Ralf.
  
  On 2/6/07, gotgoose09 thegoosmans@ wrote:
  
 No one has done type checking like this before? If not, oh
well. :)
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
   gotgoose09 thegoosmans@ wrote:
   
My current code now loops through the children of a container
 and adds
an event handler to each one to listen for a change event.
   
However, I want to only add event handlers to UIComponents
that have
some sort of value that the user can change.
   
Some examples of these components are: TextInput, ComboBox,
RadioButton, CheckBox, ColorPicker, List, RichTextEditor, etc.
   
My current code is something like this: (simplified)
   
var component:UIComponent = container.getChildAt(i);
if (component is Container)
{
// add event handlers to the container's children
}
else if (component is UIComponent  enabled in component)
{
// add an event handler to component
}
   
Unfortunately, this doesn't work for all the various input
controls.
e.g. The RichTextEditor is a Container, so the code tries adding
 event
handlers to it's children (I want an event handler on the actual
RichTextEditor).
   
Is there a reliable way of detecting a user editable control?
   
Thanks in advance!
   
  

  
  
  
  
  -- 
  Ralf Bokelberg ralf.bokelberg@
  Flex  Flash Consultant based in Cologne/Germany
  Phone +49 (0) 221 530 15 35
 





[flexcoders] Re: Poor man's PUSH technology (aka reload data using timer)

2007-02-07 Thread Alex MacCaw
You could always use a xmlsocket, and then updates would be
instantaneous. 

Have a look at juggernaut http://juggernaut.rubyforge.org/  for some
pointers.

 
King's School Bruton Ltd. is a company limited by guarantee, registered in 
England, No. 3304693, registered Charity No. 1071997.  Registered Office: 
King's School, Bruton, Somerset, BA10 0ED
attachment: Green_awareness3.jpg


Re: [flexcoders] Resources to Flex Application Architecture articles?

2007-02-07 Thread Bjorn Schultheiss
In terms of an architecture framework, Cairngorm is highly  
recommended http://labs.adobe.com/wiki/index.php/Cairngorm
A lot of documentation has been released from adobe on the best  
practices regarding using Flex 2, check out http://flex.org/ , or in- 
particularly http://www.adobe.com/go/flex2_building




regards,

Bjorn

On 08/02/2007, at 1:38 AM, Private Romeo wrote:



Hi everybody,



we are looking for (online) resources related to how to best  
structure (larger) Flex applications. Most of the great training  
and tutorial material available tends to focus on how to construct  
more complex controls, how to implement special effects or how to  
solve DataGrid/Binding related issues, however, what we are seeking  
is material as to potential best practices about how to structure  
an Flex app best.




Should AS code be used inline primarily? Or is a code-behind  
pattern a better choice?


Should we ultimately keep the primary MXML application file small  
and work with complex custom controls, or should we keep custom  
controls usage low?




Are there any good technical articles out there? Any links? Any hints?



Thanks for your support.











[flexcoders] Re: any interest in an alternative to QTP to automate Flex apps?

2007-02-07 Thread ben.clinkinbeard
I would be interested in at least trying it out.


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

 
 Automating functional tests is critical to the way we develop software
 at my company.  And there are two big things that stop us from using
QTP.
 
 1) It's record and playback - we want to write test scripts
 2) It costs a lot of money - we want a tool that is free and community
 driven
 
 At my company we are writing several applications in Flex2 and are
 building out an as3 library that allows us to write test scripts in
 as3 to drive the Flex ui as if the user was interacting with it.  If
 you are familiar with the Java Swing testing tool called Jemmy, it's
 very similar in design.
 
 Is there any interest out there for a tool like this?  I am about to
 create a sourceforge project, but first wanted to get a feel for the
need.
 
 Thanks,
 
 Brian





[flexcoders] Re: 2nd datagrid - no headers, wrong size

2007-02-07 Thread Mike_Robinson_98
--- In flexcoders@yahoogroups.com, Mike_Robinson_98
[EMAIL PROTECTED] wrote:

 I've been spending a lot of time trying to overcome this issue without
 any success. Hopefully someone out there has a suggestion.
 
 I have datagrid within a vbox in a component. The grid takes up as
 much space as is available (height='100%').
 
 There is another state which does the following:
 1) reduces the height of the 1st datagrid to a fixed value (344)
 2) adds a 2nd datagrid (height='124') into the vbox as the lastchild.
 
 The problem is when the state gets switched and the 2nd datagrid gets
 added..
 1) the headers are missing
 2) the requested size is not honored
 
 When looking at the state in design mode, the headers are present and
 the size of the 2nd grid is correct.
 
 Has anyone run into issues similar to this? Any resolutions? The code
 is rather long, but I will post it if anyone is interested.
 
 Thanks


Well, to answer my own question (and for the sake of anyone else who
see symptoms like this) - the problem was the use of a transition.
When the new state was displayed a Resize transition moved from a
height of 0 to a more normal size height (170). For some reason, the
headers of the datagrid got lost in that transition. Once I removed
the transition, it behaved as expected.

I suppose there is a way to still use the resize transition without
losing the headers however that's for another day.



Re: [flexcoders] Re: Serious Bug in HistoryManager (introduced in latest release?)

2007-02-07 Thread Bjorn Schultheiss

Yo Z,

Each Manager is registered as a singleton.
code excerpt;
Singleton.registerClass(mx.managers::ICursorManager, Class 
(getDefinitionByName(mx.managers::CursorManagerImpl)));
Singleton.registerClass(mx.managers::IDragManager, Class 
(getDefinitionByName(mx.managers::DragManagerImpl)));
Singleton.registerClass(mx.managers::IHistoryManager, Class 
(getDefinitionByName(mx.managers::HistoryManagerImpl)));
Singleton.registerClass(mx.managers::ILayoutManager, Class 
(getDefinitionByName(mx.managers::LayoutManager)));
Singleton.registerClass(mx.managers::IPopUpManager, Class 
(getDefinitionByName(mx.managers::PopUpManagerImpl)));
Singleton.registerClass(mx.styles::IStyleManager, Class 
(getDefinitionByName(mx.styles::StyleManagerImpl)));
Singleton.registerClass(mx.managers::IToolTipManager, Class 
(getDefinitionByName(mx.managers::ToolTipManagerImpl)));


It's quite interesting in the way they implemented this process but i  
do believe that this particular bug has exposed a flaw in their  
decision.
The problem seems to be is that these singleton's are not getting  
registered if they are not being used. this is generally a good thing  
until the introduction of modules where the child parent relationship  
exposes the flaw.


Anyway at-least we've got a fix.


regards,

Bjorn

On 08/02/2007, at 5:07 AM, zenwarden wrote:


I can't test the fix because I cannot replicate the bug. It has
mysteriously vanished...The next time I see it, I will try the
suggested fix and report back.

Also sorry if I ranted in my last post. Just don't like to see any
problems with my new favorite technology.

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

 I will give it a try.

 One question and one comment:

 Question: Did you actually mean drag manager or did you mean History
 manager? (I'll try both sperately).

 Commnet: I've been a virtual evenagilist for flex at the company I
 work for; I am very impressed with product and love using it. But  
this

 does make me a bit nervous. I'm also really hoping that what you are
 sayimg about singletons is not true. Singletons should never be used
 liberally like this. It's a lazy solution to resource mamnagemnt
 issues. The whole point of design patterns is (in my humble opinion)
 to solve an EXISTING problem. You don't use a singlton because you
 can, or because it's neat or even because you think it will be
 effecient or cleaner --- you use a sington (and any pattern) after
 you've identified a problem.

 The flex team needs to stop reading design pattern book.

 To sum up: you can always tell what chapter in gang of four a  
coder is

 reading, its the pattern they are sticking into all their code :)








 --- In flexcoders@yahoogroups.com, Bjorn Schultheiss
 bjorn.schultheiss@ wrote:
 
  Here's a reply i got from one of the engineers, Alex Harai on what
  could be a related issue.
 
 
  This error occurs for two reasons: One is that somehow, the
  DragManager or DragManagerImpl is not linked into the movie.
 
  The other, and more common reason is that more than one module is
  using the DragManager, but the main application does not.. Modules
  operate in their own application domain, and thus cannot share
  singletons unless that singleton is loaded by the parent  
application

  domain. The simple solution is to link the DragManager into the
main
  application by putting something like this in a script block
 
  import mx.managers.DragManager;
 
  var dm:DragManager;
 
  This fattens your application a little. More complex solutions
  involve loading the DragManager into the main application's
  application domain.
 
  The above is true for all managers handled by Singleton and  
lots of

  other shared classes in Flex as well.
 
 
 
 
 
 
 
 
  On 06/02/2007, at 11:49 AM, zenwarden wrote:
 
   I am seeing this mostly when I run unit test using the  
flexunit.swf.

   And I am consistantly seeing it in that situation
  
   I do occasionaly see it when running a single-swf app through  
the

   builder (However it is making a connection to a server when it
   occurs).
  
   Chris W
  
   --- In flexcoders@yahoogroups.com, Bjorn Schultheiss
   bjorn.schultheiss@ wrote:
   
does your app use modules, or built using multiple swfs?
   
   
On 06/02/2007, at 5:49 AM, zenwarden wrote:
   
 There appears to be a failry serious bug that I think was
   introduced
 in the history manager in the latest release 2.0.1

 I never got this errro until I updated and I now see it in a
   variety
 of situations (including whenever I run testcases. )

 Shutting down the borwoser or even switching borwsers  
does NOT

   help. I
 mostly see it when I am running from the flex builder, but
when
   you
 are trying to run tests -- this becomes failry serious and
very
   time
 consuming.

   
  
  
  
 








Re: [flexcoders] any interest in an alternative to QTP to automate Flex apps?

2007-02-07 Thread Simeon Bateman

I am interested in this.  I had been playing with the thought of using the
FA Bridge to allow you to use Selenium to test your applications.  Then you
could use the Firefox plugin to record our actions and test the movie.

Not sure how feasible it is but even that would start with having a testing
framework in flex to tie into.


simeon

On 2/7/07, brian.knorr [EMAIL PROTECTED] wrote:



Automating functional tests is critical to the way we develop software
at my company. And there are two big things that stop us from using QTP.

1) It's record and playback - we want to write test scripts
2) It costs a lot of money - we want a tool that is free and community
driven

At my company we are writing several applications in Flex2 and are
building out an as3 library that allows us to write test scripts in
as3 to drive the Flex ui as if the user was interacting with it. If
you are familiar with the Java Swing testing tool called Jemmy, it's
very similar in design.

Is there any interest out there for a tool like this? I am about to
create a sourceforge project, but first wanted to get a feel for the need.

Thanks,

Brian



Re: [flexcoders] Re: Serious Bug in HistoryManager (introduced in latest release?)

2007-02-07 Thread Michael Schmalle

Oh yeah one more thing.

I know why they did this. At least a perspective.

If you have version 2.0 linking in ManagerA and they change the
implementation to ManagerB in 2.5, ManagerA will not be linked in unless
ManagerA is linked, other wise ManagerB is linked in, in 2.5 and the string
decouples the dependency of ManagerA in the last version.

may be wrong here but it makes sense to me.

Peace, Mike

On 2/7/07, Michael Schmalle [EMAIL PROTECTED] wrote:


Hey,

Don't get me wrong here but, what happens when you use
getClassDefinition() and you didn't link in your class as a static
dependency?

Same error as you get here.

Is it a flaw or a chicken and egg thing like 'my computer can't entirely
think for me' thing.

Peace, Mike

On 2/7/07, Bjorn Schultheiss [EMAIL PROTECTED] wrote:

   Yo Z,

 Each Manager is registered as a singleton.
 code excerpt;
  Singleton.registerClass(mx.managers::ICursorManager ,
 Class(getDefinitionByName(mx.managers::CursorManagerImpl )));
 Singleton.registerClass (mx.managers::IDragManager,
 Class(getDefinitionByName( mx.managers::DragManagerImpl)));
 Singleton.registerClass( mx.managers::IHistoryManager,
 Class(getDefinitionByName( mx.managers::HistoryManagerImpl)));
 Singleton.registerClass(mx.managers::ILayoutManager ,
 Class(getDefinitionByName(mx.managers::LayoutManager )));
 Singleton.registerClass(mx.managers::IPopUpManager ,
 Class(getDefinitionByName(mx.managers::PopUpManagerImpl )));
 Singleton.registerClass( mx.styles::IStyleManager,
 Class(getDefinitionByName( mx.styles::StyleManagerImpl)));
 Singleton.registerClass(mx.managers::IToolTipManager ,
 Class(getDefinitionByName(mx.managers::ToolTipManagerImpl )));

 It's quite interesting in the way they implemented this process but i do
 believe that this particular bug has exposed a flaw in their decision.
 The problem seems to be is that these singleton's are not getting
 registered if they are not being used. this is generally a good thing until
 the introduction of modules where the child parent relationship exposes the
 flaw.

 Anyway at-least we've got a fix.


 regards,

 Bjorn

 On 08/02/2007, at 5:07 AM, zenwarden wrote:

 I can't test the fix because I cannot replicate the bug. It has
 mysteriously vanished...The next time I see it, I will try the
 suggested fix and report back.

 Also sorry if I ranted in my last post. Just don't like to see any
 problems with my new favorite technology.

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com ,
 zenwarden [EMAIL PROTECTED] wrote:
 
  I will give it a try.
 
  One question and one comment:
 
  Question: Did you actually mean drag manager or did you mean History
  manager? (I'll try both sperately).
 
  Commnet: I've been a virtual evenagilist for flex at the company I
  work for; I am very impressed with product and love using it. But this
  does make me a bit nervous. I'm also really hoping that what you are
  sayimg about singletons is not true. Singletons should never be used
  liberally like this. It's a lazy solution to resource mamnagemnt
  issues. The whole point of design patterns is (in my humble opinion)
  to solve an EXISTING problem. You don't use a singlton because you
  can, or because it's neat or even because you think it will be
  effecient or cleaner --- you use a sington (and any pattern) after
  you've identified a problem.
 
  The flex team needs to stop reading design pattern book.
 
  To sum up: you can always tell what chapter in gang of four a coder is
  reading, its the pattern they are sticking into all their code :)
 
 
 
 
 
 
 
 
  --- In [EMAIL PROTECTED] flexcoders%40yahoogroups.com ups.com,
 Bjorn Schultheiss
  bjorn.schultheiss @ wrote:
  
   Here's a reply i got from one of the engineers, Alex Harai on what
   could be a related issue.
  
  
   This error occurs for two reasons: One is that somehow, the
   DragManager or DragManagerImpl is not linked into the movie.
  
   The other, and more common reason is that more than one module is
   using the DragManager, but the main application does not.. Modules
   operate in their own application domain, and thus cannot share
   singletons unless that singleton is loaded by the parent application

   domain. The simple solution is to link the DragManager into the
 main
   application by putting something like this in a script block
  
   import mx.managers.DragManager;
  
   var dm:DragManager;
  
   This fattens your application a little. More complex solutions
   involve loading the DragManager into the main application's
   application domain.
  
   The above is true for all managers handled by Singleton and lots of
   other shared classes in Flex as well.
  
  
  
  
  
  
  
  
   On 06/02/2007, at 11:49 AM, zenwarden wrote:
  
I am seeing this mostly when I run unit test using the
 flexunit.swf.
And I am consistantly seeing it in that situation
   
I do occasionaly see it when running a single-swf 

Re: [flexcoders] Re: Serious Bug in HistoryManager (introduced in latest release?)

2007-02-07 Thread Michael Schmalle

Hey,

Don't get me wrong here but, what happens when you use getClassDefinition()
and you didn't link in your class as a static dependency?

Same error as you get here.

Is it a flaw or a chicken and egg thing like 'my computer can't entirely
think for me' thing.

Peace, Mike

On 2/7/07, Bjorn Schultheiss [EMAIL PROTECTED] wrote:


  Yo Z,

Each Manager is registered as a singleton.
code excerpt;
Singleton.registerClass(mx.managers::ICursorManager,
Class(getDefinitionByName(mx.managers::CursorManagerImpl)));
Singleton.registerClass(mx.managers::IDragManager,
Class(getDefinitionByName(mx.managers::DragManagerImpl)));
Singleton.registerClass(mx.managers::IHistoryManager,
Class(getDefinitionByName(mx.managers::HistoryManagerImpl)));
Singleton.registerClass(mx.managers::ILayoutManager,
Class(getDefinitionByName(mx.managers::LayoutManager)));
Singleton.registerClass(mx.managers::IPopUpManager,
Class(getDefinitionByName(mx.managers::PopUpManagerImpl)));
Singleton.registerClass(mx.styles::IStyleManager,
Class(getDefinitionByName(mx.styles::StyleManagerImpl)));
Singleton.registerClass(mx.managers::IToolTipManager,
Class(getDefinitionByName(mx.managers::ToolTipManagerImpl)));

It's quite interesting in the way they implemented this process but i do
believe that this particular bug has exposed a flaw in their decision.
The problem seems to be is that these singleton's are not getting
registered if they are not being used. this is generally a good thing until
the introduction of modules where the child parent relationship exposes the
flaw.

Anyway at-least we've got a fix.


regards,

Bjorn

On 08/02/2007, at 5:07 AM, zenwarden wrote:

I can't test the fix because I cannot replicate the bug. It has
mysteriously vanished...The next time I see it, I will try the
suggested fix and report back.

Also sorry if I ranted in my last post. Just don't like to see any
problems with my new favorite technology.

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

 I will give it a try.

 One question and one comment:

 Question: Did you actually mean drag manager or did you mean History
 manager? (I'll try both sperately).

 Commnet: I've been a virtual evenagilist for flex at the company I
 work for; I am very impressed with product and love using it. But this
 does make me a bit nervous. I'm also really hoping that what you are
 sayimg about singletons is not true. Singletons should never be used
 liberally like this. It's a lazy solution to resource mamnagemnt
 issues. The whole point of design patterns is (in my humble opinion)
 to solve an EXISTING problem. You don't use a singlton because you
 can, or because it's neat or even because you think it will be
 effecient or cleaner --- you use a sington (and any pattern) after
 you've identified a problem.

 The flex team needs to stop reading design pattern book.

 To sum up: you can always tell what chapter in gang of four a coder is
 reading, its the pattern they are sticking into all their code :)








 --- In [EMAIL PROTECTED] flexcoders%40yahoogroups.comups.com, Bjorn
Schultheiss
 bjorn.schultheiss@ wrote:
 
  Here's a reply i got from one of the engineers, Alex Harai on what
  could be a related issue.
 
 
  This error occurs for two reasons: One is that somehow, the
  DragManager or DragManagerImpl is not linked into the movie.
 
  The other, and more common reason is that more than one module is
  using the DragManager, but the main application does not.. Modules
  operate in their own application domain, and thus cannot share
  singletons unless that singleton is loaded by the parent application
  domain. The simple solution is to link the DragManager into the
main
  application by putting something like this in a script block
 
  import mx.managers.DragManager;
 
  var dm:DragManager;
 
  This fattens your application a little. More complex solutions
  involve loading the DragManager into the main application's
  application domain.
 
  The above is true for all managers handled by Singleton and lots of
  other shared classes in Flex as well.
 
 
 
 
 
 
 
 
  On 06/02/2007, at 11:49 AM, zenwarden wrote:
 
   I am seeing this mostly when I run unit test using the flexunit.swf.
   And I am consistantly seeing it in that situation
  
   I do occasionaly see it when running a single-swf app through the
   builder (However it is making a connection to a server when it
   occurs).
  
   Chris W
  
   --- In [EMAIL PROTECTED] flexcoders%40yahoogroups.comups.com,
Bjorn Schultheiss
   bjorn.schultheiss@ wrote:
   
does your app use modules, or built using multiple swfs?
   
   
On 06/02/2007, at 5:49 AM, zenwarden wrote:
   
 There appears to be a failry serious bug that I think was
   introduced
 in the history manager in the latest release 2.0.1

 I never got this errro until I updated and I now see it in a
   variety
 of situations 

RE: [flexcoders] any interest in an alternative to QTP to automate Flex apps?

2007-02-07 Thread Allen Riddle
I've posted on here before about this topic. I think this is something
that lacks in the Flex community. Just curious if you or your company
have looked at a product called imacros. I downloaded the demo and it
was pretty decent. It's a lot cheaper than QTP. It also lets you script
out tests. I've also wondered if it was possible to get Ruby's Watir
tool to work with Flex, that would be my first choice if so. Cool
suggestion, we'd use it.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Simeon Bateman
Sent: Wednesday, February 07, 2007 3:56 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] any interest in an alternative to QTP to
automate Flex apps?

 

I am interested in this.  I had been playing with the thought of using
the FA Bridge to allow you to use Selenium to test your applications.
Then you could use the Firefox plugin to record our actions and test the
movie.

Not sure how feasible it is but even that would start with having a
testing framework in flex to tie into.


simeon

On 2/7/07, brian.knorr [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:


Automating functional tests is critical to the way we develop software
at my company. And there are two big things that stop us from using QTP.

1) It's record and playback - we want to write test scripts
2) It costs a lot of money - we want a tool that is free and community
driven

At my company we are writing several applications in Flex2 and are
building out an as3 library that allows us to write test scripts in
as3 to drive the Flex ui as if the user was interacting with it. If
you are familiar with the Java Swing testing tool called Jemmy, it's
very similar in design.

Is there any interest out there for a tool like this? I am about to
create a sourceforge project, but first wanted to get a feel for the
need.

Thanks,

Brian

 

 



Re: [flexcoders] any interest in an alternative to QTP to automate Flex apps?

2007-02-07 Thread Chaitanya Mutyala

I am pretty sure there is and will be a lot of interest in opensource
automation tools for Flex. QTP works great with the plugin setup for flex
and everything, but the price paid for the same is a weaking factor for the
product. Its like needing to have FDS for QTP, which albeit having a lot of
capabilities, is not really something i would want to pay for just the
functionality of QTP.
I hope and guess that there are already steps in place from Adobe to look
into the issue where in QTP could be used without having to pay for FDS.

As for getting the functionality of QTP without having to pay the cost, who
wouldnt be ready to try it? I would.

-RM

On 2/7/07, Allen Riddle [EMAIL PROTECTED] wrote:


   I've posted on here before about this topic. I think this is something
that lacks in the Flex community. Just curious if you or your company have
looked at a product called imacros. I downloaded the demo and it was pretty
decent. It's a lot cheaper than QTP. It also lets you script out tests. I've
also wondered if it was possible to get Ruby's Watir tool to work with Flex,
that would be my first choice if so. Cool suggestion, we'd use it.


 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Simeon Bateman
*Sent:* Wednesday, February 07, 2007 3:56 PM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] any interest in an alternative to QTP to
automate Flex apps?



I am interested in this.  I had been playing with the thought of using the
FA Bridge to allow you to use Selenium to test your applications.  Then you
could use the Firefox plugin to record our actions and test the movie.

Not sure how feasible it is but even that would start with having a
testing framework in flex to tie into.


simeon

On 2/7/07, *brian.knorr* [EMAIL PROTECTED] wrote:


Automating functional tests is critical to the way we develop software
at my company. And there are two big things that stop us from using QTP.

1) It's record and playback - we want to write test scripts
2) It costs a lot of money - we want a tool that is free and community
driven

At my company we are writing several applications in Flex2 and are
building out an as3 library that allows us to write test scripts in
as3 to drive the Flex ui as if the user was interacting with it. If
you are familiar with the Java Swing testing tool called Jemmy, it's
very similar in design.

Is there any interest out there for a tool like this? I am about to
create a sourceforge project, but first wanted to get a feel for the need.

Thanks,

Brian



 



[flexcoders] Re: navigateToURL bind to datagrid selecteditem

2007-02-07 Thread Doug Lowder

I would do this in a function rather than in mxml.

 function doNavigate( ) : void {
 navigateToURL(new
URLRequest(http://www.mydomain.com/synapse/data/7117/documents/; +
drivergrid.selectedItem.uploadedfile, Download));
 }

...

mx:LinkButton label=Download click=doNavigate() ... /


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


 I have a linkbutton called Download
 The downloaded filename is in a datagrid column called uploadedfile.
 This uploaded filename varies, but the path stays the same
 www.mydomain.com/synapse/data/7117/documents/#uploadedfile#

 When the user selects a row in drivergrid, the driver details appear
 below the grid with a Download linkbutton.

 When the user clicks the download button, I want the driver file to
 begin to download.

 I don't know how to write the url below so that it binds the
 uploadedfile to the end of the url.

 This doesn't work.

 mx:LinkButton label=Download click=navigateToURL(new URLRequest
 ('http://www.mydomain.com/synapse/data/7117/documents/
 {drivergrid.selectedItem.uploadedfile}'), 'Download')/

 Will anyone help with the correct syntax?
 Also, how would you do a url parameter in a similar way?

 Thanks,
 Don






[flexcoders] Re: Alex's Distortion effects

2007-02-07 Thread danj520
Thank you Alex, you experts are great!

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

 Hi there, 
  
 SimpleFlip is just an MXML component, which contains the setup code for
 the effects. There are various examples provided in the download like
 that. Check out the Creating and Extending Flex 2 Components
 documentation, chapter Creating MXML components for more information.
  
 Best,
 Alex
  
 
  
 
  
 
 Alex Uhlmann 
 Consultant (Rich Internet Applications)
 Adobe Consulting
 Westpoint, 4 Redheughs Rigg, 
 South Gyle, Edinburgh, EH12 9DQ, UK
 p: +44 (0) 131 338 6969
 m: +44 (0) 7917 428 951
 [EMAIL PROTECTED]
 http://weblogs.macromedia.com/auhlmann
 
 Adobe Systems Europe Limited | Registered office: 151 St. Vincent
 Street, Glasgow G2 5NJ | Company No. SC101089
 
  
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of danj520
 Sent: 07 February 2007 00:45
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Alex's Distortion effects
 
 
 
 http://weblogs.macromedia.com/auhlmann/archives/2006/11/download_distor.
 cfm
 http://weblogs.macromedia.com/auhlmann/archives/2006/11/download_distor
 .cfm 
 
 The example has the following code:
 
 ?xml version=1.0 encoding=utf-8?
 
 mx:Application 
 xmlns:mx=http://www.adobe.com/2006/mxml
 http://www.adobe.com/2006/mxml 
 xmlns:distortion=view.distortion.*
 
 distortion:SimpleFlip /
 /mx:Application
 
 Do you run this or integrate into other code?
 
 I love these distortion effects, but don't have a clue how to
 implement them. Also get Design Mode: Error creating item SimpleFlip
 even though paths to classes are correct. Can anyone help me? Thanks
 again in advance..





  1   2   >