Re: [flexcoders] Dynamic model

2005-02-07 Thread ibibas

Jeff,

Yes, the filename changes. It depends on the user selection(obviuosly at
runtime). Just I want to load the specified XML at runtime. Avoid to load
all the possible XML´s in the startup. Thanks for your help

Isaac Bibás Forado




 
Jeff Steiner  
[EMAIL PROTECTED] Para: flexcoders@yahoogroups.com  
ty.com cc:  
Asunto: Re: [flexcoders] Dynamic model  
04/02/2005 18:14  
Por favor,  
responda a  
flexcoders  
 
 




Isaac,

Are we to understand that the XML filename changes and that you are trying
to compile the result into the swf at compile time, or are you, for
example,
passing a querystring variable to a dynamic page which results in dynamic
XML?

mx:Model and mx:XML tags grab the XML at compile time and store it in the
compiled swf.

mx:HTTPService does not store the actual file but rather stores a url that
the swf uses at runtime to grab xml dynamically.

Does that answer your question?

Jeff
http://www.flexauthority.com


- Original Message -
From: [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, February 04, 2005 4:17 AM
Subject: RE: [flexcoders] Dynamic model




Thanks Abdul, but I think I´ve not explained my problem correctly. As the
XML name is dynamic, I need to create the Model at runtime. In other words,
I know the XML name in the moment the .mxml page is built , I cannot
declare the Model as you suggest. me. Any thoughts?

Isaac Bibás




Abdul Qabiz
[EMAIL PROTECTED] Para:
flexcoders@yahoogroups.com
a.com cc:
Asunto: RE: [flexcoders]
Dynamic model
04/02/2005 12:19
Por favor,
responda a
flexcoders






Hi,

You can't use Model to load XML on runtime. It works at compile time...

However, you can use HTTPService object to load xml dynamically at runtime.
Please search the flexcoders archive, this question has been discussed
recently..

Also check out Flex documentation for HTTPService.

I answered something similar last month, following is the code. Might help
you..


##app.mxml##

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
creationComplete=setOptions()
mx:Model id=optionsXMLModel source=options.xml/
mx:Script
![CDATA[
import mx.utils.ArrayUtil;
var optionsDP;

function setOptions()
{
/*
List controls like, List, ComboBox, etc can't use XML object
as their model(dataProvider)...
So we are using ArrayUtil.toUtil(..) utility function to
covert a XML object to an Array of Objects.
*/

optionsDP = ArrayUtil.toArray(optionsXMLModel.option);
_cb2.dataProvider = optionsDP;
}


function onComboChange(eventObj)
{
alert(eventObj.target.selectedItem.data);
}
]]
/mx:Script

mx:HBox backgroundColor=#CC
mx:Label fontSize=15 text=ComboBox populated from XML using
DataBinding/
/mx:HBox
mx:ComboBox id=_cb1
dataProvider={ArrayUtil.toArray(optionsXMLModel.option)}
change=onComboChange(event);/
mx:Spacer height=10%/
mx:HBox backgroundColor=#CC
mx:Label fontSize=15 text=ComboBox populated from XML using
ActionScript /
/mx:HBox
mx:ComboBox id=_cb2 change=onComboChange(event);/

/mx:Application




###data.xml###

?xml version=1.0 encoding=utf-8?
options
option label=A-ADD data=A/
option label=C-COPY data=C/
/options



-abdul



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, February 04, 2005 3:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dynamic model



Hi coders,

I intend to create a generic screen containing a comboBox its content
depends on externalized parameter specifying a XML file.
I´ve tried unsuccessfully the following:
mx:Model id=fieldList source={the_XML_path}/ In a AS function:
myModel:Model = new Model();
myModel.source=the_XML_path;

Anybody knows how to create model dynamically?

Thanks in advance for your help.


Isaac Bibás





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 the Yahoo! Terms of Service.







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 the Yahoo! Terms of Service.








RE: [flexcoders] Dynamic model

2005-02-07 Thread Abdul Qabiz
Hi,

I guess, you should look at Manish's post regarding using HTTPService to
load XML at runtime. I also suggested few days back on the same thread.

Please see Flex Doc for HTTPService usage.

Look here what I suggested earlier:
http://cflex.net/showfiledetails.cfm?ChannelID=1Object=FileobjectID=103

-abdul



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 07, 2005 1:38 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Dynamic model



Jeff,

Yes, the filename changes. It depends on the user selection(obviuosly at
runtime). Just I want to load the specified XML at runtime. Avoid to load
all the possible XML´s in the startup. Thanks for your help

Isaac Bibás Forado




 

Jeff Steiner

[EMAIL PROTECTED] Para:
flexcoders@yahoogroups.com

ty.com cc:

Asunto: Re: [flexcoders]
Dynamic model  
04/02/2005 18:14

Por favor,

responda a

flexcoders

 

 





Isaac,

Are we to understand that the XML filename changes and that you are trying
to compile the result into the swf at compile time, or are you, for example,
passing a querystring variable to a dynamic page which results in dynamic
XML?

mx:Model and mx:XML tags grab the XML at compile time and store it in the
compiled swf.

mx:HTTPService does not store the actual file but rather stores a url that
the swf uses at runtime to grab xml dynamically.

Does that answer your question?

Jeff
http://www.flexauthority.com


- Original Message -
From: [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, February 04, 2005 4:17 AM
Subject: RE: [flexcoders] Dynamic model




Thanks Abdul, but I think I´ve not explained my problem correctly. As the
XML name is dynamic, I need to create the Model at runtime. In other words,
I know the XML name in the moment the .mxml page is built , I cannot declare
the Model as you suggest. me. Any thoughts?

Isaac Bibás




Abdul Qabiz
[EMAIL PROTECTED] Para:
flexcoders@yahoogroups.com
a.com cc:
Asunto: RE: [flexcoders]
Dynamic model
04/02/2005 12:19
Por favor,
responda a
flexcoders






Hi,

You can't use Model to load XML on runtime. It works at compile time...

However, you can use HTTPService object to load xml dynamically at runtime.
Please search the flexcoders archive, this question has been discussed
recently..

Also check out Flex documentation for HTTPService.

I answered something similar last month, following is the code. Might help
you..


##app.mxml##

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
creationComplete=setOptions()
mx:Model id=optionsXMLModel source=options.xml/ mx:Script ![CDATA[
import mx.utils.ArrayUtil;
var optionsDP;

function setOptions()
{
/*
List controls like, List, ComboBox, etc can't use XML object as
their model(dataProvider)...
So we are using ArrayUtil.toUtil(..) utility function to covert
a XML object to an Array of Objects.
*/

optionsDP = ArrayUtil.toArray(optionsXMLModel.option);
_cb2.dataProvider = optionsDP;
}


function onComboChange(eventObj)
{
alert(eventObj.target.selectedItem.data);
}
]]
/mx:Script

mx:HBox backgroundColor=#CC
mx:Label fontSize=15 text=ComboBox populated from XML using
DataBinding/ /mx:HBox mx:ComboBox id=_cb1
dataProvider={ArrayUtil.toArray(optionsXMLModel.option)}
change=onComboChange(event);/
mx:Spacer height=10%/
mx:HBox backgroundColor=#CC
mx:Label fontSize=15 text=ComboBox populated from XML using
ActionScript / /mx:HBox mx:ComboBox id=_cb2
change=onComboChange(event);/

/mx:Application




###data.xml###

?xml version=1.0 encoding=utf-8?
options
option label=A-ADD data=A/
option label=C-COPY data=C/
/options



-abdul



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, February 04, 2005 3:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dynamic model



Hi coders,

I intend to create a generic screen containing a comboBox its content
depends on externalized parameter specifying a XML file.
I´ve tried unsuccessfully the following:
mx:Model id=fieldList source={the_XML_path}/ In a AS function:
myModel:Model = new Model();
myModel.source=the_XML_path;

Anybody knows how to create model dynamically?

Thanks in advance for your help.


Isaac Bibás





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 the Yahoo! Terms of Service.







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 the Yahoo! Terms of Service.






 
Yahoo! Groups Links



 






interview on 12th and 13th(ONLY hyderabad,chennai) for automation winrunner /rat

2005-02-07 Thread buddy_sona2004

Hi!!!
Our Client Founded in 1989,is a global IT services firm focused on 
the financial services industry. With over 3,600 employees, provides 
its services primarily to banks, credit service providers, insurance 
companies, and capital markets firms. The company uses a global 
delivery model to provide application development, maintenance and 
support, software package selection and integration, business process 
and technology advice, network and system security, and specialized 
services. Our Client is a CMM Level 5 assessed company headquartered 
in greater Chicago with offices in the U.S., Canada, U.K., Australia, 
Hong Kong, Japan, Singapore and India.

Our Client is a premier global systems integrator providing high-
quality, high-value solutions to the insurance, banking, lending, 
credit card, and capital markets industries. With corporate offices 
in Rosemont, Illinois, has 14 locations throughout the US, Canada, 
Europe, Australia, Hong Kong, Singapore, Japan, and India. 

[please mention the REQUIREMENT No in the Subject of the Mail]

REQUIRMENT I : Automation Engineers -  

Job Location: Pune
Total positions to be staffed :10 nos.
Date of the event:12th and 13th Feb'05
Venue   :Interview @ Chennai  Hyderabad 
The evenT:Junior Automation Engineers -  

Experience 3-5 yrs exp. in Win runner/ QTP/Silk/Rational (with at 
least 2 year of automation exp)
The selection process:  Technical test followed by tech interview 
(incase the candidate is shortlisted in the technical test)
Test to be conducted in Chennai and Hyderabad for people with 2-4 
years of experience (with alteast 1year of automation (win runner, 
QTP, Silk, rational))


REQUIRMENT II : Senior Automation Engineers -

Experience:4-7 years exp. in Win runner/ QTP/Silk/Rational. (with at 
least 3 year automation exp.)
The selection process   :Direct interviews.@ Chennai  Hyderbad


Requirement : Quick Test Professional
Experience : 1-3yrs 
Qualification : BE,MCA,MS,BTECH
Location : Chennai

Interviews for senior candidates with the same skill set with minimum 
3year automation and over all testing exp between 4-7 years to be 
conducted in Chennai and Hyderabad.

Job description

·Good analytical and communication skills. 
·Create Modular and Maintainable scripts. 
·Good understanding for different Automation frameworks. 
·Experienced in using advance functions related to Database and web 
·Creating Compiled modules and user defined functions. 
·Ability to customize tool settings as per project needs. 
·Ability to train and mentor new member on Automation concepts and 
strategies. 

In receipt of your resume we will contact you fordiscussing on the 
job proile .We assure that your resume will not be processedwithout 
your consent.We will be Online in Yahoo Chat 
ID:[EMAIL PROTECTED] Kindly please send as your updated 
resume at the earliest.

With best regards,
subathradevi
Career Impact
Ph:o44- 52024557
Mail: [EMAIL PROTECTED]
[EMAIL PROTECTED]
chat id:[EMAIL PROTECTED]










Installing Flex under a full Jrun

2005-02-07 Thread greenfishinwater

I have been successfully using Flex with the integrated Jrun
enviroment. I am now setting up a new Jrun environment on a different
box, on top of which I will install Flex.

I notice that after installing Jrun, there are 2 servers running,
Admin and default. Do I need the admin server? Should I install Flex
under default, or should I create a new server?

I have briefly browsed the Macromedia site for Jrun and cannot find
any documentation about the admin server, or default server, can
anybody point me in the right direction.

Thank you








RE: [flexcoders] Installing Flex under a full Jrun

2005-02-07 Thread Benoit Hediard
No need to create a new server.
Just create a flex folder under default server and unzip flex.war in it.
Start Jrun default server.
  
You should then be able to access mxml files.
Ex. : http://localhost:8100/flex/SomeApp.mxml


Benoit Hediard

-Message d'origine-
De : greenfishinwater [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 7 février 2005 13:11
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Installing Flex under a full Jrun



I have been successfully using Flex with the integrated Jrun enviroment. I
am now setting up a new Jrun environment on a different box, on top of which
I will install Flex.

I notice that after installing Jrun, there are 2 servers running, Admin and
default. Do I need the admin server? Should I install Flex under default, or
should I create a new server?

I have briefly browsed the Macromedia site for Jrun and cannot find any
documentation about the admin server, or default server, can anybody point
me in the right direction.

Thank you






 
Yahoo! Groups Links



 










RE: [flexcoders] codeless MXML seprate AS class help

2005-02-07 Thread Abdul Qabiz
Hi Art,

I couldn't get what you are asking. Do you mean to have separate event
handler for all seven buttons in MXML?

What I interpret, you have seven buttons in mxml and one click function
handling the click events for those buttons. You can identify the button
clicked by using event.target.id.


function click(event)
{
var target = event.target.id;

switch(id) {

case button1:
//do something
break;
case button2:
//do something
break;
case button3:
//do something
break;
}
}




Does it help? Please give us more details?

-abdul



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 07, 2005 6:36 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] codeless MXML seprate AS class help


Hi All,

I'm trying to make my class seprate from my MXML. I'm following the simple
example founf in the docs but I've ran into one problem. How do I define
multiple click events from different buttons? I have 7 at the moment and for
the life of me I can't find an example w/ more than one button click
function.

thanks,
-Art




Yahoo! Groups Links










Re: [flexcoders] codeless MXML seprate AS class help

2005-02-07 Thread Aral Balkan
Hi Art,
Either try Abdul's advice or use mx.utils.Delegate:
eg. myButton.addEventListener ( click, Delegate.create ( this, 
myButtonClick ) );

function myButtonClick ()
{
// handle event here
}
Aral
Abdul Qabiz wrote:
What I interpret, you have seven buttons in mxml and one click function
handling the click events for those buttons. You can identify the button
clicked by using event.target.id.





Tree hScrollPolicy not working as expected

2005-02-07 Thread greenfishinwater

I have a tree which I build dynamically from a database, as each node
is opened. This works 100%. I have both hScrollPolicy and
vScrollPolicy set to auto, but the horizontal scroll bars never
appear. For some of my nodes at the bottom of the tree, the label is
quite long, and the text is just truncated at the righthand edge of
the tree.

When I set hScrollPolicy to on, the scrollbar appears from the very
beginning, and the tree node can be scrolled to display the full text. 

But I have noticed that when I set the tree width quite small
(x=180) even though the horizontal scroll bar appears and works,
some of the node label is truncated from the righthand edge. The
smaller I make the width of the tree, the more the truncation happens,
even though the horizontal scroll bar is shown. It seems that it only
scrolls horizontally a fixed distance, which does not depend on the
width of the label to be shown. The vertical scrollbar scrolls all
the way regardless of the number of nodes displayed in the tree.

Any ideas?

Thank you








RE: [flexcoders] Installing Flex under a full Jrun

2005-02-07 Thread Allen Manning



Matt,

Thanks for clearing up my ambiguity...

Rather -Disabling the admin service does notprevent 
you from running another JRUN server on a different port. The Admin 
service running is not required to run other servers from other 
ports.

I think that is clearer...

Allen


From: Matt Horn [mailto:[EMAIL PROTECTED] 
Sent: 07 February 2005 15:37To: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Installing Flex 
under a full Jrun

Note that you can have any number of Jrun servers running. 
You don't have to disable the Admin server to run a new one. The limitationis 
that each server requires a unique port. 

There's extensive JRun documentation about installing, 
configuring,and using JRun servers in the JRun Administrator's Guide 
here:

http://livedocs.macromedia.com/jrun/4/JRun_Administrators_Guide/contents.htm

hth,

matt h



From: Allen Manning [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 07, 2005 7:17 AMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] InstallingFlex 
under a full Jrun

Hello,

The Admin Server is only for the JRUN Administrator Web 
Application. You can disable that to run another server 
instance.

HTH,
Allen








Allen 
Manning, Technical Director 

Prismix 
Ltd t: +44 (0)870 749 1100 f: 
+44 (0)870 749 1200 w: www.prismix.com 









From: greenfishinwater 
[mailto:[EMAIL PROTECTED] Sent: 07 February 2005 
12:11To: flexcoders@yahoogroups.comSubject: [flexcoders] 
Installing Flex under a full Jrun
I have been successfully using Flex with the integrated 
Jrunenviroment. I am now setting up a new Jrun environment on a 
differentbox, on top of which I will install Flex.I notice that 
after installing Jrun, there are 2 servers running,Admin and default.Do I 
need the admin server? Should I install Flexunder default, or should I 
create a new server?I have briefly browsed the Macromedia site for 
Jrun and cannot findany documentation about the admin server, or default 
server, cananybody point me in the right direction.Thank 
you


OT: Flex Position in Montreal, Canada

2005-02-07 Thread Stacy Young








Hi All,



We have a position opening up for a Flex developer, based in
Montreal, Canada. Cutting edge projectsprimarily Flex UI work complimented
with Java/CF as well. Very dynamic environment with some talented folks. Ifyoure
interested please drop me a line off list. UI design experience a must, some
Flex experience required, knowledge of Cairngorm framework a huge bonus.



Thanks!

Stacy Young

Optimal Payments

http://www.optimalpayments.com












Multiple Row/Column Headers in a datagrid

2005-02-07 Thread dhiren9

Hi all,

Is it possible to have multiple row and column headers in a data 
grid? i.e. 2 or more columns of row headers and 2 or more rows of 
column headers :)

Thanks,
Dhiren







Re: Installing Flex under a full Jrun

2005-02-07 Thread greenfishinwater

Matt,

Thanks for the link.

--- In flexcoders@yahoogroups.com, Matt Horn [EMAIL PROTECTED] wrote:
 Note that you can have any number of Jrun servers running. You don't
have to
 disable the Admin server to run a new one. The limitation is that each
 server requires a unique port. 
 
 There's extensive JRun documentation about installing, configuring, and
 using JRun servers in the JRun Administrator's Guide here:
 

http://livedocs.macromedia.com/jrun/4/JRun_Administrators_Guide/contents.htm

http://livedocs.macromedia.com/jrun/4/JRun_Administrators_Guide/contents.ht
 m 
 
 hth,
 
 matt h 
 
 
 _ 
 
 From: Allen Manning [mailto:[EMAIL PROTECTED] 
 Sent: Monday, February 07, 2005 7:17 AM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Installing Flex under a full Jrun
 
 
 Hello,
 
 The Admin Server is only for the JRUN Administrator Web Application.
You
 can disable that to run another server instance.
 
 HTH,
 Allen
 
 
 
 
 Allen Manning, Technical Director 
 Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w:
www.prismix.com
 http://www.prismix.com 
 
 
 
 
 
 
 _ 
 
 From: greenfishinwater [mailto:[EMAIL PROTECTED] 
 Sent: 07 February 2005 12:11
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Installing Flex under a full Jrun
 
 
 
 I have been successfully using Flex with the integrated Jrun
 enviroment. I am now setting up a new Jrun environment on a different
 box, on top of which I will install Flex.
 
 I notice that after installing Jrun, there are 2 servers running,
 Admin and default. Do I need the admin server? Should I install Flex
 under default, or should I create a new server?
 
 I have briefly browsed the Macromedia site for Jrun and cannot find
 any documentation about the admin server, or default server, can
 anybody point me in the right direction.
 
 Thank you
 
 
 
 
 
 
 _ 
 
 Yahoo! Groups Links
 
 
 * To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
 http://groups.yahoo.com/group/flexcoders/ 
 
 
 * To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] 
 
 
 * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
 http://docs.yahoo.com/info/terms/ .







RE: [flexcoders] OT: Flex Position in Montreal, Canada

2005-02-07 Thread Steven Webster



Some talented folks ? I hear Jimmy and Stacyare 
workin' there as well..

( "If it's not Scottish, ", Myers M. 
)

Steven



From: Stacy Young 
[mailto:[EMAIL PROTECTED] Sent: 07 February 2005 
16:10To: flexcoders@yahoogroups.comSubject: [flexcoders] 
OT: Flex Position in Montreal, Canada


Hi All,

We have a position opening up for 
a Flex developer, based in Montreal, Canada. Cutting edge projectsprimarily 
Flex UI work complimented with Java/CF as well. Very dynamic environment with 
some talented folks. If youre interested please drop me a line offlist. UI 
design experience a must, some Flex experience required, knowledge of 
Cairngorm framework a 
huge bonus.



RE: [flexcoders] OT: Flex Position in Montreal, Canada

2005-02-07 Thread Stacy Young








Bonus points to folks that show up in a
kilt and bag pipes 











From: Steven Webster
[mailto:[EMAIL PROTECTED] 
Sent: Monday, February 07, 2005
11:31 AM
To: [EMAIL PROTECTED]
Subject: RE: [flexcoders] OT: Flex
Position in Montreal, Canada





Some talented folks ? I hear Jimmy
and Stacy are workin' there as well..



( If it's not Scottish, ,
Myers M. )



Steven











From:Stacy Young [mailto:[EMAIL PROTECTED] 
Sent: 07 February 2005 16:10
To: [EMAIL PROTECTED]
Subject: [flexcoders] OT: Flex
Position in Montreal, Canada

Hi All,



We have a position opening up for a Flex developer, based in
Montreal, Canada. Cutting edge projectsprimarily Flex UI work
complimented with Java/CF as well. Very dynamic environment with some talented
folks. If youre interested please drop me a line off list. UI design
experience a must, some Flex experience required, knowledge of Cairngorm framework a huge bonus.

. 










Re: [flexcoders] Dynamic model

2005-02-07 Thread Jeff Steiner
Isaac,

If you don't mind, post your code and I am sure that we can help figure out
the problem.

In the mean time, have you tried using HTTPService for your needs?

Jeff
http://www.flexauthority.com

- Original Message - 
From: [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, February 07, 2005 12:07 AM
Subject: Re: [flexcoders] Dynamic model




Jeff,

Yes, the filename changes. It depends on the user selection(obviuosly at
runtime). Just I want to load the specified XML at runtime. Avoid to load
all the possible XML´s in the startup. Thanks for your help

Isaac Bibás Forado





Jeff Steiner
[EMAIL PROTECTED] Para:
flexcoders@yahoogroups.com
ty.com cc:
Asunto: Re: [flexcoders]
Dynamic model
04/02/2005 18:14
Por favor,
responda a
flexcoders






Isaac,

Are we to understand that the XML filename changes and that you are trying
to compile the result into the swf at compile time, or are you, for
example,
passing a querystring variable to a dynamic page which results in dynamic
XML?

mx:Model and mx:XML tags grab the XML at compile time and store it in the
compiled swf.

mx:HTTPService does not store the actual file but rather stores a url that
the swf uses at runtime to grab xml dynamically.

Does that answer your question?

Jeff
http://www.flexauthority.com


- Original Message -
From: [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, February 04, 2005 4:17 AM
Subject: RE: [flexcoders] Dynamic model




Thanks Abdul, but I think I´ve not explained my problem correctly. As the
XML name is dynamic, I need to create the Model at runtime. In other words,
I know the XML name in the moment the .mxml page is built , I cannot
declare the Model as you suggest. me. Any thoughts?

Isaac Bibás




Abdul Qabiz
[EMAIL PROTECTED] Para:
flexcoders@yahoogroups.com
a.com cc:
Asunto: RE: [flexcoders]
Dynamic model
04/02/2005 12:19
Por favor,
responda a
flexcoders






Hi,

You can't use Model to load XML on runtime. It works at compile time...

However, you can use HTTPService object to load xml dynamically at runtime.
Please search the flexcoders archive, this question has been discussed
recently..

Also check out Flex documentation for HTTPService.

I answered something similar last month, following is the code. Might help
you..


##app.mxml##

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
creationComplete=setOptions()
mx:Model id=optionsXMLModel source=options.xml/
mx:Script
![CDATA[
import mx.utils.ArrayUtil;
var optionsDP;

function setOptions()
{
/*
List controls like, List, ComboBox, etc can't use XML object
as their model(dataProvider)...
So we are using ArrayUtil.toUtil(..) utility function to
covert a XML object to an Array of Objects.
*/

optionsDP = ArrayUtil.toArray(optionsXMLModel.option);
_cb2.dataProvider = optionsDP;
}


function onComboChange(eventObj)
{
alert(eventObj.target.selectedItem.data);
}
]]
/mx:Script

mx:HBox backgroundColor=#CC
mx:Label fontSize=15 text=ComboBox populated from XML using
DataBinding/
/mx:HBox
mx:ComboBox id=_cb1
dataProvider={ArrayUtil.toArray(optionsXMLModel.option)}
change=onComboChange(event);/
mx:Spacer height=10%/
mx:HBox backgroundColor=#CC
mx:Label fontSize=15 text=ComboBox populated from XML using
ActionScript /
/mx:HBox
mx:ComboBox id=_cb2 change=onComboChange(event);/

/mx:Application




###data.xml###

?xml version=1.0 encoding=utf-8?
options
option label=A-ADD data=A/
option label=C-COPY data=C/
/options



-abdul



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, February 04, 2005 3:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dynamic model



Hi coders,

I intend to create a generic screen containing a comboBox its content
depends on externalized parameter specifying a XML file.
I´ve tried unsuccessfully the following:
mx:Model id=fieldList source={the_XML_path}/ In a AS function:
myModel:Model = new Model();
myModel.source=the_XML_path;

Anybody knows how to create model dynamically?

Thanks in advance for your help.


Isaac Bibás





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 the Yahoo! Terms of Service.







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 the Yahoo! Terms of Service.







Yahoo! Groups Links











Re: [flexcoders] Dynamic model

2005-02-07 Thread ibibas

In my .mxml the current content:

The Model: mx:Model id=fieldList source
=../xml/projectSearchFields.xml/ where projectSearchFields.xml is:

fields
field label=Project Code type=java.lang.Long value=ProjectId/
field label=Nom Projecte type=java.lang.String value
=ProjectName/
field label=Incloure type=java.lang.String value=Include/
/fields

The list to display:

mx:VBox id=fields x=0 y=35 width=20% height=15%
mx:Label text=Camps de seleccio /
mx:ComboBox id=llista_fields backgroundColor=#FF
cornerRadius=0
dataProvider={fieldList.field} width=180
change=selectField(event) initialize=sort();/
/mx:VBox

Now I have a second XML projectSearchFields2.xml

fields
field label=Referència type=java.lang.String value
=ProjectReference/
field label=Prioritat type=java.lang.Short value=Priority/
field label=Estat type=java.lang.String value=StatusCode/
/fields

The file name(projectSearchFields or projectSearchFields2) is decided in
runtime. My intention is to use the same .mxml.

I´ve tried unsuccesfully:

1. mx:Model id=fieldList source={the_XML_path}/
2. In a AS function:
myModel:Model = new Model();
myModel.source=the_XML_path;

where the_XML_path is projectSearchFields or projectSearchFields2.


Thanks for your help ;-)

Isaac Bibás Forado



 
Jeff Steiner  
[EMAIL PROTECTED] Para: flexcoders@yahoogroups.com  
ty.com cc:  
Asunto: Re: [flexcoders] Dynamic model  
07/02/2005 17:52  
Por favor,  
responda a  
flexcoders  
 
 




Isaac,

If you don't mind, post your code and I am sure that we can help figure out
the problem.

In the mean time, have you tried using HTTPService for your needs?

Jeff
http://www.flexauthority.com

- Original Message -
From: [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, February 07, 2005 12:07 AM
Subject: Re: [flexcoders] Dynamic model




Jeff,

Yes, the filename changes. It depends on the user selection(obviuosly at
runtime). Just I want to load the specified XML at runtime. Avoid to load
all the possible XML´s in the startup. Thanks for your help

Isaac Bibás Forado





Jeff Steiner
[EMAIL PROTECTED] Para:
flexcoders@yahoogroups.com
ty.com cc:
Asunto: Re: [flexcoders]
Dynamic model
04/02/2005 18:14
Por favor,
responda a
flexcoders






Isaac,

Are we to understand that the XML filename changes and that you are trying
to compile the result into the swf at compile time, or are you, for
example,
passing a querystring variable to a dynamic page which results in dynamic
XML?

mx:Model and mx:XML tags grab the XML at compile time and store it in the
compiled swf.

mx:HTTPService does not store the actual file but rather stores a url that
the swf uses at runtime to grab xml dynamically.

Does that answer your question?

Jeff
http://www.flexauthority.com


- Original Message -
From: [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, February 04, 2005 4:17 AM
Subject: RE: [flexcoders] Dynamic model




Thanks Abdul, but I think I´ve not explained my problem correctly. As the
XML name is dynamic, I need to create the Model at runtime. In other words,
I know the XML name in the moment the .mxml page is built , I cannot
declare the Model as you suggest. me. Any thoughts?

Isaac Bibás




Abdul Qabiz
[EMAIL PROTECTED] Para:
flexcoders@yahoogroups.com
a.com cc:
Asunto: RE: [flexcoders]
Dynamic model
04/02/2005 12:19
Por favor,
responda a
flexcoders






Hi,

You can't use Model to load XML on runtime. It works at compile time...

However, you can use HTTPService object to load xml dynamically at runtime.
Please search the flexcoders archive, this question has been discussed
recently..

Also check out Flex documentation for HTTPService.

I answered something similar last month, following is the code. Might help
you..


##app.mxml##

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
creationComplete=setOptions()
mx:Model id=optionsXMLModel source=options.xml/
mx:Script
![CDATA[
import mx.utils.ArrayUtil;
var optionsDP;

function setOptions()
{
/*
List controls like, List, ComboBox, etc can't use XML object
as their model(dataProvider)...
So we are using ArrayUtil.toUtil(..) utility function to
covert a XML object to an Array of Objects.
*/

optionsDP = ArrayUtil.toArray(optionsXMLModel.option);
_cb2.dataProvider = optionsDP;
}


function onComboChange(eventObj)
{
alert(eventObj.target.selectedItem.data);
}
]]
/mx:Script

mx:HBox backgroundColor=#CC
mx:Label fontSize=15 text=ComboBox populated from XML using
DataBinding/
/mx:HBox
mx:ComboBox id=_cb1
dataProvider={ArrayUtil.toArray(optionsXMLModel.option)}
change=onComboChange(event);/
mx:Spacer height=10%/
mx:HBox backgroundColor=#CC
mx:Label fontSize=15 text=ComboBox populated from XML using
ActionScript /
/mx:HBox
mx:ComboBox id=_cb2 change=onComboChange(event);/

/mx:Application




###data.xml###

?xml version=1.0 encoding=utf-8?
options
option label=A-ADD data=A/
option label=C-COPY data=C/
/options



-abdul



-Original Message-

RE: [flexcoders] Printing

2005-02-07 Thread Ian Welsh
Hey, what else are you guys working on for Flex 2.0? Now that CF7
(Blackstone) has been released, some of us will need something else to keep
us excited.

There is no harm in asking right?

Regards
Ian 


-Original Message-
From: David Mendels [mailto:[EMAIL PROTECTED] 
Sent: 07 February 2005 15:59
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Printing


Hello,

 
 Does anyone know if flex printing is going to be improved in the next 
 version of Flex as it's very inadequate for enterprise application 
 development at the moment.


This is absolutely an area we are looking at. It is premature to make any
specific promises, but we would like to see major improvements here too.

Regards,

David
Macromedia




Yahoo! Groups Links








This E-mail scanned for viruses by Harlaxton College






This E-mail scanned for viruses by Harlaxton College






RE: [flexcoders] Installing Flex under a full Jrun

2005-02-07 Thread Tracy Spratt
If you set your server up to run as a service, do not use the Admin
tool to stop/start the server. It will cause all kinds of strange
behavior.

Tracy

-Original Message-
From: greenfishinwater [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 07, 2005 7:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Installing Flex under a full Jrun



I have been successfully using Flex with the integrated Jrun
enviroment. I am now setting up a new Jrun environment on a different
box, on top of which I will install Flex.

I notice that after installing Jrun, there are 2 servers running,
Admin and default. Do I need the admin server? Should I install Flex
under default, or should I create a new server?

I have briefly browsed the Macromedia site for Jrun and cannot find
any documentation about the admin server, or default server, can
anybody point me in the right direction.

Thank you






 
Yahoo! Groups Links



 









RE: [flexcoders] Printing

2005-02-07 Thread Matt Horn



The latest spec I read said Flex 2.0 will slice the bread, 
too, and not just bake it.



From: Ian Welsh [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 07, 2005 12:42 PMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] 
Printing
Hey, what else are you guys working on for Flex 2.0? Now that 
CF7(Blackstone) has been released, some of us will need something else to 
keepus excited.There is no harm in asking 
right?RegardsIan -Original Message-From: 
David Mendels [mailto:[EMAIL PROTECTED] Sent: 07 February 2005 
15:59To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] 
PrintingHello,  Does anyone know if flex 
printing is going to be improved in the next  version of Flex as it's 
very inadequate for enterprise application  development at the 
moment.This is absolutely an area we are looking at. Itis 
premature to make anyspecific promises, but we would like to see major 
improvements here 
too.Regards,DavidMacromediaYahoo! 
Groups 
LinksThis 
E-mail scanned for viruses by Harlaxton 
CollegeThis 
E-mail scanned for viruses by Harlaxton 
College


RE: [flexcoders] Cairngorm Event to Command

2005-02-07 Thread Mehdi, Agha
Steven,

Thanks for semi-promising the launch date. Really looking forward to it. 

Thanks

-- Agha

-Original Message-
From: Steven Webster [mailto:[EMAIL PROTECTED] 
Sent: Saturday, February 05, 2005 1:23 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Cairngorm Event to Command


Agha,

The scheme you describe about sequencing command calls, is one that I have
often talked about in presentations I've given on the patterns in Cairngorm
- and you're not the first person to want to do this; in our original call
to features for Cairngorm, many folks came back and asked for this. Romain
Faraut (one of the Cairngorm committee) has contributed an implementation of
some code that has made it into the 1.0 release.

In Cairngorm 1.0, we have made sequencing of commands even easier for you to
achieve in a regular way; at risk of promising a date to everyone, we should
be dropping the next version of Cairngorm in the next week or so, and
amongst everything else, it'll include this functionality for you.

We're actually using some of the new Cairngorm features on projects we're
currently doing for clients, in Flex, so we made a call to road-test some of
these things on real projects, and see how they worked for us as developers,
before releasing them as part of the framework.

The difference between theory and practice, is that in theory, there's no
difference between theory and practice.

We're very keen that Cairngorm remain an implementation of best-practices
that Flex developers have actually applied in the field, rather than big-up
front design of ideas that while sensible in principle, have not actually
seen the light of production.

So expect a code-drop shortly; you'll hear it on flexcoders first.

Best,

Steven

--
Steven Webster
Technical Director
iteration::two

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.




Yahoo! Groups Links









This email may contain confidential and privileged material for the sole use of 
the intended recipient(s). Any review, use, distribution or disclosure by 
others is strictly prohibited. If you are not the intended recipient (or 
authorized to receive for the recipient), please contact the sender by reply 
email and delete all copies of this message.

To reply to our email administrator directly, send an email to
[EMAIL PROTECTED]

Littler Mendelson, P.C.
http://www.littler.com







Re: how can I do this in Flex? -- (warning, best -practice police are in the hou

2005-02-07 Thread Miguel D�az Valenzuela

unfortunately, the 'if' cycle does not work as I want, or, the
condition is never fulfilled. I will see other functions or properties.

many thanks to you my friend, thanks for all help you give me

--- In flexcoders@yahoogroups.com, Mehdi, Agha [EMAIL PROTECTED] wrote:
 Miguel,
 
 Let me put this function with comments so that you can better
understand.
 
 function envia_motivos_fuc(){
 var Request:Object = new Object();
   
 //this will loop over the entire datagrid rows. Suppose you have 2
 rows with checkbox selected.
 for(var i=0;  i  dg.length;  i++)
 {
 // this will make sure that only the rows with checkbox
 selected are processes. If only two rows are checked then it'll just
process
 those two rows. Whenever you check a checkbox, the //value of
 that column be TRUE or FALSE if you don't have it checked. You don't
have to
 do [if( dg.getItemAt(i).select == true )]
 
 if(dg.getItemAt(i).select)
 {
 
 // this line will just get the value of the code
 column from your datagrid and nothing else. Since you're already
putting the
 condition above to check if the select column in that
 //row was checked
 
 Request.para = dg.getItemAt(i).code
 servicio_datos_motivos.send(Request);
 }
 }
 }
 
 Hope that helps
 
 -- Agha
 
 -Original Message-
 From: Miguel D�az Valenzuela [mailto:[EMAIL PROTECTED] 
 Sent: Friday, February 04, 2005 5:24 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: how can I do this in Flex? -- (warning, best
 -practice police are in the hou
 
 
 
 supposing a datagrid with 5 rows
 
 that´s function you give me:
 
 function envia_motivos_fuc(){
 var Request:Object = new Object();
 for(var i=0;idg.length;i++)
 {
 if(dg.getItemAt(i).select)
 {
 Request.para = dg.getItemAt(i).code
 servicio_datos_motivos.send(Request);
 }
 }
 }
 
 with this function I insert 0 rows in my database. 
 after doing a debug in flex, I could see that in this function the
condition
 of for cicle [if(dg.getItemAt(i+1).select)] is never fulfilled.
 after this, i realize some changes [if(dg.getItemAt(i).select =
true)] in
 this sentence but now function insert 5 rows in my database
 
 I hope you could understand me and help me, sorry for my very poor
english.
 
 thanks in advance
 
 --- In flexcoders@yahoogroups.com, Mehdi, Agha [EMAIL PROTECTED] wrote:
  Miguel,
  
  I'm not sure what are you asking. Can you please explain the problem?
  
  Thanks
  
  Agha
  
  -Original Message-
  From: Miguel D�az Valenzuela [mailto:[EMAIL PROTECTED]
  Sent: Thursday, February 03, 2005 11:32 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: how can I do this in Flex? -- (warning,
best 
  -practice police are in the hou
  
  
  
  my friend, i have this problem now
  
  if I do if(dg.getItemAt(i).select) never can enter to do:
  Request.para = dg.getItemAt(i).code
  servicio_datos_motivos.send(Request);
  i don´t know which option or function can I use ...
  
  thanks a lot anyway for all your help
  if you can help me now, i will be very grateful to you
  
  --- In flexcoders@yahoogroups.com, Mehdi, Agha [EMAIL PROTECTED] wrote:
   Miguel,
   
   Compare function1 with the one you sent. Notice, that I have 
   dg.getItemAt(i) instead of dg.getItemAt(i+1) and you can get
  specific
   value from the column by giving the column Name like
  dg.getItemAt(i).code
   
   When you do dg.getItemAt(i), it returns you the entire row row for 
   that index. The row is an object containing all the columns you
have 
   in the dataprovider of the datagrid.
   
   ===Function 1==
   function envia_motivos_fuc(){
   var Request:Object = new Object();
   var selectedData:Array = new Array();
   for(var i=0;idg.length;i++)  dg is datagrid´s name
   {
   if(dg.getItemAt(i).select)
   {
   Request.para = dg.getItemAt(i).code  here i´m
  specified
   a parameter
   servicio_datos_motivos.send(Request);  that´s webservice
   }
   }
   }
   =
   
   One more thing that it'll work if you select only one checkbox in
  the grid
   but if you're doing multiple selections from the checkbox then it'll
  create
   problems since for every single selected checkbox, you're sending 
   single value to the webservice. It'll make a lot more sense if you 
   populate an array with all the selected items and send that array
 to the
  server.
   
   function envia_motivos_fuc()
   {
   var Request:Object = new Object();
   var selectedData:Array = new Array();
   for(var i=0;idg.length;i++)  dg is datagrid´s name
   {
   if(dg.getItemAt(i).select)
   {
   selectedData.push( dg.getItemAt(i).code );
   }
   }
   Request.para = selectedData  here i´m specified a parameter
   servicio_datos_motivos.send(Request);  that´s webservice }
   
   This way you send any array with all the selected codes at once,
  which makes
   it easier to manage. Let me know if you have any question.
 

Re: Multiple Row/Column Headers in a datagrid

2005-02-07 Thread dhiren9

Not really. I'm looking to create the following effect in a data grid

HeaderCol11 HeaderCol21
HeaderCol12 HeaderCol22
HeaderRow11 HeaderRow12 Data Data
HeaderRow21 HeaderRow22 Data Data
HeaderRow31 HeaderRow32 Data Data
|---scroll bar-|


Hope that explains it a bit more. Can't draw the vertical scrollbar 
due to text limitations. But the vertical scrollbar should scroll 
the header rows and keep the header columns static.

Here's an example of how the scrollbars should work, only with 
multiple row and column headers.

http://www.richinternetapps.com/archives/000101.html

Thanks.

--- In flexcoders@yahoogroups.com, Michael van Leest [EMAIL PROTECTED] 
wrote:
 You mean something like this?? 
 http://www.martijndevisser.com/archives/38.php
 
 Michael
 
 dhiren9 wrote:
 
 Hi all,
 
 Is it possible to have multiple row and column headers in a data 
 grid? i.e. 2 or more columns of row headers and 2 or more rows of 
 column headers :)
 
 Thanks,
 Dhiren
 
 
 
 
 
  
 Yahoo! Groups Links
 
 
 
  
 
 
 
 
 
  
 







RE: [flexcoders] using implements mx.core.MXMLObject in a class?

2005-02-07 Thread Matt Chotin








The only function that MXMLObject requires
is the initialized method. Its essentially the equivalent of the initialize
event on a UIObject derivative.



I think what youre doing is fine,
the only thing that Im guessing is an issue is the timing of when
setupListener is called. If you were to call it in the initialized method Im
betting it would be too early because its possible not all of your UI
objects have been created. But no biggie, maybe you just call setupListener in
the initialize event handler of the document itself. Dont limit
yourself to trying to have absolutely no code in your MXML, if you have oneor
two event handlers to help get the rest of your code setup I dont see
that as being a problem.



Matt









From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 07, 2005
1:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] using
implements mx.core.MXMLObject in a class?





Hi All,

Can someone help me understand the useage ofthe
implementation of the
MXMLObject in MXML componen class based in
Actionscript?

I've been trying since this morning but the
hardest part is finding
documentation on the subject ( I waen to livedocs,
MM site  
documentation that
came with flex/fb first )  I still can't find
the info I'm looking for.

I'm using:
class MyClassName implements mx.core.MXMLObject
{
 //my constructor, member,
pub/priv code here.
}

My problem is I don't really know what are the
proper members, functions, etc.
to use when I'm building a Codless mxml document
and a AS Class controler for
that mxml document.

I'm trying to build a class that adds/removes
children from a viewstack 
navigate through it too. all w/ simple click
functions.

my code is posted below, can someone give mea
little more insight?

thanks,
-Art

===
CODE:
===
// IciPostItNotes class
class IciPostItNotes implements mx.core.MXMLObject
{
 // Arrays that
receive data to populate component
 public var
iciPostItNotesArray:Array; // receives array of
multible notes
w/properties for each note
 public var
iciQuickNotesArray:Array; // ignore this propery
 public var
iciNotesArrayHasData:Boolean; // indicates if iciPostItNotesArray
has data or not

 // Invisible Note
properties
 public var
iciCurrentNoteInView:Number;
 // gets current selected viewstack
child
 public var
iciNotesAreEditableEditable:Boolean; // indicates
if note is
editable or not
 public var
iciNotesArrayChangeFlag:Boolean; // indicatesif
note array has
changed

 // Visible Note
Properties
 public var
iciNotesID:Number; // note id #
 public var
iciNoteTitle:String; // Note title (
noteAuthor+noteDate )
 public var
iciNoteAuthor:String // Author of note
 public var
iciNoteDate:Date; // Date note was created
 public var
iciNoteIndex:String; // [n] of (sum of childern)
displays 
like: 1 of
5
 public var
iciNoteText:String; // contains note text

 public var view;

 function
initialized(doc : Object, id: String) : Void
 {

 view = doc;
 }

 function
setupListener() : Void
 {

 view.add_pb.addEventListner(click,
this);


view.remove_pb.addEventListner(click, this);

 view.edit_pb.addEventListner(click,
this);


 view.first_pb.addEventListner(click,
this);


view.previous_pb.addEventListner(click, this);

 view.next_pb.addEventListner(click,
this);

 view.last_pb.addEventListner(click,
this);



view.quickNotes_cb.addEventListner(change, this);
 }

 public function
click(event_obj:Object):Void
 {

 
switch(event_obj.target)

  {

 case add_pb:

 
view.iciNotes_ViewStack_vs.createChild.smth // Need to set up code

 trace(create child in viewstack);

 break;


 case remove_pb:

 
 view.iciNotes_ViewStack_vs.destroyChild.smth
// Need to set up code

 trace(do child in viewstack);

 break;


 case edit_pb:

 
 view.iciNotes_PostItNotes_txt.editable = true;

  trace(do
edit current tf in viewstack);

 break;


 case first_pb:

 
 view.iciNotes_ViewStack_vs.selectedIndex =0;

 trace(goto first child in view
stack);

 break;


 case previous_pb:

 
 view.iciNotes_ViewStack_vs.selectedIndex =
previous; // Need to set up
code

 trace(goto previous child in
viewstack);

 break;


 case next_pb:

 
 view.iciNotes_ViewStack_vs.selectedIndex =
next; // Need to set up code

 trace(goto next child in viewstack);

 break;


 case last_pb:

 
 view.iciNotes_ViewStack_vs.selectedIndex =
last; // Need to set up code

 trace(goto last child in viewstack);

 break;

  }
 }

}











DateChooser - How to highlight different days or weeks in different colors?

2005-02-07 Thread Alexander DAvila
I'm trying to display a calendar with different days or weeks in different colors in order
identify different events.

Does anyone have some sample code on how to do this?

Thanks__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com 

RE: [flexcoders] using implements mx.core.MXMLObject in a class?

2005-02-07 Thread alf
Hi Matt,
could you give me an example of how to add a child to a viewstack through a
class with the corresponding mxml? it could just be a partial code, I can
figure out the rest. its the start that I'm having problems with now.
also what you meant by calling at least some functions you were saying 
to add an
init() function to smth like the initilise or creationComplete tag in mxml?

thanks,
-Art
Quoting Matt Chotin [EMAIL PROTECTED]:
The only function that MXMLObject requires is the initialized method. It's
essentially the equivalent of the initialize event on a UIObject
derivative.

I think what you're doing is fine, the only thing that I'm guessing is an
issue is the timing of when setupListener is called. If you were to call it
in the initialized method I'm betting it would be too early because it's
possible not all of your UI objects have been created. But no biggie, maybe
you just call setupListener in the initialize event handler of the document
itself. Don't limit yourself to trying to have absolutely no code in your
MXML, if you have one or two event handlers to help get the rest of your
code setup I don't see that as being a problem.

Matt
_
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, February 07, 2005 1:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] using implements mx.core.MXMLObject in a class?

Hi All,
Can someone help me understand the useage of the implementation of the
MXMLObject in MXML componen class based in Actionscript?
I've been trying since this morning but the hardest part is finding
documentation on the subject ( I waen to livedocs, MM site 
documentation that
came with flex/fb first )  I still can't find the info I'm looking for.
I'm using:
class MyClassName implements mx.core.MXMLObject
{
//my constructor, member, pub/priv code here.
}
My problem is I don't really know what are the proper members, functions,
etc.
to use when I'm building a Codless mxml document and a AS Class controler
for
that mxml document.
I'm trying to build a class that adds/removes children from a viewstack 
navigate through it too. all w/ simple click functions.
my code is posted below, can someone give me a little more insight?
thanks,
-Art
===
CODE:
===
// IciPostItNotes class
class IciPostItNotes implements mx.core.MXMLObject
{
// Arrays that receive data to populate component
public var iciPostItNotesArray:Array; // receives array of
multible notes
w/properties for each note
public var iciQuickNotesArray:Array; // ignore this propery
public var iciNotesArrayHasData:Boolean; // indicates if
iciPostItNotesArray
has data or not
// Invisible Note properties
public var iciCurrentNoteInView:Number; // gets current
selected viewstack
child
public var iciNotesAreEditableEditable:Boolean; // indicates if
note is
editable or not
public var iciNotesArrayChangeFlag:Boolean; // indicates if note
array has
changed
// Visible Note Properties
public var iciNotesID:Number; // note id #
public var iciNoteTitle:String; // Note title (
noteAuthor+noteDate )
public var iciNoteAuthor:String // Author of note
public var iciNoteDate:Date; // Date note was created
public var iciNoteIndex:String; // [n] of (sum of childern)
displays
like: 1 of
5
public var iciNoteText:String; // contains note text
public var view;
function initialized(doc : Object, id: String) : Void
{
view = doc;
}
function setupListener() : Void
{
view.add_pb.addEventListner(click, this);
view.remove_pb.addEventListner(click, this);
view.edit_pb.addEventListner(click, this);
view.first_pb.addEventListner(click, this);
view.previous_pb.addEventListner(click, this);
view.next_pb.addEventListner(click, this);
view.last_pb.addEventListner(click, this);
view.quickNotes_cb.addEventListner(change, this);
}
public function click(event_obj:Object):Void
{
switch(event_obj.target)
{
case add_pb:
view.iciNotes_ViewStack_vs.createChild.smth // Need to
set up code
trace(create child in viewstack);
break;
case remove_pb:
view.iciNotes_ViewStack_vs.destroyChild.smth //
Need to set up code
trace(do child in viewstack);
break;
case edit_pb:
view.iciNotes_PostItNotes_txt.editable = true;
trace(do edit current tf in viewstack);
break;
case first_pb:
view.iciNotes_ViewStack_vs.selectedIndex = 0;
trace(goto first child in view stack);
break;
case previous_pb:
view.iciNotes_ViewStack_vs.selectedIndex =
previous; // Need to set up
code
trace(goto previous child in viewstack);
break;
case next_pb:
view.iciNotes_ViewStack_vs.selectedIndex = next;
// Need to set up code
trace(goto next child in viewstack);
break;
case last_pb:
view.iciNotes_ViewStack_vs.selectedIndex = last;
// Need to set up code
trace(goto last child in viewstack);
break;
}
}
}


Yahoo! Groups Sponsor

ADVERTISEMENT
http://us.ard.yahoo.com/SIG=129rn8l8h/M=298184.6018725.7038619.3001176/D=gr
oups/S=1705007207:HM/EXP=1107896354/A=2532114/R=2/SIG=12ksdetbv/*http:/clk.a

saving state with Viewstack

2005-02-07 Thread Owen van Dijk
I've been working on a Flex app, and i'm facing the following issue:

I'm using a Viewstack that i control using Actionscript:

function onKiesGerichtChangeViewStack( identifier:mx.core.UIObject )
{
KiesGerichtViewStack.selectedChild = identifier;
}

this works without a problem, but i've noticed that the state doesn't
get registered with the Historymanager. From the docs i've read that
this should be the case, so my guess is that i'm doing something
wrong. How should the Viewstack be controlled using Actionscript in
such way that it does work with the Historymanager?

I've been working on a workaround, implementing the saveState and
loadState functions myself, but it's a big hack and doesn't seem to
work right... :\

Thnx,

-- 
Owen van Dijk




Installing Flex on OS X

2005-02-07 Thread Jasper Blues
Hi Folks, 

I was surprised to see that Flex on OS X didn't seem to be supported. I
installed it no probs last night by downloading the AIX version (pure java)
and running the installer. Ran it with Tomcat 5.5.7. Works like a bought
one!

Cheers, 
Jasper



~~---
This e-mail may contain confidential information. If you are not the intended 
recipient, please notify the sender immediately and delete this e-mail from 
your system. You must not disclose this e-mail to anyone without express 
permission from the sender. The contents of all e-mails sent to and received 
from Optus may be scanned, stored, or disclosed to others at Optus discretion.

Optus has exercised care to avoid errors in the information contained in this 
e-mail but does not warrant that the information is error or omission free. The 
information (including any pricing information) contained in this e-mail is 
subject to change. This e-mail is not a quotation or proposal and no 
contractual obligations arise until you and Optus sign a formal written 
contract or formal variation to your existing contract. 

Any pricing contained in this e-mail is exclusive of GST unless otherwise 
stated.