[flexcoders] Re: two tabnavigators with different tab colors?

2006-06-08 Thread shemeshkale



tnx allnothing of the suggested methods above works in flex 1.5 :the tabStyleName
property is not working in flex 1.5the getTabAt() is not recognized in flex 1.5and usig Tab in style (as in the ASDoc example) is setting the same color to all tabs throughout the applicatioso what r u saying?there is no way to do this in flex 1.5?

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



RE: [flexcoders] One last try: Javascript security

2006-06-08 Thread Matt Chotin










Did you compile with use-network=false?
I have a sample app that will be coming out where the HTML can communicate into
the SWF. And I know that the ExternalInterface was at least able to register
the callbacks out. I didnt try making calls from the SWF out.



Also have you tried putting !-- saved
from url="" -- at the top of your HTML file? I seem to remember
that being necessary to allow local scripting.



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of FineLine
Sent: Wednesday, June 07, 2006
5:22 PM
To: FlexCoders List
Subject: [flexcoders] One last
try: _javascript_ security













Hi.
I would like to raise this point one last time, before the Adobe engineers lock
in this aspect of framework behaviour in the final release.



Is
it really necessary to restrict the security of the Flash Player / Flex
Application model to such an extent that a flex application (SWF) located *on a users local hard disk* cannot make
calls to _javascript_ functions in its container page, also located on the same
hard disk? (I have described in the thread _javascript_ security my
various attempts to disprove this, to no avail).



I
understand why it should be impossible for Internet based applications to
operate within a strict sandbox, which prevents them from accessing local
resources. But surely, functions scripted within the applications
container page should also be considered to exist within the same sandbox? And
if not, how does it make sense that *Internet*
based apps can call external _javascript_, whilst local ones cant?



Flex
is a fantastic, emerging cross-platform framework technology. Imagine how
useful it would be to be able to use visual Flex components within
local-machine applications developed using other technologies, such as .NET,
Java, Delphi etc. Whilst Flex provides excellent user interface development
capabilities, it is not a tool for the kind of business application development
that these other environments excel in. It doesnt have the same data
modelling tools, low-level system APIs, encryption libraries, etc. etc.



If
you could use Flex to develop custom components, which you could then embed
within a host application using a browser component, then you would have the
best of both worlds. Those who develop Flex components would have a wider reach
for their products. Many of you will have heard of Mono, the cross-platform
.NET implementation. The one area where Mono lags most behind Microsofts
own implementation is in GUI development. Imagine developing a cross platform
app in .NET, using all its data access and business process modelling power,
with a Flex front end. Flex reads and writes .NET datasets very easily (just
convert them to XML, and youve got the power of E4X to do all your manipulation
within the UI layer).



Maybe
this can be put in the category of Flex was never meant to do
that, but really, all it would take is being able to use the
ExternalInterface API to accept commands, report events and exchange data with
the host application via scripted functions in the container page. Ideally, the
page shouldnt even have to exist on disk  it could be dynamically
created and fed to the browser component by the host application  but
thats getting a bit esoteric. The main thing is being able to establish
communications between Flex and its HTML page  an interface which
already exists in its entirety, but which is locked down in such a way that it
is not useable in this scenario, as it currently stands.



Again,
if anyone can prove me wrong on this, Id love to hear how.



Rant
over, have a nice day. Cheers, Tim.








__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






[flexcoders] Re: USing the FileReference Class

2006-06-08 Thread rama satoskar
How did u solve the problem then??
--- In flexcoders@yahoogroups.com, Luís Gustavo Sanabio
[EMAIL PROTECTED] wrote:

 I have the same problem.
 I think that is impossible, because of the security reasons.
 
 
 2006/6/7, rama satoskar [EMAIL PROTECTED]:
 
  Hi friends,
  I am using the FileReference class to select an image and show it
  directly at runtime. However I am not able to extract the complete
  file path from the browse property of the FileReference class object.
  When i select a particular image file only its name gets extracted .
  And when i apply the name to the source property of the image or the
  load function of the image object, it does not display the image.
  I dont know how to go abnout it!!
  Please
  help,
  Thanks in advance,
  Rama.
 
 
 
 
 
 
  --
  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
 
 
 
 
 
 
 







 Yahoo! Groups Sponsor ~-- 
Protect your PC from spy ware with award winning anti spy technology. It's free.
http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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] Re: Namespace hell

2006-06-08 Thread Tom Chiverton
On Thursday 08 June 2006 04:42, Ben Clinkinbeard wrote:
 namespace. If you can manage to figure out a way to delete a default
 namespace I would be mighty grateful.

Could you run the XML through a suitable regex, and then convert back to an 
e4x object ?

-- 
Tom Chiverton



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.

We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the 
Year at the 2005 Growth Company Awards



 Yahoo! Groups Sponsor ~-- 
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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] One last try: Javascript security

2006-06-08 Thread Tom Chiverton
On Thursday 08 June 2006 02:51, Michael Schmalle wrote:
 Don't take my word for it but, I think these issues Apollo is going to
 address.

Who, or what, is Apollo ?

-- 
Tom Chiverton



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.

We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the 
Year at the 2005 Growth Company Awards



 Yahoo! Groups Sponsor ~-- 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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] Memory consume more than 40% for two tomcat applications?

2006-06-08 Thread Dan
Hi ,

I am running a tomcat with only 2 nearlly identical FLEX applications. 
(For development)It is running on linux. However, it cause the Out of 
Memory so often. The tomcat startup use the following parameters
  -server -Xms512M -Xmx768M. Is that FLEX consumes extremely high 
memory? Or anything i need to configure in order to run 2 applications?


Daniel






 Yahoo! Groups Sponsor ~-- 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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] zombie warnings

2006-06-08 Thread Tom Chiverton
On Wednesday 07 June 2006 23:41, Jason wrote:
 warning x2 (for the same line), along with several others.  I've tried
 closing the project and restarting Flex.  Is there some kind, gentle
 way I can get it to clear them out?

Send your code, compiler output and bug report to the beta team :-)

-- 
Tom Chiverton



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.

We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the 
Year at the 2005 Growth Company Awards



 Yahoo! Groups Sponsor ~-- 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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] Memory consume more than 40% for two tomcat applications?

2006-06-08 Thread Carlos Rovira



Yep,I notice a huge amount of memory using FDS under JOnAS 4.6.6 on my windows test for the samples war, I have to run the server increasing the memory. Hope FDS team try to optimize that.I remember to have the issues with Flex 
1.0 and 1.5, and it would be great to have an eye on this behaviour as is one of the very first things people notice when trying to run a Flex app on their servers.On 6/8/06, 
Dan [EMAIL PROTECTED] wrote:









  



Hi ,

I am running a tomcat with only 2 nearlly identical FLEX applications. 
(For development)It is running on linux. However, it cause the Out of 
Memory so often. The tomcat startup use the following parameters
  -server -Xms512M -Xmx768M. Is that FLEX consumes extremely high 
memory? Or anything i need to configure in order to run 2 applications?

Daniel


  













-- ::| Carlos Rovira::| http://www.carlosrovira.com

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] Why suddenly these ugly transparent popups

2006-06-08 Thread wesubotnix
I have some problem with my popups, which has never occured before.
Now they suddenly show up with a transparent titlebar. Very ugly! The
titlebar says: 

mx:TitleWindow
xmlns:mx=http://www.adobe.com/2006/mxml; width=800 height=600
showCloseButton=true close=PopUpManager.removePopUp(this);
creationComplete=onCreationComplete(); alpha=1.0

The parent of the popup is an AS-component which is rendered on
demand. Does it have anythin to do with this? Anyone has the same problem?






 Yahoo! Groups Sponsor ~-- 
Protect your PC from spy ware with award winning anti spy technology. It's free.
http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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] Why suddenly these ugly transparent popups

2006-06-08 Thread Jeremy Lu




try this:


mx:TitleWindow

	xmlns:mx=http://www.adobe.com/2006/mxml width=800 height=600

showCloseButton=true close=PopUpManager.removePopUp(this);

creationComplete=onCreationComplete(); alpha=1.0
styleName=opaquePanel 

it will set three styles for you and make the panel opaque.
you can check this class definition in framework's default.css file.

cheers, 
Jeremy.

On 6/8/06, wesubotnix [EMAIL PROTECTED] wrote:









  



I have some problem with my popups, which has never occured before.
Now they suddenly show up with a transparent titlebar. Very ugly! The
titlebar says: 

mx:TitleWindow
	xmlns:mx=http://www.adobe.com/2006/mxml width=800 height=600
showCloseButton=true close=PopUpManager.removePopUp(this);
creationComplete=onCreationComplete(); alpha=1.0

The parent of the popup is an AS-component which is rendered on
demand. Does it have anythin to do with this? Anyone has the same problem?


  















__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] Re: Why suddenly these ugly transparent popups

2006-06-08 Thread wesubotnix
Thanks! That did it!

 styleName=opaquePanel 
 
 it will set three styles for you and make the panel opaque.
 you can check this class definition in framework's default.css file.
 
 cheers,
 Jeremy.







 Yahoo! Groups Sponsor ~-- 
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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] Is Adobe a reasonable business partner?

2006-06-08 Thread Jim Robson










Ive been developing in Flash and CF
for years, so I have some experience dealing with Macromedia, but Ive
never had to deal with Adobe until now.



So far, my impression is that the Adobe
developers are great (although most of the ones Im aware of probably
worked for Macromedia). However, I am not having good experiences with the customer
service or sales personnel.



Has anyone on the list had experience
dealing with Adobe as a business partner? Flex is a very cool product, but I
dont think its good to tolerate an unresponsive or arrogant
vendor. What are your impressions? 








__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






[flexcoders] Flex2B3 - set the combobox selectedItem within an inline script

2006-06-08 Thread bhaq1972
I've got a Combobox component declared as an itemEditor in a 
datagrid. during its initialize i set its dataprovider.
i then want to set its selecteditem or selectedIndex to be the same 
as datagrids dataprovider

any ideas ?

code
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 

mx:Script
![CDATA[

[Bindable]
public var dp:Array = [{ Artist:'Pavement', 
Album:'Slanted and Enchanted', Text:'two'},
{ Artist:'Beatles', 
Album:'The Best Of', Text:'four' },
{ Artist:'MrT', 
Album:'Gold Chains', Text:'five' },
{ 
Artist:'Hasselhoff', Album:'Kit', Text:'two' }];

]]
/mx:Script

mx:Component id=myCombo
mx:ComboBox labelField=Text initialize=startUP
()
mx:Script
![CDATA[
public var dp2:Array = [{Text:'one', 
Code:'1'}, {Text:'two', Code:'2'}, {Text:'three', Code:'3'}, 

{Text:'four', Code:'4'}, {Text:'five', Code:'5'}];

private function startUP():void
{
//set the dataprovider
this.dataProvider = dp2;

//set the 
selectedindex/selectedItem here

}
]]
/mx:Script
/mx:ComboBox
/mx:Component

mx:Text color=yellow width=70% text=how do i set the 
combo itemEditor selectedItem to be the same as the dg col 
value..within the inline component script/

mx:DataGrid id=dg dataProvider={dp} width=50% 
editable=true
mx:columns
mx:Array
mx:DataGridColumn dataField=Artist 
headerText=Artist /
mx:DataGridColumn dataField=Album 
headerText=Album /
mx:DataGridColumn dataField=Text 
itemEditor={myCombo}/
/mx:Array
/mx:columns
/mx:DataGrid

/mx:Application







 Yahoo! Groups Sponsor ~-- 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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] Re: USing the FileReference Class

2006-06-08 Thread Abdul Qabiz



Hi,Right, due to security sandbox you cant not get the complete path of local file. I know, it's frustrating and restrict us building some cool apps but security is also very important.What you can do, upload the image on server and again download to client cache... That's the only solution..
Or ask user to fill the path of directory, which is very unusable thing..-abdulOn 6/8/06, rama satoskar 
[EMAIL PROTECTED] wrote:








  



How did u solve the problem then??
--- In flexcoders@yahoogroups.com, Luís Gustavo Sanabio

[EMAIL PROTECTED] wrote:

 I have the same problem.
 I think that is impossible, because of the security reasons.
 
 
 2006/6/7, rama satoskar [EMAIL PROTECTED]:
 
  Hi friends,
  I am using the FileReference class to select an image and show it
  directly at runtime. However I am not able to extract the complete
  file path from the browse property of the FileReference class object.
  When i select a particular image file only its name gets extracted .
  And when i apply the name to the source property of the image or the
  load function of the image object, it does not display the image.
  I dont know how to go abnout it!!
  Please
  help,
  Thanks in advance,
  Rama.
 
 
 
 
 
 
  --
  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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



RE: [flexcoders] Flex2B3 - set the combobox selectedItem within an inline script

2006-06-08 Thread Jim Robson










Set the editorDataField attribute:



mx:DataGridColumn
dataField=Text editorDataField=Text itemEditor={myCombo}/











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bhaq1972
Sent: Thursday, June 08, 2006 7:07
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex2B3 -
set the combobox selectedItem within an inline script











I've got a Combobox component declared as an
itemEditor in a 
datagrid. during its initialize i set its dataprovider.
i then want to set its selecteditem or selectedIndex to be the same 
as datagrids dataprovider

any ideas ?

code
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml


mx:Script
![CDATA[

[Bindable]
public var dp:Array = [{ Artist:'Pavement', 
Album:'Slanted and Enchanted', Text:'two'},
{ Artist:'Beatles', 
Album:'The Best Of', Text:'four' },
{ Artist:'MrT', 
Album:'Gold Chains', Text:'five' },
{ 
Artist:'Hasselhoff', Album:'Kit', Text:'two' }]; 

]]
/mx:Script

mx:Component id=myCombo
mx:ComboBox labelField=Text initialize=startUP
()
mx:Script
![CDATA[
public var dp2:Array = [{Text:'one', 
Code:'1'}, {Text:'two', Code:'2'}, {Text:'three', Code:'3'}, 

{Text:'four', Code:'4'}, {Text:'five', Code:'5'}];

private function startUP():void
{
//set the dataprovider
this.dataProvider = dp2;

//set the 
selectedindex/selectedItem here

}
]]
/mx:Script
/mx:ComboBox
/mx:Component

mx:Text color=yellow width=70% text=how do i
set the 
combo itemEditor selectedItem to be the same as the dg col 
value..within the inline component script/

mx:DataGrid id=dg dataProvider={dp}
width=50% 
editable=true
mx:columns
mx:Array
mx:DataGridColumn dataField=Artist 
headerText=Artist /
mx:DataGridColumn dataField=Album 
headerText=Album /
mx:DataGridColumn dataField=Text 
itemEditor={myCombo}/
/mx:Array
/mx:columns
/mx:DataGrid

/mx:Application






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






[flexcoders] use of FileReference Class

2006-06-08 Thread rama satoskar
Hi all,
This is my second post regarding FileReference class. I am new to flex
so excuse if this is a simple question for all the coders here. 
I want to be able to locate the complete path of the image or the file
select using the browse() method of the FileReference class
object..Someone earlier told me that it is not possible to do so due
to security reasons!
I donot understand why?

Please help,

Rama. 






 Yahoo! Groups Sponsor ~-- 
Everything you need is one click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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: Flex2B3 - set the combobox selectedItem within an inline script

2006-06-08 Thread bhaq1972
thanks but it hasn't done what i want (thanks anyway).

However, I have managed to get success by doing the following code 
in creationComplete of the defined component.


mx:Component id=myCombo
 mx:ComboBox labelField=Text initialize=startUP()
 creationComplete=doThis()
 mx:Script
 ![CDATA[
 public var dp2:Array = [{Text:'one', Code:'1'}, {Text:'two', 
Code:'2'}, {Text:'three', Code:'3'},  {Text:'four', Code:'4'}, 
{Text:'five', Code:'5'}];

 private function startUP():void
 {
  //set the dataprovider
  this.dataProvider = dp2;
 }

 private function doThis():void
 {
   var myListData:DataGridListData = DataGridListData(listData);
   for(var i:int=0;ithis.dataProvider.length;i++)
   {
 if(this.dataProvider[i].Text == data[myListData.dataField])
 {
index = i;
break;
 }
   }
   this.selectedIndex = (index == -1) ? 0 : index;
 }
]]
 /mx:Script
 /mx:ComboBox
/mx:Component


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

 Set the editorDataField attribute:
 
  
 
 mx:DataGridColumn dataField=Text editorDataField=Text
 itemEditor={myCombo}/
 
  
 
   _  
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of bhaq1972
 Sent: Thursday, June 08, 2006 7:07 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex2B3 - set the combobox selectedItem 
within an
 inline script
 
  
 
 I've got a Combobox component declared as an itemEditor in a 
 datagrid. during its initialize i set its dataprovider.
 i then want to set its selecteditem or selectedIndex to be the 
same 
 as datagrids dataprovider
 
 any ideas ?
 
 code
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe. 
http://www.adobe.com/2006/mxml
 com/2006/mxml 
 
 mx:Script
 ![CDATA[
 
 [Bindable]
 public var dp:Array = [{ Artist:'Pavement', 
 Album:'Slanted and Enchanted', Text:'two'},
 { Artist:'Beatles', 
 Album:'The Best Of', Text:'four' },
 { Artist:'MrT', 
 Album:'Gold Chains', Text:'five' },
 { 
 Artist:'Hasselhoff', Album:'Kit', Text:'two' }]; 
 
 ]]
 /mx:Script
 
 mx:Component id=myCombo
 mx:ComboBox labelField=Text initialize=startUP
 ()
 mx:Script
 ![CDATA[
 public var dp2:Array = [{Text:'one', 
 Code:'1'}, {Text:'two', Code:'2'}, {Text:'three', Code:'3'}, 
 
 {Text:'four', Code:'4'}, {Text:'five', Code:'5'}];
 
 private function startUP():void
 {
 //set the dataprovider
 this.dataProvider = dp2;
 
 //set the 
 selectedindex/selectedItem here
 
 }
 ]]
 /mx:Script
 /mx:ComboBox
 /mx:Component
 
 mx:Text color=yellow width=70% text=how do i set the 
 combo itemEditor selectedItem to be the same as the dg col 
 value..within the inline component script/
 
 mx:DataGrid id=dg dataProvider={dp} width=50% 
 editable=true
 mx:columns
 mx:Array
 mx:DataGridColumn dataField=Artist 
 headerText=Artist /
 mx:DataGridColumn dataField=Album 
 headerText=Album /
 mx:DataGridColumn dataField=Text 
 itemEditor={myCombo}/
 /mx:Array
 /mx:columns
 /mx:DataGrid
 
 /mx:Application








 Yahoo! Groups Sponsor ~-- 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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] Custom Panel (with buttons on title portion of the border)

2006-06-08 Thread Jordan Snyder



Hello all,

I'm simply trying to get a couple of buttons on a panel (plus and minus
buttons, similar to most Mac software). I'd like to put it on top
of the title portion of the border, at the top, but of course since I
can't simply change z-order, the button sneaks behind the panel.
I'm only mildly familiar with creating a custom AS-driven component to
extend Panel, so the actual solution has been alluding me. I
found something that Jesse Warden has done, but his example was
actually a little over my head. I'm a Java and AS2 developer, but
a lot of these specific AS3 classes are blocking my road. 

What is the simplest/best way to do this? 

Any help is GREATLY appreciated!


Cheers


Jordan Snyder
Applications Developer
Image Action LLC
www.imageaction.com

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Why suddenly these ugly transparent popups

2006-06-08 Thread Phil Marston
I don't know, but I'd change alpha to 100

just a thought,

Phil

wesubotnix wrote:
 I have some problem with my popups, which has never occured before.
 Now they suddenly show up with a transparent titlebar. Very ugly! The
 titlebar says: 

 mx:TitleWindow
   xmlns:mx=http://www.adobe.com/2006/mxml; width=800 height=600
 showCloseButton=true close=PopUpManager.removePopUp(this);
 creationComplete=onCreationComplete(); alpha=1.0

 The parent of the popup is an AS-component which is rendered on
 demand. Does it have anythin to do with this? Anyone has the same problem?







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



  


   

-- 
__ 
Phil Marston 
Learning Technologist
Learning Technology Unit 
Edward Wright G33, University of Aberdeen, Aberdeen, AB24 3QY, UK
[EMAIL PROTECTED] Tel: +44(0)1224 273329 / +44(0)7798 723660 
http://www.abdn.ac.uk/diss/ltu/pmarston/
http://www.abdn.ac.uk/diss/ltu/
__

The University of Aberdeen Open Day 29th August 2006
Booking is essential
www.abdn.ac.uk/openday
email [EMAIL PROTECTED]
or call 0800 027 1495



 Yahoo! Groups Sponsor ~-- 
Everything you need is one click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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] Marquee images in flex

2006-06-08 Thread Ravindra Suthar












Hi all,



I would like to marquee images using flex.
And images will be load using xml. Please help me for that.



Regards



Ravindra Suthar






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






Re: [flexcoders] Viewing HTML

2006-06-08 Thread Phil Marston
Hi Suzy,

I can't remember which blog I saw it on (one of the Adobe guys I think), 
but I saw an example using an IFrame to load the HTML in.  Then a custom 
component in the Flex movie sent messages to Javascript so the IFrame 
always appeared in the right place and the right size over the Flex page 
- it worked really nicely and sound like just what you need - sorry I 
can't be more help, but perhaps this'll jog the memory of someone who as 
a memory!

HTH

Phil

Suzy Lawson wrote:
 Hello Group-
   I have an app that receives XML data over the socket. Specifically,
 it is data that is in 2 formats (plain text and HTML).

 The HTML that gets sent represents the FULL html code (i.e. the
 top-level 'html', 'meta', 'head', 'style', 'div', 'body' tags etc..).

 Sometimes the tags have namespaces and even 'class' attributes
 assigned to them which relate to styles defined w/i the style tag.

 For this reason, I can't just set the XML value to the 'htmlText'
 attribute of a text field. 

 I tried using the ExternalInterface API and pass the HTML (see example
 below) to a javscript method which opens a new window and calls
 'document.write(passedValueFromFlex)', but that does not work b/c of
 the extra rows between tags. If I manually remove the white spaces
 from each row where the HTML is one long String...it works fine. 

 Using a parser to handle that would be near impossible to create
 though. Does anyone have any ideas for a solution (to display HTML) 

 Thanks.



 message
   plainTextThis is the message./plainText
   htmlTextlt;htmlgt;



 lt;headgt;

 lt;/headgt;



 lt;body lang=EN-USgt;

 This is the lt;bgt;messagelt;/bgt;.

 lt;/bodygt;



 lt;/htmlgt;
 /htmlText
 /message







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



  


   

-- 
__ 
Phil Marston 
Learning Technologist
Learning Technology Unit 
Edward Wright G33, University of Aberdeen, Aberdeen, AB24 3QY, UK
[EMAIL PROTECTED] Tel: +44(0)1224 273329 / +44(0)7798 723660 
http://www.abdn.ac.uk/diss/ltu/pmarston/
http://www.abdn.ac.uk/diss/ltu/
__

The University of Aberdeen Open Day 29th August 2006
Booking is essential
www.abdn.ac.uk/openday
email [EMAIL PROTECTED]
or call 0800 027 1495



 Yahoo! Groups Sponsor ~-- 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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] Using E4X with attributes in XML tags

2006-06-08 Thread Sonja Duijvesteijn



some_label.text=xml_object.ItemID.Title.toString();You want the Title from the ItemID not from the xml object. some_label.text=xml_object.(@xmlns==...).ItemID;
I'm not sure why it thinks that @xmlns doesn't exists but it should be == as it's not an assignment. Kind regards,Sonja Duijvesteijn2006/6/7, Charles 
[EMAIL PROTECTED]:








  



Hi everyone,

This is a follow-up question from my last post  http://groups.yahoo.com/group/flexcoders/message/38691?threaded=1var=1
. I've managed to use an XML object instead of an XMLDocument object, so that I can utilize E4X to parse the XML. BUT, my new problem is that for some xml results that are returned, the tags have attributes, and now the calls to access the child nodes don't work anymore. For instance...


var xml_object = Item xmlns=some.namespace.com //Item tag now has attributexmlns=...
 ItemID11579339/ItemID SiteUS/Site TitleHalo 2 (Xbox)/Title CurrencyUSD/Currency
 SiteHostedPicture GalleryTypehttp://somesite.com/somepicture.jpg
/GalleryType /SiteHostedPicture PaymentMethodsPayPal/PaymentMethods /Item

So, calls that used to work to access child nodes, such as some_label.text=xml_object.Title,which would return the items title,used to work but now they just display nothing...? I've tried using the @ attributeoperator in calls such as 
some_label.text=xml_object.(@xmlns=...).ItemID, but still nothing (I actually get an error for that last call - undefined property 'xmlns'). So now I'm stuck until I can figure out how to access those child nodes with the attribute on there, or to somehow parse the XMl and remove the attribute before I try to access the child nodes.


Thanks in advance


Charles

  















__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] FDS/CF flex-data-service.xml

2006-06-08 Thread Bjorn Schultheiss
Hi List,

Within the Mystic doc: Using Flex Data Service with Assembler

It specifies a destination to use in the flex-data-service.xml;
I used it and flex server doesn't like it on startup.

It dies at the server tag.
In the docs this is what is defined in the server tag.

server
  assembler
componentsamples.contact.ContactAssembler/component
hostnamelocalhost/hostname
access
  method-access-levelremote/method-access-level
/access
property-case
  force-cfc-lowercasefalse/force-cfc-lowercase
  force-query-lowercasefalse/force-query-lowercase
  force-struct-lowercasefalse/force-struct-lowercase
/property-case
  /assembler
  fill-method
namefill/name
  /fill-method
  sync-method
namesync/name
  /sync-method
  get-method
nameget/name
  /get-method
  count-method
namecount/name
  /count-method
/server

As soon as I add any of the tags within the server tags Flex does not accept
them
// Unexpected tags found in properties, please fix them before continuing
//

Any help

Regards,
 
Bjorn Schultheiss
Senior Flash Developer
QDC Technologies 


 Yahoo! Groups Sponsor ~-- 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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/
 
attachment: winmail.dat

[flexcoders] insert image on richtexteditor

2006-06-08 Thread Jesús Iglesias
Title: Mensaje





Hi, 


I 
have added a new control to a richtexteditor to let user insert images. 

I'm 
inserting the image this way:

var 
myTARange:TextRange = new TextRange(editor, false, 10, 
10);myTARange.htmlText="img src="" /";

But 
the image is not inserted. If I do this:

editor.textArea.htmlText+="img src="" 
/";

the 
image is inserted and displayed.

How 
to insert an image in the middle of the text?
Jesús 
IglesiasAlvento Soluciones MóvilesPoeta Querol, 5 - 246002 Valencia 
(España)[tel]: (+34) 96.353.02.15[fax]: (+34) 96.353.08.09[e-mail]: 
[EMAIL PROTECTED][web]: www.alvento.com

Este correo 
electrónico y, en su caso, cualquier fichero anexo al mismo, contiene 
información de carácter confidencial exclusivamente dirigida a su destinatario o 
destinatarios y propiedad de Alvento Soluciones S.A. Queda prohibida su 
divulgación, copia o distribución a terceros sin la previa autorización escrita 
de Alvento Soluciones S.A., en virtud de la legislación vigente. En el caso de 
haber recibido este correo electrónico por error, se ruega notificar 
inmediatamente esta circunstancia mediante reenvío a la dirección electrónica 
del remitente y la destrucción del mismo.

The information in this e-mail and in any attachments is classified as 
Alvento Soluciones S.A. Confidential and Proprietary Information and solely for 
the attention and use of the named addressee(s). You are hereby notified that 
any dissemination, distribution or copy of this communication is prohibited 
without the prior written consent of Alvento Soluciones S.A. and it is strictly 
prohibited by law. If you have received this communication by error, please, 
notify the sender by replying e-mail.

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Why suddenly these ugly transparent popups

2006-06-08 Thread Sonja Duijvesteijn



I had the same problem, not sure where it came from however. setStyle(borderStyle, solid) seemed to fix it.Hope this helps,Sonja Duijvesteijn
2006/6/8, wesubotnix [EMAIL PROTECTED]:









  



I have some problem with my popups, which has never occured before.
Now they suddenly show up with a transparent titlebar. Very ugly! The
titlebar says: 

mx:TitleWindow
	xmlns:mx=http://www.adobe.com/2006/mxml width=800 height=600
showCloseButton=true close=PopUpManager.removePopUp(this);
creationComplete=onCreationComplete(); alpha=1.0

The parent of the popup is an AS-component which is rendered on
demand. Does it have anythin to do with this? Anyone has the same problem?


  















__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] SWFLoader.content not populated

2006-06-08 Thread Steve Gilchrist



When I create a SWFLoader class in actionscript (see below) the content property is null. If I use mx:SWFLoader tag it is set with the SystemManager object of the loaded swf. Is there something I need to be doing in actionscript to have content populated? 
Thanks Steve mx:Script  ![CDATA[   import mx.controls.SWFLoader;   import mx.controls.Button;   public function buildASLoader():void { 
var app1loader:SWFLoader = new SWFLoader();var url:String = samples/Application1.swf; app1loader.id = app1loader;
app1loader.load(url);  mainBucket.addChild(app1loader);}  ]] /mx:Script

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] € char may not appear on linux servers

2006-06-08 Thread Antoine Malpel
Hi, I run my application locally on a WindowsXP and the £$€ whatever 
char appear well...
But When I upload the application to my Dedian production serveur the € 
(EURO) char do not appear, havind instead an empty square char...
Do I need to specify something in flex / tomcat conf files ? upload 
somewhere the TTF (verdana) ?

thanks


 Yahoo! Groups Sponsor ~-- 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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] �servers

2006-06-08 Thread Paul Hastings
Antoine Malpel wrote:
 But When I upload the application to my Dedian production serveur the � 
 (EURO) char do not appear, havind instead an empty square char...

usually means the browser can't render the char w/the font it's using. if it's 
question marks (???) that means your data is garbaged.


 Yahoo! Groups Sponsor ~-- 
Home is just a click away.� Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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] Custom Panel (with buttons on title portion of the border)

2006-06-08 Thread Michael Schmalle



Hm,

I made my own widow but, if I remeber correctly the 'titleBar' is a UIComponent.

1) In creatChildre() override

  if (!minimizeButton )
  {
   minimizeButton = new Button();
   minimizeButton .styleName = this;
   minimizeButton
.addEventListener(MouseEvent.CLICK, minimizeButton_clickHandler);
 titleBar.addChild(minimizeButton );
 }


2) In layoutChrome() override

- you must position the new button and shrink the textfield
Below are the current assets of the tileBar instance

- titleIconObject
- titleTextField
- closeButton

and now;

- minimizeButton

Hope that gets you started,

Peace, Mike

PS I might have missed one or two steps but that is the gist.

On 6/7/06, Jordan Snyder [EMAIL PROTECTED] wrote:









  



Hello all,

I'm simply trying to get a couple of buttons on a panel (plus and minus
buttons, similar to most Mac software). I'd like to put it on top
of the title portion of the border, at the top, but of course since I
can't simply change z-order, the button sneaks behind the panel.
I'm only mildly familiar with creating a custom AS-driven component to
extend Panel, so the actual solution has been alluding me. I
found something that Jesse Warden has done, but his example was
actually a little over my head. I'm a Java and AS2 developer, but
a lot of these specific AS3 classes are blocking my road. 

What is the simplest/best way to do this? 

Any help is GREATLY appreciated!


Cheers


Jordan Snyder
Applications Developer
Image Action LLC
www.imageaction.com

  













-- What goes up, does come down.

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Why suddenly these ugly transparent popups

2006-06-08 Thread Michael Schmalle



That styleName solution sets titlebar and statusbar alpha and fills.

It is a solution if you want contrast from the content of the Panel.

Peace, MikeOn 6/8/06, Sonja Duijvesteijn [EMAIL PROTECTED] wrote:









  



I had the same problem, not sure where it came from however. setStyle(borderStyle, solid) seemed to fix it.Hope this helps,Sonja Duijvesteijn

2006/6/8, wesubotnix [EMAIL PROTECTED]:










  



I have some problem with my popups, which has never occured before.
Now they suddenly show up with a transparent titlebar. Very ugly! The
titlebar says: 

mx:TitleWindow
	xmlns:mx=http://www.adobe.com/2006/mxml width=800 height=600
showCloseButton=true close=PopUpManager.removePopUp(this);
creationComplete=onCreationComplete(); alpha=1.0

The parent of the popup is an AS-component which is rendered on
demand. Does it have anythin to do with this? Anyone has the same problem?


  















  













-- What goes up, does come down.

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Marquee images in flex

2006-06-08 Thread Tom Chiverton
On Thursday 08 June 2006 10:28, Ravindra Suthar wrote:
 I would like to marquee images using flex. 

Do what ?

-- 
Tom Chiverton



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.

We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the 
Year at the 2005 Growth Company Awards



 Yahoo! Groups Sponsor ~-- 
Everything you need is one click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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] Remove selected items from an ArrayCollection / DataGrid?

2006-06-08 Thread Jim Robson










I am trying to give users the ability to remove selected
items from a DataGrid. The idea is that the user selects the items to remove,
then clicks the Remove Selected button. The problem is that if
the user selects more than one item, then not all of the selected items will be
removed. If the user selects 3 items, the app usually removes 2 of them
(although it occasionally only removes 1). If the user selects 4 items, it
usually removes 3, and so forth. 



Can anyone see the problem in the code below? 



?xml version=1.0
encoding=utf-8?

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

 

 mx:Model id=mTest

 services

 service
type=Plumbing cost=$100Fix leaky
drain/service

 service
type=Electrical cost=$200Wire stairwell
lighting/service

 service
type=Roofing cost=$300Install vent pipe
boot/service

 service
type=Carpentry cost=$400Replace entry
door/service

 service
type=Plumbing cost=$500Install bath
tub/service

 service
type=Electrical cost=$600Wire home
office/service

 service
type=Roofing cost=$700Install ice amp; water
shield/service

 service
type=Carpentry cost=$800Install sliding patio
door/service

 /services

 /mx:Model

 mx:ArrayCollection id=acTest
source={mTest.services.service} /

 

 mx:Script

 ![CDATA[

 import
mx.collections.ArrayCollection;

 

 private function removeSelected():void{

  for(var i:int=0;
idgTest.selectedIndices.length; i++){

  acTest.removeItemAt(dgTest.selectedIndices[i]);

  }

 }

 

 ]]

 /mx:Script

 mx:VBox width=400
height=600

 

 mx:DataGrid
id=dgTest dataProvider={acTest} width=400
height=500 allowMultipleSelection=true

 mx:columns

 mx:DataGridColumn
headerText=Type dataField=type /

 mx:DataGridColumn
headerText=Service dataField=service /

  mx:DataGridColumn
headerText=Cost dataField=cost /

 /mx:columns

 /mx:DataGrid

 

 mx:Button id=btnTest
click=removeSelected(); label=Remove Selected /

 

 /mx:VBox

 



/mx:Application




__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___





[flexcoders] Re: Viewing HTML

2006-06-08 Thread Suzy Lawson
Yeah, that was Christophe's blog I believe. The problem with that is
the iFrame is loading an HTML page that already exists on a server. 

What I need is a way to display HTML stored in client-side memory as a
String. (wether it be in javascript or FLex).

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

 Hi Suzy,
 
 I can't remember which blog I saw it on (one of the Adobe guys I
think), 
 but I saw an example using an IFrame to load the HTML in.  Then a
custom 
 component in the Flex movie sent messages to Javascript so the IFrame 
 always appeared in the right place and the right size over the Flex
page 
 - it worked really nicely and sound like just what you need - sorry I 
 can't be more help, but perhaps this'll jog the memory of someone
who as 
 a memory!
 
 HTH
 
 Phil
 
 Suzy Lawson wrote:
  Hello Group-
I have an app that receives XML data over the socket. Specifically,
  it is data that is in 2 formats (plain text and HTML).
 
  The HTML that gets sent represents the FULL html code (i.e. the
  top-level 'html', 'meta', 'head', 'style', 'div', 'body' tags etc..).
 
  Sometimes the tags have namespaces and even 'class' attributes
  assigned to them which relate to styles defined w/i the style tag.
 
  For this reason, I can't just set the XML value to the 'htmlText'
  attribute of a text field. 
 
  I tried using the ExternalInterface API and pass the HTML (see example
  below) to a javscript method which opens a new window and calls
  'document.write(passedValueFromFlex)', but that does not work b/c of
  the extra rows between tags. If I manually remove the white spaces
  from each row where the HTML is one long String...it works fine. 
 
  Using a parser to handle that would be near impossible to create
  though. Does anyone have any ideas for a solution (to display
HTML) 
 
  Thanks.
 
 
 
  message
plainTextThis is the message./plainText
htmlTextlt;htmlgt;
 
 
 
  lt;headgt;
 
  lt;/headgt;
 
 
 
  lt;body lang=EN-USgt;
 
  This is the lt;bgt;messagelt;/bgt;.
 
  lt;/bodygt;
 
 
 
  lt;/htmlgt;
  /htmlText
  /message
 
 
 
 
 
 
 
  --
  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
 
 
 
   
 
 

 
 -- 
 __ 
 Phil Marston 
 Learning Technologist
 Learning Technology Unit 
 Edward Wright G33, University of Aberdeen, Aberdeen, AB24 3QY, UK
 [EMAIL PROTECTED] Tel: +44(0)1224 273329 / +44(0)7798 723660 
 http://www.abdn.ac.uk/diss/ltu/pmarston/
 http://www.abdn.ac.uk/diss/ltu/
 __
 
 The University of Aberdeen Open Day 29th August 2006
 Booking is essential
 www.abdn.ac.uk/openday
 email [EMAIL PROTECTED]
 or call 0800 027 1495








 Yahoo! Groups Sponsor ~-- 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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: Namespace hell

2006-06-08 Thread ben.clinkinbeard
 Could you run the XML through a suitable regex, and then convert
back to an 
 e4x object ?
 
 -- 
 Tom Chiverton


I dunno, my regex knowledge is pretty pathetic. Maybe I will look into
that if I get some time.

Ben






 Yahoo! Groups Sponsor ~-- 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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: changing states.

2006-06-08 Thread Jeremy Rottman
I got it figured out. I changed my menuHandler function to this.

  private function menuHandler(event : MenuEvent) : void {

 parentApplication.mainDisplay.currentState = [EMAIL PROTECTED];
}

works like a charm now. Thanks for the help on this TH and rob


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

 Maybe I didnt post this correctly.
 
 Here is how it should work. My main mxml file displays my menubar and
 my state manager. I have an action script file that goes with my
 menubar. That holds all the xml to populate the menubar and has a
 function that should change the states with in the stateManager file. 
 
 Here is that function.
 
   private function menuHandler(event : MenuEvent) : void {
 
currentState = [EMAIL PROTECTED];
 }
 
 If I was doing this on the parentApplication level I would use
 something liek this.
 
 parentApplication.currentState = 'Blah' or whatever.
 
 But to better organize my application, I have split the stateManager
 into a seperate file. The issue is I cant get the menubar to change
 the state inside my stateManager file. 
 
 I have my main mxml file that holds my application tag
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 xmlns=*
 xmlns:widgets=components.widgets.*
 xmlns:stateManager=components.managers.* layout=absolute
 
 
 
 !-- SEARCH WIDGET --
 widgets:widgetSearch x=0 y=0  /
 
 !-- MENU BAR WIDGET --
 widgets:widgetMenuBar x=0 y=50 /
 
 !-- STATE MANAGER --
 stateManager:stateManager x=0 y=94 id=mainDisplay /
 
 /mx:Application
 
 
 Then I have my Menu bar widget which contains my menu bar.
 
 ?xml version=1.0 encoding=utf-8?
 mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml;
 creationComplete=initCollections() width=100% height=100%
   !-- IMPORT asWidgetMenuBar.as --
   mx:Script source=as/asWidgetMenuBar.as /
   
 mx:MenuBar width=100% change=menuHandler(event) labelField=@label
 dataProvider={menuBarCollection} /
   
 /mx:Canvas
 
 
 Then I have my State Manager manager that holds all the information
 about the various states I have.
 
 ?xml version=1.0 encoding=utf-8?
 mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml;
 xmlns:contacts=components.views.contacts.*
 xmlns:content=components.views.content.*
 xmlns:education=components.views.education.*
 xmlns:marketing=components.views.marketing.*
 xmlns:reports=components.views.reports.*
 xmlns:setup=components.views.setup.*
 xmlns:today=components.views.today.*
 xmlns:tools=components.views.tools.*
 xmlns:transactions=components.views.transactions.* width=100%
 height=100% currentState=EditListing
   mx:states
   mx:State name=mainState/
   
   !-- EDIT LISTING STATE --
   mx:State name=EditListing id=EditListing 
 basedOn=mainState
   mx:AddChild
   transactions:viewEditListing /
   /mx:AddChild  
   /mx:State
   
   !-- EDIT SALE STATE --
   mx:State name=EditSale id=EditSale 
 basedOn=mainState
   mx:AddChild
   transactions:viewEditSale /   
   /mx:AddChild  
   /mx:State
   
   /mx:states
 /mx:Canvas







 Yahoo! Groups Sponsor ~-- 
Protect your PC from spy ware with award winning anti spy technology. It's free.
http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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: Remove selected items from an ArrayCollection / DataGrid?

2006-06-08 Thread Jim Robson











Correction: the app is actually removing 
of the selected items with each click of the button. The new version of the
code below has additional items in the data model in order to make this easier
to test. 



Any ideas? Am I just missing something
obvious?



?xml version=1.0
encoding=utf-8?

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

 

 mx:Model
id=mTest

 services

 service
type=Plumbing cost=$100 description=Fix leaky
drain /

 service
type=Electrical cost=$200 description=Wire
stairwell lighting/

 service
type=Roofing cost=$300 description=Install vent
pipe boot/

 service
type=Carpentry cost=$400 description=Replace
entry door/

 service
type=Plumbing cost=$500 description=Install bath
tub/

 service
type=Electrical cost=$600 description=Wire home
office/

 service
type=Roofing cost=$700 description=Install ice
amp; water shield/

 service
type=Carpentry cost=$800 description=Install
sliding patio door/

 service
type=Plumbing cost=$900 description=Install hot
tub/

 service
type=Electrical cost=$1000 description=Install
service box/

 service
type=Roofing cost=$1100 description=Shingle
one-car garage/

 service
type=Carpentry cost=%1200 description=Build small
deck/

 /services

 /mx:Model

 mx:ArrayCollection
id=acTest source={mTest.services.service} /

 

 mx:Script

 ![CDATA[

 import
mx.collections.ArrayCollection;





private function removeSelected():void{


 for(var
i:int = 0; i  dgTest.selectedIndices.length; i++){


 acTest.removeItemAt(dgTest.selectedIndices[i]);


 }


}




 ]]

 /mx:Script

 

 mx:VBox
width=400 height=600

 

 mx:DataGrid
id=dgTest dataProvider={acTest} width=400
height=500 allowMultipleSelection=true

 mx:columns

 mx:DataGridColumn
headerText=Type dataField=type /

 mx:DataGridColumn
headerText=Service dataField=description /

 mx:DataGridColumn
headerText=Cost dataField=cost /

 /mx:columns

 /mx:DataGrid

 

 mx:Button
id=btnTest click=removeSelected(); label=Remove
Selected /

 

 /mx:VBox

 



/mx:Application











From: Jim Robson
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 08, 2006 9:14
AM
To: 'flexcoders@yahoogroups.com'
Subject: Remove selected items
from an ArrayCollection / DataGrid?





I am trying to give users the ability to remove selected
items from a DataGrid. The idea is that the user selects the items to remove,
then clicks the Remove Selected button. The problem is that if
the user selects more than one item, then not all of the selected items will be
removed. If the user selects 3 items, the app usually removes 2 of them (although
it occasionally only removes 1). If the user selects 4 items, it usually
removes 3, and so forth. 



Can anyone see the problem in the code below? 



?xml version=1.0
encoding=utf-8?

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





mx:Model id=mTest


services


service type=Plumbing cost=$100Fix leaky
drain/service


service type=Electrical cost=$200Wire stairwell
lighting/service


service type=Roofing cost=$300Install vent pipe
boot/service


service type=Carpentry cost=$400Replace entry
door/service


service type=Plumbing cost=$500Install bath
tub/service


service type=Electrical cost=$600Wire home
office/service


service type=Roofing cost=$700Install ice
amp; water shield/service


service type=Carpentry cost=$800Install sliding
patio door/service


/services


/mx:Model


mx:ArrayCollection id=acTest
source={mTest.services.service} /





mx:Script


![CDATA[


import mx.collections.ArrayCollection;





private function removeSelected():void{


 for(var
i:int=0; idgTest.selectedIndices.length; i++){



acTest.removeItemAt(dgTest.selectedIndices[i]);


 }


}





]]


/mx:Script


mx:VBox width=400 height=600





mx:DataGrid id=dgTest dataProvider={acTest}
width=400 height=500
allowMultipleSelection=true


mx:columns


mx:DataGridColumn headerText=Type
dataField=type /


mx:DataGridColumn headerText=Service
dataField=service /



mx:DataGridColumn headerText=Cost
dataField=cost /


/mx:columns


/mx:DataGrid





mx:Button id=btnTest click=removeSelected(); label=Remove
Selected /





/mx:VBox






/mx:Application




__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the 

[flexcoders] Re: Using E4X with attributes in XML tags

2006-06-08 Thread Geoffrey Williams
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=* 
creationComplete=init ()
mx:Script
![CDATA[
public function init ():void {
var xml_object:XML = Item 
xmlns=some.namespace.com
 ItemID11579339/ItemID
 SiteUS/Site
 TitleHalo 2 (Xbox)/Title
 CurrencyUSD/Currency 
 SiteHostedPicture
 
GalleryTypehttp://somesite.com/somepicture.jpg /GalleryType
 /SiteHostedPicture
 PaymentMethodsPayPal/PaymentMethods
 /Item;

// Get Default XML Namespace 
var item_ns:Namespace = xml_object.namespace ();

// Reference nodes using namespace prefix
trace (String (xml_object..item_ns::Title));
}
]]
/mx:Script
/mx:Application

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

 some_label.text=xml_object.ItemID.Title.toString();
 You want the Title from the ItemID not from the xml object.
 
 some_label.text=xml_object.(@xmlns==...).ItemID;
 I'm not sure why it thinks that @xmlns doesn't exists but it 
should be == as
 it's not an assignment.
 
 Kind regards,
 Sonja Duijvesteijn
 
 
 2006/6/7, Charles [EMAIL PROTECTED]:
 
Hi everyone,
 
 
 
  This is a follow-up question from my last post 
  http://groups.yahoo.com/group/flexcoders/message/38691?
threaded=1var=1 .
  I've managed to use an XML object instead of an XMLDocument 
object, so that
  I can utilize E4X to parse the XML.  BUT, my new problem is that 
for some
  xml results that are returned, the tags have attributes, and now 
the calls
  to access the child nodes don't work anymore.  For instance...
 
 
 
  var xml_object = Item xmlns=some.namespace.com  // Item tag 
now has
  attribute xmlns=...
   ItemID11579339/ItemID
   SiteUS/Site
   TitleHalo 2 (Xbox)/Title
   CurrencyUSD/Currency
   SiteHostedPicture
   
GalleryTypehttp://somesite.com/somepicture.jpg
  /GalleryType
   /SiteHostedPicture
   PaymentMethodsPayPal/PaymentMethods
   /Item
 
 
 
  So, calls that used to work to access child nodes, such as
  some_label.text=xml_object.Title, which would return the items 
title, used
  to work but now they just display nothing...?  I've tried using 
the @
  attribute operator in calls such as
  some_label.text=xml_object.(@xmlns=...).ItemID, but still 
nothing (I
  actually get an error for that last call - undefined 
property 'xmlns').  So
  now I'm stuck until I can figure out how to access those child 
nodes with
  the attribute on there, or to somehow parse the XMl and remove 
the attribute
  before I try to access the child nodes.
 
 
 
  Thanks in advance
 
 
 
 
 
  Charles
 
   
 








 Yahoo! Groups Sponsor ~-- 
Everything you need is one click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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] RemotingConnection not found in Mike Potter's Flex2AMFPHP tutorial

2006-06-08 Thread Duncan McMillan
Thanks Phil

I have further questions if you don't mind:

So I get from your restaurant link below that I have to use the
RemoteObject within Flex, but it says that these are used to reference
Java objects in the Java application server. But what I need is to
reference a php service in an XAMPP Apache server on the same labtop as
my Java application with Flex 1.5.

So I take it that the info in the otherplatforms link will do this if
I specify the gateway in the RemoteObject tab and the php service in the
source?

So how would I for example define a fully qualified source under my
XAMPP apache server for instance? and am I restricted to the amount of
args I reference?

This example also says that the protocol is http, do I not want to
output in AMF to be quicker?

Thanks for your patience

Duncan


Phil Marston wrote On 06/07/06 14:49,:
 
 
 If you're using F1.5 also check out this tut I found yesterday
 http://coenraets.com/tutorials/restaurant/index.jsp - handy for F2.0 as
 well if you've done Mike's tut
 
 HTH
 
 Phil
 
 Phil Marston wrote:
 
 Hi Duncan,

 The .as file does go at the same level as the .mxml file, but I don't
 think it'll work with 1.5 because the class libraries are different -
 RemotingConnection extends NetConnection and the whole structure of
 remoting seems to be different in Flex 2.0

 There's stuff on the AMFPHP site though about Flex 1.5 at the bottom
 of this page http://www.amfphp.org/docs/otherplatforms.html - if you
 get a 404 error just keep trying the server seems to be a bit flakey.

 HTH

 Phil

 Duncan McMillan wrote:

Phil

So do you mean that you put this RemotingConnection.as file in the same
DIR as the mxml file? I'm using Flex 1.5 and this example is not working
for me and complaining about the same thing.

I've also tried to take the package declaration out (as I'm not sure if
Flex1.5 likes package declarations) and it still doesn;t work

Thanks again

Duncan


Phil Marston wrote On 06/02/06 12:01,:
  

OK - so looks like I dumb!

For those of you who also turn out to be dumb ;-p when Mike speaks about
you already having RemotingConnection.as at the root of your project you
actually need to save the follow package code as RemotingConnection.as
and then you WILL have it!  I've wasted a day and half on this!  jeesh

HTH someone else

Phil Marston wrote:



I think I've traced it to not having the flash.net.* package installed 
(though Flex Builder isn't throwing a complaint about that it does say 
it doesn't know where it is) where can I get this package/library?

cheers,

Phil

Phil Marston wrote:
 

  

Hi,

I thought I'd seen this covered somewhere but cant find it.

I'm trying Mike Potter's tutorials on Flex2 and PHP and AMFPHP found 
here 
http://labs.adobe.com/wiki/index.php/Flex_Framework:tutorials:flex2_AMFPHP
 
and Flex is throwing a wobbly about the line;
public var gateway : RemotingConnection;

with the error
Type was not found or was not a compile-time constant: 
RemotingConnection.  

Can anyone shed light on this or point me in the right direction?

Cheers,

Phil

 
   



 

  

-- 
__ 
Phil Marston 
Learning Technologist
Learning Technology Unit 
Edward Wright G33, University of Aberdeen, Aberdeen, AB24 3QY, UK
[EMAIL PROTECTED] Tel: +44(0)1224 273329 / +44(0)7798 723660 
http://www.abdn.ac.uk/diss/ltu/pmarston/
http://www.abdn.ac.uk/diss/ltu/
__

The University of Aberdeen Open Day 29th August 2006
Booking is essential
www.abdn.ac.uk/openday
email [EMAIL PROTECTED]
or call 0800 027 1495



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



SPONSORED LINKS
Web site design development
http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ
Computer software development
http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw
Software design and development
http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ

Macromedia flex
http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw
Software development best practice

RE: [flexcoders] Marquee images in flex

2006-06-08 Thread Andrew Trice










Take a look at Ben Stuckis blog
entry:



http://blog.benstucki.net/?id=23



-Andy





_

Andrew Trice

Cynergy Systems, Inc.

http://www.cynergysystems.com



Email: [EMAIL PROTECTED]

Office: 866-CYNERGY













From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ravindra Suthar
Sent: Thursday, June 08, 2006 5:29
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Marquee
images in flex















Hi all,



I would like to marquee images using flex. And images will be load
using xml. Please help me for that.



Regards



Ravindra Suthar












__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






[flexcoders] Re: Viewing HTML

2006-06-08 Thread tonyx_788
hi Suzy i think Phil is talking about coenraets blog,
this is the link   hope it helps

http://www.coenraets.com/apps/iframe/index.htm

**Saludos**
Tony

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

 Hi Suzy,
 
 I can't remember which blog I saw it on (one of the Adobe guys I
think), 
 but I saw an example using an IFrame to load the HTML in.  Then a
custom 
 component in the Flex movie sent messages to Javascript so the IFrame 
 always appeared in the right place and the right size over the Flex
page 
 - it worked really nicely and sound like just what you need - sorry I 
 can't be more help, but perhaps this'll jog the memory of someone
who as 
 a memory!
 
 HTH
 
 Phil
 
 Suzy Lawson wrote:
  Hello Group-
I have an app that receives XML data over the socket. Specifically,
  it is data that is in 2 formats (plain text and HTML).
 
  The HTML that gets sent represents the FULL html code (i.e. the
  top-level 'html', 'meta', 'head', 'style', 'div', 'body' tags etc..).
 
  Sometimes the tags have namespaces and even 'class' attributes
  assigned to them which relate to styles defined w/i the style tag.
 
  For this reason, I can't just set the XML value to the 'htmlText'
  attribute of a text field. 
 
  I tried using the ExternalInterface API and pass the HTML (see example
  below) to a javscript method which opens a new window and calls
  'document.write(passedValueFromFlex)', but that does not work b/c of
  the extra rows between tags. If I manually remove the white spaces
  from each row where the HTML is one long String...it works fine. 
 
  Using a parser to handle that would be near impossible to create
  though. Does anyone have any ideas for a solution (to display
HTML) 
 
  Thanks.
 
 
 
  message
plainTextThis is the message./plainText
htmlTextlt;htmlgt;
 
 
 
  lt;headgt;
 
  lt;/headgt;
 
 
 
  lt;body lang=EN-USgt;
 
  This is the lt;bgt;messagelt;/bgt;.
 
  lt;/bodygt;
 
 
 
  lt;/htmlgt;
  /htmlText
  /message
 
 
 
 
 
 
 
  --
  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
 
 
 
   
 
 

 
 -- 
 __ 
 Phil Marston 
 Learning Technologist
 Learning Technology Unit 
 Edward Wright G33, University of Aberdeen, Aberdeen, AB24 3QY, UK
 [EMAIL PROTECTED] Tel: +44(0)1224 273329 / +44(0)7798 723660 
 http://www.abdn.ac.uk/diss/ltu/pmarston/
 http://www.abdn.ac.uk/diss/ltu/
 __
 
 The University of Aberdeen Open Day 29th August 2006
 Booking is essential
 www.abdn.ac.uk/openday
 email [EMAIL PROTECTED]
 or call 0800 027 1495








 Yahoo! Groups Sponsor ~-- 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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] trouble with second axis in linechart (Scaling capabilities)

2006-06-08 Thread sp0rarb3jd3r
i am having trouble getting the second axis in my chart to update.
i am parsing xml-data into a chart.
the client needs more than one feed displayed, so I supply a combobox.
but when i switch from xml with larger numbers to an xml-feed with a
smaller, the second axis retains it's scale.
where as the first adopts beautifully to similar changes.
example xml_1: (2,100),(3,250),(4,900)
xml_2: (2,10),(3,105005),(4,23) 
switch first from xml_1 to xml_2 gives an okay scale.
from xml_2 back to xml_1 the second axis retains it's scale.

why is this a problem. because with that scale the xml_1 line then
becomes an almost straight line.

belows's the code i am using. (abbreviated - but just to give an
expression)´
hope somebody can help me out.
but this seems like a bug to me.


mx:LineChart id=linechart y=28 paddingLeft=5 height=190
width={linWidth} addingRight=5 dataProvider={goalArr}
secondDataProvider={goalArr} showDataTips=true
dataTipFunction=daTip styleName=shd
   mx:seriesFilters
 mx:Array/
 /mx:seriesFilters
mx:horizontalAxis
mx:CategoryAxis id=axis categoryField=time/
/mx:horizontalAxis 
mx:series
mx:Array  
mx:LineSeries  name=gh styleName=shd id=linie1 xField=time
yField=achieved displayName=Achieved 
lineSegmentRenderer=mx.charts.renderers.LineRenderermx:lineStroke
mx:Stroke color=#669933 weight=2/
/mx:lineStroke
/mx:LineSeries
/mx:Array
/mx:series
mx:secondSeries   
mx:Array
  
mx:LineSeries id=linie2 xField=time
yField=goal form=segment
lineSegmentRenderer=mx.charts.renderers.LineRenderer
displayName=Goal styleName=shdmx:lineStroke
mx:Stroke color=#63c007 weight=2/
/mx:lineStroke
/mx:LineSeries

mx:PlotSeries 
interactive=false
creationComplete=not(0x87f326,0xf38726,0x2687f3); id=plots
name=changes dataProvider={annoArr}
itemRenderer=Renderers.FlagRenderer xField=time yField=goal/
/mx:Array
/mx:secondSeries
/mx:LineChart 
  mx:Script
[Bindable]
private var cards:Array = [ {label:Clicks vs. Total Conversions,
where:testgraph.xml}, {label:Clicks vs. Page Views,
where:testgraph2.xml}, {label:Clicks vs. Conversion Rate,
where:testgraph3.xml},{label:Clicks vs. Profit,
where:testgraph4.xml} ];
 public function comboCha(ev:flash.events.Event):void{
 rq.url=ev.target.selectedItem.where;
 ld.load(rq);
linechart.dataProvider=goalArr;
axis.dataProvider=goalArr;
plots.dataProvider=annoArr;

 }  
 /mx:Script
 mx:ComboBox id=combo dataProvider={cards} width=200
x={linWidth-220} change=comboCha(event); /







 Yahoo! Groups Sponsor ~-- 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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: Viewing HTML

2006-06-08 Thread drome.dario
Suzy,
Taking Christophe's example, I think that you can inject your in-
memory-html into the HTMLDocument inside the iframe.

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

 Yeah, that was Christophe's blog I believe. The problem with that is
 the iFrame is loading an HTML page that already exists on a server. 
 
 What I need is a way to display HTML stored in client-side memory 
as a
 String. (wether it be in javascript or FLex).
 
 --- In flexcoders@yahoogroups.com, Phil Marston p.marston@ wrote:
 
  Hi Suzy,
  
  I can't remember which blog I saw it on (one of the Adobe guys I
 think), 
  but I saw an example using an IFrame to load the HTML in.  Then a
 custom 
  component in the Flex movie sent messages to Javascript so the 
IFrame 
  always appeared in the right place and the right size over the 
Flex
 page 
  - it worked really nicely and sound like just what you need - 
sorry I 
  can't be more help, but perhaps this'll jog the memory of someone
 who as 
  a memory!
  
  HTH
  
  Phil
  
  Suzy Lawson wrote:
   Hello Group-
 I have an app that receives XML data over the socket. 
Specifically,
   it is data that is in 2 formats (plain text and HTML).
  
   The HTML that gets sent represents the FULL html code (i.e. the
   top-level 'html', 'meta', 'head', 'style', 'div', 'body' tags 
etc..).
  
   Sometimes the tags have namespaces and even 'class' attributes
   assigned to them which relate to styles defined w/i the style 
tag.
  
   For this reason, I can't just set the XML value to 
the 'htmlText'
   attribute of a text field. 
  
   I tried using the ExternalInterface API and pass the HTML (see 
example
   below) to a javscript method which opens a new window and calls
   'document.write(passedValueFromFlex)', but that does not work 
b/c of
   the extra rows between tags. If I manually remove the white 
spaces
   from each row where the HTML is one long String...it works 
fine. 
  
   Using a parser to handle that would be near impossible to create
   though. Does anyone have any ideas for a solution (to display
 HTML) 
  
   Thanks.
  
  
  
   message
 plainTextThis is the message./plainText
 htmlTextlt;htmlgt;
  
  
  
   lt;headgt;
  
   lt;/headgt;
  
  
  
   lt;body lang=EN-USgt;
  
   This is the lt;bgt;messagelt;/bgt;.
  
   lt;/bodygt;
  
  
  
   lt;/htmlgt;
   /htmlText
   /message
  
  
  
  
  
  
  
   --
   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
  
  
  

  
  
 
  
  -- 
  __ 
  Phil Marston 
  Learning Technologist
  Learning Technology Unit 
  Edward Wright G33, University of Aberdeen, Aberdeen, AB24 3QY, UK
  p.marston@ Tel: +44(0)1224 273329 / +44(0)7798 723660 
  http://www.abdn.ac.uk/diss/ltu/pmarston/
  http://www.abdn.ac.uk/diss/ltu/
  __
  
  The University of Aberdeen Open Day 29th August 2006
  Booking is essential
  www.abdn.ac.uk/openday
  email openday@
  or call 0800 027 1495
 







 Yahoo! Groups Sponsor ~-- 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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] use of FileReference Class

2006-06-08 Thread Andrew Trice










The number 1 reason to not allow access to
the client machines file system is security (as mentioned before).
This would enable the possibility of someone creating a flex/flash application that
monitors the file structure of your local machine, potentially identifying any weaknesses
or important files. It could also potentially allow the execution of code
on the client machine.



This might still be possible using a java
applet, which references the local file system and returns the file path back to
your flex application via _javascript_. BUT, it will require changes to the
security permissions on the client machine. Honestly, this approach is a
hack. This is not really a feasible alternative for a public site. 



Unfortunately, there is no clean 
easy solution.



-Andy



_

Andrew Trice

Cynergy Systems, Inc.

http://www.cynergysystems.com



Email: [EMAIL PROTECTED]

Office: 866-CYNERGY













From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of rama satoskar
Sent: Thursday, June 08, 2006 8:00
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] use of
FileReference Class











Hi all,
This is my second post regarding FileReference class. I am new to flex
so excuse if this is a simple question for all the coders here. 
I want to be able to locate the complete path of the image or the file
select using the browse() method of the FileReference class
object..Someone earlier told me that it is not possible to do so due
to security reasons!
I donot understand why?

Please help,

Rama. 






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






[flexcoders] Re: zombie warnings

2006-06-08 Thread Jason
 Send your code, compiler output and bug report to the beta team :-)

Where?








 Yahoo! Groups Sponsor ~-- 
Everything you need is one click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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: zombie warnings

2006-06-08 Thread Jason
FYI, I got around the problem by creating a new project and copying
all the files into it.






 Yahoo! Groups Sponsor ~-- 
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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] use of FileReference Class

2006-06-08 Thread Andrew Trice










OR, you could make a call to _javascript_ file
object: input type=file /



This is much easier than the applet
approach.



-Andy





_

Andrew Trice

Cynergy Systems, Inc.

http://www.cynergysystems.com



Email: [EMAIL PROTECTED]

Office: 866-CYNERGY













From: Andrew Trice 
Sent: Thursday, June 08, 2006
10:43 AM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] use of
FileReference Class





The number 1 reason to not allow access to
the client machines file system is security (as mentioned before).
This would enable the possibility of someone creating a flex/flash application
that monitors the file structure of your local machine, potentially identifying
any weaknesses or important files. It could also potentially allow the
execution of code on the client machine.



This might still be possible using a java
applet, which references the local file system and returns the file path back
to your flex application via _javascript_. BUT, it will require changes to
the security permissions on the client machine. Honestly, this approach
is a hack. This is not really a feasible alternative for a public site.




Unfortunately, there is no clean 
easy solution.



-Andy



_

Andrew Trice

Cynergy Systems, Inc.

http://www.cynergysystems.com



Email: [EMAIL PROTECTED]

Office: 866-CYNERGY













From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of rama satoskar
Sent: Thursday, June 08, 2006 8:00
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] use of
FileReference Class











Hi all,
This is my second post regarding FileReference class. I am new to flex
so excuse if this is a simple question for all the coders here. 
I want to be able to locate the complete path of the image or the file
select using the browse() method of the FileReference class
object..Someone earlier told me that it is not possible to do so due
to security reasons!
I donot understand why?

Please help,

Rama. 






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






[flexcoders] selectedIndices are Strings???

2006-06-08 Thread Jim Robson










I dont understand why DataGrid.selectedIndices
returns an array of Strings. I thought that indices were generally integers. (For
example, Array.indexOf returns an int.) 

Can anyone explain why the selected index of a DataGrid is a
String?

When dgTest is a DataGrid instance, the
following code generates a compiler error:





var arr:Array = dgTest.selectedIndices;

for(var i:int in arr){

// do something

}



The error that the compiler returns is as follows: 

Implicit coercion of a value of type String to an
unrelated type int. 




__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___





Re: [flexcoders] Re: Namespace hell

2006-06-08 Thread Tom Chiverton
On Thursday 08 June 2006 14:34, ben.clinkinbeard wrote:
 I dunno, my regex knowledge is pretty pathetic. Maybe I will look into
 that if I get some time.

It'd just be something like
replace
/xmlns:=[.*]/
(i.e. start at 'xmlns=' and go to next '') with empty string.

Maybe just a simple string replace would work too.

-- 
Tom Chiverton



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.

We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the 
Year at the 2005 Growth Company Awards



 Yahoo! Groups Sponsor ~-- 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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: Remove selected items from an ArrayCollection / DataGrid?

2006-06-08 Thread bhaq1972
i reckon your the selectedIndicis is changing and therefore cannot 
be relied upon within your for loop.

try this. (as a starting point)

private function removeSelected():void
{
 var array1:Array = new Array();
 for(var j:int;j  dgTest.selectedIndices.length; j++)
 {
   var num1:int = dgTest.selectedIndices[j];

   array1.push(num1);
 }
 
 for(var i:int = 0; i  array1.length; i++)
 {
acTest.removeItemAt(array1[i]);
 }
}



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

 Correction: the app is actually removing ½ of the selected items 
with each
 click of the button. The new version of the code below has 
additional items
 in the data model in order to make this easier to test. 
 
  
 
 Any ideas? Am I just missing something obvious?
 
  
 
 ?xml version=1.0 encoding=utf-8?
 
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
 
 
 
 mx:Model id=mTest
 
 services
 
 service type=Plumbing 
cost=$100
 description=Fix leaky drain /
 
 service type=Electrical 
cost=$200
 description=Wire stairwell lighting/
 
 service type=Roofing 
cost=$300
 description=Install vent pipe boot/
 
 service type=Carpentry 
cost=$400
 description=Replace entry door/
 
 service type=Plumbing 
cost=$500
 description=Install bath tub/
 
 service type=Electrical 
cost=$600
 description=Wire home office/
 
 service type=Roofing 
cost=$700
 description=Install ice amp; water shield/
 
 service type=Carpentry 
cost=$800
 description=Install sliding patio door/
 
 service type=Plumbing 
cost=$900
 description=Install hot tub/
 
 service type=Electrical 
cost=$1000
 description=Install service box/
 
 service type=Roofing 
cost=$1100
 description=Shingle one-car garage/
 
 service type=Carpentry 
cost=%1200
 description=Build small deck/
 
 /services
 
 /mx:Model
 
 mx:ArrayCollection id=acTest
 source={mTest.services.service} /
 
 
 
 mx:Script
 
 ![CDATA[
 
 import 
mx.collections.ArrayCollection;
 
 
 
 private function removeSelected():void{
 
 for(var i:int = 0; i 
 dgTest.selectedIndices.length; i++){
 
  
 acTest.removeItemAt(dgTest.selectedIndices[i]);
 
 }
 
 }
 
 
 
 ]]
 
 /mx:Script
 
 
 
 mx:VBox width=400 height=600
 
 
 
 mx:DataGrid id=dgTest 
dataProvider={acTest}
 width=400 height=500 allowMultipleSelection=true
 
 mx:columns
 
 mx:DataGridColumn
 headerText=Type dataField=type  /
 
 mx:DataGridColumn
 headerText=Service dataField=description  /
 
 mx:DataGridColumn
 headerText=Cost dataField=cost  /
 
 /mx:columns
 
 /mx:DataGrid
 
 
 
 mx:Button id=btnTest 
click=removeSelected();
 label=Remove Selected /
 
 
 
 /mx:VBox
 
 
 
  
 
 /mx:Application
 
  
 
   _  
 
 From: Jim Robson [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, June 08, 2006 9:14 AM
 To: 'flexcoders@yahoogroups.com'
 Subject: Remove selected items from an ArrayCollection / DataGrid?
 
  
 
 I am trying to give users the ability to remove selected items 
from a
 DataGrid. The idea is that the user selects the items to remove, 
then clicks
 the Remove Selected button. The problem is that if the user 
selects more
 than one item, then not all of the selected items will be removed. 
If the
 user selects 3 items, the app usually removes 2 of them (although 
it
 occasionally only removes 1). If the user selects 4 items, it 
usually
 removes 3, and so forth. 
 
  
 
 Can anyone see the problem in the code below? 
 
  
 
 ?xml version=1.0 encoding=utf-8?
 
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
 
 
 
 mx:Model id=mTest
 
 services
 
 service type=Plumbing 
cost=$100Fix
 leaky drain/service
 
 service type=Electrical
 cost=$200Wire stairwell lighting/service
 
 service type=Roofing
 cost=$300Install vent pipe boot/service
 

RE: [flexcoders] Re: Remove selected items from an ArrayCollection / DataGrid?

2006-06-08 Thread Jim Robson










Yes, I suspect youre on the right
track (except for the fact that DataGrid indices are Strings  see my
other post on that subject). 

The other issue Ive encountered is
that the array needs to be sorted from greatest to least. Thats what Im
working on now. Of course, this is not straightforward either, because the DataGrid
indices are strings!



Thanks for the help!!!











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bhaq1972
Sent: Thursday, June 08, 2006
11:14 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Remove
selected items from an ArrayCollection / DataGrid?











i reckon your the selectedIndicis is changing and
therefore cannot 
be relied upon within your for loop.

try this. (as a starting point)

private function removeSelected():void
{
var array1:Array = new Array();
for(var j:int;j  dgTest.selectedIndices.length; j++)
{
var num1:int = dgTest.selectedIndices[j];

array1.push(num1);
}

for(var i:int = 0; i  array1.length; i++)
{
acTest.removeItemAt(array1[i]);
}
}

--- In [EMAIL PROTECTED]ups.com,
Jim Robson jim.robson@... 
wrote:

 Correction: the app is actually removing ½ of the selected items 
with each
 click of the button. The new version of the code below has 
additional items
 in the data model in order to make this easier to test. 
 
 
 
 Any ideas? Am I just missing something obvious?
 
 
 
 ?xml version=1.0 encoding=utf-8?
 
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml

 
 
 
 mx:Model id=mTest
 
 services
 
 service type=Plumbing 
cost=$100
 description=Fix leaky drain /
 
 service type=Electrical 
cost=$200
 description=Wire stairwell lighting/
 
 service type=Roofing 
cost=$300
 description=Install vent pipe boot/
 
 service type=Carpentry 
cost=$400
 description=Replace entry door/
 
 service type=Plumbing 
cost=$500
 description=Install bath tub/
 
 service type=Electrical 
cost=$600
 description=Wire home office/
 
 service type=Roofing 
cost=$700
 description=Install ice amp; water shield/
 
 service type=Carpentry 
cost=$800
 description=Install sliding patio door/
 
 service type=Plumbing 
cost=$900
 description=Install hot tub/
 
 service type=Electrical 
cost=$1000
 description=Install service box/
 
 service type=Roofing 
cost=$1100
 description=Shingle one-car garage/
 
 service type=Carpentry 
cost=%1200
 description=Build small deck/
 
 /services
 
 /mx:Model
 
 mx:ArrayCollection id=acTest
 source={mTest.services.service} /
 
 
 
 mx:Script
 
 ![CDATA[
 
 import 
mx.collections.ArrayCollection;
 
 
 
 private function removeSelected():void{
 
 for(var i:int = 0; i 
 dgTest.selectedIndices.length; i++){
 
 
 acTest.removeItemAt(dgTest.selectedIndices[i]);
 
 }
 
 }
 
 
 
 ]]
 
 /mx:Script
 
 
 
 mx:VBox width=400 height=600
 
 
 
 mx:DataGrid id=dgTest 
dataProvider={acTest}
 width=400 height=500 allowMultipleSelection=true
 
 mx:columns
 
 mx:DataGridColumn
 headerText=Type dataField=type /
 
 mx:DataGridColumn
 headerText=Service dataField=description
/
 
 mx:DataGridColumn
 headerText=Cost dataField=cost /
 
 /mx:columns
 
 /mx:DataGrid
 
 
 
 mx:Button id=btnTest 
click=removeSelected();
 label=Remove Selected /
 
 
 
 /mx:VBox
 
 
 
 
 
 /mx:Application
 
 
 
 _ 
 
 From: Jim Robson [mailto:jim.[EMAIL PROTECTED].] 
 Sent: Thursday, June 08, 2006 9:14 AM
 To: 'flexcoders@yahoogroups.com'
 Subject: Remove selected items from an ArrayCollection / DataGrid?
 
 
 
 I am trying to give users the ability to remove selected items 
from a
 DataGrid. The idea is that the user selects the items to remove, 
then clicks
 the Remove Selected button. The problem is that if the user 
selects more
 than one item, then not all of the selected items will be removed. 
If the
 user selects 3 items, the app usually removes 2 of them (although 
it
 occasionally only removes 1). If the user selects 4 items, it 
usually
 removes 3, and so forth. 
 
 
 
 Can anyone see the problem in the code below? 
 
 
 
 ?xml version=1.0 encoding=utf-8?
 
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml

 
 
 
 mx:Model id=mTest
 
 services
 
 service type=Plumbing 
cost=$100Fix
 leaky drain/service
 
 service type=Electrical
 cost=$200Wire stairwell lighting/service
 
 service type=Roofing
 cost=$300Install vent pipe boot/service
 
 service type=Carpentry
 cost=$400Replace entry door/service
 
 service type=Plumbing
 cost=$500Install bath tub/service
 
 service type=Electrical
 cost=$600Wire home office/service
 
 service type=Roofing
 cost=$700Install ice amp; water
shield/service
 
 service type=Carpentry
 cost=$800Install sliding patio door/service
 
 /services
 
 /mx:Model
 
 mx:ArrayCollection id=acTest
 source={mTest.services.service} /
 
 
 
 mx:Script
 
 ![CDATA[
 
 import 
mx.collections.ArrayCollection;
 
 
 
 private function removeSelected():void{
 
 for(var i:int=0; 
idgTest.selectedIndices.length;
 i++){
 
 
 acTest.removeItemAt(dgTest.selectedIndices[i]);
 
 }
 
 }
 
 
 
 ]]
 
 /mx:Script
 
 mx:VBox 

[flexcoders] How do I access the value in this datagrid?

2006-06-08 Thread g8torjoe
I have a datagrid pulling information from a SQL database.  Each row
in the grid has an itemEditor with a numericStepper.  I want to write
back to the database the values the user enters in that control.  I
just can't quite figure out how to reference the different rows.

Code below, thanks in advance for your help!

Joe


mx:DataGrid
  id=dgPart
  dataProvider={partList}
  editable=true
  width=100%
  mx:columns
mx:Array
  mx:DataGridColumn
id=partNum
headerText=Part #
dataField=PART_NO
editable=false
width=75 /
  mx:DataGridColumn
headerText=Part Name
dataField=PART_NAME
editable=false
width=350 /
  mx:DataGridColumn
id=qty
headerText=Quantity
editorDataField=value
width=75
mx:itemEditor
  mx:Component
mx:NumericStepper
  minimum=0
  maximum=5 /
  /mx:Component   
/mx:itemEditor
  /mx:DataGridColumn 
/mx:Array
  /mx:columns 
/mx:DataGrid






 Yahoo! Groups Sponsor ~-- 
Everything you need is one click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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] How do I access the value in this datagrid?

2006-06-08 Thread Tracy Spratt










In broad terms, since I have not done this
myself, have your steppers change event write the new value to the
dataProvider. Then access the value from there using whatever logic necessary.



Tracy











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of g8torjoe
Sent: Thursday, June 08, 2006
11:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How do I
access the value in this datagrid?











I have a datagrid pulling information from a SQL
database. Each row
in the grid has an itemEditor with a numericStepper. I want to write
back to the database the values the user enters in that control. I
just can't quite figure out how to reference the different rows.

Code below, thanks in advance for your help!

Joe

mx:DataGrid
id=dgPart
dataProvider={partList}
editable=true
width=100%
mx:columns
mx:Array
mx:DataGridColumn
id=partNum
headerText=Part #
dataField=PART_NO
editable=false
width=75 /
mx:DataGridColumn
headerText=Part Name
dataField=PART_NAME
editable=false
width=350 /
mx:DataGridColumn
id=qty
headerText=Quantity
editorDataField=value
width=75
mx:itemEditor
mx:Component
mx:NumericStepper
minimum=0
maximum=5 /
/mx:Component 
/mx:itemEditor
/mx:DataGridColumn 
/mx:Array
/mx:columns 
/mx:DataGrid






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Re: zombie warnings

2006-06-08 Thread Tracy Spratt










Did you try clean?

Tracy











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jason
Sent: Thursday, June 08, 2006
10:42 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: zombie
warnings











FYI, I got around the problem by creating a new
project and copying
all the files into it.






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






[flexcoders] Re: Help on Illegal assignment to function

2006-06-08 Thread polestar11
Gordon wrote:
 In AS3, if a class has declared a method at compile time, you can't
 reset that method at runtime to be a different function.

In AS3 one should be able to change methods and properties at runtime
of dynamic classes:
A dynamic class defines an object that can be altered at run time by
adding or changing properties and methods

I am getting the same error (Illegal assignment to function) even
though the class is dynamic. Why would this be?






 Yahoo! Groups Sponsor ~-- 
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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/
 





SOLVED - [flexcoders] Remove selected items from an ArrayCollection / DataGrid?

2006-06-08 Thread Jim Robson










OK, below is the solution that I came up
with. If anyone sees a simpler / better way, please let me know.

Adobe engineers: I am guessing that
removing items from a data grid is a common operation, in which case it seems
like there should be a very simple and straightforward way of doing so. What am
I missing?

private function sortOnInt(strA:String,
strB:String):int {

var a:int = int(strA);

var b:int = int(strB);

var r:int = 0;

if(a  b) {

r = -1;

} else if(a  b) {

r = 1;

} else if(a == b) {

r = 0;

}

return r;

}  

private function removeSelected(): void {

var arr:Array = dgTest.selectedIndices;

arr.sort(sortOnInt);

for(var i:int = 0; i  arr.length;
i++){

acTest.removeItemAt(arr[i]);

}

}











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jim Robson
Sent: Thursday, June 08, 2006
11:21 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re:
Remove selected items from an ArrayCollection / DataGrid?













Yes, I suspect youre on the right track (except for the fact
that DataGrid indices are Strings  see my other post on that subject). 

The other issue Ive encountered is that the array needs to
be sorted from greatest to least. Thats what Im working on now.
Of course, this is not straightforward either, because the DataGrid indices are
strings!



Thanks for the help!!!











From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of bhaq1972
Sent: Thursday, June 08, 2006
11:14 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Remove
selected items from an ArrayCollection / DataGrid?













i reckon your the selectedIndicis is changing and therefore cannot 
be relied upon within your for loop.

try this. (as a starting point)

private function removeSelected():void
{
var array1:Array = new Array();
for(var j:int;j  dgTest.selectedIndices.length; j++)
{
var num1:int = dgTest.selectedIndices[j];

array1.push(num1);
}

for(var i:int = 0; i  array1.length; i++)
{
acTest.removeItemAt(array1[i]);
}
}

--- In [EMAIL PROTECTED]ups.com,
Jim Robson jim.robson@... 
wrote:

 Correction: the app is actually removing ½ of the selected items 
with each
 click of the button. The new version of the code below has 
additional items
 in the data model in order to make this easier to test. 
 
 
 
 Any ideas? Am I just missing something obvious?
 
 
 
 ?xml version=1.0 encoding=utf-8?
 
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml

 
 
 
 mx:Model id=mTest
 
 services
 
 service type=Plumbing 
cost=$100
 description=Fix leaky drain /
 
 service type=Electrical 
cost=$200
 description=Wire stairwell lighting/
 
 service type=Roofing 
cost=$300
 description=Install vent pipe boot/
 
 service type=Carpentry 
cost=$400
 description=Replace entry door/
 
 service type=Plumbing 
cost=$500
 description=Install bath tub/
 
 service type=Electrical 
cost=$600
 description=Wire home office/
 
 service type=Roofing 
cost=$700
 description=Install ice amp; water shield/
 
 service type=Carpentry 
cost=$800
 description=Install sliding patio door/
 
 service type=Plumbing 
cost=$900
 description=Install hot tub/
 
 service type=Electrical 
cost=$1000
 description=Install service box/
 
 service type=Roofing 
cost=$1100
 description=Shingle one-car garage/
 
 service type=Carpentry 
cost=%1200
 description=Build small deck/
 
 /services
 
 /mx:Model
 
 mx:ArrayCollection id=acTest
 source={mTest.services.service} /
 
 
 
 mx:Script
 
 ![CDATA[
 
 import 
mx.collections.ArrayCollection;
 
 
 
 private function removeSelected():void{
 
 for(var i:int = 0; i 
 dgTest.selectedIndices.length; i++){
 
 
 acTest.removeItemAt(dgTest.selectedIndices[i]);
 
 }
 
 }
 
 
 
 ]]
 
 /mx:Script
 
 
 
 mx:VBox width=400 height=600
 
 
 
 mx:DataGrid id=dgTest 
dataProvider={acTest}
 width=400 height=500 allowMultipleSelection=true
 
 mx:columns
 
 mx:DataGridColumn
 headerText=Type dataField=type /
 
 mx:DataGridColumn
 headerText=Service dataField=description
/
 
 mx:DataGridColumn
 headerText=Cost dataField=cost /
 
 /mx:columns
 
 /mx:DataGrid
 
 
 
 mx:Button id=btnTest 
click=removeSelected();
 label=Remove Selected /
 
 
 
 /mx:VBox
 
 
 
 
 
 /mx:Application
 






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an 

Re: [flexcoders] RemotingConnection not found in Mike Potter's Flex2AMFPHP tutorial

2006-06-08 Thread Phil Marston






Hi Duncan,

I think you're getting into some specifics to do with your setup I
can't answer. I've only briefly touched F1.5 and am really only
learning F2.0 just now as well.

I'm busy trying to follow the restaurant example while coding for Flex
2.0 and AMFPHP (which is an interesting learning curve), but I take
from it that if you create your RemoteObject based on the info at the
amfphp.org site you should be able to follow the rest of the restaurant
tut OK.

As regards "how would I for example define a fully qualified source"
I'm not sure what you mean, but if you use Mike's example of a service
and put it in your amfphp installations service directory - so the php
class is fooService and the filename is fooService you would configure
the RemoteObject source attribute to be fooService. As for args I'm
not sure on restrictions, but I would've thought sending a VO would be
better. The nature of using remoting and AMFPHP is that you can send
actionscript objects and the remoting handles turning into the
appropriate object for the language at the other end (PHP in this case)
you service can then take the properties and do with them as you will,
instead of args. Does that make sense or even help?

As for http and amf I think they're two different things - the way I
think of it is that amf is your object expressed as a sort of binary
form of xml (a bitstream or something) and http is the protocol used to
send it. I may be wrong though! There are far more knowledgeable
people on this list that could clarify that.

HTH

Phil

Duncan McMillan wrote:

  Thanks Phil

I have further questions if you don't mind:

So I get from your "restaurant" link below that I have to use the
RemoteObject within Flex, but it says that these are used to reference
Java objects in the Java application server. But what I need is to
reference a php service in an XAMPP Apache server on the same labtop as
my Java application with Flex 1.5.

So I take it that the info in the "otherplatforms" link will do this if
I specify the gateway in the RemoteObject tab and the php service in the
source?

So how would I for example define a fully qualified source under my
XAMPP apache server for instance? and am I restricted to the amount of
args I reference?

This example also says that the protocol is http, do I not want to
output in AMF to be quicker?

Thanks for your patience

Duncan


Phil Marston wrote On 06/07/06 14:49,:
  
  

If you're using F1.5 also check out this tut I found yesterday
http://coenraets.com/tutorials/restaurant/index.jsp - handy for F2.0 as
well if you've done Mike's tut

HTH

Phil

Phil Marston wrote:



  Hi Duncan,

The .as file does go at the same level as the .mxml file, but I don't
think it'll work with 1.5 because the class libraries are different -
RemotingConnection extends NetConnection and the whole structure of
remoting seems to be different in Flex 2.0

There's stuff on the AMFPHP site though about Flex 1.5 at the bottom
of this page http://www.amfphp.org/docs/otherplatforms.html - if you
get a 404 error just keep trying the server seems to be a bit flakey.

HTH

Phil

Duncan McMillan wrote:

  
  
Phil

So do you mean that you put this RemotingConnection.as file in the same
DIR as the mxml file? I'm using Flex 1.5 and this example is not working
for me and complaining about the same thing.

I've also tried to take the package declaration out (as I'm not sure if
Flex1.5 likes package declarations) and it still doesn;t work

Thanks again

Duncan


Phil Marston wrote On 06/02/06 12:01,:
 



  OK - so looks like I dumb!

For those of you who also turn out to be dumb ;-p when Mike speaks about
you already having RemotingConnection.as at the root of your project you
actually need to save the follow package code as RemotingConnection.as
and then you WILL have it!  I've wasted a day and half on this!  jeesh

HTH someone else

Phil Marston wrote:

   

  
  
I think I've traced it to not having the flash.net.* package installed 
(though Flex Builder isn't throwing a complaint about that it does say 
it doesn't know where it is) where can I get this package/library?

cheers,

Phil

Phil Marston wrote:


 



  Hi,

I thought I'd seen this covered somewhere but cant find it.

I'm trying Mike Potter's tutorials on Flex2 and PHP and AMFPHP found 
here 
http://labs.adobe.com/wiki/index.php/Flex_Framework:tutorials:flex2_AMFPHP 
and Flex is throwing a wobbly about the line;
public var gateway : RemotingConnection;

with the error
Type was not found or was not a compile-time constant: 
RemotingConnection.  

Can anyone shed light on this or point me in the right direction?

Cheers,

Phil


  

   

  


 


  
  -- 
__ 
Phil Marston 
Learning Technologist
Learning 

Re: [flexcoders] Re: zombie warnings

2006-06-08 Thread Tom Chiverton
On Thursday 08 June 2006 15:12, Jason wrote:
  Send your code, compiler output and bug report to the beta team :-)
 Where?

The labs site, though peoples from Adobe hang out here too.

Though it would appear from your other post that it's not a reproducible 
problem.

-- 
Tom Chiverton



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.

We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the 
Year at the 2005 Growth Company Awards



 Yahoo! Groups Sponsor ~-- 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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: How do I access the value in this datagrid?

2006-06-08 Thread g8torjoe
Thanks Tracy,

Wouldn't the change event fire every time the arrows on the stepper
are clicked?  In other words, if I have it default to zero, and they
increase it to 7 by using the arrow, that would be 7 times the change
event fires, and therefore 7 updates to the dataProvider?  I think
that may work, but seems like a lot of overhead if my dataGrid has 100
records.

I debugged my app and changed the stepper on 3 lines to try and
isolate where all of the data is, but I can only find the data for the
 selectedItem...which may mean the change event is the only option.

Am I making any sense with what I am attempting to accomplish?

Thanks!
Joe

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

 In broad terms, since I have not done this myself, have your stepper's
 change event write the new value to the dataProvider.  Then access the
 value from there using whatever logic necessary.
 
  
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of g8torjoe
 Sent: Thursday, June 08, 2006 11:36 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] How do I access the value in this datagrid?
 
  
 
 I have a datagrid pulling information from a SQL database. Each row
 in the grid has an itemEditor with a numericStepper. I want to write
 back to the database the values the user enters in that control. I
 just can't quite figure out how to reference the different rows.
 
 Code below, thanks in advance for your help!
 
 Joe
 
 mx:DataGrid
 id=dgPart
 dataProvider={partList}
 editable=true
 width=100%
 mx:columns
 mx:Array
 mx:DataGridColumn
 id=partNum
 headerText=Part #
 dataField=PART_NO
 editable=false
 width=75 /
 mx:DataGridColumn
 headerText=Part Name
 dataField=PART_NAME
 editable=false
 width=350 /
 mx:DataGridColumn
 id=qty
 headerText=Quantity
 editorDataField=value
 width=75
 mx:itemEditor
 mx:Component
 mx:NumericStepper
 minimum=0
 maximum=5 /
 /mx:Component 
 /mx:itemEditor
 /mx:DataGridColumn 
 /mx:Array
 /mx:columns 
 /mx:DataGrid







 Yahoo! Groups Sponsor ~-- 
Everything you need is one click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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] beta3 -- Binding XML data to List Controls -- data binding experts?

2006-06-08 Thread sufibaba
Hi all,

I have XML data that is being returned from a remoting service.  I
would like to bind this data directly to various List-based controls
(As I understand it, List controls like Arrays/ArrayCollections). 
What is the best way to massage the incoming XML data so that it can
be binded directly to List controls.

Any insight is greatly Appreciated.

Cheers,

Tim





 Yahoo! Groups Sponsor ~-- 
Everything you need is one click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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] beta3 -- Binding XML data to List Controls -- data binding experts?

2006-06-08 Thread Jim Robson










This is what Ive done; its
simple and it works

mx:Model id=eventListData
source=eventList.xml /

mx:ArrayCollection
id=acEventList source={eventListData.events.event}
/



mx:DataGridid=dgEventList
dataProvider={acEventList} 

mx:columns

mx:DataGridColumn headerText=Header01
dataField=element01 width=120 /

mx:DataGridColumn headerText=Header04
dataField=element02 width=50 /

mx:DataGridColumn headerText=Header03
dataField=element03 width=50 /

/mx:columns

/mx:DataGrid















From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of sufibaba
Sent: Thursday, June 08, 2006
12:06 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] beta3 --
Binding XML data to List Controls -- data binding experts?











Hi all,

I have XML data that is being returned from a remoting service. I
would like to bind this data directly to various List-based controls
(As I understand it, List controls like Arrays/ArrayCollections). 
What is the best way to massage the incoming XML data so that it can
be binded directly to List controls.

Any insight is greatly Appreciated.

Cheers,

Tim






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






[flexcoders] Flex 1/5 : still fail to lock input...

2006-06-08 Thread Antoine Malpel
Again I ask this because I really didn't find the solution

var inputBlocker;

function setBlockingCursor()
{
// Create an empty UIObject popup that blocks user input
CursorManager.setBusyCursor();
inputBlocker = popupWindow(UIObject);
}

function removeBlockingCursor()
{
// Remove our blocking popup
inputBlocker.deletePopUp();
CursorManager.removeBusyCursor();
}

this example come from the sample explorer of Flex 1.5... it works well 
from it but I can't get working on my Application
I also tried with myRootCanvas.enabled = false but no :( why ? I mainly 
use this when I want to create a popup

please I really need a working script for that


 Yahoo! Groups Sponsor ~-- 
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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] Datagrid Help

2006-06-08 Thread s_hernandez01
Hey everybody

I created a datagrid and the data source is from an xml file. 
However, I want the data to be displayed vertically instead of
horizontally.  For example:

Item|  Product 1
Price   |  $11.99
Item #  |  1256
...
...

I appreciate any help I can get.

Thanks

Sal





 Yahoo! Groups Sponsor ~-- 
Protect your PC from spy ware with award winning anti spy technology. It's free.
http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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: Flex 1/5 : still fail to lock input...

2006-06-08 Thread Renaun Erickson
Here is some test code I created:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;  xmlns=*

mx:Script
![CDATA[
import mx.managers.CursorManager;
import mx.core.UIObject;
var inputBlocker;

function setBlockingCursor()
{
// Create an empty UIObject popup that blocks user input
CursorManager.setBusyCursor();
inputBlocker = popupWindow(UIObject);
}

function removeBlockingCursor()
{
// Remove our blocking popup
inputBlocker.deletePopUp();
CursorManager.removeBusyCursor();
}   
]]
/mx:Script

mx:Button click=setBlockingCursor() label=Create Popup /
mx:Button click=removeBlockingCursor() label=Delete Popup /   
mx:TextInput /
/mx:Application

Is this what you expect to happen.  If so it might want to check the
parent of the Popup and see if that has something to do with it.  As
the example above is creating the popup on the Application root it for
sure will block input.

Renaun

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

 Again I ask this because I really didn't find the solution
 
 var inputBlocker;
 
 function setBlockingCursor()
 {
 // Create an empty UIObject popup that blocks user input
 CursorManager.setBusyCursor();
 inputBlocker = popupWindow(UIObject);
 }
 
 function removeBlockingCursor()
 {
 // Remove our blocking popup
 inputBlocker.deletePopUp();
 CursorManager.removeBusyCursor();
 }
 
 this example come from the sample explorer of Flex 1.5... it works well 
 from it but I can't get working on my Application
 I also tried with myRootCanvas.enabled = false but no :( why ? I mainly 
 use this when I want to create a popup
 
 please I really need a working script for that








 Yahoo! Groups Sponsor ~-- 
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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: two tabnavigators with different tab colors?

2006-06-08 Thread Doug Lowder
I had the same results as you setting the Tab css style - the style 
seems to be a global one that overrides the current settings, making 
all tabs the same color throuhout the app instead of just changing 
them for the current tab navigator control.  I tried several 
approaches, using css stlye definitions, setting the style manager 
property in script, setStyle() on the tab navigator's children... all 
with no luck.

It might be worth starting a new thread specifically on the Tab css 
style so that Adobe engineers notice it.  They may have a solution.

Regards,
Doug

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

 tnx all
 
 nothing of the suggested methods above works in flex 1.5 :
 
 * the tabStyleName property is not working in flex 1.5
 * the getTabAt() is not recognized in flex 1.5
 * and usig Tab in style (as in the ASDoc example) is setting the 
same
 color to all tabs throughout the applicatio
 
 so what r u saying?
 there is no way to do this in flex 1.5?







 Yahoo! Groups Sponsor ~-- 
Protect your PC from spy ware with award winning anti spy technology. It's free.
http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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] trouble with second axis in linechart (Scaling capabilities)

2006-06-08 Thread Ely Greenfield








From your description, it sounds like it should be 
working. But I'd need a working sample to really see if it's a flex bug or 
problem in your code. Can you strip it down to a barebones example of the 
problem? (esp. that doesn't require a server).

Thanks,
Ely.



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of 
sp0rarb3jd3rSent: Thursday, June 08, 2006 7:01 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] trouble with second 
axis in linechart (Scaling capabilities)


i am having trouble getting the second axis in my chart to update.i am 
parsing xml-data into a chart.the client needs more than one feed displayed, 
so I supply a combobox.but when i switch from xml with larger numbers to an 
xml-feed with asmaller, the second axis retains it's scale.where as the 
first adopts beautifully to similar changes.example xml_1: 
(2,100),(3,250),(4,900)xml_2: 
(2,10),(3,105005),(4,23) switch first from xml_1 to xml_2 
gives an okay scale.from xml_2 back to xml_1 the second axis retains it's 
scale.why is this a problem. because with that scale the xml_1 line 
thenbecomes an almost straight line.belows's the code i am using. 
(abbreviated - but just to give an_expression_)´hope somebody can help me 
out.but this seems like a bug to me.mx:LineChart id="linechart" 
y="28" paddingLeft="5" height="190"width="{linWidth}" 
addingRight="5" 
dataProvider="{goalArr}"secondDataProvider="{goalArr}" 
showDataTips="true"dataTipFunction="daTip" 
styleName="shd"mx:seriesFiltersmx:Array//mx:seriesFiltersmx:horizontalAxismx:CategoryAxis 
id="axis" categoryField="time"//mx:horizontalAxis 
mx:seriesmx:Array mx:LineSeries name="gh" 
styleName="shd" id="linie1" xField="time"yField="achieved" 
displayName="Achieved" 
lineSegmentRenderer="mx.charts.renderers.LineRenderer"mx:lineStrokemx:Stroke 
color="#669933" 
weight="2"//mx:lineStroke/mx:LineSeries/mx:Array/mx:seriesmx:secondSeries 
mx:Arraymx:LineSeries id="linie2" 
xField="time"yField="goal" 
form="segment"lineSegmentRenderer="mx.charts.renderers.LineRenderer"displayName="Goal" 
styleName="shd"mx:lineStrokemx:Stroke color="#63c007" 
weight="2"//mx:lineStroke/mx:LineSeriesmx:PlotSeries 
interactive="false"creationComplete="not(0x87f326,0xf38726,0x2687f3);" 
id="plots"name="changes" 
dataProvider="{annoArr}"itemRenderer="Renderers.FlagRenderer" 
xField="time" 
yField="goal"//mx:Array/mx:secondSeries 
/mx:LineChart mx:Script[Bindable]private var 
cards:Array = [ {label:"Clicks vs. Total 
Conversions",where:"testgraph.xml"}, {label:"Clicks vs. Page 
Views",where:"testgraph2.xml"}, {label:"Clicks vs. Conversion 
Rate",where:"testgraph3.xml"},{label:"Clicks vs. 
Profit",where:"testgraph4.xml"} ];public function 
comboCha(ev:flash.events.Event):void{rq.url="">selectedItem.where;ld.load(rq);linechart.dataProvider=goalArr;axis.dataProvider=goalArr;plots.dataProvider=annoArr;} 
/mx:Scriptmx:ComboBox id="combo" dataProvider="{cards}" 
width="200"x="{linWidth-220}" change="comboCha(event);" 
/
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



RE: [flexcoders] Datagrid Help

2006-06-08 Thread Stacey Mulcahy










Can you do that with a db? Wouldnt
you be better to look at charts or a horizontal tile list ?











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of s_hernandez01
Sent: Thursday, June 08, 2006
12:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Datagrid
Help











Hey everybody

I created a datagrid and the data source is from an xml file. 
However, I want the data to be displayed vertically instead of
horizontally. For example:

Item | Product 1
Price | $11.99
Item # | 1256
...
...

I appreciate any help I can get.

Thanks

Sal






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






Re: [flexcoders] selectedIndices are Strings???

2006-06-08 Thread Tom Bray



Try either of these two options:   for( var i:int; i  arr.length; i++ )   {trace( arr[i] );   }   //or   for each( var i:int in arr )
   {trace( i );   }The for...in loop that you're using is for iterating over the properties of objects, which it expects to evaluate as strings. So, in your for...in loop, the var i refers to the indices of the array, not the values you're looking for which are the selectedIndices of your dg. The for...each loop above is new to AS3 and is the simplest way to do what you want.
HTH,TomOn 6/8/06, Jim Robson [EMAIL PROTECTED] wrote:









  











I don't understand why DataGrid.selectedIndices
returns an array of Strings. I thought that indices were generally integers. (For
example, Array.indexOf returns an int.) 

Can anyone explain why the selected index of a DataGrid is a
String?

When "dgTest" is a DataGrid instance, the
following code generates a compiler error:





var arr:Array = dgTest.selectedIndices;

for(var i:int in arr){

// do something

}



The error that the compiler returns is as follows: 

"Implicit coercion of a value of type String to an
unrelated type int. "







  















__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



RE: [flexcoders] selectedIndices are Strings???

2006-06-08 Thread Jim Robson










Thanks Tom,



I believe array indices are ints, not
strings. However, I also believe that datagrid indices are strings, because
when I used the Array.sort() function on the DataGrid.selectedIndices array,
the order was all messed up. For example, 10 came before 2.
For that reason, I ended up writing a custom sort function to get around the
issue.



Thanks again!



Jim











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Bray
Sent: Thursday, June 08, 2006 1:07
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
selectedIndices are Strings???











Try either of these two options:

   for( var i:int; i 
arr.length; i++ )
   {
   
trace( arr[i] );
   }
   
//or

   for each( var i:int in
arr ) 
   {
   
trace( i );
   }

The for...in loop that you're using is for iterating over the properties of
objects, which it expects to evaluate as strings. So, in your for...in
loop, the var i refers to the indices of the array, not the values you're
looking for which are the selectedIndices of your dg. The for...each loop
above is new to AS3 and is the simplest way to do what you want. 

HTH,

Tom



On 6/8/06, Jim
Robson [EMAIL PROTECTED]
wrote:













I don't understand why DataGrid.selectedIndices
returns an array of Strings. I thought that indices were generally integers.
(For example, Array.indexOf returns an int.) 

Can anyone explain why the selected index of a
DataGrid is a String?

When dgTest is a DataGrid instance, the
following code generates a compiler error:





var arr:Array = dgTest.selectedIndices;

for(var i:int in arr){

// do something

}



The error that the compiler returns is as follows: 

Implicit coercion of a value of type String to an
unrelated type int. 
























__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






[flexcoders] Re: zombie warnings

2006-06-08 Thread Jason
 Did you try clean?

No, I didn't even know that existed.  I've only been using Flex for
about a week.  I already deleted the project from Builder (but not the
files).  When I recreated the project, it didn't have the warnings. 
So I guess that's another way to fix it.  If it happens again, I'll
try cleaning.





 Yahoo! Groups Sponsor ~-- 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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] Initialize funkyness

2006-06-08 Thread Jeremy Rottman
I am using initialize to call a function when I enter a state. The
first time I enter the state everything works fine. The function is
called and the text input is populated correctly. But when I leave the
state, and go back into at another time, it appears that the function
is not called and the text input is not populated. Has anyone ran into
this before. 

Here is the code I am using

THIS IS MY WEBSERVICE --

mx:WebService id=listService useProxy=false 
wsdl=cfc/adminList.cfc?wsdl
showBusyCursor=true
mx:operation name=qiAdminListStart 
result=listServiceqiAdminListStartResult(
listService.qiAdminListStart.lastResult ) 
fault=listServiceqiAdminListStartFault(event)/
/mx:WebService

FUNCTIONS FOR THIS WEBSERVICE --

// CALL WEBSERVICE TO POPULATE FILE NUMBER INPUT
private function listServiceqiAdminListStart():void{
listService.qiAdminListStart();
}
// WEBSERVICE RETURN RESULTS -- POPULATES FILE NUMBER INPUT ON
INIALIZATION

private function listServiceqiAdminListStartResult(result):void{
fileNumber.text = result;
}

// WEBSERVICE RETURNS FALUT -- RETURNS FAULT TO USER

private function listServiceqiAdminListStartFault(event :
FaultEvent) :void {
Alert.show(TEST ERROR,Program Error:);
}







 Yahoo! Groups Sponsor ~-- 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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] Is Adobe a reasonable business partner?

2006-06-08 Thread Matt Chotin










Hi Jim,



Can you provide me with more background on
where youve been having problems interacting with the organization? You
say sales and customer service. Can you let me know whom youve been in
contact with and when and what remains to be resolved?



Please mail me offlist.



Thanks,

Matt











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jim Robson
Sent: Thursday, June 08, 2006 4:00
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Is Adobe a
reasonable business partner?













Ive been developing in Flash and CF for years, so I have
some experience dealing with Macromedia, but Ive never had to deal with
Adobe until now.



So far, my impression is that the Adobe developers are great
(although most of the ones Im aware of probably worked for Macromedia).
However, I am not having good experiences with the customer service or sales
personnel.



Has anyone on the list had experience dealing with Adobe as a
business partner? Flex is a very cool product, but I dont think
its good to tolerate an unresponsive or arrogant vendor. What are your
impressions? 














__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






Re: [flexcoders] selectedIndices are Strings???

2006-06-08 Thread Tom Bray



>From the docs on Array.sort():All elements, whatever the data type, are sorted as if they were strings, so 100 
precedes 99, because 1 is a lower string value than 9. But you can easily change the default sort behavior by doing this:arr.sort(Array.NUMERIC);-Tom
On 6/8/06, Jim Robson [EMAIL PROTECTED] wrote:









  











Thanks Tom,



I believe array indices are ints, not
strings. However, I also believe that datagrid indices are strings, because
when I used the Array.sort() function on the DataGrid.selectedIndices array,
the order was all messed up. For example, "10" came before "2".
For that reason, I ended up writing a custom sort function to get around the
issue.



Thanks again!



Jim











From:
flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com] On Behalf Of Tom Bray
Sent: Thursday, June 08, 2006 1:07
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
selectedIndices are Strings???











Try either of these two options:

   for( var i:int; i 
arr.length; i++ )
   {
   
trace( arr[i] );
   }
   
//or

   for each( var i:int in
arr ) 
   {
   
trace( i );
   }

The for...in loop that you're using is for iterating over the properties of
objects, which it expects to evaluate as strings. So, in your for...in
loop, the var i refers to the indices of the array, not the values you're
looking for which are the selectedIndices of your dg. The for...each loop
above is new to AS3 and is the simplest way to do what you want. 

HTH,

Tom



On 6/8/06, Jim
Robson [EMAIL PROTECTED]
wrote:














I don't understand why DataGrid.selectedIndices
returns an array of Strings. I thought that indices were generally integers.
(For example, Array.indexOf returns an int.) 


Can anyone explain why the selected index of a
DataGrid is a String?


When dgTest is a DataGrid instance, the
following code generates a compiler error:








var arr:Array = dgTest.selectedIndices;


for(var i:int in arr){


// do something


}





The error that the compiler returns is as follows: 


Implicit coercion of a value of type String to an
unrelated type int. 




























  















__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



RE: [flexcoders] selectedIndices are Strings???

2006-06-08 Thread Francis Cheng










Dont forget that the Array.sort()
method sorts using string values by default, so even when sorting an array of
numbers or ints, they will be sorted as if they were strings. To get numeric
sorting, so that 10 comes after 2, use the
Array.NUMERIC sort option, e.g.:



myArray.sort(Array.NUMERIC);



Heres the relevant example from the
ActionScript documentation for Array.sort():



The following code creates the Array object numbers
with elements [3,5,100,34,10]. A call to sort()
without any parameters sorts alphabetically, producing the undesired result [10,100,3,34,5].
To properly sort numeric values, you must pass the constant NUMERIC
to the sort() method, which sorts numbers
as follows: [3,5,10,34,100]. 

Note:
The default behavior of the sort()
function is to handle each entity as a string. The Array.NUMERIC
argument does not actually convert other data types to the Number data type; it
simply allows the sort algorithm to recognize numbers.



var numbers:Array = new Array(3,5,100,34,10);



trace(numbers); // 3,5,100,34,10

numbers.sort();

trace(numbers); // 10,100,3,34,5

numbers.sort(Array.NUMERIC);

trace(numbers); // 3,5,10,34,100





Francis















From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jim Robson
Sent: Thursday, June 08, 2006
10:11 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
selectedIndices are Strings???













Thanks Tom,



I believe array indices are ints, not strings. However, I also
believe that datagrid indices are strings, because when I used the Array.sort()
function on the DataGrid.selectedIndices array, the order was all messed up.
For example, 10 came before 2. For that reason, I
ended up writing a custom sort function to get around the issue.



Thanks again!



Jim











From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com] On Behalf Of Tom Bray
Sent: Thursday, June 08, 2006 1:07
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
selectedIndices are Strings???











Try
either of these two options:

   for( var i:int; i 
arr.length; i++ )
   {
   
trace( arr[i] );
   }
   
//or

   for each( var i:int in
arr ) 
   {
   
trace( i );
   }

The for...in loop that you're using is for iterating over the properties of
objects, which it expects to evaluate as strings. So, in your for...in
loop, the var i refers to the indices of the array, not the values you're
looking for which are the selectedIndices of your dg. The for...each loop
above is new to AS3 and is the simplest way to do what you want. 

HTH,

Tom



On 6/8/06, Jim Robson [EMAIL PROTECTED] wrote:













I don't understand why DataGrid.selectedIndices
returns an array of Strings. I thought that indices were generally integers.
(For example, Array.indexOf returns an int.) 

Can anyone explain why the selected index of a
DataGrid is a String?

When dgTest is a DataGrid instance, the
following code generates a compiler error:





var arr:Array = dgTest.selectedIndices;

for(var i:int in arr){

// do something

}



The error that the compiler returns is as follows: 

Implicit coercion of a value of type String to
an unrelated type int. 






























__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Re: How do I access the value in this datagrid?

2006-06-08 Thread Tracy Spratt










I dont think that is too much
overhead. Remember that the renderer has a reference to the item object
itself, so updating a property value on a user click should not be a resource
issue.



If you are still uncomfortable with that,
you can probably find some other event to use that only fires when a user
leaves the cell.



Tracy











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of g8torjoe
Sent: Thursday, June 08, 2006
12:00 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How do I
access the value in this datagrid?











Thanks Tracy,

Wouldn't the change event fire every time the arrows on the stepper
are clicked? In other words, if I have it default to zero, and they
increase it to 7 by using the arrow, that would be 7 times the change
event fires, and therefore 7 updates to the dataProvider? I think
that may work, but seems like a lot of overhead if my dataGrid has 100
records.

I debugged my app and changed the stepper on 3 lines to try and
isolate where all of the data is, but I can only find the data for the
selectedItem...which may mean the change event is the only option.

Am I making any sense with what I am attempting to accomplish?

Thanks!
Joe

--- In [EMAIL PROTECTED]ups.com,
Tracy Spratt
[EMAIL PROTECTED] wrote:

 In broad terms, since I have not done this myself, have your stepper's
 change event write the new value to the dataProvider. Then access the
 value from there using whatever logic necessary.
 
 
 
 Tracy
 
 
 
 
 
 From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com]
On
 Behalf Of g8torjoe
 Sent: Thursday, June 08, 2006 11:36 AM
 To: [EMAIL PROTECTED]ups.com
 Subject: [flexcoders] How do I access the value in this datagrid?
 
 
 
 I have a datagrid pulling information from a SQL database. Each row
 in the grid has an itemEditor with a numericStepper. I want to write
 back to the database the values the user enters in that control. I
 just can't quite figure out how to reference the different rows.
 
 Code below, thanks in advance for your help!
 
 Joe
 
 mx:DataGrid
 id=dgPart
 dataProvider={partList}
 editable=true
 width=100%
 mx:columns
 mx:Array
 mx:DataGridColumn
 id=partNum
 headerText=Part #
 dataField=PART_NO
 editable=false
 width=75 /
 mx:DataGridColumn
 headerText=Part Name
 dataField=PART_NAME
 editable=false
 width=350 /
 mx:DataGridColumn
 id=qty
 headerText=Quantity
 editorDataField=value
 width=75
 mx:itemEditor
 mx:Component
 mx:NumericStepper
 minimum=0
 maximum=5 /
 /mx:Component 
 /mx:itemEditor
 /mx:DataGridColumn 
 /mx:Array
 /mx:columns 
 /mx:DataGrid







__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






[flexcoders] Re: beta3 -- Binding XML data to List Controls -- data binding experts?

2006-06-08 Thread sufibaba
Hi Jim,

Thanks for the tip.

I just tried it and it's giving me an error saying that it could not
convert my xmldata.  My data is coming back from a remoting service
and it is typed as XMLList.  In addition, my xml has a root node.  Any
ideas why I am getting an error.

Cheers,

Tim



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

 This is what I've done; it's simple and it works.
 
 mx:Model id=eventListData source=eventList.xml /
 
 mx:ArrayCollection id=acEventList
source={eventListData.events.event}
 /
 
  
 
 mx:DataGridid=dgEventList  dataProvider={acEventList} 
 
 mx:columns
 
 mx:DataGridColumn headerText=Header01 dataField=element01
width=120
 /
 
 mx:DataGridColumn headerText=Header04 dataField=element02
width=50 /
 
 mx:DataGridColumn headerText=Header03 dataField=element03
width=50 /
 
 /mx:columns
 
 /mx:DataGrid
 
  
 
  
 
  
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of sufibaba
 Sent: Thursday, June 08, 2006 12:06 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] beta3 -- Binding XML data to List Controls -- data
 binding experts?
 
  
 
 Hi all,
 
 I have XML data that is being returned from a remoting service. I
 would like to bind this data directly to various List-based controls
 (As I understand it, List controls like Arrays/ArrayCollections). 
 What is the best way to massage the incoming XML data so that it can
 be binded directly to List controls.
 
 Any insight is greatly Appreciated.
 
 Cheers,
 
 Tim







 Yahoo! Groups Sponsor ~-- 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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] Datagrid Help

2006-06-08 Thread Tracy Spratt










If you really want horizontal columns, with
vertical row functionality, then I dont think the dataGrid will work.
(But that sounds like a useful control for someone to make!)



If you just want to display the values in
a crosstab style view, you can manually rearrange the data.
Depending on the structure of the xml, this could be easy or hard. I dont
know how e4x is at respecting orded when it returns its XMLLists. If it
does not, You will need to manually loop over the nodes.



Tracy











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Stacey Mulcahy
Sent: Thursday, June 08, 2006
12:57 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Datagrid
Help













Can you do that with a db? Wouldnt you be better to look
at charts or a horizontal tile list ?











From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of s_hernandez01
Sent: Thursday, June 08, 2006
12:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Datagrid Help











Hey
everybody

I created a datagrid and the data source is from an xml file. 
However, I want the data to be displayed vertically instead of
horizontally. For example:

Item | Product 1
Price | $11.99
Item # | 1256
...
...

I appreciate any help I can get.

Thanks

Sal














__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] selectedIndices are Strings???

2006-06-08 Thread Jim Robson










You know, I looked at that page in the
docs this morning, but I guess my eyes just skipped right past that part. 



It seems decidedly counterintuitive, but I
should be used to that by now; Ive been developing Flash apps for 6
years! 



Thank you for the help. Now I can go back
and simplify my code!



Jim











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Bray
Sent: Thursday, June 08, 2006 1:26
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
selectedIndices are Strings???











From the docs on Array.sort():

All elements, whatever the data type, are sorted as if they were strings,
so 100 precedes 99, because 1 is a lower string value than
9. 

But you can easily change the default sort behavior by doing this:

arr.sort(Array.NUMERIC);

-Tom



On 6/8/06, Jim
Robson [EMAIL PROTECTED]
wrote:













Thanks Tom,



I believe array indices
are ints, not strings. However, I also believe that datagrid indices are
strings, because when I used the Array.sort() function on the
DataGrid.selectedIndices array, the order was all messed up. For example,
10 came before 2. For that reason, I ended up writing a
custom sort function to get around the issue.



Thanks again!



Jim











From: flexcoders@yahoogroups.com
[mailto:
flexcoders@yahoogroups.com] On Behalf Of Tom
Bray
Sent: Thursday, June 08, 2006 1:07
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
selectedIndices are Strings???















Try either of these two options:

   for( var i:int; i 
arr.length; i++ )
   {
   
trace( arr[i] );
   }
   
//or

   for each( var i:int in
arr ) 
   {
   
trace( i );
   }

The for...in loop that you're using is for iterating over the properties of
objects, which it expects to evaluate as strings. So, in your for...in
loop, the var i refers to the indices of the array, not the values you're
looking for which are the selectedIndices of your dg. The for...each loop
above is new to AS3 and is the simplest way to do what you want. 

HTH,

Tom



On 6/8/06, Jim
Robson [EMAIL PROTECTED]
wrote:













I don't understand why DataGrid.selectedIndices
returns an array of Strings. I thought that indices were generally integers. (For
example, Array.indexOf returns an int.) 

Can anyone explain why the selected index of a
DataGrid is a String?

When dgTest is a DataGrid instance, the
following code generates a compiler error:





var arr:Array = dgTest.selectedIndices;

for(var i:int in arr){

// do something

}



The error that the compiler returns is as follows: 

Implicit coercion of a value of type String to
an unrelated type int. 














































__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






Re: SOLVED - [flexcoders] Remove selected items from an ArrayCollection / DataGrid?

2006-06-08 Thread Doug Lowder
Does this work?

  private function removeSelected(): void {

while (dgTest.selectedIndices.length  0){
  acTest.removeItemAt(dgTest.selectedIndices[0]);
}

  }


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

 OK, below is the solution that I came up with. If anyone sees a 
simpler /
 better way, please let me know.
 
 Adobe engineers: I am guessing that removing items from a data 
grid is a
 common operation, in which case it seems like there should be a 
very simple
 and straightforward way of doing so. What am I missing?
 
 private function sortOnInt(strA:String, strB:String):int {
 
 var a:int = int(strA);
 
 var b:int = int(strB);
 
 var r:int = 0;
 
 if(a  b) {
 
 r = -1;
 
 } else if(a  b) {
 
 r = 1;
 
 } else if(a == b) {
 
 r = 0;
 
 }
 
 return r;
 
 }  
 
 private function removeSelected(): void {
 
 var arr:Array = dgTest.selectedIndices;
 
 arr.sort(sortOnInt);
 
 for(var i:int = 0; i  arr.length; i++){
 
 acTest.removeItemAt(arr[i]);
 
 }
 
 }
 
  
 
   _  
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Jim Robson
 Sent: Thursday, June 08, 2006 11:21 AM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Re: Remove selected items from an 
ArrayCollection
 / DataGrid?
 
  
 
 Yes, I suspect you're on the right track (except for the fact that 
DataGrid
 indices are Strings – see my other post on that subject). 
 
 The other issue I've encountered is that the array needs to be 
sorted from
 greatest to least. That's what I'm working on now. Of course, this 
is not
 straightforward either, because the DataGrid indices are strings!
 
  
 
 Thanks for the help!!!
 
  
 
   _  
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of bhaq1972
 Sent: Thursday, June 08, 2006 11:14 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Remove selected items from an 
ArrayCollection /
 DataGrid?
 
  
 
 i reckon your the selectedIndicis is changing and therefore cannot 
 be relied upon within your for loop.
 
 try this. (as a starting point)
 
 private function removeSelected():void
 {
 var array1:Array = new Array();
 for(var j:int;j  dgTest.selectedIndices.length; j++)
 {
 var num1:int = dgTest.selectedIndices[j];
 
 array1.push(num1);
 }
 
 for(var i:int = 0; i  array1.length; i++)
 {
 acTest.removeItemAt(array1[i]);
 }
 }
 
 --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com 
ups.com,
 Jim Robson jim.robson@ 
 wrote:
 
  Correction: the app is actually removing ½ of the selected items 
 with each
  click of the button. The new version of the code below has 
 additional items
  in the data model in order to make this easier to test. 
  
  
  
  Any ideas? Am I just missing something obvious?
  
  
  
  ?xml version=1.0 encoding=utf-8?
  
  mx:Application xmlns:mx=http://www.adobe.
 http://www.adobe.com/2006/mxml com/2006/mxml 
  
  
  
  mx:Model id=mTest
  
  services
  
  service type=Plumbing 
 cost=$100
  description=Fix leaky drain /
  
  service type=Electrical 
 cost=$200
  description=Wire stairwell lighting/
  
  service type=Roofing 
 cost=$300
  description=Install vent pipe boot/
  
  service type=Carpentry 
 cost=$400
  description=Replace entry door/
  
  service type=Plumbing 
 cost=$500
  description=Install bath tub/
  
  service type=Electrical 
 cost=$600
  description=Wire home office/
  
  service type=Roofing 
 cost=$700
  description=Install ice amp; water shield/
  
  service type=Carpentry 
 cost=$800
  description=Install sliding patio door/
  
  service type=Plumbing 
 cost=$900
  description=Install hot tub/
  
  service type=Electrical 
 cost=$1000
  description=Install service box/
  
  service type=Roofing 
 cost=$1100
  description=Shingle one-car garage/
  
  service type=Carpentry 
 cost=%1200
  description=Build small deck/
  
  /services
  
  /mx:Model
  
  mx:ArrayCollection id=acTest
  source={mTest.services.service} /
  
  
  
  mx:Script
  
  ![CDATA[
  
  import 
 mx.collections.ArrayCollection;
  
  
  
  private function removeSelected():void{
  
  for(var i:int = 0; i 
  dgTest.selectedIndices.length; i++){
  
  
  acTest.removeItemAt(dgTest.selectedIndices[i]);
  
  }
  
  }
  
  
  
  ]]
  
  /mx:Script
  
  
  
  mx:VBox width=400 height=600
  
  
  
  mx:DataGrid id=dgTest 
 dataProvider={acTest}
  width=400 height=500 allowMultipleSelection=true
  
  mx:columns
  
  mx:DataGridColumn
  headerText=Type dataField=type /
  
  mx:DataGridColumn
  headerText=Service dataField=description /
  
  mx:DataGridColumn
  headerText=Cost dataField=cost /
  
  /mx:columns
  
  /mx:DataGrid
  
  
  
  mx:Button id=btnTest 
 click=removeSelected();
  label=Remove Selected /
  
  
  
  /mx:VBox
  
  
  
  
  
  /mx:Application
 








 Yahoo! Groups Sponsor ~-- 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM

Re: [flexcoders] I noticed something MS Vista Beta 2 out

2006-06-08 Thread Robert Thompson



Grudge, Wisdom, Warning or...or read again...Michael Schmalle [EMAIL PROTECTED] wrote:  Man,  You must have been burned by that stove bad..  It's not healthy holding a grudge this hard!  Peace, Mike.On 6/7/06, Robert Thompson [EMAIL PROTECTED] wrote:   
 Re: belowRegarding this Vista, I've seen this little thing called "Sparkle" -- a reincantation of a purely failed effort to compete against Flash back a few years ago (it was sad). But this time around, Microsoft may intend to do what it has done to other competitors regarding Adobe, and that is, to use Sparkle to "crush the enemy Adobe by beating it over the head with the Windows Desktop".I do believe (but am unsure and not claiming so in order to protect myself :-) that's an actual quote by a high level exec, but a different company as to whoe the "enemy" was, at some time, by some person, at high levels, about another competitor, and I do believe my eyes have seen something of this sortbut I can't be sure if it was a dream or real :-) But I can say no more than that...until a short time...it will all be exposed soon enough...My Advice to Adobe: Watch out. Old cheeseburger loving dogs who have
 been found to have broken the law don't learn new tricks (they don't change). And believe me $50B in cash reserves buys a lot of cheeseburgers; and that's just cold hard cash; earned and blossomed all from the seed of a bald-man telling IBM they had DOS _complete_ when in actuality they did not, and instead this bald-man offered 50k to someone who wasn't aware of this information about IBM needing what he'd developed. The story spawns from there. Was that first action illegal. Probably not. Dishonest - Absolutely. Unethical - Absolutely.This bald-headed guy grew up just a few miles from me and taints the image and spirit of a beautiful school called "Country Day".Question is: Was he numbed up by his boss, or was it the other way around. I kind of think being caught for soliciting prostitution in Arizona, leads me to believe it was his boss. So, obviously these people have no spiritual foundation and simply
 believe "whatever means necessary" and "survival of the fittest".They've got some hot weather coming.Who am I talking about -- your guess is as good as mine -- not my thread.But I do plan on Establishing FLEX  2.0 for my future development.As Mickey softy (he's a ganster :-) fades away ever so slowly. Long live Bono a true and tried person who has a long track record of helping the poor in africa; as for the other two. I won't say it.-rchristopherjdunn  [EMAIL PROTECTED] wrote:  Just incase anyone would like to test any of the flex apps/clients on MS Vista  Beta 2, it can now be downloaded from MS's website:  http://www.microsoft.com/windowsvista/getready/preview.mspx   Chris __Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around  http://mail.yahoo.com  -- What goes up, does come down.  
 __Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



RE: [flexcoders] selectedIndices are Strings???

2006-06-08 Thread Jim Robson










Thanks Francis,



Tom Bray also straightened me out on that.




I was wrong, and I feel properly
chastened.



Thank you for the help!











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Francis Cheng
Sent: Thursday, June 08, 2006 1:26
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
selectedIndices are Strings???













Dont forget that the Array.sort() method sorts using string
values by default, so even when sorting an array of numbers or ints, they will
be sorted as if they were strings. To get numeric sorting, so that
10 comes after 2, use the Array.NUMERIC sort
option, e.g.:



myArray.sort(Array.NUMERIC);



Heres the relevant example from the ActionScript
documentation for Array.sort():



The following code
creates the Array object numbers with
elements [3,5,100,34,10]. A call to sort()
without any parameters sorts alphabetically, producing the undesired result [10,100,3,34,5].
To properly sort numeric values, you must pass the constant NUMERIC
to the sort() method, which sorts numbers
as follows: [3,5,10,34,100]. 

Note:
The default behavior of the sort()
function is to handle each entity as a string. The Array.NUMERIC
argument does not actually convert other data types to the Number data type; it
simply allows the sort algorithm to recognize numbers.



var
numbers:Array = new Array(3,5,100,34,10);



trace(numbers);
// 3,5,100,34,10

numbers.sort();

trace(numbers);
// 10,100,3,34,5

numbers.sort(Array.NUMERIC);

trace(numbers);
// 3,5,10,34,100





Francis















From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]
On Behalf Of Jim Robson
Sent: Thursday, June 08, 2006
10:11 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
selectedIndices are Strings???













Thanks Tom,



I believe array indices are ints, not strings. However, I also
believe that datagrid indices are strings, because when I used the Array.sort()
function on the DataGrid.selectedIndices array, the order was all messed up.
For example, 10 came before 2. For that reason, I
ended up writing a custom sort function to get around the issue.



Thanks again!



Jim











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]
On Behalf Of Tom Bray
Sent: Thursday, June 08, 2006 1:07
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
selectedIndices are Strings???











Try either
of these two options:

   for( var i:int; i 
arr.length; i++ )
   {
   
trace( arr[i] );
   }
   
//or

   for each( var i:int in
arr ) 
   {
   
trace( i );
   }

The for...in loop that you're using is for iterating over the properties of
objects, which it expects to evaluate as strings. So, in your for...in
loop, the var i refers to the indices of the array, not the values you're
looking for which are the selectedIndices of your dg. The for...each loop
above is new to AS3 and is the simplest way to do what you want. 

HTH,

Tom



On 6/8/06, Jim Robson [EMAIL PROTECTED] wrote:













I don't understand why DataGrid.selectedIndices
returns an array of Strings. I thought that indices were generally integers.
(For example, Array.indexOf returns an int.) 

Can anyone explain why the selected index of a
DataGrid is a String?

When dgTest is a DataGrid instance, the following
code generates a compiler error:





var arr:Array = dgTest.selectedIndices;

for(var i:int in arr){

// do something

}



The error that the compiler returns is as follows: 

Implicit coercion of a value of type String to
an unrelated type int. 








































__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






[flexcoders] Re: I noticed something MS Vista Beta 2 out

2006-06-08 Thread christopherjdunn
This was just an FYI, not trying to start anything. I know some have
already been trying to use Flex Builder 2 under Vista, just letting
them know beta 2 was out.

Chris

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

 Grudge, Wisdom, Warning or...or read again...
 
 Michael Schmalle [EMAIL PROTECTED] wrote:
  Man,
  
  You must have been burned by that stove bad..
  
  It's not healthy holding a grudge this hard!
  
  Peace, Mike.
 
 
 On 6/7/06, Robert Thompson [EMAIL PROTECTED] wrote: 
  Re: belowRegarding this Vista, I've seen
this little thing called Sparkle -- a reincantation of a purely
failed effort to compete against Flash back a few years ago (it was
sad).  But this time around, Microsoft may intend to do what it has
done to other competitors regarding Adobe, and that is, to use Sparkle
to crush the enemy Adobe by beating it over the head with the Windows
Desktop.
 
 I do believe (but am unsure and not claiming so in order to protect
myself :-) that's an actual quote by a high level exec, but a
different company as to whoe the enemy was, at some time, by some
person, at high levels, about another competitor, and I do believe my
eyes have seen something of this sortbut I can't be sure if it was
a dream or real :-)  But I can say no more than that...until a short
time...it will all be exposed soon enough...
 
 My Advice to Adobe: Watch out.  Old cheeseburger loving dogs who
have been found to have broken the law don't learn new tricks (they
don't change).  And believe me $50B in cash reserves buys a lot of
cheeseburgers; and that's just cold hard cash; earned and blossomed
all from the seed of a bald-man telling IBM they had DOS _complete_
when in actuality they did not, and instead this bald-man offered 50k
to someone who wasn't aware of this information about IBM needing what
he'd developed.  The story spawns from there.  Was that first action
illegal.  Probably not.  Dishonest - Absolutely.  Unethical - Absolutely.
 
 This bald-headed guy grew up just a few miles from me and taints the
image and spirit of a beautiful school called Country Day.
 
 Question is: Was he numbed up by his boss, or was it the other way
around.  I kind of think being caught for soliciting prostitution in
Arizona, leads me to believe it was his boss.  So, obviously these
people have no spiritual foundation and simply believe whatever means
necessary and survival of the fittest.
 
 They've got some hot weather coming.
 
 Who am I talking about -- your guess is as good as mine -- not my
thread.
 
 But I do plan on Establishing FLEX  2.0 for my future development.
 
 As Mickey softy (he's a ganster :-) fades away ever so slowly.  Long
live Bono a true and tried person who has a long track record of
helping the poor in africa; as for the other two.  I won't say it.
 
 -r
 
 
 christopherjdunn  [EMAIL PROTECTED] wrote:
   Just incase anyone would like to test any
of the flex apps/clients on
  MS Vista  Beta 2, it can now be downloaded from MS's website:
  
  http://www.microsoft.com/windowsvista/getready/preview.mspx 
  
  Chris
  
  
  
  
  __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
  http://mail.yahoo.com 
  
 

  
 
 
 
 
 
 
 -- 
 What goes up, does come down. 
  

 
  __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com







 Yahoo! Groups Sponsor ~-- 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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] I noticed something MS Vista Beta 2 out

2006-06-08 Thread Michael Schmalle



Hey,

I read it; Wisdom entails optimism... in fact anybody with more money
than you can't be trusted. As far as Microsoft steering my future, I
doubt it. 

I guess I am just missing your perspective. Most people that think,
know that a company that is run by more than one person has many ideas
that may not jive with others that work at that same company. People
always want big houses.

BTW, I am a Seattle native and lived very close to Redmond. You fail to
see back in 1993, Bill Gates funded our computer lab even before email,
we networked our highschool and the rest is history. I love warnings
but, I don't think people see how they actually did help
people/students.

Maybe it was just to get us in 'their' clan?! It didn't work with me, I think with my own values.

Peace, MikeOn 6/8/06, Robert Thompson [EMAIL PROTECTED] wrote:









  



Grudge, Wisdom, Warning or...or read again...Michael Schmalle 
[EMAIL PROTECTED] wrote:  Man,  You must have been burned by that stove bad..
  It's not healthy holding a grudge this hard!  Peace, Mike.On 6/7/06, Robert Thompson 
[EMAIL PROTECTED] wrote:   
 Re:
belowRegarding this Vista, I've seen this little thing called
Sparkle -- a reincantation of a purely failed effort to compete
against Flash back a few years ago (it was sad). But this time
around, Microsoft may intend to do what it has done to other
competitors regarding Adobe, and that is, to use Sparkle to crush the
enemy Adobe by beating it over the head with the Windows Desktop.I
do believe (but am unsure and not claiming so in order to protect
myself :-) that's an actual quote by a high level exec, but a different
company as to whoe the enemy was, at some time, by some person, at
high levels, about another competitor, and I do believe my eyes have
seen something of this sortbut I can't be sure if it was a dream or
real :-) But I can say no more than that...until a short
time...it will all be exposed soon enough...My Advice to Adobe:
Watch out. Old cheeseburger loving dogs who have been found to
have broken the law don't learn new tricks (they don't change).
And believe me $50B in cash reserves buys a lot of cheeseburgers; and
that's just cold hard cash; earned and blossomed all from the seed of a
bald-man telling IBM they had DOS _complete_ when in actuality they did
not, and instead this bald-man offered 50k to someone who wasn't aware
of this information about IBM needing what he'd developed. The
story spawns from there. Was that first action illegal.
Probably not. Dishonest - Absolutely. Unethical -
Absolutely.This
bald-headed guy grew up just a few miles from me and taints the image
and spirit of a beautiful school called Country Day.Question
is: Was he numbed up by his boss, or was it the other way around.
I kind of think being caught for soliciting prostitution in Arizona,
leads me to believe it was his boss. So, obviously these people
have no spiritual foundation and simply believe whatever means
necessary and survival of the fittest.They've got some hot weather coming.Who am I talking about -- your guess is as good as mine -- not my thread.But I do plan on Establishing FLEX  
2.0 for my future development.As
Mickey softy (he's a ganster :-) fades away ever so slowly. Long
live Bono a true and tried person who has a long track record of
helping the poor in africa; as for the other two. I won't say it.-rchristopherjdunn 
 [EMAIL PROTECTED] wrote:  Just incase anyone would like to test any of the flex apps/clients on MS Vista  Beta 2, it can now be downloaded from MS's website:
  http://www.microsoft.com/windowsvista/getready/preview.mspx  
 Chris __Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com  
-- What goes up, does come down.  
 __Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
  













-- What goes up, does come down.

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  

RE: [flexcoders] Question

2006-06-08 Thread Kelly @ Dekayd Media Inc.










If you need J2EE capabilities then you can
use: http://geronimo.apache.org/



I think JBoss is J2EE too but I am not
sure.



Last time I checked (beta 2) FDS is just a
.war file and as such can be deployed on Apache Tomcat which is very free.





I would say stick with whatever language
you find most useful if you already have a preference but if you dont have
one then consider that FDS itself is written in Java.







--Kelly





















From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michael Schmalle
Sent: Wednesday, June 07, 2006
6:43 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Question











Kelly,

 Java is free.

Am I getting messed up, I thought you needed like jrun or j2ee. Honestly, I did
Java 2 years back and I would love to know how I could use it with FDS?

I had got servlets working and things. Do you have any urls that point to what
'free' java would give you using flex. Right now I use php5.

Peace, Mike



On 6/7/06, Kelly @
Dekayd Media Inc. [EMAIL PROTECTED]
wrote:













ColdFusion compiles to
Java and it doesn't offer all the features of Java.



It also costs about $7000
per enterprise license (last time I checked).





Java is free.







As for any of the other
competitors I cannot say.

















From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Brendan Meutzner
Sent: Wednesday, June 07, 2006
4:59 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Question















So how about we take this
off on a tangent a bit... why would I use Java instead of ColdFusion or vice
versa? The floor is open... My apologies if this has already been
discussed, but I don't remember seeing anything.





On 6/7/06, Tracy
Spratt [EMAIL PROTECTED]
wrote:













Yes.

Tracy











From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, June 07, 2006
5:13 PM






To: flexcoders@yahoogroups.com
Subject: [flexcoders] Question

















Does Flex and Java work
well together
















































-- 
What goes up, does come down. 






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






[flexcoders] AxisRenderer Bug

2006-06-08 Thread Brendan Meutzner
Hi,

Came across something today, which I'm guessing should be filed as a
bug...

If you are using an AxisRenderer on a chart, and resize the Chart
instance to the point that the labels disappear, you get the following

Cannot access a property or method of a null object reference.at
mx.charts::AxisRenderer/adjustGutters()[C:\dev\beta3\sdk\frameworks\mx\charts\AxisRenderer.as:1182]



Brendan






 Yahoo! Groups Sponsor ~-- 
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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] questions about overriding updateDisplayList() for VDividedBox

2006-06-08 Thread Tom Bray
My goal is to extend the VDividedBox so that I can minimize/maximize
its children (like the Navigator and Outline panes in flexbuilder, for
example).  I checked out what documentation I could find and I have
some questions.

Are the dividers layed out in layoutChrome()?  If so, when I override
updateDisplayList and change sizes and positions of children, will
layoutChrome get called again? Does updateDisplayList happen again
too?  When I resize the children, do they invalidateDisplayList on
their parent (the VDividedBox)?

The docs say the following: To size components in the
updateDisplayList() method, you use the setActualSize() method, not
the sizing properties such as width and height. To position a
component, use the move() method, not the x and y properties.  But it
doesn't explain why -- I'm assuming it's so that
parent.invalidateDisplayList() happens.  Is that correct?

Is the source code of the VDividedBox available somewhere so I can see
exactly what's going on?

Thanks,

Tom


 Yahoo! Groups Sponsor ~-- 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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] Re: Help on Illegal assignment to function

2006-06-08 Thread Francis Cheng










Its probably because there is a
difference between fixed properties and properties added at runtime. Fixed
properties are variables, methods, or constants that you define as part of a
class definition. These are fixed in the sense that you cannot remove them or
replace them at runtime. Thats what Gordon was talking about. 



A dynamic class, on the other hand, allows
you to create objects that are not sealed, but does not allow you
to alter fixed properties. It is true that an instance of a dynamic class can
be modified at runtime, but only to the extent that you can add new properties
or modify any new properties added at runtime. In other words, even in a
dynamic class, you cannot alter a fixed property.



If you want to redefine properties at
runtime, either dont declare them as fixed properties or use prototype properties
instead of fixed properties. You can read about the prototype object in the
Advanced Topics section of Programming ActionScript 3.0, which is currently
available here:



http://livedocs.macromedia.com/labs/1/flex20beta3/1551.html



Francis













From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of polestar11
Sent: Thursday, June 08, 2006 6:32
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Help on
Illegal assignment to function











Gordon wrote:
 In AS3, if a class has declared a method at compile time, you can't
 reset that method at runtime to be a different function.

In AS3 one should be able to change methods and properties at runtime
of dynamic classes:
A dynamic class defines an object that can be altered at run time by
adding or changing properties and methods

I am getting the same error (Illegal assignment to function) even
though the class is dynamic. Why would this be?






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






Re: [flexcoders] questions about overriding updateDisplayList() for VDividedBox

2006-06-08 Thread Michael Schmalle



Hi;

Check

C:\Program Files\Adobe\Flex Builder 2.0 Beta 3\Flex SDK 2.0\frameworks\source\mx

I studied that class long and hard. Good luck, there is a lot going on.
I think once you see that class, you will realize you need to do
alittle study ;-)

Peace, MikeOn 6/8/06, Tom Bray [EMAIL PROTECTED] wrote:









  



My goal is to extend the VDividedBox so that I can minimize/maximize
its children (like the Navigator and Outline panes in flexbuilder, for
example).  I checked out what documentation I could find and I have
some questions.

Are the dividers layed out in layoutChrome()?  If so, when I override
updateDisplayList and change sizes and positions of children, will
layoutChrome get called again? Does updateDisplayList happen again
too?  When I resize the children, do they invalidateDisplayList on
their parent (the VDividedBox)?

The docs say the following: To size components in the
updateDisplayList() method, you use the setActualSize() method, not
the sizing properties such as width and height. To position a
component, use the move() method, not the x and y properties.  But it
doesn't explain why -- I'm assuming it's so that
parent.invalidateDisplayList() happens.  Is that correct?

Is the source code of the VDividedBox available somewhere so I can see
exactly what's going on?

Thanks,

Tom

  













-- What goes up, does come down.

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Initialize funkyness

2006-06-08 Thread Scott Langeberg



I believe that initialize() is only triggered the first time the movie loads. You'll probably want to call the function again, using a listener on the statechange. Sorry I don't have any code to give...

;) Scott
On 6/8/06, Jeremy Rottman [EMAIL PROTECTED] wrote:






I am using initialize to call a function when I enter a state. Thefirst time I enter the state everything works fine. The function iscalled and the text input is populated correctly. But when I leave thestate, and go back into at another time, it appears that the function
is not called and the text input is not populated. Has anyone ran intothis before. Here is the code I am usingTHIS IS MY WEBSERVICE --mx:WebService id=listService useProxy=false 
wsdl=cfc/adminList.cfc?wsdlshowBusyCursor=truemx:operation name=qiAdminListStart result=listServiceqiAdminListStartResult(listService.qiAdminListStart.lastResult
 ) fault=listServiceqiAdminListStartFault(event)//mx:WebServiceFUNCTIONS FOR THIS WEBSERVICE --// CALL WEBSERVICE TO POPULATE FILE NUMBER INPUTprivate function listServiceqiAdminListStart():void{
listService.qiAdminListStart();}// WEBSERVICE RETURN RESULTS -- POPULATES FILE NUMBER INPUT ONINIALIZATIONprivate function listServiceqiAdminListStartResult(result):void{fileNumber.text = result;
}// WEBSERVICE RETURNS FALUT -- RETURNS FAULT TO USERprivate function listServiceqiAdminListStartFault(event :FaultEvent) :void {Alert.show(TEST ERROR,Program Error:);
} -- : : ) Scott 

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



RE: [flexcoders] AxisRenderer Bug

2006-06-08 Thread Ely Greenfield







Hi Brendan. I think I actually just fixed this bug in 
the mainline a few days ago. If you have a simple reproducable file you could 
send me, I can verify it.

Thanks,
Ely.



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Brendan 
MeutznerSent: Thursday, June 08, 2006 11:43 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] AxisRenderer 
Bug


Hi,Came across something today, which I'm guessing should be filed as 
abug...If you are using an AxisRenderer on a chart, and resize the 
Chartinstance to the point that the labels disappear, you get the 
followingCannot access a property or method of a null object 
reference.atmx.charts::AxisRenderer/adjustGutters()[C:\dev\beta3\sdk\frameworks\mx\charts\AxisRenderer.as:1182]Brendan
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] how to tell DateField to update from internal date

2006-06-08 Thread Jason
I have a DateField object that I manipulate in code:

startBox.selectedDate.date++;

This works fine, but the date displayed in the field doesn't update. 
Is there some method to call to tell the DateField to update itself
based on it's date?  Only thing I've found is to create a new date
object, assign the startBox.selectedDate to it, increment that new
object, then reassign it to startBox.selectedDate.  Seems wasteful and
kludgy.  Hopefully there's another way.






 Yahoo! Groups Sponsor ~-- 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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] MenuBar

2006-06-08 Thread dhvani_d
I am trying to build a menu. I would like to use MenuBar class. But
instead of showing the label property for each item in the menubar, I
want to show an icon/button/image. Is this possible? Has anyone done this?

- dhvani






 Yahoo! Groups Sponsor ~-- 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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: Help on Illegal assignment to function

2006-06-08 Thread drome.dario
I Agree with Gordon in the interpretation of that stated in the 
documentation:
If the method is declared at compile time, you can not change it 
even if the class is dynamic or not
However, if you define your method at runt time, then, you can change 
it when you need it. So, given that the method in the example IS NOT 
coming from any implementes interface, I do not see any problem in 
defining it at runtime.

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

 Gordon wrote:
  In AS3, if a class has declared a method at compile time, you 
can't
  reset that method at runtime to be a different function.
 
 In AS3 one should be able to change methods and properties at 
runtime
 of dynamic classes:
 A dynamic class defines an object that can be altered at run time 
by
 adding or changing properties and methods
 
 I am getting the same error (Illegal assignment to function) even
 though the class is dynamic. Why would this be?








 Yahoo! Groups Sponsor ~-- 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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] Flex Dynamic Menu Architecture

2006-06-08 Thread Wally Randall
I have a large menu with about 100 different nodes and sub-nodes.  I 
am trying to design a means of enabling the menu nodes at run-time 
rather than hardcoded in the mxml menu application.

I envisage having the menu call a ColdFusion CFC to dynamically build 
the menu menubarXML list with the user-specific options enabled from 
the Application creationComplete event.

Does anyone have an example of how to do this in AS3? 

Is this the best way of handling this type of menu?






 Yahoo! Groups Sponsor ~-- 
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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] Problem importing Flex 2.0 project from B2 to B3, Definition mx.rpc.remoting:Rem

2006-06-08 Thread c64_addict
My project worked fine in B2 so i installed B3 release, import in B3 
and i'we got: Definition mx.rpc.remoting:RemoteObject could not be 
found error.
 
1. Was my import proper or i have to do something else ( copy some .as 
or .swc files? or.).

2. I also create new project in B3 and just insert the code from B2, 
and no success, same error.

2. Any changes to the syntax of the interface or what?( i have 
searched in Flex:Beta_2_to_Beta_3_Changes can't find anything)

Any help is welcomed. Thanks in advance. 







 Yahoo! Groups Sponsor ~-- 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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: Viewing HTML

2006-06-08 Thread Brian Riggs
One thing you could try is to assign the String to an (e4x) XML 
object, set XML.ignoreWhitespace to true, and then output the result 
using XML.toXMLString().  This should cause whitespace between tags 
to be stripped out.

-- Brian

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

 Christophe's blog in this case doesn't help. His iFrame points to a
 static HTML page.
 
 I have a String like this:
 
 //whether it be js or Flex...and my string has spaces b/w lines just
 like this
 var htmlString : String = htmlhead
 
 titletest/testbodymy 
 body 
 body/html;
 
 there's no way I know of to assign this to a new window or Flex 
object
 and have it display correctly. If I make the String above lal one
 line, then it works OK.
 
 --- In flexcoders@yahoogroups.com, tonyx_788 tonyx_788@ wrote:
 
  hi Suzy i think Phil is talking about coenraets blog,
  this is the link   hope it helps
  
  http://www.coenraets.com/apps/iframe/index.htm
  
  **Saludos**
  Tony
  
  --- In flexcoders@yahoogroups.com, Phil Marston p.marston@ 
wrote:
  
   Hi Suzy,
   
   I can't remember which blog I saw it on (one of the Adobe guys I
  think), 
   but I saw an example using an IFrame to load the HTML in.  Then 
a
  custom 
   component in the Flex movie sent messages to Javascript so the 
IFrame 
   always appeared in the right place and the right size over the 
Flex
  page 
   - it worked really nicely and sound like just what you need - 
sorry I 
   can't be more help, but perhaps this'll jog the memory of 
someone
  who as 
   a memory!
   
   HTH
   
   Phil
   
   Suzy Lawson wrote:
Hello Group-
  I have an app that receives XML data over the socket.
 Specifically,
it is data that is in 2 formats (plain text and HTML).
   
The HTML that gets sent represents the FULL html code (i.e. 
the
top-level 'html', 'meta', 'head', 'style', 'div', 'body' tags
 etc..).
   
Sometimes the tags have namespaces and even 'class' attributes
assigned to them which relate to styles defined w/i the 
style tag.
   
For this reason, I can't just set the XML value to 
the 'htmlText'
attribute of a text field. 
   
I tried using the ExternalInterface API and pass the HTML (see
 example
below) to a javscript method which opens a new window and 
calls
'document.write(passedValueFromFlex)', but that does not work 
b/c of
the extra rows between tags. If I manually remove the white 
spaces
from each row where the HTML is one long String...it works 
fine. 
   
Using a parser to handle that would be near impossible to 
create
though. Does anyone have any ideas for a solution (to display
  HTML) 
   
Thanks.
   
   
   
message
  plainTextThis is the message./plainText
  htmlTextlt;htmlgt;
   
   
   
lt;headgt;
   
lt;/headgt;
   
   
   
lt;body lang=EN-USgt;
   
This is the lt;bgt;messagelt;/bgt;.
   
lt;/bodygt;
   
   
   
lt;/htmlgt;
/htmlText
/message
   
   
   
   
   
   
   
--
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
   
   
   
 
   
   
  
   
   -- 
   __ 
   Phil Marston 
   Learning Technologist
   Learning Technology Unit 
   Edward Wright G33, University of Aberdeen, Aberdeen, AB24 3QY, 
UK
   p.marston@ Tel: +44(0)1224 273329 / +44(0)7798 723660 
   http://www.abdn.ac.uk/diss/ltu/pmarston/
   http://www.abdn.ac.uk/diss/ltu/
   __
   
   The University of Aberdeen Open Day 29th August 2006
   Booking is essential
   www.abdn.ac.uk/openday
   email openday@
   or call 0800 027 1495
  
 







 Yahoo! Groups Sponsor ~-- 
Everything you need is one click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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] CSS Value for '{cssValue}' not supported

2006-06-08 Thread Irv Kanode
Title: Re: [flexcoders] CSS Value for '{cssValue}' not
supported




I get the CSS Value for '{cssValue}' not supported
error in beta 3 when I try to use an Application style and
within it set the backgroundSize to 100%. Setting backgroundSize
to auto, works.

I'd guess the error means you are trying to change something that
either can't be changed, or can't be set to the specified value.


Irv




I searched the archives and found 1
question about this, but no reply

has anyone figured it out or have an answer?

--
John Grden - Blitz

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


SPONSORED LINKS
Web site design development Computer software development Software design and development Macromedia flex Software development best practice



YAHOO! GROUPS LINKS



Visit your group flexcoders on the web.

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

Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.



__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] AxisRenderer Bug

2006-06-08 Thread Brendan Meutzner



Ely,Interestingly, I went and modified one of the examples from the ChartExplorer to send to reproduce and send to you. It's labelRotation was set to 90, and the error wouldn't reproduce. So I changed it to 75 (which is what I had my production chart set to) and sure enough, error. I didn't try everything  0 and  90, but i'd assume that's where the error occurs... Below is a reproducable app... just drag the divider up until the label's disappear on the chart.
Thanks-?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=
http://www.adobe.com/2006/mxml mx:Style @font-face{ src: local(arial); fontFamily: axisFont; } .axisStyle { fontFamily: axisFont;
 } /mx:Style mx:Script ![CDATA[ import mx.charts.series.BarSeries; private function formatDataTip(obj:Object):String { var region:String=
obj.hitData.item.name; var seriesName:String= (obj.hitData.element as BarSeries).displayName; var value:Object=results.gen[obj.hitData.chartItem.index
][obj.hitData.element.xField]; return b+region+/bbr+seriesName+br+cf.format(value); } private function currencyFormat(value:Number,prevValue:Number,axis:Object):String {
 return cf.format(value); } ]] /mx:Script mx:CurrencyFormatter id=cf/ mx:HTTPService id=srv url=""
regiondata.xml/ mx:Model id=resultsgen{srv.lastResult.data.region}/gen/mx:Model  mx:VDividedBox mx:BarChart id=chart dataProvider={
results.gen} showDataTips=true width=100% height=100%  styleName=axisStyle dataTipFunction=formatDataTip   mx:verticalAxis
  mx:CategoryAxis dataProvider={results.gen} categoryField=name/  /mx:verticalAxis   mx:horizontalAxisRenderer  mx:AxisRenderer labelRotation=75 /
  /mx:horizontalAxisRenderer   mx:horizontalAxis  mx:LinearAxis labelFunction=currencyFormat /  /mx:horizontalAxis
mx:series  mx:Array  mx:BarSeries xField=apple displayName=Apple/  mx:BarSeries xField=orange displayName=Orange/
  mx:BarSeries xField=banana displayName=Banana/  /mx:Array  /mx:series   /mx:BarChart  
  mx:Canvas / /mx:VDividedBox/mx:Application-On 6/8/06, 
Ely Greenfield [EMAIL PROTECTED] wrote:









  








Hi Brendan. I think I actually just fixed this bug in 
the mainline a few days ago. If you have a simple reproducable file you could 
send me, I can verify it.

Thanks,
Ely.



From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of Brendan 
MeutznerSent: Thursday, June 08, 2006 11:43 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] AxisRenderer 
Bug


Hi,Came across something today, which I'm guessing should be filed as 
abug...If you are using an AxisRenderer on a chart, and resize the 
Chartinstance to the point that the labels disappear, you get the 
followingCannot access a property or method of a null object 
reference.atmx.charts::AxisRenderer/adjustGutters()[C:\dev\beta3\sdk\frameworks\mx\charts\AxisRenderer.as:1182]
Brendan

  















__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] Re: Initialize funkyness

2006-06-08 Thread Jeremy Rottman
That is exactly what I changed it to scott. Thanks for the thought.

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

 I believe that initialize() is only triggered the first time the movie
 loads. You'll probably want to call the function again, using a
listener on
 the state change. Sorry I don't have any code to give...
 
 ;) Scott
 
 
 On 6/8/06, Jeremy Rottman [EMAIL PROTECTED] wrote:
 
 I am using initialize to call a function when I enter a state. The
  first time I enter the state everything works fine. The function is
  called and the text input is populated correctly. But when I leave the
  state, and go back into at another time, it appears that the function
  is not called and the text input is not populated. Has anyone ran into
  this before.
 
  Here is the code I am using
 
  THIS IS MY WEBSERVICE --
 
  mx:WebService id=listService useProxy=false
  wsdl=cfc/adminList.cfc?wsdl
  showBusyCursor=true
  mx:operation name=qiAdminListStart
  result=listServiceqiAdminListStartResult(
  listService.qiAdminListStart.lastResult )
  fault=listServiceqiAdminListStartFault(event)/
  /mx:WebService
 
  FUNCTIONS FOR THIS WEBSERVICE --
 
  // CALL WEBSERVICE TO POPULATE FILE NUMBER INPUT
  private function listServiceqiAdminListStart():void{
  listService.qiAdminListStart();
  }
  // WEBSERVICE RETURN RESULTS -- POPULATES FILE NUMBER INPUT ON
  INIALIZATION
 
  private function listServiceqiAdminListStartResult(result):void{
  fileNumber.text = result;
  }
 
  // WEBSERVICE RETURNS FALUT -- RETURNS FAULT TO USER
 
  private function listServiceqiAdminListStartFault(event :
  FaultEvent) :void {
  Alert.show(TEST ERROR,Program Error:);
  }
 
 
  
 
 
 
 
 -- 
 
 : : ) Scott








 Yahoo! Groups Sponsor ~-- 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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] AxisRenderer Bug

2006-06-08 Thread Ely Greenfield







Thanks Brendan. This actually looks like a different 
bug. It's been logged.

Ely.



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Brendan 
MeutznerSent: Thursday, June 08, 2006 12:53 PMTo: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] AxisRenderer 
Bug


Ely,Interestingly, I went and modified one of the examples from the 
ChartExplorer to send to reproduce and send to you. It's labelRotation was 
set to 90, and the error wouldn't reproduce. So I changed it to 75 (which 
is what I had my production chart set to) and sure enough, error. I didn't 
try everything  0 and  90, but i'd assume that's where the error 
occurs... Below is a reproducable app... just drag the divider up until 
the label's disappear on the chart. 
Thanks-?xml 
version="1.0" encoding="utf-8"?mx:Application xmlns:mx=" 
http://www.adobe.com/2006/mxml" 
mx:Style 
@font-face{ 
src: 
local("arial"); 
fontFamily: axisFont; 
} .axisStyle 
{ 
fontFamily: axisFont;  
} /mx:Style 
mx:Script 
![CDATA[ import 
mx.charts.series.BarSeries; 
private function formatDataTip(obj:Object):String 
{ var 
region:String= obj.hitData.item.name; 
var seriesName:String= (obj.hitData.element as 
BarSeries).displayName; 
var value:Object=results.gen[obj.hitData.chartItem.index 
][obj.hitData.element.xField]; 
return 
"b"+region+"/bbr"+seriesName+"br"+cf.format(value); 
} private function 
currencyFormat(value:Number,prevValue:Number,axis:Object):String { 
 return 
cf.format(value); 
} 
]] /mx:Script 
mx:CurrencyFormatter id="cf"/ 
mx:HTTPService id="srv" url=""/ 
mx:Model 
id="results"gen{srv.lastResult.data.region}/gen/mx:Model 
 mx:VDividedBox 
   
 mx:BarChart id="chart" dataProvider="{ results.gen}" 
showDataTips="true" width="100%" height="100%" 
 styleName="axisStyle" 
dataTipFunction="formatDataTip"  
 mx:verticalAxis 
 
 
mx:CategoryAxis dataProvider="{results.gen}" 
categoryField="name"/ 
 
/mx:verticalAxis  
 
mx:horizontalAxisRenderer 
 
mx:AxisRenderer labelRotation="75" /  
 
/mx:horizontalAxisRenderer  
 
mx:horizontalAxis 
 
mx:LinearAxis labelFunction="currencyFormat" / 
 /mx:horizontalAxis 
   
 
mx:series 
 
mx:Array 
 
mx:BarSeries xField="apple" displayName="Apple"/ 
 
mx:BarSeries xField="orange" displayName="Orange"/ 
 
 
mx:BarSeries xField="banana" displayName="Banana"/ 
 
/mx:Array 
 
/mx:series  
 /mx:BarChart  
  mx:Canvas 
/ 
/mx:VDividedBox/mx:Application-
On 6/8/06, Ely 
Greenfield [EMAIL PROTECTED] wrote:

  
  
  
  
  
  
  
  
  Hi 
  Brendan. I think I actually just fixed this bug in the mainline a few 
  days ago. If you have a simple reproducable file you could send me, I can 
  verify it.
  
  Thanks,
  Ely.
  
  
  
  From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Brendan 
  MeutznerSent: Thursday, June 08, 2006 11:43 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] 
  AxisRenderer Bug
  
  
  
  Hi,Came across something today, which I'm guessing should be filed 
  as abug...If you are using an AxisRenderer on a chart, and resize 
  the Chartinstance to the point that the labels disappear, you get the 
  followingCannot access a property or method of a null object reference.atmx.charts::AxisRenderer/adjustGutters()[C:\dev\beta3\sdk\frameworks\mx\charts\AxisRenderer.as:1182] 
  Brendan
  
  

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] I've got me data bindings in a terrible twist. FB2b3

2006-06-08 Thread willmorganuk
Hi All - I'm getting really confused here. The help docs offer
examples of binding webservice results to either UI components or
objects, such as an ArrayCollection. 

This is all good and fine, but shouldn't I be binding these results to
a model? And then bind UI comps to the model too?

Here's what I thought would happen (an initApp() function starts the
ball rolling with getAllActiveCustomers).

mx:WebService id=theWebservice ...

mx:operation name=getAllActiveCustomers/

mx:operation name=getCustomerDetail
mx:request{ActiveCustomerModel.CUST_ID}/mx:request
/mx:operation

/mx:WebService


mx:model id=ActiveCustomerModel
{theWebservice.getAllActiveCustomers.lastResult}
/mx:model

mx:model id=CustomerDetailModel
{theWebservice.getCustomerDetail.lastResult}
/mx:model


mx:Button label=Get details on: {ActiveCustomerModel.CUST_NAME}
click=theWebservice.getCustomerDetail.send()/

mx:DataGrid dataProvider={CustomerDetailModel} ...
...
/mx:DataGrid


The model can update the GUI components, and vise-versa, the
webservice requests can use the model and the webservice results can
update the model. Right? All one happy circle of pushing data about?

So, what are the best practices for data binding? Is this anywhere
even close? Is it sensible to use (I'm not even sure if this actually
would work)? Is there one rock-solid example of managing webservice
requests  results, and mx:models and user-input?

Should I send data within the
webservice.operationName.send(ActiveCustomerModel.CUST_ID)??? 

Should I go and sell used cars?

Help! Thanks!






 Yahoo! Groups Sponsor ~-- 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM
~- 

--
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/

* 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/
 




  1   2   >