Re: [flexcoders] layout / scrolling issues

2007-12-21 Thread Giles Roadnight
Fantastic, yes that does work. Many thanks, a much easier and lighter weight
solution.

There doesn't seem to be any mention of this in the docs?

now I just have to deal with those annoying horizontal scroll bars that pop
up!

Thanks again

Giles

On Dec 18, 2007 6:02 PM, Alex Harui <[EMAIL PROTECTED]> wrote:

>setting minHeight=0 may also work.
>
>  --
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Giles Roadnight
> *Sent:* Tuesday, December 18, 2007 4:31 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] layout / scrolling issues
>
>  If anyone else has this issues I've foudn the solution to the first item.
> the problem was that a VBox set to height="100%" would stretch it's
> container which would force scroll bars to pup up in unexpected places.
>
> The way to get round this is to put the VBox inside a canvas. If you set
> both to height="100%" the canvas behaves and does not stretch it's parent,
> the VBox then fits within the canvas and the canvas scrolls the VBox
>
> Hopefully someone will find that useful.
>
> On Dec 17, 2007 10:47 AM, Giles Roadnight <[EMAIL PROTECTED]> wrote:
>
> >   Hi All
> >
> > I have a couple of niggling lay out issues that I can't seem to
> > resolve and was hoping that someone could help me with them.
> >
> > I have a popup with an HBox in. on the left I have VBOx (lets call it
> > the controls Vbox) and on the right a text area. Both have
> > height="100%".
> >
> > With in the controls Vbox I have several text boxes, buttons ect and I
> > have another VBox (lets call it dynamic text box). This also has heing
> > set to 100%.
> >
> > This dynamic box gets controls dynamically added to it - no way of
> > knowing how many. These controls always make the controls VBox taller
> > than the popup and the popup then produces scrollbars so that I can't
> > see the buttons at the bottom of the controls VBox or the bottom of
> > the text area.
> > What I want to happen is for scroll bars to appear on the dynamic text
> > box. I can only get this to happen if I set the height to for example
> > 100 but then it does not stretch to make use of the whole height of
> > the controls VBox.
> >
> > How do I get round this?
> >
> > The other problem is a bit easier to explain. I have a toggle button
> > bar across the top of my app with width="100%". With all the buttons
> > in there the width is probably about 1500 pixels. On my 1200 * 1600
> > screen this works fine - it fills the whole width. If I then restore
> > my browser and re-size the window for example 800 pixels the bar
> > re-sizes and button labels are cut off with ... at the end and
> > tooltips. All this is as expected.
> > If a user on a 800*600 screen opens this app though the button bar is
> > still around 1500 pixels and stretches the whole app well beyond the
> > bounds of the screen. This seems like a bug to me
> >
> > Any suggestions?
> >
> > Many Thanks
> >
> >
>
>
> --
> Giles Roadnight
> http://giles.roadnight.name
>
>  
>



-- 
Giles Roadnight
http://giles.roadnight.name


RE: [flexcoders] Re: Datagrid delay from renderer to editor mode

2007-12-21 Thread Alex Harui
Only if they are really complex.  Maybe he's got a slow computer?  Can
you out-type it?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of j_lentzz
Sent: Friday, December 21, 2007 7:07 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Datagrid delay from renderer to editor mode

 

Just using defaults. However, I do have 3 label functions on the row.
Would they slow down the switching?

John
--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> No. Are you just switching between default TextInput renderers or do
> you have custom renderers. If custom, maybe they need optimization.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of j_lentzz
> Sent: Friday, December 21, 2007 6:02 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Re: Datagrid delay from renderer to editor mode
> 
> 
> 
> I'm using Flex 2. Would Flex 3 and its datagrid or the advanced
> datagrid be any faster?
> 
> John
> --- In flexcoders@yahoogroups.com


> , "Alex Harui"  wrote:
> >
> > There's no delay, but it isn't optimized either. Maybe a custom
class
> > factory that re-uses the last editor would help.
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com


> [mailto:flexcoders@yahoogroups.com


> ] On
> > Behalf Of j_lentzz
> > Sent: Friday, December 21, 2007 1:15 PM
> > To: flexcoders@yahoogroups.com 
 
> > Subject: [flexcoders] Datagrid delay from renderer to editor mode
> > 
> > 
> > 
> > Hi,
> > 
> > I was wondering if there is any delay built into the grid that would
> > slow the transition from a renderer to an editor. Clicking in the
> > grid doesn't result in an instant transition. I've got a client who
> > is a fast typist and the delay when switching is causing problems.
Is
> > that a style thing, or does it switch as fast as Flex can.
> > 
> > Thanks,
> > 
> > John
> >
>

 



[flexcoders] extra large line space in textarea if use htmlText to set text

2007-12-21 Thread Jonathan Lee
I used RichTextEditor control to edit text. Then, I save it as a html file.
The issue is when I load the html file in a textarea, something strange will 
happen if I set some character in the text to very large font.

Sample html:
1. Carefully put 
the egg yolk mixture back into the egg whites but do not pack it. There will be 
enough mixture so the whites are overfilled. Sprinkle with paprika. Place on 
bed of lettuce and/or garnish with parsley. Cool before 
serving.



You will see I set the character "1" to 48 point font size. And rest of the 
text uses  point 10. Then, when it displayed in text area, the last several 
words seems have some extra line space between any other words. (Feels like 
there's some line break there). But there's no any line break.

Here is the screen shot: 
http://farm3.static.flickr.com/2013/2128318270_ff89abf4c2_o.jpg

After click on the "Populate" button, I set the htmlText value of the left 
TextArea by using the htmlText value of that RichTextEditor. You will in the 
textarea box, the last line looks like have some extra line break. But actually 
there's no any line break.

Any suggestions? What I'm missing here?

Thanks.




   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

[flexcoders] Re: Problem with LI Tags in HTML Text

2007-12-21 Thread Stephen Roy J. Tang
Hmm...I encountered something similar a while back but couldn't solve
it. Have you solved this yet? 

--- In flexcoders@yahoogroups.com, "Christian Cheng" <[EMAIL PROTECTED]>
wrote:
>
> Hi guys,
> 
> Consider the ff. code:
> 
> 
> http://www.adobe.com/2006/mxml";
layout="absolute">
>   
> 
>   
>   
> 
>  htmlText="
  • Another list item.
  • " id="t"/> > > > > > Click on either list item displayed before clicking on the button. > Notice that the Text instance you clicked retains the bullet point > after its htmlText property has been changed. > > Searched for "li", "htmltext", "click", and/or "list item" in Yahoo! > Tech and in the Adobe Bug System but couldn't find any helpful posts > or reports. Anyone encountered (and hopefully solved this problem) > before? > > Attached are the MXML and SWF files for your convenience. > > Thanks, > Chry >

    Re: [flexcoders] New App Developed in Flex

    2007-12-21 Thread Mike Chabot
    Looks good to me. Nice job.
    
    -Mike Chabot
    
    On Dec 21, 2007 9:47 AM, Andrew Wetmore <[EMAIL PROTECTED]> wrote:
    >
    >
    >
    >
    > Some typos in the site, but the functionality looks good.
    >
    >
    > Typo in the regstration page: Retrive Password should be "Retrieve"
    >
    > Company info page: Text should be left justified, not full, to get a better
    > display. Text "making the company's position more stronger in the market"
    > should lose "more"If you give me a login, I would be happy to proofread all
    > pages.
    >
    > a
    >
    >
    >
    > On Dec 21, 2007 5:06 AM, MATTIKOPPA < [EMAIL PROTECTED]> wrote:
    > >
    > >
    > >
    > >
    > >
    > >
    > > Guys Take a look at new application developed in Flex.
    > >
    > > http:\\vat.relyonsoft.com\1.php
    > >
    > > let me know what you people feel
    > >
    > > regards
    > >
    > >
    >
    >
    >
    > --
    > Andrew Wetmore
    > User Experience Director
    > Open Learning Exchange - www.ole.org
    > 978-319-7324
    >
    > 
    
    

    Re: [flexcoders] flex on Weblogic 9.2

    2007-12-21 Thread Douglas Knudsen
    If you deploy the flex.war then flex is on your server. Flex != flex builder.
    
    DK
    
    
    
    On 12/20/07, Dominique Bessette - Halsema <[EMAIL PROTECTED]> wrote:
    > flex isn't installed on my server, i just need to deploy the war file in
    > Weblogic.  I noticed that in the flex.war there is a file called hotfixes
    > does anyone know what that is?
    >
    > On 12/19/07, Douglas Knudsen <[EMAIL PROTECTED]> wrote:
    > >
    > >   Pushing mxml files to the web app like this makes use of the webtier
    > > compiler which of course uses the flex sdk located in the flex.war.
    > > So, sounds like you need to get the hotfix installed in the flex app
    > > server. Instructions for this are on the hotfix page at adobe.com
    > >
    > > Peas
    > >
    > > DK
    > >
    > > On 12/19/07, Dominique Bessette - Halsema <[EMAIL PROTECTED]
    > > > wrote:
    > > > Hi everyone,
    > > >
    > > > I was getting errors like faultString = 'WSDL.BadElement' or 'element
    > > not
    > > > resolvable' when i tried to activate my webservice. At this point I
    > > tried
    > > > installing Adobe Flex 2.0.1 Hotfix 3 on Flex builder 2 and it resolved
    > > these
    > > > problems on my local machine. Now i'm trying to create a new web
    > > > application by exploding the flex.war file to my application server
    > > > (Weblogic 9.2) and then
    > > > adding the mxml files to the /flex directory under the server root and
    > > i'm
    > > > getting all my old WSDL.BadElement errors. How do i get rid of these
    > > errors
    > > > again? Any ideas?
    > > >
    > >
    > > --
    > > Douglas Knudsen
    > > http://www.cubicleman.com
    > > this is my signature, like it?
    > >
    > >
    > >
    >
    
    
    -- 
    Douglas Knudsen
    http://www.cubicleman.com
    this is my signature, like it?
    
    

    [flexcoders] Re: Datagrid delay from renderer to editor mode

    2007-12-21 Thread j_lentzz
    Just using defaults.  However, I do have 3 label functions on the row.
     Would they slow down the switching?
    
    John
    --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
    >
    > No.  Are you just switching between default TextInput renderers or do
    > you have custom renderers.  If custom, maybe they need optimization.
    > 
    >  
    > 
    > 
    > 
    > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
    > Behalf Of j_lentzz
    > Sent: Friday, December 21, 2007 6:02 PM
    > To: flexcoders@yahoogroups.com
    > Subject: [flexcoders] Re: Datagrid delay from renderer to editor mode
    > 
    >  
    > 
    > I'm using Flex 2. Would Flex 3 and its datagrid or the advanced
    > datagrid be any faster?
    > 
    > John
    > --- In flexcoders@yahoogroups.com 
    > , "Alex Harui"  wrote:
    > >
    > > There's no delay, but it isn't optimized either. Maybe a custom class
    > > factory that re-uses the last editor would help.
    > > 
    > > 
    > > 
    > > 
    > > 
    > > From: flexcoders@yahoogroups.com 
    > [mailto:flexcoders@yahoogroups.com 
    > ] On
    > > Behalf Of j_lentzz
    > > Sent: Friday, December 21, 2007 1:15 PM
    > > To: flexcoders@yahoogroups.com  
    > > Subject: [flexcoders] Datagrid delay from renderer to editor mode
    > > 
    > > 
    > > 
    > > Hi,
    > > 
    > > I was wondering if there is any delay built into the grid that would
    > > slow the transition from a renderer to an editor. Clicking in the
    > > grid doesn't result in an instant transition. I've got a client who
    > > is a fast typist and the delay when switching is causing problems. Is
    > > that a style thing, or does it switch as fast as Flex can.
    > > 
    > > Thanks,
    > > 
    > > John
    > >
    >
    
    
    
    

    RE: [flexcoders] Re: Datagrid delay from renderer to editor mode

    2007-12-21 Thread Alex Harui
    No.  Are you just switching between default TextInput renderers or do
    you have custom renderers.  If custom, maybe they need optimization.
    
     
    
    
    
    From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
    Behalf Of j_lentzz
    Sent: Friday, December 21, 2007 6:02 PM
    To: flexcoders@yahoogroups.com
    Subject: [flexcoders] Re: Datagrid delay from renderer to editor mode
    
     
    
    I'm using Flex 2. Would Flex 3 and its datagrid or the advanced
    datagrid be any faster?
    
    John
    --- In flexcoders@yahoogroups.com 
    , "Alex Harui" <[EMAIL PROTECTED]> wrote:
    >
    > There's no delay, but it isn't optimized either. Maybe a custom class
    > factory that re-uses the last editor would help.
    > 
    > 
    > 
    > 
    > 
    > From: flexcoders@yahoogroups.com 
    [mailto:flexcoders@yahoogroups.com 
    ] On
    > Behalf Of j_lentzz
    > Sent: Friday, December 21, 2007 1:15 PM
    > To: flexcoders@yahoogroups.com  
    > Subject: [flexcoders] Datagrid delay from renderer to editor mode
    > 
    > 
    > 
    > Hi,
    > 
    > I was wondering if there is any delay built into the grid that would
    > slow the transition from a renderer to an editor. Clicking in the
    > grid doesn't result in an instant transition. I've got a client who
    > is a fast typist and the delay when switching is causing problems. Is
    > that a style thing, or does it switch as fast as Flex can.
    > 
    > Thanks,
    > 
    > John
    >
    
     
    
    
    

    [flexcoders] Re: Datagrid delay from renderer to editor mode

    2007-12-21 Thread j_lentzz
    I'm using Flex 2.  Would Flex 3 and its datagrid or the advanced
    datagrid be any faster?
    
    John
    --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
    >
    > There's no delay, but it isn't optimized either.  Maybe a custom class
    > factory that re-uses the last editor would help.
    > 
    >  
    > 
    > 
    > 
    > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
    > Behalf Of j_lentzz
    > Sent: Friday, December 21, 2007 1:15 PM
    > To: flexcoders@yahoogroups.com
    > Subject: [flexcoders] Datagrid delay from renderer to editor mode
    > 
    >  
    > 
    > Hi,
    > 
    > I was wondering if there is any delay built into the grid that would
    > slow the transition from a renderer to an editor. Clicking in the
    > grid doesn't result in an instant transition. I've got a client who
    > is a fast typist and the delay when switching is causing problems. Is
    > that a style thing, or does it switch as fast as Flex can.
    > 
    > Thanks,
    > 
    > John
    >
    
    
    
    

    RE: [flexcoders] setting mxml attributes in actionscript when those properties don't exist

    2007-12-21 Thread Seth Caldwell
    Thanks Gordon. Can I ask what would happen if you had an attribute the same
    name as a style and the same name as an event and you tried to set this in
    the mxml? 
    
    Or would this not be allowed? If its not allowed it seems like events and
    styles should automatically create getters/setters of their variable types
    on the classes so that you programmatically could do something like
    component.someEventName = someFunctionName; instead of
    component.addEventListener("foo",bar);  and the variable would be of type
    EventListener, or something. /shrug
    
    It just feels sort of hackish if you know what I mean.
    
     
    
    Seth
    
     
    
    From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
    Behalf Of Gordon Smith
    Sent: Friday, December 21, 2007 1:55 PM
    To: flexcoders@yahoogroups.com
    Subject: RE: [flexcoders] setting mxml attributes in actionscript when those
    properties don't exist
    
     
    
    Some MXML attributes specify properties, some specify styles, some specify
    event handler bodies, and some specify effects. (And some, like 'id', get
    special handling.)
    
     
    
    The programmatic way to set a property is
    
     
    
    component.foo = bar;
    
     
    
    The programmatic way to set a style or effect is
    
     
    
    component.setStyle("foo", "bar");
    
     
    
    The programmatic way to set an event handler is
    
     
    
    component.addEventListener("foo", bar);
    
     
    
    Gordon Smith
    
    Adobe Flex SDK Team
    
     
    
      _  
    
    From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
    Behalf Of Seth Caldwell
    Sent: Friday, December 21, 2007 11:25 AM
    To: flexcoders@yahoogroups.com
    Subject: RE: [flexcoders] setting mxml attributes in actionscript when those
    properties don't exist
    
    Well, I solved the problem by using
    adgc.setStyle("headerStyleName","someStyle");  - however I'm still confused
    as to how there are attributes you can specify in mxml that can't be set
    programmatically.
    
    I've encountered this elsewhere also - is it just a styles thing?
    
    Seth
    
    From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
    Behalf Of Seth Caldwell
    Sent: Friday, December 21, 2007 11:20 AM
    To: flexcoders@yahoogroups.com
    Subject: [flexcoders] setting mxml attributes in actionscript when those
    properties don't exist
    
    For example, I'm wanting to set the headerStyleName on an
    AdvancedDataGridColumn. which you can do with mxml:
    
    
    However, when I try to do it with actionscript:
    
    var adgc:AdvancedDataGridColumn = new AdvancedDataGridColumn();
    
    adgc.headerStyleName = "someStyle";
    
    I get the error that headerStyleName is not defined on
    AdvancedDataGridColumn.
    
    Huh?
    
    Whats going on here, and how can I set it programmatically? 
    
    Thanks,
    
    Seth
    
     
    
    
    

    RE: [flexcoders] ComboBox ItemRenderer

    2007-12-21 Thread Alex Harui
    I would update the backing .data too., but the .owner property does
    point to the DG.
    
     
    
    
    
    From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
    Behalf Of Tracy Spratt
    Sent: Friday, December 21, 2007 4:18 PM
    To: flexcoders@yahoogroups.com
    Subject: RE: [flexcoders] ComboBox ItemRenderer
    
     
    
    Dominique's approach is the correct one.
    
     
    
    The Flex framework calls the set data() method on every renderer anytime
    the underlying data changes.  This is because renderers are recycled.
    
     
    
    So your renderer always has a reference to the dataProvider item that is
    behind it.  Use that reference to update the item.
    
     
    
    Tracy
    
     
    
    
    
    From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
    Behalf Of mark goldin
    Sent: Friday, December 21, 2007 1:14 PM
    To: flexcoders@yahoogroups.com
    Subject: Re: [flexcoders] ComboBox ItemRenderer
    
     
    
    No, that's not what I meant. I mean without using any ids, names, and
    etc.
    
    Something like other environments have: parent. 
    
    Why can't I after I got a reference to an itemRenderer simply go up on
    an object chain to get to DG and then talk to its dataProvider:
    
    itemRenderer.parent.parent.gd.dataProvider
    
    updating it with a new data from an itemRenderer? am I completely off
    here?
    
    Dominique Bessette - Halsema <[EMAIL PROTECTED]> wrote:
    
    you can talk to anything in your parentApplication by doing
    
     
    
    parentApplication.
    
     
    
    the variable parentApplication is a set flex variable that get's
    all the data in the main app.
    
     
    
     
    
     
    
     
    
     
    
    
    
     
    
    On 12/21/07, mark goldin <[EMAIL PROTECTED]
     > wrote: 
    
    Aha, I see. Let me make sure I understand. 
    
    ownerData is defined in set method. That means it's set as many
    times as many rows are in the DG, right? But why can't I talk directly
    to the dataProvider of my DG? Or using a private var is the direct way? 
    
    
    
    Dominique Bessette - Halsema <[EMAIL PROTECTED]
     > wrote:
    
    
    
    ownerdata is a variable that is set to the DG's row
    data.
    
     
    
    ownerData = value as XML;
    
     
    
    get's the row data.  sorry i should have commented it
    more
    
    
    
     
    
    On 12/21/07, mark goldin <[EMAIL PROTECTED]
     > wrote: 
    
    Not sure I understand about ownerData. Is it a hard
    coded dataProvider name for DG? I am working on a generic solution, I
    can't use hard coded names. Sorry, if I am misunderstanding your
    solution. 
    
    
    
    Dominique Bessette - Halsema <[EMAIL PROTECTED]
     > wrote: 
    
    Here is the code for the itemRenderer for a combobox i
    made.  The dataProvider is xml.
    
     
    
     
    
    
    http://www.adobe.com/2006/mxml
     "
     rowCount="2" labelField="@name"
    dataProvider="{weemcStatus}" change="onSelectionChange(event)"> 
     
    
     
    
    
     
    
    On 12/20/07, mark goldin <[EMAIL PROTECTED]
     > wrote: 
    
    I am using a Combobox as an itemRenderer for one of
    columns in a DG. I have managed to intercept "change" event of the
    combobox. But what do I do to store new value from Combo into DG's
    dataProvider for the following data save to the server? 
    
    What is an actual design pattern for that?
    
     
    
    Thanks much for help.
    
     
    
     
    
     
    
    
    
    
    
    
     
    
     
    
     
    
    
    

    RE: [flexcoders] Datagrid delay from renderer to editor mode

    2007-12-21 Thread Alex Harui
    There's no delay, but it isn't optimized either.  Maybe a custom class
    factory that re-uses the last editor would help.
    
     
    
    
    
    From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
    Behalf Of j_lentzz
    Sent: Friday, December 21, 2007 1:15 PM
    To: flexcoders@yahoogroups.com
    Subject: [flexcoders] Datagrid delay from renderer to editor mode
    
     
    
    Hi,
    
    I was wondering if there is any delay built into the grid that would
    slow the transition from a renderer to an editor. Clicking in the
    grid doesn't result in an instant transition. I've got a client who
    is a fast typist and the delay when switching is causing problems. Is
    that a style thing, or does it switch as fast as Flex can.
    
    Thanks,
    
    John
    
     
    
    
    

    [flexcoders] Re: DataGrid data accessed from Item renderer

    2007-12-21 Thread mydarkspoon
    Hi Mark,
    
    your item renderer should not be worried about saving data, but
    instead notifying an higher level view about the user request to save
    the user interaction.
    You can either bubble an event to be catched by one of its parent or
    if the right component to perform the operation is the renderer direct
    parent, use the outerDoceumtn.publicFunctionNameGoesHere() to avoid
    unneeded bubbling.
    
    Cheers,
    
    Almog Kurtser,
    Kaltura,
    http://www.kaltura.com
    
    
    --- In flexcoders@yahoogroups.com, "markgoldin_2000"
    <[EMAIL PROTECTED]> wrote:
    >
    > This is a combobox change event handler used as an itemRenderer in 
    > DataGrid:
    > public function handleDataChanged(event:ListEvent):void 
    > {   
    >   // update underlying data
    > data.person = selectedItem.data; 
    >   // Globally store updated row
    >   mx.core.Application.application.globalDataToSave = data;
    > }   
    > 
    > I am also trying to create a generic Save routine. For that I am using 
    > globalDataProviderToSave to "remember" the modified data. But the user 
    > can change multiple rows in the grids before he clicks on Save. I need 
    > to store the whole grid data into globalDataProviderToSave to be able 
    > to save all rows. How can I access it from within item renderer every 
    > time the user changes data? Differnet ideas?
    > 
    > Thanks
    >
    
    
    
    

    RE: [flexcoders] ComboBox ItemRenderer

    2007-12-21 Thread Tracy Spratt
    Dominique's approach is the correct one.
    
     
    
    The Flex framework calls the set data() method on every renderer anytime
    the underlying data changes.  This is because renderers are recycled.
    
     
    
    So your renderer always has a reference to the dataProvider item that is
    behind it.  Use that reference to update the item.
    
     
    
    Tracy
    
     
    
    
    
    From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
    Behalf Of mark goldin
    Sent: Friday, December 21, 2007 1:14 PM
    To: flexcoders@yahoogroups.com
    Subject: Re: [flexcoders] ComboBox ItemRenderer
    
     
    
    No, that's not what I meant. I mean without using any ids, names, and
    etc.
    
    Something like other environments have: parent. 
    
    Why can't I after I got a reference to an itemRenderer simply go up on
    an object chain to get to DG and then talk to its dataProvider:
    
    itemRenderer.parent.parent.gd.dataProvider
    
    updating it with a new data from an itemRenderer? am I completely off
    here?
    
    Dominique Bessette - Halsema <[EMAIL PROTECTED]> wrote:
    
    you can talk to anything in your parentApplication by doing
    
     
    
    parentApplication.
    
     
    
    the variable parentApplication is a set flex variable that get's
    all the data in the main app.
    
     
    
     
    
     
    
     
    
     
    
    
    
     
    
    On 12/21/07, mark goldin <[EMAIL PROTECTED]
     > wrote: 
    
    Aha, I see. Let me make sure I understand. 
    
    ownerData is defined in set method. That means it's set as many
    times as many rows are in the DG, right? But why can't I talk directly
    to the dataProvider of my DG? Or using a private var is the direct way? 
    
    
    
    Dominique Bessette - Halsema <[EMAIL PROTECTED]
     > wrote:
    
    
    
    ownerdata is a variable that is set to the DG's row
    data.
    
     
    
    ownerData = value as XML;
    
     
    
    get's the row data.  sorry i should have commented it
    more
    
    
    
     
    
    On 12/21/07, mark goldin <[EMAIL PROTECTED]
     > wrote: 
    
    Not sure I understand about ownerData. Is it a hard
    coded dataProvider name for DG? I am working on a generic solution, I
    can't use hard coded names. Sorry, if I am misunderstanding your
    solution. 
    
    
    
    Dominique Bessette - Halsema <[EMAIL PROTECTED]
     > wrote: 
    
    Here is the code for the itemRenderer for a combobox i
    made.  The dataProvider is xml.
    
     
    
     
    
    
    http://www.adobe.com/2006/mxml
     "
     rowCount="2" labelField="@name"
    dataProvider="{weemcStatus}" change="onSelectionChange(event)"> 
     
    
     
    
    
     
    
    On 12/20/07, mark goldin <[EMAIL PROTECTED]
     > wrote: 
    
    I am using a Combobox as an itemRenderer for one of
    columns in a DG. I have managed to intercept "change" event of the
    combobox. But what do I do to store new value from Combo into DG's
    dataProvider for the following data save to the server? 
    
    What is an actual design pattern for that?
    
     
    
    Thanks much for help.
    
     
    
     
    
     
    
    
    
    
    
     
    
     
    
     
    
    
    

    Re: [flexcoders] Stylesheet to AS3 App?

    2007-12-21 Thread Tony
    cool.
    thanks!
    tony
    
    On Dec 21, 2007 12:16 PM, Alex Harui <[EMAIL PROTECTED]> wrote:
    >
    >
    >
    >
    >
    >
    >
    >
    >
    > I wouldn't say it isn't possible, just very hard.  If you build a simple
    > mx:Application with the MXMLC option –keep-generated-actionscript, you'll
    > see how much code the compiler generates to get the styles working for you.
    > You can certainly manually duplicate all of that yourself.
    >
    >
    >
    >  
    >
    >
    > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
    > Behalf Of Tony
    >  Sent: Friday, December 21, 2007 6:43 AM
    >  To: flexcoders@yahoogroups.com
    >  Subject: Re: [flexcoders] Stylesheet to AS3 App?
    >
    >
    >
    >
    >
    >
    > so this is NOT possible?
    >
    >  for real?
    >
    >  tony
    >
    >  On Dec 20, 2007 10:29 PM, Alex Harui <[EMAIL PROTECTED]> wrote:
    >  >
    >  >
    >  >
    >  >
    >  >
    >  >
    >  >
    >  >
    >  >
    >  > That's the price you pay for not using mx:Application. It comes with lots
    >  > of cool features such as css support for non-text components.
    >  >
    >  >
    >  >
    >  > 
    >  >
    >  >
    >  > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
    >  > Behalf Of Rastafari
    >  > Sent: Thursday, December 20, 2007 2:13 PM
    >  > To: flexcoders@yahoogroups.com
    >  > Subject: [flexcoders] Stylesheet to AS3 App?
    >  >
    >  >
    >  >
    >  >
    >  >
    >  >
    >  >
    >  > hi there.
    >  >
    >  > i can apply a stylesheet no problem, to a mxml application.
    >  > however, in an as3 only application, i cant seem to figure out how
    >  > to do this.
    >  >
    >  > i can TextFormat using a stylesheet, when its text, no problem.
    >  >
    >  > just cant figure out how to do it for the whole app. mainly i want a
    >  > background
    >  > gradient and some background alpha changes.
    >  >
    >  > thanks for any help
    >  > tony
    >  >
    >  >
    >
    >  --
    >  'Never have anything in your life that you can't walk out on in thirty
    >  seconds flat, if you spot the heat coming around the corner'
    >
    >  robert deniro - heat (1995)
    >
    >  
    
    
    
    -- 
    'Never have anything in your life that you can't walk out on in thirty
    seconds flat, if you spot the heat coming around the corner'
    
    robert deniro - heat (1995)
    
    
    --
    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] DataGrid data accessed from Item renderer

    2007-12-21 Thread markgoldin_2000
    This is a combobox change event handler used as an itemRenderer in 
    DataGrid:
    public function handleDataChanged(event:ListEvent):void 
    {   
    // update underlying data
    data.person = selectedItem.data; 
    // Globally store updated row
    mx.core.Application.application.globalDataToSave = data;
    }   
    
    I am also trying to create a generic Save routine. For that I am using 
    globalDataProviderToSave to "remember" the modified data. But the user 
    can change multiple rows in the grids before he clicks on Save. I need 
    to store the whole grid data into globalDataProviderToSave to be able 
    to save all rows. How can I access it from within item renderer every 
    time the user changes data? Differnet ideas?
    
    Thanks
    
    
    

    Re: [flexcoders] Re: removeEventHandler

    2007-12-21 Thread mark goldin
    What I am trying to do is to have a generic Save button that will save data to 
    the server. So, when a module is loaded it attaches its own handler with a 
    logic specific to that module. Next module will atach another save handle, so I 
    thought it would have been a good idea to remove previous handler.
    
    rueter007 <[EMAIL PROTECTED]> wrote:  I dont think so. because the same 
    handler can be used for different
    kinds of events, you need to specify which one to remove.
    
    --- In flexcoders@yahoogroups.com, "markgoldin_2000"
    <[EMAIL PROTECTED]> wrote:
    >
    > In order to remove an event handler I have to provide two parameters:
    > Event name and a name of an event handler. Can I remove the handler 
    > without specifying its name?
    > 
    > Thanks
    >
    
    
    
     
    
    

    [flexcoders] Re: centerPopUp in F3B2

    2007-12-21 Thread rueter007
    not sure if this works but have you tried this.parentApplication?
    
    - venkat
    http://www.venkatj.com
    
    --- In flexcoders@yahoogroups.com, "hammer995" <[EMAIL PROTECTED]> wrote:
    >
    > I am trying to center a popup window on the application from an
    > itemrenderer in a TileList.
    > 
    > It looks like it centers it with the TileList but not with the
    > application itself.
    > 
    > I've found different places on the interweb but none of them work.
    > 
    > They reference: DisplayObject(Application.application.parentDocument),
    > this.parent, etc...and they give me the same results.
    > 
    > Here is my code:
    > 
    > private function showPic():void {
    >   var author:String = data.author;
    >   //var newPicWindow:TitleWindow =
    > TitleWindow(PopUpManager.createPopUp(this, bigPic, true));
    >   var newPicWindow:TitleWindow =
    > TitleWindow(PopUpManager.createPopUp(Application.application.mainPanel,
    > bigPic, true));
    >   newPicWindow.data = data;
    >   if (author != null) {
    >   newPicWindow.title="Photo Courtesy of " 
    > + data.author;
    >   }
    >   newPicWindow.setStyle("borderAlpha", 0.9);
    >   newPicWindow.showCloseButton=true;
    >   PopUpManager.centerPopUp(newPicWindow);
    >   }
    > 
    > Thanks,
    > Sonny
    >
    
    
    
    

    [flexcoders] Re: removeEventHandler

    2007-12-21 Thread rueter007
    I dont think so. because the same handler can be used for different
    kinds of events, you need to specify which one to remove.
    
    --- In flexcoders@yahoogroups.com, "markgoldin_2000"
    <[EMAIL PROTECTED]> wrote:
    >
    > In order to remove an event handler I have to provide two parameters:
    > Event name and a name of an event handler. Can I remove the handler 
    > without specifying its name?
    > 
    > Thanks
    >
    
    
    
    

    [flexcoders] removeEventHandler

    2007-12-21 Thread markgoldin_2000
    In order to remove an event handler I have to provide two parameters:
    Event name and a name of an event handler. Can I remove the handler 
    without specifying its name?
    
    Thanks
    
    
    

    [flexcoders] centerPopUp in F3B2

    2007-12-21 Thread hammer995
    I am trying to center a popup window on the application from an
    itemrenderer in a TileList.
    
    It looks like it centers it with the TileList but not with the
    application itself.
    
    I've found different places on the interweb but none of them work.
    
    They reference: DisplayObject(Application.application.parentDocument),
    this.parent, etc...and they give me the same results.
    
    Here is my code:
    
    private function showPic():void {
    var author:String = data.author;
    //var newPicWindow:TitleWindow =
    TitleWindow(PopUpManager.createPopUp(this, bigPic, true));
    var newPicWindow:TitleWindow =
    TitleWindow(PopUpManager.createPopUp(Application.application.mainPanel,
    bigPic, true));
    newPicWindow.data = data;
    if (author != null) {
    newPicWindow.title="Photo Courtesy of " 
    + data.author;
    }
    newPicWindow.setStyle("borderAlpha", 0.9);
    newPicWindow.showCloseButton=true;
    PopUpManager.centerPopUp(newPicWindow);
    }
    
    Thanks,
    Sonny
    
    
    

    RE: [flexcoders] setting mxml attributes in actionscript when those properties don't exist

    2007-12-21 Thread Gordon Smith
    Some MXML attributes specify properties, some specify styles, some
    specify event handler bodies, and some specify effects. (And some, like
    'id', get special handling.)
     
    The programmatic way to set a property is
     
    component.foo = bar;
     
    The programmatic way to set a style or effect is
     
    component.setStyle("foo", "bar");
     
    The programmatic way to set an event handler is
     
    component.addEventListener("foo", bar);
     
    Gordon Smith
    Adobe Flex SDK Team
    
    
    
    From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
    Behalf Of Seth Caldwell
    Sent: Friday, December 21, 2007 11:25 AM
    To: flexcoders@yahoogroups.com
    Subject: RE: [flexcoders] setting mxml attributes in actionscript when
    those properties don't exist
    
    
    
    Well, I solved the problem by using
    adgc.setStyle("headerStyleName","someStyle");  - however I'm still
    confused as to how there are attributes you can specify in mxml that
    can't be set programmatically.
    
    I've encountered this elsewhere also - is it just a styles thing?
    
    Seth
    
    From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
    Behalf Of Seth Caldwell
    Sent: Friday, December 21, 2007 11:20 AM
    To: flexcoders@yahoogroups.com
    Subject: [flexcoders] setting mxml attributes in actionscript when those
    properties don't exist
    
    For example, I'm wanting to set the headerStyleName on an
    AdvancedDataGridColumn... which you can do with mxml:
    
    
    However, when I try to do it with actionscript:
    
    var adgc:AdvancedDataGridColumn = new AdvancedDataGridColumn();
    
    adgc.headerStyleName = "someStyle";
    
    I get the error that headerStyleName is not defined on
    AdvancedDataGridColumn.
    
    Huh?
    
    Whats going on here, and how can I set it programmatically? 
    
    Thanks,
    
    Seth
    
     
    
    

    [flexcoders] Re: Can Flex save anything to desktop or only AIR?

    2007-12-21 Thread rueter007
    not really. it is much simple. 
    
      var appUrl:URLRequest = new URLRequest();
      appUrl.url = "http://blah.com/blah/blahblah";;
      appUrl.method = URLRequestMethod.POST;
      
      var variables:URLVariables = new URLVariables();
      variables.data = data;// file data
      variables.fName = name;// file name
      variables.fType = type;// file type  ex: text/csv
      appUrl.data = variables;
      
      flash.net.navigateToURL(appUrl, "_top");
    
    you will send the data to the server and let the browser handle the
    data that is returned. you do not have to wait for the data to
    download or anything else. your job is done right here.
    SharedObjects are not an ideal solution for this case.
    
    - venkat
    http://www.venkatj.com
    
    --- In flexcoders@yahoogroups.com, "Rick Schmitty" <[EMAIL PROTECTED]> wrote:
    >
    > but that would involve sending the binary data to the server, waiting
    > for the result, then using flash to initiate the download from the
    > server, right?
    > 
    > 
    > 
    > On Dec 21, 2007 1:23 PM, rueter007 <[EMAIL PROTECTED]> wrote:
    > >
    > >
    > >
    > >
    > >
    > >
    > > you can save binary data from a web application with the help of a
    server.
    > >
    > >
    > >
    > >  --- In flexcoders@yahoogroups.com, "Rick Schmitty"  wrote:
    > >  >
    > >  > Is it possible to have flex save anything in its memory (bitmaps,
    > >  > sound streams, video streams) to the desktop (or prompt user to
    save
    > >  > somewhere) or is saving of binary data only in apollo?
    > >  >
    > >
    > >
    >
    
    
    
    

    Re: [flexcoders] Re: Can Flex save anything to desktop or only AIR?

    2007-12-21 Thread ben gomez farrell
    It doesn't really have to be that many steps, but you're essentially 
    correct.
    You can send the binary data to the server via a POST, and the result of 
    the POST call can be a "save to:" link.
    But yes, it has to go all the way up to the server and back down.  My 
    point is that it can all be part of the same web call.
    ben
    
    Rick Schmitty wrote:
    >
    > but that would involve sending the binary data to the server, waiting
    > for the result, then using flash to initiate the download from the
    > server, right?
    >
    > On Dec 21, 2007 1:23 PM, rueter007 <[EMAIL PROTECTED] 
    > > wrote:
    > >
    > >
    > >
    > >
    > >
    > >
    > > you can save binary data from a web application with the help of a 
    > server.
    > >
    > >
    > >
    > > --- In flexcoders@yahoogroups.com 
    > , "Rick Schmitty" <[EMAIL PROTECTED]> 
    > wrote:
    > > >
    > > > Is it possible to have flex save anything in its memory (bitmaps,
    > > > sound streams, video streams) to the desktop (or prompt user to save
    > > > somewhere) or is saving of binary data only in apollo?
    > > >
    > >
    > >
    >
    >  
    
    

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

    2007-12-21 Thread João
    We are dealing with one huge client that provides technological
    solutions based on SAP and .NET. They hired us for developing the
    presentation layer, and it's damn difficult to make them change the
    way they work, even if we know that they aren't making the best
    decisions. 
    Anyway, i don't see how changing from web-services to flash remoting
    would solve the problem. It's still a SOA architecture, with exposed
    services, and the only difference is that the data is transferred in
    binary (but not difficult to be interpreted - even more now with the
    release of the AMF specification).
    PKI seems to be the solution, but our expertise is not security. Also,
    i  have doubts on:
    
    1- Does Flex has tools to deal with this kind of things?
    2- From what i recall, PKI needs a private key on both sides. This
    would mean that the key was hard-coded on the Flash Client.
    
    I am thinking on something simple like:
    
    1- The client communicates with a web-service requesting access
    2- The server initiates a session, returning a random string
    3- The client runs some kind of algorithm, made by us, to "encrypt"
    the string, and returns it. Or, it uses a known algorithm that
    encrypts the string using a keyword.
    4- The server runs the same algorithm on the string, and compares the
    result with the returned encrypted string. If they are the same, the
    session changes it's state to validated, allowing access to the
    web-services. If not, the session is terminated.
    
    This is far from being perfect, and far from being secure because the
    client could be decompiled and the "encryption" algorithm could be
    easily broken, but at least it would be a bit more reliable than
    having the web-service completely exposed. We are dealing here with
    probabilities...
    
    What do you think?
    
    
    

    RE: [flexcoders] Can Flex save anything to desktop or only AIR?

    2007-12-21 Thread Samuel R. Neff
    
    You can save to a local shared object (see SharedObject.getLocal()) but not
    to a file or format of your choosing.  Also there's a strict limit on how
    much data you can store (which the user can change).
    
    LSO is like a cookie on steroids.
    
    For anything other than that you need AIR or any of the other desktop
    wrappers for Flash/Flex.
    
    HTH,
    
    Sam
    
    ---
    We're Hiring! Seeking a passionate developer to join our team building Flex
    based products. Position is in the Washington D.C. metro area. If interested
    contact [EMAIL PROTECTED]
     
    -Original Message-
    From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
    Behalf Of Rick Schmitty
    Sent: Friday, December 21, 2007 4:17 PM
    To: flexcoders@yahoogroups.com
    Subject: [flexcoders] Can Flex save anything to desktop or only AIR?
    
    Is it possible to have flex save anything in its memory (bitmaps,
    sound streams, video streams) to the desktop (or prompt user to save
    somewhere) or is saving of binary data only in apollo?
    
    
    

    Re: [flexcoders] Re: Can Flex save anything to desktop or only AIR?

    2007-12-21 Thread Rick Schmitty
    but that would involve sending the binary data to the server, waiting
    for the result, then using flash to initiate the download from the
    server, right?
    
    
    
    On Dec 21, 2007 1:23 PM, rueter007 <[EMAIL PROTECTED]> wrote:
    >
    >
    >
    >
    >
    >
    > you can save binary data from a web application with the help of a server.
    >
    >
    >
    >  --- In flexcoders@yahoogroups.com, "Rick Schmitty" <[EMAIL PROTECTED]> wrote:
    >  >
    >  > Is it possible to have flex save anything in its memory (bitmaps,
    >  > sound streams, video streams) to the desktop (or prompt user to save
    >  > somewhere) or is saving of binary data only in apollo?
    >  >
    >
    >  
    
    

    [flexcoders] Re: Can Flex save anything to desktop or only AIR?

    2007-12-21 Thread rueter007
    you can save binary data from a web application with the help of a server.
    
    --- In flexcoders@yahoogroups.com, "Rick Schmitty" <[EMAIL PROTECTED]> wrote:
    >
    > Is it possible to have flex save anything in its memory (bitmaps,
    > sound streams, video streams) to the desktop (or prompt user to save
    > somewhere) or is saving of binary data only in apollo?
    >
    
    
    
    

    [flexcoders] Can Flex save anything to desktop or only AIR?

    2007-12-21 Thread Rick Schmitty
    Is it possible to have flex save anything in its memory (bitmaps,
    sound streams, video streams) to the desktop (or prompt user to save
    somewhere) or is saving of binary data only in apollo?
    
    

    [flexcoders] Datagrid delay from renderer to editor mode

    2007-12-21 Thread j_lentzz
    Hi,
    
    I was wondering if there is any delay built into the grid that would
    slow the transition from a renderer to an editor.  Clicking in the
    grid doesn't result in an instant transition.  I've got a client who
    is a fast typist and the delay when switching is causing problems. Is
    that a style thing, or does it switch as fast as Flex can.
    
    Thanks,
    
    John
    
    
    

    [flexcoders] LogTarget filter for custom MXML components

    2007-12-21 Thread jkahn_117
    I would like to enable logging from custom MXML components without
    seeing log messages from Flex components (in the mx.* namespace).
    
    In other words, I would like my FooPanel component to log messages,
    but not the RemoteObject component.  To make this work, I have need to
    set the LogTarget filter to "*", instead of something like
    "foo.mycomponents.*".  This works as expected for all AS classes.
    
    Am I missing something? Is there a way to define a package/namespace
    for MXML that can be referenced from the filter?
    
    Thanks,
    Josh
    
    
    

    [flexcoders] FZip: New build released: Read, create and modify ZIP archives

    2007-12-21 Thread Claus Wahlers
    Hi all,
    
    FYI, i released a new build of FZip (1.0.055)
    
    http://codeazur.com.br/lab/fzip/
    
    This new build fixes compiler errors in non-AIR projects and development 
    environments and adds new API functions to create/modify ZIP archives 
    (addFile, addFileAt, addFileFromString, addFileFromStringAt, 
    removeFileAt, serialize).
    
    FZip is an AS3 class library to load, modify and create standard ZIP 
    archives. FZip parses ZIP archives progressively, allowing access to 
    contained files while the archive is loading.
    
    Cheers,
    Claus.
    
    

    [flexcoders] Re: Getting all XML child elements ...

    2007-12-21 Thread ben.clinkinbeard
    http://livedocs.adobe.com/labs/flex3/langref/XML.html#child()
    http://livedocs.adobe.com/labs/flex3/langref/XML.html#descendants()
    
    
    HTH,
    Ben
    
    
    --- In flexcoders@yahoogroups.com, "dan_of_philly"
    <[EMAIL PROTECTED]> wrote:
    >
    > Hey,
    > 
    > I'm trying to get all the child nodes for an element in an XML tree
    > given a node passed to a function as a string.
    > 
    > For example, given the xml:
    > 
    > 
    > 
    > ...
    > ...
    > ...
    > 
    > 
    > ...
    > ...
    > ...
    > 
    > 
    > 
    > that is stored in say : var xml XMLList = " ..."
    > 
    > and I have a function trying to return all the child nodes when given
    > a certain element, how would I get the child nodes ? xml.. doesnt
    > work if its a string.
    > 
    > public function getChildNodes( name:String):XMLList
    > {
    > var x:XMLList = xml..name ; // doesnt work ! Looks for 'name' node
    > return x;
    > }
    > 
    > Assuming name:String = "sec" , I would want the function to return:
    > 
    > "
    > ...
    > ...
    > ...
    > "
    > 
    > Is the only answer to iterate through the entire tree ? That seems
    > ridiculous ! I have a large xml tree, so I really dont want to
    > iterate through it each time.
    > 
    > Any help is appreciated. Thanks
    >
    
    
    
    

    [flexcoders] Re: Binding - from Item renderer back to datasource

    2007-12-21 Thread ben.clinkinbeard
    http://www.returnundefined.com/2007/11/efficient-reusable-and-centered-checkbox-renderers-for-datagrids
    
    
    
    
    --- In flexcoders@yahoogroups.com, mark goldin <[EMAIL PROTECTED]>
    wrote:
    >
    > What exactly do I need to update in order to store new data from a
    custom item renderer editing DataGrid?
    >   Do I have to work with a dataProvider or DataGrid?
    >   Some code sample would be nice.
    >
    >   Thanks
    >
    
    
    
    

    [flexcoders] IGNORE - rawChildren's children not interacting with mouse- is this new?

    2007-12-21 Thread ben.clinkinbeard
    Sorry, disregard this. Depth issue with another item.
    
    
    
    --- In flexcoders@yahoogroups.com, "ben.clinkinbeard"
    <[EMAIL PROTECTED]> wrote:
    >
    > Something odd is going on with code that worked an hour ago. I have
    > some buttons I am adding into a container and then am adding that to
    > rawChildren. The buttons have buttonMode set to true. They are
    > behaving as if mouseEnabled is set to false. If I add the buttons'
    > parent via addChild() rather than rawChildren.addChild() things work
    > as expected.
    > 
    > Any ideas?
    > 
    > Thanks,
    > Ben
    >
    
    
    
    

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

    2007-12-21 Thread simonjpalmer
    if that's all your doing, then could you not expose an API specfic to
    the purpose and use a different protocol, for instance AMF via RPC for
    access from your flash client?  If you are really only showing a form
    and presenting some choices this sounds like it could be a pretty
    trivial re-factoring of existing server code.
    
    --- In flexcoders@yahoogroups.com, João <[EMAIL PROTECTED]> wrote:
    >
    > First of all, thank you for you suggestions. This module doesn't imply
    > a user login. It's a tool available to everyone that let's the visitor
    > fill a form, and at the end the module will offer a list of services
    > depending on the data provided. 
    > You could easily ask: "so, if the module is publicly accessible, why
    > wouldn't the web-service be also available if both provide the same
    > data?". The question here is that, among other things, the client
    > doesn't want other providers to use it's service. 
    > 
    > Having the key hard-coded on the client application, even if
    > encrypted, wouldn't solve nothing since with a man on the middle
    > attack it would be possible to get the key and replicate it. 
    > I will read some documentation about public key infrastructures, and i
    > guess i will find easily a teorical solution from what i recall from
    > what i've learned on university. But what i need to know is if Adobe
    > Flex has tools (on the SDK, or others available as open-source) to
    > help us solve this kind of problems. And also, if there is some
    > documentation or examples available on the internet around this
    > subject for the flash platform.
    > 
    > Thanks, 
    > 
    > João Saleiro
    > 
    > http://.riapt.pt
    > http://www.webfuel.pt
    >
    
    
    
    

    [flexcoders] rawChildren's children not interacting with mouse- is this new?

    2007-12-21 Thread ben.clinkinbeard
    Something odd is going on with code that worked an hour ago. I have
    some buttons I am adding into a container and then am adding that to
    rawChildren. The buttons have buttonMode set to true. They are
    behaving as if mouseEnabled is set to false. If I add the buttons'
    parent via addChild() rather than rawChildren.addChild() things work
    as expected.
    
    Any ideas?
    
    Thanks,
    Ben
    
    
    

    [flexcoders] Re: how to pass varible between screens?

    2007-12-21 Thread simonjpalmer
    Can't you do this...
    
    put your ViewStack in a control and put a bindable variable in that
    control and each of the FormXView controls as well
    
    e.g...
    
    and in each of the ViewXControls script blocks...
    
    [Bindable] public var my_var_ref:String;
    
    and in the enclosing control...
    
    
    
    
    
      
      
      
    ...
    
    
    Operate on my_var_ref in each of the views and binding will make sure
    the value is transferred to the my_var_ref control variables.
    
    If you want to take it a step further and have a genuine app wide
    singleton you can put my_var on your app and either add a public
    static getInstance() method to your app or refer to it through
    myApp(Application.application).my_var;
    
    hth
    Simon
    
    --- In flexcoders@yahoogroups.com, "markflex2007" <[EMAIL PROTECTED]>
    wrote:
    >
    > Hi,
    > 
    > I have some screens under ViewStack like this
    >   
    >  
    >
    > 
    > 
    >   
    >   
    > 
    > I have a variable in Form1View  but how I can get the variable in 
    > Form2View.
    > 
    > backend language have session variables,I am not sure if Flex also 
    > have the same function like session variable.
    > 
    > Please help me out.Thanks
    > 
    > Thanks
    > 
    > Mark
    >
    
    
    
    

    RE: [flexcoders] Getting all XML child elements ...

    2007-12-21 Thread Seth Caldwell
    I run into this problem sometimes, that you can't syntactically get at a
    variable name using . syntax like object.varname. (example if varname has a
    space)
    
    Instead you can do object[varname] .
    
    I'm not sure if it will work with the XMLList object, but try this:
    
     
    
    public function getChildNodes( name:String):XMLList
    {
    var x:XMLList = xml[name] ; // doesnt work ! Looks for 'name' node
    return x;
    }
    
     
    
     
    
    From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
    Behalf Of dan_of_philly
    Sent: Friday, December 21, 2007 8:56 AM
    To: flexcoders@yahoogroups.com
    Subject: [flexcoders] Getting all XML child elements ...
    
     
    
    Hey,
    
    I'm trying to get all the child nodes for an element in an XML tree
    given a node passed to a function as a string.
    
    For example, given the xml:
    
    
    
    ...
    ...
    ...
    
    
    ...
    ...
    ...
    
    
    
    that is stored in say : var xml XMLList = " ..."
    
    and I have a function trying to return all the child nodes when given
    a certain element, how would I get the child nodes ? xml.. doesnt
    work if its a string.
    
    public function getChildNodes( name:String):XMLList
    {
    var x:XMLList = xml..name ; // doesnt work ! Looks for 'name' node
    return x;
    }
    
    Assuming name:String = "sec" , I would want the function to return:
    
    "
    ...
    ...
    ...
    "
    
    Is the only answer to iterate through the entire tree ? That seems
    ridiculous ! I have a large xml tree, so I really dont want to
    iterate through it each time.
    
    Any help is appreciated. Thanks
    
     
    
    
    

    [flexcoders] Re: creationComplete question?

    2007-12-21 Thread rueter007
    The viewstack dispatches a 'change' event when the selectedChild
    changes. Use this event to do whatever you want in that particular
    child (check if the selectedChild == this in the child component).
    
    --- In flexcoders@yahoogroups.com, Mark Shen <[EMAIL PROTECTED]> wrote:
    >
    > But createPolicy is empty now but all the createComplate called at
    beginning?
    > 
    > I need it called when it selected.How to fix this?
    > 
    > Mark
    > 
    > 
    > - Original Message 
    > From: rueter007 <[EMAIL PROTECTED]>
    > To: flexcoders@yahoogroups.com
    > Sent: Friday, December 21, 2007 2:04:47 PM
    > Subject: [flexcoders] Re: creationComplete question?
    > 
    > is the creationPolicy set to 'all' on the viewstack? make sure it is
    > 'auto'('auto' is the default if nothing is specified). This will
    > create the components the first time they are selected rather than at
    > the beginning.
    > 
    > - venkat
    > http://www.venkatj. com
    > 
    > --- In [EMAIL PROTECTED] ups.com, "markflex2007" 
    > wrote:
    > >
    > > Hi
    > > 
    > > I have some screens under ViewStack like this
    > > 
    > > 
    > > 
    > > 
    > > 
    > > 
    > > 
    > > 
    > > I have set creationComplete event to call a function for Form2View,
    > > but the event is actived when I call the app first time(it show 
    > > Form1View at first).
    > > 
    > > I hope the creationComplete event work when I reach Form2View, 
    > > Please help me to know how to control this.
    > > 
    > > Thanks
    > > 
    > > Mark
    > >
    > 
    > 
    > 
    > 
    > 
    >  
    
    > Be a better friend, newshound, and 
    > know-it-all with Yahoo! Mobile.  Try it now. 
    http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
    >
    
    
    
    

    [flexcoders] Re: DataGrid question

    2007-12-21 Thread rueter007
    do you have a different namespace for your datagrid in mxml? use the
    same for the columns property too.
    
    - venkat
    http://www.venkatj.com
    
    --- In flexcoders@yahoogroups.com, "djhatrick" <[EMAIL PROTECTED]> wrote:
    >
    > OK, i did this but now i get a compile errror
    > 
    > Severity and Description  PathResourceLocation
    > Creation Time   Id
    > Could not resolve  to a component implementation.
    > UFC_Beta2/src/components  ScoreBox.mxml   line 1111198265309079   
    > 357198
    > 
    > 
    > 
    > --- In flexcoders@yahoogroups.com, "rueter007"  wrote:
    > >
    > > it is a protected method. you can override it.
    > > 
    > > override protected function selectItem(item:IListItemRenderer,
    > > shiftKey:Boolean, ctrlKey:Boolean, transition:Boolean = true):Boolean 
    > > {
    > > }
    > > 
    > > - venkat
    > > http://www.venkatj.com
    > > 
    > > --- In flexcoders@yahoogroups.com, mark goldin 
    > > wrote:
    > > >
    > > > How do you override selectItem?
    > > > 
    > > > "ben.clinkinbeard"  wrote:  Subclass
    > > DataGrid and override selectItem, drawHighlightIndicator and
    > > > drawSelectionIndicator so that they do nothing.
    > > > 
    > > > --- In flexcoders@yahoogroups.com, "djhatrick"  wrote:
    > > > >
    > > > > I asked a while back and didn't see an example of how to
    > override the
    > > > > method that selects an item in a datagrid, or for mouseovers for
    > that
    > > > > reason. I am using a datagrid in an application, and it's a dummy
    > > > > datagrid just shows data - I don't want to select anything or
    > > > > highlight anything.
    > > > > 
    > > > > 
    > > > > 
    > > > > Any help? 
    > > > > Thanks,
    > > > > Patrick
    > > > >
    > > >
    > >
    >
    
    
    
    

    [flexcoders] Re: setting mxml attributes in actionscript when those properties don't exist

    2007-12-21 Thread rueter007
    the styles and events can be set in mxml if they are defined using the
    Style and Event metadata tag (This is just for convenience). However,
    in actionscript, they should still use the setStyle method to do so.
    
    --- In flexcoders@yahoogroups.com, "Seth Caldwell" <[EMAIL PROTECTED]> wrote:
    >
    > Well, I solved the problem by using
    > adgc.setStyle("headerStyleName","someStyle");  - however I'm still
    confused
    > as to how there are attributes you can specify in mxml that can't be set
    > programmatically.
    > 
    > I've encountered this elsewhere also - is it just a styles thing?
    > 
    >  
    > 
    > Seth
    > 
    >  
    > 
    > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
    > Behalf Of Seth Caldwell
    > Sent: Friday, December 21, 2007 11:20 AM
    > To: flexcoders@yahoogroups.com
    > Subject: [flexcoders] setting mxml attributes in actionscript when those
    > properties don't exist
    > 
    >  
    > 
    > For example, I'm wanting to set the headerStyleName on an
    > AdvancedDataGridColumn. which you can do with mxml:
    > 
    > 
    > However, when I try to do it with actionscript:
    > 
    >  
    > 
    > var adgc:AdvancedDataGridColumn = new AdvancedDataGridColumn();
    > 
    > adgc.headerStyleName = "someStyle";
    > 
    >  
    > 
    > I get the error that headerStyleName is not defined on
    > AdvancedDataGridColumn.
    > 
    > Huh?
    > 
    >  
    > 
    > Whats going on here, and how can I set it programmatically? 
    > 
    >  
    > 
    > Thanks,
    > 
    >  
    > 
    > Seth
    >
    
    
    
    

    [flexcoders] Re: DataGrid question

    2007-12-21 Thread djhatrick
    OK, i did this but now i get a compile errror
    
    Severity and DescriptionPathResourceLocation
    Creation Time   Id
    Could not resolve  to a component implementation.
    UFC_Beta2/src/componentsScoreBox.mxml   line 1111198265309079   
    357198
    
    
    
    --- In flexcoders@yahoogroups.com, "rueter007" <[EMAIL PROTECTED]> wrote:
    >
    > it is a protected method. you can override it.
    > 
    > override protected function selectItem(item:IListItemRenderer,
    > shiftKey:Boolean, ctrlKey:Boolean, transition:Boolean = true):Boolean 
    > {
    > }
    > 
    > - venkat
    > http://www.venkatj.com
    > 
    > --- In flexcoders@yahoogroups.com, mark goldin 
    > wrote:
    > >
    > > How do you override selectItem?
    > > 
    > > "ben.clinkinbeard"  wrote:  Subclass
    > DataGrid and override selectItem, drawHighlightIndicator and
    > > drawSelectionIndicator so that they do nothing.
    > > 
    > > --- In flexcoders@yahoogroups.com, "djhatrick"  wrote:
    > > >
    > > > I asked a while back and didn't see an example of how to
    override the
    > > > method that selects an item in a datagrid, or for mouseovers for
    that
    > > > reason. I am using a datagrid in an application, and it's a dummy
    > > > datagrid just shows data - I don't want to select anything or
    > > > highlight anything.
    > > > 
    > > > 
    > > > 
    > > > Any help? 
    > > > Thanks,
    > > > Patrick
    > > >
    > >
    >
    
    
    
    

    RE: [flexcoders] setting mxml attributes in actionscript when those properties don't exist

    2007-12-21 Thread Seth Caldwell
    Well, I solved the problem by using
    adgc.setStyle("headerStyleName","someStyle");  - however I'm still confused
    as to how there are attributes you can specify in mxml that can't be set
    programmatically.
    
    I've encountered this elsewhere also - is it just a styles thing?
    
     
    
    Seth
    
     
    
    From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
    Behalf Of Seth Caldwell
    Sent: Friday, December 21, 2007 11:20 AM
    To: flexcoders@yahoogroups.com
    Subject: [flexcoders] setting mxml attributes in actionscript when those
    properties don't exist
    
     
    
    For example, I'm wanting to set the headerStyleName on an
    AdvancedDataGridColumn. which you can do with mxml:
    
    
    However, when I try to do it with actionscript:
    
     
    
    var adgc:AdvancedDataGridColumn = new AdvancedDataGridColumn();
    
    adgc.headerStyleName = "someStyle";
    
     
    
    I get the error that headerStyleName is not defined on
    AdvancedDataGridColumn.
    
    Huh?
    
     
    
    Whats going on here, and how can I set it programmatically? 
    
     
    
    Thanks,
    
     
    
    Seth
    
     
    
    
    

    [flexcoders] Re: setting mxml attributes in actionscript when those properties don't exist

    2007-12-21 Thread rueter007
    it is a style and all styles should be set using the setStyle() method
    in actionscript.
    
    - venkat
    http://www.venkatj.com
    
    --- In flexcoders@yahoogroups.com, "Seth Caldwell" <[EMAIL PROTECTED]> wrote:
    >
    > For example, I'm wanting to set the headerStyleName on an
    > AdvancedDataGridColumn. which you can do with mxml:
    > 
    > 
    > However, when I try to do it with actionscript:
    > 
    >  
    > 
    > var adgc:AdvancedDataGridColumn = new AdvancedDataGridColumn();
    > 
    > adgc.headerStyleName = "someStyle";
    > 
    >  
    > 
    > I get the error that headerStyleName is not defined on
    > AdvancedDataGridColumn.
    > 
    > Huh?
    > 
    >  
    > 
    > Whats going on here, and how can I set it programmatically? 
    > 
    >  
    > 
    > Thanks,
    > 
    >  
    > 
    > Seth
    >
    
    
    
    

    [flexcoders] Binding - from Item renderer back to datasource

    2007-12-21 Thread mark goldin
    What exactly do I need to update in order to store new data from a custom item 
    renderer editing DataGrid?
      Do I have to work with a dataProvider or DataGrid?
      Some code sample would be nice.
       
      Thanks
    
    

    [flexcoders] setting mxml attributes in actionscript when those properties don't exist

    2007-12-21 Thread Seth Caldwell
    For example, I'm wanting to set the headerStyleName on an
    AdvancedDataGridColumn. which you can do with mxml:
    
    
    However, when I try to do it with actionscript:
    
     
    
    var adgc:AdvancedDataGridColumn = new AdvancedDataGridColumn();
    
    adgc.headerStyleName = "someStyle";
    
     
    
    I get the error that headerStyleName is not defined on
    AdvancedDataGridColumn.
    
    Huh?
    
     
    
    Whats going on here, and how can I set it programmatically? 
    
     
    
    Thanks,
    
     
    
    Seth
    
    
    

    Re: [flexcoders] Re: creationComplete question?

    2007-12-21 Thread Mark Shen
    But createPolicy is empty now but all the createComplate called at beginning?
    
    I need it called when it selected.How to fix this?
    
    Mark
    
    
    - Original Message 
    From: rueter007 <[EMAIL PROTECTED]>
    To: flexcoders@yahoogroups.com
    Sent: Friday, December 21, 2007 2:04:47 PM
    Subject: [flexcoders] Re: creationComplete question?
    
    is the creationPolicy set to 'all' on the viewstack? make sure it is
    'auto'('auto' is the default if nothing is specified). This will
    create the components the first time they are selected rather than at
    the beginning.
    
    - venkat
    http://www.venkatj. com
    
    --- In [EMAIL PROTECTED] ups.com, "markflex2007" 
    wrote:
    >
    > Hi
    > 
    > I have some screens under ViewStack like this
    > 
    > 
    > 
    > 
    > 
    > 
    > 
    > 
    > I have set creationComplete event to call a function for Form2View,
    > but the event is actived when I call the app first time(it show 
    > Form1View at first).
    > 
    > I hope the creationComplete event work when I reach Form2View, 
    > Please help me to know how to control this.
    > 
    > Thanks
    > 
    > Mark
    >
    
    
    
    
    
      
    
    Be a better friend, newshound, and 
    know-it-all with Yahoo! Mobile.  Try it now.  
    http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 
    
    

    [flexcoders] Re: Adobe on Vacation

    2007-12-21 Thread bill_reddy
    Thanks for the great work Matt & Adobe team.  Best wishes to you and 
    your families.
    
    Bill
    
    
    

    [flexcoders] Re: Personnalization of a radiobutton

    2007-12-21 Thread rueter007
    you can use either a skin for the different states of the button (up,
    over, down etc) or use icons for all these states. 
    
    --- In flexcoders@yahoogroups.com, "johnnhoj123411"
    <[EMAIL PROTECTED]> wrote:
    >
    > Hi,
    > 
    > I would like to personnalize my RadioButton in order to display my own
    > diod image instead of the default round button.
    > 
    > The sources (and images) of RadioButton are available but the display
    > of this part is handled by lower component which are not open source ...
    > 
    > Has someone any idea how I could do that?
    > 
    > Thanks,
    > 
    > John
    >
    
    
    
    

    [flexcoders] Getting all XML child elements ...

    2007-12-21 Thread dan_of_philly
    Hey,
    
    I'm trying to get all the child nodes for an element in an XML tree
    given a node passed to a function as a string.
    
    For example, given the xml:
    
    
    
    ...
    ...
    ...
    
    
    ...
    ...
    ...
    
    
    
    that is stored in say : var xml XMLList = " ..."
    
    and I have a function trying to return all the child nodes when given
    a certain element, how would I get the child nodes ? xml.. doesnt
    work if its a string.
    
    public function getChildNodes( name:String):XMLList
    {
    var x:XMLList = xml..name ; // doesnt work ! Looks for 'name' node
    return x;
    }
    
    Assuming name:String = "sec" , I would want the function to return:
    
    "
    ...
    ...
    ...
    "
    
    Is the only answer to iterate through the entire tree ? That seems
    ridiculous ! I have a large xml tree, so I really dont want to
    iterate through it each time.
    
    Any help is appreciated. Thanks
    
    
    

    [flexcoders] Personnalization of a radiobutton

    2007-12-21 Thread johnnhoj123411
    Hi,
    
    I would like to personnalize my RadioButton in order to display my own
    diod image instead of the default round button.
    
    The sources (and images) of RadioButton are available but the display
    of this part is handled by lower component which are not open source ...
    
    Has someone any idea how I could do that?
    
    Thanks,
    
    John
    
    
    

    [flexcoders] Torn Edge effect

    2007-12-21 Thread Joel Marks
    I have a requirement to dynamically apply a torn edge effect to an
    image.  I have done some research and wasn't able to find anything out
    there.
    
    Can anyone help me out?
    
    Thanks.
    
    
    

    [flexcoders] Webservices: request built via AS instead of binding in mxml definition

    2007-12-21 Thread rlmattax
    Is it possible to do this?
    
    I want to set up the webservice and the operations in the mxml. 
    However, I wanted to be able to pass arguments as I perform the
    .send() on the operation.  When I do this it doesn't seem to work.  Am
    I not able to mix and match mxml w/ AS Webservice functionality?  Do I
    have to do it all in one of the other?
    
    Thanks.
    Bob
    
    
    

    [flexcoders] Flex Builder 3 beta 3 - Drag and Drop no longer works

    2007-12-21 Thread Andrew Jones
    Hello - 
    I have 2 flex projects (built in Flex Builder 3 beta 2) that both use
    a lot of drag/drop in the application.  This morning I upgraded to
    Flex Builder 3 beta 3, and now I get an error everytime I click on an
    object to initiate a drag.  The error in the console is as follows:
    undefined
    at
    mx.collections::ArrayList()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src\mx\collections\ArrayList.as:81]
    at mx.collections::ArrayCollection/set
    source()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src\mx\collections\ArrayCollection.as:114]
    at
    mx.collections::ArrayCollection()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src\mx\collections\ArrayCollection.as:78]
    at comp::Activity()[/Users/andrewjones/Documents/Flex Builder
    3/ParkCity/flex_src/comp/Activity.mxml:163]
    
    And it opens the ArrayList.as class file in debug mode.
    
    Has anyone else run into this problem, and if so can you let me know
    what I need to change to make drag/drop work in F3 beta 3?
    
    Thanks!
    
    
    
    

    [flexcoders] Re: creationComplete question?

    2007-12-21 Thread rueter007
    is the creationPolicy set to 'all' on the viewstack? make sure it is
    'auto'('auto' is the default if nothing is specified). This will
    create the components the first time they are selected rather than at
    the beginning.
    
    - venkat
    http://www.venkatj.com
    
    
    --- In flexcoders@yahoogroups.com, "markflex2007" <[EMAIL PROTECTED]>
    wrote:
    >
    > Hi
    > 
    > I have some screens under ViewStack like this
    >  
    >   
    > 
    > 
    > 
    > 
    >   
    > 
    > I have set creationComplete event to call a function for Form2View,
    > but the event is actived when I call the app first time(it show 
    > Form1View at first).
    > 
    > I hope the creationComplete event work when I reach Form2View, 
    > Please help me to know how to control this.
    > 
    > Thanks
    > 
    > Mark
    >
    
    
    
    

    [flexcoders] creationComplete question?

    2007-12-21 Thread markflex2007
    Hi
    
    I have some screens under ViewStack like this
     
      
    
    
    
    
      
    
    I have set creationComplete event to call a function for Form2View,
    but the event is actived when I call the app first time(it show 
    Form1View at first).
    
    I hope the creationComplete event work when I reach Form2View, 
    Please help me to know how to control this.
    
    Thanks
    
    Mark
    
    
    

    Re: [flexcoders] how to pass varible between screens?

    2007-12-21 Thread Paul Andrews
    
      - Original Message - 
      From: Paul Andrews 
      To: flexcoders@yahoogroups.com 
      Sent: Friday, December 21, 2007 6:16 PM
      Subject: Re: [flexcoders] how to pass varible between screens?
    
    
      - Original Message - 
    From: Mark Shen 
    To: flexcoders@yahoogroups.com 
    Sent: Friday, December 21, 2007 5:51 PM
    Subject: Re: [flexcoders] how to pass varible between screens?
    
    
    yes I use singleton and I can bind the variable.
    
    
    
    My question is how to use modelLocator.sID in actionscipt.
    
    I use the statement like
    
    filePrefix = modelLocator.sID; 
    
      It should look more like:
    
      filePrefix = ModelLocator.getInstance().sID; 
    
      Check out singletons again!
    
    Of course, if you've done this:
    
    modelLocator = ModelLocator.getInstance();
    
    then your example should work if the property sID is bindable. Did you get any 
    warnings about bindings?
    
    Paul
    
    
      Paul
    
    
    But no event call the statement .the filePrefix  is empty.
    
    Thanks
    
    
    - Original Message 
    From: Paul Andrews <[EMAIL PROTECTED]>
    To: flexcoders@yahoogroups.com
    Sent: Friday, December 21, 2007 12:45:37 PM
    Subject: Re: [flexcoders] how to pass varible between screens?
    
    
    Mark, check out the use of singletons, a singleton will solve your problem.
    
    Paul
    
    - Original Message - 
    From: "markflex2007" 
    To: <[EMAIL PROTECTED] ups.com>
    Sent: Friday, December 21, 2007 5:09 PM
    Subject: [flexcoders] how to pass varible between screens?
    
    > Hi,
    >
    > I have some screens under ViewStack like this
    >
    > 
    > 
    > 
    > 
    > 
    > 
    >
    > I have a variable in Form1View but how I can get the variable in
    > Form2View.
    >
    > backend language have session variables,I am not sure if Flex also
    > have the same function like session variable.
    >
    > Please help me out.Thanks
    >
    > Thanks
    >
    > Mark
    >
    >
    >
    > --
    > Flexcoders Mailing List
    > FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt
    > Search Archives: http://www.mail- archive.com/ flexcoders% 40yahoogroups. 
    com
    > Yahoo! Groups Links
    >
    >
    >
    > 
    
    
    
    
    
    
    
    
    Never miss a thing. Make Yahoo your homepage. 
       
    

    [flexcoders] Re: Accordion, the FlexEvent.SHOW isn't fired the first time a panel is shown

    2007-12-21 Thread ben.clinkinbeard
    I would listen for the change event of the parent component (TN has
    one, I assume Accordian is the same) and just track if its the first
    time a component has become active. You could also listen for the
    creationComplete event of each child, though I am not sure of the
    specifics off the top of my head to access the yet-to-be-created
    children's creationComplete events.
    
    
    HTH,
    Ben
    
    
    --- In flexcoders@yahoogroups.com, "dave_defusion" <[EMAIL PROTECTED]>
    wrote:
    >
    > I'm trying to add something into a panel in an accordion, I'm using
    > the FlexEvent.SHOW to add the contents once the panel is displayed
    > (this works pretty much everywhere else - e.g. a tab navigator). In my
    > case trying to add the contents to a non visible element doesn't work
    > (as I'm trying to get bitmap data), so I have to wait until they're
    > visible before I can add my stuff. 
    > 
    > But in the Accordion it appears the FlexEvent.SHOW isn't fired the
    > first time a panel is shown (the event listener added to the VBox that
    > wraps panels content) -- it's fired the second time the panel is shown
    > but never on the first time. I've tried listening for
    > FlexEvent.INITIALIZE but that seems to be firing a little too early
    > for what I'm doing.
    > 
    > Basically all I need to know is as soon as a given panels content is
    > displayed. I'd like a one solution fits all so for tab navigators etc.
    > I only want to add my content when a non visible element becomes
    > visible, but failing that I can add a specific workaround (if it's
    > possible) to make it handle accordions different.
    > 
    > Any ideas?
    > 
    > Hope that makes sense.
    > 
    > -D
    >
    
    
    
    

    Re: [flexcoders] how to pass varible between screens?

    2007-12-21 Thread Muzak
    Look into the PropertyChangeEvent or Watcher.
    
    If your Model is bindable, a PropertyChangeEvent.PROPERTY_CHANGE is dispatched 
    every time a bindable class property changes.
    
    regards,
    Muzak
    
    - Original Message - 
    From: "Mark Shen" <[EMAIL PROTECTED]>
    To: 
    Sent: Friday, December 21, 2007 6:51 PM
    Subject: Re: [flexcoders] how to pass varible between screens?
    
    
    > yes I use singleton and I can bind the variable.
    > 
    > 
    > 
    > My question is how to use modelLocator.sID in actionscipt.
    > 
    > I use the statement like
    > 
    > filePrefix = modelLocator.sID; 
    > 
    > But no event call the statement .the filePrefix  is empty.
    > 
    > Thanks
    
    
    
    --
    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: Accordion, the FlexEvent.SHOW isn't fired the first time a panel is shown

    2007-12-21 Thread rueter007
    Hey, all these containers(TabNavigator, accordion etc) fire a change
    event when the current tab changes. 
    
    I would add the following event handler for the creation complete event.
    
      private function handleCreationComplete(): void
      {
    if(TabNavigator(this.parent).selectedChild == this)
    {
      handleTabChange();
    }
    else
    {
      TabNavigator(this.parent).addEventListener('change',
    handleTabChange);
    }
      }
    
    In the handleTabChange(), I would check if this is the first time this
    child is visible by maintaining a class level variable and set it to
    true the first time this function is called.
    
    HTH.
    
    - venkat
    http://www.venkatj.com
    
    --- In flexcoders@yahoogroups.com, "dave_defusion" <[EMAIL PROTECTED]>
    wrote:
    >
    > I'm trying to add something into a panel in an accordion, I'm using
    > the FlexEvent.SHOW to add the contents once the panel is displayed
    > (this works pretty much everywhere else - e.g. a tab navigator). In my
    > case trying to add the contents to a non visible element doesn't work
    > (as I'm trying to get bitmap data), so I have to wait until they're
    > visible before I can add my stuff. 
    > 
    > But in the Accordion it appears the FlexEvent.SHOW isn't fired the
    > first time a panel is shown (the event listener added to the VBox that
    > wraps panels content) -- it's fired the second time the panel is shown
    > but never on the first time. I've tried listening for
    > FlexEvent.INITIALIZE but that seems to be firing a little too early
    > for what I'm doing.
    > 
    > Basically all I need to know is as soon as a given panels content is
    > displayed. I'd like a one solution fits all so for tab navigators etc.
    > I only want to add my content when a non visible element becomes
    > visible, but failing that I can add a specific workaround (if it's
    > possible) to make it handle accordions different.
    > 
    > Any ideas?
    > 
    > Hope that makes sense.
    > 
    > -D
    >
    
    
    
    

    Re: [flexcoders] how to pass varible between screens?

    2007-12-21 Thread Paul Andrews
    - Original Message - 
      From: Mark Shen 
      To: flexcoders@yahoogroups.com 
      Sent: Friday, December 21, 2007 5:51 PM
      Subject: Re: [flexcoders] how to pass varible between screens?
    
    
      yes I use singleton and I can bind the variable.
    
      
    
      My question is how to use modelLocator.sID in actionscipt.
    
      I use the statement like
    
      filePrefix = modelLocator.sID; 
    
    It should look more like:
    
    filePrefix = ModelLocator.getInstance().sID; 
    
    Check out singletons again!
    
    Paul
    
    
      But no event call the statement .the filePrefix  is empty.
    
      Thanks
    
    
      - Original Message 
      From: Paul Andrews <[EMAIL PROTECTED]>
      To: flexcoders@yahoogroups.com
      Sent: Friday, December 21, 2007 12:45:37 PM
      Subject: Re: [flexcoders] how to pass varible between screens?
    
    
      Mark, check out the use of singletons, a singleton will solve your problem.
    
      Paul
    
      - Original Message - 
      From: "markflex2007" 
      To: <[EMAIL PROTECTED] ups.com>
      Sent: Friday, December 21, 2007 5:09 PM
      Subject: [flexcoders] how to pass varible between screens?
    
      > Hi,
      >
      > I have some screens under ViewStack like this
      >
      > 
      > 
      > 
      > 
      > 
      > 
      >
      > I have a variable in Form1View but how I can get the variable in
      > Form2View.
      >
      > backend language have session variables,I am not sure if Flex also
      > have the same function like session variable.
      >
      > Please help me out.Thanks
      >
      > Thanks
      >
      > Mark
      >
      >
      >
      > --
      > Flexcoders Mailing List
      > FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt
      > Search Archives: http://www.mail- archive.com/ flexcoders% 40yahoogroups. 
    com
      > Yahoo! Groups Links
      >
      >
      >
      > 
    
    
    
    
    
    
    
    --
      Never miss a thing. Make Yahoo your homepage.  
    

    Re: [flexcoders] ComboBox ItemRenderer

    2007-12-21 Thread mark goldin
    No, that's not what I meant. I mean without using any ids, names, and etc.
      Something like other environments have: parent. 
      Why can't I after I got a reference to an itemRenderer simply go up on an 
    object chain to get to DG and then talk to its dataProvider:
      itemRenderer.parent.parent.gd.dataProvider
      updating it with a new data from an itemRenderer? am I completely off here?
    
    Dominique Bessette - Halsema <[EMAIL PROTECTED]> wrote:
    you can talk to anything in your parentApplication by doing
       
      parentApplication.
       
      the variable parentApplication is a set flex variable that get's all the data 
    in the main app.
       
       
       
       
       
      
    
     
      On 12/21/07, mark goldin <[EMAIL PROTECTED]> wrote:   Aha, I see. 
    Let me make sure I understand. 
      ownerData is defined in set method. That means it's set as many times as many 
    rows are in the DG, right? But why can't I talk directly to the dataProvider of 
    my DG? Or using a private var is the direct way?   
    
    Dominique Bessette - Halsema <[EMAIL PROTECTED] > wrote:
    
      ownerdata is a variable that is set to the DG's row data.
       
      ownerData = value as XML;
       
      get's the row data.  sorry i should have commented it more
      
    
     
      On 12/21/07, mark goldin <[EMAIL PROTECTED] > wrote: Not sure I 
    understand about ownerData. Is it a hard coded dataProvider name for DG? I am 
    working on a generic solution, I can't use hard coded names. Sorry, if I am 
    misunderstanding your solution.   
    
    Dominique Bessette - Halsema <[EMAIL PROTECTED] > wrote: Here is the 
    code for the itemRenderer for a combobox i made.  The dataProvider is xml.
       
       
      
    http://www.adobe.com/2006/mxml "
     rowCount="2" labelField="@name" dataProvider="{weemcStatus}" 
    change="onSelectionChange(event)"> 
     
    
     
    
    
    
      On 12/20/07, mark goldin <[EMAIL PROTECTED] > wrote:   I am using 
    a Combobox as an itemRenderer for one of columns in a DG. I have managed to 
    intercept "change" event of the combobox. But what do I do to store new value 
    from Combo into DG's dataProvider for the following data save to the server? 
      What is an actual design pattern for that?
       
      Thanks much for help.
      
      
    
    
    
    
    
    
    
      
    
    
    
    
      
      
    
    
    
    
    
    
    
      
    
    
    
    
      
      
    
    
    
    
    
    
      
    
     
    
    

    Re: [flexcoders] ComboBox ItemRenderer

    2007-12-21 Thread Dominique Bessette - Halsema
    you can talk to anything in your parentApplication by doing
    
    *parentApplication.*
    
    the variable parentApplication is a set flex variable that get's all the
    data in the main app.
    
    
    **
    
    
    
    
    
    On 12/21/07, mark goldin <[EMAIL PROTECTED]> wrote:
    >
    >Aha, I see. Let me make sure I understand.
    > ownerData is defined in set method. That means it's set as many times as
    > many rows are in the DG, right? But why can't I talk directly to the
    > dataProvider of my DG? Or using a private var is the direct way?
    >
    > *Dominique Bessette - Halsema <[EMAIL PROTECTED]>* wrote:
    >
    >  ownerdata is a variable that is set to the DG's row data.
    >
    > *ownerData = value as XML;*
    > **
    > get's the row data.  sorry i should have commented it more
    >
    >
    >
    > On 12/21/07, mark goldin <[EMAIL PROTECTED]> wrote:
    > >
    > >   Not sure I understand about ownerData. Is it a hard coded dataProvider
    > > name for DG? I am working on a generic solution, I can't use hard coded
    > > names. Sorry, if I am misunderstanding your solution.
    > >
    > > *Dominique Bessette - Halsema <[EMAIL PROTECTED] >* wrote:
    > >
    > >  Here is the code for the itemRenderer for a combobox i made.  The
    > > dataProvider is xml.
    > >
    > >
    > > 
    > > http://www.adobe.com/2006/mxml "
    > >  rowCount="2" labelField="@name" dataProvider="{weemcStatus}"
    > > change="onSelectionChange(event)">
    > >  
    > > 
    > > 
    > > 
    > >
    > >
    > > On 12/20/07, mark goldin <[EMAIL PROTECTED] > wrote:
    > > >
    > > >I am using a Combobox as an itemRenderer for one of columns in a
    > > > DG. I have managed to intercept "change" event of the combobox. But what 
    > > > do
    > > > I do to store new value from Combo into DG's dataProvider for the 
    > > > following
    > > > data save to the server?
    > > > What is an actual design pattern for that?
    > > >
    > > > Thanks much for help.
    > > >
    > >
    > >
    > >
    >
    > 
    >
    
    

    [flexcoders] Accordion, the FlexEvent.SHOW isn't fired the first time a panel is shown

    2007-12-21 Thread dave_defusion
    I'm trying to add something into a panel in an accordion, I'm using
    the FlexEvent.SHOW to add the contents once the panel is displayed
    (this works pretty much everywhere else - e.g. a tab navigator). In my
    case trying to add the contents to a non visible element doesn't work
    (as I'm trying to get bitmap data), so I have to wait until they're
    visible before I can add my stuff. 
    
    But in the Accordion it appears the FlexEvent.SHOW isn't fired the
    first time a panel is shown (the event listener added to the VBox that
    wraps panels content) -- it's fired the second time the panel is shown
    but never on the first time. I've tried listening for
    FlexEvent.INITIALIZE but that seems to be firing a little too early
    for what I'm doing.
    
    Basically all I need to know is as soon as a given panels content is
    displayed. I'd like a one solution fits all so for tab navigators etc.
    I only want to add my content when a non visible element becomes
    visible, but failing that I can add a specific workaround (if it's
    possible) to make it handle accordions different.
    
    Any ideas?
    
    Hope that makes sense.
    
    -D
    
    
    

    Re: [flexcoders] how to pass varible between screens?

    2007-12-21 Thread Mark Shen
    This is for control variable,but I need pass actionscript variable between 
    screens.Thanks
    
    Mark
    
    
    - Original Message 
    From: Mike Anderson <[EMAIL PROTECTED]>
    To: flexcoders@yahoogroups.com
    Sent: Friday, December 21, 2007 12:44:54 PM
    Subject: RE: [flexcoders] how to pass varible between screens?
    
    No matter WHERE you are in your application, you can traverse the tree
    by accessing:
    
    Application. application.  .
    Application. application.  . 
    
    etc.
    
    -Original Message-
    From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On
    Behalf Of markflex2007
    Sent: Friday, December 21, 2007 11:09 AM
    To: [EMAIL PROTECTED] ups.com
    Subject: [flexcoders] how to pass varible between screens?
    
    Hi,
    
    I have some screens under ViewStack like this
    
     
    
     
     
     
    
    
    I have a variable in Form1View but how I can get the variable in
    Form2View.
    
    backend language have session variables,I am not sure if Flex also have
    the same function like session variable.
    
    Please help me out.Thanks
    
    Thanks
    
    Mark
    
    --
    Flexcoders Mailing List
    FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.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 
    
    

    Re: [flexcoders] how to pass varible between screens?

    2007-12-21 Thread Mark Shen
    I use creationComplete="initVar()" in component page .it has same problem,why?
    
    Mark
    
    
    - Original Message 
    From: Mark Shen <[EMAIL PROTECTED]>
    To: flexcoders@yahoogroups.com
    Sent: Friday, December 21, 2007 12:51:57 PM
    Subject: Re: [flexcoders] how to pass varible between screens?
    
    yes I use singleton and I can bind the variable.
     
    
     
    My question is how to use modelLocator. sID in actionscipt.
     
    I use the statement like
     
    filePrefix = modelLocator. sID; 
     
    But no event call the statement .the filePrefix  is empty.
     
    Thanks
    
    
    - Original Message 
    From: Paul Andrews <[EMAIL PROTECTED] com>
    To: [EMAIL PROTECTED] ups.com
    Sent: Friday, December 21, 2007 12:45:37 PM
    Subject: Re: [flexcoders] how to pass varible between screens?
    
    
    Mark, check out the use of singletons, a singleton will solve your problem.
    
    Paul
    
    - Original Message - 
    From: "markflex2007" 
    To: <[EMAIL PROTECTED] ups.com>
    Sent: Friday, December 21, 2007 5:09 PM
    Subject: [flexcoders] how to pass varible between screens?
    
    > Hi,
    >
    > I have some screens under ViewStack like this
    >
    > 
    > 
    > 
    > 
    > 
    > 
    >
    > I have a variable in Form1View but how I can get the variable in
    > Form2View.
    >
    > backend language have session variables,I am not sure if Flex also
    > have the same function like session variable.
    >
    > Please help me out.Thanks
    >
    > Thanks
    >
    > Mark
    >
    >
    >
    > --
    > Flexcoders Mailing List
    > FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt
    > Search Archives: http://www.mail- archive.com/ flexcoders% 40yahoogroups. com
    > Yahoo! Groups Links
    >
    >
    >
    > 
    
    
    
    
    
    
    
    Never miss a thing. Make Yahoo your homepage. 
    
    
    
      
    
    Never miss a thing.  Make Yahoo your home page. 
    http://www.yahoo.com/r/hs
    

    Re: [flexcoders] how to pass varible between screens?

    2007-12-21 Thread Mark Shen
    yes I use singleton and I can bind the variable.
    
    
    
    My question is how to use modelLocator.sID in actionscipt.
    
    I use the statement like
    
    filePrefix = modelLocator.sID; 
    
    But no event call the statement .the filePrefix  is empty.
    
    Thanks
    
    
    - Original Message 
    From: Paul Andrews <[EMAIL PROTECTED]>
    To: flexcoders@yahoogroups.com
    Sent: Friday, December 21, 2007 12:45:37 PM
    Subject: Re: [flexcoders] how to pass varible between screens?
    
    Mark, check out the use of singletons, a singleton will solve your problem.
    
    Paul
    
    - Original Message - 
    From: "markflex2007" 
    To: <[EMAIL PROTECTED] ups.com>
    Sent: Friday, December 21, 2007 5:09 PM
    Subject: [flexcoders] how to pass varible between screens?
    
    > Hi,
    >
    > I have some screens under ViewStack like this
    >
    > 
    > 
    > 
    > 
    > 
    > 
    >
    > I have a variable in Form1View but how I can get the variable in
    > Form2View.
    >
    > backend language have session variables,I am not sure if Flex also
    > have the same function like session variable.
    >
    > Please help me out.Thanks
    >
    > Thanks
    >
    > Mark
    >
    >
    >
    > --
    > Flexcoders Mailing List
    > FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.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: New Two-way Binding Metatag??

    2007-12-21 Thread t0ml33
    That was the one!  Thanks a million.
    
    --- In flexcoders@yahoogroups.com, "rueter007" <[EMAIL PROTECTED]> wrote:
    >
    > As far as I know, there is a no new metatag or any change.
    > You must have come across Ely's post on how to create your own
    > metadata tags where he talks about creating a tag that can do two 
    way
    > binding.
    > 
    > check out the latest post on www.quietlyscheming.com
    > 
    > - venkat
    > http://www.venkatj.com
    > 
    > --- In flexcoders@yahoogroups.com, "t0ml33"  wrote:
    > >
    > > Hey everyone,
    > > 
    > > A month or so ago I came across a blog posting regarding a new 
    metatag 
    > > or maybe a change to [Bindable] that added support for two-way 
    bindings 
    > > in Flex 3.  Now I can't find it anywhere...  Did I hallucinate 
    that, or 
    > > did you guys see it too?
    > > 
    > > Thanks!
    > > 
    > > -tom
    > >
    >
    
    
    
    

    RE: [flexcoders] how to pass varible between screens?

    2007-12-21 Thread Mike Anderson
    No matter WHERE you are in your application, you can traverse the tree
    by accessing:
    
    Application.application..
    Application.application.. 
    
    etc.
    
    -Original Message-
    From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
    Behalf Of markflex2007
    Sent: Friday, December 21, 2007 11:09 AM
    To: flexcoders@yahoogroups.com
    Subject: [flexcoders] how to pass varible between screens?
    
    Hi,
    
    I have some screens under ViewStack like this
      
       
     
      
      
    
    
    
    I have a variable in Form1View  but how I can get the variable in
    Form2View.
    
    backend language have session variables,I am not sure if Flex also have
    the same function like session variable.
    
    Please help me out.Thanks
    
    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
    
    
    
    
    

    Re: [flexcoders] how to pass varible between screens?

    2007-12-21 Thread Paul Andrews
    Mark, check out the use of singletons, a singleton will solve your problem.
    
    Paul
    
    - Original Message - 
    From: "markflex2007" <[EMAIL PROTECTED]>
    To: 
    Sent: Friday, December 21, 2007 5:09 PM
    Subject: [flexcoders] how to pass varible between screens?
    
    
    > Hi,
    >
    > I have some screens under ViewStack like this
    >
    >  
    > 
    > 
    > 
    > 
    > 
    >
    > I have a variable in Form1View  but how I can get the variable in
    > Form2View.
    >
    > backend language have session variables,I am not sure if Flex also
    > have the same function like session variable.
    >
    > Please help me out.Thanks
    >
    > 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
    >
    >
    >
    > 
    
    
    

    Re: [flexcoders] ComboBox ItemRenderer

    2007-12-21 Thread mark goldin
    Aha, I see. Let me make sure I understand. 
      ownerData is defined in set method. That means it's set as many times as many 
    rows are in the DG, right? But why can't I talk directly to the dataProvider of 
    my DG? Or using a private var is the direct way?
    
    Dominique Bessette - Halsema <[EMAIL PROTECTED]> wrote:
    ownerdata is a variable that is set to the DG's row data.
       
      ownerData = value as XML;
       
      get's the row data.  sorry i should have commented it more
      
    
     
      On 12/21/07, mark goldin <[EMAIL PROTECTED]> wrote: Not sure I 
    understand about ownerData. Is it a hard coded dataProvider name for DG? I am 
    working on a generic solution, I can't use hard coded names. Sorry, if I am 
    misunderstanding your solution.   
    
    Dominique Bessette - Halsema <[EMAIL PROTECTED] > wrote: Here is the 
    code for the itemRenderer for a combobox i made.  The dataProvider is xml.
       
       
      
    http://www.adobe.com/2006/mxml "
     rowCount="2" labelField="@name" dataProvider="{weemcStatus}" 
    change="onSelectionChange(event)"> 
     
    
     
    
    
    
      On 12/20/07, mark goldin <[EMAIL PROTECTED] > wrote:   I am using 
    a Combobox as an itemRenderer for one of columns in a DG. I have managed to 
    intercept "change" event of the combobox. But what do I do to store new value 
    from Combo into DG's dataProvider for the following data save to the server? 
      What is an actual design pattern for that?
       
      Thanks much for help.
      
      
    
    
    
    
    
    
    
      
    
    
    
    
      
      
    
    
    
    
    
    
      
    
     
    
    

    Re: [flexcoders] ComboBox ItemRenderer

    2007-12-21 Thread Dominique Bessette - Halsema
    ownerdata is a variable that is set to the DG's row data.
    
    *ownerData = value as XML;*
    **
    get's the row data.  sorry i should have commented it more
    
    
    
    On 12/21/07, mark goldin <[EMAIL PROTECTED]> wrote:
    >
    >   Not sure I understand about ownerData. Is it a hard coded dataProvider
    > name for DG? I am working on a generic solution, I can't use hard coded
    > names. Sorry, if I am misunderstanding your solution.
    >
    > *Dominique Bessette - Halsema <[EMAIL PROTECTED]>* wrote:
    >
    >  Here is the code for the itemRenderer for a combobox i made.  The
    > dataProvider is xml.
    >
    >
    > 
    > http://www.adobe.com/2006/mxml";
    >  rowCount="2" labelField="@name" dataProvider="{weemcStatus}"
    > change="onSelectionChange(event)">
    >  
    > 
    > 
    > 
    >
    >
    > On 12/20/07, mark goldin <[EMAIL PROTECTED]> wrote:
    > >
    > >I am using a Combobox as an itemRenderer for one of columns in a DG.
    > > I have managed to intercept "change" event of the combobox. But what do I do
    > > to store new value from Combo into DG's dataProvider for the following data
    > > save to the server?
    > > What is an actual design pattern for that?
    > >
    > > Thanks much for help.
    > >
    >
    >
    > 
    >
    
    

    RE: [flexcoders] Stylesheet to AS3 App?

    2007-12-21 Thread Alex Harui
    I wouldn't say it isn't possible, just very hard.  If you build a simple
    mx:Application with the MXMLC option -keep-generated-actionscript,
    you'll see how much code the compiler generates to get the styles
    working for you.  You can certainly manually duplicate all of that
    yourself.
    
     
    
    
    
    From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
    Behalf Of Tony
    Sent: Friday, December 21, 2007 6:43 AM
    To: flexcoders@yahoogroups.com
    Subject: Re: [flexcoders] Stylesheet to AS3 App?
    
     
    
    so this is NOT possible?
    
    for real?
    
    tony
    
    On Dec 20, 2007 10:29 PM, Alex Harui <[EMAIL PROTECTED]
     > wrote:
    >
    >
    >
    >
    >
    >
    >
    >
    >
    > That's the price you pay for not using mx:Application. It comes with
    lots
    > of cool features such as css support for non-text components.
    >
    >
    >
    > 
    >
    >
    > From: flexcoders@yahoogroups.com 
    [mailto:flexcoders@yahoogroups.com 
    ] On
    > Behalf Of Rastafari
    > Sent: Thursday, December 20, 2007 2:13 PM
    > To: flexcoders@yahoogroups.com  
    > Subject: [flexcoders] Stylesheet to AS3 App?
    >
    >
    >
    >
    >
    >
    >
    > hi there.
    >
    > i can apply a stylesheet no problem, to a mxml application.
    > however, in an as3 only application, i cant seem to figure out how
    > to do this.
    >
    > i can TextFormat using a stylesheet, when its text, no problem.
    >
    > just cant figure out how to do it for the whole app. mainly i want a
    > background
    > gradient and some background alpha changes.
    >
    > thanks for any help
    > tony
    >
    > 
    
    -- 
    'Never have anything in your life that you can't walk out on in thirty
    seconds flat, if you spot the heat coming around the corner'
    
    robert deniro - heat (1995)
    
     
    
    
    

    Re: [flexcoders] ComboBox ItemRenderer

    2007-12-21 Thread mark goldin
    Not sure I understand about ownerData. Is it a hard coded dataProvider name for 
    DG? I am working on a generic solution, I can't use hard coded names. Sorry, if 
    I am misunderstanding your solution.
    
    Dominique Bessette - Halsema <[EMAIL PROTECTED]> wrote:Here is the 
    code for the itemRenderer for a combobox i made.  The dataProvider is xml.
       
       
      
    http://www.adobe.com/2006/mxml";
     rowCount="2" labelField="@name" dataProvider="{weemcStatus}" 
    change="onSelectionChange(event)"> 
     
    
     
    
    
    
      On 12/20/07, mark goldin <[EMAIL PROTECTED]> wrote:   I am using 
    a Combobox as an itemRenderer for one of columns in a DG. I have managed to 
    intercept "change" event of the combobox. But what do I do to store new value 
    from Combo into DG's dataProvider for the following data save to the server? 
      What is an actual design pattern for that?
       
      Thanks much for help.
      
      
    
    
    
    
    
    
      
    
     
    
    

    [flexcoders] how to pass varible between screens?

    2007-12-21 Thread markflex2007
    Hi,
    
    I have some screens under ViewStack like this
      
       
     
      
      
    
    
    
    I have a variable in Form1View  but how I can get the variable in 
    Form2View.
    
    backend language have session variables,I am not sure if Flex also 
    have the same function like session variable.
    
    Please help me out.Thanks
    
    Thanks
    
    Mark
    
    
    

    Re: [flexcoders] ComboBox ItemRenderer

    2007-12-21 Thread Dominique Bessette - Halsema
    Here is the code for the itemRenderer for a combobox i made.  The
    dataProvider is xml.
    
    
    
    http://www.adobe.com/2006/mxml";
     rowCount="2" labelField="@name" dataProvider="{weemcStatus}"
    change="onSelectionChange(event)">
     
    
    
    
    
    
    On 12/20/07, mark goldin <[EMAIL PROTECTED]> wrote:
    >
    >I am using a Combobox as an itemRenderer for one of columns in a DG. I
    > have managed to intercept "change" event of the combobox. But what do I do
    > to store new value from Combo into DG's dataProvider for the following data
    > save to the server?
    > What is an actual design pattern for that?
    >
    > Thanks much for help.
    >
    > 
    >
    
    

    [flexcoders] Re: DataGrid question

    2007-12-21 Thread rueter007
    it is a protected method. you can override it.
    
    override protected function selectItem(item:IListItemRenderer,
    shiftKey:Boolean, ctrlKey:Boolean, transition:Boolean = true):Boolean 
    {
    }
    
    - venkat
    http://www.venkatj.com
    
    --- In flexcoders@yahoogroups.com, mark goldin <[EMAIL PROTECTED]>
    wrote:
    >
    > How do you override selectItem?
    > 
    > "ben.clinkinbeard" <[EMAIL PROTECTED]> wrote:  Subclass
    DataGrid and override selectItem, drawHighlightIndicator and
    > drawSelectionIndicator so that they do nothing.
    > 
    > --- In flexcoders@yahoogroups.com, "djhatrick"  wrote:
    > >
    > > I asked a while back and didn't see an example of how to override the
    > > method that selects an item in a datagrid, or for mouseovers for that
    > > reason. I am using a datagrid in an application, and it's a dummy
    > > datagrid just shows data - I don't want to select anything or
    > > highlight anything.
    > > 
    > > 
    > > 
    > > Any help? 
    > > Thanks,
    > > Patrick
    > >
    >
    
    
    
    

    Re: [flexcoders] Re: DataGrid question

    2007-12-21 Thread mark goldin
    How do you override selectItem?
    
    "ben.clinkinbeard" <[EMAIL PROTECTED]> wrote:  Subclass DataGrid and 
    override selectItem, drawHighlightIndicator and
    drawSelectionIndicator so that they do nothing.
    
    --- In flexcoders@yahoogroups.com, "djhatrick" <[EMAIL PROTECTED]> wrote:
    >
    > I asked a while back and didn't see an example of how to override the
    > method that selects an item in a datagrid, or for mouseovers for that
    > reason. I am using a datagrid in an application, and it's a dummy
    > datagrid just shows data - I don't want to select anything or
    > highlight anything.
    > 
    > 
    > 
    > Any help? 
    > Thanks,
    > Patrick
    >
    
    
    
     
    
    

    RE: [flexcoders] New Two-way Binding Metatag??

    2007-12-21 Thread Matt Chotin
    Wasn't something we added to Flex itself, though I'm hoping we can get
    two-way binding in Flex 4.
    
     
    
    Matt
    
     
    
    From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
    Behalf Of t0ml33
    Sent: Friday, December 21, 2007 8:20 AM
    To: flexcoders@yahoogroups.com
    Subject: [flexcoders] New Two-way Binding Metatag??
    
     
    
    Hey everyone,
    
    A month or so ago I came across a blog posting regarding a new metatag 
    or maybe a change to [Bindable] that added support for two-way bindings 
    in Flex 3. Now I can't find it anywhere... Did I hallucinate that, or 
    did you guys see it too?
    
    Thanks!
    
    -tom
    
     
    
    
    

    [flexcoders] Re: New Two-way Binding Metatag??

    2007-12-21 Thread rueter007
    As far as I know, there is a no new metatag or any change.
    You must have come across Ely's post on how to create your own
    metadata tags where he talks about creating a tag that can do two way
    binding.
    
    check out the latest post on www.quietlyscheming.com
    
    - venkat
    http://www.venkatj.com
    
    --- In flexcoders@yahoogroups.com, "t0ml33" <[EMAIL PROTECTED]> wrote:
    >
    > Hey everyone,
    > 
    > A month or so ago I came across a blog posting regarding a new metatag 
    > or maybe a change to [Bindable] that added support for two-way bindings 
    > in Flex 3.  Now I can't find it anywhere...  Did I hallucinate that, or 
    > did you guys see it too?
    > 
    > Thanks!
    > 
    > -tom
    >
    
    
    
    

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

    2007-12-21 Thread João
    First of all, thank you for you suggestions. This module doesn't imply
    a user login. It's a tool available to everyone that let's the visitor
    fill a form, and at the end the module will offer a list of services
    depending on the data provided. 
    You could easily ask: "so, if the module is publicly accessible, why
    wouldn't the web-service be also available if both provide the same
    data?". The question here is that, among other things, the client
    doesn't want other providers to use it's service. 
    
    Having the key hard-coded on the client application, even if
    encrypted, wouldn't solve nothing since with a man on the middle
    attack it would be possible to get the key and replicate it. 
    I will read some documentation about public key infrastructures, and i
    guess i will find easily a teorical solution from what i recall from
    what i've learned on university. But what i need to know is if Adobe
    Flex has tools (on the SDK, or others available as open-source) to
    help us solve this kind of problems. And also, if there is some
    documentation or examples available on the internet around this
    subject for the flash platform.
    
    Thanks, 
    
    João Saleiro
    
    http://.riapt.pt
    http://www.webfuel.pt
    
    
    

    [flexcoders] Re: SWF File Size

    2007-12-21 Thread danielvlopes
    In my opnion best way to reduce file size is frameworkcaching (now the
    flash player release work and you can make update automatically from
    your html wrapper), using modules when you get big app, try not embed
    anything... 
    
    --- In flexcoders@yahoogroups.com, "Samuel R. Neff" <[EMAIL PROTECTED]>
    wrote:
    >
    > 
    > Actually if you want to use them in Flash then I think the first
    method I
    > mentioned of using an ActionScript project is the only option. 
    Flash CS3
    > has it's own framework that is not compatible with the Flex
    framework and
    > thus if you want to create components for Flash you need to use the
    Flash
    > framework, which you can do from an ActionScript project but not
    from a Flex
    > project.
    > 
    > Sounds like too much trouble to me though.. personally I would stick
    with
    > one or the other (with Flex being my strong preference).
    > 
    > HTH,
    > 
    > Sam 
    > 
    > 
    > ---
    > We're Hiring! Seeking a passionate developer to join our team
    building Flex
    > based products. Position is in the Washington D.C. metro area. If
    interested
    > contact [EMAIL PROTECTED]
    >  
    > -Original Message-
    > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
    > Behalf Of sdl1326
    > Sent: Friday, December 21, 2007 12:12 AM
    > To: flexcoders@yahoogroups.com
    > Subject: [flexcoders] Re: SWF File Size
    > 
    > Thanks for the very detailed response. Initially, I am trying to
    > create some components in Flex and use them (import) in Flash, thus
    > the reason for the small file size. As I am sure you are aware, they
    > stripped a lot of the better/more used components(IMO) out of CS3. I
    > am not sure if I can still use the method you first mention for what I
    > want to do?
    > 
    > Thanks again.
    >
    
    
    
    

    [flexcoders] Re: DataGrid question

    2007-12-21 Thread rueter007
    you beat me to the answer ben ;-)
    
    --- In flexcoders@yahoogroups.com, "ben.clinkinbeard"
    <[EMAIL PROTECTED]> wrote:
    >
    > Subclass DataGrid and override selectItem, drawHighlightIndicator and
    > drawSelectionIndicator so that they do nothing.
    > 
    > 
    > 
    > 
    > 
    > --- In flexcoders@yahoogroups.com, "djhatrick"  wrote:
    > >
    > > I asked a while back and didn't see an example of how to override the
    > > method that selects an item in a datagrid, or for mouseovers for that
    > > reason. I am using a datagrid in an application, and it's a dummy
    > > datagrid just shows data - I don't want to select anything or
    > > highlight anything.
    > > 
    > > 
    > > 
    > > Any help? 
    > > Thanks,
    > > Patrick
    > >
    >
    
    
    
    

    [flexcoders] Re: DataGrid question

    2007-12-21 Thread rueter007
    Not sure if this is the right way, but it definitely works.
    
    There are two protected methods inside the DataGrid that are
    responsible for drawing the selection and highligting.
    
    drawHighlightIndicator
    drawSelectionIndicator.
    
    override these methods with blank implementation.
    
    - venkat
    http://www.venkatj.com
    
    --- In flexcoders@yahoogroups.com, Joe <[EMAIL PROTECTED]> wrote:
    >
    > Would defining a new methiod, then calling super.dataGrid() work?
    > 
    > Im starting to get into the Flex side of AS3, right now all I have
    is the
    > OOP side of flash. So I don't know the method calls yet. :P
    > 
    > -Joe
    > 
    > 
    > On Dec 21, 2007 10:42 AM, djhatrick <[EMAIL PROTECTED]> wrote:
    > 
    > >   I asked a while back and didn't see an example of how to
    override the
    > > method that selects an item in a datagrid, or for mouseovers for that
    > > reason. I am using a datagrid in an application, and it's a dummy
    > > datagrid just shows data - I don't want to select anything or
    > > highlight anything.
    > >
    > > Any help?
    > > Thanks,
    > > Patrick
    > >
    > >  
    > >
    >
    
    
    
    

    [flexcoders] Re: DataGrid question

    2007-12-21 Thread ben.clinkinbeard
    Subclass DataGrid and override selectItem, drawHighlightIndicator and
    drawSelectionIndicator so that they do nothing.
    
    
    
    
    
    --- In flexcoders@yahoogroups.com, "djhatrick" <[EMAIL PROTECTED]> wrote:
    >
    > I asked a while back and didn't see an example of how to override the
    > method that selects an item in a datagrid, or for mouseovers for that
    > reason. I am using a datagrid in an application, and it's a dummy
    > datagrid just shows data - I don't want to select anything or
    > highlight anything.
    > 
    > 
    > 
    > Any help? 
    > Thanks,
    > Patrick
    >
    
    
    
    

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

    2007-12-21 Thread Frederico Garcia
    
    I think the best way would be implementing some kind of handshake protocol.
    There are plenty of encryption algorithms available. You could save the
    passwords encrypted (using sha1) on the DB and then just send it encrypted
    on every request. On the server side you just had to check if there was any
    matching password before you reply. Still subject to brute force attacks,
    but enough for most cases.
    
    
    
    João Saleiro wrote:
    > 
    > Hi, 
    > 
    > we are building an enterprise application using Flex. One module of
    > the application will be accessible on the internet so users can access
    > some data from the main system, without requiring a login.
    > 
    > This module communicates with a web-service. It is already finished
    > and working fine, but the client needs to make sure that the
    > web-service is only accessible to our specific Flash client. Other
    > clients should not be able to request data from the web-service, since
    > it might compromise the business behind it.
    > 
    > If there isn't a "perfect" solution, our client is not worried with
    > the fact that SWF's can be decompiled, so there is a possibility to
    > have something like a "key" hard-coded on the flash module, and a way
    > to use encription to respond to a challenge made by the server -
    > avoiding at least man on the middle attacks, i guess.
    > Some years ago i have studied a bit of public key infrastructures, but
    > never applied it on a project.
    > 
    > I am far from being expert on security, but this is really important,
    > since without a rather reasonable solution a big part of the project
    > will be useless.
    > 
    > What solutions do you propose? Does Flex have some kind of tools to
    > solve this problems?
    > 
    > Thanks, 
    > 
    > João Saleiro
    > 
    > www.riapt.org
    > www.webfuel.pt
    > 
    > 
    > 
    
    -- 
    View this message in context: 
    http://www.nabble.com/Solutions-for-provide-a-secure-access-to-a-Web-Service-using-Flex-tp14456430p14458004.html
    Sent from the FlexCoders mailing list archive at Nabble.com.
    
    
    

    Re: [flexcoders] DataGrid question

    2007-12-21 Thread Joe
    Would defining a new methiod, then calling super.dataGrid() work?
    
    Im starting to get into the Flex side of AS3, right now all I have is the
    OOP side of flash. So I don't know the method calls yet. :P
    
    -Joe
    
    
    On Dec 21, 2007 10:42 AM, djhatrick <[EMAIL PROTECTED]> wrote:
    
    >   I asked a while back and didn't see an example of how to override the
    > method that selects an item in a datagrid, or for mouseovers for that
    > reason. I am using a datagrid in an application, and it's a dummy
    > datagrid just shows data - I don't want to select anything or
    > highlight anything.
    >
    > Any help?
    > Thanks,
    > Patrick
    >
    >  
    >
    
    

    [flexcoders] New Two-way Binding Metatag??

    2007-12-21 Thread t0ml33
    Hey everyone,
    
    A month or so ago I came across a blog posting regarding a new metatag 
    or maybe a change to [Bindable] that added support for two-way bindings 
    in Flex 3.  Now I can't find it anywhere...  Did I hallucinate that, or 
    did you guys see it too?
    
    Thanks!
    
    -tom
    
    
    

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

    2007-12-21 Thread fmotagarcia
    Hi,
    
    maybe you could use some kind of handshake protocol. There are plenty
    key based encryption algorithms. On the request you could encrypt the
    username and on server side decrypt and check if the username was
    valid. Still vulnerable to brute force attacks, but enough for most cases.
    
    --- In flexcoders@yahoogroups.com, João <[EMAIL PROTECTED]> wrote:
    >
    > Hi, 
    > 
    > we are building an enterprise application using Flex. One module of
    > the application will be accessible on the internet so users can access
    > some data from the main system, without requiring a login.
    > 
    > This module communicates with a web-service. It is already finished
    > and working fine, but the client needs to make sure that the
    > web-service is only accessible to our specific Flash client. Other
    > clients should not be able to request data from the web-service, since
    > it might compromise the business behind it.
    > 
    > If there isn't a "perfect" solution, our client is not worried with
    > the fact that SWF's can be decompiled, so there is a possibility to
    > have something like a "key" hard-coded on the flash module, and a way
    > to use encription to respond to a challenge made by the server -
    > avoiding at least man on the middle attacks, i guess.
    > Some years ago i have studied a bit of public key infrastructures, but
    > never applied it on a project.
    > 
    > I am far from being expert on security, but this is really important,
    > since without a rather reasonable solution a big part of the project
    > will be useless.
    > 
    > What solutions do you propose? Does Flex have some kind of tools to
    > solve this problems?
    > 
    > Thanks, 
    > 
    > João Saleiro
    > 
    > www.riapt.org
    > www.webfuel.pt
    >
    
    
    
    

    [flexcoders] Re: DataGrid question

    2007-12-21 Thread fmotagarcia
    maybe the easy way is changing the style. Just make your highlight
    colors the same has the alternate colors.
    
    --- In flexcoders@yahoogroups.com, "djhatrick" <[EMAIL PROTECTED]> wrote:
    >
    > I asked a while back and didn't see an example of how to override the
    > method that selects an item in a datagrid, or for mouseovers for that
    > reason. I am using a datagrid in an application, and it's a dummy
    > datagrid just shows data - I don't want to select anything or
    > highlight anything.
    > 
    > 
    > 
    > Any help? 
    > Thanks,
    > Patrick
    >
    
    
    
    

    [flexcoders] DataGrid question

    2007-12-21 Thread djhatrick
    I asked a while back and didn't see an example of how to override the
    method that selects an item in a datagrid, or for mouseovers for that
    reason. I am using a datagrid in an application, and it's a dummy
    datagrid just shows data - I don't want to select anything or
    highlight anything.
    
    
    
    Any help? 
    Thanks,
    Patrick
    
    
    

    [flexcoders] Re: URLRequest file upload doesn't work with security?

    2007-12-21 Thread Matt
    I created a hacky resolution to this problem if anyone is interested:
    
    http://www.matthicks.com/?p=22
    
    Hope that helps someone else.
    
    
    

    Re: [flexcoders] New App Developed in Flex

    2007-12-21 Thread Andrew Wetmore
    Some typos in the site, but the functionality looks good.
    
    
       - Typo in the regstration page: *Retrive Password should be "Retrieve"
       *
    
    
    
       - Company info page: Text should be left justified, not full, to get a
       better display. Text "making the company's position more stronger in the
       market" should lose "more"
    
    If you give me a login, I would be happy to proofread all pages.
    
    a
    
    
    On Dec 21, 2007 5:06 AM, MATTIKOPPA <[EMAIL PROTECTED]> wrote:
    
    >   Guys Take a look at new application developed in Flex.
    >
    > http:\\vat.relyonsoft.com\1.php
    >
    > let me know what you people feel
    >
    > regards
    >
    >  
    >
    
    
    
    -- 
    Andrew Wetmore
    User Experience Director
    Open Learning Exchange - www.ole.org
    978-319-7324
    
    

    RE: [flexcoders] Stylesheet to AS3 App?

    2007-12-21 Thread Samuel R. Neff
    
    As Alex implied, CSS support is provided by the Flex framework, not Flash
    player.  If you don't use the Flex framework, then you can't use CSS other
    than specifically within Flash's built-in text boxes.
    
    Sam 
    
    
    ---
    We're Hiring! Seeking a passionate developer to join our team building Flex
    based products. Position is in the Washington D.C. metro area. If interested
    contact [EMAIL PROTECTED]
     
    -Original Message-
    From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
    Behalf Of Tony
    Sent: Friday, December 21, 2007 9:43 AM
    To: flexcoders@yahoogroups.com
    Subject: Re: [flexcoders] Stylesheet to AS3 App?
    
    so this is NOT possible?
    
    for real?
    
    tony
    
    On Dec 20, 2007 10:29 PM, Alex Harui <[EMAIL PROTECTED]> wrote:
    >
    > That's the price you pay for not using mx:Application.  It comes with lots
    > of cool features such as css support for non-text components.
    >
    
    
    

    RE: [flexcoders] Connecting Flex with SQL Server

    2007-12-21 Thread Samuel R. Neff
    
    If you're calling out to a service then by definition you have a server side
    application running which exactly was what the MSSQL-HTTP stuff is trying to
    avoid (and to reiterate, it's not a good, using a server side application is
    best like .NET, Java, CF, PHP, whatever).
    
    Sam
    
    
    ---
    We're Hiring! Seeking a passionate developer to join our team building Flex
    based products. Position is in the Washington D.C. metro area. If interested
    contact [EMAIL PROTECTED]
     
    -Original Message-
    From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
    Behalf Of [EMAIL PROTECTED]
    Sent: Friday, December 21, 2007 9:18 AM
    To: flexcoders@yahoogroups.com
    Subject: Re: [flexcoders] Connecting Flex with SQL Server
    
    On Thu, Dec 20, 2007 at 11:59:26AM -0500, Samuel R. Neff wrote:
    
    > Using direct HTTP calls to MSSQL requires embedding sql server
    > username/password into the swf which is not a good idea.
    
    You could call out to a service to pick up the username and password 
    (which is still sketchy security practice).
    
    -Jeff
    
    
    

    Re: [flexcoders] Stylesheet to AS3 App?

    2007-12-21 Thread Tony
    so this is NOT possible?
    
    for real?
    
    tony
    
    On Dec 20, 2007 10:29 PM, Alex Harui <[EMAIL PROTECTED]> wrote:
    >
    >
    >
    >
    >
    >
    >
    >
    >
    > That's the price you pay for not using mx:Application.  It comes with lots
    > of cool features such as css support for non-text components.
    >
    >
    >
    >  
    >
    >
    > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
    > Behalf Of Rastafari
    >  Sent: Thursday, December 20, 2007 2:13 PM
    >  To: flexcoders@yahoogroups.com
    >  Subject: [flexcoders] Stylesheet to AS3 App?
    >
    >
    >
    >
    >
    >
    >
    > hi there.
    >
    >  i can apply a stylesheet no problem, to a mxml application.
    >  however, in an as3 only application, i cant seem to figure out how
    >  to do this.
    >
    >  i can TextFormat using a stylesheet, when its text, no problem.
    >
    >  just cant figure out how to do it for the whole app. mainly i want a
    > background
    >  gradient and some background alpha changes.
    >
    >  thanks for any help
    >  tony
    >
    >  
    
    
    
    -- 
    'Never have anything in your life that you can't walk out on in thirty
    seconds flat, if you spot the heat coming around the corner'
    
    robert deniro - heat (1995)
    
    

    RE: [flexcoders] Re: SWF File Size

    2007-12-21 Thread Samuel R. Neff
    
    Actually if you want to use them in Flash then I think the first method I
    mentioned of using an ActionScript project is the only option.  Flash CS3
    has it's own framework that is not compatible with the Flex framework and
    thus if you want to create components for Flash you need to use the Flash
    framework, which you can do from an ActionScript project but not from a Flex
    project.
    
    Sounds like too much trouble to me though.. personally I would stick with
    one or the other (with Flex being my strong preference).
    
    HTH,
    
    Sam 
    
    
    ---
    We're Hiring! Seeking a passionate developer to join our team building Flex
    based products. Position is in the Washington D.C. metro area. If interested
    contact [EMAIL PROTECTED]
     
    -Original Message-
    From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
    Behalf Of sdl1326
    Sent: Friday, December 21, 2007 12:12 AM
    To: flexcoders@yahoogroups.com
    Subject: [flexcoders] Re: SWF File Size
    
    Thanks for the very detailed response. Initially, I am trying to
    create some components in Flex and use them (import) in Flash, thus
    the reason for the small file size. As I am sure you are aware, they
    stripped a lot of the better/more used components(IMO) out of CS3. I
    am not sure if I can still use the method you first mention for what I
    want to do?
    
    Thanks again.
    
    
    

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

    2007-12-21 Thread João
    Hi, 
    
    we are building an enterprise application using Flex. One module of
    the application will be accessible on the internet so users can access
    some data from the main system, without requiring a login.
    
    This module communicates with a web-service. It is already finished
    and working fine, but the client needs to make sure that the
    web-service is only accessible to our specific Flash client. Other
    clients should not be able to request data from the web-service, since
    it might compromise the business behind it.
    
    If there isn't a "perfect" solution, our client is not worried with
    the fact that SWF's can be decompiled, so there is a possibility to
    have something like a "key" hard-coded on the flash module, and a way
    to use encription to respond to a challenge made by the server -
    avoiding at least man on the middle attacks, i guess.
    Some years ago i have studied a bit of public key infrastructures, but
    never applied it on a project.
    
    I am far from being expert on security, but this is really important,
    since without a rather reasonable solution a big part of the project
    will be useless.
    
    What solutions do you propose? Does Flex have some kind of tools to
    solve this problems?
    
    Thanks, 
    
    João Saleiro
    
    www.riapt.org
    www.webfuel.pt
    
    
    

    Re: [flexcoders] Connecting Flex with SQL Server

    2007-12-21 Thread jeff
    On Thu, Dec 20, 2007 at 11:59:26AM -0500, Samuel R. Neff wrote:
    
    > Using direct HTTP calls to MSSQL requires embedding sql server
    > username/password into the swf which is not a good idea.
    
    You could call out to a service to pick up the username and password 
    (which is still sketchy security practice).
    
    -Jeff
    
    

      1   2   >