Re: [flexcoders] destroyChild + TextField.. bug?

2005-04-10 Thread Scott Barnes

ahuh! i found a legit bug hehe.

I'll keep playing and use that doLater approach aswell, but if i find
another way i'll post here. Thanks for looking into it, it helped a
lot! heh.

Scott.



On Apr 9, 2005 3:26 AM, Abdul Qabiz [EMAIL PROTECTED] wrote:
 
 Hi Scott,
 
 It seems to be bug/limitation, I will report it...
 
 You can reproduce this with the simple code like this...
 
 mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
 mx:Script
 ![CDATA[
 
import mx.controls.TextArea;
 
 var ccInstance;
 
 function createInstance()
 {
 destroyChild(ccInstance);
  ccInstance = createChild(TextArea,ccInstance);
 }
 
 ]]
 /mx:Script
 mx:Button label=Create Instance click=createInstance()/
 /mx:Application
 
 In this case, you don't even need to edit the text, TextArea/TextInput is
 disabled in next click...
 
 There is workaround for your problem, if you keep little delay between
 destroyChild(..) and createChild(..) it works..
 
 Like this code use setInterval(..) and it works fine:
 
 ##DestroyCreateChildTest.mxml##
 
 mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
 mx:Script
 ![CDATA[
 
 import CustomComponent;
 import mx.controls.TextArea;
 
 var ccInstance;
 var delayIntervalId;
 
 function createInstance()
 {
 
 destroyChild(ccInstance);
 //ccInstance = createChild(TextArea,ccInstance);
 
 //delay the creation..hardcoded value..
 delayIntervalId = setInterval(
 
 mx.utils.Delegate.create(
 
 this,
 
 function()
 
 {
 
 clearInterval(delayIntervalId);
 
 ccInstance = createChild(TextArea,ccInstance);
 
 }
 
 ),
 
  0
 );
 
  }
 
 ]]
 /mx:Script
 
 mx:Button label=Create Instance click=createInstance()/
 /mx:Application
 
 Thanks for bringing up this issue...
 
 -abdul
 
 -Original Message-
 From: Scott Barnes [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 07, 2005 7:16 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] destroyChild + TextField.. bug?
 
 I have a straightfoward MXML component and inside it, i have a
 textarea component.
 
 works as per normal just simple code at this point.
 
 - I use createChild to instantiate the mxml component in a container.
 - I use destroyChild to delete that instantiated mxml component.
 
 Heres the thing.
 - Its got default text, Preview.. - if i leave it alone, and destroy
 it always comes back (*thumbs up*).
 - If i then edit that text field, then delete it and create another
 one (ie new/fresh version) i can't type in the textfield / default
 text is gone.
 
 I think when destroyChild it does something in terms of event
 listeners? anyone had similiar things happen?
 
 --
 Regards,
 Scott Barnes
 http://www.mossyblog.com
 http://www.flexcoder.com (Coming Soon)
 
 Yahoo! Groups Links
 
 Yahoo! Groups Links
 
 
 
 
 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com (Coming Soon)


 
Yahoo! Groups Links

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

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

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





[flexcoders] Cairngorn Example

2005-04-10 Thread viraf_bankwalla


Hi,

I have started looking at Cairngorn and was wondering if there were 
any real-world examples available.  The BOE example appears to be pre 
Cairngorn and the demo sample is trivial.

Are people using Cairngorn as a framework ?  Could you share your 
experiences? 

Thanks.





 
Yahoo! Groups Links

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

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

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





Re: [flexcoders] Cairngorn Example

2005-04-10 Thread Clint Tredway

My blog is built on Cairngorm... you can download it and look at the source.

I used Cairngorm in a large Intranet project, and while it slowed
development down a tad... it really helped in keeping things organized
and modular.

Clint

On Apr 10, 2005 8:12 AM, viraf_bankwalla [EMAIL PROTECTED] wrote:
 
 
 Hi,
 
 I have started looking at Cairngorn and was wondering if there were
 any real-world examples available.  The BOE example appears to be pre
 Cairngorn and the demo sample is trivial.
 
 Are people using Cairngorn as a framework ?  Could you share your
 experiences?
 
 Thanks.
 
 
 Yahoo! Groups Links
 
 
 
 
 


-- 
My Blog
http://www.clinttredway.com

Are you diabetic?
http://www.diabetesforums.com


 
Yahoo! Groups Links

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

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

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





Re: [flexcoders] destroyChild + TextField.. bug?

2005-04-10 Thread Manish Jethani

On Apr 10, 2005 2:38 PM, Scott Barnes [EMAIL PROTECTED] wrote:

 I'll keep playing and use that doLater approach aswell, 
[snip]

Seems like Abdul is right.  Chuck the doLater thing and use setInterval. :)

-- 
[EMAIL PROTECTED]
http://manish.revise.org/


 
Yahoo! Groups Links

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

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

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





Re: [flexcoders] Forms and dynamic components - samples

2005-04-10 Thread Manish Jethani

On Apr 10, 2005 8:25 PM, Tom Fitzpatrick [EMAIL PROTECTED] wrote:

 need some way to select one of the created components as the current
 component and then bind the form to it to make changes. Next step

I modified your favoritesText.mxml:

mx:Script
  var currentPerson:Person;
  ...
  currentPerson /* NOTE */ = mainApp.personHolder.createChild(Person,,
{id:
personId,
nameObject: personModel.name, // NOTE
favoritesObject: personModel.favorites // NOTE
});
/mx:Script

!-- model --
mx:Model id=personModel
  name{delegate.getName(vo.firstname,vo.lastname)}/name
  favorites{delegate.getFavorites(vo.color,vo.composer)}/favorites
/mx:Model

!-- bindings --
mx:Binding source=personModel.name
  destination=currentPerson.nameObject /
mx:Binding source=personModel.favorites
  destination=currentPerson.favoritesObject /

My objective of course was to get it working.  May not fit well with
the design of your app, so you'll want to clean it up or find a better
approach.

-- 
[EMAIL PROTECTED]
http://manish.revise.org/


 
Yahoo! Groups Links

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

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

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





RE: [flexcoders] Cairngorn Example

2005-04-10 Thread Alistair McLeod

Hi Viraf,

Caledon Bank (http://www.caledonbank.com) was built using the frameowork,
even though it predates the announce and release of Cairngorm 0.9 by quite a
few months - we've been using and enhancing the framework over the period of
a few years now. It was based upon a J2EE framework we had developed and
used for some years, which was itself  based on many of the Sun design
patterns. 

Its first incarnation was in ActionScript 1 when we developed the Opal
project way back in 2002. When we then started doing ActionScript 2.0
projects, we ported it over to the newer language and an implementation of
that was published in the ActionScript 2.0 Dictionary in 2003 - those that
have seen that will recognise the patterns that are now in both Cairngorm
and ARP. When we started using Flex, it was a easy decision to drop it in
place, and we've tweaked it more to suit with the Flex development cycle.

Cairngorm is being used extensively throughout the Flex development
community and I don't think its an overstatement to say that it is the
de-facto framework for the development of Enterprise Rich Internet
Applications - the framework has an an impressive list of companies gaining
from its features.

If you have any other questions on Cairngorm, please ask.

Cheers,

Ali

--
Alistair McLeod
Development Director
iteration::two
[EMAIL PROTECTED]
 
Office:  +44 (0)131 338 6108
 
This e-mail and any associated attachments transmitted with it may contain
confidential information and must not be copied, or disclosed, or used by
anyone other than the intended recipient(s). If you are not the intended
recipient(s) please destroy this e-mail, and any copies of it, immediately.
 
Please also note that while software systems have been used to try to ensure
that this e-mail has been swept for viruses, iteration::two do not accept
responsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried out
before any attachments are opened.
 

-Original Message-
From: viraf_bankwalla [mailto:[EMAIL PROTECTED] 
Sent: 10 April 2005 14:13
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cairngorn Example



Hi,

I have started looking at Cairngorn and was wondering if there were any
real-world examples available.  The BOE example appears to be pre Cairngorn
and the demo sample is trivial.

Are people using Cairngorn as a framework ?  Could you share your
experiences? 

Thanks.





 
Yahoo! Groups Links



 




 
Yahoo! Groups Links

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

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

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





RE: [flexcoders] Cairngorn Example

2005-04-10 Thread Alistair McLeod

Hi Clint,

I am surprised that you found that Cairngorm slowed your development down.
When we've introduced the framework to our clients, they've found the
learning curve short and shallow, in particular for development teams who
are coming from a J2EE and .NET background and have some experience of
design patterns.

We're you the sole developer on your intranet project? Cairngorm speeds up
development particularly in teams of multiple developers, where it aids the
separation of feature-add amongst those developers. 

Cheers,

Ali

--
Alistair McLeod
Development Director
iteration::two
[EMAIL PROTECTED]
 
Office:  +44 (0)131 338 6108
 
This e-mail and any associated attachments transmitted with it may contain
confidential information and must not be copied, or disclosed, or used by
anyone other than the intended recipient(s). If you are not the intended
recipient(s) please destroy this e-mail, and any copies of it, immediately.
 
Please also note that while software systems have been used to try to ensure
that this e-mail has been swept for viruses, iteration::two do not accept
responsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried out
before any attachments are opened.
 

-Original Message-
From: Clint Tredway [mailto:[EMAIL PROTECTED] 
Sent: 10 April 2005 14:32
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Cairngorn Example


My blog is built on Cairngorm... you can download it and look at the source.

I used Cairngorm in a large Intranet project, and while it slowed
development down a tad... it really helped in keeping things organized and
modular.

Clint

On Apr 10, 2005 8:12 AM, viraf_bankwalla [EMAIL PROTECTED] wrote:
 
 
 Hi,
 
 I have started looking at Cairngorn and was wondering if there were 
 any real-world examples available.  The BOE example appears to be pre 
 Cairngorn and the demo sample is trivial.
 
 Are people using Cairngorn as a framework ?  Could you share your 
 experiences?
 
 Thanks.
 
 
 Yahoo! Groups Links
 
 
 
 
 


--
My Blog
http://www.clinttredway.com

Are you diabetic?
http://www.diabetesforums.com


 
Yahoo! Groups Links



 




 
Yahoo! Groups Links

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

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

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





[flexcoders] Datagrids and Images

2005-04-10 Thread digital_eyezed


Hi,

I have a datagrid which is populated by a result from a remote object 
(an array of value objects), one of the value object attributes is a 
boolean. I want to show an image if the boolean is true in the 
datagrid, is this possible.

e.g.

Name, age, genger are the elements of the value object, where gender 
is true or false. If gender is true then I show a male symbol
(image), 
else show a female symbol(image).

Normally a simple embedded if statement would have been able to
tackle 
this, but as the datagrid is populated by the dataProvider tag I
can't 
see how to create this logic. Maybe I have to use a custom component 
or a reapeater tag.

Thanks,

Iain





 
Yahoo! Groups Links

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

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

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





RE: [flexcoders] Datagrids and Images

2005-04-10 Thread Abdul Qabiz

Hi,

It's simple, you can create a simple custom cellrenderer for datagrid column
which would show image based on column/cell value.

Look at docs here:
http://livedocs.macromedia.com/flex/15/flex_docs_en/0527.htm

If you still have any queries, ask here..

-abdul

 

-Original Message-
From: digital_eyezed [mailto:[EMAIL PROTECTED] 
Sent: Sunday, April 10, 2005 11:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Datagrids and Images



Hi,

I have a datagrid which is populated by a result from a remote object 
(an array of value objects), one of the value object attributes is a 
boolean. I want to show an image if the boolean is true in the 
datagrid, is this possible.

e.g.

Name, age, genger are the elements of the value object, where gender 
is true or false. If gender is true then I show a male symbol
(image), 
else show a female symbol(image).

Normally a simple embedded if statement would have been able to
tackle 
this, but as the datagrid is populated by the dataProvider tag I
can't 
see how to create this logic. Maybe I have to use a custom component 
or a reapeater tag.

Thanks,

Iain





 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

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

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

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





[flexcoders] Re: Datagrids and Images

2005-04-10 Thread digital_eyezed


Great thanks,

I've done that now, however, what about in the header, can I use a 
headerRenderer to show an Icon in the header? The documentation 
doesn't show this as being possible.

I can show a tooltip in the header but what about images?

Cheers,

Iain

--- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:
 Hi,
 
 It's simple, you can create a simple custom cellrenderer for 
datagrid column
 which would show image based on column/cell value.
 
 Look at docs here:
 http://livedocs.macromedia.com/flex/15/flex_docs_en/0527.htm
 
 If you still have any queries, ask here..
 
 -abdul
 
  
 
 -Original Message-
 From: digital_eyezed [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, April 10, 2005 11:03 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Datagrids and Images
 
 
 
 Hi,
 
 I have a datagrid which is populated by a result from a remote 
object 
 (an array of value objects), one of the value object attributes is 
a 
 boolean. I want to show an image if the boolean is true in the 
 datagrid, is this possible.
 
 e.g.
 
 Name, age, genger are the elements of the value object, where 
gender 
 is true or false. If gender is true then I show a male symbol
 (image), 
 else show a female symbol(image).
 
 Normally a simple embedded if statement would have been able to
 tackle 
 this, but as the datagrid is populated by the dataProvider tag I
 can't 
 see how to create this logic. Maybe I have to use a custom 
component 
 or a reapeater tag.
 
 Thanks,
 
 Iain
 
 
 
 
 
  
 Yahoo! Groups Links





 
Yahoo! Groups Links

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

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

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





Re: [flexcoders] Re: Datagrids and Images

2005-04-10 Thread Manish Jethani

On Apr 11, 2005 1:59 AM, digital_eyezed [EMAIL PROTECTED] wrote:

 I've done that now, however, what about in the header, can I use a
 headerRenderer to show an Icon in the header? The documentation
 doesn't show this as being possible.

You can use a custom header renderer.  See this example in which I've
created a custom header renderer:
http://manish.revise.org/flash/flex/ReorderableHeaderRenderer.zip

-- 
[EMAIL PROTECTED]
http://manish.revise.org/


 
Yahoo! Groups Links

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

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

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





[flexcoders] Re: Datagrids and Images

2005-04-10 Thread digital_eyezed


Sorry I can't see how this helps, this shows how to drag and drop 
columns on a datagrid, which is not the same as having an icon in the 
column header. All I want to do is put an icon in the header of each 
column on the datagrid, however as you can see from this renderer 
class I can show a tooltip and have the text set to R, but I really 
want to show a little fork and knife icon instead of having an 'R', 
and a tooltip.

import mx.controls.Label;
class refreshRenderer extends mx.controls.Label{
   var lbl : MovieClip;
   var listOwner : MovieClip; //Reference to the parent DataGrid.

   function myRenderer(){
   }
   public function createChildren():Void {
  lbl = createClassObject(Label, 'label', 1, {toolTip: 'Are there 
refreshment facilities?'});
  lbl.text = R;
   }

   public function getPreferredHeight():Number {
  return listOwner.rowHeight;
   }

   public function layoutChildren():Void {
  lbl.setSize(18, listOwner.rowHeight);
   }

   function setValue(str:String, item:Object, sel:Boolean) : Void {
   }
}

--- In flexcoders@yahoogroups.com, Manish Jethani 
[EMAIL PROTECTED] wrote:
 On Apr 11, 2005 1:59 AM, digital_eyezed [EMAIL PROTECTED] wrote:
 
  I've done that now, however, what about in the header, can I use a
  headerRenderer to show an Icon in the header? The documentation
  doesn't show this as being possible.
 
 You can use a custom header renderer.  See this example in which
I've
 created a custom header renderer:
 http://manish.revise.org/flash/flex/ReorderableHeaderRenderer.zip
 
 -- 
 [EMAIL PROTECTED]
 http://manish.revise.org/





 
Yahoo! Groups Links

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

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

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





[flexcoders] DataProvider Events (filterModel or updateAll)

2005-04-10 Thread viraf_bankwalla


Hi,

The DataProvider document identifies the following events:

addItems - The firstItem and lastItem properties will indicate the 
indices of the new items added. 
removeItems - The firstItem and lastItem properties will indicate 
the indices of the removed items. 
updateItems - The firstItem and lastItem properties will indicate 
the indices of the updated items. 
sort - The entire data set has been sorted. 
updateField - This means that a cell or field in the data for that 
row/item has been edited. The firstItem and lastItem properties will 
indicate the index of the updated item, fieldName will name which 
field in the item changed. 
filterModel - The data set has been filtered, or the filter has been 
changed or removed. 
updateAll - this means that the data has been entirely replaced or 
that the data has changed so significantly that the component 
displaying the data should recheck the number of items and request 
all the data again. 

My question is when should I use the filterModel vs the updateAll.  
I have a filtered DataProvider that extends an Array.  When a filter 
is applied, it uses the Array functions splice(0) to remove the 
elements from the Array and then populates it using push().  When 
this is done I want to trigger the appropiate event (not sure if it 
is filterModel or updateAll).

Any siggestions on what I should be using ?  I am using the array 
functions rather than the dataProvider functions removeAll, addItem 
as I do not want to trigger a set of events while I am updating the 
data provider.  An alternative would be to simple create and 
populate a new DataProvider.

Any suggestions / comments on my alternatives ?

Thanks.





 
Yahoo! Groups Links

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

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

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





[flexcoders] Hide Datagrid column

2005-04-10 Thread Valy Sivec

Hello flexcoders,

A trivial situation:

Have a datagrid and after selecting a row can
edit/update   the selected row via a pop-up window. I
want that one column of the data grid ( primary key )
to be hidden, but didn't find how... I need the
primary key in the popup to be able locateupdate the
source record..

Thanks for your time.
Valy



__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 


 
Yahoo! Groups Links

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

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

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





RE: [flexcoders] DataProvider Events (filterModel or updateAll)

2005-04-10 Thread Matt Chotin










I think internally the List/DataGrid ends
up treating them the same, go ahead and use updateAll.



Matt











From: viraf_bankwalla
[mailto:[EMAIL PROTECTED] 
Sent: Sunday, April 10, 2005 4:42
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataProvider
Events (filterModel or updateAll)




My
question is when should I use the filterModel vs the updateAll. 
I have a
filtered DataProvider that extends an Array. When a filter 
is applied,
it uses the Array functions splice(0) to remove the 
elements
from the Array and then populates it using push(). When 
this is done
I want to trigger the appropiate event (not sure if it 
is
filterModel or updateAll).

Any
siggestions on what I should be using ? I am using the array 
functions
rather than the dataProvider functions removeAll, addItem 
as I do not
want to trigger a set of events while I am updating the 
data provider.
An alternative would be to simple create and 
populate a
new DataProvider.














Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












RE: [flexcoders] Hide Datagrid column

2005-04-10 Thread Matt Chotin










If you want a column to not show youll
basically need to specify the other columns (the ones you want to show) manually.
So create DataGridColumn entries for all columns you want and leave off the
primary key.



Matt











From: Valy Sivec
[mailto:[EMAIL PROTECTED] 
Sent: Sunday, April 10, 2005 4:52
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Hide
Datagrid column





Hello flexcoders,

A trivial situation:

Have a datagrid and after selecting a row can
edit/update the selected row via a
pop-up window. I
want that one column of the data grid ( primary
key )
to be hidden, but didn't find how... I need the
primary key in the popup to be able
locateupdate the
source record..

Thanks for your time.
Valy



 
__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources
site!
http://smallbusiness.yahoo.com/resources/













Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












[flexcoders] flex and jsp

2005-04-10 Thread Andrew Spaulding


Hi all,

I'm trying to pass a param to my mxml file via jsp.

Here is my code:

mm:mxml source=/myDir/myFile.mxml
  mm:param name=REMOTE_ADDR value=%= request.getRemoteAddr() % /
/mm:mxml

If I echo the jsp code at the top of the page it workes fine, it just
doesnt get passed to my mxml file. I have REMOTE_ADDR declared in a
script block at the beginning of my mxml file.

I have also tried the sample from the this article
http://www.macromedia.com/devnet/flex/articles/server_perf_05.html as
follows (this also doesnt work):

% session.setAttribute(username, brandon); %
%@ taglib uri=FlexTagLib prefix=mm %
mm:mxml
mm:param name=userName value=%= session.getAttribute(username)
% /
  mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
width=200 height=200
  mx:Script
   var userName:String;
  /mx:Script
mx:Label id=uName text=Hi {userName}/
  /mx:Application
 /mm:mxml


Any ideas on how I can get these to work?

Andrew.







 
Yahoo! Groups Links

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

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

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





RE: [flexcoders] Sort Array of object

2005-04-10 Thread Jeff Krueger










Thanks, compareFunc did the trick.



Jeff













From: Matt Chotin
[mailto:[EMAIL PROTECTED] 
Sent: Friday, April 08, 2005 8:33
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Sort
Array of object





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



Array.sortOn is what youre looking for I think. Array.sort
will take a compareFunc if you want to do something more complex.



Matt











From: Jeff Krueger
[mailto:[EMAIL PROTECTED] 
Sent: Friday, April 08, 2005 6:59
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Sort Array
of object





Hello,




Is there a way to sort and array of objects. So for example I have and
array of a class



class test

{


public var A:String;


public var B:String;


public var C:String;

}



And I want to sort the array by the value in the variable B.



arrayInstance.sort(test.B,Array.Descending);

or

arrayInstance.sort(B,Array.Descending);



Neither seem to work for me, is this not possible?



Thanks





Jeff 













Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












[flexcoders] HSlider for FLASH MX 2004?

2005-04-10 Thread Scott Barnes

Anyone know or could point me to where I can get my grubby hands on a
HSlider for FLASH MX 2004 that supports 1+ thumbs?

ie( double thumbs ver)

I have Slider.mxp from DRk 6 i think it was, but need two thumbs (min max) ?

-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com (Coming Soon)


 
Yahoo! Groups Links

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

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

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





[flexcoders] Tab navigator container

2005-04-10 Thread nithya karthik



I am working on a project in Flex1.5, I would like to know the code of how to make a menu apper beneath the enabled Tab in a tab navigator on mouseover. please this is very urgent.. can u help me in this regard?
thanks,
nithya  
Yahoo! Messenger - Communicate instantly..."Ping" your friends 
today! Download Messenger Now







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] flex and jsp

2005-04-10 Thread Dan Tropp







I think you want thissearch the Flex documentation for
"flashvars". AFAIK this is the only way to pass data into your Flex
app.

Dan
Using flashVars
You can pass variables to your Flex applications using the flashVars
property in the object and embed
tags in your HTML wrapper. You do this either when you write your own
custom HTML wrapper or when you use the Flex JSP Tag Library's flash
and mxml tags to generate the HTML output that
displays the Flex application. 
The following example sets the values of the firstname,
middlename, and lastname flashVars
properties:
object classid='' codebase='' width='500' height='500'
   param name='flashVars' value='firstname=Reinermiddlename=Tlastname=Knizia'
   param name='src' value='vartest.mxml.swf'
  embed pluginspage='http://www.macromedia.com/go/getflashplayer' width='500' height='500' flashVars='' src='' /
/object

To pass flashVars to a Flex application in a JSP, add
the flashvar tag that defines the flashVars
properties to the flash or mxml
tag, as the following example shows:
%@ taglib uri="FlexTagLib" prefix="mm" %
h2FlashVars Parameters/h2
mm:flash source="jsptest2.swf" supportembed="false" border="5"
   mm:flashvar name="firstname" value="Reiner" /
   mm:flashvar name="middlename" value="T" /
   mm:flashvar name="lastname" value="Knizia" /

/mm:flash



Andrew Spaulding wrote:

  
Hi all,
  
I'm trying to pass a param to my mxml file via jsp.
  
Here is my code:
  
mm:mxml source="/myDir/myFile.mxml"
 mm:param name="REMOTE_ADDR" value="%= request.getRemoteAddr()
%" /
/mm:mxml
  
If I echo the jsp code at the top of the page it workes fine, it just
doesnt get passed to my mxml file. I have REMOTE_ADDR declared in a
script block at the beginning of my mxml file.
  
I have also tried the sample from the this article
  http://www.macromedia.com/devnet/flex/articles/server_perf_05.html
as
follows (this also doesnt work):
  
% session.setAttribute("username", "brandon"); %
%@ taglib uri="FlexTagLib" prefix="mm" %
mm:mxml
mm:param name="userName" value="%=
session.getAttribute("username")
%" /
 mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"
width="200" height="200"
 mx:Script
 var userName:String;
 /mx:Script
 mx:Label id="uName" text="Hi {userName}"/
 /mx:Application
/mm:mxml
  
  
Any ideas on how I can get these to work?
  
Andrew.
  
  
  
  
  
  











Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.















[flexcoders] Re: flex and jsp

2005-04-10 Thread Andrew Spaulding


Hi Dan,

yeh I had the param code working in flex 1.0 (i will try it again when
I get back to the office).

I wonder why it doesnt work in 1.5? It is in the docs too .. and has
also been written up in the performance article on devnet. 

I'll give the flashvars a go. But would also like to find out why
param doesnt work,

Thanks

Andrew.





 
Yahoo! Groups Links

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

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

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





Re: [flexcoders] Tab navigator container

2005-04-10 Thread Manish Jethani

On Apr 11, 2005 10:26 AM, nithya karthik [EMAIL PROTECTED] wrote:

 I am working on a project in Flex1.5, I would like to know the code of how
 to make a menu apper beneath the enabled Tab in a tab navigator on
 mouseover.

mx:TabNavigator
  mx:VBox !-- active tab --
mx:MenuBar dataProvider={myMenuData} /
  /mx:VBox
  mx:VBox
  /mx:VBox
/mx:TabNavigator

-- 
[EMAIL PROTECTED]
http://manish.revise.org/


 
Yahoo! Groups Links

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

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

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





[flexcoders] Re: No debugging information available for invocation of methods on server-side

2005-04-10 Thread Andrew Spaulding


Hey Dan,

have you tried looking at catalina.out?

Also if you have turned on all of the debugging on the flex-config how
about running the NetConnectionDebugger ? It will help monitor all
remoteObject calls and the result/fault returns from your java backend. 

You can find it in your flex install directory
/extras/netConnectionDebugger/

Andrew

btw I use Flex 1.5, Tomcat 4.1.30, Windows XP


--- In flexcoders@yahoogroups.com, Dan Tropp [EMAIL PROTECTED] wrote:
 This is getting really frustrating.  I have turned all the debug flags 
 to true in the flex-config.xml file and the logging level to debug, and 
 I still get nothing!
 
 I can't locate any flashlog.txt (or similar) on the client and no debug 
 information is appearing in my WEB-INF/flex/logs/flex.log or in my 
 Tomcat server logs.  Have I missed some simple setting?
 
 I also installed the Debug Flash Player, but the Debugger option from 
 the context menu is always greyed out.
 
 What debugging information do people work with?
 
 Many thanks,
 
 Dan
 (Tomcat5, Flex1.5, Windows XP)
 
 PS It has taken me a couple of hours to realise my server-side Java 
 method was throwing a Null Pointer exception.  The only information I 
 was getting was Error: An error occurred during service invocation in 
 my Tomcat log.  Urgh!





 
Yahoo! Groups Links

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

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

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