Re: [flexcoders] Setting default "cursor" position when the flex web-application loads

2007-12-28 Thread Muzak
Known issue, check archives or google:

http://www.google.com/search?hl=en&q=flexcoders+focus+application+load

Can only be worked around in IE, using JS.

- Original Message - 
From: "flex.fusion" <[EMAIL PROTECTED]>
To: 
Sent: Saturday, December 29, 2007 6:29 AM
Subject: [flexcoders] Setting default "cursor" position when the flex 
web-application loads


Hi Guys,

My previous posts never got replied, but we shall not leave the 
hope :) :) so here is one more :)

Problem statement: 
When my web application is loaded, login box popsup by default. 
Setting focus to the "username" field does not set the "cursor" to 
the field. Please guide me how can we resolve such issues. 

I was not able to unserstand the "index.template.html" properly, if 
there is any reference: about 'working with "index.template.html" ', 
I would love to go through that :) Handling and Using "id" 
and "name" properties and playing with  and  are 
mainly the things, I am looking for. 

btw: I had gone through some of the previous posts but still am not 
able to resolve the issue. So please share your experience to 
resolve such things.

Thanks & Regards,
Savan




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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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


Re: [flexcoders] Alert window position?

2007-12-28 Thread Savan Patel
Hi Mark,

You can use following property :
PopUpManager.centerPopUp('your alert popup');

Thanks & Regards,
Savan

- Original Message 
From: Dominique Bessette - Halsema <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Saturday, 29 December, 2007 1:28:36 AM
Subject: Re: [flexcoders] Alert window position?

i created my own popup using TitleWindow and in there you can control the 
placement.
 
//in the main class call the popup
 private  function getAtomPopUp( ):void{
  var helpWindow:IFlexDis playObject;   
  helpWindow = PopUpManager. createPopUp( this, getPopUp, false);
}

 
On 12/28/07, markflex2007  wrote: 
Hi,

I have the Alert popup window(Alert. show) but it appear in the right side of 
the screen,I want to know how to make it popup at center of the screen.

Thanks

Mark







  Get the freedom to save as many mails as you wish. To know how, go to 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html

[flexcoders] Setting default "cursor" position when the flex web-application loads

2007-12-28 Thread flex.fusion
Hi Guys,

My previous posts never got replied, but we shall not leave the 
hope :) :) so here is one more :)

Problem statement: 
When my web application is loaded, login box popsup by default. 
Setting focus to the "username" field does not set the "cursor" to 
the field. Please guide me how can we resolve such issues. 

I was not able to unserstand the "index.template.html" properly, if 
there is any reference: about 'working with "index.template.html" ', 
I would love to go through that :) Handling and Using "id" 
and "name" properties and playing with  and  are 
mainly the things, I am looking for. 

btw: I had gone through some of the previous posts but still am not 
able to resolve the issue. So please share your experience to 
resolve such things.

Thanks & Regards,
Savan



[flexcoders] Re: Custom HTTP Headers broken?

2007-12-28 Thread scott.royston
Just to answer my own question, this looks like a known bug:
https://bugs.adobe.com/jira/browse/SDK-11401

unfortunately its at the flash player level so I don't know the true
resolution of the issue (will fix/wont fix/etc).

I'm very curious how custom headers with an HTTP GET is working for
you given that this seems to be a confirmed bug for everyone.

Thanks again

--- In flexcoders@yahoogroups.com, "Johannes Nel" <[EMAIL PROTECTED]>
wrote:
>
> PUT would be determined by the sand box per se, no put outside it.
With POST
> and GET its currently working for me with B3, so that is a bit weird.
> I have had issues with PUT in general even within the Sandbox but it
was B1.
> 
> sorry to not me of more help, read the security white paper if you
have not
> 
> On Dec 28, 2007 10:18 AM, scott.royston <[EMAIL PROTECTED]> wrote:
> 
> >   I believe I have read all the docs, and I've definitely sniffed the
> > http. If there is a particular piece of documentation you belive I've
> > missed, please point me in the right direction. I'd be very
> > interested in understanding why I can use custom headers in a PUT, but
> > not a GET.
> >
> > Thanks
> >
> > --- In flexcoders@yahoogroups.com ,
> > "Johannes Nel" 
> >
> > wrote:
> > >
> > > custom headers function within the sand box security. have you read
> > the docs
> > > and http sniffed a bit?
> > >
> > > On Dec 27, 2007 3:46 PM, scott.royston  wrote:
> > >
> > > > With the latest Flex 3 beta release, I can't get any custom
> > headers to
> > > > be sent without:
> > > > 1) The method being POST (e.g. URLRequestMethod.POST)
> > > > 2) Some data sent (e.g. request.data = new
> > URLVariables("name=John+Doe");)
> > > >
> > > > This is on OS X using Safari or Firefox.
> > > >
> > > > Search the archives seems to indicate I should be able to add
a custom
> > > > header even with a simple HTTP GET, but the documentation is vague
> > > > enough I thought I'd post here first to check before filing a bug.
> > > >
> > > > Thanks
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > j:pn
> > > \\no comment
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> j:pn
> \\no comment
>




RE: [flexcoders]How to change the selectedIndex of a LinkBar

2007-12-28 Thread Tracy Spratt
I don't use LinkBar because it is too limiting.

If I need the links dataDriven, I use LinkButtons in a Repeater,
otherwise I just use LinkButtons declared individually.  LinkButtons
call a nav function, which changes the styleName of the previously
selected LinkButton(ref stored in instance variable) to a "normal"
style, and the currently clicked LinkButton to a "selected" style.

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Muzak
Sent: Friday, December 28, 2007 8:39 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]How to change the selectedIndex of a LinkBar

Apparently the visual selection in a LinkBar only works when its
dataprovider is a collection of DisplayObjects (e.g. ViewStack).

The ViewStack doesn't even have to be visually present (it has to be on
the display list though), so the following will work ;-)

 
 
 
  
  
  
 

And of course you can extend LinkBar or NavBar and make it work properly
with non display objects.

regards,
Muzak

- Original Message - 
From: "dorkie dork from dorktown" <[EMAIL PROTECTED]>
To: 
Sent: Friday, December 28, 2007 7:13 PM
Subject: [flexcoders]How to change the selectedIndex of a LinkBar


> No matter what I try I cannot change the "selected" item in the
linkbar. Try
> this example. How do I change what item is visually "selected".
> 
> 
> http://www.adobe.com/2006/mxml";
> layout="absolute">
> selectedIndex="0" color="#D41010" disabledColor="#1D7AC1"
> disabledOverlayAlpha="1" dropShadowEnabled="true"
dropShadowColor="#00"
> errorColor="#AC0909">
>
> 
> 
> 
> BTW does it seem confusing that the selected color and selected text
don't
> refer to the item that the user is on or has already clicked?
>


--
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] Re: Help with DataGrid dataField

2007-12-28 Thread rueter007
datagrid doesn't support this functionality of figuring out what
name.given and name.family is. Use a label function on the column to
get the data and return the given or family name yourself.

- venkat
http://www.venkatj.com

--- In flexcoders@yahoogroups.com, "javaguru_uk" <[EMAIL PROTECTED]> wrote:
>
> Hello folks,
> 
> I am trying to bind a complex model to a DataGrid. I have modified the
> employee.xml, just to illustrate what I am trying to do. Here is the
code:
> 
> - begin code employees.xml ---
> 
> 
> 
> 
> 
>   Christina 
>   Coenraets
> 
> 555-219-2270
> [EMAIL PROTECTED]
> true
> 
> 
> 
>   Louis 
>   Freligh
> 
> 555-219-2100
> [EMAIL PROTECTED]
> true
> 
> 
> 
>   Ronnie 
>   Hodgman
> 
> 555-219-2030
> [EMAIL PROTECTED]
> false
> 
> 
> 
>   Joanne
>   Wall
> 
> 555-219-2012
> [EMAIL PROTECTED]
> true
> 
> 
> 
>   Maurice 
>   Smith
> 
> 555-219-2012
> [EMAIL PROTECTED]
> false
> 
> 
> 
>   Mary 
>   Jones
> 
> 555-219-2000
> [EMAIL PROTECTED]
> true
> 
> 
> 
> - end code --
> 
> Now, what I want to do is have a DataGrid that will render the given
> name, family name, phone and email. Here is how I tried to accomplish
> this:
> 
> -- begin code DataGridSample.mxml 
> 
> 
> 
> http://www.adobe.com/2006/mxml";>
> 
> 
> 
> 
> 
>  dataProvider="{employeeModel.employee}">
> 
> 
>  headerText="Name"/>
>  headerText="Surname"/>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --- end code -
> 
> Now, why doesn't "name.given" and "name.family" work as dataFields? I
> know the data is there because when I click on a DataGrid row, the
> form below it shows the correct data. I am just trying to understand
> why my data does not show in the DataGrid, and how do I solve this?
> 
> I look forward for an answer.
> 
> All the best,
> 
> Fidel.
>




[flexcoders] Help with DataGrid dataField

2007-12-28 Thread javaguru_uk
Hello folks,

I am trying to bind a complex model to a DataGrid. I have modified the
employee.xml, just to illustrate what I am trying to do. Here is the code:

- begin code employees.xml ---





  Christina 
  Coenraets

555-219-2270
[EMAIL PROTECTED]
true



  Louis 
  Freligh

555-219-2100
[EMAIL PROTECTED]
true



  Ronnie 
  Hodgman

555-219-2030
[EMAIL PROTECTED]
false



  Joanne
  Wall

555-219-2012
[EMAIL PROTECTED]
true



  Maurice 
  Smith

555-219-2012
[EMAIL PROTECTED]
false



  Mary 
  Jones

555-219-2000
[EMAIL PROTECTED]
true



- end code --

Now, what I want to do is have a DataGrid that will render the given
name, family name, phone and email. Here is how I tried to accomplish
this:

-- begin code DataGridSample.mxml 



http://www.adobe.com/2006/mxml";>

































--- end code -

Now, why doesn't "name.given" and "name.family" work as dataFields? I
know the data is there because when I click on a DataGrid row, the
form below it shows the correct data. I am just trying to understand
why my data does not show in the DataGrid, and how do I solve this?

I look forward for an answer.

All the best,

Fidel.




[flexcoders] Re: Child object disappear after be added to another object

2007-12-28 Thread rueter007
adding a component which is a child of another component already will
reparent the component(i.e change the parent of the child to the new
canvas, cb in your case.). This is normal behavior. I am not sure why
ca would return true but maybe cb is a child of ca? In this case, ca
will return true because img1 is in the hierarchy of ca.

- venkat
http://www.venkatj.com

--- In flexcoders@yahoogroups.com, "Larry Zhang" <[EMAIL PROTECTED]>
wrote:
>
> Hello all
> 
>   I find it strange when I try to add some display object in
Flex
> Canvas. This is the situation
> 
>   First, I have an Image named "img1" in a.mxml which is a
Canvas; I
> name it "ca". Then I send the img1 out by some function to another
Canvas
> b.mxml; I name it "cb". After I added the img1 to cb by
cb.addChild(img1), I
> found the image showed up in cb but disappeared in ca. Then I use
> ca.contains(img1) to check if ca still has the img1, it returned
true. But,
> where the img1 in ca went?
> 
>  
> 
>   Can anybody help me with the strange problem?
> 
>   Thanks very much.
> 
>  
> 
>  
> 
> ==
> 
> Make Every Day Count
> 
>  
> 
> Larry Zhang
>




[flexcoders] Child object disappear after be added to another object

2007-12-28 Thread Larry Zhang
Hello all

  I find it strange when I try to add some display object in Flex
Canvas. This is the situation

  First, I have an Image named "img1" in a.mxml which is a Canvas; I
name it "ca". Then I send the img1 out by some function to another Canvas
b.mxml; I name it "cb". After I added the img1 to cb by cb.addChild(img1), I
found the image showed up in cb but disappeared in ca. Then I use
ca.contains(img1) to check if ca still has the img1, it returned true. But,
where the img1 in ca went?

 

  Can anybody help me with the strange problem?

  Thanks very much.

 

 

==

Make Every Day Count

 

Larry Zhang

 



[flexcoders] Re: Monitoring Webservice data flow with TCPMon

2007-12-28 Thread javaguru_uk
--- In flexcoders@yahoogroups.com, "javaguru_uk" <[EMAIL PROTECTED]> wrote:
>
> Hello folks,
> 
> Has anyone played with TCPMon to monitor data exchange between Adobe
> Flex and a WebService?
> Can someone give me a hint on how to configure tcpmon to sniff the data?
> 
> Thanks in advance,
> 
> Fidel.
>

Got this one sorted. It was a configuration problem.

All the best,

Fidel.



[flexcoders] ContextMenu: Detecting when "Paste" is selected

2007-12-28 Thread Paul Whitelock
I have a TextArea and I need to know whenever a user selects the
"Paste" option from the ContextMenu. 

I tried creating and adding a ContextMenu to the TextArea, but I can
only add an event listener for MENU_SELECT since I believe you need to
have a reference to the menu item in order to add a MENU_ITEM_SELECT
event listener.

Any idea how I can detect when "Paste" is selected from a ContextMenu
in a TextArea? Thanks!

Paul

---
Paul Whitelock
Denver, Colorado



Re: [flexcoders] SharedObject security

2007-12-28 Thread Jhonny Everson
 I don't know about that, but I guess you can encrypt your data
before saving to SO. Maybe that's a solution...

On 12/28/07, andrewwestberg <[EMAIL PROTECTED]> wrote:
>
> Is there any way to prevent the physical copying of a .sol file from
> one user's computer to another?
>
> Thanks,
> Andrew
>
> 
>



-- 
Jhonny Everson


Re: [flexcoders]How to change the selectedIndex of a LinkBar

2007-12-28 Thread Muzak
Apparently the visual selection in a LinkBar only works when its dataprovider 
is a collection of DisplayObjects (e.g. ViewStack).

The ViewStack doesn't even have to be visually present (it has to be on the 
display list though), so the following will work ;-)

 
 
 
  
  
  
 

And of course you can extend LinkBar or NavBar and make it work properly with 
non display objects.

regards,
Muzak

- Original Message - 
From: "dorkie dork from dorktown" <[EMAIL PROTECTED]>
To: 
Sent: Friday, December 28, 2007 7:13 PM
Subject: [flexcoders]How to change the selectedIndex of a LinkBar


> No matter what I try I cannot change the "selected" item in the linkbar. Try
> this example. How do I change what item is visually "selected".
> 
> 
> http://www.adobe.com/2006/mxml";
> layout="absolute">
> selectedIndex="0" color="#D41010" disabledColor="#1D7AC1"
> disabledOverlayAlpha="1" dropShadowEnabled="true" dropShadowColor="#00"
> errorColor="#AC0909">
>
> 
> 
> 
> BTW does it seem confusing that the selected color and selected text don't
> refer to the item that the user is on or has already clicked?
>


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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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


Re: [flexcoders] data binding question for Cairngorm?

2007-12-28 Thread Muzak
If you still get a warning (not an error), try cleaning the project.
I've encountered *sticky* warnings in FB even after fixing the code in question.

- Original Message - 
From: "Mark Shen" <[EMAIL PROTECTED]>
To: 
Sent: Friday, December 28, 2007 8:38 PM
Subject: Re: [flexcoders] data binding question for Cairngorm?


> yes.
> 
> I have the code 
> 
> 
> [Bindable]
> public class PersonVO implements IValueObject
> {
>  public var firstname:String;
> ...
> }
> 
> But I still have the error.
> 
> Mark
> 



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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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


[flexcoders] Re: compc CreateProcess error : limit on number of .as files?

2007-12-28 Thread rueter007
Vijay, I ran into this problem before too. The solution was to refer
all your .as files in the config file (yes, compc takes a config file
argument. see flex-config.xml for an example) rather than as an
argument like you did. 

- venkat
http://www.venkatj.com


--- In flexcoders@yahoogroups.com, "Vijay Ganesan"
<[EMAIL PROTECTED]> wrote:
>
> I run into this error using compc on a Windows XP box:
> 
> Unable to run compc: Cannot run program "C:\Program Files\Ado
> be\Flex Builder 3 Plug-in\sdks\moxie\bin\compc.exe": CreateProcess
> error=87, The parameter is incorrect
> 
> Seems like this happens when there are a large number of .as files. I
> don't see this error when I exclude some .as files.
> 
> I'm using the following ant task:
> 
>   
>  
> 
> 
> Any suggestions on how to avoid this issue other than breaking up
> foo.swc into two?
> 
> Vijay
>




[flexcoders] compc CreateProcess error : limit on number of .as files?

2007-12-28 Thread Vijay Ganesan
I run into this error using compc on a Windows XP box:

Unable to run compc: Cannot run program "C:\Program Files\Ado
be\Flex Builder 3 Plug-in\sdks\moxie\bin\compc.exe": CreateProcess
error=87, The parameter is incorrect

Seems like this happens when there are a large number of .as files. I
don't see this error when I exclude some .as files.

I'm using the following ant task:

  
 


Any suggestions on how to avoid this issue other than breaking up
foo.swc into two?

Vijay



RE: [flexcoders] Filter typing characters

2007-12-28 Thread mark goldin
Does restict property work for DataGrid fields?

Alex Harui <[EMAIL PROTECTED]> wrote:  Most of our text components 
support the .restrict property (see TextField.restrict).  You can also capture 
the textInput event
  
  
-
  
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
markgoldin_2000
Sent: Thursday, December 27, 2007 6:24 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Filter typing characters

  
I want to prevent some characters from being entered from the keyboard. 
I want to have a generic solution that I can reuse in every keyboard 
compitable UI: textInput, Combobox, and etc.
Any tips? 

Thanks

  



  

 


RE: [flexcoders] Re: Sugestion for ComboBox component

2007-12-28 Thread Tracy Spratt
Yes, my point is that there are very many ways to use a combo box, so it
is a bit difficult to make a generic solution. 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of danielvlopes
Sent: Friday, December 28, 2007 3:38 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Sugestion for ComboBox component

 

In my case when had more than one value i always use dataprovider with
id and nome, in this case i use this method:

public function setComboComplexItem(combo:String,item:String):void{
for(var i:Number = 0; i < this[combo].dataProvider.length; i++) {
if (this[combo].dataProvider[i].nome == item){
this[combo].selectedIndex = i;
} 
}
}

--- In flexcoders@yahoogroups.com 
, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Except that assumes the dataProvider for the ComboBox is an array of
> simple values, which is often/usually not the case.
> 
> 
> 
> Also, break; the loop inside the if(). No point in continuing the loop
> once the match is found.
> 
> 
> 
> Tracy
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of danielvlopes
> Sent: Friday, December 28, 2007 2:30 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Re: Sugestion for ComboBox component
> 
> 
> 
> Hello Tracy, i made exactly this, extended and use this function:
> 
> public function setComboItem(combo:String,item:String):void{
> for(var i:Number = 0; i < this[combo].dataProvider.length; i++)
> {
> if(this[combo].dataProvider[i] == item){
> this[combo].selectedIndex = i;
> } 
> }
> }
> 
> But i'm think this is good think to be inside original comp.
> 
> --- In flexcoders@yahoogroups.com


> , "Tracy Spratt"  wrote:
> >
> > Extend combobox yourself, add this functionality, it is not
difficult.
> > You only need to do it once. And there are components available that
> do
> > this, I have one that is part of an item renderer, here:
> > 
> >
>
http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectI
 
>
 
> I> 
> > D=767 It is just an example, not a production level component, the
> main
> > problems are with the renerder part, defining the row-level
> dataProvider
> > for the combo drop down. Take that out and it gets much simpler.
> > 
> > 
> > 
> > One issue with doing it generically is specifying which property of
> the
> > ComboBox dataProvider item to use for the match. You may not be
> matching
> > on the "label". See how I handled it im my example.
> > 
> > 
> > 
> > Tracy 
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com


> [mailto:flexcoders@yahoogroups.com


> ] On
> > Behalf Of danielvlopes
> > Sent: Friday, December 28, 2007 1:32 PM
> > To: flexcoders@yahoogroups.com 
 
> > Subject: [flexcoders] Sugestion for ComboBox component
> > 
> > 
> > 
> > Hello everybody, i want make a sugestion for Adobe Flex Team, and i
> > know some members of Flex team participate here, in my projects when
i
> > use combobox to recover data from database and selected item of this
> > combo must be set to the data recorded in database i do loops in
> > entire dataprovider to find the value and your index to use
> > selectedIndex to receive this index.
> > 
> > This is very common when you use combo to add and edit data in
> > database and i think everybody need this, why adobe don't incorpore
> > some new method in next release for do this? Something like
> > setSelectedLabe(label:String) ...
> >
>

 



[flexcoders] Re: Sugestion for ComboBox component

2007-12-28 Thread danielvlopes
Good idea for break; loop... :D thanks.

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Except that assumes the dataProvider for the ComboBox is an array of
> simple values, which is often/usually not the case.
> 
>  
> 
> Also, break; the loop inside the if().  No point in continuing the loop
> once the match is found.
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of danielvlopes
> Sent: Friday, December 28, 2007 2:30 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Sugestion for ComboBox component
> 
>  
> 
> Hello Tracy, i made exactly this, extended and use this function:
> 
> public function setComboItem(combo:String,item:String):void{
> for(var i:Number = 0; i < this[combo].dataProvider.length; i++)
> {
> if(this[combo].dataProvider[i] == item){
> this[combo].selectedIndex = i;
> } 
> }
> }
> 
> But i'm think this is good think to be inside original comp.
> 
> --- In flexcoders@yahoogroups.com 
> , "Tracy Spratt"  wrote:
> >
> > Extend combobox yourself, add this functionality, it is not difficult.
> > You only need to do it once. And there are components available that
> do
> > this, I have one that is part of an item renderer, here:
> > 
> >
> http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectI
>  I> 
> > D=767 It is just an example, not a production level component, the
> main
> > problems are with the renerder part, defining the row-level
> dataProvider
> > for the combo drop down. Take that out and it gets much simpler.
> > 
> > 
> > 
> > One issue with doing it generically is specifying which property of
> the
> > ComboBox dataProvider item to use for the match. You may not be
> matching
> > on the "label". See how I handled it im my example.
> > 
> > 
> > 
> > Tracy 
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com 
> ] On
> > Behalf Of danielvlopes
> > Sent: Friday, December 28, 2007 1:32 PM
> > To: flexcoders@yahoogroups.com  
> > Subject: [flexcoders] Sugestion for ComboBox component
> > 
> > 
> > 
> > Hello everybody, i want make a sugestion for Adobe Flex Team, and i
> > know some members of Flex team participate here, in my projects when i
> > use combobox to recover data from database and selected item of this
> > combo must be set to the data recorded in database i do loops in
> > entire dataprovider to find the value and your index to use
> > selectedIndex to receive this index.
> > 
> > This is very common when you use combo to add and edit data in
> > database and i think everybody need this, why adobe don't incorpore
> > some new method in next release for do this? Something like
> > setSelectedLabe(label:String) ...
> >
>




[flexcoders] Re: Sugestion for ComboBox component

2007-12-28 Thread danielvlopes
In my case when had more than one value i always use dataprovider with
id and nome, in this case i use this method:

public function setComboComplexItem(combo:String,item:String):void{
  for(var i:Number = 0; i < this[combo].dataProvider.length; i++) {
if (this[combo].dataProvider[i].nome == item){
this[combo].selectedIndex = i;
}   
  }
}

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Except that assumes the dataProvider for the ComboBox is an array of
> simple values, which is often/usually not the case.
> 
>  
> 
> Also, break; the loop inside the if().  No point in continuing the loop
> once the match is found.
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of danielvlopes
> Sent: Friday, December 28, 2007 2:30 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Sugestion for ComboBox component
> 
>  
> 
> Hello Tracy, i made exactly this, extended and use this function:
> 
> public function setComboItem(combo:String,item:String):void{
> for(var i:Number = 0; i < this[combo].dataProvider.length; i++)
> {
> if(this[combo].dataProvider[i] == item){
> this[combo].selectedIndex = i;
> } 
> }
> }
> 
> But i'm think this is good think to be inside original comp.
> 
> --- In flexcoders@yahoogroups.com 
> , "Tracy Spratt"  wrote:
> >
> > Extend combobox yourself, add this functionality, it is not difficult.
> > You only need to do it once. And there are components available that
> do
> > this, I have one that is part of an item renderer, here:
> > 
> >
> http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectI
>  I> 
> > D=767 It is just an example, not a production level component, the
> main
> > problems are with the renerder part, defining the row-level
> dataProvider
> > for the combo drop down. Take that out and it gets much simpler.
> > 
> > 
> > 
> > One issue with doing it generically is specifying which property of
> the
> > ComboBox dataProvider item to use for the match. You may not be
> matching
> > on the "label". See how I handled it im my example.
> > 
> > 
> > 
> > Tracy 
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com 
> ] On
> > Behalf Of danielvlopes
> > Sent: Friday, December 28, 2007 1:32 PM
> > To: flexcoders@yahoogroups.com  
> > Subject: [flexcoders] Sugestion for ComboBox component
> > 
> > 
> > 
> > Hello everybody, i want make a sugestion for Adobe Flex Team, and i
> > know some members of Flex team participate here, in my projects when i
> > use combobox to recover data from database and selected item of this
> > combo must be set to the data recorded in database i do loops in
> > entire dataprovider to find the value and your index to use
> > selectedIndex to receive this index.
> > 
> > This is very common when you use combo to add and edit data in
> > database and i think everybody need this, why adobe don't incorpore
> > some new method in next release for do this? Something like
> > setSelectedLabe(label:String) ...
> >
>




RE: [flexcoders] Re: Sugestion for ComboBox component

2007-12-28 Thread Tracy Spratt
Except that assumes the dataProvider for the ComboBox is an array of
simple values, which is often/usually not the case.

 

Also, break; the loop inside the if().  No point in continuing the loop
once the match is found.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of danielvlopes
Sent: Friday, December 28, 2007 2:30 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Sugestion for ComboBox component

 

Hello Tracy, i made exactly this, extended and use this function:

public function setComboItem(combo:String,item:String):void{
for(var i:Number = 0; i < this[combo].dataProvider.length; i++)
{
if(this[combo].dataProvider[i] == item){
this[combo].selectedIndex = i;
} 
}
}

But i'm think this is good think to be inside original comp.

--- In flexcoders@yahoogroups.com 
, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Extend combobox yourself, add this functionality, it is not difficult.
> You only need to do it once. And there are components available that
do
> this, I have one that is part of an item renderer, here:
> 
>
http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectI
 
> D=767 It is just an example, not a production level component, the
main
> problems are with the renerder part, defining the row-level
dataProvider
> for the combo drop down. Take that out and it gets much simpler.
> 
> 
> 
> One issue with doing it generically is specifying which property of
the
> ComboBox dataProvider item to use for the match. You may not be
matching
> on the "label". See how I handled it im my example.
> 
> 
> 
> Tracy 
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of danielvlopes
> Sent: Friday, December 28, 2007 1:32 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Sugestion for ComboBox component
> 
> 
> 
> Hello everybody, i want make a sugestion for Adobe Flex Team, and i
> know some members of Flex team participate here, in my projects when i
> use combobox to recover data from database and selected item of this
> combo must be set to the data recorded in database i do loops in
> entire dataprovider to find the value and your index to use
> selectedIndex to receive this index.
> 
> This is very common when you use combo to add and edit data in
> database and i think everybody need this, why adobe don't incorpore
> some new method in next release for do this? Something like
> setSelectedLabe(label:String) ...
>

 



Re: [flexcoders] Alert window position?

2007-12-28 Thread Dominique Bessette - Halsema
i created my own popup using TitleWindow and in there you can control the
placement.

//in the main class call the popup
 private  function getAtomPopUp():void{
  var helpWindow:IFlexDisplayObject;
  helpWindow = PopUpManager.createPopUp(this, getPopUp, false);
}


On 12/28/07, markflex2007 <[EMAIL PROTECTED]> wrote:
>
>   Hi,
>
> I have the Alert popup window(Alert.show) but it appear in the right side
> of
> the screen,I want to know how to make it popup at center of the screen.
>
> Thanks
>
> Mark
>
> 
>


[flexcoders] Re: tileList displaying items order other than that represented by dataProvider

2007-12-28 Thread Alex
I posted a response which suggested where the issue was as yes, I know
this can be made to work as expected.

A simple change can make it work but it doesn't fulfill the
requirements that I have (with regards to making a reusable component
that can be customized by derivation and overriding methods). 

The post does provide a code snippet which illustrates what does and
doesn't work.



--- In flexcoders@yahoogroups.com, "rueter007" <[EMAIL PROTECTED]> wrote:
>
> Hey, sorting the grid should definitely update the tilelist if you are
> using the same dataprovider. I have a working sample for this scenario
> too. 
> 
> Can you post some code so we can take a look and see whats wrong in
there.
> 
> - venkat
> http://www.venkatj.com
> --- In flexcoders@yahoogroups.com, "Alex"  wrote:
> >
> > I have a problem with a viewStack that has 2 views, a dataGrid and a
> > tileList view both of which which share a common dataProvider.
> > 
> > - The tileList uses an itemRenderer to draw an icon/name for each
item.
> > - The datagrid affords the ability to sort the displayed items by
> > clicking on the column headers.
> > 
> > The initial display of both views is as expected, the sort order in
> > the tileList view matches that of the items in the dataGrid view.
> > 
> > A "trace" of the data items in the dataProvider invoked whenever I
> > switch between views [via trace(datagrid.dataProvider) and
> > trace(tilelist.dataProvider)] both show the items in the list in the
> > order expected regardless of how many times I switch views back and
> forth.
> > 
> > The items (a ListCollectionView of items of type "Foo") listed by the
> > trace as expected reflect the format of the "toString" function in the
> > Foo class.
> > 
> > Now the problem...
> > 
> > 1) When I click a header in the dataGrid view to re-sort the data
> > subsequent trace output of the dataProvider's list of objects changes
> > to another format:
> > 
> > (Array)#0
> >   [0] (com.emc.sspg.cem.data::Foo)#1
> > attribute1_name = value1
> > attribute2_name = value2
> >   [1] (com.emc.sspg.cem.data::Foo)#1
> > 
> > etc.
> > 
> > I'm not sure why this happens..
> > 
> > 2) The array elements in the trace output are reordered to reflect the
> > expected sort order as displayed in the dataGrid view AND the tileList
> > view BUT the order of the actual icons drawn in the tileList view does
> > not match the order of the items traced. (In fact I've yet to be able
> > to discern what order they are now drawn in, its not the original
> > "pre-sorted" order either.)
> > 
> > -
> > 
> > Another subtlety my trace statements have pointed out is that only the
> > 1st time the icon view is drawn do the item renderers get called to
> > actually get the icon and name to display.
> > 
> > Solution-wise, while not a great solution I've tried to insert various
> > functions to invalidate the drawing such that subsequent views of the
> > icon view would re-call the renderers to prove to me that they are
> > being drawn in the order that I'm seeing them left-to-right,
> > top-to-bottom in the tileList but none of the following cause that to
> > occur.
> > 
> > tilelist.invalidateDisplayList();
> > tilelist.invalidateList();
> > tilelist.invalidateProperties();
> > tilelist.dataProvider.refresh();
> > 
> > Any thoughts regarding this would be appreciated.
> > 
> > Thanks
> >
>




[flexcoders] Alert window position?

2007-12-28 Thread markflex2007
Hi,

I have the Alert popup window(Alert.show) but it appear in the right side of 
the screen,I want to know how to make it popup at center of the screen.

Thanks

Mark



[flexcoders] Re: data binding question for Cairngorm?

2007-12-28 Thread markflex2007
yes.

it works but I still get warning  message,how to fix this to remove the 
warning  message.

Mark
--- In flexcoders@yahoogroups.com, "Tianzhen Lin" <[EMAIL PROTECTED]> 
wrote:
>
> I don't think you get an error, but warning instead.  If you see no other
> error, try and run the app and see if the binding is working as 
expected.
> 
>  
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Mark Shen
> Sent: Friday, December 28, 2007 2:39 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] data binding question for Cairngorm?
> 
>  
> 
> yes.
> 
>  
> 
> I have the code 
> 
>  
> 
> 
>  [Bindable]
>  public class PersonVO implements IValueObject
>  {
>   public var firstname:String;
> 
> ..
> 
> }
> 
> But I still have the error.
> 
>  
> 
> Mark
> 
> - Original Message 
> From: Muzak <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Friday, December 28, 2007 1:19:00 PM
> Subject: Re: [flexcoders] data binding question for Cairngorm?
> 
> PersonVO itself must be Bindable.
> 
> 
> - Original Message - 
> From: "Mark Shen" <[EMAIL PROTECTED]>
> To: 
> Sent: Friday, December 28, 2007 6:45 PM
> Subject: Re: [flexcoders] data binding question for Cairngorm?
> 
> 
> > but I already have the following code in ModelLocator
> > 
> > [Bindable]
> > public class CESFESFModel implements IModelLocator {
> >  
> >  // Single Instance of Our ModelLocator
> >  private static var instance:CESFESFModel;
> >
> >public var personData:PersonVO;
> > 
> > }
> > 
> > Thanks
> > 
> > Mark
> 
> 
> 
> --
> 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
> 
> 
> 
>  
> 
>  
> 
>   _  
> 
> Looking for last minute shopping deals? Find
> 
 tegory.php?category=shopping>  them fast with Yahoo! Search.
>




[flexcoders] Re: removing component height

2007-12-28 Thread Matt Maher
Damn! This seemingly simple item has really been a bane of mine. I 
have view stcks, and remove/add children functions in a lot of places 
I'd rather they were not.

Thank you all very much for the help on this. I jut knew there would 
be a simple answer there somewhere.

-M@


--- In flexcoders@yahoogroups.com, "rueter007" <[EMAIL PROTECTED]> wrote:
>
> Tracy is right. setting visible=false will still reserve the space
> taken by the component. You have to set both visible and
> includeInLayout properties to false so that the component does not
> take any space in the layout.
> 
> - venkat
> http://www.venkatj.com
> 
> --- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
> >
> > And includeInLayout = false;
> > 
> > Tracy
> > 
> >  
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> > Behalf Of Daniel Freiman
> > Sent: Friday, December 28, 2007 12:49 PM
> > To: flexcoders@yahoogroups.com
> > Subject: Re: [flexcoders] removing component height
> > 
> >  
> > 
> > component.explicitHeight = NaN;
> > 
> > is there a reason why you're setting height to 0 instead of 
setting
> > visible to false?
> > 
> > - Dan Freiman
> > 
> > On Dec 28, 2007 12:46 PM, Matt Maher < matt@
> >  > wrote:
> > 
> > I have a thing I bump into from time to time and I know there 
justMUST 
> > be a solution for:
> > 
> > Sometimes I want to leave a visual component on the screen but 
set its 
> > height to "0" explicitly, so that it takes up no space. Then 
later I 
> > want to say "disregard my '0' and measure yourself".
> > 
> > How do I (in essence) remove that explicit height setting and 
allow the 
> > component to set its own height?
> > 
> > In action script I cannot seem to say
> > component.height = null;
> > component.invalidateDisplayList();
> > 
> > Anyone have a nice simple trick?
> >
>




RE: [flexcoders] data binding question for Cairngorm?

2007-12-28 Thread Tianzhen Lin
I don't think you get an error, but warning instead.  If you see no other
error, try and run the app and see if the binding is working as expected.

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mark Shen
Sent: Friday, December 28, 2007 2:39 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] data binding question for Cairngorm?

 

yes.

 

I have the code 

 


 [Bindable]
 public class PersonVO implements IValueObject
 {
  public var firstname:String;

..

}

But I still have the error.

 

Mark

- Original Message 
From: Muzak <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Friday, December 28, 2007 1:19:00 PM
Subject: Re: [flexcoders] data binding question for Cairngorm?

PersonVO itself must be Bindable.


- Original Message - 
From: "Mark Shen" <[EMAIL PROTECTED]>
To: 
Sent: Friday, December 28, 2007 6:45 PM
Subject: Re: [flexcoders] data binding question for Cairngorm?


> but I already have the following code in ModelLocator
> 
> [Bindable]
> public class CESFESFModel implements IModelLocator {
>  
>  // Single Instance of Our ModelLocator
>  private static var instance:CESFESFModel;
>
>public var personData:PersonVO;
> 
> }
> 
> Thanks
> 
> Mark



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



 

 

  _  

Looking for last minute shopping deals? Find
  them fast with Yahoo! Search.

 



[flexcoders] Re: removing component height

2007-12-28 Thread Matt Maher
In something like an  HBOX making it non-visible does not remove its 
layout footprint. So the hbox would still have a big blank spot there.

-M@

--- In flexcoders@yahoogroups.com, "Daniel Freiman" <[EMAIL PROTECTED]> 
wrote:
>
> component.explicitHeight = NaN;
> 
> is there a reason why you're setting height to 0 instead of setting 
visible
> to false?
> 
> - Dan Freiman
> 
> On Dec 28, 2007 12:46 PM, Matt Maher <[EMAIL PROTECTED]> wrote:
> 
> >   I have a thing I bump into from time to time and I know there 
justMUST
> > be a solution for:
> >
> > Sometimes I want to leave a visual component on the screen but 
set its
> > height to "0" explicitly, so that it takes up no space. Then 
later I
> > want to say "disregard my '0' and measure yourself".
> >
> > How do I (in essence) remove that explicit height setting and 
allow the
> > component to set its own height?
> >
> > In action script I cannot seem to say
> > component.height = null;
> > component.invalidateDisplayList();
> >
> > Anyone have a nice simple trick?
> >
> >  
> >
>




Re: [flexcoders] data binding question for Cairngorm?

2007-12-28 Thread Mark Shen
yes.

I have the code 


 [Bindable]
 public class PersonVO implements IValueObject
 {
  public var firstname:String;
...
}

But I still have the error.

Mark

- Original Message 
From: Muzak <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Friday, December 28, 2007 1:19:00 PM
Subject: Re: [flexcoders] data binding question for Cairngorm?

PersonVO itself must be Bindable.


- Original Message - 
From: "Mark Shen" <[EMAIL PROTECTED]>
To: 
Sent: Friday, December 28, 2007 6:45 PM
Subject: Re: [flexcoders] data binding question for Cairngorm?


> but I already have the following code in ModelLocator
> 
> [Bindable]
> public class CESFESFModel implements IModelLocator {
>  
>  // Single Instance of Our ModelLocator
>  private static var instance:CESFESFModel;
>
>public var personData:PersonVO;
> 
> }
> 
> Thanks
> 
> Mark



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




  

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


[flexcoders] Re: Sugestion for ComboBox component

2007-12-28 Thread danielvlopes
Hello Tracy, i made exactly this, extended and use this function:

public function setComboItem(combo:String,item:String):void{
 for(var i:Number = 0; i < this[combo].dataProvider.length; i++)
 {
   if(this[combo].dataProvider[i] == item){
 this[combo].selectedIndex = i;
   }
 }
}

But i'm think this is good think to be inside original comp.

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Extend combobox yourself, add this functionality, it is not difficult.
> You only need to do it once.  And there are components available that do
> this, I have one that is part of an item renderer, here:
> 
> http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectI
> D=767 It is just an example, not a production level component, the main
> problems are with the renerder part, defining the row-level dataProvider
> for the combo drop down.  Take that out and it gets much simpler.
> 
>  
> 
> One issue with doing it generically is specifying which property of the
> ComboBox dataProvider item to use for the match. You may not be matching
> on the "label". See how I handled it im my example.
> 
>  
> 
> Tracy 
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of danielvlopes
> Sent: Friday, December 28, 2007 1:32 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Sugestion for ComboBox component
> 
>  
> 
> Hello everybody, i want make a sugestion for Adobe Flex Team, and i
> know some members of Flex team participate here, in my projects when i
> use combobox to recover data from database and selected item of this
> combo must be set to the data recorded in database i do loops in
> entire dataprovider to find the value and your index to use
> selectedIndex to receive this index.
> 
> This is very common when you use combo to add and edit data in
> database and i think everybody need this, why adobe don't incorpore
> some new method in next release for do this? Something like
> setSelectedLabe(label:String) ...
>




[flexcoders] Re: removing component height

2007-12-28 Thread rueter007
Tracy is right. setting visible=false will still reserve the space
taken by the component. You have to set both visible and
includeInLayout properties to false so that the component does not
take any space in the layout.

- venkat
http://www.venkatj.com

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> And includeInLayout = false;
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Daniel Freiman
> Sent: Friday, December 28, 2007 12:49 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] removing component height
> 
>  
> 
> component.explicitHeight = NaN;
> 
> is there a reason why you're setting height to 0 instead of setting
> visible to false?
> 
> - Dan Freiman
> 
> On Dec 28, 2007 12:46 PM, Matt Maher < [EMAIL PROTECTED]
>  > wrote:
> 
> I have a thing I bump into from time to time and I know there justMUST 
> be a solution for:
> 
> Sometimes I want to leave a visual component on the screen but set its 
> height to "0" explicitly, so that it takes up no space. Then later I 
> want to say "disregard my '0' and measure yourself".
> 
> How do I (in essence) remove that explicit height setting and allow the 
> component to set its own height?
> 
> In action script I cannot seem to say
> component.height = null;
> component.invalidateDisplayList();
> 
> Anyone have a nice simple trick?
>




RE: [flexcoders] Sugestion for ComboBox component

2007-12-28 Thread Tracy Spratt
Extend combobox yourself, add this functionality, it is not difficult.
You only need to do it once.  And there are components available that do
this, I have one that is part of an item renderer, here:

http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectI
D=767 It is just an example, not a production level component, the main
problems are with the renerder part, defining the row-level dataProvider
for the combo drop down.  Take that out and it gets much simpler.

 

One issue with doing it generically is specifying which property of the
ComboBox dataProvider item to use for the match. You may not be matching
on the "label". See how I handled it im my example.

 

Tracy 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of danielvlopes
Sent: Friday, December 28, 2007 1:32 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Sugestion for ComboBox component

 

Hello everybody, i want make a sugestion for Adobe Flex Team, and i
know some members of Flex team participate here, in my projects when i
use combobox to recover data from database and selected item of this
combo must be set to the data recorded in database i do loops in
entire dataprovider to find the value and your index to use
selectedIndex to receive this index.

This is very common when you use combo to add and edit data in
database and i think everybody need this, why adobe don't incorpore
some new method in next release for do this? Something like
setSelectedLabe(label:String) ...

 



RE: [flexcoders] removing component height

2007-12-28 Thread Tracy Spratt
And includeInLayout = false;

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Daniel Freiman
Sent: Friday, December 28, 2007 12:49 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] removing component height

 

component.explicitHeight = NaN;

is there a reason why you're setting height to 0 instead of setting
visible to false?

- Dan Freiman

On Dec 28, 2007 12:46 PM, Matt Maher < [EMAIL PROTECTED]
 > wrote:

I have a thing I bump into from time to time and I know there justMUST 
be a solution for:

Sometimes I want to leave a visual component on the screen but set its 
height to "0" explicitly, so that it takes up no space. Then later I 
want to say "disregard my '0' and measure yourself".

How do I (in essence) remove that explicit height setting and allow the 
component to set its own height?

In action script I cannot seem to say
component.height = null;
component.invalidateDisplayList();

Anyone have a nice simple trick?

 

 



[flexcoders] Re: Centering an Application

2007-12-28 Thread javaguru_uk
--- In flexcoders@yahoogroups.com, "Randy Martin" <[EMAIL PROTECTED]> wrote:

Randy> All you have to do is set the horizontalCenter=0 and 
Randy> verticalCenter=0 on the outermost component (except Canvas) in 
Randy> your application. For example,
  
Randy> http://www.adobe.com/2006/mxml"; 
Randy> layout=absolute>
Randy>   
Randy> verticalCenter=0 title="My Window">
Randy> 
Randy>   
Randy> 
  
Randy> This will center the title window on your screen.

Thanks! I will give that a try.

Fidel.



[flexcoders] Sugestion for ComboBox component

2007-12-28 Thread danielvlopes
Hello everybody, i want make a sugestion for Adobe Flex Team, and i
know some members of Flex team participate here, in my projects when i
use combobox to recover data from database and selected item of this
combo must be set to the data recorded in database i do loops in
entire dataprovider to find the value and your index to use
selectedIndex to receive this index.

This is very common when you use combo to add and edit data in
database and i think everybody need this, why adobe don't incorpore
some new method in next release for do this? Something like
setSelectedLabe(label:String) ...



[flexcoders] Re: Centering an Application

2007-12-28 Thread javaguru_uk
--- In flexcoders@yahoogroups.com, Frederico Garcia <[EMAIL PROTECTED]>
wrote: 

garcia> Well,this is in fact a lot of work. I used this because I 
garcia> wanted to surround my main canvas with different colors (like 
garcia> a tile). If you just want your canvas centered you have to
garcia> insert ALL you content inside a SINGLE container (canvas, panel, 
garcia> etc...) a center that container inside the Application 
garcia> (HorizontalCenter and VerticalCenter).

These two attributes are new to me. I was using horizontalAlign and
verticalAlign.

I will try that out.

garcia> I think what you'r trying to do is center the application 
garcia> itself. Not possible (or at least inside flex, in order to do
garcia> that you must change the html template and add the swf in the 
garcia> middle cell of a 3x3 table)

Ok, I am using Adobe AIR. What I want is to  center my Canvas inside
my Application Window. But, I guess that horizontalCenter and
verticalCenter should do that. I will try that.

Thanks for the reply.

All the best,

Fidel.




Re: [flexcoders] data binding question for Cairngorm?

2007-12-28 Thread Muzak
PersonVO itself must be Bindable.


- Original Message - 
From: "Mark Shen" <[EMAIL PROTECTED]>
To: 
Sent: Friday, December 28, 2007 6:45 PM
Subject: Re: [flexcoders] data binding question for Cairngorm?


> but I already have the following code in ModelLocator
> 
> [Bindable]
> public class CESFESFModel implements IModelLocator {
>  
>  // Single Instance of Our ModelLocator
>  private static var instance:CESFESFModel;
>
> public var personData:PersonVO;
> 
> }
> 
> Thanks
> 
> Mark



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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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


[flexcoders]How to change the selectedIndex of a LinkBar

2007-12-28 Thread dorkie dork from dorktown
No matter what I try I cannot change the "selected" item in the linkbar. Try
this example. How do I change what item is visually "selected".


http://www.adobe.com/2006/mxml";
layout="absolute">





BTW does it seem confusing that the selected color and selected text don't
refer to the item that the user is on or has already clicked?


[flexcoders] Re: ItemRenderer in TileList not redrawing?

2007-12-28 Thread Matt Maher
Anyone reading this thread because they are experiencing issues with 
item renderers... READ ALEX's BLOG!!!

Great write-ups Alex. Thanks

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Renderers get recycled so make sure your renderer can be refreshed 
w/o
> being re-created.  More info on my blog (blogs.adobe.com/aharui)
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Matt Maher
> Sent: Wednesday, December 26, 2007 11:26 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] ItemRenderer in TileList not redrawing?
> 
> 
> 
> Setup:
> I have a tilelist with a customer item renderer and an array 
> collection dataprovider. The array collection has 100 items. The 
list 
> can show 10 renerers on the screen.
> 
> Problem:
> When I change (filter) the underlying array collection to 5 items 
the 
> list redraws correctly in that there are only 5 items in it, but 
it's 
> just the 1st 5 which were on the list before the filter.
> 
> Basically, the array is changing, the list is changing, but the 1st 
5 
> itemRenderers are not redrawing. Looking at the underlying array 
the 
> 5 elements are, in fact, different than what is being drawn on the 
> screen. It's as if they just are not being re-bound.
> 
> Anonther example:
> Since only 10 can show in the list, when I filter the collection to 
> 50 the scroll bar changes size (showing me that the list has 
changed) 
> but the 10 items showing are the same as they were before the 
filter. 
> 
> HOWEVER!
> 
> If I scroll down, then back up (thus taking those 10 off the screen 
> and then bringing them back on) they are rendered correctly. In 
other 
> words, it is just that the items which were already drawn on the 
> screen are not being refreshed.
> 
> I have tried list.executeBindings();
> list.invalidateDisplayList(); 
> list.invalidateList(); 
> list.invalidateProperties();
> 
> I have tried making a new array collection and changing the data 
> provider of the list, but nothing works. 
> 
> Is there a way to go into the items of the list and "refresh" 
or "re-
> render" them? And what am I doing wrong to make this necesarry??
> 
> Please help
>




[flexcoders] SharedObject security

2007-12-28 Thread andrewwestberg
Is there any way to prevent the physical copying of a .sol file from
one user's computer to another?

Thanks,
Andrew



Re: [flexcoders] removing component height

2007-12-28 Thread Daniel Freiman
component.explicitHeight = NaN;

is there a reason why you're setting height to 0 instead of setting visible
to false?

- Dan Freiman

On Dec 28, 2007 12:46 PM, Matt Maher <[EMAIL PROTECTED]> wrote:

>   I have a thing I bump into from time to time and I know there justMUST
> be a solution for:
>
> Sometimes I want to leave a visual component on the screen but set its
> height to "0" explicitly, so that it takes up no space. Then later I
> want to say "disregard my '0' and measure yourself".
>
> How do I (in essence) remove that explicit height setting and allow the
> component to set its own height?
>
> In action script I cannot seem to say
> component.height = null;
> component.invalidateDisplayList();
>
> Anyone have a nice simple trick?
>
>  
>


[flexcoders] removing component height

2007-12-28 Thread Matt Maher
I have a thing I bump into from time to time and I know there justMUST 
be a solution for:

Sometimes I want to leave a visual component on the screen but set its 
height to "0" explicitly, so that it takes up no space. Then later I 
want to say "disregard my '0' and measure yourself".

How do I (in essence) remove that explicit height setting and allow the 
component to set its own height?

In action script I cannot seem to say
component.height = null;
component.invalidateDisplayList();


Anyone have a nice simple trick?



Re: [flexcoders] data binding question for Cairngorm?

2007-12-28 Thread Mark Shen
but I already have the following code in ModelLocator

[Bindable]
 public class CESFESFModel implements IModelLocator {
  
  // Single Instance of Our ModelLocator
  private static var instance:CESFESFModel;

 public var personData:PersonVO;

}

Thanks

Mark


- Original Message 
From: Tianzhen Lin <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Friday, December 28, 2007 12:22:51 PM
Subject: RE: [flexcoders] data binding question for Cairngorm?

If personalData is a class itself, its class definition should also declare 
[Bindable], or emptstatus should be [Bindable] at least.  Bindable is not 
recursive, and does not propagate. 
 
From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of markflex2007
Sent: Friday, December 28, 2007 11:59 AM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] data binding question for Cairngorm?
 
Hi 

I have the carirngorm code here


import ca.sb.CESF.ESF. vo.PersonVO;

[Bindable]
public var modelLocator: CESFESFModel = 
CESFESFModel. getInstance( ); 




* personData is a instance of PersonVO and it is defined in 
CESFESFModel.

I get a warning error for modelLocator. personData. emptstatus.

The error message is :

Data binding will not be able to detect assignments to "emptstatus". 

I already use the "[Bindable]" for modelLocator but why I can not 
bind "modelLocator. personData. emptstatus"

Thanks

Mark



  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

RE: [flexcoders] data binding question for Cairngorm?

2007-12-28 Thread Tianzhen Lin
If personalData is a class itself, its class definition should also declare
[Bindable], or emptstatus should be [Bindable] at least.  Bindable is not
recursive, and does not propagate. 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markflex2007
Sent: Friday, December 28, 2007 11:59 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] data binding question for Cairngorm?

 

Hi 

I have the carirngorm code here


import ca.sb.CESF.ESF.vo.PersonVO;

[Bindable]
public var modelLocator:CESFESFModel = 
CESFESFModel.getInstance(); 




* personData is a instance of PersonVO and it is defined in 
CESFESFModel.

I get a warning error for modelLocator.personData.emptstatus.

The error message is :

Data binding will not be able to detect assignments to "emptstatus". 

I already use the "[Bindable]" for modelLocator but why I can not 
bind "modelLocator.personData.emptstatus"

Thanks

Mark

 



Re: SPAM-LOW: [flexcoders] RemoteObject in an Air app

2007-12-28 Thread Jeffry Houser

  You probably need to create a new services-config file with a hard 
coded URL to the flex2gateway.
  I suspect (but haven't tested) that you need a cross domain file in 
the root of your server for Flash to access it.

Scott Mulder wrote:
> 
> 
> I currently have a perfectly working RemoteObject on my shared hosting 
> server (where I can’t install my own server level stuff).  After much 
> messing around with the complier arguments it now connects just fine to 
> the standard /flex2gateway/ pointer and a ColdFusion Service which 
> returns native AMF binary objects so it’s nice and fast.  I am now 
> trying to set up an AIR app that connects to the same CF Service and 
> gets all of the same data in the local app where it is stored offline in 
> an SQLlite DB and synced on changes. 
> 
>  
> 
> Any suggestions on how to get the same connection working when the app 
> runs locally?
> 
>  
> 
> Thanks in advance!
> 
> 
> Scott
> 

-- 
Jeffry Houser, Technical Entrepreneur, Software Developer, Author, 
Recording Engineer
AIM: Reboog711  | Phone: 1-203-379-0773
--
My Company: 
My Podcast: 
My Blog: 



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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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


[flexcoders] RemoteObject in an Air app

2007-12-28 Thread Scott Mulder
I currently have a perfectly working RemoteObject on my shared hosting
server (where I can't install my own server level stuff).  After much
messing around with the complier arguments it now connects just fine to the
standard /flex2gateway/ pointer and a ColdFusion Service which returns
native AMF binary objects so it's nice and fast.  I am now trying to set up
an AIR app that connects to the same CF Service and gets all of the same
data in the local app where it is stored offline in an SQLlite DB and synced
on changes.  

 

Any suggestions on how to get the same connection working when the app runs
locally? 

 

Thanks in advance!


Scott



[flexcoders] data binding question for Cairngorm?

2007-12-28 Thread markflex2007
Hi 
 
 I have the carirngorm code here
 
 
 import ca.sb.CESF.ESF.vo.PersonVO;
 
 [Bindable]
 public var modelLocator:CESFESFModel = 
CESFESFModel.getInstance(); 





* personData is a instance of PersonVO and it is defined in 
CESFESFModel.

I get a warning error for modelLocator.personData.emptstatus.

The error message is :
 
Data binding will not be able to detect assignments to "emptstatus". 

I already use the  "[Bindable]" for modelLocator but why I can not 
bind "modelLocator.personData.emptstatus"

Thanks


Mark




[flexcoders] Piechart toolTips not popping up

2007-12-28 Thread richmcgillicuddy
Using Flex 2.01, I have a standard piechart with 4-6 pies and the
smaller pies will not pop up tooltips. We have a formatDataType
function that just spits out some data but other than that, it is very
generic. showDataTips="true". Is this a known issue or is there
something I need to do differently.

The PieChart is inside of a canvas which is inside of a tab.

Any ideas?


Rich



[flexcoders] Automatic Validation for Entire Form

2007-12-28 Thread Clinton D. Judy
Isn't there a way to make sure an entire form is validated
automatically? Then if it were, it may send an event, doing something
like enabling a button or allowing you to go on. If this functionality
isn't present, I may have to figure out how to write my own code. I just
want to make sure there isn't something like this already present.
Because right now, it looks like I would have to hand-check every form
field individually, and that wouldn't be so great for around 400+ fields
in a form.

 

Thanks for looking!

 

Clinton Judy

Web Developer

Glenn O. Hawbaker, Inc.

 



[flexcoders] Re: tileList displaying items order other than that represented by dataProvider

2007-12-28 Thread Alex
Thanks for the clarification on recycle. 

In my case the dataset is changed when it is sorted in dataGrid view
by clicking on the column header (the data is otherwise static and no
scrolling is involved as I only have 3 data items). 

As the 2 views (dataGrid and tileList) share a common dataProvider my
expectation is that the sort in one view will be visually represented
in another.

I have vastly simplified the application source to focus on the
problem and what I find is that my itemRenderer for the tileList view
if coded as follows works showing the expected sort in both views:



If coded as follows (as I want, so that I can override the renderer
and provide a different attribute other than 'name' for a label) the
issue with incorrect sorting in tileList view arises:

   

where the following is also defined
 
   /**
   * Retrieve the label to be used for the thumbnail 
   * associated with each data item. This method may 
   * be overridden in a derived class to customize 
   * the icon label associated with the thumbnail 
   * for each data item.
   */
   public function get thumbLabel(): String {
   return data.name;
   }

Is there a solution which will allow me to provide the string to be
displayed via a function? The intent is to be able to override the
thumbLabel function in an itemRenderer derived from this 'base'
itemRenderer class for cases where the dataset displayed uses an
attribute named other than 'name', for example an override might
simply return data.title or even conditionalize the string returned
based on other data attributes.

As I suggested the source for this entire simplified application is
now something that I could provide as I've boiled it down
substantially. The above issue is however the crux of the problem in
both the simplified sample and the original application.

Thanks for your continued assistance.
Alex M

PS: The tileList is defined as follows 



The CEMDataviewThumbGeneratorIcon as follows

http://www.adobe.com/2006/mxml";>
 
   








 --- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Alex, "recycle" means that in a list based component, item renderer
> instances are only created for the visible rows, plus a few more for
> buffering.  When the underlying dataProvider of the list is changed, or
> sorted, or really touched in any most any way, or when the list is
> scrolled,  the framework re-sets the "data" property of each renderer,
> passing in the dataProvider item. (and calls invalidateProperties())
> 
>  
> 
> So any visual aspect of the renderer that depends on the underlying data
> item must be re-calculated and re-displayed whenever that 'data"
> property changes. (really a bit later, see Alex H's blog )
> 
>  
> 
> You can not do it in the initialize, or creationComplete events, because
> those get called once, when the component first instantiates.
> 
>  
> 
> I can't tell from your posting how you are handling this.
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Alex
> Sent: Thursday, December 27, 2007 2:45 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: tileList displaying items order other than
> that represented by dataProvider
> 
>  
> 
> interestingly I find that any if the itemRenderer's methods to
> retreive data as part of drawing the items is only called the 1st time
> the item is rendered. Switching views, even resorting in grid view and
> re-displaying the view stacks' tile view (where the renderer is
> drawing the icon representation of the tiled items) does NOT result in
> the item renderer being called on any of the subsequent displays of
> the tile/icon view. 
> 
> In a reply to the other response to my initial posting I suggested
> that I had 2 instances of this viewstack in my application, an 'old'
> one and a new one in which I'm attempting to component-ize the
> viewstack with 'N' views of the same dataset. The old implementation
> works, the new doesn't. In both implementations the above behavior of
> only calling the itemRenderer the 1st time each tile is rendered is
> observed so that in and of itself is not an issue apparently.
> 
> --- In flexcoders@yahoogroups.com 
> , "Alex"  wrote:
> >
> > Thanks for the tip
> > 
> > From your blog entry I read "Recycle" to mean that I need an else
> clause wherever I have 
> > an if to ensure that the 'unhandled' condition is handled and some
> value for an attribute is 
> > always set.
> > 
> > The renderer I have coded either always returns a value from its
> methods (i.e., no 
> > conditional statements) or where there IS an if clause there also
> needs to be an else to 
> > ensure that a value for the desired attribute is always provided.
> > 
> > If my interpretation of 'recycle' is not correct please let me know.
> > 
> > Thanks!
> > Alex
> > 
> > --- In flexcoders@yahoogroups.com

RE: [flexcoders] why frontcontroller doesn't work?

2007-12-28 Thread Tianzhen Lin
How did you raise the LoginEvent?

 

Make sure when you instantiate LoginEvent, you do

 

var evt:LoginEvent = new LoginEvent( LoginEvent.PROCESSES );

evt.dispatch();

 

The key is to make sure the event type (LoginEvent.PROCESSES) is declared
unless you have a default type for LoginEvent.

 

-  Tangent

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dimitrios Gianninas
Sent: Friday, December 28, 2007 8:40 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] why frontcontroller doesn't work?

 

Are u getting some kind of error message?

Did u add trace statements in the command to see if it actually being
called? (cause it may be and then your problem might be elsewhere)

 

Dimitrios Gianninas

RIA Developer and Team Lead

Optimal Payments Inc.

 

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markflex2007
Sent: Thursday, December 27, 2007 4:33 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] why frontcontroller doesn't work?

Hi,

After add the statement to FrontController
this.addCommand(LoginEvent.PROCESSES, LoginCommand);

LoginCommand never happen when LoginEvent active.why?

Thanks

Mark


AVIS IMPORTANT

WARNING


Ce message électronique et ses pièces jointes peuvent contenir des
renseignements confidentiels, exclusifs ou légalement privilégiés destinés
au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun
privilège ou à aucun autre droit si le présent message a été transmis
involontairement ou s'il est retransmis sans son autorisation. Si vous
n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu
par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi
que toutes ses pièces jointes, de votre système. La lecture, la
distribution, la copie ou tout autre usage du présent message ou de ses
pièces jointes par des personnes autres que le destinataire visé ne sont pas
autorisés et pourraient être illégaux. Si vous avez reçu ce courrier
électronique par erreur, veuillez en aviser l'expéditeur.

This electronic message and its attachments may contain confidential,
proprietary or legally privileged information, which is solely for the use
of the intended recipient. No privilege or other rights are waived by any
unintended transmission or unauthorized retransmission of this message. If
you are not the intended recipient of this message, or if you have received
it in error, you should immediately stop reading this message and delete it
and all attachments from your system. The reading, distribution, copying or
other use of this message or its attachments by unintended recipients is
unauthorized and may be unlawful. If you have received this e-mail in error,
please notify the sender.

 



Re: [flexcoders] Re: Alternatives to LCDS

2007-12-28 Thread Guido
Thank you all very, very much. You've been really helpful!

Happy new year to you all!

Guido.

On Dec 28, 2007 7:33 AM, Johannes Nel <[EMAIL PROTECTED]> wrote:

>   red5 as well
>
> On Dec 28, 2007 5:19 AM, den.orlov <[EMAIL PROTECTED]> wrote:
>
> >   Blaze is restricted but free and open source version of LCDS (some
> > components was cut off), check this:
> > http://res.sys-con.com/story/dec07/474563/BlazeDS.JPG
> >
> > After some struggling with LCDS’s we decided migrate to Granite DS. My
> > short comments about differences of GDS ad LCDS here:
> > http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&catid=667&threadid=1322927&enterthread=y
> >
> > (last post)
> >
> > Most probably that Blaze and GDS will merge their code bases in
> > future: http://tech.groups.yahoo.com/group/graniteds/message/874?var=1
> >
> > Den
> >
> >
>
>
> --
> j:pn
> \\no comment
>
> 
>


RE: [flexcoders] What event to catch

2007-12-28 Thread mark goldin
Is it possible that you could have pointed me to a sample or something that 
would explain in greater detail how to pass an event from the inside of 
DataGrid's cell up to the DataGrid level?
   
  Thanks much.

Alex Harui <[EMAIL PROTECTED]> wrote:
  If you read the docs, you’ll see that it bubbles
  
  
-
  
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mark 
goldin
Sent: Thursday, December 27, 2007 6:35 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] What event to catch

  
Is there an applicable event at the Gird level?

Alex Harui <[EMAIL PROTECTED]> wrote: 
focusOut

  
-
  
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
markgoldin_2000
Sent: Thursday, December 27, 2007 6:18 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] What event to catch


  My Grids has an ability to add a new record when a user presses down 
key being at the last record.
But I also want to remove that record if he navigates away from that 
record while nothig was ent! ered into any cell. What even do I catch to 
remove this re! cord?
Also when I add a new record I want to highlight it and have a mouse 
pointer in one of the cells. Is that possible to do?

Thanks for help.







  

  



  

 


Re: [flexcoders] Re: Custom HTTP Headers broken?

2007-12-28 Thread Johannes Nel
PUT would be determined by the sand box per se, no put outside it. With POST
and GET its currently working for me with B3, so that is a bit weird.
I have had issues with PUT in general even within the Sandbox but it was B1.

sorry to not me of more help, read the security white paper if you have not

On Dec 28, 2007 10:18 AM, scott.royston <[EMAIL PROTECTED]> wrote:

>   I believe I have read all the docs, and I've definitely sniffed the
> http. If there is a particular piece of documentation you belive I've
> missed, please point me in the right direction. I'd be very
> interested in understanding why I can use custom headers in a PUT, but
> not a GET.
>
> Thanks
>
> --- In flexcoders@yahoogroups.com ,
> "Johannes Nel" <[EMAIL PROTECTED]>
>
> wrote:
> >
> > custom headers function within the sand box security. have you read
> the docs
> > and http sniffed a bit?
> >
> > On Dec 27, 2007 3:46 PM, scott.royston <[EMAIL PROTECTED]> wrote:
> >
> > > With the latest Flex 3 beta release, I can't get any custom
> headers to
> > > be sent without:
> > > 1) The method being POST (e.g. URLRequestMethod.POST)
> > > 2) Some data sent (e.g. request.data = new
> URLVariables("name=John+Doe");)
> > >
> > > This is on OS X using Safari or Firefox.
> > >
> > > Search the archives seems to indicate I should be able to add a custom
> > > header even with a simple HTTP GET, but the documentation is vague
> > > enough I thought I'd post here first to check before filing a bug.
> > >
> > > Thanks
> > >
> > >
> > >
> >
> >
> >
> > --
> > j:pn
> > \\no comment
> >
>
>  
>



-- 
j:pn
\\no comment


Re: [flexcoders] function binding & toString !! Additional information

2007-12-28 Thread Johannes Nel
override the set data function in your item renderer and bind your function
getter to an event you dispatch in there.

On Dec 27, 2007 2:39 AM, yigit <[EMAIL PROTECTED]> wrote:

>i think i'm misunderstood; because your solution suggestions does not
> fit my problem.
> first of all, functions can be binded. (with an event driven architecture
> that triggers
> the function to be executed and all bindable references be updated)
> to see how it is done, take a look at the article in flex api :
>
> http://127.0.0.1:64744/help/index.jsp?topic=/com.adobe.flexbuilder.help/html/databinding_4.html
> (or search for "[Bindable] function" then click the second result)
>
> after this quick information, i want to refigure my problem.
> assume: myInstance:MyClass; //MyClass implements a bindable toString
> method
>
> my problem has two parts:
> 1st; when i use function biding ()
> , function binding works fine
> except the itemRenderer ()
> why? what is the problem? can't the VM detect the binding mechanism? (by
> the way there isn't any compile time
> warnings about the binding will not be able to run properly)
>
> 2nd: if i do not write toString (),
> although it calls toString method to find the
> text value, function binding does never work (neither in itemRenderers nor
> normal usage).
> why? why cant the compiler detect the binding?
>
> thnks in advance.
>
>
> Frederico Garcia wrote On 12/26/2007 05:38 PM:
>
>  Jhonny Everson escreveu:
> >
> > I guess that your solution has a problem, the circular reference to
> > toString.
> >
> > it could be something like:
> >
> > [Bindable] public var stringValue:String = "";
> > public function toString():String {
> >
> > ... ( some processing that results in a string var 'string1')
> >
> > stringValue= string1;
> > return stringValue;
> > }
> >
> >
> > On 12/26/07, * Frederico Garcia* <[EMAIL 
> > PROTECTED]
> > > wrote:
> >
> > yigit escreveu:
> > > hi all;
> > > i have a custom class which has a toString method; so i can
> > directly use
> > > it as a source to textInput's text field.
> > > i want to make binding work, i mean when the result of the toString
> > > changes, i want the view to update itself automatically.
> > > nameID field of roleRef is an instance of my class that implements
> > > toString with function biding.
> > > when i use this way:
> > > 
> > > function binding on toString does not work
> > > when i use this way:
> > > 
> > > function biding on toString works, but inside an item renderer,
> > it does
> > > not work.
> > > 
> > >
> > >
> > > is this a compiler bug or is this the normal behavior?
> > >
> > >
> > > --
> > > 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
> > >
> > >
> > >
> > >
> > > __ NOD32 2747 (20071225) Information __
> > >
> > > This message was checked by NOD32 antivirus system.
> > > http://www.eset.com
> > >
> > >
> > >
> > >
> > I believe you can only bind vars and setters. By binding a function i
> > think it will only execute the function once. An easy workaround
> > is to
> > have a var containg the result of the toString function and bind the
> > property to that var. Something like:
> >
> > [Bindable] public var stringValue:String = "";
> > public function toString():String {
> > stringValue= this.toString();
> > return stringValue;
> > }
> >
> > 
> >
> > Regards
> >
> > Frederico Garcia
> >
> >
> >
> >
> > --
> > Jhonny Everson
> >
> > __ NOD32 2747 (20071225) Information __
> >
> > This message was checked by NOD32 antivirus system.
> > http://www.eset.com
> Yes, indeed there was a circular reference to toString. Thanks for the
> correction. The general concept is the same though, and I think it's the
> best way to solve the "bind to function" problem.
>
> Regards
>
> Frederico Garcia
>
>
>  
>



-- 
j:pn
\\no comment


[flexcoders] Re: Custom HTTP Headers broken?

2007-12-28 Thread scott.royston
I believe I have read all the docs, and I've definitely sniffed the
http.  If there is a particular piece of documentation you belive I've
missed, please point me in the right direction.  I'd be very
interested in understanding why I can use custom headers in a PUT, but
not a GET.

Thanks

--- In flexcoders@yahoogroups.com, "Johannes Nel" <[EMAIL PROTECTED]>
wrote:
>
> custom headers function within the sand box security. have you read
the docs
> and http sniffed a bit?
> 
> On Dec 27, 2007 3:46 PM, scott.royston <[EMAIL PROTECTED]> wrote:
> 
> >   With the latest Flex 3 beta release, I can't get any custom
headers to
> > be sent without:
> > 1) The method being POST (e.g. URLRequestMethod.POST)
> > 2) Some data sent (e.g. request.data = new
URLVariables("name=John+Doe");)
> >
> > This is on OS X using Safari or Firefox.
> >
> > Search the archives seems to indicate I should be able to add a custom
> > header even with a simple HTTP GET, but the documentation is vague
> > enough I thought I'd post here first to check before filing a bug.
> >
> > Thanks
> >
> >  
> >
> 
> 
> 
> -- 
> j:pn
> \\no comment
>




RE: [flexcoders] Re: Centering an Application

2007-12-28 Thread Randy Martin
All you have to do is set the horizontalCenter=0 and verticalCenter=0 on the
outermost component (except Canvas) in your application. For example,
 
http://www.adobe.com/2006/mxml"; layout=absolute>
  


  

 
This will center the title window on your screen.
 
HTH,
Randy


   _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of javaguru_uk
Sent: Friday, December 28, 2007 3:32 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Centering an Application



--- In HYPERLINK
"mailto:flexcoders%40yahoogroups.com"[EMAIL PROTECTED], Frederico
Garcia <[EMAIL PROTECTED]>
wrote:

> Have a VBox as the top level container
(top=0;bottom=-0;left=0;-right=0). 
> Insert one empty Canvas, then an HBox, then another empty Canvas. The 
> two Canvas' having width and height of 100% and the HBox the same
height 
> as your "Application Canvas". Now, inside the Hbox have one empty 
> canvas, your "Application Canvas" and finally another empty canvas. The 
> empty Canvas' with width=100% and height=100%;
> 
> The outline tree would look like:
> 
> Applicaton
> |-- VBox
> |-- Canvas top
> |-- HBox
> | |-- Canvas centerLeft
> | |-- Canvas main
> | |-- Canvas centerRight
> |-- Canvas bottom
> 
> I'd only advise you to do this if you want alot of flexibility in your 
> layout. (I did this for HYPERLINK
"http://www.sizemodels.com"http://www.sizemode-ls.com)
> 
> For the most cases it would be enough to have all your content inside a 
> Canvas, and set it's verticalCenter = 0 and horizontalCenter = 0.
>

Hi Garcia,

Thanks a lot for the tip. Muito obrigado mesmo.

I will give it a try. But that is a hell of a lot work for a simple
solution. :D 

Fidel.



 


No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.516 / Virus Database: 269.17.11/1200 - Release Date: 12/27/2007
1:34 PM
 


[flexcoders] Re: Cairngorm Overview Question

2007-12-28 Thread jer_ela
You're stuck with having a single ServiceLocator because of how it is
located, but you can have seperate ModelLocators and FrontControllers
for each module.

The FrontControllers all use the singleton CairngormEventDispathcer so
your event types have to be globally unique even though you are
registering them via different FrontControllers.

I implemented Cairngorm this way when I had a composite app and have
been happy with the results.

--- In flexcoders@yahoogroups.com, "Tim Ashworth" <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>  
> I've just started playing with Cairngorm (and have been kicking
myself for
> not doing it earlier) and I'm very impressed with the approach and
> framework.  One v v quick question though.  I'm using it for an app
that has
> a number of modules that could be treated as standalone modules.  They
> interact, but basically they are their own little thing (e.g. A contact
> management module, a job planning module).  Using Cairngorm is it
correct
> (and I know there is not right or wrong) to create each of these as
widgets
> using the framework and sticking with the MVC style and then write
code over
> the top to stitch it all together or is it better to look at the
entire app
> as a whole and create it that way, I.e. have a ServiceLocator that
holds ALL
> of the data connections, a Model for the entire app?  The second way
feels
> wrong, but I can't find anything about doing it in the modular way
without
> writing code over the top (which I am more than happy to do - just my
> experience of writing loads of code and then finding Cairngorm is
making me
> pause to see if there is something I'm missing).
>  
> Anyway - cheers in advance and Merry New Year!
>  
> tim
>




Re: [flexcoders] function binding & toString !! Additional information

2007-12-28 Thread yigit

http://127.0.0.1:49661/help/index.jsp?topic=/com.adobe.flexbuilder.help/html/databinding_4.html
here; in the first example, there is a bindable function and it is not a 
setter or getter.

so functions other then setters and getters can be binded!
so my question should have an answer...

by the way, i'm dont have to use function biding, i can make thinks work 
without it, but when i saw it
i decided to use, cuz it is cool :) , and good in terms of code 
readiblity...


so , check out te following example, an event triggers the binding of 
the function and the function(is Enabled) is neither a getter

or a setter:



http://www.adobe.com/2006/mxml";>

   
   
   


   
   

   

   
   




Frederico Garcia wrote On 12/27/2007 02:57 PM:


yigit escreveu:
> i think i'm misunderstood; because your solution suggestions does not
> fit my problem.
> first of all, functions can be binded. (with an event driven
> architecture that triggers
> the function to be executed and all bindable references be updated)
> to see how it is done, take a look at the article in flex api :
> 
http://127.0.0.1:64744/help/index.jsp?topic=/com.adobe.flexbuilder.help/html/databinding_4.html 


> (or search for "[Bindable] function" then click the second result)
>
> after this quick information, i want to refigure my problem.
> assume: myInstance:MyClass; //MyClass implements a bindable toString
> method
>
> my problem has two parts:
> 1st; when i use function biding ( text="{myInstance.toString()}"/>) , function binding works fine
> except the itemRenderer ()
> why? what is the problem? can't the VM detect the binding mechanism?
> (by the way there isn't any compile time
> warnings about the binding will not be able to run properly)
>
> 2nd: if i do not write toString (),
> although it calls toString method to find the
> text value, function binding does never work (neither in itemRenderers
> nor normal usage).
> why? why cant the compiler detect the binding?
>
> thnks in advance.
>
>
> Frederico Garcia wrote On 12/26/2007 05:38 PM:
>>
>> Jhonny Everson escreveu:
>> >
>> > I guess that your solution has a problem, the circular reference to
>> > toString.
>> >
>> > it could be something like:
>> >
>> > [Bindable] public var stringValue:String = "";
>> > public function toString():String {
>> >
>> > ... ( some processing that results in a string var 'string1')
>> >
>> > stringValue= string1;
>> > return stringValue;
>> > }
>> >
>> >
>> > On 12/26/07, * Frederico Garcia* <[EMAIL PROTECTED] 


>> 
>> > 
>> >> wrote:
>> >
>> > yigit escreveu:
>> > > hi all;
>> > > i have a custom class which has a toString method; so i can
>> > directly use
>> > > it as a source to textInput's text field.
>> > > i want to make binding work, i mean when the result of the toString
>> > > changes, i want the view to update itself automatically.
>> > > nameID field of roleRef is an instance of my class that implements
>> > > toString with function biding.
>> > > when i use this way:
>> > > 
>> > > function binding on toString does not work
>> > > when i use this way:
>> > > 
>> > > function biding on toString works, but inside an item renderer,
>> > it does
>> > > not work.
>> > > 
>> > >
>> > >
>> > > is this a compiler bug or is this the normal behavior?
>> > >
>> > >
>> > > --
>> > > 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
>> > >
>> > >
>> > >
>> > >
>> > > __ NOD32 2747 (20071225) Information __
>> > >
>> > > This message was checked by NOD32 antivirus system.
>> > > http://www.eset.com  >

>> > >
>> > >
>> > >
>> > >
>> > I believe you can only bind vars and setters. By binding a function i
>> > think it will only execute the function once. An easy workaround
>> > is to
>> > have a var containg the result of the toString function and bind the
>> > property to that var. Something 

RE: [flexcoders] why frontcontroller doesn't work?

2007-12-28 Thread Dimitrios Gianninas
Are u getting some kind of error message?
Did u add trace statements in the command to see if it actually being called? 
(cause it may be and then your problem might be elsewhere)
 
Dimitrios Gianninas
RIA Developer and Team Lead
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
markflex2007
Sent: Thursday, December 27, 2007 4:33 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] why frontcontroller doesn't work?



Hi,

After add the statement to FrontController
this.addCommand(LoginEvent.PROCESSES, LoginCommand);

LoginCommand never happen when LoginEvent active.why?

Thanks

Mark



 

-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.



Re: [flexcoders] Re: Solutions for provide a secure access to a Web-Service using Flex

2007-12-28 Thread Frederico Garcia
João escreveu:
> Good point. I wasn't aware that after decompiled it still would be
> hard to understand the code, except hardcoded strings.
>
> Frederico, since you are portuguese, are you aware of the Portuguese
> RIA community? -> www.riapt.org :)
>
> João Saleiro
>
>
>
> --
> 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
>
>
>
>
> __ NOD32 2752 (20071228) Information __
>
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
>
>
>
>   
Hi,

Though I'm no expert in security it's something that always interests 
me, since I mainly work on the health area and they are pretty concerned 
with it.

I already knew riapt, I just think it is too oriented to news on the ria 
world and since I read Ted Patrick's blog every day I usually get them 
first from there. It would be nice if you started posting tips and small 
tutorials.

Regards,

Frederico Garcia


[flexcoders] Authorized REST GET impossible?

2007-12-28 Thread scott.royston
Is there any way to do an HTTP GET through HTTPService or URLRequest
that includes Authorization information?

I can't set the Authorization header.
I can't set a custom header.
I can't use setCredentials(...) against a non-Blaze/proxy backend.
I don't want to put it in the URL because it kills bookmarking, etc.

This seems like something that people would want to do often, I'm
wondering if I'm missing an easy, obvious option.

Thanks




[flexcoders] Socket output progress (after flush)

2007-12-28 Thread gabrielhandford
Anyone know if Adobe is addressing the ability to determine the output
progress on Socket?

I found an old post here:
http://tech.groups.yahoo.com/group/flexcoders/message/72018


And I blogged about it here: http://ducktyper.com/2007/12/27/flush


And on the Adobe AIR forum here:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&\
catid=641&threadid=1325579&enterthread=y


Basically trying to get a fully working http client (as3httpclientlib
 ) and I need to be
able to upload larger files through HTTP Put.



[flexcoders] Andrew Price

2007-12-28 Thread Toby Tremayne
Anyone know how to get in touch with Andrew Price?  His website at  
http://cfd83.cfdynamics.com:8100 is no longer available and I need to  
get ahold of him regarding something he submitted to the flex  
developer's derby - if anyone has his email address or whatever could  
you forward this message to him please?


cheers,
Toby

---

Life is poetry, write it in your own words

---

Toby Tremayne
Director
Code Poet and Zen Master of the Heavy Sleep
Lyricist Software
0416 048 090
ICQ: 13107913




[flexcoders] Type Coercion Error (Object -> VO)

2007-12-28 Thread Ghost
Hi, i'm building a project with Cairngorm 2.1 and Flex
2. But i'm getting type coercion error trying to store
a element of server result (array of objects using
weborb) at a variable called "selectedItem". I
firstly, store as Array and convert it to a
ICollectionView to sort it, but still can't convert my
object type from server to my VO. Can anybody help me
please?

Following, the codes:
//GetFabricaCommand.as, function result()
public function result( event : Object  ) : void
{   
var resultado : ArrayCollection = new ArrayCollection(
event.result as Array );
var fabricas : ICollectionView =
ICollectionView(resultado);
var model : AtacadoMoveisModelLocator =
AtacadoMoveisModelLocator.getInstance();

// sort the data
var sort :Sort = new Sort();
sort.fields = [ new SortField( "nome", true ) ];
fabricas.sort = sort;
fabricas.refresh();
   
//model.selectedItem =
FabricaVO(resultado.getItemAt(0)); //this doesnt works
model.selectedItem = FabricaVO(fabricas[ 0 ]);
model.fabricas = fabricas; //this works
}
//End of result function

Now, the VO (FabricaVO.as):
package com.adobe.cairngorm.atacadomoveis.vo
{
import com.adobe.cairngorm.vo.IValueObject;
import
com.adobe.cairngorm.atacadomoveis.util.Comparable;
 


public class FabricaVO implements IValueObject,
Comparable 
{
public function get identifier() : String
{
return String( id_fabrica );
}

public function toString() : String
{
var s : String = "FabricaVO[id=2];";
return s;
}
[Bindable]
public var id_fabrica : Number;

[Bindable]
public var nome : String;

[Bindable]
public var descricao : String;

[Bindable]
public var logo : String;

[Bindable]
public var data_cadastro : String;

[Bindable]
public var login : String;

[Bindable]
public var senha : String;

[Bindable]
public var endereco : String;

[Bindable]
public var cidade : String;

[Bindable]
public var telefone : String;

[Bindable]
public var email : String;

[Bindable]
public var cnpj : String;

[Bindable]
public var ranking : Number;

[Bindable]
public var removido : Boolean;

}

}

Can anybody give me some light?
Thanks ;]


  Abra sua conta no Yahoo! Mail, o único sem limite de espaço para 
armazenamento!
http://br.mail.yahoo.com/



[flexcoders] Security Problem in cross-domain scripting

2007-12-28 Thread Muhammad Ahmed Ullah
Hello,

When loading a SWF file within a SWF through Loader's object, I'm
getting the following error message:

SecurityError: Error #2047: Security sandbox violation: parent:
http://192.168.0.20/wid/Widget1.swf cannot access
http://192.168.0.18:81/Any/container/ContainerSWF.swf.
 at flash.display::DisplayObject/get parent()
 at
mx.managers::SystemManager/executeCallbacks()[E:\dev\flex_3_beta3\sdk\fr\
ameworks\projects\framework\src\mx\managers\SystemManager.as:1518]
 at
mx.managers::SystemManager/docFrameHandler()[E:\dev\flex_3_beta3\sdk\fra\
meworks\projects\framework\src\mx\managers\SystemManager.as:2311]


Following facts may help:
1. On the server of the loaded-SWF file, crossdomain.xml exists with the
"*" permission.
2. In the initialize event handler of the loaded-SWF file,
Security.allowDomain("*") also exists.

If I write "Security.allowDomain("*")" in the loading SWF, then this
error is solved.

But my question is,  "Why is it necessary to use allowDomain() in the
loading-SWF, as I don't want to allow the loaded-SWF file to cross
script the loading-SWF file?" or "How can I solve this error without
using the allowDomain() in the loading-SWF?"


Thanks,
Ahmed


[flexcoders] XMLListCollection.copy drop namespaces - Bug or feature?

2007-12-28 Thread Tom Ortega
Say you have the following XML:

http://www.somesite.com/someurl";>


1
MyItem


2
MyOtherItem




if I do:

rows:XMLListCollection;
rows = new XMLListCollection(node.*.(localName() == "Row"));

Then the sol namespace gets copied.  However, if I do,

rowCopy:XMLListCollection;
rowcopy = rows.copy();

rowCopy will lose the namespace.  Is that a bug or proper behavior?

Thanks,
Tom


[flexcoders] Re: Solutions for provide a secure access to a Web-Service using Flex

2007-12-28 Thread João
Good point. I wasn't aware that after decompiled it still would be
hard to understand the code, except hardcoded strings.

Frederico, since you are portuguese, are you aware of the Portuguese
RIA community? -> www.riapt.org :)

João Saleiro



Re: [flexcoders] Re: Centering an Application

2007-12-28 Thread Frederico Garcia
javaguru_uk escreveu:
> --- In flexcoders@yahoogroups.com, Frederico Garcia <[EMAIL PROTECTED]>
> wrote:
>
>   
>> Have a VBox as the top level container
>> 
> (top=0;bottom=0;left=0;right=0).  
>   
>> Insert  one empty Canvas, then an HBox, then another empty Canvas. The 
>> two Canvas' having width and height of 100% and the HBox the same
>> 
> height 
>   
>> as your "Application Canvas". Now, inside the Hbox have one empty 
>> canvas, your "Application Canvas" and finally another empty canvas. The 
>> empty Canvas' with width=100% and height=100%;
>>
>> The outline tree would look like:
>>
>> Applicaton
>> |-- VBox
>>   |-- Canvas top
>>   |-- HBox
>>   |  |-- Canvas centerLeft
>>   |  |-- Canvas main
>>   |  |-- Canvas centerRight
>>   |-- Canvas bottom
>>
>> I'd only advise you to do this if you want alot of flexibility in your 
>> layout. (I did this for http://www.sizemodels.com)
>>
>> For the most cases it would be enough to have all your content inside a 
>> Canvas, and set it's verticalCenter = 0 and horizontalCenter = 0.
>>
>> 
>
> Hi Garcia,
>
> Thanks a lot for the tip. Muito obrigado mesmo.
>
> I will give it a try. But that is a hell of a lot work for a simple
> solution. :D 
>
> Fidel.
>
>
>
> --
> 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
>
>
>
>
> __ NOD32 2752 (20071228) Information __
>
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
>
>
>
>   
Well,this is in fact a lot of work. I used this because I wanted to 
surround my main canvas with different colors (like a tile). If you just 
want your canvas centered you have to insert ALL you content inside a 
SINGLE container (canvas, panel, etc...) a center that container inside 
the Application (HorizontalCenter and VerticalCenter).

I think what you'r trying to do is center the application itself. Not 
possible (or at least inside flex, in order to do that you must change 
the html template and add the swf in the middle cell of a 3x3 table)

Regards,

Frederico Garcia


[flexcoders] Styling itemrenderer

2007-12-28 Thread candysmate
I have a custom itemrenderer:


http://www.adobe.com/2006/mxml";
styleName="rendererStyle">


which I'm popping into a dataGridColumn with:


 

my style is setup thus:

@font-face {
 src:url("wingding.ttf");
 fontFamily: myFontFamily;
 flashType: true;
 font-weight:normal;
 unicodeRange:U+00FB-U+00FB;
}

rendererStyle {
 font-family: myFontFamily;
 flashType: true;
 font-weight: normal;
 color: #FF;
 font-size: 30pt;
}   

However, the datagridcolumn only displays the unstyled character û.
Elsewhere in my application this character, when correctly styled,
shows up as the WingDing 'handwritten cross' character as I designed it.

Where am I going wrong please?

Else where in my application I use this technique:



  
  
  
  



it works fine, but the compiler complains that I've already used that
className if I want to repeat the technique elsewhere which is why I'm
trying out this new way.

Any pointers much appreciated. Thanks.




[flexcoders] Cairngorm Overview Question

2007-12-28 Thread Tim Ashworth
Hi All,
 
I've just started playing with Cairngorm (and have been kicking myself for
not doing it earlier) and I'm very impressed with the approach and
framework.  One v v quick question though.  I'm using it for an app that has
a number of modules that could be treated as standalone modules.  They
interact, but basically they are their own little thing (e.g. A contact
management module, a job planning module).  Using Cairngorm is it correct
(and I know there is not right or wrong) to create each of these as widgets
using the framework and sticking with the MVC style and then write code over
the top to stitch it all together or is it better to look at the entire app
as a whole and create it that way, I.e. have a ServiceLocator that holds ALL
of the data connections, a Model for the entire app?  The second way feels
wrong, but I can't find anything about doing it in the modular way without
writing code over the top (which I am more than happy to do - just my
experience of writing loads of code and then finding Cairngorm is making me
pause to see if there is something I'm missing).
 
Anyway - cheers in advance and Merry New Year!
 
tim


Re: [flexcoders] Re: Alternatives to LCDS

2007-12-28 Thread Johannes Nel
red5 as well

On Dec 28, 2007 5:19 AM, den.orlov <[EMAIL PROTECTED]> wrote:

>   Blaze is restricted but free and open source version of LCDS (some
> components was cut off), check this:
> http://res.sys-con.com/story/dec07/474563/BlazeDS.JPG
>
> After some struggling with LCDS’s we decided migrate to Granite DS. My
> short comments about differences of GDS ad LCDS here:
>
> http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&catid=667&threadid=1322927&enterthread=y
> (last post)
>
> Most probably that Blaze and GDS will merge their code bases in
> future: http://tech.groups.yahoo.com/group/graniteds/message/874?var=1
>
> Den
>
>  
>



-- 
j:pn
\\no comment


[flexcoders] Re: Alternatives to LCDS

2007-12-28 Thread den.orlov
Blaze is restricted but free and open source version of LCDS (some
components was cut off), check this:
http://res.sys-con.com/story/dec07/474563/BlazeDS.JPG

After some struggling with LCDS’s we decided migrate to Granite DS. My
short comments about differences of GDS ad LCDS here:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&catid=667&threadid=1322927&enterthread=y
(last post)

Most probably that Blaze and GDS will merge their code bases in
future: http://tech.groups.yahoo.com/group/graniteds/message/874?var=1

Den



[flexcoders] Re: Centering an Application

2007-12-28 Thread javaguru_uk
--- In flexcoders@yahoogroups.com, Frederico Garcia <[EMAIL PROTECTED]>
wrote:

> Have a VBox as the top level container
(top=0;bottom=0;left=0;right=0).  
> Insert  one empty Canvas, then an HBox, then another empty Canvas. The 
> two Canvas' having width and height of 100% and the HBox the same
height 
> as your "Application Canvas". Now, inside the Hbox have one empty 
> canvas, your "Application Canvas" and finally another empty canvas. The 
> empty Canvas' with width=100% and height=100%;
> 
> The outline tree would look like:
> 
> Applicaton
> |-- VBox
>   |-- Canvas top
>   |-- HBox
>   |  |-- Canvas centerLeft
>   |  |-- Canvas main
>   |  |-- Canvas centerRight
>   |-- Canvas bottom
> 
> I'd only advise you to do this if you want alot of flexibility in your 
> layout. (I did this for http://www.sizemodels.com)
> 
> For the most cases it would be enough to have all your content inside a 
> Canvas, and set it's verticalCenter = 0 and horizontalCenter = 0.
>

Hi Garcia,

Thanks a lot for the tip. Muito obrigado mesmo.

I will give it a try. But that is a hell of a lot work for a simple
solution. :D 

Fidel.