Re: (-)RE: [flexcoders] precompile mxml

2005-03-09 Thread Jim Miao



Dennis,
 
thanks for your help.
 yes, 
I know the command line compiler's method.

 and 
now, I want to precompile it without the mxmlc command. I think if we request 
the mxml by url, it will compile; and then we can pre-compile it when we deploy 
our web-application, just like pre-compile jsp.

  - Original Message - 
  From: 
  Dennis Baldwin 
  To: flexcoders@yahoogroups.com 
  Sent: Tuesday, March 08, 2005 11:04 PM
  Subject: RE: [flexcoders] precompile 
  mxml
  
  Jim,
  
  I'm not sure what 
  you're trying to do but if you look in your Flex install dir under bin there's 
  a command line compiler. In it's simplest form the syntax 
  is:
  
  mxmlc 
  flex_file.mxml
  
  If this doesn't 
  help please elaborate a little more and maybe we can help you find a 
  solution.
  
  Regards,
  Dennis
  
-Original Message-From: Jim Miao 
[mailto:[EMAIL PROTECTED]Sent: Monday, March 07, 2005 9:33 
PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] 
precompile mxml

hello 
all,

 Can I 
precompile mxml by request the url by my servlet, Just like precompile jsp? 

 If Can, 
what/how should I do? 

Jim Miao

Tel:86-512-62510268-800


Strange error: A function in the code exceeds the 64K byte limit

2005-03-09 Thread Krzysztof Szlapinski
Hi,
I get this error:
1 Error found.
Error /test_13.mxml:2
A function in the code exceeds the 64K byte limit (actual size = '132056'). 
Since the problem occurs in the compiler-generated deferred instantiation 
code, please refactor/componentize portions of this document.

I understand what it says but the problem is that I don't have functions 
that big.
The biggest function I have is 4K of code.

Maybe the size of the mxml causes the problem - at the moment its around 
88K?

I really have no idea about this error.
greets
krzysiek




Re: [flexcoders] Performance testing Flash-J2EE applications

2005-03-09 Thread Jonathan Bezuidenhout
I used the (free) Microsoft web application stress tool - it can record AMF.

http://www.microsoft.com/downloads/details.aspx?FamilyID=E2C0585A-062A-439E-A67D-75A89AA36495displaylang=en

You are getting the error because flashproxy only allows binary
communication - it is the servlet that is used to communicate with the
Flex back-end. OpenSTA cannot record binary content (AFAIK).

Jonathan


On Mon, 07 Mar 2005 20:31:59 -, t_msreddy [EMAIL PROTECTED] wrote:
 
 Hi
 I am trying to test the performance of my application which involves 
 flex mxml, actionscript classes which call backend J2EE code. What 
 are the tools out in the market which allows me to test this similar 
 to the test load test that we do on web applications.
 
 I tried OpenSTA but and tried to capture and play the test but I got 
 this error:
 -
 Error: Request received was not Flash-based (not of the binary AMF 
 protocol). 
 -
 
 Any ideas on what this error might be. Or if you know any tool let 
 me know.
 Thanks
 Madhu
 
 
 
 
 
 Yahoo! Groups Sponsor 
 
 ADVERTISEMENT
 
 
 
 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] Hex Issue on a string to number cast?

2005-03-09 Thread Rich Tretola
OK, so instead of doing the lengthly for loop, a simple number
formatter did the trick. I am really suprised that someone from
macromedia would offer such a lengthy solution.

Here is the code that evaluates to 100.:

mx:NumberFormatter id=numberFormat precision=2 rounding=nearest
decimalSeparatorFrom=. decimalSeparatorTo=.
useThousandsSeparator=false /

var testString 0100:String;
var testNumber = Number(numberFormat.format(testString));

Rich

On Mon, 7 Mar 2005 15:18:50 -0800, Gordon Smith [EMAIL PROTECTED] wrote:
 
 You could use a for-loop (rather than a recursive function) to strip off
 leading 0's.
 
 - Gordon
 
 
 -Original Message-
 From: Rich Tretola [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 07, 2005 12:16 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Hex Issue on a string to number cast?
 
 I have a text input that I am using as a free input field for a number. I
 have it restricted to 0-9 characters and am casting it to a number when
 setting the value to my object. The problem is that if someone enters a
 value with a leading 0 such as 0100 it casts to 64.
 I am assuming that this is seen as a hex value when casting. Is there an
 easy way to avoid this without doing some crazy recursive string functions
 checking each character until I am sure the 1st character is not a 0 before
 the cast to Number() ? If someone enters 0100 by mistake, it should be set
 as 100.
 
 Rich
 
 Yahoo! Groups Links
 
 Yahoo! Groups Links
 
 
 
 





Re: [flexcoders] Passing value to custom validator

2005-03-09 Thread Ketan Bengali
Thanks Matt.
Regards,
Ketan Bengali
Multimedia Programmer,
Silver Communication Pvt. Ltd.,
Pune.

Matt Chotin wrote:
Validators cant take binding expressions as values. The easiest thing 
to do is write a simple Validator with a custom handler that will 
confirm the password and confirm_password are equal.

Something like this:
mx:Validator field=confirm_password 
validate=checkConfirm(event.validator) /

mx:Script
Function checkConfirm(validator : mx.validators.Validator)
{
if (confirm_password != password)
{
Validator.validationError(mismatch, The confirmation and password 
fields do not match);

}
}
/mx:Script
Matt

*From:* Ketan Bengali [mailto:[EMAIL PROTECTED]
*Sent:* Sunday, March 06, 2005 10:54 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Passing value to custom validator
I have 2 fields : password  confirm_pasword
I have made a custom validator for confirm password.
How do I pass the value of passsword to confirm_password.
Tried but not getting it. Have declared a public variable myPwd in the
as file
and passing it in this way: myPwd={pwd.text}
But while the validator gets executed it shows undefined as the value
for myPwd
Can anybody help me ?
Thanks.
--
Regards,
Ketan Bengali
Multimedia Programmer,
Silver Communication Pvt. Ltd.,
Pune.

*Yahoo! Groups Sponsor*
ADVERTISEMENT
click here 
http://us.ard.yahoo.com/SIG=129idd2gs/M=298184.6018725.7038619.3001176/D=groups/S=1705007207:HM/EXP=1110352002/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.com/Default?mqso=60190075 



*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]
mailto:[EMAIL PROTECTED]
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service http://docs.yahoo.com/info/terms/.




call popup with string

2005-03-09 Thread Fernando Lobos
i try call pop via :


var popup12 = mx.managers.PopUpManager.createPopUp(_root,
frm_matriculas, modal, {deferred: true});


all ok !


But this way 


var popup12 = mx.managers.PopUpManager.createPopUp(_root,
frm_matriculas, modal, {deferred: true});


function llama_popup (pop_1:object ){

var popup12 = mx.managers.PopUpManager.createPopUp(_root, pop_1,
modal, {deferred: true});

}

nuevopopup:object

nuevopopup = frm_matriculas
llama_popup(nuevopopup)

-
nothing, can i do for call popup function with string ?




RE: [flexcoders] Hex Issue on a string to number cast?

2005-03-09 Thread Gordon Smith
The parseFloat(0100, 10) solution and even the for-loop are likely to
perform better than using NumberFormatter, which executes much more general
code. But go with what you find simplest because performance won't be a
concern when dealing with user input.

- Gordon

-Original Message-
From: Rich Tretola [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 08, 2005 5:33 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Hex Issue on a string to number cast?



OK, so instead of doing the lengthly for loop, a simple number formatter did
the trick. I am really suprised that someone from macromedia would offer
such a lengthy solution.

Here is the code that evaluates to 100.:

mx:NumberFormatter id=numberFormat precision=2 rounding=nearest
decimalSeparatorFrom=. decimalSeparatorTo=.
useThousandsSeparator=false /

var testString 0100:String;
var testNumber = Number(numberFormat.format(testString));

Rich

On Mon, 7 Mar 2005 15:18:50 -0800, Gordon Smith [EMAIL PROTECTED]
wrote:
 
 You could use a for-loop (rather than a recursive function) to strip 
 off leading 0's.
 
 - Gordon
 
 
 -Original Message-
 From: Rich Tretola [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 07, 2005 12:16 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Hex Issue on a string to number cast?
 
 I have a text input that I am using as a free input field for a 
 number. I have it restricted to 0-9 characters and am casting it to a 
 number when setting the value to my object. The problem is that if 
 someone enters a value with a leading 0 such as 0100 it casts to 64. I 
 am assuming that this is seen as a hex value when casting. Is there 
 an easy way to avoid this without doing some crazy recursive string 
 functions checking each character until I am sure the 1st character is 
 not a 0 before the cast to Number() ? If someone enters 0100 by 
 mistake, it should be set as 100.
 
 Rich
 
 Yahoo! Groups Links
 
 Yahoo! Groups Links
 
 
 
 




Yahoo! Groups Links










Re: [flexcoders] Extending a custom component

2005-03-09 Thread Manish Jethani
On Tue, 08 Mar 2005 08:07:30 -0700, Aaron King [EMAIL PROTECTED] wrote:

 The problem I have is that I can't add components to my base class
 (like the drag bar, resizer dot, or text for displaying the time) while
 at the same time allowing the extending classes to add additional
 components based on their needs.
 
 Does anyone have any suggestions for getting around this?

If you're creating a user interface component, you must extend
UIComponent or UIObject (see the docs). Then you should override the
createChildren() and in that create these objects like your drag bar,
resizer, etc.

Manish




Another on validators

2005-03-09 Thread Ketan Bengali
Is there any way where in I can have 2 (custom) validators for 1 field.
Lets say, I have written components which can be used for various fields
in a form or many forms spread across the application(s).
I would want to reuse them instead of copying the same
stuff in diff. validators.
If this cannot be done in current version of FLEX I think
this feature should be added in the future one.
Also there should be some way to add other field's value
in the validator of a field.
May be one wants to pass different parameters to a validator the way we
pass in Standard validators
In mx:Validators tag I cannot add custom properties from .mxml file 
similar to standard
validators (minLength, maxLength etc.)

Thanks.
--
Regards,
Ketan Bengali
Multimedia Programmer,
Silver Communication Pvt. Ltd.,
Pune.



RE: [flexcoders] need help about _accProps

2005-03-09 Thread Matt Chotin








Hmm, I think that must be a bug that we
have the compiler error. The way you would work around it is to declare a
local variable untyped and assign it to your button, then put the _accPropson
there.



var tempButton = my_btn;

tempButton._accProps = 



You should maybe file a but at http://www.macromedia.com/go/wish and
maybe make a comment on the livedocs in the accessibility section about this.



Matt











From: Doodi, Hari -
BLS CTR [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 08, 2005 7:50
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] need help
about _accProps





Hi all, I am trying to allow my users to access screen UI component
thru
KeyBoard. In order to do that I am using _accProps
property of UI components
(according to macromedia livedocs).

Actually I got the following code from macromedia
live docs
http://livedocs.macromedia.com/flex/15/
http://livedocs.macromedia.com/flex/15/

But when I try to run(F12) my .mxml file I am
getting compilation error
saying there is no property with the name
'_accProps'. Can any one tried
Key board shortcuts?
Here is the code in my .as file.
// ActionScript Document

function initApp()
{
 var
myListener:Object = new Object();
 Key.addListener(myListener);

myListener.>
 my_btn.>
 if(my_btn._accProps
== undefined)
 {

 my_btn._accProps = new Object();
 }

my_btn._accProps.shortcut = Ctrl+7;
 Accessibility.updateProperties();
}

function myOnKeyDown()
{
 // 55 is key code
for 7

if(Key.isDown(Key.CONTROL)  Key.getCode() == 55) 
 {

 Selection.setFocus(my_btn);

 my_btn.onPress();
 }
}
function myOnPress()
{
 mx.controls.Alert.show(hello,myOnPress);
}


Thanks in advance.
Thanks!
Hari











RE: [flexcoders] dragmanager problem

2005-03-09 Thread Matt Chotin








As I posted a few days ago, the
DragManager may have issues working across loaded SWFs. In your case the
functionality of that slider could be accomplished using our Slider, maybe you
could just use that?



Matt











From: Jim Miao
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 08, 2005 6:40
PM
To: flexcoders@yahoogroups.com
Subject: Re:[flexcoders]
dragmanager problem







Does this mean Ican
not finish the sound control panel?







-
Original Message - 





From: Matt Chotin 





To: flexcoders@yahoogroups.com 





Sent: Friday, March 04, 2005 12:54 PM





Subject: RE: [flexcoders] dragmanager problem









Wow, I really dont know. What
happens if you dont load the new swf underneath the sound control but
off to the side? Im as confused as you are J



Matt











From: Jim Miao
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 03, 2005
5:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] dragmanager
problem







hello,












here there is a component defined in soundComp.mxml using dragmanager, the
main.mxml used it, it runs exactly. But afterI loading a mxml into main.mxml
by click the button, it seems that the dragmanager working unwillingly.












what/how should I do?


















Jim Miao















Re: [flexcoders] call popup with string

2005-03-09 Thread Manish Jethani
On Tue, 8 Mar 2005 10:50:25 -0300, Fernando Lobos
[EMAIL PROTECTED] wrote:

 function llama_popup (pop_1:object ){
 
 var popup12 = mx.managers.PopUpManager.createPopUp(_root, pop_1,
 modal, {deferred: true});
 
 }
 
 nuevopopup:object
 
 nuevopopup = frm_matriculas
 llama_popup(nuevopopup)

The second argument to createPopUp() is an object, a reference to the
class, not a string (the name of the class). So if you remove the
quotes around frm_matriculas it should work.

Manish




RE: [flexcoders] Another on validators

2005-03-09 Thread Matt Chotin








What I do when I want two validators on
one field is create a third validator and then in its validate method call the
other two validators (this is one reason we have those static methods).



mx:Validator field=myField
validate=doBothValidators(event.validator) /



mx:Script

 Function doBothValidators(validator :
Validator) : Void

 {


StringValidator.validateString(validator, myField, {options});

 OtherValidator.validate();

 } 

/



We are trying to see what we can do to
make the validator system a little more developer-friendly in the next release.



HTH,

Matt











From: Ketan Bengali
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 08, 2005
11:04 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Another on
validators





Is there any way where in I can have 2 (custom) validators for 1 field.
Lets say, I have written components which can be
used for various fields
in a form or many forms spread across the
application(s).

I would want to reuse them instead of copying the
same
stuff in diff. validators.

If this cannot be done in current version ofFLEX
I think
this feature should be added in the future one.

Also there should be some way to add other field's
value
in the validator of a field.
May be one wants to pass different parameters to a
validator the way we
pass in Standard validators

In mx:Validators tag I cannot add custom
properties from .mxml file 
similar to standard
validators (minLength, maxLength etc.)

Thanks.

-- 
Regards,

Ketan Bengali
Multimedia Programmer,
Silver Communication Pvt. Ltd.,
Pune.











Re: [flexcoders] Background Color of Disabled Button

2005-03-09 Thread Manish Jethani
On Tue, 8 Mar 2005 17:43:07 -0800, Mercer, Dustin
[EMAIL PROTECTED] wrote:

 I have been trying to find out a way to change the background color of a
 disabled button. Has anyone tried this or does anyone have a suggestion on
 how to change this? It sounds like it should be simple, but the solution is
 eluding meJ. Thanks in advance! 

I think the Button's disabled background color is hard-coded to gray. 
You can change it by specifying a falseDisabledSkin/trueDisabledSkin,
but I am not sure how exactly to do this (you'll have to explore, look
up skinning, falseDisabledSkin, Button).

Manish




Re: [flexcoders] language support

2005-03-09 Thread Manish Jethani
On Tue, 8 Mar 2005 16:40:36 -0500, Steve Pruitt [EMAIL PROTECTED] wrote:

 I retrieve the data from the database, serialize to xml, and send back as a
 webservice response. I set my response content type to: 
 
 text/xml; charset=utf-8 

Setting the content-type just tells the client (Flex) that the data is
in utf-8. But you have to actually make the data utf-8 before sending
it across. In Java it's fairly simple -- just pass the charset
parameter to the conversion functions. If you're doing
response.write() or something, you should set the charset (or
character encoding) in the response object to utf-8 (I'm sorry I
have forgotten the syntax, and you know better).

Manish




Re: [flexcoders] call popup with string

2005-03-09 Thread Fernando Lobos
yes, i know but , who can instantiate a class via string from variable?


On Wed, 9 Mar 2005 14:58:40 +0530, Manish Jethani
[EMAIL PROTECTED] wrote:
 On Tue, 8 Mar 2005 10:50:25 -0300, Fernando Lobos
 [EMAIL PROTECTED] wrote:
 
  function llama_popup (pop_1:object ){
  
  var popup12 = mx.managers.PopUpManager.createPopUp(_root, pop_1,
  modal, {deferred: true});
  
  }
  
  nuevopopup:object
  
  nuevopopup = frm_matriculas
  llama_popup(nuevopopup)
 
 The second argument to createPopUp() is an object, a reference to the
 class, not a string (the name of the class). So if you remove the
 quotes around frm_matriculas it should work.
 
 Manish
 
 Yahoo! Groups Sponsor
 ADVERTISEMENT
 
 
 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] call popup with string

2005-03-09 Thread Manish Jethani
On Wed, 9 Mar 2005 08:29:44 -0300, Fernando Lobos
[EMAIL PROTECTED] wrote:

 yes, i know but , who can instantiate a class via string from variable?

Actually that's what UIObject does internally. It does attachMovie()
on the class's symbolName. So, yes, it's possible to create an object
from a string identifying the class. Using the class reference seems
to be the preferred way in Flex.

If all you have is strings, you can create a mapping from the strings
to their corresponding class references and look up the mapping every
time you need a reference. Maybe there's a better Flash Way (TM) that
I'm not aware of (some sibling of Object.registerClass() ).

Manish




Re: [flexcoders] Another on validators

2005-03-09 Thread Ketan Bengali
Thanks again.
Regards,
Ketan Bengali
Multimedia Programmer,
Silver Communication Pvt. Ltd.,
Pune.

Matt Chotin wrote:
What I do when I want two validators on one field is create a third 
validator and then in its validate method call the other two 
validators (this is one reason we have those static methods).

mx:Validator field=myField 
validate=doBothValidators(event.validator) /

mx:Script
Function doBothValidators(validator : Validator) : Void
{
StringValidator.validateString(validator, myField, {options});
OtherValidator.validate();
}
/
We are trying to see what we can do to make the validator system a 
little more developer-friendly in the next release.

HTH,
Matt

*From:* Ketan Bengali [mailto:[EMAIL PROTECTED]
*Sent:* Tuesday, March 08, 2005 11:04 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Another on validators
Is there any way where in I can have 2 (custom) validators for 1 field.
Lets say, I have written components which can be used for various fields
in a form or many forms spread across the application(s).
I would want to reuse them instead of copying the same
stuff in diff. validators.
If this cannot be done in current version of FLEX I think
this feature should be added in the future one.
Also there should be some way to add other field's value
in the validator of a field.
May be one wants to pass different parameters to a validator the way we
pass in Standard validators
In mx:Validators tag I cannot add custom properties from .mxml file
similar to standard
validators (minLength, maxLength etc.)
Thanks.
--
Regards,
Ketan Bengali
Multimedia Programmer,
Silver Communication Pvt. Ltd.,
Pune.

*Yahoo! Groups Sponsor*
ADVERTISEMENT
click here 
http://us.ard.yahoo.com/SIG=129jsae9l/M=298184.6018725.7038619.3001176/D=groups/S=1705007207:HM/EXP=1110447061/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.com/Default?mqso=60190075 



*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]
mailto:[EMAIL PROTECTED]
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service http://docs.yahoo.com/info/terms/.




RE: [flexcoders] call popup with string

2005-03-09 Thread Dirk Eismann
Hi,

 yes, i know but , who can instantiate a class via string from 
 variable?

Flex cannot load a class dynamically - you'll have to make sure that the class 
gets compiled into your SWF file. This can be achieved by referencing the class 
somewhere inside your code, e.g.

function dependency():Void {
// this function does nothing but
// ensures that your class gets compiled in
foo.bar.MyClass;
}

If you need to instantiate a class by its name then try using the findClass() 
method of the mx.utils.ClasSUtil class:

import mx.utils.ClassUtil;

var f:Function = ClassUtil.findClass(foo.bar.MyClass);
var myInstance = new f();

Dirk.




RE: [flexcoders] call popup with string

2005-03-09 Thread Erik Westra
To instantiate classes via a string I do the folowing:

I have a class Popups.as:

class Popups
{
public function Popups()
{
package.className1;
package.className2;
package.className3;
};
};

The above class makes sure the classes are included in the swf.

Then when I need to access it I can do things like:

var classString = package.className3;

var classRef = _global;
var class_array = classString.split(.);
for (var i = 0; i  class_array.length; i++)
{
classRef = classRef[class_array[i]];
};

Then u can use classRef to do whatever u want.

Greetz Erik


-Original Message-
From: Manish Jethani [mailto:[EMAIL PROTECTED] 
Sent: woensdag 9 maart 2005 13:05
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] call popup with string


On Wed, 9 Mar 2005 08:29:44 -0300, Fernando Lobos
[EMAIL PROTECTED] wrote:

 yes, i know but , who can instantiate a class via string from
variable?

Actually that's what UIObject does internally. It does attachMovie() on
the class's symbolName. So, yes, it's possible to create an object from
a string identifying the class. Using the class reference seems to be
the preferred way in Flex.

If all you have is strings, you can create a mapping from the strings to
their corresponding class references and look up the mapping every time
you need a reference. Maybe there's a better Flash Way (TM) that I'm
not aware of (some sibling of Object.registerClass() ).

Manish


 
Yahoo! Groups Links



 







Re: [flexcoders] call popup with string

2005-03-09 Thread Fernando Lobos
thanx all for your help!


On Wed, 9 Mar 2005 13:20:18 +0100, Erik Westra [EMAIL PROTECTED] wrote:
 To instantiate classes via a string I do the folowing:
 
 I have a class Popups.as:
 
 class Popups
 {
 public function Popups()
 {
 package.className1;
 package.className2;
 package.className3;
 };
 };
 
 The above class makes sure the classes are included in the swf.
 
 Then when I need to access it I can do things like:
 
 var classString = package.className3;
 
 var classRef = _global;
 var class_array = classString.split(.);
 for (var i = 0; i  class_array.length; i++)
 {
 classRef = classRef[class_array[i]];
 };
 
 Then u can use classRef to do whatever u want.
 
 Greetz Erik
 
 
 -Original Message-
 From: Manish Jethani [mailto:[EMAIL PROTECTED] 
 Sent: woensdag 9 maart 2005 13:05
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] call popup with string
 
 
 On Wed, 9 Mar 2005 08:29:44 -0300, Fernando Lobos
 [EMAIL PROTECTED] wrote:
 
  yes, i know but , who can instantiate a class via string from
 variable?
 
 Actually that's what UIObject does internally. It does attachMovie() on
 the class's symbolName. So, yes, it's possible to create an object from
 a string identifying the class. Using the class reference seems to be
 the preferred way in Flex.
 
 If all you have is strings, you can create a mapping from the strings to
 their corresponding class references and look up the mapping every time
 you need a reference. Maybe there's a better Flash Way (TM) that I'm
 not aware of (some sibling of Object.registerClass() ).
 
 Manish
 
 
 
 Yahoo! Groups Links
 
 
 
 
 
 
 
 
 Yahoo! Groups Sponsor
 ADVERTISEMENT
 
 
 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.




more on popup

2005-03-09 Thread Doodi, Hari - BLS CTR
Hi all, is it possible to have a stand alone popup , may be can not call it
a popup, means when user click on a button my application should open an
other part of application in a brand new browser window. This second window
should appear even if main parent window is minimized but should be closed
when parent is closed. Any guidance or suggestions! Please help.

Thanks!
Hari





Re: Web Service Authentication

2005-03-09 Thread t0mruggles

Changing the order to setting credentials before the first send does 
not show me any difference. Regardless, if I attempt to use the same 
named service again with no credentials a 401 is thrown indicating 
that these credentials are not cached in any way.

Are you trying to use different credentials from the same page?

--- In flexcoders@yahoogroups.com, billheit [EMAIL PROTECTED] wrote:
 
 Yes, I was doing it differently. Before calling the send method, I 
 was trying to set the credentials using the setUsernamePassword 
 method. With the way you are doing it below, you can only set 
 credentials if you get a fault 401 error. This means that the 
first 
 cedentials that work will always be used by the proxy. Maybe that 
 is by design?
 
 Bill
 
 --- In flexcoders@yahoogroups.com, t0mruggles [EMAIL PROTECTED] 
 wrote:
  
  Hi Bill,
  
  I just retested your scenario and am unable to produce your 
 results. 
  Please see my code and service below. I've tried with 1.5 final 
 and 
  with both HS and WS and all work for me for a Flex app contacting 
 an 
  IIS secured resource hosted on a different server. Every time I 
 run 
  this file I see the same expected results indicating that the 
 first 
  request is denied with a 401 until credentials are set.
  
  Are you doing something differently?
  
  Tom Ruggles
  Macromedia Flex QA
  
  
  ?xml version=1.0 encoding=iso-8859-1?
  mx:Application initialize=appLoaded() 
  xmlns:mx=http://www.macromedia.com/2003/mxml;
  
  mx:HTTPService id=hs 
  serviceName=secureIISEchoServiceDynamic 
  fault=serviceFault(event.fault);
  result=serviceLoaded()
  resultFormat=text
  /mx:HTTPService
  
  
  mx:Script
  ![CDATA[
  function appLoaded() {
  expected.text=Service fault: 401. \nService 
  loaded. ; 
  hs.send(); 
  }
  
  function serviceFault(fault) {
  if (fault.faultcode == Client.Authentication || 
  fault.faultcode ==401) { // former is for WS
  hs.setUsernamePassword(bob, bob); 
  hs.send(); 
  }
  actual.text=actual.text + Service fault:  + 
  fault.faultcode + . \n;
  }
  
  function serviceLoaded() {
  actual.text=actual.text + Service loaded. \n;
  }
  ]]
  /mx:Script
  
  mx:VBox 
  mx:HBox
  mx:Label text=Expected/
  mx:TextArea id=expected width=300 height=80/
  /mx:HBox
  mx:HBox
  mx:Label text=Actual/
  mx:TextArea id=actual width=300 height=80 /
  /mx:HBox
  mx:HBox
  mx:Button label=Run again click=appLoaded();/
  /mx:HBox
  
  /mx:VBox
  
  /mx:Application
  
  
  Named HTTP Service:
  service name=secureIISEchoServiceDynamic
  urlhttp://myservicehost/secureAsmx/simple.asmx?
  wsdl/url
  use-custom-authenticationtrue/use-custom-
  authentication
  /service 
  
  
  
  --- In flexcoders@yahoogroups.com, billheit [EMAIL PROTECTED] 
 wrote:
   
   Yes I had the problem in 1.0. Then I upgraded to 1.5, hoping 
to 
  fix 
   the problem, but it didn't. I am still having the same issue. 
 It 
   seems that what ever credentials are first used to log into the 
 web 
   service are then continued to be used until the Flex server is 
   bounced.
   
   Bill
   
   --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] 
 wrote:
You're using Flex 1.5 right? Not 1.0? Apparently we had a 
 bug 
  in 
   1.0 that
showed itself like this. In 1.5 it was hopefully fixed, but 
 you 
   could also
try to set max-connections0/max-connections in flex-
  config.xml 
   for the
right service.



Matt



_ 

From: billheit [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 02, 2005 5:36 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Web Service Authentication




I have a .NET web service that allows access to various 
levels 
 of 
resources (data) depending on what user logs into IIS using 
 Basic 
authentication.

In my Flex application, which is not running on the same 
 server 
  as 
my web service, I would like to have the user login with a 
 user 
   name 
and password. Then pass these credentials along to the .NET 
 web 
service. I don't care if the flex app itself is secure; it 
is 
   only 
the web service that has sensitive data.

I have tried to use named HttpService and assign the user's 
credentials using the setUsernamePassword method but it 
 doesn't 
   seem 
to work after the first use. Once the proxy connects to the 
 web 
service, it seems to keep the same connection credentials.

Does anyone know of a better way to pass along the user's 
credentials? Or does anyone have a better idea on how to do 
  this?

Thanks,

Bill









Yahoo! Groups Sponsor



ADVERTISEMENT


   
  
 
http://us.ard.yahoo.com/SIG=129qnatho/M=298184.6018725.7038619.30011
   76/D=gr

   
  
 
oups/S=1705007207:HM/EXP=1109889378/A=2593423/R=0/SIG=11el9gslf/*http
   :/www.n
etflix.com/Default?mqso=60190075 click here

flex project

2005-03-09 Thread Nate Nielsen



i'm looking for 2-3 flex coders to do somehourly 
contract work.

i would prefer you to be local to the dallas / ft 
worth, TXarea for some meetings, but all of the work will be done from 
your location via telecommuting. if you are able to drive to DFW for 
meetings roughly once a week but live/work further out, that shouldn't be a 
problem.

if you currently have a part time / full time job 
elsewhere and want some flex work for extra cash or experience, that is 
acceptable. (i.e. don't have to quit your day job if you are already 
engaged 8-5). but I am looking for people with a minimum of 20 hours a 
week to spare on this project.

you will be part of a team that is building an 
exciting new e-commerce .com that will be emerging shortly. this is an 
awesome chance to work on a high profile --fully-- flex site that will actually 
be open to the public! (perhaps the first large scale flex B2C 
.com!)

if you are interested, please send a resume or 
skills summary along with details of your flex experience and any URLs you might 
have OFF LIST to [EMAIL PROTECTED]

thanks

nate nielsen
[EMAIL PROTECTED]




Re: [flexcoders] flex project

2005-03-09 Thread Nate Nielsen



sorry, i meant to mention the technology details : 


flex 1.5

cold fusion mx 7

ms sql

-most of the back end will be coded by a different 
team, so the primary importance is flex 1.5 and enough knowledge of CF to manage 
communications via flash remoting and/or web services (no big 
deal).

=)


- Original Message - 
From: 
Nate Nielsen 

To: flexcoders@yahoogroups.com
Sent: Wednesday, March 09, 2005 8:47 
AM
Subject: [flexcoders] flex project

i'm looking for 2-3 flex coders to do some hourly 
contract work.

i would prefer you to be local to the dallas / ft 
worth, TXarea for some meetings, but all of the work will be done from 
your location via telecommuting. if you are able to drive to DFW for 
meetings roughly once a week but live/work further out, that shouldn't bea 
problem.

if you currently have a part time / fulltime job 
elsewhere and want some flex work for extra cash or experience, that is 
acceptable. (i.e. don't have to quit your day job if you are already 
engaged 8-5). but I am looking for people with a minimum of 20 hours a 
week to spare on this project.

you will be part of a team that is building an 
exciting new e-commerce .com that will be emerging shortly. this isan 
awesome chance to work on a high profile --fully-- flex site that will 
actually be open to the public! (perhaps the first large scale 
flex B2C .com!)

if you are interested, please send a resume or 
skills summary along with details of your flex experience and any URLs you 
might have OFF LIST to [EMAIL PROTECTED]

thanks

nate nielsen
[EMAIL PROTECTED]




How do you convert a string to a number

2005-03-09 Thread nostra72

I am just curious because I am trying to do this in Flex


RE: [flexcoders] How do you convert a string to a number

2005-03-09 Thread Erik Westra



U could do thefolowing 
things:

var str = 
"10";
var num = 
Number(str);

or

var str = 
"10";
var num = 
parseInt(str);
//wich also works like 
this
var str = 
"10abc";
var num = parseInt(str); 
//10


Greetz Erik



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: woensdag 9 maart 2005 15:58To: 
flexcoders@yahoogroups.comSubject: [flexcoders] How do you convert a 
string to a number
I am just curious because I am trying to do this in Flex 



RE: [flexcoders] How do you convert a string to a number

2005-03-09 Thread Alexander Hearnz








Heres a way to do it using actionscript;



var i:Number=10;

var s:String;



s=String(i);

trace(s); // 10

trace(typeof s); // string



Alex Hearnz



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 09, 2005
9:58 AM
To: [EMAIL PROTECTED]
Subject: [flexcoders] How doyou
convert a string to a number



I am just curious because I amtrying
to do this in Flex 









Re: [flexcoders] How do you convert a string to a number

2005-03-09 Thread Nate Nielsen



syntax : 
Number(yourStringVariable)

keep in mind that your string may not always be able to be cast into a 
number, so you may want to add a conditional to check.

here is some sample code to demostrate casting a string into a number,just 
call the function and you'll see it alert 100:

mx:Script![CDATA[

function castTest(){var 
myString:String = "60";var total:Number;total = 
40 + 
Number(myString);alert(total.toString());}

]]/mx:Script 

Without the Number(  ) cast statement, you will get a compile time 
error : "Type mismatch in assignment statement: found String where Number 
is required." -But remember that you will not get a compile time 
error if you are casting to a custom class type, which is why you may want to 
add a conditional to test if the cast worked propertly (it will return nullif 
the cast cannot be performed): 

mx:Script![CDATA[

function castTest(){var 
myString:String = "60";var total:Number;total = 
40 + 
Number(myString);if(total){alert(total.toString());}}

]]/mx:Script 

hth

nate nielsen
[EMAIL PROTECTED]


- Original Message - 
From: 
[EMAIL PROTECTED] 

To: flexcoders@yahoogroups.com
Sent: Wednesday, March 09, 2005 8:57 
AM
Subject: [flexcoders] How do you convert 
a string to a number
I am just curious because I am trying to do this in Flex 


Dynamically Sizing a MediaDisplay

2005-03-09 Thread Yann Chevalier
Hi all,

I want my MediaDisplay to resize dynamically ; I try something like :

x-tad-biggermx:Application/x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-biggerhttp://www.macromedia.com/2003/mxml/x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-bigger100%/x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-bigger>/x-tad-biggerx-tad-bigger


/x-tad-biggerx-tad-biggermx:Panel/x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-biggermain/x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-biggerTest de Display/x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-bigger100%/x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-bigger>/x-tad-biggerx-tad-bigger

/x-tad-biggerx-tad-biggermx:MediaDisplay/x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-biggerdisplay/x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-bigger100%/x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-bigger100%/x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-biggerassets/clip.flv/x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-biggertrue/x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-biggertrue/x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-bigger/>/x-tad-biggerx-tad-bigger

/x-tad-biggerx-tad-biggermx:ControlBar/x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-bigger>/x-tad-biggerx-tad-bigger
/x-tad-biggerx-tad-biggermx:MediaController/x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-bigger100%/x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-bigger100%/x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-biggerdisplay/x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-bigger/>/x-tad-biggerx-tad-bigger
/x-tad-biggerx-tad-bigger/mx:ControlBar>/x-tad-biggerx-tad-bigger

/x-tad-biggerx-tad-bigger/mx:Panel>/x-tad-biggerx-tad-bigger

/x-tad-biggerx-tad-bigger/mx:Application>

/x-tad-biggerThe panel resize dynamically with my browser size but the MediaDisplay don't. I try all the values for autoSize and aspectRatio but nothing work... 

Missing something ?

-Yann

Setting Application padding/margin to 0px

2005-03-09 Thread Anthony Merryfield
Title: Setting Application padding/margin to 0px






Hi Everyone,


I'm trying to remove the whitespace aroundmy .mxml app - about 30 pixels or so. I have tried margin=0 in mx:Application but was told that was not allowed :(

Any other ideas on how I can do this?


Cheers,


Tony.




This communication together with any attachments transmitted with it ("thisE-Mail") is intended only for the use of the addressee and may contain information which is privileged and confidential. If the reader of this E-Mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient you are hereby notified that any use,dissemination, forwarding, printing or copying of this E-Mail is strictly prohibited. Addressees should check this E-mail for viruses. The Company makes no representations as regards the absence of viruses in this E-Mail. If you have received this E-Mail in error please notify our ISe Response Team immediately by telephone on +44 (0)20 8896 5828 or via e-mail at [EMAIL PROTECTED] Please then immediately delete, erase or otherwise destroy this E-Mail and any copies of it.

Any opinions expressed in this E-Mail are those of the author and do not necessarily constitute the views of the Company. Nothing in this E-Mail shall bind the Company in any contract or obligation.

For the purposes of this E-Mail "the Company" means The Carphone Warehouse Group Plc and/or any of its subsidiaries.

Please feel free to visit our website: http:// www.carphonewarehouse.com or http://www.phonehouse.com

The Carphone Warehouse Group Plc (Registered in England No. 3253714) 1 Portal Way, London W3 6RS




RE: [flexcoders] Setting Application padding/margin to 0px

2005-03-09 Thread Anthony Merryfield
Ahh, you have to set each one explicitly...

Cheers Dirk,

Tony.

-Original Message-
From: Dirk Eismann [mailto:[EMAIL PROTECTED]
Sent: 09 March 2005 16:50
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Setting Application padding/margin to 0px



Who told you it wasn't allowed :)

This should work:

mx:Application 
xmlns:mx=http://www.macromedia.com/2003/mxml;
marginTop=0
marginBottom=0
marginLeft=0
marginRight=0

/mx:Application

Dirk.

-Original Message-
From: Anthony Merryfield [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 09, 2005 5:45 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Setting Application padding/margin to 0px


Hi Everyone, 
I'm trying to remove the whitespace around my .mxml app - about 30 pixels or 
so. I have tried margin=0 in mx:Application but was told that was notallowed 
:(
Any other ideas on how I can do this? 
Cheers, 
Tony. 


This communication together with any attachments transmitted with it 
(thisE-Mail) is intended only for the use of the addressee and may contain 
information which is privileged and confidential. If the reader of this 
E-Mailis not the intended recipient or the employee or agent responsible for 
delivering it to the intended recipient you are hereby notified that any use, 
dissemination, forwarding, printing or copying of this E-Mail is strictly 
prohibited. Addressees should check this E-mail for viruses. The Company makes 
no representations as regards the absence of viruses in this E-Mail. If you 
have received this E-Mail in error please notify our ISe Response Team 
immediately by telephone on +44 (0)20 8896 5828 or via e-mail at [EMAIL 
PROTECTED] Please then immediately delete, erase or otherwise destroy this 
E-Mail and any copies of it.

Any opinions expressed in this E-Mail are those of the author and do not 
necessarily constitute the views of the Company. Nothing in this E-Mail 
shallbind the Company in any contract or obligation.

For the purposes of this E-Mail the Company means The Carphone Warehouse 
Group Plc and/or any of its subsidiaries.

Please feel free to visit our website: http:// www.carphonewarehouse.com 
orhttp://www.phonehouse.com

The Carphone Warehouse Group Plc (Registered in England No. 3253714) 1 Portal 
Way, London W3 6RS

Yahoo! Groups Sponsor
ADVERTISEMENT






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



 





This communication together with any attachments transmitted with it 
(thisE-Mail) is intended only for the use of the addressee and may contain 
information which is privileged and confidential. If the reader of this E-Mail 
is not the intended recipient or the employee or agent responsible for 
delivering it to the intended recipient you are hereby notified that any 
use,dissemination, forwarding, printing or copying of this E-Mail is strictly 
prohibited. Addressees should check this E-mail for viruses. The Company makes 
no representations as regards the absence of viruses in this E-Mail. If you 
have received this E-Mail in error please notify our ISe Response Team 
immediately by telephone on +44 (0)20 8896 5828 or via e-mail at [EMAIL 
PROTECTED] Please then immediately delete, erase or otherwise destroy this 
E-Mail and any copies of it.

Any opinions expressed in this E-Mail are those of the author and do not 
necessarily constitute the views of the Company. Nothing in this E-Mail shall 
bind the Company in any contract or obligation.

For the purposes of this E-Mail the Company means The Carphone Warehouse 
Group Plc and/or any of its subsidiaries.

Please feel free to visit our website: http:// www.carphonewarehouse.com or 
http://www.phonehouse.com

The Carphone Warehouse Group Plc (Registered in England No. 3253714) 1 Portal 
Way, London W3 6RS





RE: [flexcoders] Setting Application padding/margin to 0px

2005-03-09 Thread Dirk Eismann
Who told you it wasn't allowed :)

This should work:

mx:Application 
xmlns:mx=http://www.macromedia.com/2003/mxml;
marginTop=0
marginBottom=0
marginLeft=0
marginRight=0

/mx:Application

Dirk.

-Original Message-
From: Anthony Merryfield [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 09, 2005 5:45 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Setting Application padding/margin to 0px


Hi Everyone, 
I'm trying to remove the whitespace around my .mxml app - about 30 pixels or 
so. I have tried margin=0 in mx:Application but was told that was notallowed 
:(
Any other ideas on how I can do this? 
Cheers, 
Tony. 


This communication together with any attachments transmitted with it 
(thisE-Mail) is intended only for the use of the addressee and may contain 
information which is privileged and confidential. If the reader of this 
E-Mailis not the intended recipient or the employee or agent responsible for 
delivering it to the intended recipient you are hereby notified that any use, 
dissemination, forwarding, printing or copying of this E-Mail is strictly 
prohibited. Addressees should check this E-mail for viruses. The Company makes 
no representations as regards the absence of viruses in this E-Mail. If you 
have received this E-Mail in error please notify our ISe Response Team 
immediately by telephone on +44 (0)20 8896 5828 or via e-mail at [EMAIL 
PROTECTED] Please then immediately delete, erase or otherwise destroy this 
E-Mail and any copies of it.

Any opinions expressed in this E-Mail are those of the author and do not 
necessarily constitute the views of the Company. Nothing in this E-Mail 
shallbind the Company in any contract or obligation.

For the purposes of this E-Mail the Company means The Carphone Warehouse 
Group Plc and/or any of its subsidiaries.

Please feel free to visit our website: http:// www.carphonewarehouse.com 
orhttp://www.phonehouse.com

The Carphone Warehouse Group Plc (Registered in England No. 3253714) 1 Portal 
Way, London W3 6RS

Yahoo! Groups Sponsor
ADVERTISEMENT






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] Setting Application padding/margin to 0px

2005-03-09 Thread Matt Horn
Title: Setting Application padding/margin to 0px



You can do it by setting the vspace and hspace attributes 
of the object and embed tags in the HTML 
wrapper.

To edit the wrapper: 
When you request the mxml file, select View  Source. 
Save the source as an HTML page. Edit the HTML page and add vspace/hspace 
attributes to the object/embed tags. Request theHTML 
page.

Hope this helps,

matt horn



From: Anthony Merryfield 
[mailto:[EMAIL PROTECTED] Sent: Wednesday, March 09, 
2005 11:45 AMTo: flexcoders@yahoogroups.comSubject: 
[flexcoders] Setting Application padding/margin to 0px

Hi Everyone, 
I'm trying to remove the whitespace around my .mxml 
app - about 30 pixels or so. I have tried margin="0" in mx:Application but was 
told that was not allowed :(
Any other ideas on how I can do this? 
Cheers, 
Tony. This 
communication together with any attachments transmitted with it ("this 
E-Mail") is intended only for the use of the addressee and may contain 
information which is privileged and confidential. If the reader of this E-Mail 
is not the intended recipient or the employee or agent responsible for 
delivering it to the intended recipient you are hereby notified that any use, 
dissemination, forwarding, printing or copying of this E-Mail is strictly 
prohibited. Addressees should check this E-mail for viruses. The Company makes 
no representations as regards the absence of viruses in this E-Mail. If you 
have received this E-Mail in error please notify our ISe Response Team 
immediately by telephone on +44 (0)20 8896 5828 or via e-mail at 
[EMAIL PROTECTED] Please then immediately delete, erase or otherwise 
destroy this E-Mail and any copies of it.Any opinions expressed in 
this E-Mail are those of the author and do not necessarily constitute the 
views of the Company. Nothing in this E-Mail shall bind the Company in any 
contract or obligation.For the purposes of this E-Mail "the Company" 
means The Carphone Warehouse Group Plc and/or any of its 
subsidiaries.Please feel free to visit our website: http:// 
www.carphonewarehouse.com or http://www.phonehouse.comThe Carphone 
Warehouse Group Plc (Registered in England No. 3253714) 1 Portal Way, London 
W3 6RS


RE: [flexcoders] Background Color of Disabled Button

2005-03-09 Thread Mercer, Dustin








That is what I was afraid of. I looked
into this a little bit last night and just decided to extend the button andgo
a different direction with it. Thank you for the response though!



Dustin Mercer











From: Manish Jethani
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 09, 2005
1:53 AM
To: [EMAIL PROTECTED]
Subject: Re: [flexcoders]
Background Color of Disabled Button





On Tue, 8 Mar 2005 17:43:07 -0800, Mercer, Dustin
[EMAIL PROTECTED] wrote:

 I have been trying to find out a way to
change the background color of a
 disabled button. Has anyone triedthis
or does anyone have a suggestion on
 how to change this? It sounds like it
should be simple, but the solution is
 eluding meJ. Thanks in advance! 

I think the Button's disabled background color is
hard-coded to gray. 
You can change it by specifying a
falseDisabledSkin/trueDisabledSkin,
but I am not sure how exactly to do this (you'll
have to explore, look
up skinning, falseDisabledSkin,
Button).

Manish










flex-config.xml odds and ends

2005-03-09 Thread dduuggllaa


Sprinkled throughout flex-config.xml are numerous variable names
surrounded by curley braces. 

For example in the white-list section you'll find
urlhttp://{localserver}/*/url. 

Can someone tell me where localserver and the other variables get
defined? Thanks.

-Douglass Turner








Need help understanding error message.

2005-03-09 Thread dduuggllaa

I'm working through the nice Christophe Coenraets tutorial here:
http://coenraets.com/tutorials/restaurant/index.jsp

In Lab 1 there is a HTTPService example that calls a JSP page. When I
tried coding it up I got this error:

03/09 13:13:50 ERROR %%404%%/restaurant/restaurant.jsp

I checked my white list and it looks fine. Is this a path problem? My
tree looks like:

Tomcat\webapps\flex
Tomcat\webapps\flex\restaurant
Tomcat\webapps\flex\restaurant\restaurant.mxml
Tomcat\webapps\flex\restaurant\restaurant1.jsp
Tomcat 5.5\webapps\flex\WEB-INF
Tomcat 5.5\webapps\flex\WEB-INF\classes\samples\restaurant\*.class

I was able to get the restaurant-admin app running without a problem.

Thanks,
Douglass Turner







What does this error message mean

2005-03-09 Thread nostra72

When it says Identifier expected what does it mean?


RE: [flexcoders] Need help understanding error message.

2005-03-09 Thread Alexander Hearnz
Shouldn't you be referencing the page as restaurant1.jsp - the message shows
restaurant.jsp - could that be your issue?

Alex

-Original Message-
From: dduuggllaa [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 09, 2005 1:24 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Need help understanding error message.



I'm working through the nice Christophe Coenraets tutorial here:
http://coenraets.com/tutorials/restaurant/index.jsp

In Lab 1 there is a HTTPService example that calls a JSP page. When I
tried coding it up I got this error:

03/09 13:13:50 ERROR %%404%%/restaurant/restaurant.jsp

I checked my white list and it looks fine. Is this a path problem? My
tree looks like:

Tomcat\webapps\flex
Tomcat\webapps\flex\restaurant
Tomcat\webapps\flex\restaurant\restaurant.mxml
Tomcat\webapps\flex\restaurant\restaurant1.jsp
Tomcat 5.5\webapps\flex\WEB-INF
Tomcat 5.5\webapps\flex\WEB-INF\classes\samples\restaurant\*.class

I was able to get the restaurant-admin app running without a problem.

Thanks,
Douglass Turner






Yahoo! Groups Links








---
[This E-mail scanned for viruses by www.SecureTrek.com, a N.O.R.A.D.
Company]





---
[This E-mail scanned for viruses by www.SecureTrek.com, a N.O.R.A.D. Company]





CFC's and Databinding in FLEX

2005-03-09 Thread cnewroth55

I am using a cfc to make a call to one of our LDAP servers that
contain info on our employees, I used the Netdebugger and can see that
I am getting data back, but it is not in the `usual' format (i.e when
I make a DB call in a CFC to one of my `regular' db's, typically I get
the datafields back in CAPS) , I am enclosing what the debugger
`sees'. Now because I am not getting it back in CAPS then I cannot
bind the result to anything…also this code is being used as a
`component' and I can see the call to the Web service, but when I put
it in it's own application framework, it doesn't work at all….

What the debugger sees; 

[array] : 

length[Number] : 1

[0][object] : 

smallcaseID[String] : XX
smallcaseBuilding[String] : 33.3
smallcaseClock[String] : MXX
smallcaseDisplayName[String] : Newroth, Craig
smallcaseMailCode[String] : S034-1060
departmentNumber[String] : GT-XX-XXX
givenname[String] : Craig
initials[String] : 
mail[String] : [EMAIL PROTECTED]
sn[String] : Newroth
telephoneNumber[String] : XXX-XXX-

also, Matt Chotin wrote an item in one of the blogs on how to load a
flashpaper swf into flex, exactly what I am trying to do with a file
that I converted to FlashPaper but am unsure as to where to put the
.as file to make that work…
the url for the thing Matt wrote:
http://www.cflex.net/showfiledetails.cfm?ChannelID=1Object=FileobjectID=117










Installing Flex on IIS with JRun??

2005-03-09 Thread Bradley

OK, I have an IIS server that I Installed JRun onto then I
installed FLEX onto it as well.

The JRun server works fine, i can adminstrate and all that. I added a
New Server in the admin called 'flex' started it on localhost and
gave it port 8101.

I then copied the flex.war file into that new servers directory here...

D:\JRun4\servers\flex\default-ear\default-war

First off is that the right spot? And second do I have to do anything
with the flex.war file like extract it?

I then tossed a simple 'hello.mxml' file into the same path as above
and when i view it in a browser at http://localhost:8101/hello.mxml it
renders out all the mxml file as text like this


?xml version=1.0 encoding=utf-8 ? 
- mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
backgroundColor=#FF
mx:Label text=Hello World / 
/mx:Application


So WHAT am i doing wrong?

ANY help would be great, this whole server admin thing really isn't my
back as you can tell and I am a bit lost.

Thanks all!

Cheers.









Default date in DateField

2005-03-09 Thread Tom Fitzpatrick
How do I set a default date string in a DateField's text field? Say, I want 
the default date shown to be January 1, 2005. I'm able to set the default 
date in the popup calendar using selectedDate, but how do I display that in 
the text field?






RE: [flexcoders] Background Color of Disabled Button

2005-03-09 Thread Susan Chang



Hi Dustin!

Try using the ImageButton included in the extras folder of 
1.5. 

Good luck!
Susan
Flex 
Team


From: Mercer, Dustin 
[mailto:[EMAIL PROTECTED] Sent: Wednesday, March 09, 2005 
10:05 AMTo: flexcoders@yahoogroups.comSubject: RE: 
[flexcoders] Background Color of Disabled Button


That is what I was 
afraid of. I looked into this a little bit last night and just decided to 
extend the button and go a different direction with it. Thank you for the 
response though!

Dustin 
Mercer





From: Manish 
Jethani [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 09, 2005 1:53 
AMTo: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Background Color 
of Disabled Button

On Tue, 8 Mar 2005 17:43:07 -0800, Mercer, 
Dustin[EMAIL PROTECTED] 
wrote: I have been trying 
to find out a way to change the background color of a disabled button. Has anyone tried this or does 
anyone have a suggestion on how 
to change this? It sounds like it should be simple, but the solution 
is eluding meJ. 
Thanks in advance! I think the 
Button's disabled background color is hard-coded to gray. 
You can change it by specifying a 
falseDisabledSkin/trueDisabledSkin,but I am not sure how exactly to do this (you'll have to 
explore, lookup "skinning, 
falseDisabledSkin, Button").Manish


Warning from custom component

2005-03-09 Thread Tom Fitzpatrick
I'm trying to make use of the dynamic FormItem example of a custom 
component from the Webster/McLeod book. The code does work, but I'm getting 
a warning.

The warning is:
The function, visible, hides a function in ancestor class, 'mx.core.UIObject'
The code is:
class DynamicFormItem extends mx.containers.FormItem
{
public function set visible(visible:Boolean)
{
super.visible = visible;
if (!visible)
{
height=0;
}
else
{
height=undefined;
}
}
}
Is there something wrong with the way I've written the code, or should I 
ignore the warning?

- Tom





ViewStack selectedChild

2005-03-09 Thread Rob








Hi,



Just curiousthe MM docs indicate that setting of the
ViewStack.selectedChild can only be done in AS and not in MXML; however, it
appears from the MM example and my tests that the reverse is true



I have a script that is attempting to set the selectedChild
to a value that matches the id attribute of one of the ViewStacks but it
doesnt work.the ViewStack.selectedIndex works great...whats
up with the selectedChild?



viewStack.selectedChild=event.target.selectedItem.attributes.data;



TIA for any info.



Regards.








Datagrid Rows - backgroundColor style...

2005-03-09 Thread owner

I've looked around on the `net' for cellrenderers that
change the
backgroundColor for a Flex datagrid's rows without much success.
I was
able to change the text color in my renderer like this:

Snippet from cellRenderer:

function setValue(str:String, item:Object, sel:String) : Void {
if (item.c_state=='GA') {
lbl.setStyle(color, 0x006600);
} else {
lbl.setStyle(color, 0x00);
}
lbl.text = item.c_state;
}

Has anyone seen or have some example code to change the
backgroundColor instead? Of note, I've tried changing the
color to
backgroundColor in the above code to no avail. 







RE: [flexcoders] ViewStack selectedChild

2005-03-09 Thread Rob








Oopsit appears I have to use the
data attribute to create a new object and use thatnevermind J













From: Rob
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 09, 2005
4:32 PM
To: [EMAIL PROTECTED]
Subject: [flexcoders] ViewStack
selectedChild





Hi,



Just curiousthe MM docs indicate that setting of the
ViewStack.selectedChild can only be done in AS and not in MXML; however, it
appears from the MM example and my tests that the reverse is true



I have a script that is attempting to set the selectedChild
to a value that matches the id attribute of one of the ViewStacks but it
doesnt work.the ViewStack.selectedIndex works
great...whats up with the selectedChild?



viewStack.selectedChild=event.target.selectedItem.attributes.data;



TIA for any info.



Regards.











RE: [flexcoders] Datagrid Rows - backgroundColor style...

2005-03-09 Thread Susan Chang
Hi!

Try using alternatingRowColors instead.

Thanks!
Susan
Flex Team

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 09, 2005 1:32 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Datagrid Rows - backgroundColor style...



I've looked around on the `net' for cellrenderers that change the
backgroundColor for a Flex datagrid's rows without much success.
I was
able to change the text color in my renderer like this:

Snippet from cellRenderer:

function setValue(str:String, item:Object, sel:String) : Void {
if (item.c_state=='GA') {
lbl.setStyle(color, 0x006600);
} else {
lbl.setStyle(color, 0x00);
}
lbl.text = item.c_state;
}

Has anyone seen or have some example code to change the backgroundColor
instead? Of note, I've tried changing the color to backgroundColor in
the above code to no avail. 






Yahoo! Groups Links










RE: [flexcoders] ViewStack selectedChild

2005-03-09 Thread Rob








Ok, Ive been coding too long todayI
need to take a data attribute from a dataProvider and cast into an Object that
can be used in the statement ViewStack.selectedChild=objectI know this
is easy but am having some brain-pain at the momentTIA for any info.



Regards.











From: Rob
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 09, 2005
4:40 PM
To: [EMAIL PROTECTED]
Subject: RE: [flexcoders]
ViewStack selectedChild





Oopsit appears I have to use the
data attribute to create a new object and use thatnevermind J













From: Rob
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 09, 2005
4:32 PM
To: [EMAIL PROTECTED]
Subject: [flexcoders] ViewStack selectedChild





Hi,



Just curiousthe MM docs indicate that setting of the
ViewStack.selectedChild can only be done in AS and not in MXML; however, it
appears from the MM example and my tests that the reverse is true



I have a script that is attempting to set the selectedChild
to a value that matches the id attribute of one of the ViewStacks but it
doesnt work.the ViewStack.selectedIndex works
great...whats up with the selectedChild?



viewStack.selectedChild=event.target.selectedItem.attributes.data;



TIA for any info.



Regards.














Re: [flexcoders] Default date in DateField

2005-03-09 Thread Michael Griffin


Hey Tom,

Does this help? Just a simple example grabbing the date and setting it when the app initializes.

?xml version="1.0" encoding="utf-8"?
mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" initialize="displayDate();"
 mx:Script function displayDate(date) {var today_date:Date = new Date();var date_str:String = (today_date.getDate()+"/"+(today_date.getMonth()+1)+"/"+today_date.getFullYear());mx.controls.Alert.show(date_str,"Message"); // displays current date in United States date formatselectedDate.text = date_str; }
 /mx:Script
 mx:DateChooser id="date1" change="displayDate(event.target.selectedDate)"/
 mx:TextInput id="selectedDate"/
/mx:Application


Mike-Original Message- From: Tom Fitzpatrick <[EMAIL PROTECTED]>Sent: Mar 9, 2005 3:11 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Default date in DateField How do I set a default date string in a DateField's text field? Say, I want the default date shown to be January 1, 2005. I'm able to set the default date in the popup calendar using selectedDate, but how do I display that in the text field?




Yahoo! Groups Sponsor





ADVERTISEMENT






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. 


Michael Griffin
781-395-1254 (H)
[EMAIL PROTECTED]




Tomcat Hosting : Any recommendations?

2005-03-09 Thread dduuggllaa

If anyone out there knows of a top notch Tomcat hosting service that
they have had a good experience with please get in touch with me offline.

Cheers,
Douglass Turner
email: douglass_dot_turner_at_gmail_dot_com