[flexcoders] How do I parse this XML?

2006-12-11 Thread Prakaz

Hi,

I have a xml file which looks like this:

?xml version=1.0 encoding=UTF-8?
office:document-content xmlns:office=http://openoffice.org/2000/office;
xmlns:fo=http://www.w3.org/1999/XSL/Format; xmlns:xlink=
http://www.w3.org/1999/xlink; office:version=1.0
office:class=presentation

style:style style:name=dp1 style:family=drawing-pagestyle:properties
presentation:transition-style=fade-from-left
presentation:transition-speed=fast presentation:background-visible=true
presentation:background-objects-visible=true/
/style:style

style:style style:name=dp2 style:family=drawing-page
style:properties/
/style:style
/office:document-content

The XML loads normally and the whole XML can be traced. I tried to use
e4xto parse this xml, but no luck.

The problem arises when trying to access the nodes, child nodes or
attributes. The regular e4x way to access the nodes and attributes did not
work with this xml.

Can anyone help me with parsing this XML?

Thanks in advance,

P


Re: [flexcoders] mm.cfg where is this file?

2006-10-28 Thread Prakaz



that file got you too :-)

You will never find that file in your system if you havent created it yourself.

You have to manually create that file. To see where you should create this file refer to livedocs,the folderwill differ depending on your OS : 
http://livedocs.macromedia.com/flex/2/docs/1528.html#179436

cheers!

P
On 10/28/06, tickaellem [EMAIL PROTECTED] wrote:





I am trying to get some flex/cf debug happening? mm.cfg where is this file? I cant find this file on my system anywhere. can someone please post the required syntax? thanks in advance. 
Ticka 

__._,_.___





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

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



[flexcoders] Localizing using different languages

2006-10-27 Thread Prakaz
Hi Guys,

I have a textfield and a list beside that which lists out 3 languages: 
japanese, chinese, korean.

What i'm trying to do is pretty simple:
When i select japanese and type in the text field, the font should 
appear in japanese
when i select chinese and start typing the text font should be chinese 
and so on... 

how do i go about doing this ?

Thnx in advance




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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] HTTPService url problem

2006-10-25 Thread Prakaz



try this:

mx:HTTPService id=myservice  url="">
http://testdrive.local.net/cgi-bin/get_warnings_data.cgi showBusyCursor=true useProxy=false method=POST result=loginSuccessHandler();
 fault=loginErrorHandler(); /public function callService():void{
var objParameters:Object=new Object();// Collect parameter to sendto HTTPService
 objParameters.code='MA';
 objParameters.pcode=TO
 // Additional parametersobjParameters.parameter1='value1';objParameters.parameter2='value2';

// send HTTPRequest
 myservice.send(objParameter);}

try putting all your parameter inside an object and use HTTPservices' send() method to pass this parameter to your backend code. 

Hope that helps,
-P



On 10/25/06, jbbec_fr [EMAIL PROTECTED] wrote:





Hi all,I am a newbie in flex and i apologize if my posts seem tobe dummies one...I want to populate a datagrid and i use HTTPService to do it.The url parameter is like this :url=""  href="http://testdrive.local.net/cgi-bin/get_warnings_data.cgi?" target="_blank">
http://testdrive.local.net/cgi-bin/get_warnings_data.cgi?code=MApcode=TOwhen i save the file i get an error :The reference to entity pcode must end with the ';' delimiter.can anyone help me ?
thyJB 

__._,_.___





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

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] Re: writing and using classes

2006-10-18 Thread Prakaz



i strongly recommend the following books if u want to get serious about OOP
1) Essential Actionscript 2.0 - http://www.amazon.com/Essential-ActionScript-2-0-Colin-Moock/dp/0596006527/sr=1-4/qid=1161183848/ref=sr_1_4/102-9410879-8010537?ie=UTF8s=books


2) Head first design patterns - this book is writtenfor Java but the same OO concepts can be used in flash (must buy) - 
http://www.amazon.com/Head-First-Design-Patterns/dp/0596007124/sr=8-1/qid=1161181139/ref=pd_bbs_sr_1/102-9410879-8010537?ie=UTF8


P
On 10/18/06, amigo_fd [EMAIL PROTECTED] wrote:
 





Thanks a lot, Mikeused public static function String2Dateand CommonFunctions.String2Date(...)I'm a search-trialanderror-and-search-again type of programmer. Justlearning as I need something :-) 
Any suggestions on good OO-related basic learning sites ?--- In flexcoders@yahoogroups.com 
, Michael Labriola [EMAIL PROTECTED] 
wrote:  Frank,  I think you might be approaching this from the wrong perspective. In particular, if you don't have object oriented programming experience, 
 you may want to take a few minutes and read some of the many tutorials available online.  As Flex is a pretty OO heavy environment, without this knowledge, I think you are going to get stuck on a lot of issues. 
  That said, you have two choices in the code you wrote below:  You could make your method static:  public function String2Date becomes- public static function String2Date 
  Then you could access it as: dfShipping.selectedDate = CommonFunctions.String2Date(x.result[0].shipdatum[0].toString());  Or you need to create an instance of this class first. 
  var cf:CommonFunctions = new CommonFunctions(); dfShipping.selectedDate = cf.String2Date(x.result[0].shipdatum[0].toString());  I do encourage you to spend a little time reading about Object 
 Oriented programming, either from an Adobe resource or just an online tutorial. It will help you immensly.  --Mike  --- In 
flexcoders@yahoogroups.com, amigo_fd frank@ wrote:   Hello,I want to make a class with a function I want to reuse in my  application. This is new for me, so I need some help ... 
I've created a file CommonFunctions.as in the root of my application  with this code:package {  public class CommonFunctions {
  public function String2Date(doString:String):Date {  var doYear:int = Number(doString.substr(0,4));  var doMonth:int = Number(doString.substr(5,2));  var doDay:int = Number(doString.substr
 (8,2));  var doHour:int = Number(doString.substr(11,2));  var doMin:int = Number(doString.substr(14,2));  var doSec:int = Number(doString.substr(17,2)); var myDate:Date = new Date(doYear, doMonth, doDay, doHour, doMin, 
  doSec);  // showErrorDialog(doString + + + doYear + + + doMonth + + +  doDay + + + doHour + + + doMin + + + doSec); 
return myDate;  }  }  }Now, how do I use in it on an other mxml-file in that application ?  This does not work:  
  dfShipping.selectedDate =  String2Date(x.result[0].shipdatum[0].toString());Thanks a lot,  Frank 

 

__._,_.___





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

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] how to make a hyperlink in text call a function

2006-10-11 Thread Prakaz



You can accomplish this in Flex 2 by using the TextEvent class:
http://livedocs.macromedia.com/flex/2/langref/flash/events/TextEvent.html


from livedocs:
import flash.text.TextField;import flash.events.TextEvent; var tf:TextField = new TextField();tf.htmlText = a href=''Click Me./a;
tf.addEventListener(link, clickHandler);addChild(tf);function clickHandler(e:TextEvent):void { trace(e.type); // link trace(e.text); // myEvent}pass the function nameyou want tocall tothe link Event, in this case its clickHandler.
This was accomplished in the previous version of AS using asfunction.
differences between ActionScript 2.0 and 3.0:
http://livedocs.macromedia.com/flex/2/langref/migration.html

Hope that helps,

P


On 10/11/06, hank williams [EMAIL PROTECTED] wrote:





I want to have a block of text that executes a function when the userclicks the hyperlink. Could someone give me an example or point me tothe proper formatting.ThanksHank
 

__._,_.___





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

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



[flexcoders] Creating custom logger target

2006-10-10 Thread Prakaz



Hi everyone, 
I have a problem which looks simple but i've been struggling to get it right for quite sometime.Basically i'm trying to create a debugger/ tracer to log and display messages at run-time within the application. So far i've usedtrace(), it works great but it outputs the message to an external file and also a newer trace message would replace the old ones.
The whole idea is to create a logger which at the end could be a as simple as a component with just a HTML text field and all trace messages are sent and displayed there.
As this link says about Flex's logging API: http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm?href="">"Destination:The destination is where the log message is written. Typically, this is a file, but it can also be a console or something else, such as an in-memory object. The default destination for TraceTarget is the flashlog.txt file"In my case i want the destination to be the HTML text field or -in-memory object which i could use later to create an xml.After going through livedocs thoroughly and trying few randoms thing here and there i've not still been able to figure out how to creat a custom target. traceTarget send the messages to flashlog.txt and MiniDebugTarget could also be used, but how do i get the message sent to a custom location??Thanks in advance,P

__._,_.___





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

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] Send Http Service

2006-10-07 Thread Prakaz



I took for granted the fact that send() was being invoked at intervals. I assusemed that the problem occured after doing that.

Yes, definetely calling the send() method periodically is the way to go.

P
On 10/7/06, Tracy Spratt [EMAIL PROTECTED] wrote:







Without FDS, using setInterval to invoke send() periodically is the only to keep app data current.


Tracy






From: [EMAIL PROTECTED]
ups.com [mailto:[EMAIL PROTECTED]
ups.com] On Behalf Of PrakazSent: Friday, October 06, 2006 1:41 PMTo: [EMAIL PROTECTED]
ups.comSubject: Re: [flexcoders] Send Http Service






You could probably bind the result directly tothe columns of your datagrid. So whenever you make a new request and the result changes, it is automatically reflected in the datagrid without you having to worry about a thing. 




Something similar can be found in Flex docs where the result of a HTTPrequest is bound to the datagrid columns. A bonus cause this example, like your application, is a RSS reader.



http://livedocs.macromedia.com/flex/2/langref/mx/rpc/http/mxml/HTTPService.html#includeExamplesSummary 



Hope that helps,



-P

On 10/6/06, KP 
[EMAIL PROTECTED] wrote: 





Well let me first tell you what I am doing.

I have a httprequest (RSS) news and I am displaying that news in datagrid.

The problem is if on a server news gets changed it should reflect in datagrid also I mean to say that latest news should display on to datagrid. 


For this I am using setinterval function which will send httprequest every 5 min. 

Can any one suggest some other approach for achieving same.

Thanks
Kumar


 

__._,_.___





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

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



[flexcoders] Error(s) not shown as error(s)

2006-10-07 Thread Prakaz



Hi Everybody,

I just came across this strangeproblem where errors in Flex code are not shown as errors!

Let me explain:

Create a simple class [dummyClass.as]package com.some.package.path{public classdummyClass{ private var str:String;public function dummyClass():void{ // Constructor
 str=test string; trace(str); // trace the text}}}This works fine, lets go to the next step

Add some errors to the classpackage com.some.package.path
{public classdummyClass{ private var str:String;public function dummyClass():void{ // Constructor error_variable1
=test string; // Access of undefined propertyerror_variable1 
error_variable2=test string; // Access of undefined propertyerror_variable2 
error_variable3=test string; //1 more error str=test string; trace(str); // trace the text}}}
FlexBuilder shows ared cross sign x preceding the threeindicating that there is something wrong there

Now add a variable declaration ouside the scope of the classpackage com.some.package.path{
public varfoo:Boolean; // Somedeclaration addedoutside the scope of theclass(by mistake)public classdummyClass{ private var str:String;public function dummyClass():void{ // Constructor
 error_variable1=test string; //This line is no more displayed as an error by Flex Builder
 error_variable2=test string; //Neither is this one error_variable3=test string; 
//Nor this str=test string; trace(str); // trace the text}}}

Now, here is where the problem starts
Those three lines of code are no more shown as errors. The red cross just disappears as soon as you add the variable declaration outside the scope of the class dummyClass.
I happened toadd that variableby mistake and everytimeI ran the application it would say that there are error(s). I ran through every class and there was no indication(the red cross) whatsoever that there was a problem anywhere. 


After losing some hair i managed to find that variable declaration. And as soon as i commented that line, all red crosses re-appeared again! walla!!

I dont know if its only me or if someone else has has come across this issue. Could you guys let me know if the same thing happens at your end?



Thanks

P


__._,_.___





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

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] Re: Error(s) not shown as error(s)

2006-10-07 Thread Prakaz



It more about Flex Builder than the compiler.

The compiler does the right thing, it informs the user that there are error(s) in the code and does not compile it either.

This was where my problem actually started. I had error(s) in my code but i was not able to locate it since Flex Builder did not indicate that i was making a mistake(due to that variable declaration). And the code did not compile either. So i knew there WAS a problem but i just could not locate it. I lost quite some hair on that one :-) 


P
On 10/8/06, Ralf Bokelberg [EMAIL PROTECTED] wrote:





It looks like packages are dynamic objects by default, so the compilercan't decide, if a variable is declared or not.
Cheers,Ralf. 
On 10/7/06, rosado1950 [EMAIL PROTECTED] wrote: Hi Prakaz,
 I had not come across this problem before, but I can reproduce it. Don't have any idea why. Rui --- In 
flexcoders@yahoogroups.com, Prakaz [EMAIL PROTECTED] wrote:   Hi Everybody,   I just came across this strange problem where errors in Flex code are not  shown as errors!
   Let me explain:   1. *Create a simple class [dummyClass.as]*  package com.some.package.path  {  public class dummyClass  {
  private var str:String;  public function dummyClass():void{ // Constructor  str=test string;  trace(str); // trace the text  }  }  }
  *This works fine, lets go to the next step*   2. *Add some errors to the class*  package com.some.package.path  {  public class dummyClass  {
  private var str:String;  public function dummyClass():void{ // Constructor  error_variable1=test string; // Access of undefined  property error_variable1  error_variable2=test string; // Access of undefined
  property error_variable2  error_variable3=test string; // 1 more error  str=test string;  trace(str); // trace the text  }  }
  }  *Flex Builder shows a red cross sign x preceding the  three indicating that there is something wrong there   *  3. *Now add a variable declaration ouside the scope of the class
  *package com.some.package.path  {  * public var foo:Boolean; // Some declaration added outside the scope  of the class (by mistake)  * public class dummyClass
  {  private var str:String;  public function dummyClass():void{ // Constructor  error_variable1=test string; // This line is no more displayed as  an error by Flex Builder
  error_variable2=test string; // Neither is this one  error_variable3=test string; // Nor this  str=test string;  trace(str); // trace the text
  }  }  }   Now, here is where the problem starts  Those three lines of code are no more shown as errors. The red cross just  disappears as soon as you add the variable declaration outside the
 scope of  the class dummyClass.   I happened to add that variable by mistake and everytime I ran the  application it would say that there are error(s). I ran through
 every class  and there was no indication(the red cross) whatsoever that there was a  problem anywhere.   After losing some hair i managed to find that variable declaration.
 And as  soon as i commented that line, all red crosses re-appeared again! walla!!   I dont know if its only me or if someone else has has come across this  issue. Could you guys let me know if the same thing happens at your
 end? Thanks   P  -- 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-- Ralf Bokelberg 
[EMAIL PROTECTED]Flex  Flash Consultant based in Cologne/Germany
 

__._,_.___





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

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] Send Http Service

2006-10-06 Thread Prakaz



You could probably bind the result directly tothe columns of your datagrid. So whenever you make a new request and the result changes, it is automatically reflected in the datagrid without you having to worry about a thing.


Something similar can be found in Flex docs where the result of a HTTPrequest is bound to the datagrid columns. A bonus cause this example, like your application, is a RSS reader.
http://livedocs.macromedia.com/flex/2/langref/mx/rpc/http/mxml/HTTPService.html#includeExamplesSummary


Hope that helps,

-P
On 10/6/06, KP [EMAIL PROTECTED] wrote:







Well let me first tell you what I am doing.

I have a httprequest (RSS) news and I am displaying that news in datagrid.

The problem is if on a server news gets changed it should reflect in datagrid also I mean to say that latest news should display on to datagrid.


For this I am using setinterval function which will send httprequest every 5 min. 

Can any one suggest some other approach for achieving same.

Thanks
Kumar
 

__._,_.___





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

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] Creating a dynamic XML Variable

2006-10-06 Thread Prakaz



Try out some examples given in Flex docs.
There are pretty good examples of how you can dynamically generate XMLs.

Assembling and transforming XML objects:
http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm?href=""

There is an example where an XML is created dynamically created using data in an Array. You can relate to that and solve your problem.

-P

On 10/6/06, perezd324 [EMAIL PROTECTED] wrote:





Hey everyone, I did some searching around and didn't find a correctsolution to my problem...so I thought I'd try it here.Basically, I am creating a program that generates an XML request thatwill be passed onto a webservice. the request will look like this:
request class=foo type=barargumentsarg name=somethingvalue/arg/arguments/requestI have an array of data that has the arg name and value data and I
need it to dynamically create new arg tags within the arguments element.can someone help me out?Thanks!- Derek 

__._,_.___





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

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] New Javascript Window

2006-10-06 Thread Prakaz



hi jf.sal,

Strangly your code works without a glitch! I just copied and pasted your code in Flex and HTML and it works without any problem. The only modification i made was in you _javascript_ code. I'm not sure on what basis you have written your _javascript_ code but try this one:


script language=_javascript_ type=text/_javascript_var newwin;function launchwin(winurl,winname,winfeatures){newwin = window.open(winurl,winname,winfeatures);
}/script(Tested in IE 7 Beta  Mozilla, works fine)
Your flex code remains the same.

Hope that works.

-P
On 10/6/06, jf.saldanha [EMAIL PROTECTED] wrote:





Hi allI need some help on this:Open a new java window in Flex like we do in FlashI have a html page with this _javascript_ codeSCRIPT LANGUAGE=_javascript_ var _javascript__version = 
1.0;/SCRIPTSCRIPT LANGUAGE=_javascript_1.1 _javascript__version = 1.1;/SCRIPTSCRIPT LANGUAGE=_javascript_var newwin;function launchwin(winurl,winname,winfeatures){
newwin = window.open(winurl,winname,winfeatures);if(_javascript__version  1.0){setTimeout('newwin.focus();',250);}}And have this code in Flex, azulej7.htm is the html page.public function executEmail(event:MouseEvent):void{
var u:URLRequest = new URLRequest(_javascript_:launchwin('azulej7.htm', 'newwindow', 'height=450, width=550'));navigateToURL(u);} mx:Button click=executEmail(event)
Ok this open a new window but not the _javascript_ window with 550 by the450 height.If anyone can help me I say thanks and many thanks to all.jf.sal
 

__._,_.___





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

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] Google Code Search

2006-10-06 Thread Prakaz



Is ActionScript, MXMLunder-rated?? *Sigh*

On the positive note, hope google engineers are working on this and it will be available soon.. :-)

-P
On 10/6/06, Brendan Meutzner [EMAIL PROTECTED] wrote:





http://www.google.com/codesearchSo at first I was like wow, cool...
Then I did a search for:lang:ActionScript - results 0lang:Flex - results 0 lang:MXML - results 0sighBrendan 

__._,_.___





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

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] quick HTTP service question

2006-10-05 Thread Prakaz



Since you are a newbie, you should probably sleep with Flex docs next to your pillow :-)
http://livedocs.macromedia.com/flex/2/langref/mx/rpc/http/HTTPService.html


-P
On 10/6/06, Clint Tredway [EMAIL PROTECTED]
 wrote: 





there is a result attribute on the HTTP call. put a function call in that attribute and pass the result to the function and you are good to go.
On 10/5/06, g_vaccarezza  [EMAIL PROTECTED]
 wrote: 





Guys,I'm reading an XML through a HTTP service. I'm sending request to a database to retrieve a new xml from the same URL (so I'm using the send(); function).I need to trigger an event once the newly requested XML fully loads on 
flex (for instance, once the new xml loaded, I call some function).I know this has to be something basic, but I don't know where to start!Sorry for being such a newbie!Thanks-g
-- diabetic? 
http://www.diabetesforums.comAlbert Einstein - It's not that I'm so smart, it's just that I stay with problems longer. 

 

__._,_.___





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

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] quick HTTP service question

2006-10-05 Thread Prakaz



Since you are 'such a newbie' as you put it, you should probably sleep with Flex docs next to your pillow :-)
http://livedocs.macromedia.com/flex/2/langref/mx/rpc/http/HTTPService.html

-P
On 10/5/06, g_vaccarezza [EMAIL PROTECTED] wrote:

  



Guys,I'm reading an XML through a HTTP service. I'm sending request to a database to retrieve a new xml from the same URL (so I'm using the send(); function).I need to trigger an event once the newly requested XML fully loads on 
flex (for instance, once the new xml loaded, I call some function).
I know this has to be something basic, but I don't know where to start!Sorry for being such a newbie!

Thanks-g 

Messages in this topic (1) 
Reply (via web post) | 
Start a new topic 

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

 
Change settings via the Web (Yahoo! ID required) Change settings via email: 
Switch delivery to Daily Digest | Switch format to Traditional
 
Visit Your Group | Yahoo! Groups Terms of Use | 
Unsubscribe 


Recent Activity


91

New Members
Visit Your Group 
SPONSORED LINKS



Software development tool 

Software development 

Software development services 

Home design software 

Software development company 


New business?

Get new customers.
List your web site
in Yahoo! Search.

Y! Toolbar

Get it Free!
easy 1-click access
to your groups.

Yahoo! Groups

Start a group
in 3 easy steps.
Connect with others.
.

__._,_.___





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

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



[flexcoders] Re: e4x with XMLListCollections?

2006-10-03 Thread Prakaz



I'm not sure if you will be able to directly access the trainingEvent title using the return statement you have given below.

Looking at the structure of the XML, it seems inevitable that you'll have to iterate through each and every node to search for the KeyID you are looking for and when you find one grab the title from the parent node. 

Here is a code that works:

the XML:

mx:XML id="theCatalog"

 catalogtrainingEvent keyID="1" title="Programming 101" eventCost="499.99"trainingEventInstance keyID="1" trainingEventID="1" location="Houston" eventDate="02/11/2007" instanceCost=" 499.99" /trainingEventInstance keyID="2" trainingEventID="1" location="Houston" eventDate="04/19/2007" instanceCost="499.99" /trainingEventInstance keyID="3" trainingEventID="1" location="Las Vegas" eventDate="04/19/2007" instanceCost=" 299.99" //trainingEventtrainingEvent keyID="2" title="Miter Saw Safety" eventCost="300.00"trainingEventInstance keyID="4" trainingEventID="2" location="Houston" eventDate="12/25/2006" instanceCost=" 300.00" /trainingEventInstance keyID="5" trainingEventID="2" location="Houston" eventDate="12/25/2006" instanceCost="300.00" /trainingEventInstance keyID="6" trainingEventID="2" location="Houston" eventDate="12/25/2006" instanceCost=" 300.00" /trainingEventInstance keyID="7" trainingEventID="2" location="Houston" eventDate="12/25/2006" instanceCost="300.00" //trainingEvent /catalog

/mx:XML

public function getCourseTitle(instanceID:Number){// Iterate through each Node of the XML for each(var parentNodes:XML in theCatalog.trainingEvent){var childNodes:XMLList=parentNodes.trainingEventInstance;// Iterate through each Child Node of the XML for each(var individualChild:XML in childNodes){if([EMAIL PROTECTED]){ // Found the bastard :-)// Return title of the parentreturn [EMAIL PROTECTED];
Usage:
if you call getCourseTitle(4) you'll get "Miter Saw Safety" and so on...
hope that helps,

Prakaz


--- In flexcoders@yahoogroups.com, "Clare Todd" [EMAIL PROTECTED] wrote: I have a hunk of XML that I have loaded into an XMLListCollection. It describes a training course catalog. I'm trying to write a function to return the title of a course when passed the "KeyID" of a specific course instance, and am running into all sorts of problems (it ain't working being the worst of them).  Here's the XML:  catalog trainingEvent keyID="1" title="Programming 101" eventCost="499.99" trainingEventInstance keyID="1" trainingEventID="1" location="Houston" eventDate="02/11/2007" instanceCost="499.99" / trainingEventInstance keyID="2" trainingEventID="1" location="Houston" eventDate="04/19/2007" instanceCost="499.99" / trainingEventInstance keyID="3" trainingEventID="1" location="Las Vegas" eventDate="04/19/2007" instanceCost="299.99" / /trainingEvent trainingEvent keyID="2" title="Miter Saw Safety" eventCost="300.00" trainingEventInstance keyID="4" trainingEventID="2" location="Houston" eventDate="12/25/2006" instanceCost="300.00" / /trainingEvent /catalog  ... it's loaded into an XMLListCollection called myCollection using HTTP service with resultFormat=e4x  I'm trying to ignore the trainingEventID attribute, since it might be going away. I was trying to do some e4x magik to find the title like this, where the parameter is the KeyID of the trainingEventInstance:  public function getCourseTitle( instanceID:Number ):String { return myCollection.source.trainingEvent.trainingEventInstance.(@keyID == instanceID).parent()[EMAIL PROTECTED]; }  so when the function is passed 4, it returns "Miter Saw Safety"  Am I doing something wrong? Can I not e4x using the "source" property? Any thoughts? 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
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___