RE: [flexcoders] Flex 1.5: AS2 serialization issue . Parent/Child data model implementation

2006-01-09 Thread Peter Farland





Valy, I would add some trace statements into your 
ActionScript code around these lines:
 
   
addr.individual = ModelLocator._individual; // _individual gets loaded when app 
is initializes.   
ModelLocator._individual.physicalAddresses.push(addr);
I 
would double check that the individual on the ModelLocator is populated as 
expected before sending it over the wire.
 
It 
doesn't appear to be related to this case based on the code you've provided, but 
note that objects are deserialized on the client by the Flash player in a 
special order -  an object's fields are set before the constructor is 
invoked (so that you can have access to them in the constructor) so one has to 
be careful not to re-initialize them on constructing a new instance. Also be 
careful of relying on references on the client when round tripping instances as 
while it sounds obvious it can be sometimes easy to forget to update a client 
instance with the returned value before using it further.
 
 
 
 



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Valy 
SivecSent: Thursday, January 05, 2006 4:05 PMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Flex 1.5: AS2 
serialization issue . Parent/Child data model 
implementation

Hello Flexcoders, here I am again... I have 
set the logging level to Debug in the gateway-config.xml and was able seeing how 
data is sent on the wire However, I wasn't able to figure out what's wrong 
with the code.I have pasted below the JAVA/AS2 data model and also the 
AMF log messages. If you can help me would be fantastic. I'm puzzled by the fact 
that the Individual object is serialized correctly and not the same happens with 
the PhysicalAddress( Individual's child object )Thanks in 
advance,Valy  1) JAVA DATA MODEL PARENT 
/ CHILD  ( one to many relation )    public class 
Individual implements Serializable {    
    /** identifier field 
*/    private long 
indiId;    
    /** persistent field 
*/    private Set PhysicalAddresses; 
// implemented 1 - many 
relation  
    /** default constructor 
*/    public Individual() 
{    
}   
    public long getIndiId() 
{    return 
this.indiId;    
}        public 
void setIndiId(long indiId) 
{  &nb! sp; 
this.indiId = indiId;    
}        public 
Set getPhysicalAddresses() 
{    return 
this.PhysicalAddresses;    
}        public 
void setPhysicalAddresses(Set PhysicalAddresses) 
{    
this.PhysicalAddresses = 
PhysicalAddresses;    
}  
    public String toString() 
{   
    return 
new 
ToStringBuilder(this)    
.append("indiId", 
getIndiId())    
.toString();    
    }    
    public boolean equals(Object 
other) {    
if ( !(other instanceof Individual) ) return 
false;    
Individual castOther = (Individual) 
other;    
return new 
EqualsBuilder()    
.append(this.getIndiId(), 
castOther.getIndiId())    
.isEquals();    
}        public 
int hashCode() 
{    return 
new 
HashCodeBuilder()    
.append(getIndiId())    
.toHashCode();    
}    
}     HERE IS THE 
CHILD    public class PhysicalAddress implements 
Serializable {    /** identifier field 
*/  private long 
addrId;    /** 
persistent field */  private String 
addrAddress;    /** persistent field 
*/  private String addrPostalCode;  
  /** persistent field 
*/  private String 
addrCity; 
  /** persistent field */  private 
Individual Individual; // reference to the parent    
  /** default constructor 
*/  public PhysicalAddress() 
{  }    
  public long getAddrId() 
{  return 
this.addrId;  }  
  public void setAddrId(long addrId) 
{  this.addrId = 
addrId;  }  
  public String getAddrAddress() 
{  return 
this.addrAddress;  }  
  public void setAddrAddress(String 
addrAddress) {  
this.addrAddress = addrAddress;  }  
  public String getAddrPostalCode() 
{  return 
this.addrPostalCode;  }  
&nbs! p; public void setAddrPostalCode(String 
addrPostalCode) {  
this.addrPostalCode = addrPostalCode;  
}    public String getAddrCity() 
{  return 
this.addrCity;  }  
  public void setAddrCity(String addrCity) 
{  this.addrCity = 
addrCity;  }    
  public Individual getIndividual() 
{  return 
this.Individual;  }  
  public void setIndividual(Individual 
Individual) {  
this.Individual = Individual;  
}  
  public String toString() 
{  return new 
ToStringBuilder(this)  
.append("addrId", 
getaddrId())  
.append("addrAddress", 
getaddrAddress())  
.append("addrCity", 
getaddrCity()) 

Re: [flexcoders] How to find that in which font type the text is written

2006-01-09 Thread Sreenivas R



You can use measureText available on the controls (Button, TextInput etc) to find out the text width and height.
 
You can use fontFamily, fontSize etc styles to set/get the font type and size.
 
-Sreenivas. 
On 1/6/06, leorajpoot <[EMAIL PROTECTED]> wrote:
Hi all,I want to find the number of pixels that one character of my text takesin flex. I think for that i have to find the font type and size of my
text and then i have to find that how many pixels that particular typeof character takes.If anybody knows about it. Please let me know.--Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links<*> To visit your group on the web, go to:   http://groups.yahoo.com/group/flexcoders/
<*> 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





  




  
  
  YAHOO! GROUPS LINKS



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



  









[flexcoders] Flex 1.5 and CPU load

2006-01-09 Thread Mika Kiljunen










Hi,

I have a weird problem with flex 1.5 server. It seems that
when it is running it seems constantly consume CPU load around 20 to 25 percent
(according to task manager). It keeps pumping it up to 25% and then drops back a
little and instantly goes back to 25% and drops again and back up and… What
causes this?

 

This happens all the time, even when no one is using my flex
app. Any ideas? 

 

 

-Mika









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



  











[flexcoders] Re: Flex 2 - swf symbols

2006-01-09 Thread Brendan Meutzner
Well Jester, you've got the magic touch.

I can't explain this one, as I've copied your code below into my app,
and all of a sudden it's working.  I'm looking at your code here, and
my old code that wasn't working and they're identical (gods honest
truth).  Dunno...

Thanks very much for your help with this one.


Brendan


--- In flexcoders@yahoogroups.com, "JesterXL" <[EMAIL PROTECTED]> wrote:
>
> Ok G, using your SWF, and using the MXML below, she works.  If it
doesn't 
> work for you on your end, let me know, and I'll file a bug since I
have the 
> source.
> 
> 
>   xmlns:mx="http://www.macromedia.com/2005/mxml";
>  xmlns="*">
> 
>  
>   
>  
>  
> 
>   
> 
>   
> 
>  
> 
> 
> 
> - Original Message - 
> From: "Brendan Meutzner" <[EMAIL PROTECTED]>
> To: 
> Sent: Sunday, January 08, 2006 6:37 PM
> Subject: [flexcoders] Re: Flex 2 - swf symbols
> 
> 
> It's being generated for Flash 7.0.
> 
> 
> Brendan
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "JesterXL" <[EMAIL PROTECTED]> wrote:
> >
> > The LiveDocs are wrong, it is not String.  Also, the #symbol format
> doesn't
> > work for me in 1.5, but does in 2.  If you send the SWF to me
> offlist, I'll
> > send you back a working example
> >
> > Also, what version is your SWF?
> >
> > - Original Message - 
> > From: "Brendan Meutzner" <[EMAIL PROTECTED]>
> > To: 
> > Sent: Sunday, January 08, 2006 5:57 PM
> > Subject: [flexcoders] Re: Flex 2 - swf symbols
> >
> >
> > Thanks guys...
> >
> > However, there still seems to be issues.  I'm using the same swf file
> > in both a 1.5 project and 2.0 project.  When I try to embed it using:
> >
> > [Embed("assets/graphics/swfs/SideNavArrows.swf#ArrowUp")]
> >
> > it works in 1.5 but not in 2.0, so I'm assuming there's nothing wrong
> > with my swf file.  The error I get in 2.0 displays "Definition for
> > symbol 'ArrowUp' not found."
> >
> > Has anyone had success importing swf files with symbols using the
> > syntax Jester suggested below?
> >
> >
> > 
> >
> > 
> > 
> > 
> >
> >
> > Thanks,
> >
> > Brendan
> >
> >
> >
> > --- In flexcoders@yahoogroups.com, Clint Modien <[EMAIL PROTECTED]> wrote:
> > >
> > > http://livedocs.macromedia.com/labs/1/flex/0793.html
> > >
> > >
> > > On 1/8/06, JesterXL <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Your syntax is off; it should be:
> > > >
> > > > var myImage3:Class
> > > >
> > > > Not:
> > > >
> > > > var myImage3:String;
> > > >
> > > > If your linkage ID of your symbol is "image3", then it should
work.
> > > >
> > > > - Original Message -
> > > > From: "Brendan Meutzner" <[EMAIL PROTECTED]>
> > > > To: 
> > > > Sent: Sunday, January 08, 2006 5:17 PM
> > > > Subject: [flexcoders] Flex 2 - swf symbols
> > > >
> > > >
> > > > Hi All,
> > > >
> > > > Does somebody have a working example of importing swf symbols
into a
> > > > Flex 2 Application?  I'm able to import swf files, but not a
symbol
> > > > within a swf file.  If you've had success with this, would you
mind
> > > > posting the fla and mxml doc for it?  Ideally and example where an
> > > > Embedded symbol is being set to a string like so:
> > > >
> > > > [Embed("myMovie.swf#image3")]
> > > > var myImage3:String;
> > > >
> > > > Thanks very much in advance.
> > > >
> > > >
> > > > Brendan
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Flexcoders Mailing List
> > > > FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > > > Yahoo! Groups Links
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Flexcoders Mailing List
> > > > FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > > > Yahoo! Groups Links
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> >
> >
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> >
> 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>






--
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] Multi frame swfs not playing

2006-01-09 Thread Brendan Meutzner
Hi All,

When I load a swf movie into a Flex 2 app, it's not playing the movie.
 It loads in the first frame, but just freezes there.  The same swf
movie loaded into a 1.5 app plays properly.

We're talking about a very basic multi-frame swf with no components or
actionscript embedded.

Is there a way to initiate playback of the swf file once loaded?

Thanks,

Brendan





--
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] Drawing on a chart?

2006-01-09 Thread Sreenivas R



Yes it is possible to draw shapes on top of a chart. You can create a generic UIComponent and add as a child to the application or chart. Then you can draw using the normal beginFill/drawRect/endFill rounties.
 
-Sreenivas 
On 1/3/06, Doug Wagner <[EMAIL PROTECTED]> wrote:
Is it possible to draw shapes on top of a chart in Flex?What I want to do is change the shading of the chart background for a
portion of the chart to highlight a selected range.  I'd also like tobe able to draw a rectangle on top of the chart to accomplish asimilar thing.Does anyone know of a way to do either of these?
Thanks,Doug--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links<*> To visit your group on the web, go to:
   http://groups.yahoo.com/group/flexcoders/<*> 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
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  









RE: >< [flexcoders] Flex 1.5 and CPU load

2006-01-09 Thread Stacy Young










Wondering if the flex server is in
production mode? (flex-config)

Stace

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mika Kiljunen
Sent: Monday, January 09, 2006
6:19 AM
To: flexcoders@yahoogroups.com
Subject: >< [flexcoders]
Flex 1.5 and CPU load



 

Hi,

I have a weird problem with flex 1.5 server. It seems that
when it is running it seems constantly consume CPU load around 20 to 25 percent
(according to task manager). It keeps pumping it up to 25% and then drops back
a little and instantly goes back to 25% and drops again and back up and…
What causes this?

 

This happens all the time, even when no one is using my flex
app. Any ideas? 

 

 

-Mika









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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











RE: [flexcoders] Drawing on a chart?

2006-01-09 Thread Matt Horn






In Flex 2, if you want to draw on the chart (or 
place buttons on it, etc) you should create a custom chart element (like an 
annotationElement) and add it to the 
chart's annotationElements array.
matt

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Sreenivas 
  RSent: Monday, January 09, 2006 8:19 AMTo: 
  flexcoders@yahoogroups.comSubject: Re: [flexcoders] Drawing on a 
  chart?
  
  Yes it is possible to draw shapes on top of a chart. You can create a 
  generic UIComponent and add as a child to the application or chart. Then you 
  can draw using the normal beginFill/drawRect/endFill rounties.
   
  -Sreenivas 
  On 1/3/06, Doug 
  Wagner <[EMAIL PROTECTED]> wrote: 
  Is 
it possible to draw shapes on top of a chart in Flex?What I want to 
do is change the shading of the chart background for a portion of the 
chart to highlight a selected range.  I'd also like tobe able 
to draw a rectangle on top of the chart to accomplish asimilar 
thing.Does anyone know of a way to do either of 
these?Thanks,Doug--Flexcoders 
Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links<*> To visit your group on the web, go to: 
   http://groups.yahoo.com/group/flexcoders/<*> 
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
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  









RE: [flexcoders] Multi frame swfs not playing

2006-01-09 Thread Roger Gonzalez
Are you dynamically loading the SWF, or embedding it?

-rg 

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Brendan Meutzner
> Sent: Monday, January 09, 2006 5:22 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Multi frame swfs not playing
> 
> Hi All,
> 
> When I load a swf movie into a Flex 2 app, it's not playing the movie.
>  It loads in the first frame, but just freezes there.  The 
> same swf movie loaded into a 1.5 app plays properly.
> 
> We're talking about a very basic multi-frame swf with no 
> components or actionscript embedded.
> 
> Is there a way to initiate playback of the swf file once loaded?
> 
> Thanks,
> 
> Brendan
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 


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

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

<*> 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: Multi frame swfs not playing

2006-01-09 Thread Brendan Meutzner
Embedded.


--- In flexcoders@yahoogroups.com, "Roger Gonzalez" <[EMAIL PROTECTED]> wrote:
>
> Are you dynamically loading the SWF, or embedding it?
> 
> -rg 
> 
> > -Original Message-
> > From: flexcoders@yahoogroups.com 
> > [mailto:[EMAIL PROTECTED] On Behalf Of Brendan Meutzner
> > Sent: Monday, January 09, 2006 5:22 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Multi frame swfs not playing
> > 
> > Hi All,
> > 
> > When I load a swf movie into a Flex 2 app, it's not playing the movie.
> >  It loads in the first frame, but just freezes there.  The 
> > same swf movie loaded into a 1.5 app plays properly.
> > 
> > We're talking about a very basic multi-frame swf with no 
> > components or actionscript embedded.
> > 
> > Is there a way to initiate playback of the swf file once loaded?
> > 
> > Thanks,
> > 
> > Brendan
> > 
> > 
> > 
> > 
> > 
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives: 
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> > 
> > 
> > 
> >  
> > 
> > 
> > 
> >
>







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

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

<*> 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: Flex 2 - swf symbols

2006-01-09 Thread Roger Gonzalez
Aiigh, you're killing me.  :-)

String does work.  It may not do what you expect, but it should work.
If it doesn't work, file a bug.

Typing the variable as Class is best practice.

The syntax is either Embed('file#ass') or Embed(source='file',
symbol='asset')  If that weird amalgamation of putting the asset name in
the source attribute works, its a bug.  

The octothorpe syntax did work in 1.5, but it is deprecated in 2.0,
because there is no good way to wedge all the parameters in there.  In
fact, it was the original syntax.

-rg


> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL
> Sent: Sunday, January 08, 2006 3:29 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Re: Flex 2 - swf symbols
> 
> The LiveDocs are wrong, it is not String.  Also, the #symbol 
> format doesn't work for me in 1.5, but does in 2.  If you 
> send the SWF to me offlist, I'll send you back a working example
> 
> Also, what version is your SWF?
> 
> - Original Message -
> From: "Brendan Meutzner" <[EMAIL PROTECTED]>
> To: 
> Sent: Sunday, January 08, 2006 5:57 PM
> Subject: [flexcoders] Re: Flex 2 - swf symbols
> 
> 
> Thanks guys...
> 
> However, there still seems to be issues.  I'm using the same swf file
> in both a 1.5 project and 2.0 project.  When I try to embed it using:
> 
> [Embed("assets/graphics/swfs/SideNavArrows.swf#ArrowUp")]
> 
> it works in 1.5 but not in 2.0, so I'm assuming there's nothing wrong
> with my swf file.  The error I get in 2.0 displays "Definition for
> symbol 'ArrowUp' not found."
> 
> Has anyone had success importing swf files with symbols using the
> syntax Jester suggested below?
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Thanks,
> 
> Brendan
> 
> 
> 
> --- In flexcoders@yahoogroups.com, Clint Modien <[EMAIL PROTECTED]> wrote:
> >
> > http://livedocs.macromedia.com/labs/1/flex/0793.html
> >
> >
> > On 1/8/06, JesterXL <[EMAIL PROTECTED]> wrote:
> > >
> > > Your syntax is off; it should be:
> > >
> > > var myImage3:Class
> > >
> > > Not:
> > >
> > > var myImage3:String;
> > >
> > > If your linkage ID of your symbol is "image3", then it 
> should work.
> > >
> > > - Original Message -
> > > From: "Brendan Meutzner" <[EMAIL PROTECTED]>
> > > To: 
> > > Sent: Sunday, January 08, 2006 5:17 PM
> > > Subject: [flexcoders] Flex 2 - swf symbols
> > >
> > >
> > > Hi All,
> > >
> > > Does somebody have a working example of importing swf 
> symbols into a
> > > Flex 2 Application?  I'm able to import swf files, but 
> not a symbol
> > > within a swf file.  If you've had success with this, 
> would you mind
> > > posting the fla and mxml doc for it?  Ideally and example where an
> > > Embedded symbol is being set to a string like so:
> > >
> > > [Embed("myMovie.swf#image3")]
> > > var myImage3:String;
> > >
> > > Thanks very much in advance.
> > >
> > >
> > > Brendan
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ: 
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ: 
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 


--
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: Flex 2 - swf symbols

2006-01-09 Thread JesterXL
I didn't use String because I got compilation errors or some such issue when 
trying to add an embedded image to the display list, bitching about it being 
a string or whatever.  Will have to go back and find out why.

The 2nd format doesn't work in 2; I think I already filed a bug for 2.

For 1.5, I never got the # style to work in 1.5.


- Original Message - 
From: "Roger Gonzalez" <[EMAIL PROTECTED]>
To: 
Sent: Monday, January 09, 2006 10:34 AM
Subject: RE: [flexcoders] Re: Flex 2 - swf symbols


Aiigh, you're killing me.  :-)

String does work.  It may not do what you expect, but it should work.
If it doesn't work, file a bug.

Typing the variable as Class is best practice.

The syntax is either Embed('file#ass') or Embed(source='file',
symbol='asset')  If that weird amalgamation of putting the asset name in
the source attribute works, its a bug.

The octothorpe syntax did work in 1.5, but it is deprecated in 2.0,
because there is no good way to wedge all the parameters in there.  In
fact, it was the original syntax.

-rg


> -Original Message-
> From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL
> Sent: Sunday, January 08, 2006 3:29 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Re: Flex 2 - swf symbols
>
> The LiveDocs are wrong, it is not String.  Also, the #symbol
> format doesn't work for me in 1.5, but does in 2.  If you
> send the SWF to me offlist, I'll send you back a working example
>
> Also, what version is your SWF?
>
> - Original Message -
> From: "Brendan Meutzner" <[EMAIL PROTECTED]>
> To: 
> Sent: Sunday, January 08, 2006 5:57 PM
> Subject: [flexcoders] Re: Flex 2 - swf symbols
>
>
> Thanks guys...
>
> However, there still seems to be issues.  I'm using the same swf file
> in both a 1.5 project and 2.0 project.  When I try to embed it using:
>
> [Embed("assets/graphics/swfs/SideNavArrows.swf#ArrowUp")]
>
> it works in 1.5 but not in 2.0, so I'm assuming there's nothing wrong
> with my swf file.  The error I get in 2.0 displays "Definition for
> symbol 'ArrowUp' not found."
>
> Has anyone had success importing swf files with symbols using the
> syntax Jester suggested below?
>
>
> 
>
> 
> 
> 
>
>
> Thanks,
>
> Brendan
>
>
>
> --- In flexcoders@yahoogroups.com, Clint Modien <[EMAIL PROTECTED]> wrote:
> >
> > http://livedocs.macromedia.com/labs/1/flex/0793.html
> >
> >
> > On 1/8/06, JesterXL <[EMAIL PROTECTED]> wrote:
> > >
> > > Your syntax is off; it should be:
> > >
> > > var myImage3:Class
> > >
> > > Not:
> > >
> > > var myImage3:String;
> > >
> > > If your linkage ID of your symbol is "image3", then it
> should work.
> > >
> > > - Original Message -
> > > From: "Brendan Meutzner" <[EMAIL PROTECTED]>
> > > To: 
> > > Sent: Sunday, January 08, 2006 5:17 PM
> > > Subject: [flexcoders] Flex 2 - swf symbols
> > >
> > >
> > > Hi All,
> > >
> > > Does somebody have a working example of importing swf
> symbols into a
> > > Flex 2 Application?  I'm able to import swf files, but
> not a symbol
> > > within a swf file.  If you've had success with this,
> would you mind
> > > posting the fla and mxml doc for it?  Ideally and example where an
> > > Embedded symbol is being set to a string like so:
> > >
> > > [Embed("myMovie.swf#image3")]
> > > var myImage3:String;
> > >
> > > Thanks very much in advance.
> > >
> > >
> > > Brendan
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>
>
>
>
>


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







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

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

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

<*> Your use of Yahoo! Groups is s

RE: [flexcoders] Re: Multi frame swfs not playing

2006-01-09 Thread Roger Gonzalez
Ok, the issue may be the base class wrapped around the embedded asset.

Basically, your asset will need to be associated with a class deriving
from MovieClip.  In theory, it should figure this out on its own.  (Turn
keep-generated-actionscript on and check out the class associated with
your asset.  Is it Sprite or MovieClip?)

Anywho, if it is only Sprite, you can force it to extend MovieClip by
doing a class-level embed:

// MyMovieAsset.as

package {
import flash.display.MovieClip
[Embed(source='mymovie.swf', symbol='assetname')]
public class MyMovieAsset extends MovieClip
{
} 
}

If that doesn't work, please file a bug report!

(Note: if there are any AS actions on your movie, we're currently
stripping them out and throwing them away, because its illegal to mix
AS2 and AS3 code in one SWF.  I have a bug on my plate to try to handle
this... better.  I'm not sure quite what I'm going to do, because
transcoding the bytecode seems like a nightmare project!  I might just
handle some SWF4-compatible subset, i.e. gotoframe, stop, etc.
Workaround for now is to load AS2 SWFs dynamically at runtime.)

-rg


> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Brendan Meutzner
> Sent: Monday, January 09, 2006 7:34 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Multi frame swfs not playing
> 
> Embedded.
> 
> 
> --- In flexcoders@yahoogroups.com, "Roger Gonzalez" 
> <[EMAIL PROTECTED]> wrote:
> >
> > Are you dynamically loading the SWF, or embedding it?
> > 
> > -rg
> > 
> > > -Original Message-
> > > From: flexcoders@yahoogroups.com
> > > [mailto:[EMAIL PROTECTED] On Behalf Of Brendan Meutzner
> > > Sent: Monday, January 09, 2006 5:22 AM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] Multi frame swfs not playing
> > > 
> > > Hi All,
> > > 
> > > When I load a swf movie into a Flex 2 app, it's not 
> playing the movie.
> > >  It loads in the first frame, but just freezes there.  
> The same swf 
> > > movie loaded into a 1.5 app plays properly.
> > > 
> > > We're talking about a very basic multi-frame swf with no 
> components 
> > > or actionscript embedded.
> > > 
> > > Is there a way to initiate playback of the swf file once loaded?
> > > 
> > > Thanks,
> > > 
> > > Brendan
> > > 
> > > 
> > > 
> > > 
> > > 
> > > --
> > > Flexcoders Mailing List
> > > FAQ: 
> > > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives: 
> > > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > > Yahoo! Groups Links
> > > 
> > > 
> > > 
> > >  
> > > 
> > > 
> > > 
> > >
> >
> 
> 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 


--
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] Dynamically increasing size of container to fit all characters

2006-01-09 Thread Leon Tanner
Hi all,
I am trying to achieve the following:

1) Have a control or container that can accomodate a set of characters
(could be 5 chars or 500 chars)

2) It should increase in size to accomodate the count of characters

3) The control or container should take into account not only the count
of characters to hold, but also the page dimensions (i.e. width) in
order to use what space is available (within the confines of its parent
container)

To paint the picture, I have a VBox as the parent container, essentially
being used as the 'page'.  Within that, a control/container should exist
to hold data thats being fed to it.  The 'page' is one of 3 partitioned
screen sections within the application (e.g. nav bar, top bar, main
area) and the customer would like the 'page' to resize itself accord to
what data is to be shown - therefore making the width of the 'page' a
factor to work with.
Could anyone suggest what might be a good way to go - or even help out
with an example of a similar solution?  If any of this needs further
explanation - please just shout!
Many thanks in advance,
Leon



--
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: Multi frame swfs not playing

2006-01-09 Thread Brendan Meutzner
Hi Roger,

Can I confirm the following usage you've suggested:

//MyMovieAsset.as
package
{
import flash.display.MovieClip;

[Embed('assets/cube.swf')]
public class MyMovieAsset extends MovieClip 
{   
}
}

//MyMXML.mxml

http://www.macromedia.com/2005/mxml"; xmlns="*">






I have nothing displaying when I try the above two files.  Am I doing
this properly?  I found this reference document (which I might add
provides a bit of info on whether to define as String vs. Class) but
it doesn't provide a good example for what you suggest.

http://livedocs.macromedia.com/labs/1/flex/1571.html

Also, how do you turn on the keep-generated-actionscript for Flex 2?

Thanks,

Brendan



--- In flexcoders@yahoogroups.com, "Roger Gonzalez" <[EMAIL PROTECTED]> wrote:
>
> Ok, the issue may be the base class wrapped around the embedded asset.
> 
> Basically, your asset will need to be associated with a class deriving
> from MovieClip.  In theory, it should figure this out on its own.  (Turn
> keep-generated-actionscript on and check out the class associated with
> your asset.  Is it Sprite or MovieClip?)
> 
> Anywho, if it is only Sprite, you can force it to extend MovieClip by
> doing a class-level embed:
> 
> // MyMovieAsset.as
> 
> package {
> import flash.display.MovieClip
> [Embed(source='mymovie.swf', symbol='assetname')]
> public class MyMovieAsset extends MovieClip
> {
> } 
> }
> 
> If that doesn't work, please file a bug report!
> 
> (Note: if there are any AS actions on your movie, we're currently
> stripping them out and throwing them away, because its illegal to mix
> AS2 and AS3 code in one SWF.  I have a bug on my plate to try to handle
> this... better.  I'm not sure quite what I'm going to do, because
> transcoding the bytecode seems like a nightmare project!  I might just
> handle some SWF4-compatible subset, i.e. gotoframe, stop, etc.
> Workaround for now is to load AS2 SWFs dynamically at runtime.)
> 
> -rg
> 
> 
> > -Original Message-
> > From: flexcoders@yahoogroups.com 
> > [mailto:[EMAIL PROTECTED] On Behalf Of Brendan Meutzner
> > Sent: Monday, January 09, 2006 7:34 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Multi frame swfs not playing
> > 
> > Embedded.
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "Roger Gonzalez" 
> > <[EMAIL PROTECTED]> wrote:
> > >
> > > Are you dynamically loading the SWF, or embedding it?
> > > 
> > > -rg
> > > 
> > > > -Original Message-
> > > > From: flexcoders@yahoogroups.com
> > > > [mailto:[EMAIL PROTECTED] On Behalf Of Brendan Meutzner
> > > > Sent: Monday, January 09, 2006 5:22 AM
> > > > To: flexcoders@yahoogroups.com
> > > > Subject: [flexcoders] Multi frame swfs not playing
> > > > 
> > > > Hi All,
> > > > 
> > > > When I load a swf movie into a Flex 2 app, it's not 
> > playing the movie.
> > > >  It loads in the first frame, but just freezes there.  
> > The same swf 
> > > > movie loaded into a 1.5 app plays properly.
> > > > 
> > > > We're talking about a very basic multi-frame swf with no 
> > components 
> > > > or actionscript embedded.
> > > > 
> > > > Is there a way to initiate playback of the swf file once loaded?
> > > > 
> > > > Thanks,
> > > > 
> > > > Brendan
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > --
> > > > Flexcoders Mailing List
> > > > FAQ: 
> > > > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > > Search Archives: 
> > > > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > > > Yahoo! Groups Links
> > > > 
> > > > 
> > > > 
> > > >  
> > > > 
> > > > 
> > > > 
> > > >
> > >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives: 
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> > 
> > 
> > 
> >  
> > 
> > 
> >
>






--
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] Having hard time understanding what features are available to whom when and how

2006-01-09 Thread David Mendels





Hello,
 
Just catching up on some threads from the vacation 
period.
 
a) You don't need OpenAMF if you are using Flex 1.5.  
Flex 1.5 comes with AMF (Remoting) fully integrated.
b) The Trial version reverts to an IP limited developer 
edition after 60 or 90 days, but no functionality goes away. You should be 
fine.
c) Pricing:
 
* If you go into production with Flex 1.5 vs 2.0 there are 
some differences in the options you have.
* It sounds like you want to embed Flex into an application 
that you are selling to multiple customers--eg into a software product.  If 
so, we have ISV pricing for embedding Flex that is custom based on what you are 
doing.
* If you are building a custom application, Flex 1.5 is 
based on per CPU pricing, for the CPUs on which the application is 
running.
* I can connect you with a sales rep who can help you 
figure out what it might cost if you ping me offline (and ideally provide a 
little more context.)
* Lastly, if you are planning to ship say, in the 2nd half 
of this calander year, it *may* be in your interest to ultimately build with 
Flex 2.  There are many advantages to the Flex 2 product line, but since it 
isn't shipping yet you need to evaluate it in the context of your delivery 
schedule.  If you build with Flex 2.0, the tool and framework will be sold 
on a per developer seat basis, for under $1000.  There are no runtime 
charges at all in this case.  The server (Flex Enterprise Services) 
includes both RPC services and Data Services, and a messaging backbone, 
depending on your needs it may be very valuable for your application or it may 
not.  If you do use it, it will be sold both on an embedded basis and on a 
per CPU basis as above. Again, I can connect you to a sales rep if you would 
like more information.
 
Hope this helps,
David
Adobe

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Bruce 
  CichowlasSent: Wednesday, December 28, 2005 7:47 AMTo: 
  flexcoders@yahoogroups.comSubject: Re: [flexcoders] Having hard 
  time understanding what features are available to whom when and 
  how
  That's very informative.  I'll be trying it soon.I did 
  install Tomcat and Flex 1.5 in the way that you suggested and confirmed that 
  it was running properly with the samples.  I've also looked through some 
  of the 1.5 examples and found it encouraging.  I have part of my app that 
  I initially built in 2.0 under Eclipse which I need to move back into the 1.5 
  environment.I'm finding the OpenAMF stuff a bit confusing.  I've 
  been studying http://www.darronschall.com/weblog/archives/000186.cfm 
  and hope that it is relevant.  I'm wondering if I have to read up on 
  Flash, but perhaps not.So what I'm going to attempt next is to Flex to 
  download the initial colors from the server using OpenAMF, add some 
  rudimentary controls to the Flex page to change the colors and another button 
  to write them back to the server.  If I can get that to work today, I 
  will think that Flex 1.5 will most likely get me through this demo.I'm 
  still wondering whether I will run up against trial deadline limits on the 
  demo products I am using that will get.  I also have to figure out what 
  to tell the potential investors about how much the use of Flex will add to the 
  cost of the production product. Thanks for your help,Bruce
  On 12/28/05, JesterXL <[EMAIL PROTECTED]> 
  wrote: 
  
Dude, that is so easy.  You 
just:
- import each graphic into Flash
- give it an instance name
- modify the code I posted to do:
 
var c:Color = new 
Color(targetState);
c.setRGB(0xFF);
 
That'll set it red, and ONLY it.  If you 
have the graphic as a PNG or GIF (transparency intact), it'll color just the 
shape with nice edges.
 
You could do the same in Flex as well, just 
embed the images:
 
[Embed(source="maine.png")]
var main_png:String;
 

 
And set the color the same way:
 
var c:Color = new 
Color(main_png_img);
c.setRGB(0xFF);
 
Flash, Flex... either one.  Additionally, 
Bline Express created a pretty phat USA Map component with all 50 
states.  Methods already exist in it to set colors, know which state 
you clicked on, etc.  It's written for Flash 6, but you could easily 
load that into a Flex Loader, and use proxy functions to call the Flash 6 
methods in the externally loaded SWF.
 
Bring it.
 
- Original Message - 
From: 
Bruce Cichowlas 
To: flexcoders@yahoogroups.com 

Sent: Wednesday, December 28, 2005 12:13 AM
Subject: Re: [flexcoders] Having hard time understanding what 
features are available to whom when and how

Thanks for the prompt reply.I can see how your 
suggestion would work, but in my case I don't think I can use the background 
color.  Imagine if the shapes were the six states of New England on a 
map.  I want 

RE: [flexcoders]Displaying a value in datagrid column

2006-01-09 Thread Avik Chakrabarty



Yes Neha. you can do this as per the Tracy's way Thanks Tracy it works On Fri, Jan 6, 2006 at 11:38 PM, Tracy Spratt wrote:I am not sure what you mean by “ object does nt have a specified property ”, but if the data is anywhere in the dataProvider item, you can get to it using labelFunction(). Tracy ___From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com ] On Behalf Of Avik Chakrabarty Sent: Friday, January 06, 2006 1:04 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders]Displaying a value in datagrid column H i Neha, On the data gris coloumn just use show Data Tips = "True" and check if it works. On Wed, Jan 4, 2006 at  1:10 PM, neha wrote: Hi All I have jst started developing flex applications...I m new to Flex.. I m facing a problem ... I have an object..(array of email addresses) I want to display those email addresses in a datagridBt I dnt knw how to do tht...as the object does nt have a specified property My code: Object-var emailDataProviderHelp me Plz! Send instant messages to your online friends http://in.messenger.yahoo.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com___  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/> . ___  -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 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  . ___





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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  









[flexcoders] Theme and Loader

2006-01-09 Thread bss_rao
Hi, 

There is a problem in loading an external mxml using loader control 
when there is theme set in application tag. It never gets initialized.

Here is the sample scenario,

There are two flex applications, app1.mxml and app2.mxml.

I have applied a theme (mac / XP / pulseBlue etc) for app1.mxml in 
application tag using theme attribute.

I created a loader control which will load app2.mxml which does not 
have any theme specified.

It fails to apply the theme that was specified in app1.mxml to 
app2.mxml.

If I specify the theme for app2.mxml also, then loader fails to load 
app2.mxml.

To apply the theme to app2.mxml also what should be done?

Cheers,
BSS





--
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]Displaying a value in datagrid column

2006-01-09 Thread Avik Chakrabarty



Hi Neha,You cando the same on the tracy's way too. Thanks Tracy it works Thx... for your help Regards,Avik On Fri, Jan 6, 2006 at 11:38 PM, Tracy Spratt wrote:I am not sure what you mean by “ object does nt have a specified property ”, but if the data is anywhere in the dataProvider item, you can get to it using labelFunction(). Tracy ___From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com ] On Behalf Of Avik Chakrabarty Sent: Friday, January 06, 2006 1:04 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders]Displaying a value in datagrid column H i Neha, On the data gris coloumn just use show Data Tips = "True" and check if it works. On Wed, Jan 4, 2006 at  1:10 PM, neha wrote: Hi All I have jst started developing flex applications...I m new to Flex.. I m facing a problem ... I have an object..(array of email addresses) I want to display those email addresses in a datagridBt I dnt knw how to do tht...as the object does nt have a specified property My code: Object-var emailDataProviderHelp me Plz! Send instant messages to your online friends http://in.messenger.yahoo.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com___  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/> . ___  -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 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  . ___





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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  









[flexcoders] Component DataBinding issue

2006-01-09 Thread superabe superabe



Hi there,
 
I have a custom AS component that seems to generate a script time-out error when I use databinding to set one of its params.
It works fine if I hard code the param value.
 
Any ideas as to why this may be happening ?
 
TIA

- superabe
 
Component code(RatingCell.as)
===
 
class RatingCell extends HBox{  private var _rating:Number; private var maxRating:Number = 5;  [Embed( "assets/images/rating_on.png" )]    private var ratingOn:String;  [Embed( "assets/images/rating_off.png" )]
    private var ratingOff:String;

 public function RatingCell(){  }  public function get rating():Number{  return this._rating; }  public function set rating(value:Number){  if(value > maxRating){   value = maxRating;
  }  this._rating = value; }   private function createChildren():Void{  super.createChildren();  Echo.debug("Rating Cell : createChildren");  Echo.debug("rating = " + rating);
  //create active icon  for(var i:Number=0;i   this.createChild(Image,undefined,{source:ratingOn}) ;   }  //create inactive icon  var startCounter:Number = rating;  while(startCounter <= maxRating){
   this.createChild(Image,undefined,{source:ratingOff}) ;startCounter++;  } } }
Usage (Main.mxml)
  
 // this works fine
 // this prompts script timeout error
 
 
 






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



  









[flexcoders] problem in displaying pie chart

2006-01-09 Thread nicy_neha
I want to draw a pie chart  displaying two values -Gold & Silver of 
same object...

































--
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: Multi frame swfs not playing

2006-01-09 Thread Roger Gonzalez
If you want to use it directly as a child in MXML, you might need to
extend mx.core.SkinMovieClip instead of flash.display.MovieClip.
Otherwise I think the frameworks will throw an RTE about your asset not
extending IFlexDisplayObject.

Otherwise, try it in ActionScript, via "addChild( new MyMovieAsset() )".

% mxmlc -keep-generated-actionscript yourapp.mxml

Zorn has a dialog somewhere for extra command-line arguments, if you're
not using mxmlc.

Cheers,

-rg

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Brendan Meutzner
> Sent: Monday, January 09, 2006 9:07 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Multi frame swfs not playing
> 
> Hi Roger,
> 
> Can I confirm the following usage you've suggested:
> 
> //MyMovieAsset.as
> package
> {
>   import flash.display.MovieClip;
>   
>   [Embed('assets/cube.swf')]
>   public class MyMovieAsset extends MovieClip 
>   {   
>   }
> }
> 
> //MyMXML.mxml
> 
>  xmlns:mx="http://www.macromedia.com/2005/mxml"; xmlns="*">
> 
> 
> 
> 
> 
> 
> I have nothing displaying when I try the above two files.  Am I doing
> this properly?  I found this reference document (which I might add
> provides a bit of info on whether to define as String vs. Class) but
> it doesn't provide a good example for what you suggest.
> 
> http://livedocs.macromedia.com/labs/1/flex/1571.html
> 
> Also, how do you turn on the keep-generated-actionscript for Flex 2?
> 
> Thanks,
> 
> Brendan
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Roger Gonzalez" 
> <[EMAIL PROTECTED]> wrote:
> >
> > Ok, the issue may be the base class wrapped around the 
> embedded asset.
> > 
> > Basically, your asset will need to be associated with a 
> class deriving
> > from MovieClip.  In theory, it should figure this out on 
> its own.  (Turn
> > keep-generated-actionscript on and check out the class 
> associated with
> > your asset.  Is it Sprite or MovieClip?)
> > 
> > Anywho, if it is only Sprite, you can force it to extend 
> MovieClip by
> > doing a class-level embed:
> > 
> > // MyMovieAsset.as
> > 
> > package {
> > import flash.display.MovieClip
> > [Embed(source='mymovie.swf', symbol='assetname')]
> > public class MyMovieAsset extends MovieClip
> > {
> > } 
> > }
> > 
> > If that doesn't work, please file a bug report!
> > 
> > (Note: if there are any AS actions on your movie, we're currently
> > stripping them out and throwing them away, because its 
> illegal to mix
> > AS2 and AS3 code in one SWF.  I have a bug on my plate to 
> try to handle
> > this... better.  I'm not sure quite what I'm going to do, because
> > transcoding the bytecode seems like a nightmare project!  I 
> might just
> > handle some SWF4-compatible subset, i.e. gotoframe, stop, etc.
> > Workaround for now is to load AS2 SWFs dynamically at runtime.)
> > 
> > -rg
> > 
> > 
> > > -Original Message-
> > > From: flexcoders@yahoogroups.com 
> > > [mailto:[EMAIL PROTECTED] On Behalf Of Brendan Meutzner
> > > Sent: Monday, January 09, 2006 7:34 AM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] Re: Multi frame swfs not playing
> > > 
> > > Embedded.
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com, "Roger Gonzalez" 
> > > <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Are you dynamically loading the SWF, or embedding it?
> > > > 
> > > > -rg
> > > > 
> > > > > -Original Message-
> > > > > From: flexcoders@yahoogroups.com
> > > > > [mailto:[EMAIL PROTECTED] On Behalf Of 
> Brendan Meutzner
> > > > > Sent: Monday, January 09, 2006 5:22 AM
> > > > > To: flexcoders@yahoogroups.com
> > > > > Subject: [flexcoders] Multi frame swfs not playing
> > > > > 
> > > > > Hi All,
> > > > > 
> > > > > When I load a swf movie into a Flex 2 app, it's not 
> > > playing the movie.
> > > > >  It loads in the first frame, but just freezes there.  
> > > The same swf 
> > > > > movie loaded into a 1.5 app plays properly.
> > > > > 
> > > > > We're talking about a very basic multi-frame swf with no 
> > > components 
> > > > > or actionscript embedded.
> > > > > 
> > > > > Is there a way to initiate playback of the swf file 
> once loaded?
> > > > > 
> > > > > Thanks,
> > > > > 
> > > > > Brendan
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > --
> > > > > Flexcoders Mailing List
> > > > > FAQ: 
> > > > > 
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > > > Search Archives: 
> > > > > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > > > > Yahoo! Groups Links
> > > > > 
> > > > > 
> > > > > 
> > > > >  
> > > > > 
> > > > > 
> > > > > 
> > > > >
> > > >
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > --
> > > Flexcoders Mailing List
> > > FAQ: 
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives: 
> > > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > > Yahoo! Groups Links
> > > 
> > > 
> > > 
> > >  
> > > 
> > > 
> 

RE: [flexcoders] Theme and Loader

2006-01-09 Thread Roger Gonzalez
In 1.5, themes are a linker trick.  Basically, the default version of a
symbol is substituted at the last second for a themed version of the
same symbol.  Its pretty evil.

AS2 semantics were "don't redefine a class that is already defined" when
a new SWF is loaded as a child.

I would thus expect that when you dynamically load a second app, that
second app may well end up as a mishmash, where classes already defined
in the parent that were themed are also themed in the child, but classes
that are only in the child are not themed.  However, anything that uses
simple assets (attachMovie) probably stays within the context of a
single SWF, because there is no cross-SWF asset reference in FP7.

So anyway, there is no runtime theme application.  It only works at link
time, and only for the app you defined it on.

> If I specify the theme for app2.mxml also, then loader fails to load 
> app2.mxml.

What happens?  That's kinda odd.  If you're consistent, everything
should work.

One (ugly) possibility is that you might create some RSLs that have your
theme baked in, and have your server provide a different SWF for a given
URL based on some other parameter.  

Sorry I don't have better news, but this whole area was really sketchy
in Player 7, so what little theme support we added took a lot of magic.
Things should be much better in Flex 2/FP8.5 , hopefully.  It should be
possible (although we aren't exploiting this) to build an entire runtime
skinning system for an 8.5 app.

-rg


> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of bss_rao
> Sent: Monday, January 09, 2006 12:38 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Theme and Loader
> 
> Hi, 
> 
> There is a problem in loading an external mxml using loader control 
> when there is theme set in application tag. It never gets initialized.
> 
> Here is the sample scenario,
> 
> There are two flex applications, app1.mxml and app2.mxml.
> 
> I have applied a theme (mac / XP / pulseBlue etc) for app1.mxml in 
> application tag using theme attribute.
> 
> I created a loader control which will load app2.mxml which does not 
> have any theme specified.
> 
> It fails to apply the theme that was specified in app1.mxml to 
> app2.mxml.
> 
> If I specify the theme for app2.mxml also, then loader fails to load 
> app2.mxml.
> 
> To apply the theme to app2.mxml also what should be done?
> 
> Cheers,
> BSS
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 


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

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

<*> 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: Multi frame swfs not playing

2006-01-09 Thread Brendan Meutzner
Hi Roger,

Well, that get's me one step closer.  If I extend MyMovieAsset from
either MovieClip or SkinMovieClip it gives me the following RTE

"TypeError: Error #1034: Type Coersion failed: cannot convert
[EMAIL PROTECTED] to mx.core.IUIComponent"

However, if I continue to load, the swf loads properly and plays properly.

This occurs when I declare it as an MXML child tag and also when i
load it via ActionScript.

Also, I get a compile time error saying that SkinMovieClip's class
definition is not found (and I can't find it in the docs anywhere) but
if I ignore, it still loads the swf with the RTE I outlined above.


Brendan


--- In flexcoders@yahoogroups.com, "Roger Gonzalez" <[EMAIL PROTECTED]> wrote:
>
> If you want to use it directly as a child in MXML, you might need to
> extend mx.core.SkinMovieClip instead of flash.display.MovieClip.
> Otherwise I think the frameworks will throw an RTE about your asset not
> extending IFlexDisplayObject.
> 
> Otherwise, try it in ActionScript, via "addChild( new MyMovieAsset() )".
> 
> % mxmlc -keep-generated-actionscript yourapp.mxml
> 
> Zorn has a dialog somewhere for extra command-line arguments, if you're
> not using mxmlc.
> 
> Cheers,
> 
> -rg
> 
> > -Original Message-
> > From: flexcoders@yahoogroups.com 
> > [mailto:[EMAIL PROTECTED] On Behalf Of Brendan Meutzner
> > Sent: Monday, January 09, 2006 9:07 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Multi frame swfs not playing
> > 
> > Hi Roger,
> > 
> > Can I confirm the following usage you've suggested:
> > 
> > //MyMovieAsset.as
> > package
> > {
> > import flash.display.MovieClip;
> > 
> > [Embed('assets/cube.swf')]
> > public class MyMovieAsset extends MovieClip 
> > {   
> > }
> > }
> > 
> > //MyMXML.mxml
> > 
> >  > xmlns:mx="http://www.macromedia.com/2005/mxml"; xmlns="*">
> > 
> > 
> > 
> > 
> > 
> > 
> > I have nothing displaying when I try the above two files.  Am I doing
> > this properly?  I found this reference document (which I might add
> > provides a bit of info on whether to define as String vs. Class) but
> > it doesn't provide a good example for what you suggest.
> > 
> > http://livedocs.macromedia.com/labs/1/flex/1571.html
> > 
> > Also, how do you turn on the keep-generated-actionscript for Flex 2?
> > 
> > Thanks,
> > 
> > Brendan
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "Roger Gonzalez" 
> > <[EMAIL PROTECTED]> wrote:
> > >
> > > Ok, the issue may be the base class wrapped around the 
> > embedded asset.
> > > 
> > > Basically, your asset will need to be associated with a 
> > class deriving
> > > from MovieClip.  In theory, it should figure this out on 
> > its own.  (Turn
> > > keep-generated-actionscript on and check out the class 
> > associated with
> > > your asset.  Is it Sprite or MovieClip?)
> > > 
> > > Anywho, if it is only Sprite, you can force it to extend 
> > MovieClip by
> > > doing a class-level embed:
> > > 
> > > // MyMovieAsset.as
> > > 
> > > package {
> > > import flash.display.MovieClip
> > > [Embed(source='mymovie.swf', symbol='assetname')]
> > > public class MyMovieAsset extends MovieClip
> > > {
> > > } 
> > > }
> > > 
> > > If that doesn't work, please file a bug report!
> > > 
> > > (Note: if there are any AS actions on your movie, we're currently
> > > stripping them out and throwing them away, because its 
> > illegal to mix
> > > AS2 and AS3 code in one SWF.  I have a bug on my plate to 
> > try to handle
> > > this... better.  I'm not sure quite what I'm going to do, because
> > > transcoding the bytecode seems like a nightmare project!  I 
> > might just
> > > handle some SWF4-compatible subset, i.e. gotoframe, stop, etc.
> > > Workaround for now is to load AS2 SWFs dynamically at runtime.)
> > > 
> > > -rg
> > > 
> > > 
> > > > -Original Message-
> > > > From: flexcoders@yahoogroups.com 
> > > > [mailto:[EMAIL PROTECTED] On Behalf Of Brendan Meutzner
> > > > Sent: Monday, January 09, 2006 7:34 AM
> > > > To: flexcoders@yahoogroups.com
> > > > Subject: [flexcoders] Re: Multi frame swfs not playing
> > > > 
> > > > Embedded.
> > > > 
> > > > 
> > > > --- In flexcoders@yahoogroups.com, "Roger Gonzalez" 
> > > > <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Are you dynamically loading the SWF, or embedding it?
> > > > > 
> > > > > -rg
> > > > > 
> > > > > > -Original Message-
> > > > > > From: flexcoders@yahoogroups.com
> > > > > > [mailto:[EMAIL PROTECTED] On Behalf Of 
> > Brendan Meutzner
> > > > > > Sent: Monday, January 09, 2006 5:22 AM
> > > > > > To: flexcoders@yahoogroups.com
> > > > > > Subject: [flexcoders] Multi frame swfs not playing
> > > > > > 
> > > > > > Hi All,
> > > > > > 
> > > > > > When I load a swf movie into a Flex 2 app, it's not 
> > > > playing the movie.
> > > > > >  It loads in the first frame, but just freezes there.  
> > > > The same swf 
> > > > > > movie loaded into a 1.5 app plays properly.
> > > > > > 
> > > > > > We're talking

[flexcoders] Re: Need help in tackling this event problem...

2006-01-09 Thread george_lui
Hi, 

We are using commands.  The command has access to this when the event
is broadcasted.  It's the event that you get on onResult(event) and
onFault(event) that doesn't have this data.  event.data and event.type
 are undefined as well.

We thought about the global variable route.  Actually we thought about
having the Responder having an attribute for this as well.  Problem
with that though is that we have asynchronous chained commands for
certain actions and there's no way to know which data is relevant to
which command any any point in time.


george


--- In flexcoders@yahoogroups.com, "Dimitrios Gianninas"
<[EMAIL PROTECTED]> wrote:
>
> Hi,
>  
> The simplest solution is to implement commands :)
>  
> However, if you want to keep what you have, you will have to save the
> original event object in some global variable so that you can look it up
> once onResult() or onFault() are fired.
>  
> Dimitrios "Jimmy" Gianninas
> RIA Developer
> Optimal Payments Inc.
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of george_lui
> Sent: Friday, January 06, 2006 9:37 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Need help in tackling this event problem...
> 
> 
> Hi,
> 
> Here's my scenerio:
> 
> I have a view and it's corresponding ViewHelper.  There are two
> buttons in the view.  If I hit button A, I want action X to occur.  If
> I hit button B, I want action Y to occur.
> 
> This is how I broadcast my event in this view when I hit these buttons.
> 
> CommandEventBroadcaster.getInstance().broadcastEvent(SharkfinControl.EVE
> NT_SAVE_FORM,
>{form: true}, this);
> 
> We have a custom EventBroadcaster that we wrote to include the
> Responder object (the 'this' argument). It's also passing in a boolean
> flag here (form). In our case the ViewHelper
> implements the Responder interface.  This is for the purpose
> decoupling the command from the Responder (ViewHelper).  In our
> Responder we have the onFault(event) and onResult(event) methods in
> which we do post-command-execution stuff.
> 
> The problem it seems for me is that I want to have some sort of flag
> that would distinguish between executing action X or Y (the form
> boolean).  I can set a flag when broadcasting the event.  The command
> class has access to these flag in the event.  However, on onResult()
> the intiall event parameters is lost.  It appears to be a new event
> object.  Therefore, the responder onFault(event) and onResult(event)
> have no notion of any flags that were set before the service call.
> 
> Is there a solution that you might know of to address this?  The basic
> gist of my problem is to retrieve any event attr in onResult() and
> onFault() that were sent on the event when it was intially broadcasted.
> 
> TIA,
> George
> 
> 
> 
> 
> 
> 
> 
> --
> 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  . 
> 
> 
> 
>






--
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: Need help in tackling this event problem...

2006-01-09 Thread george_lui
Event is a class in Cairngorm.  I'm assuming that you meant that I
should subclass the Event class right?

TIA,
george


--- In flexcoders@yahoogroups.com, "JesterXL" <[EMAIL PROTECTED]> wrote:
>
> Impossible to do with anonymous objects.  However, if you make your
event a 
> class, you have no problems.  This is enforced at runtime in AS3:
> 
> class Event
> {
> private var test:String;
> 
> public var target:Object;
> public var type:String;
> }
> 
> var e:Event = new Event();
> e.target = this;
> e.type = "test";
> dispatchEvent(e);
> 
> function onResult(event:Event):Void
> {
> trace(event.test); // won't compile
> }
> 
> 
> - Original Message - 
> From: "Weyert de Boer" <[EMAIL PROTECTED]>
> To: 
> Sent: Saturday, January 07, 2006 8:38 AM
> Subject: Re: [flexcoders] Need help in tackling this event problem...
> 
> 
> JesterXL wrote:
> 
> >Clearly your problem is your custom EventDispatcher.  The one that
comes
> >with Flex allows me to throw any custom arg I want at result handlers. 
> >Find
> >out why he's not keeping your event handlers.
> >
> >
> Yes, EventDispatcher something I have issues with to understand. It
> keeps sending data I don't want to the listeners such as private
> variables of the class 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>






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

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

<*> 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: Dynamically increasing size of container to fit all characters

2006-01-09 Thread Brendan Meutzner
Leon,

Does this container need to size itself based on it's content when
being loaded, or is its content bound to dynamic data, resulting in it
requiring resize itself during use?

Brendan



--- In flexcoders@yahoogroups.com, "Leon Tanner" <[EMAIL PROTECTED]> wrote:
>
> Hi all,
> I am trying to achieve the following:
> 
> 1) Have a control or container that can accomodate a set of characters
> (could be 5 chars or 500 chars)
> 
> 2) It should increase in size to accomodate the count of characters
> 
> 3) The control or container should take into account not only the count
> of characters to hold, but also the page dimensions (i.e. width) in
> order to use what space is available (within the confines of its parent
> container)
> 
> To paint the picture, I have a VBox as the parent container, essentially
> being used as the 'page'.  Within that, a control/container should exist
> to hold data thats being fed to it.  The 'page' is one of 3 partitioned
> screen sections within the application (e.g. nav bar, top bar, main
> area) and the customer would like the 'page' to resize itself accord to
> what data is to be shown - therefore making the width of the 'page' a
> factor to work with.
> Could anyone suggest what might be a good way to go - or even help out
> with an example of a similar solution?  If any of this needs further
> explanation - please just shout!
> Many thanks in advance,
> Leon
>






--
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: Need help in tackling this event problem...

2006-01-09 Thread JesterXL
Sure, I reckon.  I've never used Cairngorm, but if memory serves when I was 
reading the files, yeah.  If you dispatch the event, he should have all of 
the properties that you set on the event carred over since the event you 
dispatch is the one you'll get in your result handler.

- Original Message - 
From: "george_lui" <[EMAIL PROTECTED]>
To: 
Sent: Monday, January 09, 2006 2:21 PM
Subject: [flexcoders] Re: Need help in tackling this event problem...


Event is a class in Cairngorm.  I'm assuming that you meant that I
should subclass the Event class right?

TIA,
george


--- In flexcoders@yahoogroups.com, "JesterXL" <[EMAIL PROTECTED]> wrote:
>
> Impossible to do with anonymous objects.  However, if you make your
event a
> class, you have no problems.  This is enforced at runtime in AS3:
>
> class Event
> {
> private var test:String;
>
> public var target:Object;
> public var type:String;
> }
>
> var e:Event = new Event();
> e.target = this;
> e.type = "test";
> dispatchEvent(e);
>
> function onResult(event:Event):Void
> {
> trace(event.test); // won't compile
> }
>
>
> - Original Message - 
> From: "Weyert de Boer" <[EMAIL PROTECTED]>
> To: 
> Sent: Saturday, January 07, 2006 8:38 AM
> Subject: Re: [flexcoders] Need help in tackling this event problem...
>
>
> JesterXL wrote:
>
> >Clearly your problem is your custom EventDispatcher.  The one that
comes
> >with Flex allows me to throw any custom arg I want at result handlers.
> >Find
> >out why he's not keeping your event handlers.
> >
> >
> Yes, EventDispatcher something I have issues with to understand. It
> keeps sending data I don't want to the listeners such as private
> variables of the class 
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>






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







--
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: Get selected tree node for dynamically created tree

2006-01-09 Thread Ault, Gary - BLS
Thanks, Matt, for your answer, which saved me a lot of time. I see the
answer is in the MM flexfaq, but somehow I missed it.

Gary

 
Message: 13
   Date: Wed, 4 Jan 2006 20:56:08 -0800
   From: "Matt Chotin" <[EMAIL PROTECTED]>
Subject: RE: Get selected tree node for dynamically created tree

You need to use node.getProperty("label") not .attributes, this way your
code will work regardless of how the dataProvider was specified.

 

Matt

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ault, Gary - BLS
Sent: Tuesday, January 03, 2006 5:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Get selected tree node for dynamically created
tree

 

First time creating trees in Flex. Can someone explain how to find the
selected tree node on a tree that has a data model created
programmatically?  I create my data model as shown below (example from
Flex ActionScript Language Ref 1.5). The tree is displayed correctly.
When I try to use the nodeOpen event on my Tree control, however,
selectedNode is undefined. Event.node.attributes.label  and
event.node.attributes.data are also undefined. However, if I use an
mx:XML dataprovider as most tree usage examples do, these attributes are
not undefined. 

Code to create model: 
 var treeDP; 
 treeDP = new TreeNode(); 
 var root = treeDP.addTreeNode("root","0"); 
 root.addTreeNode("node 1 ","1"); 
 root.addTreeNode("node 2","2"); 
 var node3 = root.addTreeNode("node 3","3"); 
 node3.addTreeNode("node 3-0", "3-0"); 
 node3.addTreeNode("node 3-1", "3-1"); 

 

Tree Control: 

 

Thanks for any help you can provide, 

Gary Ault 
Bureau of Labor Statistics 



--



--
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] State Transistions

2006-01-09 Thread rebel_assualt
Hey, 

I was wondering if anyone had any information of transistion effects
for flex 2 states? For example an animation or something that displays
when different states are navigated to.

Thanks
Matt







--
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: Mac theme for Flex

2006-01-09 Thread bss_rao
Hi Abdul,

How to apply this theme for an external mxml that gets loaded from 
another mxml with loader control?

If I specify theme attribute in both mxml applications, then the 
external mxml fails to initialize.

Any solution for this?

Thks,
BSS

--- In flexcoders@yahoogroups.com, "Abdul Qabiz" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> Little OT:
> 
> I generally don't post stuff which can be seen in MXNA or on blogs. 
But
> this one is really cool.
> 
> Beam Jive guys have just posted a sample of Flex with Mac theme. I
> think, they would post the fla soon...
> 
> Check out: http://www.beamjive.com/weblog.php?a=1&id=131
> 
> 
> -abdul
>









--
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] Remoting over HTTPS fails in IE 6.0

2006-01-09 Thread Mykola Paliyenko



Hi guys

I have a following problem
I have a page index.mxml that need to be able to pass data to the server via HTTPS
when I open it using https://bla-bla/index.mxml remoting works fine in IE, 
but when I do it using http://bla-bla/index.mxml it loads nothing no request come to the amf gateway.
In Firefox everything works fine (I have setup crossdomain.xml properly)

I've read lots of hints about caching problem in IE but seems that I faced another problem.

The problem is that I do not want to overload server and download swfs to the user via HTTPS,
I just want to be able to transfer some data via secure channel
I'm using player 8.0 in IE 6.0, Flex 1.5.

Any ideas about what could it be?
-- WBR, Mykola






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



  









[flexcoders] Re: Need help in tackling this event problem...

2006-01-09 Thread george_lui
Actually that is the problem.  The event I dispatch *doesn't* appear
to be the same event I get back in my result handler.

We use our custom event broadcaster to pass an event, pass it some
event data, and pass the Responder object (ViewHelper) in our case. 
The command has access to the event data and does it's execute() thing
(it makes a service call).  However in our Responder.onResult(event)
and Responder.onFault(event), the event doesn't appear to be the same
event I passed in.  For instance, event.data and event.type yields
"undefined".

According to the Cairngorm documentation the returned event after a
service call :
"event - An object containing the data passed back from the service
call..."

Kinda leads me to believe that the event object avail in onResult()
and onFault() is not the same as the one that was broadcasted prior to
any backend service call.

Maybe this is Cairgorm that's not working as I want it to?  Any
Cairgorm guru's out there?

TIA,
george




--- In flexcoders@yahoogroups.com, "JesterXL" <[EMAIL PROTECTED]> wrote:
>
> Sure, I reckon.  I've never used Cairngorm, but if memory serves
when I was 
> reading the files, yeah.  If you dispatch the event, he should have
all of 
> the properties that you set on the event carred over since the event
you 
> dispatch is the one you'll get in your result handler.
> 
> - Original Message - 
> From: "george_lui" <[EMAIL PROTECTED]>
> To: 
> Sent: Monday, January 09, 2006 2:21 PM
> Subject: [flexcoders] Re: Need help in tackling this event problem...
> 
> 
> Event is a class in Cairngorm.  I'm assuming that you meant that I
> should subclass the Event class right?
> 
> TIA,
> george
> 
> 
> --- In flexcoders@yahoogroups.com, "JesterXL" <[EMAIL PROTECTED]> wrote:
> >
> > Impossible to do with anonymous objects.  However, if you make your
> event a
> > class, you have no problems.  This is enforced at runtime in AS3:
> >
> > class Event
> > {
> > private var test:String;
> >
> > public var target:Object;
> > public var type:String;
> > }
> >
> > var e:Event = new Event();
> > e.target = this;
> > e.type = "test";
> > dispatchEvent(e);
> >
> > function onResult(event:Event):Void
> > {
> > trace(event.test); // won't compile
> > }
> >
> >
> > - Original Message - 
> > From: "Weyert de Boer" <[EMAIL PROTECTED]>
> > To: 
> > Sent: Saturday, January 07, 2006 8:38 AM
> > Subject: Re: [flexcoders] Need help in tackling this event problem...
> >
> >
> > JesterXL wrote:
> >
> > >Clearly your problem is your custom EventDispatcher.  The one that
> comes
> > >with Flex allows me to throw any custom arg I want at result
handlers.
> > >Find
> > >out why he's not keeping your event handlers.
> > >
> > >
> > Yes, EventDispatcher something I have issues with to understand. It
> > keeps sending data I don't want to the listeners such as private
> > variables of the class 
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> >
> 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>







--
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: Need help in tackling this event problem...

2006-01-09 Thread JesterXL
Oh... well that's different.  The reason you're not getting it is because 
the event you dispatch is handling internally in Cairngorm, and triggers the 
Command.  After that, it's done, gone, and no longer can be access.  The 
Responder.onResult event is the event returned from a successful webservice 
call, and is a totallly different event object.

You could instead stick the data temporarely on the ModelLocator so whoever 
is utilizing the Responder's result event can look there for context.

- Original Message - 
From: "george_lui" <[EMAIL PROTECTED]>
To: 
Sent: Monday, January 09, 2006 4:00 PM
Subject: [flexcoders] Re: Need help in tackling this event problem...


Actually that is the problem.  The event I dispatch *doesn't* appear
to be the same event I get back in my result handler.

We use our custom event broadcaster to pass an event, pass it some
event data, and pass the Responder object (ViewHelper) in our case.
The command has access to the event data and does it's execute() thing
(it makes a service call).  However in our Responder.onResult(event)
and Responder.onFault(event), the event doesn't appear to be the same
event I passed in.  For instance, event.data and event.type yields
"undefined".

According to the Cairngorm documentation the returned event after a
service call :
"event - An object containing the data passed back from the service
call..."

Kinda leads me to believe that the event object avail in onResult()
and onFault() is not the same as the one that was broadcasted prior to
any backend service call.

Maybe this is Cairgorm that's not working as I want it to?  Any
Cairgorm guru's out there?

TIA,
george




--- In flexcoders@yahoogroups.com, "JesterXL" <[EMAIL PROTECTED]> wrote:
>
> Sure, I reckon.  I've never used Cairngorm, but if memory serves
when I was
> reading the files, yeah.  If you dispatch the event, he should have
all of
> the properties that you set on the event carred over since the event
you
> dispatch is the one you'll get in your result handler.
>
> - Original Message - 
> From: "george_lui" <[EMAIL PROTECTED]>
> To: 
> Sent: Monday, January 09, 2006 2:21 PM
> Subject: [flexcoders] Re: Need help in tackling this event problem...
>
>
> Event is a class in Cairngorm.  I'm assuming that you meant that I
> should subclass the Event class right?
>
> TIA,
> george
>
>
> --- In flexcoders@yahoogroups.com, "JesterXL" <[EMAIL PROTECTED]> wrote:
> >
> > Impossible to do with anonymous objects.  However, if you make your
> event a
> > class, you have no problems.  This is enforced at runtime in AS3:
> >
> > class Event
> > {
> > private var test:String;
> >
> > public var target:Object;
> > public var type:String;
> > }
> >
> > var e:Event = new Event();
> > e.target = this;
> > e.type = "test";
> > dispatchEvent(e);
> >
> > function onResult(event:Event):Void
> > {
> > trace(event.test); // won't compile
> > }
> >
> >
> > - Original Message - 
> > From: "Weyert de Boer" <[EMAIL PROTECTED]>
> > To: 
> > Sent: Saturday, January 07, 2006 8:38 AM
> > Subject: Re: [flexcoders] Need help in tackling this event problem...
> >
> >
> > JesterXL wrote:
> >
> > >Clearly your problem is your custom EventDispatcher.  The one that
> comes
> > >with Flex allows me to throw any custom arg I want at result
handlers.
> > >Find
> > >out why he's not keeping your event handlers.
> > >
> > >
> > Yes, EventDispatcher something I have issues with to understand. It
> > keeps sending data I don't want to the listeners such as private
> > variables of the class 
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> >
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>







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







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

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

<*> 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] dynamic number of datagrid columns

2006-01-09 Thread t_msreddy



HiI need to implement a datagrid based on user input. User input determines the number of datagrid columns.Can you please tell me how to do this? In all the examples I have seen the grid columns are static though data is rendered through data provider like this:ataGrid id="datagrid1" width="100%" height="80%" dataProvider="{dp}"  rowHeight="100">ataGridColumn headerText="Name" columnName="name" editable="false"/>  ataGridColumn headerText="City" columnName="city" editable="false" />		  ataGridColumn headerText="Birthday"  cellRenderer="GridCellRenderer"  />		  ataGridColumn headerText="Favorites" columnName="combodata" editable="true"  />		  ataGridColumn headerText="Delete"  columnName="candelete" editable="true"  />  	  	  ataGrid> here you have mxataGridColumn  tags which render the columns. I need to implement a datagrid which has dynamic number of columns. Please help me.






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  









RE: [flexcoders] State Transistions

2006-01-09 Thread Ashish Goyal
States will have support for transition effects in the next alpha/beta
release.

Thanks
-Ashish



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of rebel_assualt
Sent: Sunday, January 08, 2006 7:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] State Transistions

Hey, 

I was wondering if anyone had any information of transistion effects
for flex 2 states? For example an animation or something that displays
when different states are navigated to.

Thanks
Matt







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



 




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

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

<*> 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] dynamic number of datagrid columns

2006-01-09 Thread Tracy Spratt










As I recall, if your dataProvider is a
clean array of simple objects, the DataGrid will default to displaying all the
columns, with the property names as column headers, and in unpredictable order.

 

Alternatively, you can dynamically create
the DG columns.  To do this you will need some kind of “metadata”
to define the column properties.  Dynamically created DGs are noticeably slower
to render, but not unbearably so.

 

Tracy

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of t_msreddy
Sent: Monday, January 09, 2006
5:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] dynamic
number of datagrid columns



 

HiI need to implement a datagrid based on user input. User input determines the number of datagrid columns.Can you please tell me how to do this? In all the examples I have seen the grid columns are static though data is rendered through data provider like this:ataGrid id="datagrid1" width="100%" height="80%" dataProvider="{dp}"  rowHeight="100">        ataGridColumn headerText="Name" columnName="name" editable="false"/>  ataGridColumn headerText="City" columnName="city" editable="false" />   ataGridColumn headerText="Birthday"  cellRenderer="GridCellRenderer"  />     ataGridColumn headerText="Favorites" columnName="combodata" editable="true"  />     ataGridColumn headerText="Delete"  columnName="candelete" editable="true"  />              ataGrid> here you have mxataGridColumn  tags which render the columns. I need to implement a datagrid which has dynamic number of columns. Please help me.









--
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] Remoting over HTTPS fails in IE 6.0

2006-01-09 Thread Peter Farland





From reading your subject line, did you mean the opposite 
of what you said below? That is, did you mean:
 
when I open it using 
http://bla-bla/index.mxml remoting works fine in 
IE, but when I do it using https://bla-bla/index.mxml it loads 
nothing no request come to the amf gateway
 
 
RemoteObject uses NetConnection over HTTP (or HTTPS) so it's just like a 
normal POST request. This means it is subject to the same restrictions as any 
other connection made from Flash Player 7 (or later). This also means it is 
subject to the SSL caching problems with MSIE irrespective of how your SWF was 
loaded. I imagine you're hitting one of these two problems.
 
 
http://www.macromedia.com/devnet/flash/articles/fplayer_security.htm 
states:
 
"Macromedia Flash movies served over HTTP 
(or other insecure protocols) are no longer allowed to access movies or data 
served over HTTPS." and "HTTPS restriction is asymmetrical; movies served over HTTPS can access 
other documents served over insecure protocols." and 
"If the HTTPS restriction affects your movie—that is, a 
non-HTTPS server serves the movie, but the movie downloads data from an HTTPS 
server—add the secure="false" 
attribute to your  tag, as in the following 
example:"
 
If you 
do have your crossdomain.xml file setup correct as stated above, then it's 
likely you'll need to debug the HTTPS header traffic to see whether the 
offending headers are being sent to the MSIE client in the response. Note that 
in order to debug HTTPS traffic you'll need a client side proxy, such as Paros 
Proxy, to intercept and debug the otherwise encrypted traffic. You then 
will have to determine which application on the server is adding the offending 
headers and devise a way to stop them from being added as it's unlikely you're 
going to be able to get each client to change their registry to stop the bug in 
MSIE.
 
Pete
 



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Mykola 
PaliyenkoSent: Tuesday, January 10, 2006 5:24 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Remoting over HTTPS 
fails in IE 6.0
Hi guysI have a following problemI have a page index.mxml 
that need to be able to pass data to the server via HTTPSwhen I open it 
using https://bla-bla/index.mxml remoting 
works fine in IE, but when I do it using http://bla-bla/index.mxml it loads nothing 
no request come to the amf gateway.In Firefox everything works fine (I have 
setup crossdomain.xml properly)I've read lots of hints about caching 
problem in IE but seems that I faced another problem.The problem is that 
I do not want to overload server and download swfs to the user via HTTPS,I 
just want to be able to transfer some data via secure channelI'm using 
player 8.0 in IE 6.0, Flex 1.5.Any ideas about what could it be?-- 
WBR, Mykola 






--
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] dynamic number of datagrid columns

2006-01-09 Thread Gordon Smith










The DataGrid class has addColumn() and
addColumnAt() methods.

 

- Gordon

 









From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of t_msreddy
Sent: Monday, January 09, 2006
2:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] dynamic
number of datagrid columns



 

HiI need to implement a datagrid based on user input. User input determines the number of datagrid columns.Can you please tell me how to do this? In all the examples I have seen the grid columns are static though data is rendered through data provider like this:ataGrid id="datagrid1" width="100%" height="80%" dataProvider="{dp}"  rowHeight="100">        ataGridColumn headerText="Name" columnName="name" editable="false"/>  ataGridColumn headerText="City" columnName="city" editable="false" />   ataGridColumn headerText="Birthday"  cellRenderer="GridCellRenderer"  />     ataGridColumn headerText="Favorites" columnName="combodata" editable="true"  />     ataGridColumn headerText="Delete"  columnName="candelete" editable="true"  />              ataGrid> here you have mxataGridColumn  tags which render the columns. I need to implement a datagrid which has dynamic number of columns. Please help me.









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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











[flexcoders] Re: Need help in tackling this event problem...

2006-01-09 Thread george_lui
JesterXL,

Yeah, that's kinda what I suspected. I suppose I could stick it in a
ModelLocator.  However all my events are asynchronous, so I suppose
that *theoretically* your data in ModelLocator might not be in the
*correct* context if, say, you have some chained asychronous events right?


thanks,
George


--- In flexcoders@yahoogroups.com, "JesterXL" <[EMAIL PROTECTED]> wrote:
>
> Oh... well that's different.  The reason you're not getting it is
because 
> the event you dispatch is handling internally in Cairngorm, and
triggers the 
> Command.  After that, it's done, gone, and no longer can be access.
 The 
> Responder.onResult event is the event returned from a successful
webservice 
> call, and is a totallly different event object.
> 
> You could instead stick the data temporarely on the ModelLocator so
whoever 
> is utilizing the Responder's result event can look there for context.
> 
> - Original Message - 
> From: "george_lui" <[EMAIL PROTECTED]>
> To: 
> Sent: Monday, January 09, 2006 4:00 PM
> Subject: [flexcoders] Re: Need help in tackling this event problem...
> 
> 
> Actually that is the problem.  The event I dispatch *doesn't* appear
> to be the same event I get back in my result handler.
> 
> We use our custom event broadcaster to pass an event, pass it some
> event data, and pass the Responder object (ViewHelper) in our case.
> The command has access to the event data and does it's execute() thing
> (it makes a service call).  However in our Responder.onResult(event)
> and Responder.onFault(event), the event doesn't appear to be the same
> event I passed in.  For instance, event.data and event.type yields
> "undefined".
> 
> According to the Cairngorm documentation the returned event after a
> service call :
> "event - An object containing the data passed back from the service
> call..."
> 
> Kinda leads me to believe that the event object avail in onResult()
> and onFault() is not the same as the one that was broadcasted prior to
> any backend service call.
> 
> Maybe this is Cairgorm that's not working as I want it to?  Any
> Cairgorm guru's out there?
> 
> TIA,
> george
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "JesterXL" <[EMAIL PROTECTED]> wrote:
> >
> > Sure, I reckon.  I've never used Cairngorm, but if memory serves
> when I was
> > reading the files, yeah.  If you dispatch the event, he should have
> all of
> > the properties that you set on the event carred over since the event
> you
> > dispatch is the one you'll get in your result handler.
> >
> > - Original Message - 
> > From: "george_lui" <[EMAIL PROTECTED]>
> > To: 
> > Sent: Monday, January 09, 2006 2:21 PM
> > Subject: [flexcoders] Re: Need help in tackling this event problem...
> >
> >
> > Event is a class in Cairngorm.  I'm assuming that you meant that I
> > should subclass the Event class right?
> >
> > TIA,
> > george
> >
> >
> > --- In flexcoders@yahoogroups.com, "JesterXL" <[EMAIL PROTECTED]> wrote:
> > >
> > > Impossible to do with anonymous objects.  However, if you make your
> > event a
> > > class, you have no problems.  This is enforced at runtime in AS3:
> > >
> > > class Event
> > > {
> > > private var test:String;
> > >
> > > public var target:Object;
> > > public var type:String;
> > > }
> > >
> > > var e:Event = new Event();
> > > e.target = this;
> > > e.type = "test";
> > > dispatchEvent(e);
> > >
> > > function onResult(event:Event):Void
> > > {
> > > trace(event.test); // won't compile
> > > }
> > >
> > >
> > > - Original Message - 
> > > From: "Weyert de Boer" <[EMAIL PROTECTED]>
> > > To: 
> > > Sent: Saturday, January 07, 2006 8:38 AM
> > > Subject: Re: [flexcoders] Need help in tackling this event
problem...
> > >
> > >
> > > JesterXL wrote:
> > >
> > > >Clearly your problem is your custom EventDispatcher.  The one that
> > comes
> > > >with Flex allows me to throw any custom arg I want at result
> handlers.
> > > >Find
> > > >out why he's not keeping your event handlers.
> > > >
> > > >
> > > Yes, EventDispatcher something I have issues with to understand. It
> > > keeps sending data I don't want to the listeners such as private
> > > variables of the class 
> > >
> > >
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > > Yahoo! Groups Links
> > >
> >
> >
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> >
> 
> 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>






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

[flexcoders] nested applications / widgets

2006-01-09 Thread Angus Johnson



Hi everyone!

Just picking up Flex for the first time and playing with the Alpha and AS3. I'd like to run a question passed you all.

We have a Coldfusion html based application that is made up of many sub
applications. These sub app's are selected by users and displayed as
pods under one shell (page). They are completely autonomous but some
are updated depending on the page context. In many ways they are like
widgets that you might see on Konfabulator. While many of these little
app's are built by us there are others provided by partners.

I would really like to see these moved into a Flex shell so I am sitting down to sketch out how it will all fit together. So ...

Is it possible to use more than one application container? I can
envisage a "master" application container which has our main
shell  (global nav bar's etc) and each widget running it's own
application container. Is this nesting desirable? If not would you use
a panel container to hold each application/widget. The key issue is
that some app's are self contained and I am wondering how to ensure
each is encapsulated.

Does this approach sound feasible or am I barking up the wrong tree?

Many thanks
Angus










--
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] State Transistions

2006-01-09 Thread David Mendels





Hi,
 
This will be implemented in the public beta...it isn't in 
the alpha. 
 
-David

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of 
  rebel_assualtSent: Sunday, January 08, 2006 7:31 
  PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] 
  State Transistions
  Hey, I was wondering if anyone had any information of 
  transistion effectsfor flex 2 states? For example an animation or 
  something that displayswhen different states are navigated 
  to.ThanksMatt





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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  









Re: [flexcoders] Re: Need help in tackling this event problem...

2006-01-09 Thread JesterXL
Opposite.  Dispatching events is syncronous, meaning your ServiceLocator's 
webservice/remoteobject call is actually run last.

So, if you set your event data on the ModelLocator before setting it, you'll 
be safe since even if the WebService magically returned while the 
ActionScript AVM was still processing functions on the stack.  You'd even be 
safe putting it there after the dispatchEvent call, but to ensure it never 
breaks, put it before.

- Original Message - 
From: "george_lui" <[EMAIL PROTECTED]>
To: 
Sent: Monday, January 09, 2006 6:55 PM
Subject: [flexcoders] Re: Need help in tackling this event problem...


JesterXL,

Yeah, that's kinda what I suspected. I suppose I could stick it in a
ModelLocator.  However all my events are asynchronous, so I suppose
that *theoretically* your data in ModelLocator might not be in the
*correct* context if, say, you have some chained asychronous events right?


thanks,
George


--- In flexcoders@yahoogroups.com, "JesterXL" <[EMAIL PROTECTED]> wrote:
>
> Oh... well that's different.  The reason you're not getting it is
because
> the event you dispatch is handling internally in Cairngorm, and
triggers the
> Command.  After that, it's done, gone, and no longer can be access.
 The
> Responder.onResult event is the event returned from a successful
webservice
> call, and is a totallly different event object.
>
> You could instead stick the data temporarely on the ModelLocator so
whoever
> is utilizing the Responder's result event can look there for context.
>
> - Original Message - 
> From: "george_lui" <[EMAIL PROTECTED]>
> To: 
> Sent: Monday, January 09, 2006 4:00 PM
> Subject: [flexcoders] Re: Need help in tackling this event problem...
>
>
> Actually that is the problem.  The event I dispatch *doesn't* appear
> to be the same event I get back in my result handler.
>
> We use our custom event broadcaster to pass an event, pass it some
> event data, and pass the Responder object (ViewHelper) in our case.
> The command has access to the event data and does it's execute() thing
> (it makes a service call).  However in our Responder.onResult(event)
> and Responder.onFault(event), the event doesn't appear to be the same
> event I passed in.  For instance, event.data and event.type yields
> "undefined".
>
> According to the Cairngorm documentation the returned event after a
> service call :
> "event - An object containing the data passed back from the service
> call..."
>
> Kinda leads me to believe that the event object avail in onResult()
> and onFault() is not the same as the one that was broadcasted prior to
> any backend service call.
>
> Maybe this is Cairgorm that's not working as I want it to?  Any
> Cairgorm guru's out there?
>
> TIA,
> george
>
>
>
>
> --- In flexcoders@yahoogroups.com, "JesterXL" <[EMAIL PROTECTED]> wrote:
> >
> > Sure, I reckon.  I've never used Cairngorm, but if memory serves
> when I was
> > reading the files, yeah.  If you dispatch the event, he should have
> all of
> > the properties that you set on the event carred over since the event
> you
> > dispatch is the one you'll get in your result handler.
> >
> > - Original Message - 
> > From: "george_lui" <[EMAIL PROTECTED]>
> > To: 
> > Sent: Monday, January 09, 2006 2:21 PM
> > Subject: [flexcoders] Re: Need help in tackling this event problem...
> >
> >
> > Event is a class in Cairngorm.  I'm assuming that you meant that I
> > should subclass the Event class right?
> >
> > TIA,
> > george
> >
> >
> > --- In flexcoders@yahoogroups.com, "JesterXL" <[EMAIL PROTECTED]> wrote:
> > >
> > > Impossible to do with anonymous objects.  However, if you make your
> > event a
> > > class, you have no problems.  This is enforced at runtime in AS3:
> > >
> > > class Event
> > > {
> > > private var test:String;
> > >
> > > public var target:Object;
> > > public var type:String;
> > > }
> > >
> > > var e:Event = new Event();
> > > e.target = this;
> > > e.type = "test";
> > > dispatchEvent(e);
> > >
> > > function onResult(event:Event):Void
> > > {
> > > trace(event.test); // won't compile
> > > }
> > >
> > >
> > > - Original Message - 
> > > From: "Weyert de Boer" <[EMAIL PROTECTED]>
> > > To: 
> > > Sent: Saturday, January 07, 2006 8:38 AM
> > > Subject: Re: [flexcoders] Need help in tackling this event
problem...
> > >
> > >
> > > JesterXL wrote:
> > >
> > > >Clearly your problem is your custom EventDispatcher.  The one that
> > comes
> > > >with Flex allows me to throw any custom arg I want at result
> handlers.
> > > >Find
> > > >out why he's not keeping your event handlers.
> > > >
> > > >
> > > Yes, EventDispatcher something I have issues with to understand. It
> > > keeps sending data I don't want to the listeners such as private
> > > variables of the class 
> > >
> > >
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives:
> > http://www.mail-archive.com/flexc

[flexcoders] {Resending] Component DataBinding issue

2006-01-09 Thread superabe superabe



Resending in case this was missed.
Hi there,
 
I have a custom AS component that seems to generate a script time-out error when I use databinding to set one of its params.
It works fine if I hard code the param value.
 
Any ideas as to why this may be happening ? (code pasted below)
 
TIA

- superabe
 
Component code(RatingCell.as)
===
 
class RatingCell extends HBox{  private var _rating:Number; private var maxRating:Number = 5;  [Embed( "assets/images/rating_on.png" )]    private var ratingOn:String;  [Embed( "assets/images/rating_off.png" )] 
    private var ratingOff:String;

 public function RatingCell(){  }  public function get rating():Number{  return this._rating; }  public function set rating(value:Number){  if(value > maxRating){   value = maxRating; 
  }  this._rating = value; }   private function createChildren():Void{  super.createChildren();  Echo.debug("Rating Cell : createChildren");  Echo.debug("rating = " + rating); 
  //create active icon  for(var i:Number=0;i   this.createChild(Image,undefined,{source:ratingOn}) ;   }  //create inactive icon  var startCounter:Number = rating;  while(startCounter <= maxRating){ 
   this.createChild(Image,undefined,{source:ratingOff}) ;startCounter++;  } } }
Usage (Main.mxml)
  
 // this works fine
 // this prompts script timeout error
 
 
 






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  









RE: [flexcoders] Re: Flex 2.0 Form validation

2006-01-09 Thread Philip Costa
Hi, 

I sent this response to the labs forums as well. 

phil

-

I have an internal build, and your code works as written. I don't have
the 
public alpha version installed at the moment, but it's possible there
was a 
bug in the validator that's preventing your application from working 
properly.

We do plan to release another build in the next 30-60 days (sorry, can't
be 
more specific), so you'll get a version that has this issue resolved.

Phil Costa
Group Product Manager, Flex 




-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ken Bromberger
Sent: Sunday, January 08, 2006 1:06 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Flex 2.0 Form validation

Hi Simon, 

Thanks for the attempt on this, but it still does not trigger the
HTTPService. Any other ideas?

-Ken

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Simon Barber
Sent: Sunday, January 08, 2006 1:34 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex 2.0 Form validation

Try this...



http://www.macromedia.com/2005/mxml"; 
xmlns="*">

 







 



 

  http://localhost/xml/template/test.xml"; method="POST" 
showBusyCursor="True">



  {test1.text}

  {test2.text}

   

  

 

  





  

  

  

  

  



  

   

  

  



What i have done here is when the change event is fired on the text1
TextInput the handleValid function is called. This checks to see if the
string is valid.

Let me know if this works,

Simon Barber


--- In flexcoders@yahoogroups.com, "Ken Bromberger" <[EMAIL PROTECTED]>
wrote:
>
> Hi! I am new to flex and I am working on using the validators flex
2.0
> includes.
> 
>  
> 
> I have set up a form and can submit data to my test database using 
> HTTPService and the request tags and return a result. When I add a 
> string validator to my code the form no longer submits the
HTTPService
> request. If I remove the stringValidator from my code the form
works
> just fine. What am I missing on this?? Is there a good resource
with
> examples of how to implement validation? 
> 
> Thanks! - Ken
> 
>  
> 
> Here is my code:
> 
>  
> 
> 
> 
> http://www.macromedia.com/2005/mxml";
> xmlns="*">
> 
>  
> 
> 
> 
> 
> 
> 
> 
>  
> 
>  minLength="5" valid="handleValid(event)" invalid="handleValid
(event)"/>
> 
>  
> 
>url="http://localhost/xml/template/test.xml"; method="POST"
> showBusyCursor="True">
> 
> 
> 
>   {test1.text}
> 
>   {test2.text}
> 
>
> 
>   
> 
>  
> 
>   
> 
> 
> 
>  text="{test.result.root.tblTest.success}"/>
> 
>   
> 
>   
> 
>   
> 
>   
> 
>   
> 
> 
> 
>   
> 
>  
> 
>  click="submitForm();" enabled="false"/>   
> 
>  
> 
> 
> 
>   
> 
>  
> 
> 
>







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



 




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



 




--
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 1.5 and CPU load

2006-01-09 Thread Mika Kiljunen










After checking things out I solved the CPU
pumping by a setting in flex-config, it seems that since there are so many
files it just needs a bit more time to check the files for modifys which causes
the pumping effect on CPU. By giving more delay between checks it seems to
solve it, at least it’s not constantly humping the files J

 

60

 

-Mika

 

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Stacy Young
Sent: 9. tammikuuta 2006 16:40
To: flexcoders@yahoogroups.com
Subject: RE: >< [flexcoders]
Flex 1.5 and CPU load



 

Wondering if the flex server is in
production mode? (flex-config)

Stace

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mika Kiljunen
Sent: Monday, January 09, 2006
6:19 AM
To: flexcoders@yahoogroups.com
Subject: >< [flexcoders]
Flex 1.5 and CPU load



 

Hi,

I have a weird problem with flex 1.5 server. It seems that
when it is running it seems constantly consume CPU load around 20 to 25 percent
(according to task manager). It keeps pumping it up to 25% and then drops back
a little and instantly goes back to 25% and drops again and back up and…
What causes this?

 

This happens all the time, even when no one is using my flex
app. Any ideas? 

 

 

-Mika










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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











[flexcoders] mxml compile fails

2006-01-09 Thread Mika Kiljunen










Hi,

Does anyone have a clue what causes this error or is there
any output anywhere? It occurs always when I try to compile a simple mxml file
with mxmlc.

 

The error is: “Failed to compile testApp.mxml”
and that’s all. Not much help there? 

 

I *think* my
params are correct for mxmlc but who knows, since I never got it to compile
anything, I just get that error…

 

I’m using jdk1.5.0_06

 

This is the command:

***

java -jar "C:\Program
Files\Macromedia\Flex15\lib\mxmlc.jar" 

-flexlib "C:/Program Files/Macromedia/Flex15/lib" 

-configuration
C:/INPUT/resources/WEB-INF/flex/flex-config.xml 

-webroot C:/INPUT/resources 

-o c:/OUTPUT/testApp.swf 

C:/INPUT/resources/testApp.mxml

***

 

 

The scenario is that I have C:\INPUT folder that has
following structure

--resources [folder]

-testApp.mxml [file]

WEB-INF {folder]

-…all the flex stuff….[files & folders,
ie flex folder etc.]

 

    

Any help is appreciated!

 

-Mika









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