Re: [flexcoders] SCGs with fonts

2005-08-08 Thread Manish Jethani
On 8/7/05, Manish Jethani [EMAIL PROTECTED] wrote:
 On 8/7/05, Jason W. Solinsky [EMAIL PROTECTED] wrote:

  Is it possible to Embed SVGs in mxml pages such that the SVG either uses
  a font already embeded in the application (preferable) or a font embeded
  in the SVG?

 http://wahlers.com.br/claus/blog/display-svg-in-97-of-all-web-browsers/
 
 You could load DENG into a Flex application using the Loader
 component.  Try it, and let us know how it works.

Maybe I should read the manual sometimes.  Sorry.

http://livedocs.macromedia.com/flex/15/flex_docs_en/0432.htm

(Just correcting myself... not that this answers your query.)

Manish


 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hva6oj1/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123489727/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy/a./font
~- 

--
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 of installation with Fedora C4

2005-08-08 Thread endofadam228
Hi All,
I want to install the Flex server in fedora C4, I tried many different
config to install, but still not work

Any one can help me? Please!

the installation and display the messages are as below:

[EMAIL PROTECTED] ~]# cd flex
[EMAIL PROTECTED] flex]# ./flex-15-lin.bin Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
awk: cmd. line:6: warning: escape sequence `\.'
treated as plain `.'

Launching installer...

Preparing CONSOLE Mode Installation...

===
   (created with InstallAnywhere
by Zero G)
---

===

Installer User Interface Mode Not Supported

Unable to load and to prepare the installer in console or silent mode.

===




 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12h35u31v/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123497252/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy/a./font
~- 

--
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] Remote Object Errors

2005-08-08 Thread Josh Noland
Christoph,
   No luck.  I am still getting the Error: 
org/apache/commons/collections/FastHashMap.  When I check the network 
monitor in Flex Builder it is making the request as expected but I am not 
seeing it catch the result object.  Do you have any other ideas?

Josh

From: Christoph Guse [EMAIL PROTECTED]
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Remote Object Errors
Date: Mon, 08 Aug 2005 11:41:31 +0200

Hi Josh,

you should use the automatic mapping between Java ValueObjects and
ActionScript ValueObjects.  For that your ActionScript VO should look
like this:

/***
AS class
***/
// ActionScript Document
class Person {
   var name:String;
   var birthdate:String;
   public static var registeredClass:Boolean =
Object.registerClass([full path in WEB-INF / java class name],Person);
}

Don't use a constructor in the AS VO, the constructor is called AFTER
FLEX filled the attributes from the Java VO.

Your MXML file could look like this:

/***
MXML File
***/
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;

   mx:RemoteObject id=peopleObject source=People
 mx:method name=getPerson
result=handleResults(event.result)/
   /mx:RemoteObject

   mx:Script
   ![CDATA[
 import Person;
 var my_person:Person;

 function handleResults(event){
 my_person = event.result;
 }
   ]]
   /mx:Script

   mx:Panel width=800 height=600
 mx:HBox
   mx:Form
   mx:FormItem label=Person name
  mx:Label text={my_person.name} /
   /mx:FormItem
   mx:FormItem label=birthday
  mx:Label text={my_person.birthdate} /
   /mx:FormItem
   /mx:Form
   mx:Button label=Get Person
click={peopleObject.getPerson()} /
 /mx:HBox
   /mx:Panel
/mx:Application

I coded everything in my mail app, so I'm not totally shure if the code
runs at once.

Greetings
Christoph

Josh Noland wrote:
  I am having trouble accessing any Java objects that return something
  other
  than the Java types flex will implicitly convert.  I am using the
  RemoteObject tag. The first time I try to access the result from the 
pojo
  function call I get Error:
  org/apache/commons/collections/FastHashMap in
  the JRun console.  Each successive call will throw Error: null.  I am
  using JRun4.
 
  The code is below.  I have stripped all of the functionality to try
  and get
  rid of the error and to try to get Flex to recognize my remote object
  returned.
 
  For now all I want to do is successfully call the function that
  returns my
  person and display one of the fields from the object.
 
  Has anybody else experienced this type of problem?
 
  Josh
 
 
 
 
  /
  Java Class I am trying to use in Flex
  /
  public class Person implements Serializable  {
 
private String name;
private String birthdate;
 
public Person (){
}
 
public Person (String name, String birthdate) {
  this.name = name;
  this.birthdate = birthdate;
}
 
public void setName(String name) {
  this.name = name;
}
 
public String getName() {
  return name;
}
 
public void setBirthdate(String birthdate) {
  this.birthdate = birthdate;
}
 
public String getBirthdate() {
  return birthdate;
}
  }
 
 
  /*
  Java Function Call that returns an Object to Flex and resides in People
  Object
  */
public Person getPerson(){
  return new Person(Josh, 8/8/2005);
}
 
  /***
  MXML File
  ***/
  mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
 
mx:RemoteObject id=peopleObject source=People
  mx:method name=getPerson
  result=handleResults(event.result)/
/mx:RemoteObject
 
mx:Script
![CDATA[
  function handleResults(eventResult){
var p1:Person = new
  Person(eventResult.getProperty('name'),
  eventResult.getProperty('birthdate'));
  }
]]
/mx:Script
 
mx:Panel width=800 height=600
  mx:HBox
mx:Button label=Get Person
  click={peopleObject.getPerson()} /
  /mx:HBox
/mx:Panel
  /mx:Application
 
  /***
  AS class
  ***/
  // ActionScript Document
  class Person implements DataProvider{
var name:String;
var birthdate:String;
 
function Horse(myName:String, myBirthdate:String){
  this.name = myName;
  this.birthdate = myBirthdate;
}
 
function getName(){
  return(name);
}
function getBirthdate(){
  return(birthdate);
}
  }
 
 
 
 
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives: 

[flexcoders] Re: nested viewstacks, creationPolicy of none and the creation dilemma

2005-08-08 Thread Jaime Bermudez
So, nobody on the board knows how to tell through the childDescriptors
array if a child of a viewstack has creationPolicy of none?

On 8/5/05, Jaime Bermudez [EMAIL PROTECTED] wrote:
 Hey guys,
 
 I'm not sure if this question was fully explored, but I have a case
 where I have some nested viewstacks that may have creationPolicies of
 none.  They are actally subclasses of the viewstack class, w/ an
 activate method that will instantiate a child if it has not yet been
 defined (i.e. customVS.activate(childCmpId)).  The instantiation is
 done through the createComponent method, passing in the descriptor
 index.  The question I have is how can I tell what the creationPolicy
 of the child is so that I can pass a false to the createComponent
 method if it's none?
 
 Thanks,
 
 Jaime



 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12h5uil8h/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123516475/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy/a./font
~- 

--
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: Problem of installation with Fedora C4

2005-08-08 Thread kaibabsowats
Seems to be a awk issue.  Find what version of awk is on the Flex
support RedHat Enterprise stuff and use a version close to it.

--- In flexcoders@yahoogroups.com, endofadam228
[EMAIL PROTECTED] wrote:
 Hi All,
 I want to install the Flex server in fedora C4, I tried many different
 config to install, but still not work
 
 Any one can help me? Please!
 
 the installation and display the messages are as below:
 
 [EMAIL PROTECTED] ~]# cd flex
 [EMAIL PROTECTED] flex]# ./flex-15-lin.bin Preparing to install...
 Extracting the JRE from the installer archive...
 Unpacking the JRE...
 Extracting the installation resources from the installer archive...
 Configuring the installer for this system's environment...
 awk: cmd. line:6: warning: escape sequence `\.'
 treated as plain `.'
 
 Launching installer...
 
 Preparing CONSOLE Mode Installation...
 

===
(created with InstallAnywhere
 by Zero G)

---
 
 ===
 
 Installer User Interface Mode Not Supported
 
 Unable to load and to prepare the installer in console or silent mode.
 
 ===





 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hb4c52k/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123517253/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOOcmpgn=GRPRTP=http://groups.yahoo.com/;In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!/a./font
~- 

--
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: nested viewstacks, creationPolicy of none and the creation dilemma

2005-08-08 Thread Philippe Maegerman





I made a little sample

?xml 
version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"mx:TabBar 
dataProvider="vs"/mx:TabBarmx:ViewStack 
id="vs"mx:Canvas width="550" height="400" 
creationPolicy="none" 
label="stack1"/mx:Canvasmx:Canvas width="550" 
height="400" creationPolicy="auto" 
label="stack2"/mx:Canvas/mx:ViewStackmx:Button 
label="stack1 creationPolicy" 
click="alert(vs.getChildAt(0)['creationPolicy'])"/mx:Buttonmx:Button 
label="stack2 creationPolicy" 
click="alert(vs.getChildAt(1)['creationPolicy'])"/mx:Button/mx:Application

Philippe 
Maegerman




From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Jaime 
BermudezSent: lundi 8 août 2005 15:55To: 
flexcoders@yahoogroups.comSubject: [flexcoders] Re: nested 
viewstacks, creationPolicy of none and the creation dilemma
So, nobody on the board knows how to tell through the 
childDescriptorsarray if a child of a viewstack has creationPolicy of 
none?On 8/5/05, Jaime Bermudez [EMAIL PROTECTED] 
wrote: Hey guys,  I'm not sure if this question was 
fully explored, but I have a case where I have some nested viewstacks 
that may have creationPolicies of none. They are actally 
subclasses of the viewstack class, w/ an activate method that will 
"instantiate" a child if it has not yet been defined (i.e. 
customVS.activate("childCmpId")). The instantiation is done 
through the createComponent method, passing in the descriptor 
index. The question I have is how can I tell what the 
creationPolicy of the child is so that I can pass a false to the 
createComponent method if it's "none"?  Thanks, 
 
Jaime





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



  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.



  






--**STATEMENT OF CONFIDENTIALITY** 
This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited.
We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus.--


Re: [flexcoders] Re: nested viewstacks, creationPolicy of none and the creation dilemma

2005-08-08 Thread Jaime Bermudez
Thanks Philippe, that works for auto viewstacks but I'm dealing w/ a
viewstack w/ creationPolicy = none so doing a getChildAt(index) will
return a null.  I need to check the childDescriptors array... any
other ideas?

On 8/8/05, Philippe Maegerman [EMAIL PROTECTED] wrote:
 I made a little sample
  
 ?xml version=1.0 encoding=utf-8?
 mx:Application
 xmlns:mx=http://www.macromedia.com/2003/mxml;
 mx:TabBar dataProvider=vs/mx:TabBar
 mx:ViewStack id=vs
  mx:Canvas width=550 height=400 creationPolicy=none
 label=stack1/mx:Canvas
  mx:Canvas width=550 height=400 creationPolicy=auto
 label=stack2/mx:Canvas
 /mx:ViewStack
 mx:Button label=stack1 creationPolicy
 click=alert(vs.getChildAt(0)['creationPolicy'])/mx:Button
 mx:Button label=stack2 creationPolicy
 click=alert(vs.getChildAt(1)['creationPolicy'])/mx:Button
 /mx:Application
  
 Philippe Maegerman
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Jaime Bermudez
 Sent: lundi 8 août 2005 15:55
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: nested viewstacks, creationPolicy of none and the
 creation dilemma
 
 
 So, nobody on the board knows how to tell through the childDescriptors
 array if a child of a viewstack has creationPolicy of none?
 
 On 8/5/05, Jaime Bermudez [EMAIL PROTECTED] wrote:
  Hey guys,
  
  I'm not sure if this question was fully explored, but I have a case
  where I have some nested viewstacks that may have creationPolicies of
  none.  They are actally subclasses of the viewstack class, w/ an
  activate method that will instantiate a child if it has not yet been
  defined (i.e. customVS.activate(childCmpId)).  The instantiation is
  done through the createComponent method, passing in the descriptor
  index.  The question I have is how can I tell what the creationPolicy
  of the child is so that I can pass a false to the createComponent
  method if it's none?
  
  Thanks,
  
  Jaime
 
 
 
 --
 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 
 
  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. 
  To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]
   
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
 
 
 
 --
 **STATEMENT OF CONFIDENTIALITY** 
 
 This e-mail and any attached files are confidential and intended solely for
 the use of the individual to whom it is addressed. If you have received this
 email in error please send it back to the person that sent it to you. Any
 views or opinions presented are solely those of author and do not
 necessarily represent those the Emakina Company. Unauthorized publication,
 use, dissemination, forwarding, printing or copying of this email and its
 associated attachments is strictly prohibited.
 
 We also inform you that we have checked that this message does not contain
 any virus but we decline any responsability in case of any damage caused by
 an a non detected virus.
 --


 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hb8k54h/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123519355/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
Fair play? Video games influencing politics. Click and talk back!/a./font
~- 

--
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] Disable themecolor

2005-08-08 Thread rockmoyosa
Is there a way to disable the themecolor? Anybody?




 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hhvup8t/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123519433/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOOcmpgn=GRPRTP=http://groups.yahoo.com/;In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!/a./font
~- 

--
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 Pricing - a question about a Starter Kit ?

2005-08-08 Thread jamiebadman
Hi,

I recently stumbled across an entry on the Blog at 
http://www.mossyblog.com/archives/436.cfm where Lucian Beebe describes 
a 'Starter Kit' for Flex consisting of 4 CPU's plus Gold Support for 
$29,000.

Just wondered if this package exists ? I Can't find any details on it 
on the Macromedia site...

Anyone ?

Regards,

Jamie.





 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hj900ou/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123519782/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy/a./font
~- 

--
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] Flex Pricing - a question about a Starter Kit ?

2005-08-08 Thread Dave Carabetta
On 8/8/05, jamiebadman [EMAIL PROTECTED] wrote:
 Hi,
 
 I recently stumbled across an entry on the Blog at
 http://www.mossyblog.com/archives/436.cfm where Lucian Beebe describes
 a 'Starter Kit' for Flex consisting of 4 CPU's plus Gold Support for
 $29,000.
 
 Just wondered if this package exists ? I Can't find any details on it
 on the Macromedia site...
 

Yes, it does. Contact your local Macromedia Sales Rep for more info.
They're very helpful.

As an aside, I believe this Starter Kit is the only way to buy Flex,
effective this past April 1. I may have mis-read an e-mail I got a
while back to this effect though.

Regards,
Dave.


 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12h8154k6/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123520109/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy/a./font
~- 

--
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: nested viewstacks, creationPolicy of none and the creation dilemma

2005-08-08 Thread Philippe Maegerman





With childIndex, it supposes you pass an ID to your 
subComponent.

?xml 
version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"mx:TabBar 
dataProvider="vs"/mx:TabBarmx:ViewStack 
id="vs"mx:Canvas width="550" height="400" 
creationPolicy="none" label="stack1" 
id="st1"/mx:Canvasmx:Canvas width="550" height="400" 
creationPolicy="auto" label="stack2" 
id="st2"/mx:Canvas/mx:ViewStackmx:Button 
label="stack1" 
click="alert(vs.getChildAt(0)['creationPolicy'])"/mx:Buttonmx:Button 
label="stack2" 
click="alert(vs.getChildAt(1)['creationPolicy'])"/mx:Buttonmx:Button 
label="getChildIndex stack1" 
click="alert(vs.getChildIndex(st1).toString())"/mx:Buttonmx:Button 
label="getChildIndex stack2" 
click="alert(vs.getChildIndex(st2).toString())"/mx:Button/mx:Application

Philippe 
Maegerman




From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Philippe 
MaegermanSent: lundi 8 août 2005 17:02To: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: nested 
viewstacks, creationPolicy of none and the creation dilemma

I don't know, maybe getChildIndex ??

Philippe 
Maegerman
Webdeveloper
+32 2 400 40 
39
+32 472 35 28 
10
Avoir des rêves, 
c'est continuer d'exister... 



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Jaime 
BermudezSent: lundi 8 août 2005 16:42To: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: nested 
viewstacks, creationPolicy of none and the creation dilemma
Thanks Philippe, that works for auto viewstacks but I'm dealing 
w/ aviewstack w/ creationPolicy = "none" so doing a getChildAt(index) 
willreturn a null. I need to check the childDescriptors array... 
anyother ideas?On 8/8/05, Philippe Maegerman [EMAIL PROTECTED] 
wrote: I made a little sample  ?xml 
version="1.0" encoding="utf-8"? mx:Application 
xmlns:mx="http://www.macromedia.com/2003/mxml" 
mx:TabBar dataProvider="vs"/mx:TabBar mx:ViewStack 
id="vs" mx:Canvas width="550" height="400" 
creationPolicy="none" label="stack1"/mx:Canvas 
mx:Canvas width="550" height="400" creationPolicy="auto" 
label="stack2"/mx:Canvas /mx:ViewStack 
mx:Button label="stack1 creationPolicy" 
click="alert(vs.getChildAt(0)['creationPolicy'])"/mx:Button 
mx:Button label="stack2 creationPolicy" 
click="alert(vs.getChildAt(1)['creationPolicy'])"/mx:Button 
/mx:Application  Philippe Maegerman 
  From: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf 
Of Jaime Bermudez Sent: lundi 8 août 2005 15:55 To: 
flexcoders@yahoogroups.com Subject: [flexcoders] Re: nested viewstacks, 
creationPolicy of none and the creation dilemma  
 So, nobody on the board knows how to tell through the 
childDescriptors array if a child of a viewstack has creationPolicy of 
none?  On 8/5/05, Jaime Bermudez 
[EMAIL PROTECTED] wrote:  Hey guys,  
  I'm not sure if this question was fully explored, but I have a 
case  where I have some nested viewstacks that may have 
creationPolicies of  none. They are actally subclasses of the 
viewstack class, w/ an  activate method that will "instantiate" a 
child if it has not yet been  defined (i.e. 
customVS.activate("childCmpId")). The instantiation is  done 
through the createComponent method, passing in the descriptor  
index. The question I have is how can I tell what the 
creationPolicy  of the child is so that I can pass a false to the 
createComponent  method if it's "none"?
Thanks,Jaime
-- 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   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.  
To unsubscribe from this group, send an email to: 
[EMAIL PROTECTED]  Your 
use of Yahoo! Groups is subject to the Yahoo! Terms of Service.  
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.  
   
-- 
**STATEMENT OF CONFIDENTIALITY**   This e-mail and any attached 
files are confidential and intended solely for the use of the individual 
to whom it is addressed. If you have received this email in error please 
send it back to the person that sent it to you. Any views or opinions 
presented are solely those of author and do not necessarily represent 
those the Emakina Company. Unauthorized publication, use, dissemination, 
forwarding, printing or copying of this email and its associated 
attachments is strictly prohibited.  We also inform you that we 
have checked that this message does not contain any virus but we decline 
any responsability in case of any damage caused by an a non detected 
virus. 
--

[flexcoders] Trouble with Delegate Pattern

2005-08-08 Thread Stewart, Ryan










I am using the design
patterns from Cairngorm and Chapter 20 of the Developing Rich Clients with Flex
book (though Im not using the actual Cairngorm framework). I have a
problem that Im not sure how to debug and Im not exactly sure
what parts of my code I should post, so Ill explain the issue and maybe
someone can help me narrow it down. Im kind of an ActionScript newbie,
so I may just be in over my head.



In my delegate file, I
cant set the delegate to anything past mx.core.Application.application.
In my functions I have to actually type out the path to my services and CFC. I
have a function that creates the delegate:



 public function
MyDelegate(commandCaller:Responder)

 {

 this.my_delegate
= mx.core.Application.application;

 this.my_responder
= commandCaller;

 }



And then I have my operation
calls on the CFCs:



 public function
MyCFCMethod():Void {

 var
pendingCall:Object = this.my_delegate.MyServices.MyCFC.MyCFCMethod();

 pendingCall.resultHandler
= Delegate.create(this.my_responder, this.my_responder.onResult);

 pendingCall.faultHandler
= Delegate.create(this.my_responder, this.my_responder.onFault);

 }



If I try to use
this.my_delegate = mx.core.Application.application.MyServices.MyCFC in the
MyDelegate() function, and then use this.my_delegate.MyCFCMethod() in the
MyCFCMethod function, it wont make the connection to the CFC (The
netConnectionDebugger shows a connect event, but no call event).



Any idea what might be
causing this? I know this is a really open-ended question, so any small piece
of advice for helping me track the issue down would be much appreciated.



Thanks in advance for your
help,



-Ryan Stewart









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



  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] Remote Object Errors

2005-08-08 Thread John Zhao
Hi Josh,

First make sure you use JRun4 U5.  Also please post the complete stack from the 
JRun console.  I wonder where you get the Apache FashHashMap.  It shouldn't be 
there unless you have some extra Apache packages in your classpath. 

John


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Christoph Guse
Sent: Monday, August 08, 2005 10:58 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Remote Object Errors

Hi Josh,

sorry, no more concrete ideas. I use Tomcat instead of JRun.

Christoph

Josh Noland wrote:
Christoph,
   No luck.  I am still getting the Error: 
org/apache/commons/collections/FastHashMap.  When I check the network 
monitor in Flex Builder it is making the request as expected but I am not 
seeing it catch the result object.  Do you have any other ideas?

Josh

  
From: Christoph Guse [EMAIL PROTECTED]
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Remote Object Errors
Date: Mon, 08 Aug 2005 11:41:31 +0200

Hi Josh,

you should use the automatic mapping between Java ValueObjects and
ActionScript ValueObjects.  For that your ActionScript VO should look
like this:

/***
AS class
***/
// ActionScript Document
class Person {
  var name:String;
  var birthdate:String;
  public static var registeredClass:Boolean =
Object.registerClass([full path in WEB-INF / java class name],Person);
}

Don't use a constructor in the AS VO, the constructor is called AFTER
FLEX filled the attributes from the Java VO.

Your MXML file could look like this:

/***
MXML File
***/
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;

  mx:RemoteObject id=peopleObject source=People
mx:method name=getPerson
result=handleResults(event.result)/
  /mx:RemoteObject

  mx:Script
  ![CDATA[
import Person;
var my_person:Person;

function handleResults(event){
my_person = event.result;
}
  ]]
  /mx:Script

  mx:Panel width=800 height=600
mx:HBox
  mx:Form
  mx:FormItem label=Person name
 mx:Label text={my_person.name} /
  /mx:FormItem
  mx:FormItem label=birthday
 mx:Label text={my_person.birthdate} /
  /mx:FormItem
  /mx:Form
  mx:Button label=Get Person
click={peopleObject.getPerson()} /
/mx:HBox
  /mx:Panel
/mx:Application

I coded everything in my mail app, so I'm not totally shure if the code
runs at once.

Greetings
Christoph

Josh Noland wrote:

I am having trouble accessing any Java objects that return something
other
than the Java types flex will implicitly convert.  I am using the
RemoteObject tag. The first time I try to access the result from the 
  
pojo

function call I get Error:
org/apache/commons/collections/FastHashMap in
the JRun console.  Each successive call will throw Error: null.  I am
using JRun4.

The code is below.  I have stripped all of the functionality to try
and get
rid of the error and to try to get Flex to recognize my remote object
returned.

For now all I want to do is successfully call the function that
returns my
person and display one of the fields from the object.

Has anybody else experienced this type of problem?

Josh




/
Java Class I am trying to use in Flex
/
public class Person implements Serializable  {

  private String name;
  private String birthdate;

  public Person (){
  }

  public Person (String name, String birthdate) {
this.name = name;
this.birthdate = birthdate;
  }

  public void setName(String name) {
this.name = name;
  }

  public String getName() {
return name;
  }

  public void setBirthdate(String birthdate) {
this.birthdate = birthdate;
  }

  public String getBirthdate() {
return birthdate;
  }
}


/*
Java Function Call that returns an Object to Flex and resides in People
Object
*/
  public Person getPerson(){
return new Person(Josh, 8/8/2005);
  }

/***
MXML File
***/
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;

  mx:RemoteObject id=peopleObject source=People
mx:method name=getPerson
result=handleResults(event.result)/
  /mx:RemoteObject

  mx:Script
  ![CDATA[
function handleResults(eventResult){
  var p1:Person = new
Person(eventResult.getProperty('name'),
eventResult.getProperty('birthdate'));
}
  ]]
  /mx:Script

  mx:Panel width=800 height=600
mx:HBox
  mx:Button label=Get Person
click={peopleObject.getPerson()} /
/mx:HBox
  /mx:Panel
/mx:Application

/***
AS class
***/
// ActionScript Document
class Person implements DataProvider{
  var name:String;
  var birthdate:String;

  function Horse(myName:String, 

RE: [flexcoders] Remote Object Errors

2005-08-08 Thread Peter Farland
Are you missing an apache jar from your /WEB-INF/lib directory? Check with the 
jars that existed with the default flex web application installation and 
compare them to those present in your own web app. 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh 
Noland
Sent: Monday, August 08, 2005 9:18 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Remote Object Errors

Christoph,
   No luck.  I am still getting the Error: 
org/apache/commons/collections/FastHashMap.  When I check the network 
monitor in Flex Builder it is making the request as expected but I am not 
seeing it catch the result object.  Do you have any other ideas?

Josh

From: Christoph Guse [EMAIL PROTECTED]
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Remote Object Errors
Date: Mon, 08 Aug 2005 11:41:31 +0200

Hi Josh,

you should use the automatic mapping between Java ValueObjects and
ActionScript ValueObjects.  For that your ActionScript VO should look
like this:

/***
AS class
***/
// ActionScript Document
class Person {
   var name:String;
   var birthdate:String;
   public static var registeredClass:Boolean =
Object.registerClass([full path in WEB-INF / java class name],Person);
}

Don't use a constructor in the AS VO, the constructor is called AFTER
FLEX filled the attributes from the Java VO.

Your MXML file could look like this:

/***
MXML File
***/
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;

   mx:RemoteObject id=peopleObject source=People
 mx:method name=getPerson
result=handleResults(event.result)/
   /mx:RemoteObject

   mx:Script
   ![CDATA[
 import Person;
 var my_person:Person;

 function handleResults(event){
 my_person = event.result;
 }
   ]]
   /mx:Script

   mx:Panel width=800 height=600
 mx:HBox
   mx:Form
   mx:FormItem label=Person name
  mx:Label text={my_person.name} /
   /mx:FormItem
   mx:FormItem label=birthday
  mx:Label text={my_person.birthdate} /
   /mx:FormItem
   /mx:Form
   mx:Button label=Get Person
click={peopleObject.getPerson()} /
 /mx:HBox
   /mx:Panel
/mx:Application

I coded everything in my mail app, so I'm not totally shure if the code
runs at once.

Greetings
Christoph

Josh Noland wrote:
  I am having trouble accessing any Java objects that return something
  other
  than the Java types flex will implicitly convert.  I am using the
  RemoteObject tag. The first time I try to access the result from the 
pojo
  function call I get Error:
  org/apache/commons/collections/FastHashMap in
  the JRun console.  Each successive call will throw Error: null.  I am
  using JRun4.
 
  The code is below.  I have stripped all of the functionality to try
  and get
  rid of the error and to try to get Flex to recognize my remote object
  returned.
 
  For now all I want to do is successfully call the function that
  returns my
  person and display one of the fields from the object.
 
  Has anybody else experienced this type of problem?
 
  Josh
 
 
 
 
  /
  Java Class I am trying to use in Flex
  /
  public class Person implements Serializable  {
 
private String name;
private String birthdate;
 
public Person (){
}
 
public Person (String name, String birthdate) {
  this.name = name;
  this.birthdate = birthdate;
}
 
public void setName(String name) {
  this.name = name;
}
 
public String getName() {
  return name;
}
 
public void setBirthdate(String birthdate) {
  this.birthdate = birthdate;
}
 
public String getBirthdate() {
  return birthdate;
}
  }
 
 
  /*
  Java Function Call that returns an Object to Flex and resides in People
  Object
  */
public Person getPerson(){
  return new Person(Josh, 8/8/2005);
}
 
  /***
  MXML File
  ***/
  mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
 
mx:RemoteObject id=peopleObject source=People
  mx:method name=getPerson
  result=handleResults(event.result)/
/mx:RemoteObject
 
mx:Script
![CDATA[
  function handleResults(eventResult){
var p1:Person = new
  Person(eventResult.getProperty('name'),
  eventResult.getProperty('birthdate'));
  }
]]
/mx:Script
 
mx:Panel width=800 height=600
  mx:HBox
mx:Button label=Get Person
  click={peopleObject.getPerson()} /
  /mx:HBox
/mx:Panel
  /mx:Application
 
  /***
  AS class
  ***/
  // ActionScript Document
  class Person implements DataProvider{
var name:String;
var birthdate:String;
 
  

[flexcoders] Charting from a TreeNode

2005-08-08 Thread digital_eyezed
I have a tree which is populated from a return from a RemoteObject 
call. The returned object is an array of VO objects. The tree 
populates no problem. I also have a chart which is populated from 
the the same RemoteObject Result. This chart is a simple column 
chart which shows seven elements of each VO in the array.

What I want to do now is populate another chart (chart2) with just 
the seven elements of the VO from the selected node in the tree. I 
have tried to set the dataProvider of the chart2 to 
tree.selectedItem and even tried to build another VO object based on 
the tree change event and set that as the dataProvider, no matter 
what I try the second chart will not populate.

Here is the mxml:

mx:Panel title=Machines width=250 height=100% 
panelBorderStyle=roundCorners
mx:Tree id=tree 
dataProvider={getEverything.getSites.result} width=100% 
height=100% cellPress=showStuff(event)/
/mx:Panel
/mx:VBox
mx:VBox width=100% height=100%
mx:Panel width=100% height=50% marginTop=1 
marginBottom=1  marginLeft=1 marginRight=1
mx:VBox width=100% height=100%
mx:ColumnChart id=chart dataProvider={results} 
dataTipFunction=formatDataTipSales showDataTips=true 
width=100% height=100%

mx:horizontalAxis
mx:CategoryAxis 
dataProvider={results} categoryField=label/
/mx:horizontalAxis

mx:series
mx:Array
mx:ColumnSeries yField=sevensales 
name=Sales -7/
mx:ColumnSeries yField=sixsales 
name=Sales -6/
mx:ColumnSeries yField=fivesales 
name=Sales -5/
mx:ColumnSeries yField=foursales 
name=Sales -4/
mx:ColumnSeries yField=threesales 
name=Sales -3/
mx:ColumnSeries yField=twosales 
name=Sales -2/
mx:ColumnSeries yField=onesales 
name=Sales -1/
/mx:Array
/mx:series

/mx:ColumnChart
mx:ColumnChart id=chart2 
dataProvider={tree.selectedItem} 
dataTipFunction=formatDataTipSales showDataTips=true 
width=100% height=100%

mx:horizontalAxis
mx:CategoryAxis 
dataProvider={tree.selectedItem} categoryField=label/
/mx:horizontalAxis

mx:series
mx:Array
mx:ColumnSeries yField=sevensales 
name=Sales -7/
mx:ColumnSeries yField=sixsales 
name=Sales -6/
mx:ColumnSeries yField=fivesales 
name=Sales -5/
mx:ColumnSeries yField=foursales 
name=Sales -4/
mx:ColumnSeries yField=threesales 
name=Sales -3/
mx:ColumnSeries yField=twosales 
name=Sales -2/
mx:ColumnSeries yField=onesales 
name=Sales -1/
/mx:Array
/mx:series

/mx:ColumnChart
/mx:VBox
/mx:Panel

Thanks,

Iain




 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hn822fb/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123525200/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOOcmpgn=GRPRTP=http://groups.yahoo.com/;In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!/a./font
~- 

--
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: Fastest Hardware for Flex compilation

2005-08-08 Thread Allen Manning
 Or can I compile once and save the swf to be distributed
to the clients?

James,

To the best of my knowledge, once the SWF is compiled it is just delivered
to clients directly without needing to recompile every time.

As for distribution, Macromedia is the best to answer that.  Every time I
compile with mxmlc it says my SWF will time out after one day because I'm
using the developer addition locally.  

I would assume for production the swf can be used legally on one, and only
one, dual processor box per Flex license.

HTH,
Allen
www.prismix.com/


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of James
Sent: 08 August 2005 17:57
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Fastest Hardware for Flex compilation

Allen,
I got a question for you. I can understand the problem in development about
having to recompile on every load, however should I need to recompile every
time in production? Or can I compile once and save the swf to be distributed
to the clients?



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Allen Manning
Sent: Friday, August 05, 2005 4:14 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Fastest Hardware for Flex compilation

Brian,

Thanks so much for such a complete explanation.

Allen
www.prismix.com/



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brian Deitte
Sent: 05 August 2005 16:09
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Fastest Hardware for Flex compilation

Some answers and suggestions in regards to compilation speed:

- the best hardware to use is probably whatever is best for the JVM you are
using.  I don't know of and don't think there's any real recommended
solutions out there, other than whatever is fastest.

- similarly, one thing that helps compilation speed would be to try a
different JVM (different version or even a different implementation... it
has been quite awhile since my JRun days so I haven't paid as much attention
to this, but back then it paid to try out IBMs JVM or JRockit).  Garbage
collection settings are also helpful to tweak.  If you're using mxmlc.exe,
the JVM settings are in bin/jvm.config.

- the compiler isn't multi-threaded when it is used from the command-line.
It is multi-threaded when used via the browser, but only for allowing
multiple compilations to happen at once.

- one reason the server is slow to start up because it takes awhile for
mx.swc and other SWCs to load.  This is one reason why compiling from the
command-line is slower, since this loading has to happen on each
compilation.

- I just checked and we aren't doing incremental compilation from the
command-line in a way I thought we were.  The way is through something
called SWOs.  As far as I can tell, this doesn't work from the command-line.
Because of this, I would recommend setting cache-swos to false in the
flex-config.xml used when compiling from the command-line.  While this
speeds things up when using the server, from the command-line this is just
saved a whole lot of information that isn't being used.

- you can get a broad idea of where time is being spent through the
unsupported, just-for-the-curious setting of -Dtrace.benchmark in the JVM
arguments.

-Brian

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Allen Manning
Sent: Friday, August 05, 2005 3:18 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Fastest Hardware for Flex compilation

Eric,

Thanks for the background on this.  I agree that it does seem much slower
than standard mxml page compilation.  Any idea if it is multi-threaded?

Allen
www.prismix.com/


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Eric Raymond
Sent: 05 August 2005 15:08
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Fastest Hardware for Flex compilation

As an aside, I'll mention some things that you probably know:

- If you let the Flex server compile the app as the result of hitting
an mxml page, it compiles incrementally ... which is very fast.  Of
course this doesn't work well via ant (you can use the http tag, but
there's no easy way to check for errors).

- Startup time for the compiler seems farily high.   If you hve more
than one app to compile, it's better to compile them in one fell swoop
(e.g., We compile three flex apps in about the sam time as it take to
compile just the largest app app alone!)

- Personally we use the incremental server based compilation during
daily development and standalone ant based compilation for
distribution builds.



  On 05/08/05, Allen Manning [EMAIL PROTECTED] wrote:
   I'm trying to get my flex compilation time down to as little as
 possible. 
   We are using mxmlc via Ant to compile our flex code.  What machine
 spec
   would be the best to build these swfs fast.  Would 

Re: [flexcoders] resizing panels

2005-08-08 Thread Manish Jethani
On 8/8/05, Rob Rusher [EMAIL PROTECTED] wrote:

 You need to use a canvas as its parent. 

You can also the parent's autoLayout to false for the duration of the resize.

Manish


 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hdbphg3/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123531350/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOOcmpgn=GRPRTP=http://groups.yahoo.com/;In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!/a./font
~- 

--
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: nested viewstacks, creationPolicy of none and the creation dilemma

2005-08-08 Thread Manish Jethani
On 8/8/05, Jaime Bermudez [EMAIL PROTECTED] wrote:
 So, nobody on the board knows how to tell through the childDescriptors
 array if a child of a viewstack has creationPolicy of none?

  childDescriptors[childIndex]._properties().creationPolicy

Manish


 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12honjtmk/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123532505/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy/a./font
~- 

--
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 1.5 file upload

2005-08-08 Thread Mercer, Dustin
Title: Flex 1.5 file upload








Has anyone gotten the Flex 1.5 file upload example (http://www.macromedia.com/devnet/flex/articles/fp8_features.html) working with a JSP upload page? I am getting a Processing of multipart/form-data request failed. Stream ended unexpectedly Exception. I have been trying to get this working for a while with no success. I am trying this with a page the is currently working with the old way of uploading with flex (Standard JSP upload). If anyone can help, it would be greatly appreciated J







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

Computer software testing
  
  
Macromedia flex
  
  
Development
  
  


Software developer
  

   
  







  
  
  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] Flex 1.5 file upload

2005-08-08 Thread Mercer, Dustin
Title: Flex 1.5 file upload










Thanks! I will try now with this info. I
have never done much with the file uploading on the server, so some learning is
required.











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Joan Tan
Sent: Monday, August 08, 2005
11:31 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex 1.5
file upload





The server script handling the upload
should expect a POST request with a Content-Type of multipart/form-data,
followed by a Content-Disposition with the name attribute of
Filedata and then a filename attribute giving the name of the
original file. Here is a sample request:



Content-Type: multipart/form-data;
boundary=AaB03x

--AaB03x 
Content-Disposition: form-data; name=Filedata;
filename=example.jpg 
Content-Type: application/octet-stream

... contents of example.jpg ... 
--AaB03x-- 

I hope this helps. I'll see if I can dig up a jsp
example somewhere.

Joan 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mercer, Dustin
Sent: Monday, August 08, 2005
11:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 1.5
file upload

Has
anyone gotten the Flex 1.5 file upload example (http://www.macromedia.com/devnet/flex/articles/fp8_features.html) working
with a JSP upload page? I am getting a Processing of multipart/form-data request failed.
Stream ended unexpectedly Exception.
I have been trying to get this working for a while with no success.
I am trying this with a page the is currently working with the!
 SPAN LANG=en-us old way of uploading
with flex (Standard JSP upload). If anyone can help, it would be greatly
appreciated
J









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

Computer software testing
  
  
Macromedia flex
  
  
Development
  
  


Software developer
  

   
  







  
  
  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: Charting from a TreeNode

2005-08-08 Thread digital_eyezed
Ok,

I have a tree on the left of the app, which is populated from the 
returned InfoVO Array, this works no problem. On the right of the 
app is a panel with two columncharts, the top one takes the same 
dataProvider as the tree on the left and it shows the data okay for 
all infoVO's. Under that chart is another chart (a kind of drill 
down chart) which when you click on the infoVO in the tree should 
show the data specific to that infoVO, thats about it. Each info VO 
has seven data elements (sales associated to each day of the week) 
and a label (the Id of each infoVO). I can't get the infoVO 
(drilldown) to show the data on the bottom chart.

Sorry for not making it clear enough before.




--- In flexcoders@yahoogroups.com, Ely Greenfield [EMAIL PROTECTED] 
wrote:
 
 
 Still not quite clear on what you're trying to do here. You have 
an array of InfoVO objects...but you don't want to display the 
entire array, just a subset of the array? Is that correct?
 
 Ely.
  
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed
 Sent: Monday, August 08, 2005 9:28 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Charting from a TreeNode
 Importance: High
 
 This is the VO:
 
 class uk.co.company.InfoVO
 {
   public function InfoVO()
   {
   _remoteClass = uk.co.company.InfoVO;
   }
 public var _remoteClass : String;
 
 public var label:String;
 public var sevensales:Number;
 public var sixsales:Number;
 public var fivesales:Number;
 public var foursales:Number;
 public var threesales:Number;
 public var twosales:Number;
 public var onesales:Number;
 
 
 public function setLabel(lab:String):Void{
   this.label = lab;
 }
 public function setSevenSales(sales:Number):Void{
   this.sevensales = sales;
 }
 public function setSixSales(sales:Number):Void{
   this.sixsales = sales;
 }
 public function setFiveSales(sales:Number):Void{
   this.fivesales = sales;
 }
 public function setFourSales(sales:Number):Void{
   this.foursales = sales;
 }
 public function setThreeSales(sales:Number):Void{
   this.threesales = sales;
 }
 public function setTwoSales(sales:Number):Void{
   this.twosales = sales;
 }
 public function setOneSales(sales:Number):Void{
   this.onesales = sales;
 }
 }
 
 The RemoteObject returns an array of these. I want to show the 
data from the onesales ... sevensales with the label as the 
categoryfield label.
 
 
 Cheers,
 
 Iain
 
 --- In flexcoders@yahoogroups.com, Ely Greenfield [EMAIL PROTECTED]
 wrote:
  
  
  Can you send a sample of the data you're loading from the RO? And
 point
  out which sub-section you want to display in the chart.
  
  
  Thanks,
  Ely.
   
  
  -Original Message-
  From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On
  Behalf Of digital_eyezed
  Sent: Monday, August 08, 2005 9:20 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Charting from a TreeNode
  
  I have a tree which is populated from a return from a 
RemoteObject
 call.
  The returned object is an array of VO objects. The tree populates
 no
  problem. I also have a chart which is populated from the the 
same 
  RemoteObject Result. This chart is a simple column chart which
 shows
  seven elements of each VO in the array.
  
  What I want to do now is populate another chart (chart2) with 
just
 the
  seven elements of the VO from the selected node in the tree. I 
have 
  tried to set the dataProvider of the chart2 to tree.selectedItem
 and
  even tried to build another VO object based on the tree change
 event and
  set that as the dataProvider, no matter what I try the second
 chart will
  not populate.
  
  Here is the mxml:
  
  mx:Panel title=Machines width=250 height=100% 
  panelBorderStyle=roundCorners
  mx:Tree id=tree 
  dataProvider={getEverything.getSites.result} width=100% 
  height=100% cellPress=showStuff(event)/
  /mx:Panel
  /mx:VBox
  mx:VBox width=100% height=100%
  mx:Panel width=100% height=50% marginTop=1 
  marginBottom=1  marginLeft=1 marginRight=1
  mx:VBox width=100% height=100%
  mx:ColumnChart id=chart dataProvider={results} 
  dataTipFunction=formatDataTipSales showDataTips=true 
  width=100% height=100%
  
  mx:horizontalAxis
  mx:CategoryAxis
  dataProvider={results} categoryField=label/
  /mx:horizontalAxis
  
  mx:series
  mx:Array
  mx:ColumnSeries yField=sevensales 
  name=Sales -7/
  mx:ColumnSeries yField=sixsales 
  name=Sales -6/
  mx:ColumnSeries yField=fivesales 
  name=Sales -5/
  mx:ColumnSeries yField=foursales 
  name=Sales -4/
  mx:ColumnSeries yField=threesales 
  name=Sales -3/
 

Re: [flexcoders] Re: Fastest Hardware for Flex compilation

2005-08-08 Thread Dave Carabetta
On 8/8/05, kaibabsowats [EMAIL PROTECTED] wrote:
 Is not the Flex license per CPU regardless of Single, Dual?  So the 4
 Licenses in a starter kit can be used on 4 single Server, 2 Duals,
 etc... basically one per CPU.  At least this is how Macromedia Sales
 Rep explained it to me.

That changed effective last April 1. From the EULA, section 2(a):

(a) If the Software is (i) a Developer Version, (ii) a Trial Version,
or (iii) any version of a Server-Based Software, this Section 2(a),
and not Section 2(b) nor Section 2(c), shall apply: Subject to the
terms and conditions of this Agreement, Macromedia hereby grants, and
you accept, the right and license to install and use the Software on a
single computer. A license for the Software may not be shared,
installed nor used concurrently on different computers.

http://www.macromedia.com/software/eula/server/flex/

As you can see, you can no longer split your license across machines.
Each license is per physical server now.

Regards,
Dave.


 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12h0rg07s/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123534877/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
Fair play? Video games influencing politics. Click and talk back!/a./font
~- 

--
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: Fastest Hardware for Flex compilation

2005-08-08 Thread jwc_wensan
Dave:

Am I understanding correctly, that the Starter Kit can ONLY be used
on a SINGLE server that has from 1-4 CPUs?

Thanks,

Jack

--- In flexcoders@yahoogroups.com, Dave Carabetta [EMAIL PROTECTED] 
wrote:
 On 8/8/05, kaibabsowats [EMAIL PROTECTED] wrote:
  Is not the Flex license per CPU regardless of Single, Dual?  So 
the 4
  Licenses in a starter kit can be used on 4 single Server, 2 
Duals,
  etc... basically one per CPU.  At least this is how Macromedia 
Sales
  Rep explained it to me.
 
 That changed effective last April 1. From the EULA, section 2(a):
 
 (a) If the Software is (i) a Developer Version, (ii) a Trial 
Version,
 or (iii) any version of a Server-Based Software, this Section 2(a),
 and not Section 2(b) nor Section 2(c), shall apply: Subject to the
 terms and conditions of this Agreement, Macromedia hereby grants, 
and
 you accept, the right and license to install and use the Software 
on a
 single computer. A license for the Software may not be shared,
 installed nor used concurrently on different computers.
 
 http://www.macromedia.com/software/eula/server/flex/
 
 As you can see, you can no longer split your license across 
machines.
 Each license is per physical server now.
 
 Regards,
 Dave.




 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hkbeove/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123536054/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy/a./font
~- 

--
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: Fastest Hardware for Flex compilation

2005-08-08 Thread Dave Carabetta
On 8/8/05, jwc_wensan [EMAIL PROTECTED] wrote:
 Dave:
 
 Am I understanding correctly, that the Starter Kit can ONLY be used
 on a SINGLE server that has from 1-4 CPUs?
 

That's the way the EULA reads and what I am almost positive our sales
rep told us back in late March when he was giving us a heads-up.
However, as you see, my e-mail address doesn't end in
macromedia.com, so your best bet is to call your sales rep for
clarification.

Regards,
Dave.


 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hkot792/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123536995/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
Fair play? Video games influencing politics. Click and talk back!/a./font
~- 

--
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: Fastest Hardware for Flex compilation

2005-08-08 Thread kaibabsowats
Definetly call Macromedia Sales Rep for clarification because thats
not what the Sales Rep told me.  

It doesn't seem right to have to pay $29k just to get going on a
single CPU server.  And if the starter kit is 4 separate licenses it
seems to agree with the EULA.

--- In flexcoders@yahoogroups.com, Dave Carabetta [EMAIL PROTECTED] wrote:
 On 8/8/05, jwc_wensan [EMAIL PROTECTED] wrote:
  Dave:
  
  Am I understanding correctly, that the Starter Kit can ONLY be used
  on a SINGLE server that has from 1-4 CPUs?
  
 
 That's the way the EULA reads and what I am almost positive our sales
 rep told us back in late March when he was giving us a heads-up.
 However, as you see, my e-mail address doesn't end in
 macromedia.com, so your best bet is to call your sales rep for
 clarification.
 
 Regards,
 Dave.




 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12honfts5/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123539878/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy/a./font
~- 

--
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: Charting from a TreeNode

2005-08-08 Thread Ely Greenfield
 
 
I see. It looks like you need to put your seven values (onesales, twosales, 
threesales, etc) into an array.  You could implement the dataProvider API on 
your VO, but that seems like overkill  I'd suggest just copying your seven 
values into an array on selectionChange, and stuff that array in as a 
dataProvider for the drilldown chart.
 
Ely.
 



From: flexcoders@yahoogroups.com on behalf of digital_eyezed
Sent: Mon 8/8/2005 11:52 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Charting from a TreeNode



Ok,

I have a tree on the left of the app, which is populated from the
returned InfoVO Array, this works no problem. On the right of the
app is a panel with two columncharts, the top one takes the same
dataProvider as the tree on the left and it shows the data okay for
all infoVO's. Under that chart is another chart (a kind of drill
down chart) which when you click on the infoVO in the tree should
show the data specific to that infoVO, thats about it. Each info VO
has seven data elements (sales associated to each day of the week)
and a label (the Id of each infoVO). I can't get the infoVO
(drilldown) to show the data on the bottom chart.

Sorry for not making it clear enough before.




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


 Still not quite clear on what you're trying to do here. You have
an array of InfoVO objects...but you don't want to display the
entire array, just a subset of the array? Is that correct?

 Ely.
 

 -Original Message-
 From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed
 Sent: Monday, August 08, 2005 9:28 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Charting from a TreeNode
 Importance: High

 This is the VO:

 class uk.co.company.InfoVO
 {
   public function InfoVO()
   {
   _remoteClass = uk.co.company.InfoVO;
   }
 public var _remoteClass : String;

 public var label:String;
 public var sevensales:Number;
 public var sixsales:Number;
 public var fivesales:Number;
 public var foursales:Number;
 public var threesales:Number;
 public var twosales:Number;
 public var onesales:Number;


 public function setLabel(lab:String):Void{
   this.label = lab;
 }
 public function setSevenSales(sales:Number):Void{
   this.sevensales = sales;
 }
 public function setSixSales(sales:Number):Void{
   this.sixsales = sales;
 }
 public function setFiveSales(sales:Number):Void{
   this.fivesales = sales;
 }
 public function setFourSales(sales:Number):Void{
   this.foursales = sales;
 }
 public function setThreeSales(sales:Number):Void{
   this.threesales = sales;
 }
 public function setTwoSales(sales:Number):Void{
   this.twosales = sales;
 }
 public function setOneSales(sales:Number):Void{
   this.onesales = sales;
 }
 }

 The RemoteObject returns an array of these. I want to show the
data from the onesales ... sevensales with the label as the
categoryfield label.


 Cheers,

 Iain

 --- In flexcoders@yahoogroups.com, Ely Greenfield [EMAIL PROTECTED]
 wrote:
 
 
  Can you send a sample of the data you're loading from the RO? And
 point
  out which sub-section you want to display in the chart.
 
 
  Thanks,
  Ely.
  
 
  -Original Message-
  From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On
  Behalf Of digital_eyezed
  Sent: Monday, August 08, 2005 9:20 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Charting from a TreeNode
 
  I have a tree which is populated from a return from a
RemoteObject
 call.
  The returned object is an array of VO objects. The tree populates
 no
  problem. I also have a chart which is populated from the the
same
  RemoteObject Result. This chart is a simple column chart which
 shows
  seven elements of each VO in the array.
 
  What I want to do now is populate another chart (chart2) with
just
 the
  seven elements of the VO from the selected node in the tree. I
have
  tried to set the dataProvider of the chart2 to tree.selectedItem
 and
  even tried to build another VO object based on the tree change
 event and
  set that as the dataProvider, no matter what I try the second
 chart will
  not populate.
 
  Here is the mxml:
 
  mx:Panel title=Machines width=250 height=100%
  panelBorderStyle=roundCorners
  mx:Tree id=tree
  dataProvider={getEverything.getSites.result} width=100%
  height=100% cellPress=showStuff(event)/
  /mx:Panel
  /mx:VBox
  mx:VBox width=100% height=100%
  mx:Panel width=100% height=50% marginTop=1
  marginBottom=1  marginLeft=1 marginRight=1
  mx:VBox width=100% height=100%
  mx:ColumnChart id=chart dataProvider={results}
  dataTipFunction=formatDataTipSales showDataTips=true
  width=100% height=100%
 
  mx:horizontalAxis
  mx:CategoryAxis
  dataProvider={results} categoryField=label/
  

Re: [flexcoders] HTTPService result in wrong charset

2005-08-08 Thread Christoph Guse
Hi Manish,

nobody contradicted, so there seems to be no automatic conversion from 
iso-8859-1 to utf-8.

I can't influence the output of the HTTPService, so for me the FLEX 
HTTPService Tag is completely useless. I'm going to build java classes 
which contact the HTTPService an convert the result from iso-8859-1 to 
utf-8. Will there be an advancement in the next version of FLEX?

If somebody want's to try the Webservice:

mx:HTTPService id=Preisvergleich_de 
url=http://www.preispiraten-preisvergleich.de/preispiraten.asp; 
showBusyCursor=true result=event.call.resultHandler(event) 
fault=event.call.faulHandler(event)
/mx:HTTPService

Call:

Preisvergleich_de.send({suche:[search_string]},{min:[minimal_price:Number]},{max:[maximum_price:Number});

Greetings
Christoph

Manish Jethani wrote:
 On 8/7/05, Christoph Guse [EMAIL PROTECTED] wrote:

  Is there any way to tell FLEX that the result of the HTTPService will be
  encoded in iso-8859-1, so FLEX can convert it automatically to utf-8?

 AFAIK, no.  You have to send the result in UTF-8 from the server.  No 
 choice.

 Manish


 --
 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
 Computer software testing 
 http://groups.yahoo.com/gads?t=msk=Computer+software+testingw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=kh2CguJwmatU5oBXjFo9Rg
  
   Macromedia flex 
 http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=dAUcEV7do91-wrRtVS641g
  
   Development 
 http://groups.yahoo.com/gads?t=msk=Developmentw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=AlxNUQBOI7Io7S7nhmxV0Q
  

 Software developer 
 http://groups.yahoo.com/gads?t=msk=Software+developerw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=QWIit8JayomoIHLVkV3FDg
  



 
 YAHOO! GROUPS LINKS

 *  Visit your group flexcoders
   http://groups.yahoo.com/group/flexcoders on the web.

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

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


 


-- 

 Christoph Guse
 Löhstraße 34
 41747 Viersen
 Tel.  0 21 62 / 50 24 066
 Mobil   01 72 / 160 74 84
 VoIP  0 12 12 / 39 64 48 831




 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hmlvqdd/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123547684/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy/a./font
~- 

--
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] HTTPService result in wrong charset

2005-08-08 Thread Matt Chotin










You can try setting System.useCodepage to
true temporarily but I cant remember if that works and you probably will
need to write your proxy.



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Christoph Guse
Sent: Monday, August 08, 2005 3:42
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
HTTPService result in wrong charset





Hi Manish,

nobody contradicted, so there seems to be no
automatic conversion from 
iso-8859-1 to utf-8.

I can't influence the output of the HTTPService,
so for me the FLEX 
HTTPService Tag is completely useless. I'm going
to build java classes 
which contact the HTTPService an convert the
result from iso-8859-1 to 
utf-8. Will there be an advancement in the next
version of FLEX?

If somebody want's to try the Webservice:

 mx:HTTPService
id=Preisvergleich_de 
url=""
href="http://www.preispiraten-preisvergleich.de/preispiraten.asp">http://www.preispiraten-preisvergleich.de/preispiraten.asp

showBusyCursor=true
result=event.call.resultHandler(event) 
fault=event.call.faulHandler(event)
 /mx:HTTPService

Call:
 
Preisvergleich_de.send({suche:[search_string]},{min:[minimal_price:Number]},{max:[maximum_price:Number});

Greetings
Christoph

Manish Jethani wrote:
 On 8/7/05, Christoph Guse
[EMAIL PROTECTED] wrote:

  Is there any way to tell FLEX that the
result of the HTTPService will be
  encoded in iso-8859-1, so FLEX can
convert it automatically to utf-8?

 AFAIK, no. You have to send the result
in UTF-8 from the server. No 
 choice.

 Manish


 --
 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
 Computer software testing 
 http://groups.yahoo.com/gads?t=msk=Computer+software+testingw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=kh2CguJwmatU5oBXjFo9Rg

  Macromedia
flex 
 http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=dAUcEV7do91-wrRtVS641g

  Development 
 http://groups.yahoo.com/gads?t=msk=Developmentw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=AlxNUQBOI7Io7S7nhmxV0Q


 Software developer 
 http://groups.yahoo.com/gads?t=msk=Software+developerw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=QWIit8JayomoIHLVkV3FDg






 YAHOO! GROUPS LINKS

 * Visit your
group flexcoders
 http://groups.yahoo.com/group/flexcoders
on the web.
 
 * To
unsubscribe from this group, send an email to:

[EMAIL PROTECTED]

mailto:[EMAIL PROTECTED]
 
 * Your use of
Yahoo! Groups is subject to the Yahoo! Terms of
 Service
http://docs.yahoo.com/info/terms/.






-- 

Christoph Guse
Löhstraße 34
41747 Viersen
Tel. 0 21 62 / 50 24 066
Mobil 01 72 / 160 74 84
VoIP 0 12 12 / 39 64 48 831










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

Computer software testing
  
  
Macromedia flex
  
  
Development
  
  


Software developer
  

   
  







  
  
  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: Dispatch event problem

2005-08-08 Thread Rajesh Jayabalan
Hi Matt,

 I am dispatching it using the listowner

I have
mx:Metadata
[Event(orderSavedEvent)]
/mx:Metadata
in FindEtsOrders page.

and in the cellrenderer I have added

var listOwner : Object;

and

mx.core.Application.alert(Order Added );
listOwner.parent.dispatchEvent({type:orderSavedEvent});


and in the place where I create the titlewindow (findEtsOrders) I have
added

function selectEtsOrder(event)
{
popup = mx.managers.PopUpManager.createPopUp(this, FindEtsOrders,
false, {deferred: true, mrId:this.mrId});
popup.addEventListener(orderSavedEvent,
mx.utils.Delegate.create(this,orderSavedEvent));
}

and method
function orderSavedEvent(event) {
mx.controls.Alert.show(DeleteWindow);
popup.deletePopUp();
}


I can see the Order Added alert and not the DeleteWindow alert.

My cellrender is a mxml and not a as file will this have any effect?

Regards
Rajesh J

--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:
 You probably want to call listOwner.dispatchEvent instead, that way you
 can attach listeners to the list itself.  When you dispatch the event if
 you want a reference to the cell renderer itself just attach it as a
 property on the event.
 
  
 
 Matt
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Rajesh Jayabalan
 Sent: Thursday, August 04, 2005 1:38 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Dispatch event problem
 
  
 
 Has anyone dispatched an event from cell renderer?
 
 anyone any ideas on how to proceed.
 
 Regards
 Rajesh J
 
 --- In flexcoders@yahoogroups.com, Rajesh Jayabalan [EMAIL PROTECTED]
 wrote:
  Hi Mika,
  
   Can you explain a little more sorry.
  
  Regards
  Rajesh J
  
  --- In flexcoders@yahoogroups.com, Mika Kiljunen
  [EMAIL PROTECTED] wrote:
   I guess you should make a delegate on the first object and store it
  to the
   first popup (send it to it and store it there) and then when the
  button on
   the popup is clicked to open the other popup, then add the
 delegate as a
   listener ( something like
  
 
 otherpopup.YourDataGrid.YourRenderer.addEventListener(MyEvent,myStored
 Dele
   gate). I'm not sure though how the renderers are created/destroyed
  so it may
   not work.
   

   
   This does seem a bit tricky and perhaps you should consider some
 more
   straightforward solution.
   

   
   .Mika
   

   
 _  
   
   From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On
   Behalf Of Rajesh Jayabalan
   Sent: 3. elokuuta 2005 1:48
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Re: Dispatch event problem
   

   
   Hi,
   
   That change did not help, 
   
   This might be because my listener is to the popupwindow and not the
   cellrenderer, the event dispatched from there is never consumed by
 my
   listener. If this is the case how can I over come this?
   
   my FLow
   
   My App -- UpdateMarketRequest(window) -- findOrders(window) --
   AddOrderToMRButtonRenderer(button cell render)
   
   The listener is in UpdateMarketRequest (since I need to close
  findOrders)
   
   The event is dispatched from AddOrderToMRButtonRenderer.
   
   Regards
   Rajesh J
   
   
   
   --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED]
 wrote:
I am not very sure because I have not looked at complete code, but
 I
have doubt that event handling is not done proper way or there are
  scope
issues.

You are dispatching event from button's handler, there could be
 scope
issues. The idea is that, event handler can be subscribed from the
object which dispatches event.

I see, you are dispatching the event from cellRenderer and
 subscribing
event from popup. Please check these things.


Just for confirmation, do the following change in
 UpdateMarketRequest
and check.


 popup = mx.managers.PopUpManager.createPopUp(this, FindEtsOrders,
false, {deferred: true, mrId:this.mrId});
popup.addEventListener(orderSavedEvent,
  mx.utils.Delegate.create(this,
orderSavedEvent));

function orderSavedEvent(event) {
mx.controls.Alert.show(DeleteWindow);
popup.deletePopUp();
}

-abdul


-Original Message-
From: flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED] On
Behalf Of Rajesh Jayabalan
Sent: Wednesday, August 03, 2005 3:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dispatch event problem

Hi,

 I am having problem with dispatch event.

 I have a titlewindow (UpdateMarketRequest) from where one click
 of a
button I open another window (findOrders) which contains a
 datagring
with a button cell renderer which on click I dispatch and event.

In UpdateMarketRequest  script file I have 

popup = mx.managers.PopUpManager.createPopUp(this, FindEtsOrders,
false, {deferred: true, mrId:this.mrId});

[flexcoders] I have an image inside a canvas container, and when I resize the canvas, the ima

2005-08-08 Thread zhongtie
I have an image in a canvas container, and when I resize the canvas,
the image resizes as I expect. However, the image position doesn't
change at all, unlike in a Flash applicaiton.

For example, on a 300x300 canvas, I load an image of 100x100 at (100,
100). If I double the size of the canvas to 600x600, the image is
automatically resized to 200x200, BUT still at (100, 100), instead of
(200, 200)!!

What will be the solution for this? Please help!

Thanks in advance!!

Tim


 Sample Code 
== Please replace your_image_here.jpg with any JPG file   ===
== in the same dir===
=


Attach Code

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
mx:Script
![CDATA[
var zoomIn:Boolean = false;
function onClick():Void
{
zoomIn = !zoomIn;
if (zoomIn) {
frame.width = 200;
frame.height = 160;
} else {
frame.width = 400;
frame.height = 320;
}
}
]]
/mx:Script
  mx:Button label=zoom click=onClick()/
  mx:Canvas width=400 height=320 id=frame
backgroundColor=#99
  mx:Image source=your_image_here.jpg  
x=100 y=100 width=50% height=50%/
  /mx:Canvas
/mx:Application







 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12haa0tbn/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123550959/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy/a./font
~- 

--
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] Create Panel Child

2005-08-08 Thread Mehdi, Agha
Title: RE: [flexcoders] Create Panel Child







Thanks Manish, that worked. Except that the controls are not showing now.


This is how my mxml looks.


mx:Form width=500 xmlns:mx=http://www.macromedia.com/2003/mxml
 mx:FormItem label=Organization
  mx:HBox
   mx:CheckBox label=64K x 36 width=80 toolTip=64K x 36/
   mx:CheckBox label=128K x 36 width=80 toolTip=128K x 36/
   mx:CheckBox label=256K x 36 width=80 toolTip=256K x 36/
  /mx:HBox
  mx:HBox
   mx:CheckBox label=512K x 36 width=80 toolTip=512K x 36/
  /mx:HBox
 /mx:FormItem


/mx:Form


When I load this file normally, it loads fine but when I load it with CreateChild method, it strips out the checkboxes. Is there anything else I need to be careful about?

Thanks


Agha Mehdi
IDT - eBusiness Program Manager


-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Manish Jethani
Sent: Monday, August 08, 2005 10:56 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Create Panel Child


On 8/8/05, Mehdi, Agha [EMAIL PROTECTED] wrote:


 var cat1:category_12345 = category_12345; (can this be in any part of the
 application?) 


Yes, any part of the application that is linked in. Put it into a
separate .as file and include it using the Script element.


mx:Script source=MyDependencies.as /


 var catID = category_12345; 
 createChild( catID, , {...} ); 
 
 Is this how I need to structure it? 


Yes, but catID needs to be the fully-qualified class name (including
the package name). See my previous email for how I'm using the Bar
class.


Manish



 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a href="" href="http://us.ard.yahoo.com/SIG=12h9pskm4/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123531027/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org" TARGET="_blank">http://us.ard.yahoo.com/SIG=12h9pskm4/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123531027/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org

Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy/a./font
~- 


--
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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Computer software testing
  
  
Macromedia flex
  
  
Development
  
  


Software developer
  

   
  







  
  
  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] How to handle a returned Java Collection in Flex - RemoteObject call

2005-08-08 Thread Oscar . Cortes


Hi Matt,

 I used XMLObjectOutput and found out that the name returned in the result
was 'sdesc'. I think I was confused by the fact that I was expecting 'Desc'
or 'desc', which is the getter name for this attribute  --getDesc- in the
Java VO. However, it is returning the name of the attribute itself but all
lower case. The original name in Java is 'sDesc', which I originally tried
as well.

Any comments on this?




   

   
 Matt Chotin To: flexcoders@yahoogroups.com   
   
 [EMAIL PROTECTED]  cc:   
  
 Sent by:  Subject:  RE: [flexcoders] How 
to handle a returned Java
 flexcoders@yahoogroups.com  Collection in Flex - 
RemoteObject call
 08/05/2005 07:45 PM
   
 Please respond to  
   
 flexcoders 
   

   

   




Yep, use fdb or FlexBuilder's debugger or the XMLObjectOutput in the extras
folder or one of the dump utilities that people have been mentioning over
the last few days.

Matt


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Friday, August 05, 2005 10:36 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to handle a returned Java Collection in Flex
- RemoteObject call



Thanks Matt, that makes sense. However, it still doesn't work. It might be
coming with a different name. Is there any way to display the object and
the name of  its attributes?

Thanks,
-Oscar.




 Matt Chotin To:
flexcoders@yahoogroups.com
 [EMAIL PROTECTED]  cc:

 Sent by:  Subject:  RE: [flexcoders]
How to handle a returned Java
 flexcoders@yahoogroups.com  Collection in Flex -
RemoteObject call
 08/05/2005 12:41 AM

 Please respond to

 flexcoders







It's not getProperty(desc) for normal arrays, only when being used for a
TreeDatatProvider.  Try oItem.desc and see if that works.

Matt


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Thursday, August 04, 2005 1:33 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to handle a returned Java Collection in Flex
- RemoteObject call



Sorry for the late response, I actually got it closer to what I need. I can
see the collection that the Remote Object is returning in a ComboBox.
However, I can see all attributes listed in the ComboBox separated by
commas. I only want to show one of them, the Description. So I figured I
will use labelField or labelFuntion, but didn't work. This is what I have:

Any ideas?

Server side:

public class LookupManager {
...
public Collection getTheList() {
// Set up default response
Collection response = null;
 response = theList //  gets the list from a Service
 return response;
}
...
}

client side:

mx:Script
![CDATA[


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



   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.





---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---






 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 

[flexcoders] 1

2005-08-08 Thread Flexcoders



1








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

Computer software testing
  
  
Macromedia flex
  
  
Development
  
  


Software developer
  

   
  







  
  
  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.



  









1.txt
Description: Binary data


[flexcoders] setVariable: can't make it work on a customer's machine

2005-08-08 Thread Tracy Spratt
Title: setVariable: can't make it work on a customer's machine








I have ASP.Net creating a custom wrapper for our flex app. Client script calls setVariable on the player object. It works fine on my system, but I cant get any communication going between the custom wrapper _javascript_ and our application on our customers system. Same browser, IE 6.

I am trying to call a setter method, and for testing just showing an alert.

Oddly, if I view source (customers machine), then save that as an htm file to the local desktop, setVariable works!!??

Are there any security settings or anything else that might inhibit setVariable from talking to the app? Any other debugging techniques?

Tracy







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

Computer software testing
  
  
Macromedia flex
  
  
Development
  
  


Software developer
  

   
  







  
  
  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] data passing between datagrid column

2005-08-08 Thread Rajesh Jayabalan
Hi,

 How can I calculate values of datagrid column based on other datagrid
columns.

 i.e.,

 mx:DataGrid
mx:columns
mx:Array
mx:DataGridColumn columnName=qty headerText=Quantity marginLeft=4/
mx:DataGridColumn columnName=price headerText=Price marginLeft=4/
mx:DataGridColumn columnName=total headerText=Total /
/mx:Array
/mx:columns
/mx:DataGrid


How can I calculate the total at runtime so that it will always
display qty*price

both qty and cost are user editable.

Regards
Rajesh J




 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12h172070/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123555195/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy/a./font
~- 

--
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: data passing between datagrid column

2005-08-08 Thread Andrew Spaulding
Use a labelFunction.

In a script block have something like this:

function showTotal(item:Object):String
{
  return $ + (item.qty*item.price).toString();
}

and then your column would have labelFunction=showTotal as an attribute.

I havent tested this code but something like this should work.

Andrew.
www.flexdaddy.info



--- In flexcoders@yahoogroups.com, Rajesh Jayabalan [EMAIL PROTECTED] wrote:
 Hi,
 
  How can I calculate values of datagrid column based on other datagrid
 columns.
 
  i.e.,
 
  mx:DataGrid
 mx:columns
 mx:Array
 mx:DataGridColumn columnName=qty headerText=Quantity
marginLeft=4/
 mx:DataGridColumn columnName=price headerText=Price
marginLeft=4/
 mx:DataGridColumn columnName=total headerText=Total /
 /mx:Array
 /mx:columns
 /mx:DataGrid
 
 
 How can I calculate the total at runtime so that it will always
 display qty*price
 
 both qty and cost are user editable.
 
 Regards
 Rajesh J




 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12h89461f/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123555688/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
Fair play? Video games influencing politics. Click and talk back!/a./font
~- 

--
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 have an image inside a canvas container, and when I resize the canvas, the ima

2005-08-08 Thread JesterXL
By default, Flash does not align the Stage to the top left, and scales 
depending on the HTML written.

Flex, however, does it like an app:
- doesn't scale
-aligns to top left

If you want your image to scale, you should probably change it's 
scaleX/scaleY, or turn off scaleContent/maintainAspectRatio, and alignt it 
to 0,0.

- Original Message - 
From: zhongtie [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, August 08, 2005 6:09 PM
Subject: [flexcoders] I have an image inside a canvas container, and when I 
resize the canvas, the ima


I have an image in a canvas container, and when I resize the canvas,
the image resizes as I expect. However, the image position doesn't
change at all, unlike in a Flash applicaiton.

For example, on a 300x300 canvas, I load an image of 100x100 at (100,
100). If I double the size of the canvas to 600x600, the image is
automatically resized to 200x200, BUT still at (100, 100), instead of
(200, 200)!!

What will be the solution for this? Please help!

Thanks in advance!!

Tim


 Sample Code 
== Please replace your_image_here.jpg with any JPG file   ===
== in the same dir===
=


Attach Code

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
mx:Script
![CDATA[
var zoomIn:Boolean = false;
function onClick():Void
{
zoomIn = !zoomIn;
if (zoomIn) {
frame.width = 200;
frame.height = 160;
} else {
frame.width = 400;
frame.height = 320;
}
}
]]
/mx:Script
  mx:Button label=zoom click=onClick()/
  mx:Canvas width=400 height=320 id=frame
backgroundColor=#99
  mx:Image source=your_image_here.jpg
x=100 y=100 width=50% height=50%/
  /mx:Canvas
/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
Yahoo! Groups Links








 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hrl4oti/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123560949/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy/a./font
~- 

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