Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

flexcoders · RIA Development with Adobe Flex

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 12336
  • Category: Development
  • Founded: Mar 17, 2004
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

Advanced
Messages Help
Messages 20830 - 20859 of 165719   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#20830 From: "Mika Kiljunen" <mika.kiljunen@...>
Date: Thu Sep 1, 2005 10:13 am
Subject: RE: Re: Jboss throws out of memory error
mkiljune
Send Email Send Email
 

Yep, add something like this to your JBoss run.bat:

 

set JAVA_OPTS=%JAVA_OPTS% -server -Xms256m -Xmx768m

 

-Mika

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of kaibabsowats
Sent: 1. syyskuuta 2005 8:23
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Jboss throws out of memory error

 

The Xms and Xmx JVM parameters set the default memory settings.  By
default Sun's JVM is set to 64Mb which is not high enough for most
server applications.

I dont know JBoss well enough, but you should be able to Google on
JBoss and Xms and Xmx settings.  It will have to do with JAVA_OPTS or
the JAVA command line call "java.exe" in the run scripts.  They should
look something like -Xms256Mb -Xmx256Mb ( or higher ).

You can always use another JVM like IBM, JRockit (I use this one for
servers), Oracle, or Borland.



--- In flexcoders@yahoogroups.com, Husain Kitabi <relisanhard52@y...>
wrote:
> Hi
> I am using Sun JDK 1.4
> What does those parameters signify.

> Regards
> Husain
>
> kaibabsowats <renaun@m...> wrote:
> Most likely its a JVM issue.  What JVM are you using?
>
> If its Sun's set the -Xms and -Xmx parameters.
>
> Renaun
>
> --- In flexcoders@yahoogroups.com, "relisanhard52"
> <relisanhard52@y...> wrote:
> > Hi
> > I am using JBoss 3.2.2. I deploy some sample flex demo code.
Sometimes
> > it is throwing this error - OutOfMemoryError.
> > Considering my sample demo applications are hardly 8files together
this
> > is starting to concern me..
> >
> > Any ideas/advise.
> >
> >
> > Regards
> > Husain
> >
> > Btw, Alistair/Steven - your book not sold/published in India?(I
had to
> > get a copy from amazon!)
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
>
>
>
> SPONSORED LINKS
> Web site design development Software design and development
Macromedia flex Software development best practice
>
> ---------------------------------
> YAHOO! GROUPS LINKS
>
>
>     Visit your group "flexcoders" on the web.
>  
>     To unsubscribe from this group, send an email to:
>  flexcoders-unsubscribe@yahoogroups.com
>  
>     Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
>
>
> ---------------------------------
>
>
>
>
> hussain
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com




#20831 From: "Markus Ansamaa" <markus.ansamaa@...>
Date: Thu Sep 1, 2005 10:10 am
Subject: RE: Metamorphosing RadioButtonGroup
mansamaa
Send Email Send Email
 
>> Umm.. well... maybe I could use mxml. RadioButtonGroup and the
RadioButtons constitue a boolean component in our software. And if there are
several RadioButtonGroups with the same id in a form, focus transition with
tab key won't work correctly. So the need was to set unique id dynamically
and I thought it cannot be done with mxml. But why not, maybe I should try
that. However, it still would be nice to know the reason for the
"metamorphosis" since unsolved mysteries are irritating.

> I would love to dig deeper to find out why this is happening, but
> currently I'm more interested in the future than the past. ;)
>
> Would it help if you used an undocumented property called 'group'
> instead of 'groupName'?  No guarantees it'll make life easier for you
> or even work at all (without quietly breaking something else), but
> give it a try.  See RadioButton.as in your flexforflash.zip.

Just to let you know, I solved the problem by not creating the
RadioButtonGroup at all. Instead, the getter function for a group property
in RadioButton creates it for me. I don't know why it works and my initial
solution didn't, but anyway, now it's time to move on.

Markus

#20832 From: "Alex Uhlmann" <auhlmann@...>
Date: Thu Sep 1, 2005 10:31 am
Subject: RE: Re: CAIRNGORM 0.99 QUESTION
uhlmann_alex
Send Email Send Email
 
the reason why Dan said you need to be carefull with creating delegates in your
command's constructor is because the creation of remote services sometimes seems
to be a very expensive operation, it might run over multiple frames so you might
not be able to rely on defining your remote services before defining your front
controller in one MXML file, since this will be compiled to one ActionScript
block, which runs in one frame.

So,

<!-- the ServiceLocator where we specify the remote services -->
<business:Services id="services" />

<!-- the FrontController, containing Commands specific to this appliation -->
<control:Controller id="controller" />

can yield to the problem that remote services are not defined when the
constructors of the commands in your FrontController run. This is why we
initialise business delegates in each command's execute method. Commands are
stateless anyway, and creating instance variables currently can have side
effects in this version of Cairngorm.


Best,
Alex

--
Alex Uhlmann
Software Engineer
iteration::two



-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]On Behalf Of
flexcoding
Sent: 31 August 2005 22:19
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: CAIRNGORM 0.99 QUESTION


Hi,

Thanks for the reply. You must be a very experienced programmer
because you just looked at the suggestion and found the problem it
will create two steps down. I have experienced the same problem that
you mentioned below if I use recommended <mx:Application> tag
instead of <cairngorm:CairngormApplication> tag, but I had to spend
considerable time to nail down the cause, which I believe, and like
you said, is that the ServiceLocator.getInstance() is failing
because it hasn't been initialized yet.

1. How can I ensure that my services are created before my front
controller in the Index?

2. Does this approach of creating delegates in Command Constructor
has any advantage/disadvantage?

Thanks & Regards,

Rohit Chhabra.

--- In flexcoders@yahoogroups.com, "Daniel Harfleet"
<dharfleet@i...> wrote:
> Hi,
>
> you would need to be carefull, because the command instances are
> created once only at creation of the FrontController. By creating a
> delegate instance, you are using the ServiceLocator to look up the
> remote object, however, if your service locator hasn't been
> initialized yet, you may get  a no service found error. So make
sure
> your services are created before you front controller if you are
going
> to take this approach.
>
>
>
> --- In flexcoders@yahoogroups.com, "flexcoding" <flexcoding@y...>
wrote:
> > Is it OK to have a constructor in the Command classes and have
> > delegate initialized there rather than doing it in every time
> > execute method is called?
> >
> > So Could the code of LoginCommand of sample code that came with
> > CAIRNGORM 0.99 be changed to:
> >
> > class org.nevis.cairngorm.samples.login.commands.LoginCommand
> > implements Command, Responder
> > {
> >    private var delegate: CustomerDelegate;
> >
> >    public function LoginCommand ()
> >    {
> >       delegate = new CustomerDelegate( this );
> >    }
> >
> >    public function execute( event:Event ) : Void
> >    {
> >       var loginVO : LoginVO = LoginVO( event.data );
> >       delegate.login( loginVO );
> >    }
> >
> > //---------------------------------------------------------------
----
> > ------
> >
> >    public function onResult( event : Object ) : Void
> >    {
> >       ModelLocator.workflowState =
> > ModelLocator.VIEWING_LOGGED_IN_SCREEN;
> >
> >       var loginDate : Date = Date( event.result );
> >       ModelLocator.loginDate = loginDate;
> >    }
> >
> > //---------------------------------------------------------------
----
> > ------
> >
> >    public function onFault( event : Object ) : Void
> >    {
> >       ModelLocator.statusMessage = "Your username or password
was
> > wrong, please try again.";
> >    }
> > }
> >
> > from
> >
> > /*
> >
> > Copyright 2005 iteration::two Ltd
> >
> > Licensed under the Apache License, Version 2.0 (the "License");
> > you may not use this file except in compliance with the License.
> > You may obtain a copy of the License at
> >
> >     http://www.apache.org/licenses/LICENSE-2.0
> >
> > Unless required by applicable law or agreed to in writing,
software
> > distributed under the License is distributed on an "AS IS" BASIS,
> > WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> > implied.
> > See the License for the specific language governing permissions
and
> > limitations under the License.
> >
> > @ignore
> > */
> > import org.nevis.cairngorm.business.Responder;
> > import org.nevis.cairngorm.commands.Command;
> > import org.nevis.cairngorm.control.Event;
> > import
org.nevis.cairngorm.samples.login.business.CustomerDelegate;
> > import org.nevis.cairngorm.samples.login.vo.LoginVO;
> > import org.nevis.cairngorm.samples.login.model.ModelLocator;
> >
> > /**
> >  * @version      $Revision: 1.4 $
> >  */
> > class org.nevis.cairngorm.samples.login.commands.LoginCommand
> > implements Command, Responder
> > {
> >
> >    public function execute( event:Event ) : Void
> >    {
> >       var delegate: CustomerDelegate = new CustomerDelegate(
> > this );
> >       var loginVO : LoginVO = LoginVO( event.data );
> >       delegate.login( loginVO );
> >    }
> >
> > //---------------------------------------------------------------
----
> > ------
> >
> >    public function onResult( event : Object ) : Void
> >    {
> >       ModelLocator.workflowState =
> > ModelLocator.VIEWING_LOGGED_IN_SCREEN;
> >
> >       var loginDate : Date = Date( event.result );
> >       ModelLocator.loginDate = loginDate;
> >    }
> >
> > //---------------------------------------------------------------
----
> > ------
> >
> >    public function onFault( event : Object ) : Void
> >    {
> >       ModelLocator.statusMessage = "Your username or password
was
> > wrong, please try again.";
> >    }
> > }





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




YAHOO! GROUPS LINKS

  Visit your group "flexcoders" on the web.

  To unsubscribe from this group, send an email to:
  flexcoders-unsubscribe@yahoogroups.com

  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

#20833 From: "Daniel Harfleet" <dharfleet@...>
Date: Thu Sep 1, 2005 10:42 am
Subject: Re: Does Flex have equivalent of JSTL <c:if>?
dharfleet
Send Email Send Email
 
Hi,

if it is always the case that you only have to ouput 1,2 or 3 input
fields, you could create a custom component which would be initialized
by your object in the dataprovider, it could contain the logic to
decide which 'view' to show. Inside your custom component, you can
just make TextInputs 1, 2 , 3 visible or not depending on the type of
data/model you initialize it with

dan


--- In flexcoders@yahoogroups.com, "cruegger2000" <cruegger2000@y...>
wrote:
>
> I need to iterate through a collection of polymorphic objects
> and build a form dynamically. Depending on the current type
> of object, I  need to output 1, 2, or 3 <mx:TextInput> components.
> I'm using a Repeater to iterate through the collection.
>
> Does Flex have the equivalent of JSTL <c:if> or some other
> logic tags that will let me conditionally generate mxml?
>
> Thanks in advance.

#20834 From: Stephen Moretti <stephen@...>
Date: Thu Sep 1, 2005 11:16 am
Subject: CFFORM Q - resetForm() in Flash CFForm
cfdeveloperuk
Send Email Send Email
 
Sorry to be bringing a question about the lowly brother of Flex here ;),
but as usual I'm getting no response anywhere else and to be honest its
got to be something pretty simple I'm just not seeing, so anyway....


I'm submitting the contents of a flash cfform to the database via a cfc
and I want to reset the form when I get a positive result back from the
cfc.  The code below shows the call to the cfc and the call to reset the
form.  I know that the function gets to the point of the resetForm()
because I put an alert in with the resetForm() call to make sure I got
there. However,the form doesn't get reset.  I have a feeling its
something to do with the context of the call, but I'm not sure what.

Hope you folks can help.

Regards

Stephen

<cfsavecontent variable="sendOrder">
<cfoutput>
     //create connection
     var connection:mx.remoting.Connection =
mx.remoting.NetServices.createGatewayConnection("http://#cgi.SERVER_NAME#/flashs\
ervices/gateway");
     //declare service
     var myService:mx.remoting.NetServiceProxy;

     var responseHandler = {};
     var AccountNo = '#session.User.AccountNo#';
     var dsn = "#request.DSN#";
     var DeliveryAddressID = DeliveryAddress.selectedItem.data;
     var OrderEmailAddress = '#request.OrderEmail#';

</cfoutput>
     responseHandler.onResult = function( results: Object ):Void {
         //when results are back, populate the cfselect
         alert(results.errormessage);
         if (results.ordersent) {
         // order sent successfully so  reset the form
             alert('reset here');
             resetForm();
         }
     }

     responseHandler.onStatus  = function( stat: Object ):Void {
         //if there is any error, show an alert
         alert("Error while calling cfc:" + stat.description);
     }

     //get service
     myService =
connection.getService("wms05.orders.OrderForm",responseHandler );
     //make call

myService.sendOrder(dsn,AccountNo,cart.dataProvider,CarriageID.text,DeliveryAddr\
essID,ContactName.text,ContactTel.text,CustomerOrderNo.text,DeliveryNotes.text,O\
rderEmailAddress);

</cfsavecontent>

#20835 From: Alberto Albericio Salvador <alberto@...>
Date: Thu Sep 1, 2005 11:54 am
Subject: Strange List behaviour
alberto@...
Send Email Send Email
 
Hi all,

Im using a List component to display the messages incoming from a "msg
push server". The dataProvider of the List is bound to "some array
variable". If I use the method *addItem* to inject data into the array;
as a result of this action, the List grows downwards, leaving the first
element always visible and loosing the last added msgs lost (gotta use
the scrollbar to find them at the end). Well, I want the List to grow
upwards so that the last incoming msg gets displayed the first. I use
the *unshift* method but the array does not get modified. So, what is
happening here?

I know this is not a natural Flex question but I cant find why it is not
working the way I want.

Nuke this post if you feel this is not the right place for it and sorry.

--
Alberto Albericio Salvador
Aura S.A. Seguros
Departamento Informática

#20836 From: Sreejith Unnikrishnan <sree@...>
Date: Thu Sep 1, 2005 12:19 pm
Subject: Re: Strange List behaviour
sreejithunni
Send Email Send Email
 
You may try and do a theMsgList.reverse(); to reverse the list something
like below.

         var theMsgList: Array;         // your array variable

         function serviceResult() {
             theMsgList=new Array();
             for (var i in results[0]) {
                     theMsgList.addItem(i);
            }
             theMsgList.reverse();
         }

Call serviceResult on result of the service that you are invoking.

Hope this helps.

Regards
Sree

Alberto Albericio Salvador wrote:

> Hi all,
>
> Im using a List component to display the messages incoming from a "msg
> push server". The dataProvider of the List is bound to "some array
> variable". If I use the method *addItem* to inject data into the array;
> as a result of this action, the List grows downwards, leaving the first
> element always visible and loosing the last added msgs lost (gotta use
> the scrollbar to find them at the end). Well, I want the List to grow
> upwards so that the last incoming msg gets displayed the first. I use
> the *unshift* method but the array does not get modified. So, what is
> happening here?
>
> I know this is not a natural Flex question but I cant find why it is not
> working the way I want.
>
> Nuke this post if you feel this is not the right place for it and sorry.
>
> --
> Alberto Albericio Salvador
> Aura S.A. Seguros
> Departamento Informática
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
>
>
> ------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
>
>     *  Visit your group "flexcoders
>       <http://groups.yahoo.com/group/flexcoders>" on the web.
>
>     *  To unsubscribe from this group, send an email to:
>        flexcoders-unsubscribe@yahoogroups.com
>       <mailto:flexcoders-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>
>     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------------------------------------------------
>

#20837 From: Alberto Albericio Salvador <alberto@...>
Date: Thu Sep 1, 2005 12:18 pm
Subject: Custom Component builder
alberto@...
Send Email Send Email
 
Hi,

I want to create custom components extending original Flex components,
is there any visual application for this purpose? For example, I want to
create my customPanel which extends mx:Panel; I want to add a title bar
with buttons and icons, set event to these buttons, etc...is there any
application to do this or I must use AS to create them?

Thanks

--
Alberto Albericio Salvador
Aura S.A. Seguros
Departamento Informática

#20838 From: Clint Modien <cmodien@...>
Date: Thu Sep 1, 2005 12:21 pm
Subject: Re: Strange List behaviour
johny_bravo_78
Send Email Send Email
 
From the livedocs
 
addItemsAt( index: Number, newItems: Array) :  Void
Adds several items to the array.

so your code might look like this to add data to the beginning of the array...
 
var newItemsArray = [ newMsgFromPushData];
listComponentsID.dataProvider.addItemsAt(0, newItemsArray );
 
On 9/1/05, Alberto Albericio Salvador <alberto@...> wrote:
Hi all,

Im using a List component to display the messages incoming from a "msg
push server". The dataProvider of the List is bound to "some array
variable". If I use the method *addItem* to inject data into the array;
as a result of this action, the List grows downwards, leaving the first
element always visible and loosing the last added msgs lost (gotta use
the scrollbar to find them at the end). Well, I want the List to grow
upwards so that the last incoming msg gets displayed the first. I use
the *unshift* method but the array does not get modified. So, what is
happening here?

I know this is not a natural Flex question but I cant find why it is not
working the way I want.

Nuke this post if you feel this is not the right place for it and sorry.

--
Alberto Albericio Salvador
Aura S.A. Seguros
Departamento Informática



------------------------ Yahoo! Groups Sponsor --------------------~-->
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~->

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

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

<*> To unsubscribe from this group, send an email to:
   flexcoders-unsubscribe@yahoogroups.com

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





#20839 From: Alberto Albericio Salvador <alberto@...>
Date: Thu Sep 1, 2005 12:23 pm
Subject: Re: Strange List behaviour
alberto@...
Send Email Send Email
 
Hi,

I need to add the item only once. I cant add the item then reverse the
Array because my array is bound to a component and that would make the
component to "redraw" :)

Sreejith Unnikrishnan escribió:

>You may try and do a theMsgList.reverse(); to reverse the list something
>like below.
>
>        var theMsgList: Array;         // your array variable
>
>        function serviceResult() {
>            theMsgList=new Array();
>            for (var i in results[0]) {
>                    theMsgList.addItem(i);
>           }
>            theMsgList.reverse();
>        }
>
>Call serviceResult on result of the service that you are invoking.
>
>Hope this helps.
>
>Regards
>Sree
>
>Alberto Albericio Salvador wrote:
>
>
>
>>Hi all,
>>
>>Im using a List component to display the messages incoming from a "msg
>>push server". The dataProvider of the List is bound to "some array
>>variable". If I use the method *addItem* to inject data into the array;
>>as a result of this action, the List grows downwards, leaving the first
>>element always visible and loosing the last added msgs lost (gotta use
>>the scrollbar to find them at the end). Well, I want the List to grow
>>upwards so that the last incoming msg gets displayed the first. I use
>>the *unshift* method but the array does not get modified. So, what is
>>happening here?
>>
>>I know this is not a natural Flex question but I cant find why it is not
>>working the way I want.
>>
>>Nuke this post if you feel this is not the right place for it and sorry.
>>
>>--
>>Alberto Albericio Salvador
>>Aura S.A. Seguros
>>Departamento Informática
>>
>>
>>
>>--
>>Flexcoders Mailing List
>>FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>>Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
>>
>>
>>------------------------------------------------------------------------
>>YAHOO! GROUPS LINKS
>>
>>    *  Visit your group "flexcoders
>>      <http://groups.yahoo.com/group/flexcoders>" on the web.
>>
>>    *  To unsubscribe from this group, send an email to:
>>       flexcoders-unsubscribe@yahoogroups.com
>>      <mailto:flexcoders-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>>
>>    *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>>      Service <http://docs.yahoo.com/info/terms/>.
>>
>>
>>------------------------------------------------------------------------
>>
>>
>>
>
>
>
>
>
>--
>Flexcoders Mailing List
>FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
>Yahoo! Groups Links
>
>
>
>
>
>
>
>
>


--
Alberto Albericio Salvador
Aura S.A. Seguros
Departamento Informática

#20840 From: Alberto Albericio Salvador <alberto@...>
Date: Thu Sep 1, 2005 12:30 pm
Subject: Re: Strange List behaviour
alberto@...
Send Email Send Email
 
That worked, I cant imagine why the unshift method was not doing the job.

Thanks Clint.

Clint Modien escribió:

> From the livedocs
> http://livedocs.macromedia.com/flex/15/asdocs_en/
>
> ||
>  |*addItemsAt*
>
<http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/listclasses/DataPr\
ovider.html#addItemsAt>(
> index: Number, newItems: Array) :  Void
> |Adds several items to the array.
>
>
> so your code might look like this to add data to the beginning of the
> array...
>
> var newItemsArray = [ newMsgFromPushData];
> listComponentsID.dataProvider.addItemsAt(0, newItemsArray );
>
> On 9/1/05, *Alberto Albericio Salvador* <alberto@...
> <mailto:alberto@...>> wrote:
>
>     Hi all,
>
>     Im using a List component to display the messages incoming from a "msg
>     push server". The dataProvider of the List is bound to "some array
>     variable". If I use the method *addItem* to inject data into the
>     array;
>     as a result of this action, the List grows downwards, leaving the
>     first
>     element always visible and loosing the last added msgs lost (gotta
>     use
>     the scrollbar to find them at the end). Well, I want the List to grow
>     upwards so that the last incoming msg gets displayed the first. I use
>     the *unshift* method but the array does not get modified. So, what is
>     happening here?
>
>     I know this is not a natural Flex question but I cant find why it
>     is not
>     working the way I want.
>
>     Nuke this post if you feel this is not the right place for it and
>     sorry.
>
>     --
>     Alberto Albericio Salvador
>     Aura S.A. Seguros
>     Departamento Informática
>
>
>
>     ------------------------ Yahoo! Groups Sponsor
>
>     --
>     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
>
>     <http://groups.yahoo.com/group/flexcoders/>
>
>     <mailto:flexcoders-unsubscribe@yahoogroups.com>
>
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
>
>
> ------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
>
>     *  Visit your group "flexcoders
>       <http://groups.yahoo.com/group/flexcoders>" on the web.
>
>     *  To unsubscribe from this group, send an email to:
>        flexcoders-unsubscribe@yahoogroups.com
>       <mailto:flexcoders-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>
>     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------------------------------------------------
>


--
Alberto Albericio Salvador
Aura S.A. Seguros
Departamento Informática

#20841 From: "Mink, Joseph" <joseph.mink@...>
Date: Thu Sep 1, 2005 12:21 pm
Subject: RE: Custom Component builder
inajamaica
Send Email Send Email
 
You should be able to make mxml components to accomplish what you describe...just design you component in mxml, & then refer to that component in you application mxml.  I don't know if such a solution will be flexible enough for you...


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Alberto Albericio Salvador
Sent: Thursday, September 01, 2005 8:19 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Custom Component builder

Hi,

I want to create custom components extending original Flex components,
is there any visual application for this purpose? For example, I want to
create my customPanel which extends mx:Panel; I want to add a title bar
with buttons and icons, set event to these buttons, etc...is there any
application to do this or I must use AS to create them?

Thanks

--
Alberto Albericio Salvador
Aura S.A. Seguros
Departamento Informática


#20842 From: Clint Modien <cmodien@...>
Date: Thu Sep 1, 2005 12:52 pm
Subject: Re: Strange List behaviour
johny_bravo_78
Send Email Send Email
 
It's by design... the dataProvider property of list components only listen to the methods called on the DataProvider API.  Not on the methods called on the objects that act as dataProviders (in this case your array).
 
Sorry about the link I sent before... I didn't realize I had sent the general link to the flex api docs.
 
Here is the specific DataProvider API
 
If you want to update the dataProviders of list controls (without redrawing the entire list each time by reassigning the array) you have to use the methods defined in the DataProvider API.
 
On 9/1/05, Alberto Albericio Salvador <alberto@...> wrote:
That worked, I cant imagine why the unshift method was not doing the job.

Thanks Clint.

Clint Modien escribió:

> From the livedocs
> http://livedocs.macromedia.com/flex/15/asdocs_en/
>
> ||
>       |*addItemsAt*
> < http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/listclasses/DataProvider.html#addItemsAt>(
> index: Number, newItems: Array) :  Void
> |Adds several items to the array.
>
>
> so your code might look like this to add data to the beginning of the
> array...
>
> var newItemsArray = [ newMsgFromPushData];
> listComponentsID.dataProvider.addItemsAt(0, newItemsArray );
>
> On 9/1/05, *Alberto Albericio Salvador* < alberto@...
> <mailto:alberto@...>> wrote:
>
>     Hi all,
>
>     Im using a List component to display the messages incoming from a "msg
>     push server". The dataProvider of the List is bound to "some array
>     variable". If I use the method *addItem* to inject data into the
>     array;
>     as a result of this action, the List grows downwards, leaving the
>     first
>     element always visible and loosing the last added msgs lost (gotta
>     use
>     the scrollbar to find them at the end). Well, I want the List to grow
>     upwards so that the last incoming msg gets displayed the first. I use
>     the *unshift* method but the array does not get modified. So, what is
>     happening here?
>
>     I know this is not a natural Flex question but I cant find why it
>     is not
>     working the way I want.
>
>     Nuke this post if you feel this is not the right place for it and
>     sorry.
>
>     --
>     Alberto Albericio Salvador
>     Aura S.A. Seguros
>     Departamento Informática
>
>
>
>     ------------------------ Yahoo! Groups Sponsor
>
>     --
>     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
>
>     <http://groups.yahoo.com/group/flexcoders/>
>
>     <mailto: flexcoders-unsubscribe@yahoogroups.com>
>
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
>
>
> ------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
>
>     *  Visit your group "flexcoders
>       < http://groups.yahoo.com/group/flexcoders>" on the web.
>
>     *  To unsubscribe from this group, send an email to:
>        flexcoders-unsubscribe@yahoogroups.com
>       <mailto:flexcoders-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>
>     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------------------------------------------------
>


--
Alberto Albericio Salvador
Aura S.A. Seguros
Departamento Informática



------------------------ Yahoo! Groups Sponsor --------------------~-->
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~->

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

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

<*> To unsubscribe from this group, send an email to:
   flexcoders-unsubscribe@yahoogroups.com

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





#20843 From: Clint Modien <cmodien@...>
Date: Thu Sep 1, 2005 12:57 pm
Subject: Re: Strange List behaviour
johny_bravo_78
Send Email Send Email
 
I was jus reading the comments in the DataProvider API and it looks like there is an addItemAt method... (thought there was)
here's the signature...
 
addItemAt(index : Number, value) : Void
 
so instead of
 
var newItemsArray = [ newMsgFromPushData];
listComponentsID.dataProvider.addItemsAt(0, newItemsArray );

it could just be
 
listComponentsID.dataProvider.addItemAt(0, newMsgFromPushData);

 
On 9/1/05, Clint Modien <cmodien@...> wrote:
It's by design... the dataProvider property of list components only listen to the methods called on the DataProvider API.  Not on the methods called on the objects that act as dataProviders (in this case your array).
 
Sorry about the link I sent before... I didn't realize I had sent the general link to the flex api docs.
 
Here is the specific DataProvider API
 
If you want to update the dataProviders of list controls (without redrawing the entire list each time by reassigning the array) you have to use the methods defined in the DataProvider API.
 
On 9/1/05, Alberto Albericio Salvador <alberto@... > wrote:
That worked, I cant imagine why the unshift method was not doing the job.

Thanks Clint.

Clint Modien escribió:

> From the livedocs
> http://livedocs.macromedia.com/flex/15/asdocs_en/
>
> ||
>       |*addItemsAt*
> < http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/listclasses/DataProvider.html#addItemsAt>(
> index: Number, newItems: Array) :  Void
> |Adds several items to the array.
>
>
> so your code might look like this to add data to the beginning of the
> array...
>
> var newItemsArray = [ newMsgFromPushData];
> listComponentsID.dataProvider.addItemsAt(0, newItemsArray );
>
> On 9/1/05, *Alberto Albericio Salvador* < alberto@...
> <mailto: alberto@...>> wrote:
>
>     Hi all,
>
>     Im using a List component to display the messages incoming from a "msg
>     push server". The dataProvider of the List is bound to "some array
>     variable". If I use the method *addItem* to inject data into the
>     array;
>     as a result of this action, the List grows downwards, leaving the
>     first
>     element always visible and loosing the last added msgs lost (gotta
>     use
>     the scrollbar to find them at the end). Well, I want the List to grow
>     upwards so that the last incoming msg gets displayed the first. I use
>     the *unshift* method but the array does not get modified. So, what is
>     happening here?
>
>     I know this is not a natural Flex question but I cant find why it
>     is not
>     working the way I want.
>
>     Nuke this post if you feel this is not the right place for it and
>     sorry.
>
>     --
>     Alberto Albericio Salvador
>     Aura S.A. Seguros
>     Departamento Informática
>
>
>
>     ------------------------ Yahoo! Groups Sponsor
>
>     --
>     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
>
>     < http://groups.yahoo.com/group/flexcoders/>
>
>     <mailto: flexcoders-unsubscribe@yahoogroups.com >
>
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
>
>
> ------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
>
>     *  Visit your group "flexcoders
>       < http://groups.yahoo.com/group/flexcoders>" on the web.
>
>     *  To unsubscribe from this group, send an email to:
>        flexcoders-unsubscribe@yahoogroups.com
>       <mailto: flexcoders-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>
>     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service < http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------------------------------------------------
>


--
Alberto Albericio Salvador
Aura S.A. Seguros
Departamento Informática



------------------------ Yahoo! Groups Sponsor --------------------~-->
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~->

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

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

<*> To unsubscribe from this group, send an email to:
   flexcoders-unsubscribe@yahoogroups.com

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






#20844 From: Scott Barnes <scott.barnes@...>
Date: Thu Sep 1, 2005 1:49 pm
Subject: Re: Custom Component builder
spidaweb
Send Email Send Email
 
I'm yet to see one. You're going to have use ActionScript - or - you can use MXML but preference is ActionScript.

Its not for the feint hearted but you'll never know unless you have a go heh :)

I've extended the entire framework to make it suite my artistic needs so its possible, just be mindful of how children are created/destroyed as they will need some attention if you plan to introduce your own assets as chrome but want them as tags

ie:

<mb:Panel>
<!-- Chrome Start -->
<mb:Icons>
<mb:Icon source="@Embed('')/>
<mb:Icon source="@Embed('')/>
<mb:Icon source="@Embed('')/>
</mb:Icons>

<!-- Normal Children-->
<mx:HBox>
</mx:HBox>

<mx:ControlBar>
</mx:ControlBar>
</mb:Panel>

Scott






On 9/1/05, Alberto Albericio Salvador <alberto@...> wrote:
Hi,

I want to create custom components extending original Flex components,
is there any visual application for this purpose? For example, I want to
create my customPanel which extends mx:Panel; I want to add a title bar
with buttons and icons, set event to these buttons, etc...is there any
application to do this or I must use AS to create them?

Thanks

--
Alberto Albericio Salvador
Aura S.A. Seguros
Departamento Informática



------------------------ Yahoo! Groups Sponsor --------------------~-->
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~->

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

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

<*> To unsubscribe from this group, send an email to:
    flexcoders-unsubscribe@yahoogroups.com

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







--
Regards,
Scott Barnes
http://www.mossyblog.com

#20845 From: "Mink, Joseph" <joseph.mink@...>
Date: Thu Sep 1, 2005 2:10 pm
Subject: TabNavigator's createTab method
inajamaica
Send Email Send Email
 
Hi,

I have a custom tab class that extends Canvas:

*class DSTab extends Canvas...

This class has a member that needs to be set at the time of
construction:

*public var dsID:String;

I've been using TabNavigator.createTab method to add a new DSTab when
necessary:

*var newTab = dsTabNavigator.createTab
   (DSTab, //The class type.
    currentDS.getID () + "-tab",  //The name for the instance.
    currentDS.getDisplayName ()); //The label for the tab.

This works, but I can't set the value of the new DSTab's dsID member.  I
considered using dsTabNavigator.createChild, but I can't set the label
on the tab.

Does anyone have any suggestions?  Thanks,
Joey

#20846 From: "Jeff Conrad" <list.catcher@...>
Date: Thu Sep 1, 2005 2:56 pm
Subject: RE: Another Proxy? PHP?
ub_master
Send Email Send Email
 
I’ve been late getting my blog up, but I wrote a watered-down replacement
version of the Flex proxy in PHP around the time of the $30k price jump.  We
don’t use Java at work and I wouldn’t want a Java server running just for
Flex, so I spent a few hours on a weekend and made a replacement in PHP.
Maybe I'll actually get some use out of it when Zorn comes around.

It currently only handles HTTP GET, WSDL, and SOAP POST, but it can easily
be extended to handle the rest.

http://www.jeffxpx.com/blog/2005/08/31/flex-proxy-written-in-php/

Hope you get some use out of it.  If/when you update it, let me know and
I’ll put the updated version up there.

Jeff

________________________________________
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of heybluez
Sent: Thursday, August 11, 2005 5:04 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Another Proxy? PHP?

Hey,

I have a client that does not want to use the Flex proxy for
HTTPService requests.  Unfortunately, you need to have a
crossdomain.xml file on all the requested servers.  This, is probably
unlikely to be the case all the time...if even part of the time.  SO I
was thinking of building a PHP "proxy" or something to route through.
Question is, are there any other solutions before I start?  Has
anyone done something similar and wants to kindly share? :)

Thanks!
Michael





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


SPONSORED LINKS
Computer software testing
Macromedia flex
Development
Software developer



________________________________________
YAHOO! GROUPS LINKS

•  Visit your group "flexcoders" on the web.
 
•  To unsubscribe from this group, send an email to:
 flexcoders-unsubscribe@yahoogroups.com
 
•  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

________________________________________

#20847 From: Manish Jethani <manish.jethani@...>
Date: Thu Sep 1, 2005 3:02 pm
Subject: Re: SplitPane in Flex
manish_jethani
Send Email Send Email
 
On 8/31/05, Shlomi Cohen <shlomic@...> wrote:

> Can  you please answer the question about the ScrollPane.as class from
framework 2.
> is it  possible to use it in Flex ? why it wasn't shipped with Flex  ?

I think ScrollPane.as was only for Flash (not Flex).  I don't know
beyond that, it can probably be answered by someone who worked on the
Flash components.

Manish

#20848 From: "Steve Cox" <steve@...>
Date: Thu Sep 1, 2005 3:34 pm
Subject: DateField - disabledRanges
stevequba
Send Email Send Email
 

Hey,

 

I’ve come across a problem which I thought I’d ask before I spend the next 5 hours tearing my hair out J

 

Situation:

 

I’ve 2 datefield components, a start date and an end date. When start date changes, then end date must disable any dates prior to the start date.

For example, I select august 31st on the start date, the end date should therefore disable all dates prior to the 31st, but allow me to select 31st.

 

Currently it’s disabling the 31st aswell. This is due to the fact rangeEnd in the disabledRanges object disables all dates upto and including the specified date.

 

Is there a way of changing my date object to remove 1 day from it? And it will automatically workout the month/year changes if applicable?

 

One thing I thought about doing was to manually create a new Date(year, month, date) object using startDate.getYear etc. However in some situations (eg 1st of the month) I cannot simply do startDate.getDate()-1.

 

Cheers.

 

Steve

 


#20849 From: VGrigoras@...
Date: Thu Sep 1, 2005 3:39 pm
Subject: Out of the office
VGrigoras@...
Send Email Send Email
 
I will be Out of the Office
Start Date: 8/31/2005.
End Date: 9/22/2005.


I will be out of the office between 09/01/2005 - 09/23/2005. If you need
immediate assistance please call
Zubeir Syed at 781-302-6718.

Thank you,
Veronica Grigoras.

#20850 From: "Jason R. Weiss" <jason.weiss@...>
Date: Thu Sep 1, 2005 4:27 pm
Subject: Re: DateField - disabledRanges
jasonweiss
Send Email Send Email
 
You can just subtract 1 from their date, like this:

    	 var today : Date = new Date();
    	 alert(today.toString(), "Today", mx.controls.Alert.OK);

    	 var yesterday : Date = today;
    	 yesterday.setDate(today.getDate() - 1);
    	 alert(yesterday.toString(), "Yesterday",
mx.controls.Alert.OK);


HTH,

Jason

--
Jason Weiss
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
http://www.cynergysystems.com

Email:  jason.weiss@...
Office: 866-CYNERGY
Mobile: 1.832.444.2246

#20851 From: "Gordon Smith" <gsmith@...>
Date: Thu Sep 1, 2005 4:37 pm
Subject: RE: Strange List behaviour
gsmithsf
Send Email Send Email
 

Yes, addItemAt(0, item) should insert an item at the top of the List.

 

- Gordon

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Clint Modien
Sent: Thursday, September 01, 2005 5:58 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Strange List behaviour

 

I was jus reading the comments in the DataProvider API and it looks like there is an addItemAt method... (thought there was)

here's the signature...

 

addItemAt(index : Number, value) : Void

 

so instead of

 

var newItemsArray = [ newMsgFromPushData];

listComponentsID.dataProvider.addItemsAt(0, newItemsArray );


it could just be

 

listComponentsID.dataProvider.addItemAt(0, newMsgFromPushData);


 

On 9/1/05, Clint Modien <cmodien@...> wrote:

It's by design... the dataProvider property of list components only listen to the methods called on the DataProvider API.  Not on the methods called on the objects that act as dataProviders (in this case your array).

 

Sorry about the link I sent before... I didn't realize I had sent the general link to the flex api docs.

 

Here is the specific DataProvider API

 

If you want to update the dataProviders of list controls (without redrawing the entire list each time by reassigning the array) you have to use the methods defined in the DataProvider API.
 

On 9/1/05, Alberto Albericio Salvador <alberto@... > wrote:

That worked, I cant imagine why the unshift method was not doing the job.

Thanks Clint.

Clint Modien escribió:

> From the livedocs
> http://livedocs.macromedia.com/flex/15/asdocs_en/
>
> ||
>       |*addItemsAt*
> < http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/listclasses/DataProvider.html#addItemsAt>(
> index: Number, newItems: Array) :  Void
> |Adds several items to the array.
>
>
> so your code might look like this to add data to the beginning of the
> array...
>
> var newItemsArray = [ newMsgFromPushData];
> listComponentsID.dataProvider.addItemsAt(0, newItemsArray );
>
> On 9/1/05, *Alberto Albericio Salvador* < alberto@...
> <mailto: alberto@...>> wrote:
>
>     Hi all,
>
>     Im using a List component to display the messages incoming from a "msg
>     push server". The dataProvider of the List is bound to "some array
>     variable". If I use the method *addItem* to inject data into the
>     array;
>     as a result of this action, the List grows downwards, leaving the
>     first
>     element always visible and loosing the last added msgs lost (gotta
>     use
>     the scrollbar to find them at the end). Well, I want the List to grow
>     upwards so that the last incoming msg gets displayed the first. I use
>     the *unshift* method but the array does not get modified. So, what is
>     happening here?
>
>     I know this is not a natural Flex question but I cant find why it
>     is not
>     working the way I want.
>
>     Nuke this post if you feel this is not the right place for it and
>     sorry.
>
>     --
>     Alberto Albericio Salvador
>     Aura S.A. Seguros
>     Departamento Informática
>
>
>
>     ------------------------ Yahoo! Groups Sponsor
>
>     --
>     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
>
>     < http://groups.yahoo.com/group/flexcoders/>
>
>     <mailto: flexcoders-unsubscribe@yahoogroups.com >
>
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
>
>
> ------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
>
>     *  Visit your group "flexcoders
>       < http://groups.yahoo.com/group/flexcoders>" on the web.
>
>     *  To unsubscribe from this group, send an email to:
>        flexcoders-unsubscribe@yahoogroups.com
>       <mailto: flexcoders-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>
>     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service < http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------------------------------------------------
>


--
Alberto Albericio Salvador
Aura S.A. Seguros
Departamento Informática



------------------------ Yahoo! Groups Sponsor --------------------~-->
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~->

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

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

<*> To unsubscribe from this group, send an email to:
   flexcoders-unsubscribe@yahoogroups.com

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







#20852 From: "Philippe Maegerman" <pim@...>
Date: Thu Sep 1, 2005 4:38 pm
Subject: RE : DateField - disabledRanges
pmaegerman
Send Email Send Email
 
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml">
<mx:DateField id="startD" change="endD.selectableRange={rangeStart:
event.target.selectedDate};"/>
<mx:DateField id="endD" change="startD.selectableRange={rangeEnd:
event.target.selectedDate};"/>
</mx:Application>

________________________________

De: flexcoders@yahoogroups.com de la part de Steve Cox
Date: jeu. 1/09/2005 17:34
À: flexcoders@yahoogroups.com
Objet : [flexcoders] DateField - disabledRanges


Hey,

I've come across a problem which I thought I'd ask before I spend the next 5
hours tearing my hair out :-)

Situation:

I've 2 datefield components, a start date and an end date. When start date
changes, then end date must disable any dates prior to the start date.
For example, I select august 31st on the start date, the end date should
therefore disable all dates prior to the 31st, but allow me to select 31st.

Currently it's disabling the 31st aswell. This is due to the fact rangeEnd in
the disabledRanges object disables all dates upto and including the specified
date.

Is there a way of changing my date object to remove 1 day from it? And it will
automatically workout the month/year changes if applicable?

One thing I thought about doing was to manually create a new Date(year, month,
date) object using startDate.getYear etc. However in some situations (eg 1st of
the month) I cannot simply do startDate.getDate()-1.

Cheers.

Steve



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




SPONSORED LINKS
Web site design development
<http://groups.yahoo.com/gads?t=ms&k=Web+site+design+development&w1=Web+site+des\
ign+development&w2=Software+design+and+development&w3=Macromedia+flex&w4=Softwar\
e+development+best+practice&c=4&s=131&.sig=FkTWphZzV9mFulU7V3u7pQ>   Software
design and development
<http://groups.yahoo.com/gads?t=ms&k=Software+design+and+development&w1=Web+site\
+design+development&w2=Software+design+and+development&w3=Macromedia+flex&w4=Sof\
tware+development+best+practice&c=4&s=131&.sig=w0jnvy4gyxC04c4dhRnw6A>  
Macromedia flex
<http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+site+design+developm\
ent&w2=Software+design+and+development&w3=Macromedia+flex&w4=Software+developmen\
t+best+practice&c=4&s=131&.sig=XXu7YeegB3Vi-5Qngf6oNQ>
Software development best practice
<http://groups.yahoo.com/gads?t=ms&k=Software+development+best+practice&w1=Web+s\
ite+design+development&w2=Software+design+and+development&w3=Macromedia+flex&w4=\
Software+development+best+practice&c=4&s=131&.sig=ZT_U6e_iPgXSriY_dI9nIg>

________________________________

YAHOO! GROUPS LINKS


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

*  To unsubscribe from this group, send an email to:
	  flexcoders-unsubscribe@yahoogroups.com
<mailto:flexcoders-unsubscribe@yahoogroups.com?subject=Unsubscribe>

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

________________________________



------------------------------------------------------------------
**STATEMENT OF CONFIDENTIALITY**

This e-mail and any attached files are confidential and intended solely for the
use of the individual to whom it is addressed. If you have received this email
in error please send it back to the person that sent it to you. Any views or
opinions presented are solely those of author and do not necessarily represent
those the Emakina Company. Unauthorized publication, use, dissemination,
forwarding, printing or copying of this email and its associated attachments is
strictly prohibited.

We also inform you that we have checked that this message does not contain any
virus but we decline any responsability in case of any damage caused by an a non
detected virus.
------------------------------------------------------------------

#20853 From: Manish Jethani <manish.jethani@...>
Date: Thu Sep 1, 2005 4:41 pm
Subject: Re: DateField - disabledRanges
manish_jethani
Send Email Send Email
 
On 9/1/05, Steve Cox <steve@...> wrote:

> Is there a way of changing my date object to remove 1 day from it? And it will
automatically workout the month/year changes if applicable?

http://www.mail-archive.com/flexcoders@yahoogroups.com/msg05709.html

Manish

#20854 From: "Gordon Smith" <gsmith@...>
Date: Thu Sep 1, 2005 4:42 pm
Subject: RE: Strange List behaviour
gsmithsf
Send Email Send Email
 
It doesn't work because Array methods like push(), unshift(), and splice() can't
trigger databinding or any kind of notification to other objects that the array
has changed. They are low-level player-level methods that don't send out events.
Flex data provider APIs do send out events:

push() -> addItem()
unshift() -> addItemAt()
splice() -> addItemsAt()

- Gordon


-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf
Of Alberto Albericio Salvador
Sent: Thursday, September 01, 2005 5:30 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Strange List behaviour

That worked, I cant imagine why the unshift method was not doing the job.

Thanks Clint.

Clint Modien escribió:

> From the livedocs
> http://livedocs.macromedia.com/flex/15/asdocs_en/
>
> ||
>  |*addItemsAt*
>
<http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/listclasses/DataPr\
ovider.html#addItemsAt>(
> index: Number, newItems: Array) :  Void
> |Adds several items to the array.
>
>
> so your code might look like this to add data to the beginning of the
> array...
>
> var newItemsArray = [ newMsgFromPushData];
> listComponentsID.dataProvider.addItemsAt(0, newItemsArray );
>
> On 9/1/05, *Alberto Albericio Salvador* <alberto@...
> <mailto:alberto@...>> wrote:
>
>     Hi all,
>
>     Im using a List component to display the messages incoming from a "msg
>     push server". The dataProvider of the List is bound to "some array
>     variable". If I use the method *addItem* to inject data into the
>     array;
>     as a result of this action, the List grows downwards, leaving the
>     first
>     element always visible and loosing the last added msgs lost (gotta
>     use
>     the scrollbar to find them at the end). Well, I want the List to grow
>     upwards so that the last incoming msg gets displayed the first. I use
>     the *unshift* method but the array does not get modified. So, what is
>     happening here?
>
>     I know this is not a natural Flex question but I cant find why it
>     is not
>     working the way I want.
>
>     Nuke this post if you feel this is not the right place for it and
>     sorry.
>
>     --
>     Alberto Albericio Salvador
>     Aura S.A. Seguros
>     Departamento Informática
>
>
>
>     ------------------------ Yahoo! Groups Sponsor
>
>     --
>     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
>
>     <http://groups.yahoo.com/group/flexcoders/>
>
>     <mailto:flexcoders-unsubscribe@yahoogroups.com>
>
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
>
>
> ------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
>
>     *  Visit your group "flexcoders
>       <http://groups.yahoo.com/group/flexcoders>" on the web.
>
>     *  To unsubscribe from this group, send an email to:
>        flexcoders-unsubscribe@yahoogroups.com
>       <mailto:flexcoders-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>
>     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------------------------------------------------
>


--
Alberto Albericio Salvador
Aura S.A. Seguros
Departamento Informática




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

#20855 From: "Gordon Smith" <gsmith@...>
Date: Thu Sep 1, 2005 4:44 pm
Subject: RE: TabNavigator's createTab method
gsmithsf
Send Email Send Email
 
Why can't you follow the call to createTab() with newTab.dsID = "foo"?

- Gordon

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of Mink, Joseph
Sent: Thursday, September 01, 2005 7:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] TabNavigator's createTab method

Hi,

I have a custom tab class that extends Canvas:

*class DSTab extends Canvas...

This class has a member that needs to be set at the time of
construction:

*public var dsID:String;

I've been using TabNavigator.createTab method to add a new DSTab when
necessary:

*var newTab = dsTabNavigator.createTab
   (DSTab, //The class type.
    currentDS.getID () + "-tab",  //The name for the instance.
    currentDS.getDisplayName ()); //The label for the tab.

This works, but I can't set the value of the new DSTab's dsID member.  I
considered using dsTabNavigator.createChild, but I can't set the label
on the tab.

Does anyone have any suggestions?  Thanks,
Joey



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

#20856 From: "Mink, Joseph" <joseph.mink@...>
Date: Thu Sep 1, 2005 4:47 pm
Subject: RE: TabNavigator's createTab method
inajamaica
Send Email Send Email
 
Because newTab object you refer to instantiates children that depend on the dsID, so it's too late when you follow up with a call like that.
 
However, experimentation (assuming I did it right) proved that the property that holds the tab's title in a child of TabNavigator is "label."  So I think I've got it working...
 
Thanks!
Joey


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Gordon Smith
Sent: Thursday, September 01, 2005 12:44 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] TabNavigator's createTab method

Why can't you follow the call to createTab() with newTab.dsID = "foo"?

- Gordon

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of Mink, Joseph
Sent: Thursday, September 01, 2005 7:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] TabNavigator's createTab method

Hi,

I have a custom tab class that extends Canvas:

*class DSTab extends Canvas...

This class has a member that needs to be set at the time of
construction:

*public var dsID:String;

I've been using TabNavigator.createTab method to add a new DSTab when
necessary:

*var newTab = dsTabNavigator.createTab
  (DSTab, //The class type.
   currentDS.getID () + "-tab",  //The name for the instance.
   currentDS.getDisplayName ()); //The label for the tab.

This works, but I can't set the value of the new DSTab's dsID member.  I
considered using dsTabNavigator.createChild, but I can't set the label
on the tab.

Does anyone have any suggestions?  Thanks,
Joey



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







#20857 From: Manish Jethani <manish.jethani@...>
Date: Thu Sep 1, 2005 4:51 pm
Subject: Re: TabNavigator's createTab method
manish_jethani
Send Email Send Email
 
On 9/1/05, Mink, Joseph <joseph.mink@...> wrote:

> I have a custom tab class that extends Canvas:
>
> *class DSTab extends Canvas...
>
> This class has a member that needs to be set at the time of
> construction:
>
> *public var dsID:String;
>
> I've been using TabNavigator.createTab method to add a new DSTab when
> necessary:
>
> *var newTab = dsTabNavigator.createTab
>   (DSTab, //The class type.
>    currentDS.getID () + "-tab",  //The name for the instance.
>    currentDS.getDisplayName ()); //The label for the tab.
>
> This works, but I can't set the value of the new DSTab's dsID member.

createTab returns a reference to the newly created child.  You can set
the dsID on it directly.

> considered using dsTabNavigator.createChild, but I can't set the label
> on the tab.

If you want to set it at construction time, then you can use
createChild.  The label can also be passed in the initObj (thid arg)
to createChild.

Manish

#20858 From: "Tracy Spratt" <tspratt@...>
Date: Thu Sep 1, 2005 5:33 pm
Subject: RE: Re: Very simple security need: where to start?
nts333rd
Send Email Send Email
 
Ahh, maybe this is not so simple as I thought.

I have been laboring under the misconception that the custom wrapper
served from the web server would have the ip address of the webserver,
but this is wrong, it hits the Tomcat server with the ip address of the
client.

So I am starting over.  I'm starting to google this again, but any
suggestions on how to secure an ISAPI filter?

Tracy

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of Jason R. Weiss
Sent: Wednesday, August 31, 2005 8:34 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Very simple security need: where to start?

Take a look at RemoteHostValve and the RemoteAddrValve in the Tomcat
docs.  They'll give you what you want. You should be able to do
something like this in server.xml:


<Context path="" reloadable="true" docBase="c:/www" debug="0">
   <Valve className="org.apache.catalina.valves.RemoteAddrValve"
          allow="128.46.*.*"/>
   ...

</Context>

This example would only allow connections from 128.146.*.* clients.

HTH,

Jason Weiss


--
Jason Weiss
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
http://www.cynergysystems.com

Email:  jason.weiss@...
Office: 866-CYNERGY
Mobile: 1.832.444.2246









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

#20859 From: "parinda_b_patel" <parinda_b_patel@...>
Date: Thu Sep 1, 2005 6:23 pm
Subject: HeaderRender with sorting ability.
parinda_b_patel
Send Email Send Email
 
I need a datagrid column header texts to wrap over different lines for
which I have created a headerRenderer. But now the problem is that
applying the headerRenderer , I loose the default ability to sort on
the datagrid and It does not fire headerRelease event at all.Here is
my code
:

<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"
width="100%" height="100%"
     xmlns:sl ="sl.core.*"
     xmlns:renderers="sl.core.renderers.*"

     defaultButton="okBtn" creationComplete="performInit();"  >

     <mx:HBox width="100%" height="100%">
         <mx:Label fontWeight="bold" text="Phone Number List"  />
         <mx:DataGrid id="phonelist_dg" headerHeight="40" width="100%"
height="100%"  >
              <mx:columns>
                  <mx:Array>
                      <mx:DataGridColumn columnName="No" headerText="No
(COUNT)" />
                       <mx:DataGridColumn columnName="Phone"
headerText="Phone"  />

                  </mx:Array>
              </mx:columns>
         </mx:DataGrid>
     </mx:HBox>


     <mx:Script><![CDATA[

     function performInit(){
         var scope = this;
         phonelist_dg.getColumnAt(0).headerRenderer = HeaderRenderer;
         phonelist_dg.dataProvider = new Array({No : 1,
Phone:"1234567890"} , {No:2 , Phone:" 9876543210"});

     }
	 ]]></mx:Script>
</mx:Application>

================================================================
AND BELOW IS THE HEADERRENDERER CODE :
================================================================
<mx:VBox verticalGap="0"
      xmlns:mx="http://www.macromedia.com/2003/mxml"
	  width="100%"  height="100%"
	  hScrollPolicy="off" vScrollPolicy="off" >
	 <mx:Text id="h" width="50%" height="50%" textAlign="left"
mouseUp="listOwner.dispatchEvent({type:'mouseUp'});"
mouseDown="listOwner.dispatchEvent({type:'mouseDown'});" />
	 <mx:Text id="t" width="50%" height="50%" textAlign="left"
mouseUp="listOwner.dispatchEvent({type:'mouseUp'});"
mouseDown="listOwner.dispatchEvent({type:'mouseDown'});" />


	 <mx:Script><![CDATA[

	 import mx.controls.Label;
	 import mx.utils.Delegate;
	 import mx.controls.DataGrid ;

	 // The DataGrid this belongs to
	 var listOwner:DataGrid;


	 function setValue(str:String, item:Object, sel:Boolean)
	 {
		 h.text = str.substring(0, str.lastIndexOf("("));
		 t.text = str.substring( str.lastIndexOf("("), str.length);

	 }

     ]]></mx:Script>
</mx:VBox>

==================================================

I do not see any sorting arrow on the grid any more and if somebody
clicks on the header text itself it does not sort at all.

Please help.

Messages 20830 - 20859 of 165719   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help