[flexcoders] Form input encoding (ISO-8859-1 or UTF-8?)

2006-04-03 Thread nahruka
Hi all,

I'm wondering which character encoding is used when you enter data in
a Flex form... 

I have installed a MySQL database on my computer. My Flex application
accesses the DB through an HTTPService which url points to a JSP. This
JSP accesses the DB and returns an XML to my Flex application. All
works fine with queries (only for reading from the DB), but not with
inserts.

I'm having problems using characters á, é, í, ó, ú. When I enter them
in a Flex form, they're properly displayed on the screen but not in
the DB (I get strange characters when administering the DB with
MySQLFront).

I've tried to change the DB encoding (from latin1 to utf8 and
viceversa). I've tried to change my application encoding, the JSP
encoding (pageEncoding) and the encoding of the returned XML... 

Is there any valid combination of encodings for my application to
work properly? :-S











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

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

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

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




Re: [flexcoders] Form input encoding (ISO-8859-1 or UTF-8?)

2006-04-03 Thread Manish Jethani
On 4/3/06, nahruka [EMAIL PROTECTED] wrote:

 I'm wondering which character encoding is used when you enter data in
 a Flex form...

The Flash Player speaks UTF-8.

 I'm having problems using characters á, é, í, ó, ú. When I enter them
 in a Flex form, they're properly displayed on the screen but not in
 the DB (I get strange characters when administering the DB with
 MySQLFront).

How are you sending this data to the server?  Using HTTPService?  See
what your server-side script prints.

Manish


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

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

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

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




[flexcoders] Re: Flex2B2 - XML.contains()

2006-04-03 Thread bhaq1972
Nope. Still failing the if test.
regards
bod

--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:

 Yes, contains is by reference, so it doesn't recognize your inline
 definition as being the same as what's in the XML object.
 
 So this would work:
 
 var test:XML = xml1.Report[0];
 if (xml1.contains(test))
 {
   trace('found');
 }
 
 
 Matt
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of bhaq1972
 Sent: Friday, March 31, 2006 7:31 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex2B2 - XML.contains()
 
 Just trying out this method. the first 2 if tests are failing (not 
 getting traces). is that correct?
 
 var xml1:XML =Root  

Report / 
Detail /
   /Root;
   
 if(xml1.contains(Report /))
 {
  trace(report found);
 }
 if(xml1.contains(Detail /))
 {
  trace(detail found);
 }
 if(!xml1.contains(Me /))
 {
  trace(Me not found);
 }
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links







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

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

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

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




[flexcoders] Re: Form input encoding (ISO-8859-1 or UTF-8?)

2006-04-03 Thread nahruka
Hi Manish,

Yes I'm using HTTPService, I will print the request parameteres
received by my JSP and tell you again.

By the way, is there any encoding limitation when populating 
mx:Model and mx:Object tags with an XML document? (I'm using Flex 1.5)

Thanks!


--- In flexcoders@yahoogroups.com, Manish Jethani
[EMAIL PROTECTED] wrote:

 On 4/3/06, nahruka [EMAIL PROTECTED] wrote:
 
  I'm wondering which character encoding is used when you enter data in
  a Flex form...
 
 The Flash Player speaks UTF-8.
 
  I'm having problems using characters á, é, í, ó, ú. When I enter them
  in a Flex form, they're properly displayed on the screen but not in
  the DB (I get strange characters when administering the DB with
  MySQLFront).
 
 How are you sending this data to the server?  Using HTTPService?  See
 what your server-side script prints.
 
 Manish







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

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

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

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





[flexcoders] Flex2 (beta2) app causes FMS2 to drop application

2006-04-03 Thread Stefan Richter
I have been playing around with two Flex applications. 
One has been written by Brian
http://flash-communications.net/technotes/fms2/flex2FMS/index.html
http://flash-communications.net/technotes/fms2/flex2FMS/index.html  and
the other one is by Christophe Coenraets
http://coenraets.com/viewarticle.jsp?articleId=98
http://coenraets.com/viewarticle.jsp?articleId=98 

Brian's example works fine for me but Christophe's example gave me problems.
I have sort of merged the two apps and have narrowed the problem down to one
line of code:

nsPublish = new NetStream(nc); 

When I run this line I see the following in the FMS2 console: 

Dropping application (flexvideo/_definst_) message. Clients not allowed to
broadcast message.

I can't figure out why this occurs, especially since Brian's app is very
similar. Here's my complete MXML code. All you need on the FMS side is an
app 'flexvideo' - no server side code is needed.

Note: some of the vars decalred here aren't actualy used. Can you shed any
light on this problem?

Stefan
 

?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=*
applicationComplete=init()

mx:Script

![CDATA[

private var nc:NetConnection;

private var camera:Camera;

private var microphone:Microphone;

private var nsPublish:NetStream; 

private var nsPlay:NetStream; 

private var localVid:Video;

private var videoFMS:Video;

private function init():void

{

nc = new NetConnection();

nc.connect(rtmp:/flexvideo);

nc.addEventListener(NetStatusEvent.NET_STATUS, netStatus);

nc.addEventListener(SecurityErrorEvent.SECURITY_ERROR, netSecurityError);

}

private function netStatus(event:NetStatusEvent):void {

// Write out information about connection events:

writeln(netStatus:  + event);

var info:Object = event.info;

for(var p:String in info) {

writeln(p +  :  + info[p]);

}

writeln();

// Change the application state if we connect or disconnect.

switch(info.code)

{

case NetConnection.Connect.Success:

// Close and recreate streams

if (nsPublish != null) nsPublish.close();

//if (nsPlay != null) nsPlay.close(); 

//nsPublish = new NetStream(nc); 

//nsPlay = new NetStream(nc); 

break;

case NetConnection.Connect.Closed: 

break;

}

}

/** 

* Reports a security violation error after trying to connect.

*/

private function netSecurityError(event:SecurityErrorEvent):void {

writeln(netSecurityError:  + event);

}

 

private function startStream():void

{ 

camera = Camera.getCamera();

camera.setMode(160, 120, 6, true);

microphone = Microphone.getMicrophone();

localVid = new Video(160, 120);

localVid.attachCamera(camera);

var videoHolder:UIComponent = new UIComponent();

videoHolder.setActualSize(320, 120);

videoHolder.addChild(localVid); 

outpanel.addChild(videoHolder); 

localVid.x = 0;

localVid.y = 0;

// THIS LINE CAUSES THE ERROR

nsPublish = new NetStream(nc); 

}

public function writeln(msg:String):void{

traceArea.text += msg + \n;

traceArea.validateNow();

}

]]

/mx:Script

mx:Panel title=Local WebCam id=outpanel

mx:ControlBar

mx:Button label=Start Stream click=startStream()/

/mx:ControlBar

/mx:Panel

mx:TextArea width=486 height=217 id=traceArea/

/mx:Application












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

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

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

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




Re: [flexcoders] Re: BETA 2: How to validate a form before actually submitting

2006-04-03 Thread Oriol Gual



Hi, What I do to validate a form, is somethig like this:mx:Script ![CDATA[ private function handleValid(eventObj:ValidationResultEvent) : void  {   if(eventObj.type==ValidationResultEvent.VALID
) {formValid = true;   } else {formValid = false;   }   } private function sendForm() : void{
if(formValid) {//do whatever you have to do to send the form} else {alert.show(Form is not valid!,Alert);}}private var formValid : Boolean = false;]]
/mx:Scriptmx:StringValidator source={inputText} property=text minLength=3 maxLength=20 trigger={inputText} triggerEvent=change valid=handleValid(event) invalid=handleValid(event)/
mx:Formmx:FormItem label=Input some text required=true direction=horizontal fontWeight=bold textAlign=left
mx:TextInput id=inputText width=80 maxChars=20//mx:FormItem/mx:Formmx:Button id=fromButton label=Send form click=sendForm()/
When the user inputs some text in the textinput the validation occurs automatically ( trigger={inputText} triggerEvent=change) and the function handleValid is called. Then, when clicking the button if the variable formValid it's true we can send the form.
By the way, I have a question, what is the meaning of the models with flex 2 and forms? Because they're declared in the examples but the validators don't use them.Hope this helps,Oriol
2006/4/2, Dreamer [EMAIL PROTECTED]:
Alex  Alex, you can put the data be validated in a model.like this:mx:Model id=orderemail{email.text
}/email//email is a textInput controller's id/mx:Modelthen define a validator: mx:EmailValidator field=order.email/then write a function in the script tag:
function confirmOrder(): Void {if (mx.validators.Validator.isStructureValid(this, 'order')) {mx.controls.Alert.show(Success!!);addMember();
}else {mx.controls.Alert.show(Please enter valid data in the fields with errors and try again., Problem);}} Peace,Dreamerin china
[EMAIL PROTECTED]2006-04-02=== 2006-04-02 01:37:17 :===Hi Mike,I understand the login, but how do I reference the validation?
I mean what would actually go where you have validation is success.I'm not an actionscrip expert! I'm a cfforever guy ;-).Alexander--- In 
flexcoders@yahoogroups.com, Dreamer [EMAIL PROTECTED] wrote: Alex  Alex,you can write a function,like that.if(validation is success)
addMember();elsealert(invalid input!!!);Peace, Dreamer [EMAIL PROTECTED]
 2006-04-01 === 2006-04-01 18:32:22 :===  Hello,  In a signup form, when I click the submit button I would like for
all the validation to happen and then actually hit the addMember() function.  But if a form fails the validation how can I prevent theexecution of
 addMember().  Thanks, Alexander  -- Flexcoders Mailing List
 FAQ:http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links 
   = = = = = = = = = = = = = = = = = = = =--Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links= = = = = = = = = = = = = = = = = = = =--Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
* To unsubscribe from this group, send an email to:[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/






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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Flex2 (beta2) app causes FMS2 to drop application

2006-04-03 Thread Stefan Richter





ok got it. This line needs adding after nc = new 
NetConnection();:

nc.objectEncoding = 
flash.net.ObjectEncoding.AMF0;

Stefan



  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Stefan 
  RichterSent: 03 April 2006 10:16To: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Flex2 (beta2) app 
  causes FMS2 to drop application
  I have been playing around with two Flex applications. One 
  has been written by Brianhttp://flash-communications.net/technotes/fms2/flex2FMS/index.htmlhttp://flash-communications.net/technotes/fms2/flex2FMS/index.html 
  andthe other one is by Christophe Coenraetshttp://coenraets.com/viewarticle.jsp?articleId=98http://coenraets.com/viewarticle.jsp?articleId=98 
  Brian's example works fine for me but Christophe's example gave me 
  problems.I have sort of merged the two apps and have narrowed the problem 
  down to oneline of code:nsPublish = new NetStream(nc); 
  When I run this line I see the following in the FMS2 console: 
  Dropping application (flexvideo/_definst_) message. Clients not 
  allowed tobroadcast message.I can't figure out why this occurs, 
  especially since Brian's app is verysimilar. Here's my complete MXML code. 
  All you need on the FMS side is anapp 'flexvideo' - no server side code is 
  needed.Note: some of the vars decalred here aren't actualy used. Can 
  you shed anylight on this problem?Stefan?xml 
  version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
  xmlns="*"applicationComplete="init()"mx:Script![CDATA[private 
  var nc:NetConnection;private var camera:Camera;private var 
  microphone:Microphone;private var nsPublish:NetStream; private 
  var nsPlay:NetStream; private var localVid:Video;private var 
  videoFMS:Video;private function init():void{nc = new 
  NetConnection();nc.connect("rtmp:/flexvideo");nc.addEventListener(NetStatusEvent.NET_STATUS, 
  netStatus);nc.addEventListener(SecurityErrorEvent.SECURITY_ERROR, 
  netSecurityError);}private function 
  netStatus(event:NetStatusEvent):void {// Write out information about 
  connection events:writeln("netStatus: " + event);var 
  info:Object = event.info;for(var p:String in info) {writeln(p 
  + " : " + info[p]);}writeln("");// Change the 
  application state if we connect or 
  disconnect.switch(info.code){case 
  "NetConnection.Connect.Success":// Close and recreate 
  streamsif (nsPublish != null) nsPublish.close();//if (nsPlay 
  != null) nsPlay.close(); //nsPublish = new NetStream(nc); 
  //nsPlay = new NetStream(nc); break;case 
  "NetConnection.Connect.Closed": break;}}/** 
  * Reports a security violation error after trying to 
  connect.*/private function 
  netSecurityError(event:SecurityErrorEvent):void 
  {writeln("netSecurityError: " + 
  event);}private function startStream():void{ 
  camera = Camera.getCamera();camera.setMode(160, 120, 6, 
  true);microphone = Microphone.getMicrophone();localVid = new 
  Video(160, 120);localVid.attachCamera(camera);var 
  videoHolder:UIComponent = new 
  UIComponent();videoHolder.setActualSize(320, 
  120);videoHolder.addChild(localVid); 
  outpanel.addChild(videoHolder); localVid.x = 
  0;localVid.y = 0;// THIS LINE CAUSES THE 
  ERRORnsPublish = new NetStream(nc); }public function 
  writeln(msg:String):void{traceArea.text += msg + 
  "\n";traceArea.validateNow();}]]/mx:Scriptmx:Panel 
  title="Local WebCam" 
  id="outpanel"mx:ControlBarmx:Button 
  label="Start Stream" 
  click="startStream()"//mx:ControlBar/mx:Panelmx:TextArea 
  width="486" height="217" 
  id="traceArea"//mx:Application





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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Code formatter for action script

2006-04-03 Thread Tim Sawyer
We use an open source product called Jalopy (http://jalopy.sourceforge.net) 
for formatting our Java code.  I guess it'd be possible to fork this project 
and get it to work with Actionscript files instead, though it could be 
interesting trying to format code within mxml files.

When you're working in a team, it helps to have a code formatter to enforce 
standard formatting across developers.  It's something we really miss in 
Flex.  It also helps when using CVS, because the diffs between versions are  
the actual code changes, not any formatting changes.

When we format with Jalopy, it automatically adds in javadoc comments, with 
the comment as DOCUMENT ME!.  It will also add in the appropriate parameter 
list ready for comments filling in.  This all helps save time.  Combining 
this with Eclipse's standard header comments and code generation makes Java 
code development more productive.

I too would like to see a code formatter built into Flex.

Tim.

On Monday 03 Apr 2006 02:10, Michael Schmalle wrote:
 Hi,

 This is just my opinion;

 I have a project I am working on that has over 50 classes/interfaces and
 counting, I have written this all myself. My advice;

 When you create classes/interfaces, methods and properties, format them
 manually and don't rely on code formatters.

 Hey, some will laugh at me for saying this but, it produces better code.
 Mark my words it does. You tend to find mistakes quicker and after you have
 exercised you formatting routine enough you find yourself formatting as
 your write.

 You will also find yourself taking much more pride in the way your code
 looks and know exactly how it got that way, becasue you did it.

 It's also a good way to get in the habit of writting really good
 documenting comments. I don't mean inline but, api doc comments.

 Just the 2 cent here.

 Peace, Mike

 On 4/2/06, bkeinan [EMAIL PROTECTED] wrote:
   Hi all,
 
  I am working on a big project using flex for building the client side.
  We use the flex builder/SEPY for writing teh action scrip but none of
  them support good code formating that allows you to define the way you
  want the code to look like (like in the juva plug in of eclipse).
  Do any of you knows a good code formatter for action script (free or
  not)?
 
  Thanks,
  Benny
 
 
 
 
 
   --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 
 
   --
  YAHOO! GROUPS LINKS
 
 
 -  Visit your group
  flexcodershttp://groups.yahoo.com/group/flexcoders on the web.
 
 -  To unsubscribe from this group, send an email to:
 
  [EMAIL PROTECTED][EMAIL PROTECTED]
 .com?subject=Unsubscribe
 
 -  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
 Service http://docs.yahoo.com/info/terms/.
 
 
   --

 --
 What goes up, does come down.


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

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

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

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




Re: [flexcoders] Code formatter for action script

2006-04-03 Thread Michael Schmalle




 When you're working in a team, it helps to have a code formatter to enforce 
standard formatting across developers.

Yeah, that makes a lot of sense! See, I didn't think of that but, I
guess manully formatting for me, has made me a better programmer. When
I was thinking of code formatters, I am from the flash dreamweaver
area. So there was not comment manipulation etc.

So as far as those thing are concerned, yeah a code/comment formatter
would help. Maybe with options not to touch the 'formatting' but could
parse comments. This would save a lot of time.

though it could be 
interesting trying to format code within mxml files.


Why?, if you were say parsing the mxml as xml, then slice out the AS, format it, then push it back into the xml.

This is what I do with my document generator in AS3/mxml.

Peace, Mike

On 4/3/06, Tim Sawyer [EMAIL PROTECTED] wrote:



We use an open source product called Jalopy (http://jalopy.sourceforge.net) 
for formatting our Java code. I guess it'd be possible to fork this project 
and get it to work with Actionscript files instead, though it could be 
interesting trying to format code within mxml files.

When you're working in a team, it helps to have a code formatter to enforce 
standard formatting across developers. It's something we really miss in 
Flex. It also helps when using CVS, because the diffs between versions are 
the actual code changes, not any formatting changes.

When we format with Jalopy, it automatically adds in javadoc comments, with 
the comment as DOCUMENT ME!. It will also add in the appropriate parameter 
list ready for comments filling in. This all helps save time. Combining 
this with Eclipse's standard header comments and code generation makes Java 
code development more productive.

I too would like to see a code formatter built into Flex.

Tim.

On Monday 03 Apr 2006 02:10, Michael Schmalle wrote:
 Hi,

 This is just my opinion;

 I have a project I am working on that has over 50 classes/interfaces and
 counting, I have written this all myself. My advice;

 When you create classes/interfaces, methods and properties, format them
 manually and don't rely on code formatters.

 Hey, some will laugh at me for saying this but, it produces better code.
 Mark my words it does. You tend to find mistakes quicker and after you have
 exercised you formatting routine enough you find yourself formatting as
 your write.

 You will also find yourself taking much more pride in the way your code
 looks and know exactly how it got that way, becasue you did it.

 It's also a good way to get in the habit of writting really good
 documenting comments. I don't mean inline but, api doc comments.

 Just the 2 cent here.

 Peace, Mike

 On 4/2/06, bkeinan [EMAIL PROTECTED] wrote:
  Hi all,
 
  I am working on a big project using flex for building the client side.
  We use the flex builder/SEPY for writing teh action scrip but none of
  them support good code formating that allows you to define the way you
  want the code to look like (like in the juva plug in of eclipse).
  Do any of you knows a good code formatter for action script (free or
  not)?
 
  Thanks,
  Benny
 
 
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

  Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com

 
 
  --
  YAHOO! GROUPS LINKS
 
 
  - Visit your group
  flexcodershttp://groups.yahoo.com/group/flexcoders on the web.

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

 .com?subject=Unsubscribe
 
  - Your use of Yahoo! Groups is subject to the Yahoo! Terms of
  Service http://docs.yahoo.com/info/terms/.
 
 
  --

 --
 What goes up, does come down.






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com






  




  
  
  YAHOO! GROUPS LINKS



  Visit your group flexcoders on the web.
  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




  









-- What goes up, does come down.






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To 

[flexcoders] Remote SharedObject problems

2006-04-03 Thread Stefan Richter






I had a quick try with Remote SO in 
Flex Beta 2 and while I can trace out a [object SharedObject]I am not seeing 
the object being created in the FMS 
console. I also don't get an onsync 
event.
No SharedObject folder is being created 
either.
Here's my code, based 
onBrian Lesser's smaple 
app.Could this be a 
bug?

?xml version="1.0" 
encoding="utf-8"?mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="vertical" 
applicationComplete="init()"

mx:TextArea width="622" 
height="291" id="traceArea" wordWrap="true"/mx:Form 
width="622"mx:FormItem 
horizontalAlign="right" width="560"mx:Button 
label="Connect" id="connectButton" click="connect();" 
width="100"//mx:FormItem/mx:Formmx:Script![CDATA[import 
flash.net;import flash.events;import 
flash.util;

NetConnection.defaultObjectEncoding = 
flash.net.ObjectEncoding.AMF0;SharedObject.defaultObjectEncoding 
= flash.net.ObjectEncoding.AMF0;// NetConnection 
to be used throughout this script:private var 
nc:NetConnection;private var so:SharedObject;// 
echoResponder is used when nc.call("echo", echoResponder ...) is 
called.private var echoResponder:Responder = new 
Responder(echoResult, echoStatus);

private function 
init():void{writeln("Initializing application... in 
player: " + flash.system.Capabilities.version + 
"\n");// Create the NetConnection 
and listen for NetStatusEvent and nc = new 
NetConnection();nc.addEventListener(NetStatusEvent.NET_STATUS, 
netStatus);nc.addEventListener(SecurityErrorEvent.SECURITY_ERROR, 
netSecurityError);}private 
function 
soSync(event:SyncEvent):void{writeln("SOSYNC");}

private function netStatus(event:NetStatusEvent):void 
{// Write out information about connection 
events: 
writeln("netStatus: " + 
event); 
var info:Object = 
event.info; 
for(var p:String in info) 
{ 
writeln(p + " : " + 
info[p]); 
} 
writeln(""); 
 // Change 
the application state if we connect or 
disconnect. 
switch(info.code){ 
case 
"NetConnection.Connect.Success": 
 
so = SharedObject.getRemote("remoteso", nc.uri, 
true); 
writeln("so: " + 
so); 
so.addEventListener(SyncEvent.SYNC, soSync);

 
// Adjust 
Buttons 
connectButton.label = 
"Disconnect"; 
connectButton.enabled = 
true;  
 
break; 
 
case 
"NetConnection.Connect.Closed": 
connectButton.label = 
"Connect"; 
connectButton.enabled = 
true; 
break; 
} }

private function 
netSecurityError(event:SecurityErrorEvent):void 
{ 
writeln("netSecurityError: " + 
event); 
} 
 /** 
 * connect is called 
whenever the connectButton is 
pressed * and decides what 
to do based on the current label of the 
button. * NOTE: the rtmp 
address is in this function. Change it if you need 
to. 
*/ private function 
connect():void 
{ 
switch(connectButton.label){ 
case "Connect": 
connectButton.label = 
"Wait"; 
connectButton.enabled = 
false; 
nc.connect("rtmp:/flex2FMS"); 
break; 
case "Disconnect": 
connectButton.label = 
"Connect"; 
connectButton.enabled = 
true; 
nc.close(); 
break; 
} 
 
} 
 /** echoResult is called when the 
echoResponder gets a result from the nc.call("echoMessage"..) 
*/ private function 
echoResult(msg:String):void 
{ writeln("echoResult: " + 
msg + "\n"); 
} 
 /** echoResult is called when the 
echoResponder gets a error after a nc.call("echoMessage"..) 
*/ private function 
echoStatus(event:Event):void 
{ writeln("echoStatus: " + 
event); 
}public function 
writeln(msg:String):void{traceArea.text += msg + 
"\n";traceArea.validateNow();//traceArea.vPosition 
= 
traceArea.maxVPosition;}]]/mx:Script/mx:Application





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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Code formatter for action script

2006-04-03 Thread Michael Schmalle



You know,

With my experience writting parsers and regular expressions I could write one of these as an Eclipse plugin.

The problem is, I love programming in Java(yes, I do know how ;-) But,
I looked at making Eclipse plugins in Eclipse's help. I got frekin
lost. I have to much stuff on my plate to figure that out right now.

I was also thinking down the road of porting my as3/mxml documentor into an Eclipse Plugin also.

Can someone give me an honest assesment of how hard it is to create a
plugin if you already have the 'application logic written' ?

Peace, MikeOn 4/3/06, Michael Schmalle [EMAIL PROTECTED] wrote:

 When you're working in a team, it helps to have a code formatter to enforce 
standard formatting across developers.

Yeah, that makes a lot of sense! See, I didn't think of that but, I
guess manully formatting for me, has made me a better programmer. When
I was thinking of code formatters, I am from the flash dreamweaver
area. So there was not comment manipulation etc.

So as far as those thing are concerned, yeah a code/comment formatter
would help. Maybe with options not to touch the 'formatting' but could
parse comments. This would save a lot of time.

though it could be 
interesting trying to format code within mxml files.


Why?, if you were say parsing the mxml as xml, then slice out the AS, format it, then push it back into the xml.

This is what I do with my document generator in AS3/mxml.

Peace, Mike

On 4/3/06, Tim Sawyer [EMAIL PROTECTED]
 wrote:



We use an open source product called Jalopy (http://jalopy.sourceforge.net) 
for formatting our Java code. I guess it'd be possible to fork this project 
and get it to work with Actionscript files instead, though it could be 
interesting trying to format code within mxml files.

When you're working in a team, it helps to have a code formatter to enforce 
standard formatting across developers. It's something we really miss in 
Flex. It also helps when using CVS, because the diffs between versions are 
the actual code changes, not any formatting changes.

When we format with Jalopy, it automatically adds in javadoc comments, with 
the comment as DOCUMENT ME!. It will also add in the appropriate parameter 
list ready for comments filling in. This all helps save time. Combining 
this with Eclipse's standard header comments and code generation makes Java 
code development more productive.

I too would like to see a code formatter built into Flex.

Tim.

On Monday 03 Apr 2006 02:10, Michael Schmalle wrote:
 Hi,

 This is just my opinion;

 I have a project I am working on that has over 50 classes/interfaces and
 counting, I have written this all myself. My advice;

 When you create classes/interfaces, methods and properties, format them
 manually and don't rely on code formatters.

 Hey, some will laugh at me for saying this but, it produces better code.
 Mark my words it does. You tend to find mistakes quicker and after you have
 exercised you formatting routine enough you find yourself formatting as
 your write.

 You will also find yourself taking much more pride in the way your code
 looks and know exactly how it got that way, becasue you did it.

 It's also a good way to get in the habit of writting really good
 documenting comments. I don't mean inline but, api doc comments.

 Just the 2 cent here.

 Peace, Mike

 On 4/2/06, bkeinan [EMAIL PROTECTED] wrote:
  Hi all,
 
  I am working on a big project using flex for building the client side.
  We use the flex builder/SEPY for writing teh action scrip but none of
  them support good code formating that allows you to define the way you
  want the code to look like (like in the juva plug in of eclipse).
  Do any of you knows a good code formatter for action script (free or
  not)?
 
  Thanks,
  Benny
 
 
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

  Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com

 
 
  --
  YAHOO! GROUPS LINKS
 
 
  - Visit your group
  flexcodershttp://groups.yahoo.com/group/flexcoders on the web.

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


 .com?subject=Unsubscribe
 
  - Your use of Yahoo! Groups is subject to the Yahoo! Terms of
  Service http://docs.yahoo.com/info/terms/.
 
 
  --

 --
 What goes up, does come down.






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt


Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com







  




  
  
  YAHOO! GROUPS LINKS



  Visit your group flexcoders on the web.
  To unsubscribe from this group, send an email to:

[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.





  









-- What goes up, does come down.

-- What goes up, does come down.






--
Flexcoders Mailing List
FAQ: 

Re: [flexcoders] Code formatter for action script

2006-04-03 Thread Tim Sawyer
Have a look at Jalopy source and see what that does:
http://jalopy.sourceforge.net/jalopy-eclipse/downloads.html

I recommend The Java Developer's Guide to Eclipse by D'Anjou et al for a 
nice big fat book on how to implement Eclipse extensions.  We did some work 
with the Eclipse RCP before looking at Flex.

Tim.

On Monday 03 Apr 2006 11:49, Michael Schmalle wrote:
 You know,

 With my experience writting parsers and regular expressions I could write
 one of these as an Eclipse plugin.

 The problem is, I love programming in Java(yes, I do know how ;-) But, I
 looked at making Eclipse plugins in Eclipse's help. I got frekin lost. I
 have to much stuff on my plate to figure that out right now.

 I was also thinking down the road of porting my as3/mxml documentor into an
 Eclipse Plugin also.

 Can someone give me an honest assesment of how hard it is to create a
 plugin if you already have the 'application logic written' ?

 Peace, Mike

 On 4/3/06, Michael Schmalle [EMAIL PROTECTED] wrote:
   When you're working in a team, it helps to have a code formatter to
 
  enforce
  standard formatting across developers.
 
  Yeah, that makes a lot of sense! See, I didn't think of that but, I guess
  manully formatting for me, has made me a better programmer. When I was
  thinking of code formatters, I am from the flash dreamweaver area. So
  there was not comment manipulation etc.
 
  So as far as those thing are concerned, yeah a code/comment formatter
  would help. Maybe with options not to touch the 'formatting' but could
  parse comments. This would save a lot of time.
 
  though it could be
  interesting trying to format code within mxml files.
 
 
  Why?, if you were say parsing the mxml as xml, then slice out the AS,
  format it, then push it back into the xml.
 
  This is what I do with my document generator in AS3/mxml.
 
  Peace, Mike
 
  On 4/3/06, Tim Sawyer [EMAIL PROTECTED] wrote:
We use an open source product called Jalopy (
   http://jalopy.sourceforge.net) http://jalopy.sourceforge.net%29
   for formatting our Java code.  I guess it'd be possible to fork this
   project
   and get it to work with Actionscript files instead, though it could be
   interesting trying to format code within mxml files.
  
   When you're working in a team, it helps to have a code formatter to
   enforce
   standard formatting across developers.  It's something we really miss
   in
  
   Flex.  It also helps when using CVS, because the diffs between versions
   are
   the actual code changes, not any formatting changes.
  
   When we format with Jalopy, it automatically adds in javadoc comments,
   with
   the comment as DOCUMENT ME!.  It will also add in the appropriate
   parameter
   list ready for comments filling in.  This all helps save time.
   Combining
   this with Eclipse's standard header comments and code generation makes
   Java
   code development more productive.
  
   I too would like to see a code formatter built into Flex.
  
   Tim.
  
   On Monday 03 Apr 2006 02:10, Michael Schmalle wrote:
Hi,
   
This is just my opinion;
   
I have a project I am working on that has over 50 classes/interfaces
  
   and
  
counting, I have written this all myself. My advice;
   
When you create classes/interfaces, methods and properties, format
  
   them
  
manually and don't rely on code formatters.
   
Hey, some will laugh at me for saying this but, it produces better
  
   code.
  
Mark my words it does. You tend to find mistakes quicker and after
you
  
   have
  
exercised you formatting routine enough you find yourself formatting
  
   as
  
your write.
   
You will also find yourself taking much more pride in the way your
  
   code
  
looks and know exactly how it got that way, becasue you did it.
   
It's also a good way to get in the habit of writting really good
documenting comments. I don't mean inline but, api doc comments.
   
Just the 2 cent here.
   
Peace, Mike
   
On 4/2/06, bkeinan [EMAIL PROTECTED] wrote:
  Hi all,

 I am working on a big project using flex for building the client
  
   side.
  
 We use the flex builder/SEPY for writing teh action scrip but none
  
   of
  
 them support good code formating that allows you to define the way
  
   you
  
 want the code to look like (like in the juva plug in of eclipse).
 Do any of you knows a good code formatter for action script (free
 or not)?

 Thanks,
 Benny





  --
 Flexcoders Mailing List
 FAQ:
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com



  --
 YAHOO! GROUPS LINKS


-  Visit your group
 flexcodershttp://groups.yahoo.com/group/flexcoders on the web.


-  To unsubscribe from this group, send an 

Re: [flexcoders] Code formatter for action script

2006-04-03 Thread Michael Schmalle



Thanks Tim!

I will go buy the book today. Honsetly before I decided to implement
this documenter in Flex2, that is when I took about a day trying to
figure out Eclipse's extensions. Then I decided I could get to birds
with one stone. 

1) Since I could access the file system with php, I could use AMF with Flex

2) I could test how fast Flex is with regular expressions, for that matter the new virtual machine. Well, it is really fast!

But, don't be suprised if you see some plugins from me down the road. I
don't know if I will have the means for them to be open source but who
knows.

One thing I am thinking is;

If I create an application plugin of my documenter, that will be a big
program. I could have all the documenting and formatting in that. Sell
it as commercial and maybe offer the formatter as a free open source
thing just to show my nicness ;-)

We will see, thanks again.

Peace, MikeOn 4/3/06, Tim Sawyer [EMAIL PROTECTED] wrote:



Have a look at Jalopy source and see what that does:
http://jalopy.sourceforge.net/jalopy-eclipse/downloads.html

I recommend The Java Developer's Guide to Eclipse by D'Anjou et al for a 
nice big fat book on how to implement Eclipse extensions. We did some work 
with the Eclipse RCP before looking at Flex.

Tim.

On Monday 03 Apr 2006 11:49, Michael Schmalle wrote:
 You know,

 With my experience writting parsers and regular expressions I could write
 one of these as an Eclipse plugin.

 The problem is, I love programming in Java(yes, I do know how ;-) But, I
 looked at making Eclipse plugins in Eclipse's help. I got frekin lost. I
 have to much stuff on my plate to figure that out right now.

 I was also thinking down the road of porting my as3/mxml documentor into an
 Eclipse Plugin also.

 Can someone give me an honest assesment of how hard it is to create a
 plugin if you already have the 'application logic written' ?

 Peace, Mike

 On 4/3/06, Michael Schmalle [EMAIL PROTECTED] wrote:
   When you're working in a team, it helps to have a code formatter to
 
  enforce
  standard formatting across developers.
 
  Yeah, that makes a lot of sense! See, I didn't think of that but, I guess
  manully formatting for me, has made me a better programmer. When I was
  thinking of code formatters, I am from the flash dreamweaver area. So
  there was not comment manipulation etc.
 
  So as far as those thing are concerned, yeah a code/comment formatter
  would help. Maybe with options not to touch the 'formatting' but could
  parse comments. This would save a lot of time.
 
  though it could be
  interesting trying to format code within mxml files.
 
 
  Why?, if you were say parsing the mxml as xml, then slice out the AS,
  format it, then push it back into the xml.
 
  This is what I do with my document generator in AS3/mxml.
 
  Peace, Mike
 
  On 4/3/06, Tim Sawyer [EMAIL PROTECTED] wrote:
   We use an open source product called Jalopy (
   http://jalopy.sourceforge.net) 
http://jalopy.sourceforge.net%29
   for formatting our Java code. I guess it'd be possible to fork this
   project
   and get it to work with Actionscript files instead, though it could be
   interesting trying to format code within mxml files.
  
   When you're working in a team, it helps to have a code formatter to
   enforce
   standard formatting across developers. It's something we really miss
   in
  
   Flex. It also helps when using CVS, because the diffs between versions
   are
   the actual code changes, not any formatting changes.
  
   When we format with Jalopy, it automatically adds in javadoc comments,
   with
   the comment as DOCUMENT ME!. It will also add in the appropriate
   parameter
   list ready for comments filling in. This all helps save time.
   Combining
   this with Eclipse's standard header comments and code generation makes
   Java
   code development more productive.
  
   I too would like to see a code formatter built into Flex.
  
   Tim.
  
   On Monday 03 Apr 2006 02:10, Michael Schmalle wrote:
Hi,
   
This is just my opinion;
   
I have a project I am working on that has over 50 classes/interfaces
  
   and
  
counting, I have written this all myself. My advice;
   
When you create classes/interfaces, methods and properties, format
  
   them
  
manually and don't rely on code formatters.
   
Hey, some will laugh at me for saying this but, it produces better
  
   code.
  
Mark my words it does. You tend to find mistakes quicker and after
you
  
   have
  
exercised you formatting routine enough you find yourself formatting
  
   as
  
your write.
   
You will also find yourself taking much more pride in the way your
  
   code
  
looks and know exactly how it got that way, becasue you did it.
   
It's also a good way to get in the habit of writting really good
documenting comments. I don't mean inline but, api doc comments.
   
Just the 2 cent here.
   
Peace, Mike
   
On 4/2/06, bkeinan [EMAIL 

Re: [flexcoders] Putting markers on chart

2006-04-03 Thread Sachin Dharmapurikar



Hi Ely, We wan't to put a vertical line on X-Axis value for which the Y-axis value exceeds a threshold. E.g. following are the input sets -X-Axis Values : [ 11:00, 12:00, 13:00]Y-Axis Values: [47,67,31]
Now there should be a way to define threshold on Y-Axis. If I set the threshold on 50 then all values  50 should have a vertical line drawn on corrosponding X-Axis value. In our example on 12:00 the vertical line should appear.
Does that make any sense to you?SachinOn 4/3/06, Ely Greenfield [EMAIL PROTECTED] wrote:









Sachin, can you explain a little further? are you 
looking for a vertical line at a particular X value? or a horizontal line at a 
particular y value?

Ely.



From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of Sachin 
DharmapurikarSent: Saturday, April 01, 2006 7:23 PMTo: 
FlexcodersSubject: [flexcoders] Putting markers on 
chart
Hi,I am developing a charting application. I am simulating a 
live chart which is updated after finite interval. X-Axis of the chart is going 
to have dates and Y-Axis will have Numbers. I want to put a red line marker when 
the value of Y-axis crosses a particular value. Sample image is attached. 
Is it possible to do this using Flex line 
charting?Thanks,Sachin





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com









  
  
SPONSORED LINKS
  
  
  


Web site design development
  
  

Computer software development
  
  

Software design and development
  
  



Macromedia flex
  
  

Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group flexcoders on the web.

  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
.



  















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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Resize bug?

2006-04-03 Thread Flex Coders



Hi Jonathan,We have discovered, that this is a problem with Firefox and we have logged a bug in Bugzilla.https://bugzilla.mozilla.org/show_bug.cgi?id=332287
ThanksRaghunath Rao ([EMAIL PROTECTED])On 3/2/06, Flex Coders 
[EMAIL PROTECTED] wrote:Hi Jonathan,
I tested this on the following browsers with tabs and got the following resultsFirefox 1.5.0.1 - Bug reproducedIE 
7.0 beta - Cannot reproduceMaxthon - Cannot reproduce
Netscape 8.0.3.3 - Bug reproducedMorover this happens for both FLEX swfs as well as any ordinary Flash Movie. So this is a flash issue that pertains to the Netscape plugin. So it should reproduce on all browsers using it (like Netscape, Firefox, Mozilla, Opera...etc) and not on ActiveX based browsers like IE, Maxthon.
I have logged a player bug on this and it is being tracked... Thanks for the observationRaghu([EMAIL PROTECTED]
)On 3/2/06, 
Jonathan Miranda [EMAIL PROTECTED] wrote:



















Can't tell if this would be a Firefox/IE error or
Flex, but let's say you have 2 tabs open and you're selected on the
tab without your flash video. Resize the browser, then switch tabs –
flash won't resize until you resize the window again. Does the same in
Firefox and IE – maybe when the browser resizes, it doesn't
broadcast to all tabs…








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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Re: Security sandbox violation using PHP, APACHE MYSQL

2006-04-03 Thread lift69boy
yes to all your questions...I'm calling the php script from my mxml 
both of which are on localhost,  I am running my flex project in the 
web browser. It seems a pretty simple set up (based on Mike Potters 
exampleperhaps youve seen it)...flex project running on apache 
localhost, php querying mysql, both on localhost...I know nothing 
about we server architecture so maybe its some config I'm missing 
here...
thanks again Matt
Ben 
--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:

 I guess I misunderstood, are you using HTTPService to hit your 
PHP?  And
 the PHP is on localhost?  Are you accessing the SWF using a web 
browser
 from localhost as well?
 
 Matt
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of lift69boy
 Sent: Sunday, April 02, 2006 1:08 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Security sandbox violation using PHP, 
APACHE 
 MYSQL
 
 Cheers Matt
 Forgive my ignorance but could you please define main 
  otherI've configured my project to run on localhost, my php 
 script runs no probs on localhost, i've gone down the proxy route 
 but still the same error. I've looked through Apache  PHP config  
 nothing obvious here. I'm certain I'm making a schoolboy error 
 somewhere...
 Really appreciate your help
 Ben
 
 
 --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote:
 
  What are you loading?  Looks like the main SWF is on one domain 
 and the
  other SWF is on another domain?  You might need to do
  Security.allowDomain work?
  
  -Original Message-
  From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On
  Behalf Of lift69boy
  Sent: Friday, March 31, 2006 4:56 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Security sandbox violation using PHP, 
APACHE 
 
  MYSQL
  
  hi allnot a new question but still can't find the answer...
  
  i think this is more of a flash security issue but I get the 
 following 
  error when running my project...
  Error: code:Client.CouldNotDecode string:'Error #2070: Security 
 sandbox 
  violation: caller '%s' may not access Stage owned by '%s'.' 
  detail:'null'
  architecture is flexphpmysql running on apache.
  i've tried the crossdomain file in many places but from reading 
 this  
  other forums, it is where it should be i.e. on the web server 
root.
  i've pulled all my hair out  will soon progress to chopping my 
 legs 
  off in frustration
  any help greatly appreciated
  cheers
  ben 
  
  
  
  
  
  --
  Flexcoders Mailing List
  FAQ: 
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  Yahoo! Groups Links
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links









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

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

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

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





[flexcoders] Moved e-mail

2006-04-03 Thread John



HI All,I just want to let you know that I moved my e-mail, and you can write to me at:[EMAIL PROTECTED]Thanks,John
   

		Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.





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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Re: DataGrid Find Function

2006-04-03 Thread mepaninaresh
Any ideas how I can get hold of the index in order to set 
selectedIndex.

Sample code :-

createSort();
var cursor:IViewCursor = myXMLListCollection.getCursor();
var values:Object = {FreeText: nameInput.text};
cursor.findFirst(values);

Thanks for any help.

--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:

 Setting the selectedIndex should work.  Then you can set the 
vPosition
 to scroll to it.
 
 Matt
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of mepaninaresh
 Sent: Friday, March 31, 2006 5:55 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] DataGrid Find Function
 
 I have implemented the find function, all works great. Is there 
any 
 way of setting the selectedIndex of the DataGrid.I want to 
highlight 
 and position?
 
 Regards,
 Naresh.
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links










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

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

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

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





RE: [flexcoders] Flex2 (beta2) app causes FMS2 to drop application

2006-04-03 Thread Brian O'Connor










Try setting the object encoding at an
instance level on the NetConnection and NetStream Objects.



nc = new NetConnection();

nc.objectEncoding =
flash.net.ObjectEncoding.AMF0;

nc.connect(rtmp:/flexvideo );



nsPublish.objectEncoding =
flash.net.ObjectEncoding.AMF0;

nsPublish = new NetStream(nc);





-

Brian O'Connor

AdobeConsulting

Email: [EMAIL PROTECTED]

Office: 617-219-2205

Mobile: 617-306-3713

/ \ 
888/ \888 
88/ / \88 
8/ /8\ \8 
/ /888\ \ 
\8\











From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Stefan Richter
Sent: Monday, April 03, 2006 5:16
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex2
(beta2) app causes FMS2 to drop application





I have been playing around with two Flex applications. 
One has been written by Brian
http://flash-communications.net/technotes/fms2/flex2FMS/index.html
http://flash-communications.net/technotes/fms2/flex2FMS/index.html
and
the other one is by Christophe Coenraets
http://coenraets.com/viewarticle.jsp?articleId=98
http://coenraets.com/viewarticle.jsp?articleId=98


Brian's example works fine for me but Christophe's
example gave me problems.
I have sort of merged the two apps and have
narrowed the problem down to one
line of code:

nsPublish = new NetStream(nc); 

When I run this line I see the following in the
FMS2 console: 

Dropping application (flexvideo/_definst_)
message. Clients not allowed to
broadcast message.

I can't figure out why this occurs, especially
since Brian's app is very
similar. Here's my complete MXML code. All you
need on the FMS side is an
app 'flexvideo' - no server side code is needed.

Note: some of the vars decalred here aren't
actualy used. Can you shed any
light on this problem?

Stefan


?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
xmlns=*
applicationComplete=init()

mx:Script

![CDATA[

private var nc:NetConnection;

private var camera:Camera;

private var microphone:Microphone;

private var nsPublish:NetStream; 

private var nsPlay:NetStream; 

private var localVid:Video;

private var videoFMS:Video;

private function init():void

{

nc = new NetConnection();

nc.connect(rtmp:/flexvideo);

nc.addEventListener(NetStatusEvent.NET_STATUS,
netStatus);

nc.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
netSecurityError);

}

private function
netStatus(event:NetStatusEvent):void {

// Write out information about connection events:

writeln(netStatus:  + event);

var info:Object = event.info;

for(var p:String in info) {

writeln(p +  :  + info[p]);

}

writeln();

// Change the application state if we connect or
disconnect.

switch(info.code)

{

case NetConnection.Connect.Success:

// Close and recreate streams

if (nsPublish != null) nsPublish.close();

//if (nsPlay != null) nsPlay.close(); 

//nsPublish = new NetStream(nc); 

//nsPlay = new NetStream(nc); 

break;

case NetConnection.Connect.Closed: 

break;

}

}

/** 

* Reports a security violation error after trying
to connect.

*/

private function
netSecurityError(event:SecurityErrorEvent):void {

writeln(netSecurityError:  + event);

}



private function startStream():void

{ 

camera = Camera.getCamera();

camera.setMode(160, 120, 6, true);

microphone = Microphone.getMicrophone();

localVid = new Video(160, 120);

localVid.attachCamera(camera);

var videoHolder:UIComponent = new UIComponent();

videoHolder.setActualSize(320, 120);

videoHolder.addChild(localVid); 

outpanel.addChild(videoHolder); 

localVid.x = 0;

localVid.y = 0;

// THIS LINE CAUSES THE ERROR

nsPublish = new NetStream(nc); 

}

public function writeln(msg:String):void{

traceArea.text += msg + \n;

traceArea.validateNow();

}

]]

/mx:Script

mx:Panel title=Local WebCam
id=outpanel

mx:ControlBar

mx:Button label=Start Stream
click=startStream()/

/mx:ControlBar

/mx:Panel

mx:TextArea width=486
height=217 id=traceArea/

/mx:Application


















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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Find Function

2006-04-03 Thread mepaninaresh
The findFirst always returns a result by default, even when no match 
is found. Default being the first record. It applies to findLast and 
findAny.

Is it possible to capture this ?

Thanking you for any help.







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

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

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

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




[flexcoders] Cairngorm issue

2006-04-03 Thread Larry Liang
Hi,

I'm trying to use cairngorm 2.0 design pattern to build a ria. Can 
someone explain a little bit about ModelLocator. It is a new 
component introduced in Cairgnorm 2. I was just wondering what it 
does and how should I use it.

Thanks,

Larry











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

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

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

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




RE: [flexcoders] Cairngorm issue

2006-04-03 Thread Alex Uhlmann
Hi Larry,


You can read about the ModelLocator here:
http://www.macromedia.com/devnet/flex/articles/cairngorm_pt2_06.html

Part 3 talks about it as well. There are 6 parts in total, currently
available here:
http://www.macromedia.com/devnet/flex/


Best,
Alex

Alex Uhlmann
Consultant (Rich Internet Applications)
Adobe Consulting
Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK
p: +44 (0) 131 338 6969
m: +44 (0) 7917 428 951 
[EMAIL PROTECTED] 


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Larry Liang
Sent: 03 April 2006 07:24
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cairngorm issue

Hi,

I'm trying to use cairngorm 2.0 design pattern to build a ria. Can
someone explain a little bit about ModelLocator. It is a new component
introduced in Cairgnorm 2. I was just wondering what it does and how
should I use it.

Thanks,

Larry











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



 




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

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

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

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





Re: [flexcoders] Re: DataGrid Find Function

2006-04-03 Thread Michael Schmalle



Hi,

Try


createSort();
var cursor:IViewCursor = myXMLListCollection.getCursor();
var values:Object = {FreeText: nameInput.text};
cursor.findFirst(values);
var mark:CursorBookmark = cursor.bookmark;
var index:int = mark.getViewIndex();

dg.selectedIndex = index;
That should work, when you use the findFirst() method if it
finds something it positions the cursor's current pointer to it. The
you use the bookmark to get the index.

Peace, Mike
On 4/3/06, mepaninaresh [EMAIL PROTECTED] wrote:



Any ideas how I can get hold of the index in order to set 
selectedIndex.

Sample code :-

createSort();
var cursor:IViewCursor = myXMLListCollection.getCursor();
var values:Object = {FreeText: nameInput.text};
cursor.findFirst(values);

Thanks for any help.

--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:

 Setting the selectedIndex should work. Then you can set the 
vPosition
 to scroll to it.
 
 Matt
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On
 Behalf Of mepaninaresh
 Sent: Friday, March 31, 2006 5:55 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] DataGrid Find Function
 
 I have implemented the find function, all works great. Is there 
any 
 way of setting the selectedIndex of the DataGrid.I want to 
highlight 
 and position?
 
 Regards,
 Naresh.
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links














--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com






  




  
  
  YAHOO! GROUPS LINKS



  Visit your group flexcoders on the web.
  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




  









-- What goes up, does come down.






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] MenuBar calling TitleWindow

2006-04-03 Thread Kleber Voigt



Hi,

How can I call a popUp from menuBar?

I try:

mx:Script![CDATA[
 import Forms.controleTempos; import mx.managers.PopUpManager;
 private function MenuHandler(oEvent:Object) {
   // Create the TitleWindow container.
 var test=Forms.[EMAIL PROTECTED]; //Forms is a folder inside my app folder
 PopUpManager.createPopUp(this, test, false);
 }
 
]]/mx:Script
mx:MenuBar id=myMenuBar labelField=@label showRoot=false x=0 y=0 width=100% change=MenuHandler(event) 
 mx:XML menuItem label=Produção
  menuItem label=Tempos de Produção data="">
 /menuItem

But don`t works e give me the 1034 error. The object cannot convert to a class.Anyone can help me?Thanks!Kleber Voigt






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] How to get the Insance of a CustomCellRendere of a DataGrid

2006-04-03 Thread Harald Dehn
Title: How to get the Insance of a CustomCellRendere of a DataGrid








Hi,

I would like to get access to the Instance of a custom cellrenderer to change the values. How could I implement the function _GetRenderer?

Thanks,

Harry


-

var myDataGrid = new DataGrid();

myDataGrid.addEventListener(ListEvent.ITEM_ROLL_OVER, _EventItem);

myDataGrid.addEventListener(ListEvent.ITEM_ROLL_OUT, _EventItem);   }


private function _EventItem(event:ListEvent):void {

 var _Renderer:MyCustomCellRenderer = _GetRender(event.rowIndex);

 if( _Renderer != null ) {

  switch( event.type ) {

   case ListEvent.ITEM_ROLL_OVER:

_Renderer.Icon.visible = true; // MyCustomCellRenderer has a public property Icon

break;

   case ListEvent.ITEM_ROLL_OUT:

_Renderer.Icon.visible = false;

break;

  }

 }

}

private function _GetRenderer(rowIndex:int):MyCustomCellRenderer {

 ???

}







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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Variable passing between Flex and ASP

2006-04-03 Thread vyasajay
 Hi,
I have created basic login page in Flex 2.0.
I am trying to send username and password to ASP page which is
happening and i can trace the variables. I am not able to send
variable back to Flex. I do not know command to read it back in Flex.
Find below the AS function written in the Flex mxml file:

// variable to store result from ASP page..
var success:String;

// Function to send variables to ASP page..
function fnSendData():void
{
var secondsUTC:Number = new Date().time;
var dataXml:XML =
logintime{secondsUTC}/timeusername{userName.text}/usernamepassword{pass.text}/password/login;

var url:String = http://localhost/flex/workplace/login.asp;;
var request:URLRequest = new URLRequest(url);
var variables:URLVariables = new URLVariables();
variables.exampleSessionId = new Date().getTime();
variables.dataXML = dataXml;
request.data = variables;
sendToURL(request);
}

I am sending the sucess variable back using following ASP code:
Response.Write success=true

Regards,
Ajay







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

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

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

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




Re: [flexcoders] [OT] Developing/Compiling Java in Flexbuilder 2

2006-04-03 Thread Claudia Barnal
Matt, you are right. It might be overkill including the whole thing,
but why not provide some friendly and helpful instructions on how
create different development setups with the required
plugins/downloads. I think most of us would find that a time saver,
plus you get the benefit of letting Flex newcomers know that they can
develop Java (and others) in the same IDE. I'm sure most of them would
find that very attractive.

See, now you have a new sales pitch for Flex(builder) 2 :)

Thanks,
Claudia

On 4/2/06, Matt Chotin [EMAIL PROTECTED] wrote:
 Do you guys really want the installer to grow by that much more?  I
 think it's fine if we want to include docs on how to download Eclipse,
 but I'm not sure you really want Adobe re-bundling the Java IDE in its
 own installer.  I suppose we could make the installer more clear to say
 when you're selecting what to install that you should do the plugin if
 you want to develop Java also.  But I think it's probably not a great
 idea for us to include the JDT itself.




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

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

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

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





[flexcoders] Opportunities for Flex Wizards in India office of US-based networking startup

2006-04-03 Thread talent
Guavus is a development-stage, well-capitalized startup in network security and
monitoring, focussing on building the its flagship product, based on
patent-pending technology.  As a part of its expansion plans, Guavus has built
its first research and development center outside US, in Gurgaon, India.

Guavus is now seeking energetic team players (pilot batch) who can
execute on our vision for making the Internet a safer place.  We want
creative and talented engineers who take pride in designing elegant
solutions to complex problems and deeply care about making an impact.

You will work with a stellar team (IITans), and build a Flex-based presentation
layer for a truly unique distributed network monitoring infrastructure that can
analyze petabytes of network-wide data in seconds (think Google for all
Internet traffic).  As Flex Wizard, you will design and build ground-breaking
graphical interfaces that will allow operators to understand and manage their
networks.  You will work with powerful and intelligent interface design
algorithms, and new technology such as Flex, Flash, and AJAX-related tools.

So, if you are looking for challenging, demanding and rewarding work, we
encourage you to apply.

All candidates must have:
 + excellent analytical skills,
 + excellent english communication skills,
 + a can-do attitude,
 + ability to quickly master new technologies.
 + 3+ years of relevant experience (work, school projects, research, etc)
In addition, you must be an expert web developer, excited by
aesthetics, by rich internet apps, by Flex (we certainly are!), by google maps.
You must also be a strong javascript programmer.

For the right candidates, Guavus will offer generous, and rewarding compensation
packages, including better-than-best of salaries (depending on experience and
skillset), attractive stock option offerings,
vacation and holiday pay, and most importantly, a fun, intellectually
stimulating atmosphere, conducive to both career and personal growth.

There will always be a big company to work for when you are old or
lack the energy, but the opportunity to build one doesn't come along
every day.  So if you are looking for a rewarding and unique career at
a promising startup, where you can profit both financially and intellectually,
email a resume and a cover letter to: talent at guavus dot com.



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

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

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

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




RE: Re: [flexcoders] Code formatter for action script

2006-04-03 Thread Dimitrios Gianninas





Hi Michael,

I agree with you that self-formatting is important, leads 
to readable code (its not the only thing that leads to more readable code, but 
it helps)... however when you are working in a team and other people don't 
properly format their code and you want to quickly correct it, a build-in 
formatter is great. Then you can go slap the other developer on his hands 
:)

Dimitrios 
Gianninas
RIADeveloper
Optimal 
Payments Inc.



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Michael 
SchmalleSent: Sunday, April 02, 2006 9:10 PMTo: 
flexcoders@yahoogroups.comSubject:  Re: [flexcoders] Code 
formatter for action script
Hi,This is just my opinion;I have a project I am 
working on that has over 50 classes/interfaces and counting, I have written this 
all myself. My advice;When you create classes/interfaces, methods and 
properties, format them manually and don't rely on code formatters. Hey, 
some will laugh at me for saying this but, it produces better code. Mark my 
words it does. You tend to find mistakes quicker and after you have exercised 
you formatting routine enough you find yourself formatting as your 
write.You will also find yourself taking much more pride in the way your 
code looks and know exactly how it got that way, becasue you did it.It's 
also a good way to get in the habit of writting really good documenting 
comments. I don't mean inline but, api doc comments.Just the 2 cent 
here. Peace, Mike
On 4/2/06, bkeinan 
[EMAIL PROTECTED] 
wrote:

  Hi all,I am working on a big project 
  using flex for building the client side. We use the flex builder/SEPY for 
  writing teh action scrip but none of them support good code formating that 
  allows you to define the way you want the code to look like (like in the 
  juva plug in of eclipse). Do any of you knows a good code formatter for 
  action script (free or 
  not)?Thanks,Benny--Flexcoders 
  Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  
  
  
  YAHOO! GROUPS LINKS 
  
Visit your group "flexcoders" on the web. 
To unsubscribe from this group, send an email 
to: [EMAIL PROTECTED] 

Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service. 
  
  
  -- What goes up, does 
come down. 






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] How to get the Insance of a CustomCellRendere of a DataGrid

2006-04-03 Thread Dirk Eismann
Hi,
 
try it the other way round: implement the logic in your cell renderer
class. If your renderer implements
mx.controls.listClasses.IDropInListItemRenderer you can easily setup
listeners for the ListEvent on the parent:

// custom cell renderer snippet
public function set listData(value:BaseListData):void
{
  if (!setup)
  {  
value.owner.addEventListener(ListEvent.ITEM_ROLL_OVER, listEvent);
value.owner.addEventListener(ListEvent.ITEM_ROLL_OUT, listEvent);
setup = true;
  }
}

private function listEvent(event:ListEvent):void
{
  // your stuff here
}

Dirk.





From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Harald Dehn
Sent: Monday, April 03, 2006 2:28 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to get the Insance of a
CustomCellRendere of a DataGrid


Hi,

I would like to get access to the Instance of a custom
cellrenderer to change the values. How could I implement the function
_GetRenderer?

Thanks,

Harry


-

var myDataGrid = new DataGrid();

myDataGrid.addEventListener(ListEvent.ITEM_ROLL_OVER,
_EventItem);

myDataGrid.addEventListener(ListEvent.ITEM_ROLL_OUT,
_EventItem);   }


private function _EventItem(event:ListEvent):void {

var _Renderer:MyCustomCellRenderer =
_GetRender(event.rowIndex);

if( _Renderer != null ) {

switch( event.type ) {

case ListEvent.ITEM_ROLL_OVER:

_Renderer.Icon.visible = true;
// MyCustomCellRenderer has a public property Icon

break;

case ListEvent.ITEM_ROLL_OUT:

_Renderer.Icon.visible = false;

break;

}

}

}

private function _GetRenderer(rowIndex:int):MyCustomCellRenderer
{

???

}



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




SPONSORED LINKS 
Web site design development
http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+
site+design+developmentw2=Computer+software+developmentw3=Software+des
ign+and+developmentw4=Macromedia+flexw5=Software+development+best+prac
ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software
development
http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=We
b+site+design+developmentw2=Computer+software+developmentw3=Software+d
esign+and+developmentw4=Macromedia+flexw5=Software+development+best+pr
acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw   Software design and
development
http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=
Web+site+design+developmentw2=Computer+software+developmentw3=Software
+design+and+developmentw4=Macromedia+flexw5=Software+development+best+
practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ 
Macromedia flex
http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+
developmentw2=Computer+software+developmentw3=Software+design+and+deve
lopmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=1
66.sig=OO6nPIrz7_EpZI36cYzBjw Software development best
practice
http://groups.yahoo.com/gads?t=msk=Software+development+best+practice;
w1=Web+site+design+developmentw2=Computer+software+developmentw3=Softw
are+design+and+developmentw4=Macromedia+flexw5=Software+development+be
st+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw  



YAHOO! GROUPS LINKS 


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







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

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

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

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





Re: [flexcoders] Code formatter for action script

2006-04-03 Thread bkeinan
Hi Guys,

Couple of words about code style. When developing a project in a 
team, and it is not important the tool you are using (Java AS etc), 
setting a standard code style and not only comments,makes it much 
easier for one developer to read another developer code.
the code becomes much more maintainable readable and most of the 
time even better. Some of the code style rules ment to prevent all 
kind of problems that when not using them you might find yourself 
writing bad code.
All of the above becomes much more important and relevant when the 
team is getting larger and the project contains thousand of files...

Still looking for the code formatter :-)
Thanks,
Benny

--- In flexcoders@yahoogroups.com, Dimitrios Gianninas 
[EMAIL PROTECTED] wrote:

 Hi Michael,
  
 I agree with you that self-formatting is important, leads to 
readable
 code (its not the only thing that leads to more readable code, but 
it
 helps)... however when you are working in a team and other people 
don't
 properly format their code and you want to quickly correct it, a
 build-in formatter is great. Then you can go slap the other 
developer on
 his hands :)
  
 Dimitrios Gianninas
 RIA Developer
 Optimal Payments Inc.
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Michael Schmalle
 Sent: Sunday, April 02, 2006 9:10 PM
 To: flexcoders@yahoogroups.com
 Subject:  Re: [flexcoders] Code formatter for action script
 
 
 Hi,
 
 This is just my opinion;
 
 I have a project I am working on that has over 50 
classes/interfaces and
 counting, I have written this all myself. My advice;
 
 When you create classes/interfaces, methods and properties, format 
them
 manually and don't rely on code formatters. 
 
 Hey, some will laugh at me for saying this but, it produces better 
code.
 Mark my words it does. You tend to find mistakes quicker and after 
you
 have exercised you formatting routine enough you find yourself
 formatting as your write.
 
 You will also find yourself taking much more pride in the way your 
code
 looks and know exactly how it got that way, becasue you did it.
 
 It's also a good way to get in the habit of writting really good
 documenting comments. I don't mean inline but, api doc comments.
 
 Just the 2 cent here. 
 
 Peace, Mike
 
 
 On 4/2/06, bkeinan [EMAIL PROTECTED] wrote: 
 
   Hi all,
   
   I am working on a big project using flex for building the 
client
 side. 
   We use the flex builder/SEPY for writing teh action scrip but
 none of 
   them support good code formating that allows you to define 
the
 way you 
   want the code to look like (like in the juva plug in of
 eclipse). 
   Do any of you knows a good code formatter for action script
 (free or 
   not)?
   
   Thanks,
   Benny
   
   
   
   
   
   --
   Flexcoders Mailing List
   FAQ:
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
   
   
   
 
 
   YAHOO! GROUPS LINKS 
 
 
   
   *Visit your group flexcoders
 http://groups.yahoo.com/group/flexcoders  on the web.
 
   *To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
subject=Unsubscribe 
 
   *Your use of Yahoo! Groups is subject to the Yahoo!
 Terms of Service http://docs.yahoo.com/info/terms/ . 
 
 
 
 
 
 
 
 -- 
 What goes up, does come down. 
 
 --
 Flexcoders Mailing List
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 
 
 
 
 SPONSORED LINKS 
 Web site design development
 http://groups.yahoo.com/gads?
t=msk=Web+site+design+developmentw1=Web+
 
site+design+developmentw2=Computer+software+developmentw3=Software+
des
 
ign+and+developmentw4=Macromedia+flexw5=Software+development+best+p
rac
 ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ   Computer software
 development
 http://groups.yahoo.com/gads?
t=msk=Computer+software+developmentw1=We
 
b+site+design+developmentw2=Computer+software+developmentw3=Softwar
e+d
 
esign+and+developmentw4=Macromedia+flexw5=Software+development+best
+pr
 acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software 
design and
 development
 http://groups.yahoo.com/gads?
t=msk=Software+design+and+developmentw1=
 
Web+site+design+developmentw2=Computer+software+developmentw3=Softw
are
 
+design+and+developmentw4=Macromedia+flexw5=Software+development+be
st+
 practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ   
 Macromedia flex
 http://groups.yahoo.com/gads?
t=msk=Macromedia+flexw1=Web+site+design+
 
developmentw2=Computer+software+developmentw3=Software+design+and+d
eve
 

RE: Re: [flexcoders] Code formatter for action script

2006-04-03 Thread Mika Kiljunen










You are right Benny. But it is also nice
that the tool you are working with can change the formatting on the fly. This
way each developer can use the view they are used to. Thats the way it
should work J 

To use strict code formatting is ok, but I
vote for personalization on this one. There are people who code really strange
looking code, so it is nice to format it to my liking before I start to read it...



-Mika











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bkeinan
Sent: 3. huhtikuuta 2006 16:00
To: flexcoders@yahoogroups.com
Subject:  Re: [flexcoders]
Code formatter for action script





Hi Guys,

Couple of words about code style. When developing
a project in a 
team, and it is not important the tool you are
using (Java AS etc), 
setting a standard code style and not only
comments,makes it much 
easier for one developer to read another developer
code.
the code becomes much more maintainable readable
and most of the 
time even better. Some of the code style rules
ment to prevent all 
kind of problems that when not using them you
might find yourself 
writing bad code.
All of the above becomes much more important and
relevant when the 
team is getting larger and the project contains
thousand of files...

Still looking for the code formatter :-)
Thanks,
Benny

--- In flexcoders@yahoogroups.com, Dimitrios
Gianninas 
[EMAIL PROTECTED] wrote:

 Hi Michael,
 
 I agree with you that self-formatting is
important, leads to 
readable
 code (its not the only thing that leads to more
readable code, but 
it
 helps)... however when you are working in a
team and other people 
don't
 properly format their code and you want to
quickly correct it, a
 build-in formatter is great. Then you can go
slap the other 
developer on
 his hands :)
 
 Dimitrios Gianninas
 RIA Developer
 Optimal Payments Inc.
 
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Michael Schmalle
 Sent: Sunday, April 02, 2006 9:10 PM
 To: flexcoders@yahoogroups.com
 Subject:  Re: [flexcoders] Code
formatter for action script
 
 
 Hi,
 
 This is just my opinion;
 
 I have a project I am working on that has
over 50 
classes/interfaces and
 counting, I have written this all myself. My
advice;
 
 When you create classes/interfaces, methods
and properties, format 
them
 manually and don't rely on code formatters. 
 
 Hey, some will laugh at me for saying this
but, it produces better 
code.
 Mark my words it does. You tend to find
mistakes quicker and after 
you
 have exercised you formatting routine enough
you find yourself
 formatting as your write.
 
 You will also find yourself taking much more
pride in the way your 
code
 looks and know exactly how it got that way,
becasue you did it.
 
 It's also a good way to get in the habit of
writting really good
 documenting comments. I don't mean inline
but, api doc comments.
 
 Just the 2 cent here. 
 
 Peace, Mike
 
 
 On 4/2/06, bkeinan [EMAIL PROTECTED] wrote:

 
  Hi all,
  
  I am working
on a big project using flex for building the 
client
 side. 
  We use the
flex builder/SEPY for writing teh action scrip but
 none of 
  them support
good code formating that allows you to define 
the
 way you 
  want the code
to look like (like in the juva plug in of
 eclipse). 
  Do any of you
knows a good code formatter for action script
 (free or 
  not)?
  
  Thanks,
  Benny
  
  
  
  
  
  --
  Flexcoders
Mailing List
  FAQ:
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search
Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com

  
  
  
 
 
  YAHOO! GROUPS
LINKS 
 
 
 
 
 
* Visit your group flexcoders
 http://groups.yahoo.com/group/flexcoders
 on the web.
 
  
 
* To unsubscribe from this group, send an email
to:
 
  [EMAIL PROTECTED]

mailto:[EMAIL PROTECTED]
subject=Unsubscribe 
 
  
 
* Your use of Yahoo! Groups is subject to the
Yahoo!
 Terms of Service http://docs.yahoo.com/info/terms/
. 
 
 
 
 
 
 
 
 -- 
 What goes up, does come down. 
 
 --
 Flexcoders Mailing List
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com

 
 
 
 
 SPONSORED LINKS 
 Web site design development
 http://groups.yahoo.com/gads?
t=msk=Web+site+design+developmentw1=Web+
 
site+design+developmentw2=Computer+software+developmentw3=Software+
des
 
ign+and+developmentw4=Macromedia+flexw5=Software+development+best+p
rac

ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ
 Computer software
 development
 http://groups.yahoo.com/gads?
t=msk=Computer+software+developmentw1=We
 
b+site+design+developmentw2=Computer+software+developmentw3=Softwar
e+d
 
esign+and+developmentw4=Macromedia+flexw5=Software+development+best
+pr
 acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw
 Software 
design and
 development
 http://groups.yahoo.com/gads?

AW: [flexcoders] How to get the Insance of a CustomCellRendere of a DataGrid

2006-04-03 Thread Harald Dehn










Works fine, thanks for
your help.











Von:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von Dirk Eismann
Gesendet: Montag, 3. April 2006
14:46
An: flexcoders@yahoogroups.com
Betreff: RE: [flexcoders] How to
get the Insance of a CustomCellRendere of a DataGrid





Hi,

try it the other way round: implement the logic in
your cell renderer
class. If your renderer implements
mx.controls.listClasses.IDropInListItemRenderer
you can easily setup
listeners for the ListEvent on the parent:

// custom cell renderer snippet
public function set
listData(value:BaseListData):void
{
 if (!setup)
 { 

value.owner.addEventListener(ListEvent.ITEM_ROLL_OVER, listEvent);

value.owner.addEventListener(ListEvent.ITEM_ROLL_OUT, listEvent);
 setup = true;
 }
}

private function listEvent(event:ListEvent):void
{
 // your stuff here
}

Dirk.





 From:
flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of
Harald Dehn
 Sent: Monday, April
03, 2006 2:28 PM
 To: flexcoders@yahoogroups.com
 Subject:
[flexcoders] How to get the Insance of a
CustomCellRendere of a DataGrid
 
 
 Hi,

 I would like to get
access to the Instance of a custom
cellrenderer to change the values. How could I
implement the function
_GetRenderer?

 Thanks,

 Harry



-

 var myDataGrid =
new DataGrid();


myDataGrid.addEventListener(ListEvent.ITEM_ROLL_OVER,
_EventItem);

 myDataGrid.addEventListener(ListEvent.ITEM_ROLL_OUT,
_EventItem);
}


 private function
_EventItem(event:ListEvent):void {


 var _Renderer:MyCustomCellRenderer =
_GetRender(event.rowIndex);


 if( _Renderer != null ) {



switch( event.type ) {



case ListEvent.ITEM_ROLL_OVER:



_Renderer.Icon.visible = true;
// MyCustomCellRenderer has a public property Icon



break;



case ListEvent.ITEM_ROLL_OUT:



_Renderer.Icon.visible = false;



break;



}


 }

 }

 private function
_GetRenderer(rowIndex:int):MyCustomCellRenderer
{


 ???

 }

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

 
 
 
 
 SPONSORED LINKS 
 Web site design
development
http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+
site+design+developmentw2=Computer+software+developmentw3=Software+des
ign+and+developmentw4=Macromedia+flexw5=Software+development+best+prac
ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ
 Computer software
development
http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=We
b+site+design+developmentw2=Computer+software+developmentw3=Software+d
esign+and+developmentw4=Macromedia+flexw5=Software+development+best+pr
acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw
 Software design and
development
http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=
Web+site+design+developmentw2=Computer+software+developmentw3=Software
+design+and+developmentw4=Macromedia+flexw5=Software+development+best+
practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ
 
 Macromedia flex
http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+
developmentw2=Computer+software+developmentw3=Software+design+and+deve
lopmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=1
66.sig=OO6nPIrz7_EpZI36cYzBjw
 Software development best
practice
http://groups.yahoo.com/gads?t=msk=Software+development+best+practice
w1=Web+site+design+developmentw2=Computer+software+developmentw3=Softw
are+design+and+developmentw4=Macromedia+flexw5=Software+development+be
st+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw
 



 YAHOO! GROUPS LINKS




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

  

* To unsubscribe from this group, send an email
to:

 [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]


  

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













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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  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] Beyond Confused (Please Help)- Flex 2 Beta 2 - HTTPService XML

2006-04-03 Thread David Terry
Jason,

That was perfect.  Thank you for taking the time to explain the situation.

Best regards,
~David T.
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jason 
Hawryluk
Sent: Friday, March 31, 2006 4:23 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Beyond Confused (Please Help)- Flex 2 Beta 2 - 
HTTPService  XML

Ok on the tree the label field has to be the same name for all nodes, if you 
take a look in the docs for labelField every example has the same field name 
for the tree control.

you need to get your xml output looking like. The tree does not know how to 
properly display arbitrary xml elements.

Employee label=Lynn Tsoflias otherinfo1=
SalesTerritory label=Australia otherinfo1=
SalesPerson label=36 otherinfo1=
/SalesPerson
/SalesTerritory
/Employee

Employee label=José Saraiva otherinfo1=
SalesTerritory label=Canada otherinfo1=
SalesPerson label=31 otherinfo1=
/SalesPerson
/SalesTerritory
/Employee

Use attributes and when the user selects get at the id's with the @label type 
of call to the selected item

so [EMAIL PROTECTED] gives you your info for example.

or i think the tree is better user like this

private function labelFormater(curritem:XML):String{
return curritem.name();
}

mx:Tree change=handleChange(event) width=100% height=250 id=xmltree
labelFunction=labelFormater  dataProvider={MyDS2}/mx:Tree

Then you display the element children in your list

private function handleChange(event:Event):void{
testtree.dataProvider = event.currentTarget.selectedItem; }

mx:DataGrid id=testtree dataProvider={rawXML.result.ROOT.row}
height=300 /

Think of the tree as selecting sales people or territory then the grid as 
people in that territory. Or some other variant like that.

Of course that all depends on what you goal is :)

In my tree's I never did it this way i have always used attributes for a tree 
structure. So you have this or a label function but a label function will still 
not give what you want, better off trying to get you format eatable for flex.

It has to be the same value label for each node or a labelfunction.

In the case of the grid you can't as far as I know get at the nested elements 
just using the dataField, it sure as heck would be handy though.

So your going to need to create a itemrenderer action script class. These are 
well documented and you better to get your head around them asap.

extending components and building renderers I find are a big part of developing 
in Flex.

sorry i could not be of more help

jason




-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] la part de David 
Terry Envoyé : vendredi 31 mars 2006 23:17 À : flexcoders@yahoogroups.com Objet 
: RE: [flexcoders] Beyond Confused (Please Help)- Flex 2 Beta 2 - HTTPService  
XML


I tried compressing the entire project folder but I guess it was to big - it 
got kicked back and it was under 1 MB - pfff.  I am just sending the 2 MXML and 
XML files.  You should be able to add them to any project.

~David T.




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jason 
Hawryluk
Sent: Friday, March 31, 2006 2:57 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Beyond Confused (Please Help)- Flex 2 Beta 2 - 
HTTPService  XML


and the sample project
-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] la part de David 
Terry Envoyé : vendredi 31 mars 2006 22:48 À : flexcoders@yahoogroups.com Objet 
: RE: [flexcoders] Beyond Confused (Please Help)- Flex 2 Beta 2 - HTTPService  
XML


Okay...  This is what I'm trying to understand.  So if my XML returns 'child' 
elements I can't use it in a DataGrid.  I found using FOR XML RAW handy for the 
DataGrid because I can get to all nested elements - essentially it returns rows.

But what about the Tree control - it expects a hierarchical data right?

I'm getting some very strange results with the Tree control bound a 
dataProvider of dataProvider={MyDS}.

I'll attach a screenshot but I don't know if it will work.

~David T.





From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jason 
Hawryluk
Sent: Friday, March 31, 2006 2:22 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Beyond Confused (Please Help)- Flex 2 Beta 2 - 
HTTPService  XML


Ya Territory that's one level deeper. In the grid I just tried to do 
dataField=Element.childElement as well it did not work, but it did not 
explode either. I think your going to have to get your hands dirty with a 
cellrenderer to do that in a grid.

Binding this to a form would be a synch but a datafield I'm not sure if you can.

Hopefully someone else will shed some light. It certainly would be handy to be 
able to bind nested elements from multiple levels to a grid.

Jason

-Message d'origine-
De : 

[flexcoders] Re: How to create mxml component insdie a package .

2006-04-03 Thread parinda_b_patel
Thanks. You were right it was some brace which was commented by
mistake when I was debugging. It resolved that error .

--- In flexcoders@yahoogroups.com, Peter Hall [EMAIL PROTECTED] wrote:

 Just put the MXML file in the corresponding directory src/xx/yy/.
You don't
 have to do anything else.
 
 The error you are getting sounds like you have some mis-matched braces
 somewhere.
 
 
 Peter
 
 
 On 4/2/06, parinda_b_patel [EMAIL PROTECTED] wrote:
 
  I have an mxml file which I want to put under package xx.yy . Is there
  a way to do this. Physically the file is located inside folder yy
  which is insdie folder xx. I have a function which I want to make
  public so I wrote like this :
 
 
  public function xyz{
 
  }
 
  When I compile this file using flex builder 2 plugin for Eclipse it
  gives me error 'public' attribute may only be used inside a package.
  So I am assuming that somehow compiler is not able to understand the
  packaging or I guess I am making some mistake.
 
  please help
  Thanks
 
 
 
 
 







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

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

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

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




[flexcoders] What happened to Iteration:Two Site?

2006-04-03 Thread Wally Randall
I have been trying to get throught to Iteration:Two all weekend.  They 
are back up but most of the site is disabled.  What has happened?  I 
want to get the Cairngorm 2 Alpha for testing.

http://www.iterationtwo.com/open_source_cairngorm.html





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

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

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

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




[flexcoders] attachMovie() Flex equiv?

2006-04-03 Thread bclinkinbeard
Hello all,

Very new to Flex development and am having a hard time figuring out how
you can create interfaces that aren't completely component based. Is
there a Flex equivalent to attachMovie()? The only info I have found
talks about loading a library swf and then using Embed to grab a
particular symbol by doing something like my.swf#symbolName. Is this the
only way? Is this the best way? Seems like it would be quite a pain if
you had a library swf with 50 symbols you wanted to be able to load in
and access.

Any help is appreciated.

Thanks,
Ben






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

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

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

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




[flexcoders] Re: Problems with tree selectedNode - Flex 2

2006-04-03 Thread pasflex
Thanks Matt.

Few more things I found recently:

1.  If you drag a node that has been set using selectedNode and you 
try something like this in a dragEnter handler:
var treeItems:Array = event.dragSource.dataForFormat(treeItems) as 
Array;
you get a 'null has no properties error'.

2.  If enabled is set to false on the tree it still dispatches 
itemClicks.

3.  If you create a TextInput with enabled=false and then set it 
to true later it becomes enabled but retains the 
disabledBackgroundColor.


--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:

 I think we just fixed the first issue internally, I'll forward on 
the
 issue about it remaining highlighted.
 
 Matt
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of pasflex
 Sent: Friday, March 31, 2006 8:32 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Problems with tree selectedNode - Flex 2
 
 I'm seeing some odd behavior when using the selectedNode property 
of 
 the tree to return to a node in a tree or it's quite possible that 
 I'm not using it correctly.
 
 The first issue is that if there are identical nodes in different 
 branchs of the tree visible setting selectedNode will just go the 
 first node.  Run the example code below, but first open the 'dir1' 
 branch before clicking the button to see this behavior, it works 
as 
 expected if the 'dir1' branch is closed.
 
 The second thing is that when selectedNode is set and another 
 element of the tree is selected the selectedNode remains 
highlighted 
 until you mouse over it.
 
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
 creationComplete=initTree()
  mx:XML id=xml
   node label=root
node label=dir1
 node label=file1/
/node
node label=dir2
 node label=file1/
/node
   /node 
  /mx:XML
  mx:Tree id=t1 labelField=@label showRoot=false 
width=200 /
  mx:Button label=Select Node click=selectNode()/
  mx:Script
   ![CDATA[
import mx.collections.XMLListCollection;
import mx.collections.XMLList;
private function initTree():void
{
 t1.dataProvider = new XMLListCollection(new XMLList(xml));
}
   
private function selectNode():void
{
 t1.setIsOpen(t1.getNodeDisplayedAt(0), true);
 t1.setIsOpen(t1.getNodeDisplayedAt(0).children()[1], true);
 t1.selectedNode = t1.dataProvider.children()[0].children()
 [1].children()[0];
}
   ]]
  /mx:Script
 /mx:Application
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links







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

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

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

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




[flexcoders] Re: What happened to Iteration:Two Site?

2006-04-03 Thread rodneyjlucas
I have been trying since late last week...

--- In flexcoders@yahoogroups.com, Wally Randall [EMAIL PROTECTED]
wrote:

 I have been trying to get throught to Iteration:Two all weekend.  They 
 are back up but most of the site is disabled.  What has happened?  I 
 want to get the Cairngorm 2 Alpha for testing.
 
 http://www.iterationtwo.com/open_source_cairngorm.html







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

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

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

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




[flexcoders] Re: Modal popup problem - Flex 1.5

2006-04-03 Thread mrmcfeely8
Let it be known... Peter Watson is my hero!

Works like a charm... thanks Peter!

--- In flexcoders@yahoogroups.com, Peter Watson [EMAIL PROTECTED] wrote:

 This is a known focus issue, I think there's a knowledge base article
 somewhere but I can't seem to locate it right now.
 
 Basically the alert popup doesn't get activated with the System Manager
 and can't receive tab focus.
 
  
 
 The workaround is to launch the alert in a function, use a doLater() and
 then active the popup.
 
  
 
  
 
 Here's an example:
 
  
 
 ?xml version=1.0 encoding=utf-8?
 
 mx:TitleWindow xmlns:mx=http://www.macromedia.com/2003/mxml;
 title=Pop closeButton=true click=this.deletePopUp();
 
  
 
 mx:Script
 
 ![CDATA[
 
 import mx.managers.SystemManager;
 
 var myAlert;
 
  
 
 function showAlrt(){
 
 myAlert =
 mx.controls.Alert.show('Try hitting tab or
 enter','Alert',mx.controls.Alert.YES|mx.controls.Alert.NO);
 
 doLater(this, fixfocus);
 
 }
 
 function fixfocus(){
 
 SystemManager.activate(myAlert);
 
 }
 
 ]]
 
 /mx:Script
 
 
 
 mx:Button label=Show Alert click=showAlrt()/
 
  
 
 /mx:TitleWindow
 
  
 
  
 
 - pw
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of mrmcfeely8
 Sent: Friday, March 31, 2006 11:16 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Modal popup problem - Flex 1.5
 
  
 
 Here's some sample code that will illustrate the problem:
 
 /
 testApp.mxml
 /
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
   creationComplete=beginTheChaos()
 
   mx:Script
 ![CDATA[
   function beginTheChaos(){
 mx.managers.PopUpManager.createPopUp(this,
 testPopup, true,
 undefined);
   }
 ]]
   /mx:Script
 /mx:Application
 
 
 /
 testPopup.mxml
 /
 ?xml version=1.0 encoding=utf-8?
 mx:TitleWindow xmlns:mx=http://www.macromedia.com/2003/mxml;
   mx:Form id=testForm defaultButton=submitButton
 mx:FormItem width=100% label=Field 1
   mx:TextInput id=field1 tabIndex=1 /  
 /mx:FormItem
 mx:FormItem width=100% label=Field 2
   mx:TextInput id=field2 tabIndex=2 /  
 /mx:FormItem
 mx:FormItem width=100% label=Field 3
   mx:TextInput id=field3 tabIndex=3 /  
 /mx:FormItem
   /mx:Form
   mx:ControlBar width=100% horizontalAlign=center
 mx:Button label=Submit click=mx.controls.Alert.show('Try
 hitting
 tab or enter','Screwed
 up...',mx.controls.Alert.YES|mx.controls.Alert.NO, MovieClip(_root),
 undefined, undefined, mx.controls.Alert.YES); id=submitButton /
   /mx:ControlBar
 /mx:TitleWindow
 
 
 Anyone with any thoughts on this?
 
 
 --- In flexcoders@yahoogroups.com, mrmcfeely8
 dougkeen+flexcoders@ wrote:
 
  I'm running into a problem that's driving me insane:
  
  If you open a modal popup from a modal popup, it seems like all key
  strokes are captured by the *first* popup, not the top-most popup.
  
  For example, create a modal popup containing a form, and open another
  modal popup with a form from the first popup.  If you were to hit TAB
  to cycle through fields on the top-most popup, you'd find that it
  would actually cycle through the fields on the underlying popup!
  
  The specific situation that I'm running into is with a popup that
  contains a form, and if you try submitting that form and there are
  validation errors, a basic Alert is shown notifying the user that
  errors still exist.  The problem occurs when the user hits ENTER to
  try and close that Alert.  Rather than simulating a click on the
  Alert's default button, it actually simulates a click on the
  underlying Form's default button, which in turn opens up another
 Alert!!!
  
  Any ideas?  Anyone else run into this problem?
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 
 
 
 
 SPONSORED LINKS 
 
 Web site design development
 http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+
 site+design+developmentw2=Computer+software+developmentw3=Software+des
 ign+and+developmentw4=Macromedia+flexw5=Software+development+best+prac
 ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ  
 
 Computer software development
 http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=We
 

Re: [flexcoders] Run shortcut

2006-04-03 Thread Jason Y. Kwong



I go to the Modify tab of the Keys preferences screen and do this:- select Run/Debug from Category dropdown- select Run Flex Application from Name dropdown- click the Name edit box under the Key Sequence section
- press the key-combo I want (eg. Ctrl-Enter)- click Add then click Ok.This worked for me just fine.On 4/1/06, Stefan Richter 

[EMAIL PROTECTED] wrote:






Anyone got any luck with this? I seem to be unable to set 
up a working shortcut for Run...



  
  
  From: flexcoders@yahoogroups.com 
  [mailto:flexcoders@yahoogroups.com] On Behalf Of Stefan 
  RichterSent: 29 March 2006 15:54To: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Run 
  shortcut
  
  I am having trouble configuring a keyboard shortcut for 
  'Run'. The preferences suggest that Ctrl-F11 should work but it doesn't for me 
  and neither do any newly configured ones. 
  Could someone walk me though this? I kinda fancy 
  Ctrl-Enter as my shortcut to run my app (Ctrl-Shift-enter for debugging) from 
  either design or code view.
  
  How is it done? I managed to set this up in Eclipse but 
  in FB2 it's a no go for me.
  
  Alt+Shift+X also seems to do something but apart from pop 
  up a little panel in the bottom right that's dead also.
  
  Stefan






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt


Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com










  
  
SPONSORED LINKS
  
  
  



Web site design development
  
  


Computer software development
  
  


Software design and development
  
  




Macromedia flex
  
  


Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group flexcoders on the web.


  To unsubscribe from this group, send an email to:

[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service

.



  
















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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Re: Few issues

2006-04-03 Thread angelosalsa

Thanks Matt,
It is a typo, it was http://192.168.1.103/flex2gateway/
I was trying other stuff to make it work and I copied the wrong thing.
the above though still doesn't work Any ideas?

About functions and methods, what I mean is every example I've seen 
for the tree shows when you click on the the tree node the label show 
you've click on something, nothing was shown of how to load other 
mxml file or fire up events or functions, 
I've played around with the menubar and now I figured it out, but I 
cant seem to figure the tree yet, I will try again tonight maybe I 
will have a better luck after a good sleep. 
Thanks again


--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:

 Well the 80{context.root} in your flex-enterprise-services.xml file
 looks wrong to me, is that a typo?
 
 You can refer to items in a ViewStack by id as long as they have 
been
 created.  Or you could tell the ViewStack to change its 
selectedIndex
 for example when you click on a Tree node.
 
 I'm not sure what you mean by load methods from the Tree and 
MenuBar.  
 
 Matt
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of angelosalsa
 Sent: Friday, March 31, 2006 8:21 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Few issues
 
 Please note, The 2nd Issue was resolved, if someone needs help on 
 that, please post and I will try to document what I did...
 1st issue is driving me nuts...
 3nd issue, also how can we load methods() from the Tree and MenuBar
 Angelo 
 
 
 --- In flexcoders@yahoogroups.com, angelosalsa angelosalsa@ 
 wrote:
 
  Hi all.,
  1st issue: 
  My remoteobjects and webservices work fine from my local server 
but 
  when I try to access the site from the outside world, I get only 
 the 
  hourglass loading with no errors but nothing shows,
  My crossdomain is in both C:\Inetpub\wwwroot\crossdomain.xml and 
  incase C:\CFusionMX7\wwwroot\crossdomain.xml, here is what the 
  crossdomain file look like. 
  ?xml version=1.0?
  !DOCTYPE cross-domain-policy 
  SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-
policy.dtd
  cross-domain-policy
  allow-access-from domain=* /
  /cross-domain-policy
  My local host is running on http://192.168.1.103:8701 and the 
  flexenterprise-services.xml has this: 
  endpoint uri=http://192.168.1.103:80
{context.root}/flex2gateway/ 
  all my components and services are in 
  C:\Inetpub\wwwroot\CFIDE\components\...
  any ideas? 
  2nd issue:
  My Application have many components on right hand of the App. I 
 have 
  an Accordion that has a TabNavigator and in the TabNavigator I 
have 
  a component that search the database for employees, right now the 
  result is bind to a TileList with a listItemRenderer, in that 
  component 'detail State', what i want to do is: insted of the 
 result 
  getting back to the TileList, I would like to bind this 
  ArrayCollection to another component 'empDetails.mxml' DataGrid 
  which is on the mainApp as ns1:empDetails /
  I played around with loose coupling but on my matter it doesnt 
look 
  like it would work unless I can make the ArrayCollection as a 
 public 
  object MAYBE!
  Right now this is how I am getting back the results: 
  --empSearch.mxml--
  mx:ArrayCollection id=searchResults 
  source={mx.utils.ArrayUtil.toArray
 (EmployeeService.search.result)}
  /mx:ArrayCollection
  Also played aroung with Calling component but I couldnt figure 
out 
  how to pass the results to dataProvider in the 'empDetails.mxml' 
  3ed issue:
  using the Tree, how would I call other components in a ViewStack 
to 
  view?
  Thanks
  Angelo
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links








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

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

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

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




Re: [flexcoders] Configuring RemoteObject destinations (Flex 2)

2006-04-03 Thread Jason Y. Kwong



For our production environment, our SWFs are served from the same machine that our ColdFusion server resides on, so using {server.name} or {context.root} works fine when configuring destinations. During development, I compile and test SWFs locally. I don't run ColdFusion locally--we have a separate development server. So in this case, using {
server.name} or {context.root} doesn't work. I have to change the flex-services.xml file and put in the development server's IP address. It's just awkward to have to manually do this.
What I miss is the convenience of build profiles as seen in some other IDEs. I can have one for development and one for production, each having different compiler options (eg. so I can specify different flex-services.xml
 files). At least that's one way to do it. Can I do something like this with the current Flex Builder? I haven't found a way.On 3/15/06, Peter Farland
 [EMAIL PROTECTED] wrote:







Additionally, you could configure several channels for a 
destination and rely on channel failover so that it will look for one then the 
other... 






From: 
flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com] On Behalf Of 
Jason Y. KwongSent: Wednesday, March 15, 2006 7:41 
PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] 
Configuring RemoteObject destinations (Flex 2)
This came up cause I was configuring my Flex 2 app to communicate 
with ColdFusion, but I suppose it applies to RemoteObject in general. In 
order to tell your app the location of a web service destination, we're told to 
add something like this to the compiler command line: --services=C:\CFusionMX7\wwwroot\WEB-INF\flex\flex-enterprise-services.xml Now, 
my first question is, since the file flex-enterprise-services.xml resides on the 
server (be it ColdFusion or FES) and you typically don't do your client 
development on the same machine as the production server, how would this work in 
the general case? Anyway, so then I decided to copy the file to my 
development machine and then manually changed localhost to the server's IP 
address in the channel configuration. I compiled my app and it worked 
fine. But now it appears that the server's address is compiled directly 
into the swf. Are we unable to dynamically assign server addresses at 
runtime? 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com









  
  
SPONSORED LINKS
  
  
  


Web site design development
  
  

Computer software development
  
  

Software design and development
  
  



Macromedia flex
  
  

Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group flexcoders on the web.

  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
.



  















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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Run shortcut

2006-04-03 Thread Stefan Richter





Thanks... it works now. 
I initially tried this via the View  Edit menu. For 
some reason it was a no goes.

Many thanks, you made my day.



  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Jason Y. 
  KwongSent: 03 April 2006 16:13To: 
  flexcoders@yahoogroups.comSubject: Re: [flexcoders] Run 
  shortcut
  I go to the Modify tab of the Keys preferences screen and do 
  this:- select Run/Debug from Category dropdown- select Run Flex 
  Application from Name dropdown- click the Name edit box under the Key 
  Sequence section - press the key-combo I want (eg. Ctrl-Enter)- click 
  Add then click Ok.This worked for me just fine.
  On 4/1/06, Stefan 
  Richter  [EMAIL PROTECTED] wrote:
  

Anyone got any luck with this? I seem to be unable to set up a 
working shortcut for Run...






From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Stefan 
RichterSent: 29 March 2006 15:54To: flexcoders@yahoogroups.comSubject: [flexcoders] 
Run shortcut


I am 
having trouble configuring a keyboard shortcut for 'Run'. The preferences 
suggest that Ctrl-F11 should work but it doesn't for me and neither do any 
newly configured ones. 
Could 
someone walk me though this? I kinda fancy Ctrl-Enter as my shortcut to run 
my app (Ctrl-Shift-enter for debugging) from either design or code 
view.

How is 
it done? I managed to set this up in Eclipse but in FB2 it's a no go for 
me.

Alt+Shift+X also seems to do something but apart from pop up a little 
panel in the bottom right that's dead also.

Stefan

--Flexcoders Mailing 
ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 

SPONSORED 
LINKS 

  
  
Web site design development 
Computer software development 
Software design and development 
  
Macromedia flex 
Software development best practice 
  


YAHOO! GROUPS LINKS 

  Visit your group "flexcoders" on the web. 
  To unsubscribe from this group, send an email 
  to: [EMAIL PROTECTED] 
  
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
  Service . 








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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Find Function

2006-04-03 Thread mepaninaresh
I can't seem to get complex xml elements working.

Example 1 works.
private function findFirstName():void
{
 createSort();
 var cursor:IViewCursor = myXMLListCollection.getCursor();
 var values:Object = {FreeText: nameInput.text};
 cursor.findFirst(values);
}

Example 2 does not work.
private function findFirstName():void
{
 createSort();
 var cursor:IViewCursor = myXMLListCollection.getCursor();
 var values:Object = {Company.(@Type=='Subject').CompanyId: 
nameInput.text};
 cursor.findFirst(values);
}
-

mx:DataGrid id=myCustomerCountFilterGrid1 width=800% 
height=600% dataProvider={myXMLListCollection}
 mx:columns
  mx:DataGridColumn columnName=FreeText headerText=Reference/
  mx:DataGridColumn columnName=Name headerText=Name width=250
   mx:cellRenderer
mx:Component
 mx:Link label={dataObject.Company.(@Type=='Subject').Name}/
/mx:Component
   /mx:cellRenderer
  /mx:DataGridColumn
  mx:DataGridColumn labelFunction=setRegistrationNo 
headerText=Registration No/
 mx:DataGridColumn labelFunction=setCreditLimit 
headerText=Monthly Credit Limit/  
 mx:DataGridColumn labelFunction=setInsuredLimit 
headerText=Insured Limit width=40/
 mx:DataGridColumn labelFunction=setOutStandingBalance 
headerText=Outstanding Balance/   
 /mx:columns
/mx:DataGrid

Thanks for any help.







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

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

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

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




[flexcoders] Re: MenuBar calling TitleWindow

2006-04-03 Thread angelosalsa
Hi Kleber,
Try this it worked for me, let me know if it works for you,
I have a MenuBar that has a HELP the About MyApp and a Popup with 
show the About Title window here is what I've done.

mx:Script
![CDATA[

public function menuHandler(oEvent:Object) {

if (oEvent.menuItem.getProperty(label)=='Logout') {
onLogoutResult();hideContainers();showWindow
(true);
}
else if 
(oEvent.menuItem.getProperty(label)=='About 
ContactManager'){
showAbout(true);
}
else if 
(oEvent.menuItem.getProperty(label)
=='Preferences'){
notYet();
}   
else if
(oEvent.menuItem.getProperty(label)==undefined){
mx.controls.Alert.show('This is option is not 
implemented yet!', 'ContactManager (Ver 1.0.0.2)');
}
else {  
myViewStack.selectedIndex = 
oEvent.menuItem.getProperty(data);
}
}

]] 
/mx:Script

And the showAbout(true)


import mx.controls.Alert;
import mx.core.Application;
import mx.managers.PopUpManager;
import aboutWindow;   

 public function showAbout(modal:Boolean):void {
var aboutWindow:AboutWindow = new AboutWindow
();
aboutWindow.addEventListener(logon, 
aboutHandler);
PopUpManager.popUpWindow(aboutWindow, this, 
modal);
PopUpManager.centerPopUp(aboutWindow);
}

public function logonHandler():void
{

}
public function aboutHandler():void
{

} 

Angelo


--- In flexcoders@yahoogroups.com, Kleber Voigt [EMAIL PROTECTED] 
wrote:

 Hi,
 
 How can I call a popUp from menuBar?
 
 I try:
 
 mx:Script![CDATA[
 import Forms.controleTempos;
 import mx.managers.PopUpManager;
 
 private function MenuHandler(oEvent:Object) {
 // Create the TitleWindow container.
 var test=Forms.[EMAIL PROTECTED]; //Forms is a 
folder
 inside my app folder
 PopUpManager.createPopUp(this, test, false);
 }
 
 ]]/mx:Script
 mx:MenuBar id=myMenuBar labelField=@label showRoot=false 
x=0 y=0
 width=100% change=MenuHandler(event) 
 mx:XML
 menuItem label=Produção
 menuItem label=Tempos de Produção 
data=controleTempos/
 /menuItem
 
 
 But don`t works e give me the 1034 error. The object cannot convert 
to a
 class.
 
 
 Anyone can help me?
 
 
 Thanks!
 
 Kleber Voigt







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

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

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

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




Re: [flexcoders] Re: BETA 2: How to validate a form before actually submitting

2006-04-03 Thread Alexander Tsoukias



While this does the trick, what if I have 3 inputs? While one passes the validation the sendForm() will be executed while the other 2 inputs are still unvalidated? I want to make sure all of them are validated before executing sendForm().BTW, cool about the on change validation. One thing though... is there a way to make the error tooltip show up programatically instead of having to hover over my mouse pointer?Thanks,  AlexanderOriol Gual [EMAIL PROTECTED] wrote:  Hi, What I do to validate a form, is somethig like this:mx:Script ![CDATA[ private function handleValid(eventObj:ValidationResultEvent) : void  {
   if(eventObj.type==ValidationResultEvent.VALID ) {formValid = true;   } else {formValid = false;   }   } private function sendForm() : void{  if(formValid) {//do whatever you have to do to send the form} else {alert.show("Form is not valid!","Alert");}}private var formValid : Boolean = false;]]/mx:Scriptmx:StringValidator source="{inputText}" property="text" minLength="3" maxLength="20" trigger="{inputText}" triggerEvent="change"
 valid="handleValid(event)" invalid="handleValid(event)"/ mx:Formmx:FormItem label="Input some text" required="true" direction="horizontal" fontWeight="bold" textAlign="left"  mx:TextInput id="inputText" width="80" maxChars="20"//mx:FormItem/mx:Formmx:Button id="fromButton" label="Send form" click="sendForm()"/ When the user inputs some text in the textinput the validation occurs automatically ( trigger="{inputText}" triggerEvent="change") and the function handleValid is called. Then, when clicking the button if the variable formValid it's true we can send the form. By the way, I have a question, what is the meaning of the models with flex 2 and forms? Because they're declared in the examples but the validators don't use them.Hope this helps,Oriol  2006/4/2, Dreamer [EMAIL PROTECTED]:  Alex  Alex, you can put the data be validated in a model.like this:mx:Model id="order"email{email.text }/email//email is a textInput controller's
 id/mx:Modelthen define a validator: mx:EmailValidator field="order.email"/then write a function in the script tag: function confirmOrder(): Void {if (mx.validators.Validator.isStructureValid(this, 'order')) {mx.controls.Alert.show("Success!!");addMember();}else
 {mx.controls.Alert.show("Please enter valid data in the fields with errors and try again.", "Problem");}}Peace,Dreamerin china [EMAIL PROTECTED]2006-04-02=== 2006-04-02 01:37:17 £º===Hi Mike,I understand the login, but how do I reference the validation?I mean what would actually go where you have "validation is success".I'm not an actionscrip expert! I'm a cfforever guy ;-).Alexander--- In flexcoders@yahoogroups.com, "Dreamer" [EMAIL PROTECTED] wrote: Alex 
 Alex,you can write a function,like that.if(validation is success) addMember();elsealert("invalid input!!!");Peace, Dreamer [EMAIL PROTECTED]  2006-04-01 === 2006-04-01 18:32:22 £º===  Hello,  In a signup form, when I click the submit button I would like for all the validation to happen and then actually hit the addMember() function.  But if a form
 fails the validation how can I prevent theexecution of  addMember().  Thanks, Alexander  -- Flexcoders Mailing List  FAQ:http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links = = = = = = = = = = = = = = = = = = =
 =--Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links= = = = = = = = = = = = = = = = = = = =--Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go
 to:http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to:[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/  YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web.   To unsubscribe from this group, send an email to:[EMAIL PROTECTED]   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.   





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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Re: What happened to Iteration:Two Site?

2006-04-03 Thread rodneyjlucas
Most of the site is down but I was able to get Cairngorm v2.0 via the
following page

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


--- In flexcoders@yahoogroups.com, rodneyjlucas [EMAIL PROTECTED]
wrote:

 I have been trying since late last week...
 
 --- In flexcoders@yahoogroups.com, Wally Randall wally.randall@
 wrote:
 
  I have been trying to get throught to Iteration:Two all weekend. 
They 
  are back up but most of the site is disabled.  What has happened?  I 
  want to get the Cairngorm 2 Alpha for testing.
  
  http://www.iterationtwo.com/open_source_cairngorm.html
 







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

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

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

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




Re: [flexcoders] Opportunities for Flex Wizards in India office of US-based networking startup

2006-04-03 Thread Abdul Qabiz



Cool! Guys, if you are looking for serious Flex stuff. This is the place. I know the head of this company and know what they are doing.So I am endorsing this post...-abdul
On 4/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Guavus is a development-stage, well-capitalized startup in network security andmonitoring, focussing on building the its flagship product, based onpatent-pending technology.As a part of its expansion plans, Guavus has built
its first research and development center outside US, in Gurgaon, India.Guavus is now seeking energetic team players (pilot batch) who canexecute on our vision for making the Internet a safer place.We want
creative and talented engineers who take pride in designing elegantsolutions to complex problems and deeply care about making an impact.You will work with a stellar team (IITans), and build a Flex-based presentation
layer for a truly unique distributed network monitoring infrastructure that cananalyze petabytes of network-wide data in seconds (think Google for allInternet traffic).As Flex Wizard, you will design and build ground-breaking
graphical interfaces that will allow operators to understand and manage theirnetworks.You will work with powerful and intelligent interface designalgorithms, and new technology such as Flex, Flash, and AJAX-related tools.
So, if you are looking for challenging, demanding and rewarding work, weencourage you to apply.All candidates must have: + excellent analytical skills, + excellent english communication skills,
 + a can-do attitude, + ability to quickly master new technologies. + 3+ years of relevant experience (work, school projects, research, etc)In addition, you must be an expert web developer, excited byaesthetics, by rich internet apps, by Flex (we certainly are!), by google maps.
You must also be a strong _javascript_ programmer.For the right candidates, Guavus will offer generous, and rewarding compensationpackages, including better-than-best of salaries (depending on experience and
skillset), attractive stock option offerings,vacation and holiday pay, and most importantly, a fun, intellectuallystimulating atmosphere, conducive to both career and personal growth.There will always be a big company to work for when you are old or
lack the energy, but the opportunity to build one doesn't come alongevery day.So if you are looking for a rewarding and unique career ata promising startup, where you can profit both financially and intellectually,
email a resume and a cover letter to: talent at guavus dot com.--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/







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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Putting markers on chart

2006-04-03 Thread Ely Greenfield








Yes Sachin, that makes sense.

This is possible to do, with a little bit of 
extension.

The easiest way to do this would be by writing a custom 
lineSegmentRenderer. The line segment renderer is the component used by the line 
series to render the actual line. It gets passed an array of 
LineSeriesItems, each of which contains all the x and y values for the point it 
represents.

So I'd write a custom line renderer 
that:

- draws the line segment itself.
- for each segment of the line:
 - check and see if it crosses your y 
threshold
 - if it does
 - figure out the x position for the crossing 
point
 - draw a vertical line from 0 to unscaledHeight 
at that x position.

Make sense?

Ely.



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Sachin 
DharmapurikarSent: Sunday, April 02, 2006 8:45 PMTo: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Putting markers 
on chart
Hi Ely, We wan't to put a vertical line on 
X-Axis value for which the Y-axis value exceeds a threshold. E.g. following are 
the input sets -X-Axis Values : [ 11:00, 12:00, 13:00]Y-Axis Values: 
[47,67,31]Now there should be a way to define threshold on Y-Axis. If I 
set the threshold on 50 then all values  50 should have a vertical line 
drawn on corrosponding X-Axis value. In our example on 12:00 the vertical line 
should appear. Does that make any sense to you?Sachin
On 4/3/06, Ely 
Greenfield [EMAIL PROTECTED] wrote: 

  
  
  
  Sachin, can you explain a little further? are you looking for a 
  vertical line at a particular X value? or a horizontal line at a particular y 
  value?
  
  Ely.
  
  
  
  From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Sachin 
  DharmapurikarSent: Saturday, April 01, 2006 7:23 PMTo: 
  FlexcodersSubject: [flexcoders] Putting markers on 
  chart
  
  Hi,I am developing a charting 
  application. I am simulating a live chart which is updated after finite 
  interval. X-Axis of the chart is going to have dates and Y-Axis will have 
  Numbers. I want to put a red line marker when the value of Y-axis crosses a 
  particular value. Sample image is attached. Is it possible to do this 
  using Flex line 
  charting?Thanks,Sachin
  --Flexcoders Mailing ListFAQ: 
  http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  
  SPONSORED 
  LINKS 
  


  Web site design development 
  Computer software development 
  Software design and development 

  Macromedia flex 
  Software development best practice 
  
  
  
  YAHOO! GROUPS LINKS 
  
Visit your group "flexcoders" on the web. 
To unsubscribe from this group, send an email 
to: [EMAIL PROTECTED] 

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





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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] marking an element of a tree as selected

2006-04-03 Thread Tracy Spratt










selectedNode() for Tree



Tracy











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin
Sent: Sunday, April 02, 2006 3:09
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] marking
an element of a tree as selected





Have you tried setting selectedItem in the
tree?











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sonja Duijvesteijn
Sent: Friday, March 31, 2006 2:18
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] marking an
element of a tree as selected





I've got a tree representing
different pages, and you should be able to delete a page (which is no problem).
After the selected page is deleted a new page should become active, and also be
shown as active in the tree. 

But I don't seem to be able to find how to do
this. As I'm not too sure which function I'm looking for it's hard to either
google or such the mailinglist. I've checked the language reference and the
documentation, but I can't seem to find it. 

Where can I find more information (or just a
solution) to this? 

Thanks in advance,
Sonja Duijvesteijn









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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Putting markers on chart

2006-04-03 Thread Jonathan Miranda












If you get time to do this Sachin, love to
see what you produce code-wise.dont got time to tinker with it at
the moment myself J

_

Jonathan Miranda

Flexible Master of the Web

Try not
to become a man of success, but a man of value. - Albert Einstein

HealthGrades: Guiding America to Better Healthcare

NASDAQ:
HGRD

w (720)
963-3832

c (707)
761-0868

[EMAIL PROTECTED] 

_

The message contains confidential and/or
legally privileged information and is intended for use only by the indicated
addressee. If you are not the named addressee you should not disseminate,
distribute, or copy this e-mail. Please notify the sender immediately by e-mail
if you have received this e-mail by mistake and delete this e-mail from your
system. E-mail transmissions cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed,arrive late or
incomplete, or contain viruses. The sender therefore does not accept liability
for any errors or omissions in the contents of this message which arise as a
result of e-mail transmission. If verification is required please request a
hard-copy version.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ely Greenfield
Sent: Monday, April 03, 2006 11:15
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Putting
markers on chart











Yes Sachin, that makes sense.



This is possible to do, with a little bit
of extension.



The easiest way to do this would be by
writing a custom lineSegmentRenderer. The line segment renderer is the
component used by the line series to render the actual line. It gets
passed an array of LineSeriesItems, each of which contains all the x and y
values for the point it represents.



So I'd write a custom line renderer that:



- draws the line segment itself.

- for each segment of the line:

 - check and see if it crosses your y threshold

 - if it does

 - figure out the x position for the crossing point

 - draw a vertical line from 0 to unscaledHeight at that x position.



Make sense?



Ely.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Sachin Dharmapurikar
Sent: Sunday, April 02, 2006 8:45
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Putting
markers on chart

Hi Ely,
 We wan't to put a vertical line
on X-Axis value for which the Y-axis value exceeds a threshold. E.g. following
are the input sets -

X-Axis Values : [ 11:00, 12:00, 13:00]
Y-Axis Values: [47,67,31]

Now there should be a way to define threshold on
Y-Axis. If I set the threshold on 50 then all values  50 should have a
vertical line drawn on corrosponding X-Axis value. In our example on 12:00 the
vertical line should appear. 

Does that make any sense to you?

Sachin



On 4/3/06, Ely Greenfield [EMAIL PROTECTED] wrote: 







Sachin, can you explain a
little further? are you looking for a vertical line at a particular X
value? or a horizontal line at a particular y value?



Ely.











From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Sachin Dharmapurikar
Sent: Saturday, April 01, 2006 7:23 PM
To: Flexcoders
Subject: [flexcoders] Putting markers on
chart





Hi,

I am developing a charting application. I am
simulating a live chart which is updated after finite interval. X-Axis of the
chart is going to have dates and Y-Axis will have Numbers. I want to put a red
line marker when the value of Y-axis crosses a particular value. Sample image
is attached. 

Is it possible to do this using Flex line
charting?

Thanks,
Sachin











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







SPONSORED
LINKS 




 
  
  Web site design development 
  
  
  Computer software development 
  
  
  Software design and development 
  
 
 
  
  Macromedia flex 
  
  
  Software development best practice 
  
  
  
  
 










YAHOO!
GROUPS LINKS 




 Visit your group flexcoders
 on the web.
  
 To unsubscribe from this group, send an
 email to:
  [EMAIL PROTECTED]
  
 Your use of Yahoo! Groups is subject to the
 Yahoo! Terms
 of Service . 























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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  


Re: [flexcoders] attachMovie() Flex equiv?

2006-04-03 Thread Manuel Saint-Victor



Which version of Flex are you using? On 4/3/06, bclinkinbeard [EMAIL PROTECTED] wrote:



Hello all,

Very new to Flex development and am having a hard time figuring out how
you can create interfaces that aren't completely component based. Is
there a Flex equivalent to attachMovie()? The only info I have found
talks about loading a library swf and then using Embed to grab a
particular symbol by doing something like my.swf#symbolName. Is this the
only way? Is this the best way? Seems like it would be quite a pain if
you had a library swf with 50 symbols you wanted to be able to load in
and access.

Any help is appreciated.

Thanks,
Ben










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com






  




  
  
  YAHOO! GROUPS LINKS



  Visit your group flexcoders on the web.

  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
.



  
















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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] [Flex 1.5] Tweening _xscale and _yscale

2006-04-03 Thread Claudia Barnal
Could anyone shed some light on how to make a tween transition of
_xscale and _yscale of a component in Flex 1.5. I don't want to use
the Zoom class, as it doesn't really do what I want.

Thanks,
Claudia


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

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

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

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




Re: [flexcoders] Re: What happened to Iteration:Two Site?

2006-04-03 Thread Joshua Garnett



Yeah if you refresh that link a few times it'll eventually show up.--JoshOn 4/3/06, rodneyjlucas [EMAIL PROTECTED]
 wrote:Most of the site is down but I was able to get Cairngorm v2.0 via the
following pagehttp://www.richinternetapps.com/archives/000143.html--- In flexcoders@yahoogroups.com
, rodneyjlucas [EMAIL PROTECTED]wrote: I have been trying since late last week... --- In flexcoders@yahoogroups.com
, Wally Randall wally.randall@ wrote:   I have been trying to get throught to Iteration:Two all weekend.They  are back up but most of the site is disabled.What has happened?I
  want to get the Cairngorm 2 Alpha for testing.   http://www.iterationtwo.com/open_source_cairngorm.html 
--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/







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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Flex 2 B2: Menu interfering with Alert popup

2006-04-03 Thread Jason Y. Kwong



Ok, this is a pretty obscure bug, but the scenario isn't so weird. The following app creates a menu and has a button that causes it to be shown. When the menu item is clicked, it pops up an alert box: ?xml version=
1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* layout=absolute creationComplete=init()
  mx:Script   ![CDATA[import mx.controls.Menu;import mx.controls.Alert;private var menu: Menu;
private function init(): void{ var dp: XML = item1 label=Item1/ menu = Menu.createMenu(null, dp); 
menu.labelField = @label; menu.setStyle(openDuration, 0); menu.addEventListener(change, onChange);
}private function onChange(event: Event): void{ Alert.show(Testing, title, 
Alert.YES);}   ]]  /mx:Scriptmx:Button x=10 y=10 label=Button click=menu.show()/
 /mx:ApplicationThe problem is that when the menu item is clicked a second time, the alert popup does not appear but the whole screen still goes into a modal state. With no popup to dismiss, you can't get out of the modal state and your app is frozen out. Now, this happens only if the menu's openDuration is set to 0 and you specify some button flags for the alert window (eg. 
Alert.YES) . I know, sort of obscure, but not an unreasonable scenario (heck, this happened in my app). 






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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Re: MenuBar calling TitleWindow

2006-04-03 Thread Kleber Voigt



Hi Angelo,Don`t work for me. The Flash Player shows the follow error:--TypeError: Error #1034: Type Coercion failed: cannot convert Forms.controleTempos to Class at Main/::menuHandler()
 at Main/__myMenuBar_change() at flash.events::EventDispatcher/dispatchEvent() at mx.controls::MenuBar/eventHandler() at flash.events::EventDispatcher/dispatchEvent() at mx.controls::Menu/dispatchEvent
() at mx.controls::Menu/::dispatchMenuEvent() at mx.controls::Menu/mouseUpHandler()-And here its my app again:?xml version=1.0?mx:Application xmlns:mx=
http://www.adobe.com/2006/mxml layout=absolute mx:Script![CDATA[ import Forms.*; import mx.managers.PopUpManager; 
 private function menuHandler(oEvent:Object) {  var test = 'Forms.'[EMAIL PROTECTED];  PopUpManager.createPopUp(this, test, false); } ]]/mx:Scriptmx:MenuBar id=myMenuBar labelField=@label showRoot=false x=0 y=30 width=100% change=menuHandler(event) 
 mx:XML menuitem label=Home/ menuitem label=Aquisição/ menuItem label=Produção  menuItem label=Tempos de Produção data=""
 /menuItem menuitem label=Qualidade / menuitem label=Vendas / /mx:XML /mx:MenuBar mx:Spacer /
/mx:ApplicationIf I use ' var test = Forms.controleTempos' it`s works perfect. But how I wanna call the window dynamically, i need to use the string generated by the XML node.There`s a way to transform a string in a class?
Thanks.






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Flex beta 2 - add, remove and moving DataGridColumn

2006-04-03 Thread Bruno Martins



I tryed almost every thing but I don't know how to add, remove and moving a column. 
Please send a example. 

Tks..






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] reading component variables into mainApp

2006-04-03 Thread wi1df1ower
okay...either I am soo far wrong...or I am soo close, and missing the
obvious.  Either way, I hope you can help:

Its a simple problem, I have a main application page, an importable
.as file, and a component file.
In the component file, I issue a query to a database and return values.  
I would like to write those values as global to the main application.
I believe I accomplish this via my importable .as file.
However, I cant get the databinding in the main app page, to read a
value change on the .as file.
I dont know how to accomlish this (if I should) with a dispatch event,
since I am returning the values from the database, and not via an
interaction with a form.  

below is the code so far:

main app:
mx:Panel title=Welcome to CCPS Portals width=475
height=500 x=20 y=30
mx:Label id=myLabel1 text={portalIdentity.email}/
/mx:Panel
login x=500 y=30/

.as file:
public class Id
{
// Properties   
static public var email:String;
static public var tchid:String;
static public var fname:String;
static public var lname:String;
static public var role:String;

public function Id()
{
}

}

component file:
import portalIdentity;
public var vEmail:String;

private function handleLoginEvent(event:ResultEvent):void {
lblProgress.text = logging in...;
var retItem:Object = 
event.result[0].error;


portalIdentity.email = 
ObjectUtil.toString(event.result[0].email);

}  

Thanks in advance for any help





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

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

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

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




[flexcoders] Re: attachMovie() Flex equiv?

2006-04-03 Thread bclinkinbeard
Sorry, F2B2.





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

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

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

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




RE: [flexcoders] Putting markers on chart

2006-04-03 Thread Ely Greenfield







I figure it's good to take a moment every once and a while 
and prove to myself that what I'm saying is actually true ;)

See attached.

Ely.



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Jonathan 
Miranda



If you get time to do 
this Sachin, love to see what you produce code-wise.dont got time to tinker 
with it at the moment myself J





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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









ThresholdRenderer.as
Description: ThresholdRenderer.as


app.mxml
Description: app.mxml


RE: [flexcoders] Flex 2.0 b2: SharedObject

2006-04-03 Thread Stefan Richter





Would the remote SO problems I outlined also be connected 
to this in some way?



  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Matt 
  ChotinSent: 03 April 2006 18:07To: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] Flex 2.0 b2: 
  SharedObject
  I couldn't find a way to get this to work currently. I 
  talked to thePlayer team and we agreed we want to find a way to make this 
  work so abug has been filed. I cannot guarantee it will get through 
  for 8.5 butwe realize it does affect customers so we'll do our 
  best.Matt-Original Message-From: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of 
  tyombriaSent: Monday, March 27, 2006 5:16 AMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Flex 2.0 b2: 
  SharedObjectHi, all.I've got a problem with a 
  SharedObject.I run two apps simultaneously.The following operators 
  depict applications activities:1. app1:so:SharedObject = 
  SharedObject.getLocal('so', '/');so.data.first = 
  'first';so.data.second = '';so.flush();2. 
  app2:so:SharedObject = SharedObject.getLocal('so', '/');trace( 
  so.data.second ); // outputs ''3. app1:so.data.second = 
  'second';so.flush();4. app2:so = SharedObject.getLocal( 'so', 
  '/' );trace(so.data.second); // ouputs ''In the previous 
  version (as 2.0) I could read data written in the shared object by other 
  app (without restarting) by the following trick:in app2 (step 
  4):delete so;so = SharedObject.getLocal( 'so', '/' 
  );trace(so.data.second); // ouputs 'second'Can I implement 
  needed functionality in the flex 
  2.0?--Flexcoders Mailing ListFAQ: 
  http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  Yahoo! Groups Links





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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] [Flex 1.5] Tweening _xscale and _yscale

2006-04-03 Thread Alex Uhlmann
You could use Flex's mx.effects.Tween for this. But you might want to
simulate modification of registration points, since Flex components have
a registration point on 0,0 (top left). When you scale, only the right
and bottom sides will scale. In case you don't want that, check out
AnimationPackage http://www.alex-uhlmann.de/animationpackage/  Scale
(setRegistrationPoint) or/and Animator class. There is a SWC supplied.

Best,
Alex

Alex Uhlmann
Consultant (Rich Internet Applications)
Adobe Consulting
Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK
p: +44 (0) 131 338 6969
m: +44 (0) 7917 428 951 
[EMAIL PROTECTED] 


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Claudia Barnal
Sent: 03 April 2006 18:34
To: flexcoders@yahoogroups.com
Subject: [flexcoders] [Flex 1.5] Tweening _xscale and _yscale

Could anyone shed some light on how to make a tween transition of
_xscale and _yscale of a component in Flex 1.5. I don't want to use the
Zoom class, as it doesn't really do what I want.

Thanks,
Claudia


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



 




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

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

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

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




[flexcoders] Why can't I declare a uint in a declarative way? : mx:uint/

2006-04-03 Thread Carlos Rovira



Hi,I'm curious. I was trying to create an uint variable inside a custom component in a declarative way but I can't, I mean:mx:uint id=aUintVar/Why this is not possible due to the fact that I can do it with oter types like mx:Boolean/ or mx:String/ ?
I know that I can workaround this and declare the var inside a Script tag, but I think I should be able to do it.-- ::| Carlos Rovira::| http://www.carlosrovira.com







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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] [Flex 1.5] Tweening _xscale and _yscale

2006-04-03 Thread Carlos Rovira



Hi Alex,Are you talking about an AS3 version of animationpackage?On 4/3/06, Alex Uhlmann [EMAIL PROTECTED]
 wrote:


You could use Flex's mx.effects.Tween for this. But you might want to
simulate modification of registration points, since Flex components have
a registration point on 0,0 (top left). When you scale, only the right
and bottom sides will scale. In case you don't want that, check out
AnimationPackage http://www.alex-uhlmann.de/animationpackage/  Scale
(setRegistrationPoint) or/and Animator class. There is a SWC supplied.

Best,
Alex

Alex Uhlmann
Consultant (Rich Internet Applications)
Adobe Consulting
Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK
p: +44 (0) 131 338 6969
m: +44 (0) 7917 428 951 
[EMAIL PROTECTED] 


-Original Message-
From: flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com] On
Behalf Of Claudia Barnal
Sent: 03 April 2006 18:34
To: flexcoders@yahoogroups.com
Subject: [flexcoders] [Flex 1.5] Tweening _xscale and _yscale

Could anyone shed some light on how to make a tween transition of
_xscale and _yscale of a component in Flex 1.5. I don't want to use the
Zoom class, as it doesn't really do what I want.

Thanks,
Claudia


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com

Yahoo! Groups Links



 








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com






  




  
  
  YAHOO! GROUPS LINKS



  Visit your group flexcoders on the web.

  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
.



  









-- ::| Carlos Rovira::| http://www.carlosrovira.com






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Re: Flex Beta 2 - Loader not loading SWF 100%

2006-04-03 Thread Bruno Martins



use:

AppLoader id=loader scaleContent=true width=100% height=100% bottom=0 top=44 left=0 right=0/

and a new application using:
loader.load(YorNewApp.swf);
Tks..
On 4/1/06, inawire [EMAIL PROTECTED] wrote:

Can you supply some sample code snipits?
ThanksRoss--- In flexcoders@yahoogroups.com
, Bruno Martins [EMAIL PROTECTED] wrote:
 Hi Ross,  My friend Beck Novaes did a better implementation of AppLoader.  Tks.. 

--Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.com 


YAHOO! GROUPS LINKS 



Visit your group flexcoders on the web. 
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 





-- Bruno Gustavo MartinsMobile: (55)(11)9585-9587[EMAIL PROTECTED]experience everywhere
http://www.dclick.com.br/blog 






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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Flex 2: height and width of Loader when loading SWF

2006-04-03 Thread Jason Y. Kwong



When the Loader loads a Flash 7/8 SWF, its height and width properties are set to the SWF's stage height and width. The thing is, the SWF could size its content dynamically so that it's actually larger than specified. The larger SWF is displayed properly in the Flex app and the contentHeight and contentWidth properties appear to be set accordingly. But since the entirety of the SWF is displayed (and not clipped), doesn't it follow that the Loader's height and width should be larger as well?
I bring this up cause a Flex container doesn't clip or scroll its content if it thinks all of its children fit inside. But a Loader doesn't necessarily report its full height and width (at least visually), so its content can spill outside the borders of its non-clipping container. Thoughts?







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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Flash Player 7 for Pocket PC?

2006-04-03 Thread Clint Modien



So uhh.. Charles Freedman here @ yahoo just sent me this link...http://www.macromedia.com/software/flashplayer_pocketpc/I ran a quick google... news and web... and I didn't find ANYTHING on this being released.
Will this ver of the flash player actually run a flex app?What about ram usage and processor speed?






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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Flex2b2 - Customer Java Adapter/Data Mapping

2006-04-03 Thread Jim Schneider










We are using remote objects/services and have developed a
custom Java adapter. In beta1, JavaAdapter had a getMethod()
method to look up a remote classs method. This API does not appear to be
available in beta2. I replaced this with just the standard java reflection
method lookup on Class. However, it appears as if this method did some more
work. Specifically, I am calling an API that takes a java.lang.Long as a
parameter. I pass a Number from actionscript, it gets mapping to a
java.lang.Integer on the server, and now my reflection look does not work as
there is no version of my operation that takes a java.lang.Integer (we are
expecting java.lang.Long). 



Any thoughts on this? Is the old JavaAdapter.getMethod()
available somehow/somewhere? If not, did the old getMethod() do more work than
standard reflection to find the appropriate method (perhaps iterating the valid
numeric object types?)? If so, would Adobe care to share this
code with me/us so I dont have to roll my own? Any other suggestions?



Thanks,



Jim





-

Jim Schneider

KJ Interactive, Inc.

1-877-370-6906

1-612-605-5399













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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] attachMovie() Flex equiv?

2006-04-03 Thread Roger Gonzalez





All assets in Flash 8.5 and AS3 are now 
class-based.

The equivilent to attachMovie is "new", as in "create a 
class instance".

Because there is no public version of Flash Authoring out 
that emits AS3 classes, we're in a temporary phase where we embed old-style 
assets and have Flex generate a wrapper class around them, which you then create 
via "new".

Once the next version of Authoring is out, you will simply 
export a SWC from Blaze, add it to your Flex library path, and just use "new" - 
the "export" library symbol name in Flash will become the 
classname.

-rg

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Manuel 
  Saint-VictorSent: Monday, April 03, 2006 10:24 AMTo: 
  flexcoders@yahoogroups.comSubject: Re: [flexcoders] attachMovie() 
  Flex equiv?
  Which version of Flex are you using? 
  On 4/3/06, bclinkinbeard [EMAIL PROTECTED] 
  wrote: 
  
Hello all,Very new to Flex 
development and am having a hard time figuring out howyou can create 
interfaces that aren't completely component based. Isthere a Flex 
equivalent to attachMovie()? The only info I have foundtalks about 
loading a library swf and then using Embed to grab aparticular symbol by 
doing something like my.swf#symbolName. Is this theonly way? Is this the 
best way? Seems like it would be quite a pain ifyou had a library swf 
with 50 symbols you wanted to be able to load inand access.Any 
help is 
appreciated.Thanks,Ben--Flexcoders 
Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 



YAHOO! GROUPS LINKS 

  Visit your group "flexcoders" on the web. 
  To unsubscribe from this group, send an email 
  to: [EMAIL PROTECTED] 
  
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
  Service . 








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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Flex 2: having trouble with DataService component

2006-04-03 Thread Tom Bray
I'm trying to build a very simple app based on the Contact Manager
sample application.  A lot of it is working but when I try to create
new items, I'm getting the following error:

Error: faultCode:Local.Call.Failed faultString:'Item with id '0'
already exists.  Error on destination 'Room'' faultDetail:'null'
at 
mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent()
at mx.rpc::AsyncDispatcher/::timerEventHandler()
at flash.util::Timer/flash.util:Timer::tick()


In the Contact Manager example, you create new Contact objects and add
them to the DataService using createItem( contact ).  These contact
objects are populated with all properties _except_ the contactId
because that gets created server-side.  I'm trying to do the same
thing below but with my Room objects.  Note the line that's commented
out.  If I uncomment that, I can create as many rooms as I want with
roomIds getting set on the server.  What do I need to do to get around
the error above without my kludgy fix?

[Bindable]
public var rooms:ArrayCollection;

[Bindable]
public var room:Room;

public var foo:Number = 100;

private var ds:DataService;

private function initApp():void
{
rooms = new ArrayCollection();
room = new Room();
ds = new DataService(Room);
ds.fill(rooms);
}

private function newRoom():void
{
room = new Room();
//if I uncomment this next line, the app works fine
//room.roomId = foo == 100 ? 101 : 100;
room.name = roomName.text;
room.description = description.text;
ds.createItem(room);
}

...
mx:Button label=Submit click=newRoom()/
...

Thanks,

Tom




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

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

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

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




[flexcoders] Flex deployment on weblogic - to explode or not to explode?

2006-04-03 Thread jkebinger
Hi all, I've got a quick question. Must a flex application be deployed
in an exploded war/ear on the app server?
I'm trying to deploy a .war, but getting strange class not found
exceptions with AxisServlet that I don't get running the same war
exploded.
Am I doing something wrong, or is that just the way it has to be?

thanks
-James







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

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

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

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





Re: [flexcoders] Re: BETA 2: How to validate a form before actually submitting

2006-04-03 Thread Oriol Gual



Hi Alexander,Thanks to your observation I've came to a better solution:mx:Script ![CDATA[ import mx.events.ValidationResultEvent;private function checkValidators() : Boolean
{stringvalidation = stringvalidator.validate().type;stringvalidation2 = stringvalidator2.validate().type;if ( (stringvalidator == ValidationResultEvent.VALID)  (stringvalidator2 == 
ValidationResultEvent.VALID) ) {return true;} else {return false;}}private function sendForm() : void{


if(checkValidators()) {//do whatever you have to do to send the form} else {alert.show(Form is not valid!,Alert);}}private var stringvalidation : ValidationResultEvent;
private var stringvalidation2 : ValidationResultEvent;]]
/mx:Scriptmx:StringValidator id=stringvalidator source={inputText} property=text minLength=3 maxLength=20 trigger={inputText} triggerEvent=change/
mx:StringValidator id=stringvalidator2 source={inputText} property=text minLength=3 maxLength=20 trigger={inputText2} triggerEvent=change/
mx:Formmx:FormItem label=Input some text required=true direction=horizontal fontWeight=bold textAlign=left


mx:TextInput id=inputText width=80 maxChars=20//mx:FormItemmx:FormItem label=Input some other text required=true direction=horizontal fontWeight=bold textAlign=left

mx:TextInput id=inputText2 width=80 maxChars=20//mx:FormItem/mx:Formmx:Button id=fromButton label=Send form click=sendForm()/
Some explanation and changes:- Removed the valid/invalid properties of the validators.- Added an id for each one.- Instead of doing this: if ( (stringvalidator.validate

().type== ValidationResultEvent.VALID)  (stringvalidator2.validate().type== ValidationResultEvent.VALID) ) which is also correct, I think it's better to do it with the variables, and then evaluating them, because you validate all the fields (and the tooltip errors are shown, like you wanted Alexander), the other way if the first fails the other fields won't be validated.
Hope this helps,Oriol2006/4/3, Alexander Tsoukias [EMAIL PROTECTED]
:



While this does the trick, what if I have 3 inputs? While one passes the validation the sendForm() will be executed while the other 2 inputs are still unvalidated? I want to make sure all of them are validated before executing sendForm().
BTW, cool about the on change validation. One thing though... is there a way to make the error tooltip show up programatically instead of having to hover over my mouse pointer?
Thanks,  AlexanderOriol Gual 

[EMAIL PROTECTED] wrote:  
Hi, What I do to validate a form, is somethig like this:mx:Script ![CDATA[ private function handleValid(eventObj:ValidationResultEvent) : void  {
   if(eventObj.type==ValidationResultEvent.VALID ) {formValid = true;   } else {formValid = false;   }   } private function sendForm() : void
{  if(formValid) {//do whatever you have to do to send the form} else {alert.show(Form is not valid!,Alert);}

}private var formValid : Boolean = false;]]/mx:Scriptmx:StringValidator source={inputText} property=text minLength=3 maxLength=20 
trigger={inputText} triggerEvent=change
 valid=handleValid(event) invalid=handleValid(event)/ mx:Formmx:FormItem label=Input some text required=true direction=horizontal fontWeight=bold textAlign=left
  mx:TextInput id=inputText width=80 maxChars=20//mx:FormItem/mx:Form
mx:Button id=fromButton label=Send form click=sendForm()/ 
When the user inputs some text in the textinput the validation occurs automatically ( trigger={inputText} triggerEvent=change) and the function handleValid is called. Then, when clicking the button if the variable formValid it's true we can send the form. 
By the way, I have a question, what is the meaning of the models with flex 2 and forms? Because they're declared in the examples but the validators don't use them.Hope this helps,Oriol
  
2006/4/2, Dreamer 

[EMAIL PROTECTED]:  

Alex  Alex, you can put the data be validated in a model.like this:mx:Model id=orderemail{
email.text }/email//email is a textInput controller's
 id/mx:Modelthen define a validator: mx:EmailValidator field=order.email/then write a function in the script tag: function confirmOrder(): Void {
if (mx.validators.Validator.isStructureValid(this, 'order')) {mx.controls.Alert.show(Success!!);addMember();}else
 {mx.controls.Alert.show(Please enter valid data in the fields with errors and try again., Problem);}}Peace,Dreamerin china 

[EMAIL PROTECTED]2006-04-02=== 2006-04-02 01:37:17 £º===Hi Mike,I understand the login, but how do I reference the validation?
I mean what would actually go where you have validation is success.I'm not an actionscrip expert! I'm a cfforever guy ;-).Alexander--- In 
flexcoders@yahoogroups.com, Dreamer [EMAIL PROTECTED] wrote: Alex 
 Alex,you can write a function,like that.if(validation is success) addMember();elsealert(invalid input!!!);
Peace, Dreamer [EMAIL PROTECTED]  2006-04-01 === 2006-04-01 18:32:22 £º===
  Hello,  In a signup form, when I click the submit button I would like for all the validation to happen 

[flexcoders] Re: Flash Player 7 for Pocket PC?

2006-04-03 Thread Renaun Erickson
Flash Lite 2 is consider Flash Player 7 version but does not have any
of the Flex Framework so will not play flex swfs.

Renaun

--- In flexcoders@yahoogroups.com, Clint Modien [EMAIL PROTECTED] wrote:

 So uhh.. Charles Freedman here @ yahoo just sent me this link...
 
 http://www.macromedia.com/software/flashplayer_pocketpc/
 
 I ran a quick google... news and web... and I didn't find ANYTHING
on this
 being released.
 
 Will this ver of the flash player actually run a  flex app?
 
 What about ram usage and processor speed?







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

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

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

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




[flexcoders] Re: Flex 2: having trouble with DataService component

2006-04-03 Thread Tom Bray
Answered my own question.  In my managed Room class, I set the default
value of my id property to -1.  Problem solved.

Tom

On 4/3/06, Tom Bray [EMAIL PROTECTED] wrote:
 I'm trying to build a very simple app based on the Contact Manager
 sample application.  A lot of it is working but when I try to create
 new items, I'm getting the following error:

 Error: faultCode:Local.Call.Failed faultString:'Item with id '0'
 already exists.  Error on destination 'Room'' faultDetail:'null'
 at 
 mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent()
 at mx.rpc::AsyncDispatcher/::timerEventHandler()
 at flash.util::Timer/flash.util:Timer::tick()


 In the Contact Manager example, you create new Contact objects and add
 them to the DataService using createItem( contact ).  These contact
 objects are populated with all properties _except_ the contactId
 because that gets created server-side.  I'm trying to do the same
 thing below but with my Room objects.  Note the line that's commented
 out.  If I uncomment that, I can create as many rooms as I want with
 roomIds getting set on the server.  What do I need to do to get around
 the error above without my kludgy fix?

 [Bindable]
 public var rooms:ArrayCollection;

 [Bindable]
 public var room:Room;

 public var foo:Number = 100;

 private var ds:DataService;

 private function initApp():void
 {
 rooms = new ArrayCollection();
 room = new Room();
 ds = new DataService(Room);
 ds.fill(rooms);
 }

 private function newRoom():void
 {
 room = new Room();
 //if I uncomment this next line, the app works fine
 //room.roomId = foo == 100 ? 101 : 100;
 room.name = roomName.text;
 room.description = description.text;
 ds.createItem(room);
 }

 ...
 mx:Button label=Submit click=newRoom()/
 ...

 Thanks,

 Tom



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

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

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

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





[flexcoders] Re: BETA 2: How to validate a form before actually submitting

2006-04-03 Thread Alex Alex
Hi Oriol,

This *sounds* a lot better though I am getting these errors at 
compile time.

1::Implicit coercion of a value of type 'String' to an unrelated 
type 'mx.events:ValidationResultEvent (this error appears twice)

2::Comparison between a value with static 
type 'mx.validators:StringValidator' and a possibly unrelated 
type 'String' (this error appears twice)

3::Access of undefined property 'alert'

I'm not such of an actionscript guy, but I'll get there sooner or 
later. Thanks again.

Alex

--- In flexcoders@yahoogroups.com, Oriol Gual [EMAIL PROTECTED] 
wrote:

 Hi Alexander,
 
 Thanks to your observation I've came to a better solution:
 
 mx:Script
 ![CDATA[
 import mx.events.ValidationResultEvent;
 
 private function checkValidators() : Boolean
 {
 stringvalidation  = stringvalidator.validate().type;
 stringvalidation2 = stringvalidator2.validate().type;
 if ( (stringvalidator == ValidationResultEvent.VALID)  
(stringvalidator2
 == ValidationResultEvent.VALID) ) {
 return true;
 } else {
 return false;
 }
 }
 
 private function sendForm() : void
 {
 if(checkValidators()) {
 //do whatever you have to do to send the form
 } else {
 alert.show(Form is not valid!,Alert);
 }
 }
 private var stringvalidation : ValidationResultEvent;
 private var stringvalidation2 : ValidationResultEvent;
 ]]
 /mx:Script
 
 mx:StringValidator id=stringvalidator source={inputText}
 property=text minLength=3 maxLength=20
  trigger={inputText} triggerEvent=change/
 
 mx:StringValidator id=stringvalidator2 source={inputText}
 property=text minLength=3 maxLength=20
  trigger={inputText2} triggerEvent=change/
 
 mx:Form
 mx:FormItem label=Input some text required=true 
direction=horizontal
 fontWeight=bold textAlign=left
 mx:TextInput id=inputText width=80 maxChars=20/
  /mx:FormItem
 mx:FormItem label=Input some other text required=true
 direction=horizontal fontWeight=bold textAlign=left
 mx:TextInput id=inputText2 width=80 maxChars=20/
  /mx:FormItem
 /mx:Form
 mx:Button id=fromButton label=Send form click=sendForm()/
 
 
 Some explanation and changes:
 
 - Removed the valid/invalid properties of the validators.
 - Added an id for each one.
 - Instead of doing this: if ( (stringvalidator.validate ().type==
 ValidationResultEvent.VALID)  (stringvalidator2.validate().type==
 ValidationResultEvent.VALID) ) which is also correct, I think it's 
better to
 do it with the variables, and then evaluating them, because you 
validate all
 the fields (and the tooltip errors are shown, like you wanted 
Alexander),
 the other way if the first fails the other fields won't be 
validated.
 
 Hope this helps,
 
 Oriol
 
 2006/4/3, Alexander Tsoukias [EMAIL PROTECTED]:
 
   While this does the trick, what if I have 3 inputs? While one 
passes the
  validation the sendForm() will be executed while the other 2 
inputs are
  still unvalidated? I want to make sure all of them are validated 
before
  executing sendForm().
 
  BTW, cool about the on change validation. One thing though... is 
there a
  way to make the error tooltip show up programatically instead of 
having to
  hover over my mouse pointer?
 
  Thanks,
  Alexander
 
  *Oriol Gual  [EMAIL PROTECTED]* wrote:
 
  Hi,
 
  What I do to validate a form, is somethig like this:
 
  mx:Script
  ![CDATA[
 
  private function handleValid(eventObj:ValidationResultEvent) : 
void
  {
  if(eventObj.type==ValidationResultEvent.VALID ) {
  formValid = true;
  } else {
  formValid = false;
  }
  }
  private function sendForm() : void
  {
  if(formValid) {
  //do whatever you have to do to send the form
  } else {
  alert.show(Form is not valid!,Alert);
  }
  }
 
  private var formValid : Boolean = false;
 
  ]]
  /mx:Script
 
  mx:StringValidator source={inputText} property=text 
minLength=3
  maxLength=20
   trigger={inputText} triggerEvent=change valid=handleValid
(event)
  invalid=handleValid(event)/
 
  mx:Form
  mx:FormItem label=Input some text required=true
  direction=horizontal fontWeight=bold textAlign=left
  mx:TextInput id=inputText width=80 maxChars=20/
   /mx:FormItem
  /mx:Form
  mx:Button id=fromButton label=Send form click=sendForm()/
 
  When the user inputs some text in the textinput the validation 
occurs
  automatically ( trigger={inputText} triggerEvent=change) and 
the
  function handleValid is called. Then, when clicking the button 
if the
  variable formValid it's true we can send the form.
 
  By the way, I have a question, what is the meaning of the models 
with flex
  2 and forms? Because they're declared in the examples but the 
validators
  don't use them.
 
  Hope this helps,
 
  Oriol
 
 
  2006/4/2, Dreamer  [EMAIL PROTECTED]:
 
   Alex  Alex,
  
you can put the data be validated in a 
model.like this:
   mx:Model id=order
   email{ email.text }
/email//email is
   a textInput controller's id
  

[flexcoders] Re: MenuBar calling TitleWindow

2006-04-03 Thread angelosalsa
Hi Kleber,
Try this it works!.
Create a Component TitleWindow and call it 

Test.mxml
-
?xml version=1.0 encoding=utf-8?
mx:TitleWindow xmlns:mx=http://www.macromedia.com/2005/mxml; 
xmlns=* layout=vertical 
showEffect=Fade panelAlpha=1 hideEffect=Fade  width=350 
height=225 title=About verticalAlign=middle 
horizontalAlign=center closeButton=false themeColor=haloSilver 
backgroundAlpha=1
mx:Script
![CDATA[
import mx.managers.PopUpManager;
]]
/mx:Script
mx:HBox width=100% height=100%
mx:VBox textAlign=center width=100% height=100%
mx:Label text=Title fontWeight=bold fontSize=20 
color=#c0c0c0 textAlign=center width=100%/
mx:Label text=version fontSize=10 color=#00 
width=100%/
mx:Spacer height=5/
mx:Label text=Copyright fontSize=10 color=#00 
width=100% textAlign=center/
mx:Label text=Other info fontSize=10 fontWeight=bold 
color=#ff0080 width=100% textAlign=center/
mx:Spacer height=2/

mx:ControlBar horizontalAlign=center width=100% 
height=37 verticalAlign=middle direction=vertical
mx:Button label=Ok  
click=mx.managers.PopUpManager.removePopUp(this); width=42/

/mx:ControlBar

/mx:VBox

/mx:HBox  

/mx:TitleWindow

Then in your application mxml file.

TestApp.mxml


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; 
xmlns=* layout=absolute

mx:Script
![CDATA[
import Test;

import mx.core.Application;
import mx.managers.PopUpManager;
import aboutWindow;   

public function showAbout(modal:Boolean):void {
var test:Test = new Test();
test.addEventListener(test, aboutHandler);
PopUpManager.popUpWindow(test, this, modal);
PopUpManager.centerPopUp(test);
}   

public function aboutHandler():void {

}
]]
/mx:Script

mx:Script
![CDATA[

 public function menuHandler(oEvent:Object) {

if (oEvent.menuItem.getProperty(label)=='Tempos de 
Produção'){
showAbout(true);
 }
 }

 ]]
/mx:Script

mx:MenuBar id=myMenuBar x=0 y=30 width=100% 
change=menuHandler(event)  
mx:XML
menuitem label=Home/
menuitem label=Aquisição/
menuItem label=Produção
menuItem label=Tempos de Produção / 
/menuItem
menuitem label=Qualidade /
menuitem label=Vendas /
/mx:XML
/mx:MenuBar
mx:Spacer / 

/mx:Application


Let me know...
Angelo



--- In flexcoders@yahoogroups.com, Kleber Voigt [EMAIL PROTECTED] 
wrote:

 Hi Angelo,
 
 Don`t work for me. The Flash Player shows the follow error:
 --
 TypeError: Error #1034: Type Coercion failed: cannot convert 
 Forms.controleTempos to Class
 at Main/::menuHandler()
 at Main/__myMenuBar_change()
 at flash.events::EventDispatcher/dispatchEvent()
 at mx.controls::MenuBar/eventHandler()
 at flash.events::EventDispatcher/dispatchEvent()
 at mx.controls::Menu/dispatchEvent()
 at mx.controls::Menu/::dispatchMenuEvent()
 at mx.controls::Menu/mouseUpHandler()
 -
 
 And here its my app again:
 
 ?xml version=1.0?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=absolute
 
 mx:Script![CDATA[
 import Forms.*;
 import mx.managers.PopUpManager;
 
 private function menuHandler(oEvent:Object) {
 var test = 'Forms.'[EMAIL PROTECTED];
 PopUpManager.createPopUp(this, test, false);
 }
 ]]/mx:Script
 mx:MenuBar id=myMenuBar labelField=@label showRoot=false 
x=0 y=30
 width=100% change=menuHandler(event) 
 mx:XML
 menuitem label=Home/
 menuitem label=Aquisição/
 menuItem label=Produção
 menuItem label=Tempos de Produção 
data=controleTempos/
 /menuItem
 menuitem label=Qualidade /
 menuitem label=Vendas /
 /mx:XML
 /mx:MenuBar
 mx:Spacer /
 
 /mx:Application
 
 
 If I use ' var test = Forms.controleTempos' it`s works perfect. But 
how I
 wanna call the window dynamically, i need to use the string 
generated by the
 XML node.
 
 There`s a way to transform a string in a class?
 
 Thanks.







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

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

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

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




[flexcoders] Flex SWFs Recovery

2006-04-03 Thread Jorge Antonio Diaz Gutierrez










Hi there. Im
trying to get some of my SWFs from my Flex Project to load them on a Flash
Desktop Projector. Any help?? I really need it.

Thanks









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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] hasOwnProperty inheritance

2006-04-03 Thread David Moylan
I have an object that is a child of the VBox class.  VBox documentation 
states that the hasOwnProperty() method is inherited from Object.  
Shouldn't my class then be able to call hasOwnProperty()?  I get compile 
error Call to a possibly undefined method... currently.

Thanks.

Dave Moylan


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

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

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

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




Re: [flexcoders] Re: Flash Player 7 for Pocket PC?

2006-04-03 Thread JesterXL
The Flex 2 framework exports out into the SWF.  In my tests 3 years ago with 
6, I was seriously impressed with what I saw.  I'd actually be willing to 
bet a Flex 1.5 generated SWF (Flash Player 7) would work as long as the 
useProxy is set to false on all remote objects.

...anyone own a Pocket PC?

- Original Message - 
From: Renaun Erickson [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, April 03, 2006 8:23 PM
Subject: [flexcoders] Re: Flash Player 7 for Pocket PC?


Flash Lite 2 is consider Flash Player 7 version but does not have any
of the Flex Framework so will not play flex swfs.

Renaun

--- In flexcoders@yahoogroups.com, Clint Modien [EMAIL PROTECTED] wrote:

 So uhh.. Charles Freedman here @ yahoo just sent me this link...

 http://www.macromedia.com/software/flashplayer_pocketpc/

 I ran a quick google... news and web... and I didn't find ANYTHING
on this
 being released.

 Will this ver of the flash player actually run a  flex app?

 What about ram usage and processor speed?







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







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

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

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

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




[flexcoders] CursorManager problem?

2006-04-03 Thread sufibaba



Dear Flexors,I am trying to use the busy cursor in a custom actionscript component and I am getting the following error.TypeError: Error #1009: null has no properties. at mx.managers::CursorManager$/setBusyCursor() at CursorTest/::turnOnBusyCursor()---import --import mx.managers.CursorManager;---  Calling function -- private function turnOnBusyCursor():void { // Set busy cursor. CursorManager.setBusyCursor(); }Cheers,Tim






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Putting markers on chart

2006-04-03 Thread Sachin Dharmapurikar



Thanks very much. Ely, I understood now how to add such small extensions.Thank you very much folks.SachinOn 4/3/06, Ely Greenfield 
[EMAIL PROTECTED] wrote:











I figure it's good to take a moment every once and a while 
and prove to myself that what I'm saying is actually true ;)

See attached.

Ely.



From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of Jonathan 
Miranda



If you get time to do 
this Sachin, love to see what you produce code-wise….don't got time to tinker 
with it at the moment myself J






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com









  
  
SPONSORED LINKS
  
  
  


Web site design development
  
  

Computer software development
  
  

Software design and development
  
  



Macromedia flex
  
  

Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group flexcoders on the web.

  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
.



  















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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Re: Flex2B2 - XML.contains()

2006-04-03 Thread Matt Chotin
Sorry, my bad.  XML.contains is basically an equality test.
XMLList.contains will tell you whether the item is in there.

So if I do this it should work: xml1.children().contains(xml1.Report[0])

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bhaq1972
Sent: Monday, April 03, 2006 1:37 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex2B2 - XML.contains()

Nope. Still failing the if test.
regards
bod

--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:

 Yes, contains is by reference, so it doesn't recognize your inline
 definition as being the same as what's in the XML object.
 
 So this would work:
 
 var test:XML = xml1.Report[0];
 if (xml1.contains(test))
 {
   trace('found');
 }
 
 
 Matt
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of bhaq1972
 Sent: Friday, March 31, 2006 7:31 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex2B2 - XML.contains()
 
 Just trying out this method. the first 2 if tests are failing (not 
 getting traces). is that correct?
 
 var xml1:XML =Root  

Report / 
Detail /
   /Root;
   
 if(xml1.contains(Report /))
 {
  trace(report found);
 }
 if(xml1.contains(Detail /))
 {
  trace(detail found);
 }
 if(!xml1.contains(Me /))
 {
  trace(Me not found);
 }
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links







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



 




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

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

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

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





RE: [flexcoders] Flex 2.0 b2: SharedObject

2006-04-03 Thread Matt Chotin










Sorry, I dont have strong
confirmation but Ive heard rumors internally that we had real problems
with remote SOs in Beta 2 but apparently are working again in our mainline. Its
not the same issue however.



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Stefan Richter
Sent: Monday, April 03, 2006 11:36
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex 2.0
b2: SharedObject





Would the remote SO problems I outlined
also be connected to this in some way?















From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt
 Chotin
Sent: 03 April 2006 18:07
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex 2.0
b2: SharedObject

I couldn't find a way to get this to work currently. I talked to
the
Player team and we agreed we want to find a way to
make this work so a
bug has been filed. I cannot guarantee it
will get through for 8.5 but
we realize it does affect customers so we'll do
our best.

Matt

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
Behalf Of tyombria
Sent: Monday, March 27, 2006 5:16 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 2.0 b2: SharedObject

Hi, all.

I've got a problem with a SharedObject.

I run two apps simultaneously.
The following operators depict applications
activities:

1. app1:
so:SharedObject = SharedObject.getLocal('so',
'/');
so.data.first = 'first';
so.data.second = '';
so.flush();

2. app2:
so:SharedObject = SharedObject.getLocal('so',
'/');
trace( so.data.second ); // outputs ''

3. app1:
so.data.second = 'second';
so.flush();

4. app2:
so = SharedObject.getLocal( 'so', '/' );
trace(so.data.second); // ouputs ''



In the previous version (as 2.0) I could read data
written in the 
shared object by other app (without restarting) by
the following 
trick:

in app2 (step 4):
delete so;
so = SharedObject.getLocal( 'so', '/' );
trace(so.data.second); // ouputs 'second'



Can I implement needed functionality in the flex
2.0?








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

Yahoo! Groups Links














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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Re: Security sandbox violation using PHP, APACHE MYSQL

2006-04-03 Thread Matt Chotin
Well your setup sounds pretty straightforward so not sure why it isn't
working.  I'm assuming useProxy=false (or isn't specified) on your
HTTPService.

The port that you access the SWF is the same as the PHP?

http://localhost:1234/myswf.swf
http://localhost:1234/myphp.php

Not much more I can ask I think, I assume you didn't do any funky
compiler settings like -usenetwork...

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of lift69boy
Sent: Monday, April 03, 2006 12:48 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Security sandbox violation using PHP, APACHE 
MYSQL

yes to all your questions...I'm calling the php script from my mxml 
both of which are on localhost,  I am running my flex project in the 
web browser. It seems a pretty simple set up (based on Mike Potters 
exampleperhaps youve seen it)...flex project running on apache 
localhost, php querying mysql, both on localhost...I know nothing 
about we server architecture so maybe its some config I'm missing 
here...
thanks again Matt
Ben 
--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:

 I guess I misunderstood, are you using HTTPService to hit your 
PHP?  And
 the PHP is on localhost?  Are you accessing the SWF using a web 
browser
 from localhost as well?
 
 Matt
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of lift69boy
 Sent: Sunday, April 02, 2006 1:08 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Security sandbox violation using PHP, 
APACHE 
 MYSQL
 
 Cheers Matt
 Forgive my ignorance but could you please define main 
  otherI've configured my project to run on localhost, my php 
 script runs no probs on localhost, i've gone down the proxy route 
 but still the same error. I've looked through Apache  PHP config  
 nothing obvious here. I'm certain I'm making a schoolboy error 
 somewhere...
 Really appreciate your help
 Ben
 
 
 --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote:
 
  What are you loading?  Looks like the main SWF is on one domain 
 and the
  other SWF is on another domain?  You might need to do
  Security.allowDomain work?
  
  -Original Message-
  From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On
  Behalf Of lift69boy
  Sent: Friday, March 31, 2006 4:56 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Security sandbox violation using PHP, 
APACHE 
 
  MYSQL
  
  hi allnot a new question but still can't find the answer...
  
  i think this is more of a flash security issue but I get the 
 following 
  error when running my project...
  Error: code:Client.CouldNotDecode string:'Error #2070: Security 
 sandbox 
  violation: caller '%s' may not access Stage owned by '%s'.' 
  detail:'null'
  architecture is flexphpmysql running on apache.
  i've tried the crossdomain file in many places but from reading 
 this  
  other forums, it is where it should be i.e. on the web server 
root.
  i've pulled all my hair out  will soon progress to chopping my 
 legs 
  off in frustration
  any help greatly appreciated
  cheers
  ben 
  
  
  
  
  
  --
  Flexcoders Mailing List
  FAQ: 
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  Yahoo! Groups Links
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links









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



 





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

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

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

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




RE: [flexcoders] Find Function

2006-04-03 Thread Matt Chotin
As in findFirst is always returning true?  If findFirst returns false
cursor.current will be on the item from before, it won't set itself to
beforeFirst or anything.

Are you sure your comparator is accurate?

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mepaninaresh
Sent: Monday, April 03, 2006 3:57 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Find Function

The findFirst always returns a result by default, even when no match 
is found. Default being the first record. It applies to findLast and 
findAny.

Is it possible to capture this ?

Thanking you for any help.







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



 




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

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

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

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





RE: [flexcoders] Variable passing between Flex and ASP

2006-04-03 Thread Matt Chotin
Maybe you should be looking into HTTPService?  You could then use
resultFormat=text for reading a simple value back.  Or you could write
XML back and have the HTTPService parse it for you.

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of vyasajay
Sent: Monday, April 03, 2006 4:52 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Variable passing between Flex and ASP

 Hi,
I have created basic login page in Flex 2.0.
I am trying to send username and password to ASP page which is
happening and i can trace the variables. I am not able to send
variable back to Flex. I do not know command to read it back in Flex.
Find below the AS function written in the Flex mxml file:

// variable to store result from ASP page..
var success:String;

// Function to send variables to ASP page..
function fnSendData():void
{
var secondsUTC:Number = new Date().time;
var dataXml:XML =
logintime{secondsUTC}/timeusername{userName.text}/usernamepas
sword{pass.text}/password/login;

var url:String = http://localhost/flex/workplace/login.asp;;
var request:URLRequest = new URLRequest(url);
var variables:URLVariables = new URLVariables();
variables.exampleSessionId = new Date().getTime();
variables.dataXML = dataXml;
request.data = variables;
sendToURL(request);
}

I am sending the sucess variable back using following ASP code:
Response.Write success=true

Regards,
Ajay







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



 




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

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

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

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




RE: [flexcoders] Re: Few issues

2006-04-03 Thread Matt Chotin
I'm not a CF person so not sure what the setup needed to be for the
gateway.  Make sure that crossdomain.xml is available via port 80
(Default port) even if the gateway is on another port.

I think the Tree examples should show how events are fired and whatnot.
Many of the events are the same as the List classes.

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of angelosalsa
Sent: Monday, April 03, 2006 8:29 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Few issues


Thanks Matt,
It is a typo, it was http://192.168.1.103/flex2gateway/
I was trying other stuff to make it work and I copied the wrong thing.
the above though still doesn't work Any ideas?

About functions and methods, what I mean is every example I've seen 
for the tree shows when you click on the the tree node the label show 
you've click on something, nothing was shown of how to load other 
mxml file or fire up events or functions, 
I've played around with the menubar and now I figured it out, but I 
cant seem to figure the tree yet, I will try again tonight maybe I 
will have a better luck after a good sleep. 
Thanks again


--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:

 Well the 80{context.root} in your flex-enterprise-services.xml file
 looks wrong to me, is that a typo?
 
 You can refer to items in a ViewStack by id as long as they have 
been
 created.  Or you could tell the ViewStack to change its 
selectedIndex
 for example when you click on a Tree node.
 
 I'm not sure what you mean by load methods from the Tree and 
MenuBar.  
 
 Matt
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of angelosalsa
 Sent: Friday, March 31, 2006 8:21 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Few issues
 
 Please note, The 2nd Issue was resolved, if someone needs help on 
 that, please post and I will try to document what I did...
 1st issue is driving me nuts...
 3nd issue, also how can we load methods() from the Tree and MenuBar
 Angelo 
 
 
 --- In flexcoders@yahoogroups.com, angelosalsa angelosalsa@ 
 wrote:
 
  Hi all.,
  1st issue: 
  My remoteobjects and webservices work fine from my local server 
but 
  when I try to access the site from the outside world, I get only 
 the 
  hourglass loading with no errors but nothing shows,
  My crossdomain is in both C:\Inetpub\wwwroot\crossdomain.xml and 
  incase C:\CFusionMX7\wwwroot\crossdomain.xml, here is what the 
  crossdomain file look like. 
  ?xml version=1.0?
  !DOCTYPE cross-domain-policy 
  SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-
policy.dtd
  cross-domain-policy
  allow-access-from domain=* /
  /cross-domain-policy
  My local host is running on http://192.168.1.103:8701 and the 
  flexenterprise-services.xml has this: 
  endpoint uri=http://192.168.1.103:80
{context.root}/flex2gateway/ 
  all my components and services are in 
  C:\Inetpub\wwwroot\CFIDE\components\...
  any ideas? 
  2nd issue:
  My Application have many components on right hand of the App. I 
 have 
  an Accordion that has a TabNavigator and in the TabNavigator I 
have 
  a component that search the database for employees, right now the 
  result is bind to a TileList with a listItemRenderer, in that 
  component 'detail State', what i want to do is: insted of the 
 result 
  getting back to the TileList, I would like to bind this 
  ArrayCollection to another component 'empDetails.mxml' DataGrid 
  which is on the mainApp as ns1:empDetails /
  I played around with loose coupling but on my matter it doesnt 
look 
  like it would work unless I can make the ArrayCollection as a 
 public 
  object MAYBE!
  Right now this is how I am getting back the results: 
  --empSearch.mxml--
  mx:ArrayCollection id=searchResults 
  source={mx.utils.ArrayUtil.toArray
 (EmployeeService.search.result)}
  /mx:ArrayCollection
  Also played aroung with Calling component but I couldnt figure 
out 
  how to pass the results to dataProvider in the 'empDetails.mxml' 
  3ed issue:
  using the Tree, how would I call other components in a ViewStack 
to 
  view?
  Thanks
  Angelo
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links








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



 




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

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

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

* Your use of Yahoo! Groups 

RE: [flexcoders] Configuring RemoteObject destinations (Flex 2)

2006-04-03 Thread Matt Chotin










No, FB doesnt have build profiles
in this release, sorry. I think we were expecting folks with this kind of
situation to have bigger build systems that would run the compiler via Ant
scripts or something similar.



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jason Y. Kwong
Sent: Monday, April 03, 2006 8:37
AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
Configuring RemoteObject destinations (Flex 2)





For our production
environment, our SWFs are served from the same machine that our ColdFusion
server resides on, so using {server.name} or
{context.root} works fine when configuring destinations. During
development, I compile and test SWFs locally. I don't run ColdFusion
locally--we have a separate development server. So in this case, using { server.name} or {context.root} doesn't
work. I have to change the flex-services.xml file and put in the
development server's IP address. It's just awkward to have to manually do
this.

What I miss is the convenience of build
profiles as seen in some other IDEs. I can have one for development
and one for production, each having different compiler options (eg. so I can
specify different flex-services.xml files). At least that's one way to do
it. Can I do something like this with the current Flex Builder? I
haven't found a way.





On 3/15/06, Peter Farland [EMAIL PROTECTED]
wrote:



Additionally, you could configure several
channels for a destination and rely on channel failover so that it will look
for one then the other... 

















From: flexcoders@yahoogroups.com
[mailto:
flexcoders@yahoogroups.com] On Behalf Of Jason
Y. Kwong
Sent: Wednesday, March 15, 2006
7:41 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Configuring
RemoteObject destinations (Flex 2)





This came up cause I was
configuring my Flex 2 app to communicate with ColdFusion, but I suppose it
applies to RemoteObject in general. In order to tell your app the
location of a web service destination, we're told to add something like this to
the compiler command line: 

--services=C:\CFusionMX7\wwwroot\WEB-INF\flex\flex-enterprise-services.xml 

Now, my first question is,
since the file flex-enterprise-services.xml resides on the server (be it
ColdFusion or FES) and you typically don't do
your client development on the same machine as the production server, how would
this work in the general case? 

Anyway, so then I decided to copy the file to my development
machine and then manually changed localhost to the server's IP
address in the channel configuration. I compiled my app and it worked
fine. But now it appears that the server's address is compiled directly
into the swf. Are we unable to dynamically assign server addresses at runtime?












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






SPONSORED
LINKS 




 
  
  Web site design development 
  
  
  Computer software development 
  
  
  Software design and development 
  
 
 
  
  Macromedia flex 
  
  
  Software development best practice 
  
  
  
  
 










YAHOO!
GROUPS LINKS 




 Visit your group flexcoders
 on the web.
  
 To unsubscribe from this group, send an
 email to:
  [EMAIL PROTECTED]
 
 Your use of Yahoo! Groups is subject to the
 Yahoo! Terms
 of Service .























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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Find Function

2006-04-03 Thread Matt Chotin
The cursor find function can't take e4x expressions.  It can only do
exact match searching of what's in the ICollectionView.  So you're going
to need to setup the find a little differently, perhaps find the node
using e4x, then get its index, then seek to it.

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mepaninaresh
Sent: Monday, April 03, 2006 8:51 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Find Function

I can't seem to get complex xml elements working.

Example 1 works.
private function findFirstName():void
{
 createSort();
 var cursor:IViewCursor = myXMLListCollection.getCursor();
 var values:Object = {FreeText: nameInput.text};
 cursor.findFirst(values);
}

Example 2 does not work.
private function findFirstName():void
{
 createSort();
 var cursor:IViewCursor = myXMLListCollection.getCursor();
 var values:Object = {Company.(@Type=='Subject').CompanyId: 
nameInput.text};
 cursor.findFirst(values);
}
-

mx:DataGrid id=myCustomerCountFilterGrid1 width=800% 
height=600% dataProvider={myXMLListCollection}
 mx:columns
  mx:DataGridColumn columnName=FreeText headerText=Reference/
  mx:DataGridColumn columnName=Name headerText=Name width=250
   mx:cellRenderer
mx:Component
 mx:Link label={dataObject.Company.(@Type=='Subject').Name}/
/mx:Component
   /mx:cellRenderer
  /mx:DataGridColumn
  mx:DataGridColumn labelFunction=setRegistrationNo 
headerText=Registration No/
 mx:DataGridColumn labelFunction=setCreditLimit 
headerText=Monthly Credit Limit/  
 mx:DataGridColumn labelFunction=setInsuredLimit 
headerText=Insured Limit width=40/
 mx:DataGridColumn labelFunction=setOutStandingBalance 
headerText=Outstanding Balance/   
 /mx:columns
/mx:DataGrid

Thanks for any help.







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



 




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

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

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

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




RE: [flexcoders] Flex 2 B2: Menu interfering with Alert popup

2006-04-03 Thread Matt Chotin










Forwarded on, thanks.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jason Y. Kwong
Sent: Monday, April 03, 2006 11:00
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 2 B2:
Menu interfering with Alert popup





Ok, this is a pretty obscure bug, but the scenario isn't so
weird. The following app creates a menu and has a button that causes it
to be shown. When the menu item is clicked, it pops up an alert box:

 ?xml version=
1.0 encoding=utf-8?
 mx:Application
xmlns:mx=http://www.adobe.com/2006/mxml
xmlns=* layout=absolute creationComplete=init()

 
mx:Script
 
 ![CDATA[
 
  import mx.controls.Menu;
 
  import mx.controls.Alert;
 
  
 
  private var menu: Menu;
 
  
 
  private function init(): void
 
  {
 
   var dp: XML =
item1 label=Item1/
 
   menu =
Menu.createMenu(null, dp);
 
   menu.labelField =
@label;
 
   menu.setStyle(openDuration, 0);
 
  
menu.addEventListener(change, onChange);
 
  }
 
  
 
  private function onChange(event: Event):
void
 
  {
 
  
Alert.show(Testing, title, Alert.YES);
  
 }
 
 ]]
 
/mx:Script
  
 
mx:Button x=10 y=10 label=Button
click=menu.show()/ 
 /mx:Application


The problem is that when the menu item is clicked
a second time, the alert popup
does not appear but the whole screen still goes into a modal state. With
no popup to dismiss, you can't get out of the modal state and your app is
frozen out. Now, this happens only if the menu's openDuration is set to 0
and you specify some button flags for the alert window (eg. Alert.YES) .
I know, sort of obscure, but not an unreasonable scenario (heck, this happened
in my app).








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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Flex beta 2 - add, remove and moving DataGridColumn

2006-04-03 Thread Matt Chotin










The columns are stored in an Array.
You simply need to manipulate the array using operations like splice.
Then make sure to call invalidateDisplayList to get it to redraw.



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Bruno Martins
Sent: Monday, April 03, 2006 11:05
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex beta 2
- add, remove and moving DataGridColumn







I tryed almost every thing but I don't know how to
add, remove and moving a column. 





Please send a example. 











Tks..











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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Why can't I declare a uint in a declarative way? : mx:uint/

2006-04-03 Thread Matt Chotin










We werent sure how popular this was
so I dont think we did it. Ill file an enhancement but no
guarantees.



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Carlos Rovira
Sent: Monday, April 03, 2006 12:24
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Why can't I
declare a uint in a declarative way? : mx:uint/





Hi,

I'm curious. I was trying to create an uint
variable inside a custom component in a declarative way but I can't, I mean:

mx:uint id=aUintVar/

Why this is not possible due to the fact that I
can do it with oter types like mx:Boolean/ or mx:String/ ? 

I know that I can workaround this and declare the
var inside a Script tag, but I think I should be able to do it.


-- 
::| Carlos Rovira
::| http://www.carlosrovira.com








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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] CursorManager problem?

2006-04-03 Thread Matt Chotin










Is this part of a Flex project or AS
only? You probably need the full framework available for CursorManager.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of sufibaba
Sent: Monday, April 03, 2006 6:06
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders]
CursorManager problem?





Dear
Flexors,

I am trying to use the busy cursor in a custom
actionscript component and I am getting the following error.

TypeError: Error #1009: null has no properties.
 at
mx.managers::CursorManager$/setBusyCursor()
 at
CursorTest/::turnOnBusyCursor()

---import
--

import mx.managers.CursorManager;

---
 Calling function --

 private
function turnOnBusyCursor():void
nb!
sp; {

// Set busy cursor.

CursorManager.setBusyCursor();

 }

Cheers,

Tim








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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] hasOwnProperty inheritance

2006-04-03 Thread Matt Chotin
1.5 or 2.0?  I think it should probably work.  What if you do
this[hasOwnProperty](arg)?  Does it work or give you a runtime error?

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of David Moylan
Sent: Monday, April 03, 2006 5:45 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] hasOwnProperty inheritance

I have an object that is a child of the VBox class.  VBox documentation 
states that the hasOwnProperty() method is inherited from Object.  
Shouldn't my class then be able to call hasOwnProperty()?  I get compile

error Call to a possibly undefined method... currently.

Thanks.

Dave Moylan


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



 




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

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

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

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




[flexcoders] Re: Flash Player 7 for Pocket PC?

2006-04-03 Thread Renaun Erickson
They need to make flash player 6 or flash lite 2 for Mobile 5 then I
could test, lol.

I attended the webinar on Flash Lite 2 and asked about Flex, they said
it is not possible.  

Renaun

--- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote:

 The Flex 2 framework exports out into the SWF.  In my tests 3 years
ago with 
 6, I was seriously impressed with what I saw.  I'd actually be
willing to 
 bet a Flex 1.5 generated SWF (Flash Player 7) would work as long as the 
 useProxy is set to false on all remote objects.
 
 ...anyone own a Pocket PC?
 
 - Original Message - 
 From: Renaun Erickson [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Monday, April 03, 2006 8:23 PM
 Subject: [flexcoders] Re: Flash Player 7 for Pocket PC?
 
 
 Flash Lite 2 is consider Flash Player 7 version but does not have any
 of the Flex Framework so will not play flex swfs.
 
 Renaun
 
 --- In flexcoders@yahoogroups.com, Clint Modien cmodien@ wrote:
 
  So uhh.. Charles Freedman here @ yahoo just sent me this link...
 
  http://www.macromedia.com/software/flashplayer_pocketpc/
 
  I ran a quick google... news and web... and I didn't find ANYTHING
 on this
  being released.
 
  Will this ver of the flash player actually run a  flex app?
 
  What about ram usage and processor speed?
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links







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

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

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

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




RE: [flexcoders] reading component variables into mainApp

2006-04-03 Thread Matt Chotin
You can't do binding with static variables in Flex 2.  I would create an
instance of your Id class and have it live on the main application.
Make sure to make the properties [Bindable].  Then in your component you
can simply update Application.application.portalIdentity.email etc.

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of wi1df1ower
Sent: Monday, April 03, 2006 11:13 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] reading component variables into mainApp

okay...either I am soo far wrong...or I am soo close, and missing the
obvious.  Either way, I hope you can help:

Its a simple problem, I have a main application page, an importable
.as file, and a component file.
In the component file, I issue a query to a database and return values.

I would like to write those values as global to the main application.
I believe I accomplish this via my importable .as file.
However, I cant get the databinding in the main app page, to read a
value change on the .as file.
I dont know how to accomlish this (if I should) with a dispatch event,
since I am returning the values from the database, and not via an
interaction with a form.  

below is the code so far:

main app:
mx:Panel title=Welcome to CCPS Portals width=475
height=500 x=20 y=30
mx:Label id=myLabel1 text={portalIdentity.email}/
/mx:Panel
login x=500 y=30/

.as file:
public class Id
{
// Properties   
static public var email:String;
static public var tchid:String;
static public var fname:String;
static public var lname:String;
static public var role:String;

public function Id()
{
}

}

component file:
import portalIdentity;
public var vEmail:String;

private function handleLoginEvent(event:ResultEvent):void {
lblProgress.text = logging in...;
var retItem:Object =
event.result[0].error;


portalIdentity.email =
ObjectUtil.toString(event.result[0].email);

}  

Thanks in advance for any help





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



 




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

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

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

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




[flexcoders] BETA 2: Tough one... LOADER

2006-04-03 Thread Alex Alex
Hi all,

Situation:

Assuming we have a TitleWindow which contains a TabNavigator with 5 
tabs.

Each tab is a custom canvas component ie: myComp:MyProfile (file is 
MyProfile.mxml).

I do not want to load all 5 custom components when opening the 
TitleWindow. Instead I want to put a loader while changing tabs until 
the new tab (custom component) fully loads.

Even as a nice effect, I would like to have the loader before loading 
the contentent.

Thanks,
Alexander





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

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

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

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




Re: [flexcoders] Why can't I declare a uint in a declarative way? : mx:uint/

2006-04-03 Thread Carlos Rovira



Thanks Matt,IMHO, I know this is not strictly necesary but would be good for consistencyOn 4/4/06, Matt Chotin 
[EMAIL PROTECTED] wrote:
















We weren't sure how popular this was
so I don't think we did it. I'll file an enhancement but no
guarantees.



Matt











From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Carlos Rovira
Sent: Monday, April 03, 2006 12:24
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Why can't I
declare a uint in a declarative way? : mx:uint/





Hi,

I'm curious. I was trying to create an uint
variable inside a custom component in a declarative way but I can't, I mean:

mx:uint id=aUintVar/

Why this is not possible due to the fact that I
can do it with oter types like mx:Boolean/ or mx:String/ ? 

I know that I can workaround this and declare the
var inside a Script tag, but I think I should be able to do it.


-- 
::| Carlos Rovira
::| http://www.carlosrovira.com








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com









  
  
SPONSORED LINKS
  
  
  


Web site design development
  
  

Computer software development
  
  

Software design and development
  
  



Macromedia flex
  
  

Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group flexcoders on the web.

  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
.



  










-- ::| Carlos Rovira::| http://www.carlosrovira.com






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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.