[flexcoders] Re: How to configure MXML schema in Eclipse + OxygenXML 6?
Hi Dimitrios: I followed your advise and can now get MXML files to open up okay (color-coded, etc). However, tag insight/auto completion do not seem to be working fully. I seem to get tag insight only for those tags that have been used before in the file. E.g., if mx:HBox has been used in the file, and I place my cursor after the line where this has been used, I can see tag insight for mx:HBox. Have you faced this before. Any help would be much appreciated. Thanks Indy --- In flexcoders@yahoogroups.com, r0main [EMAIL PROTECTED] wrote: Thanks a lot... It works that way... Now, for 100% free, I can edit MXML files and also can edit flex .as files with MTASC::: ByeBye flexBuilder :-) Ciao, r0main --- In flexcoders@yahoogroups.com, Dimitrios Gianninas [EMAIL PROTECTED] wrote: Hi r0main, Here is what I did in Eclipse 3.1M7: Schema setup: Goto Preferences Web XML XML Catalog. From there I created a User Specified Entry pointing to the MXML schema file with Flex 1.5. Association: Goto Preferences Editors Content Types. Under XML add *.mxml. Apply and Save... next time you open a MXML file... voila! I tried exactly what you did and it didn't work, so after fiddling around, I discovered the above. Dimitrios Jimmy Gianninas RIA Developer Optimal Payments Inc. _ From: r0main [mailto:[EMAIL PROTECTED] Sent: Thursday, May 19, 2005 5:15 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How to configure MXML schema in Eclipse + OxygenXML 6? Dimitrios, Which editor did you associate to *.mxml files ? I've got a file main.mxml, and tried XML Editor, XML Source Page Editor, Standalone Structured Source Editor, on it: Nothing good happens... But if I rename it main.xml that works perfectly... r0main --- In flexcoders@yahoogroups.com, r0main [EMAIL PROTECTED] wrote: Hello Dimitrios, I'm looking forward to find a valid MXML editor into eclipse... I've downloaded erverything... I can see the XML editor is here, I've associated MXML file to it... It opens it as an XML file, but says the document is empty, while the source tab shows the mxml file... Any idea ? Ciao, r0main --- In flexcoders@yahoogroups.com, Dimitrios Gianninas [EMAIL PROTECTED] wrote: Not sure if anyone uses it, but I started using Eclipse Web Tools for MXML editing. You can specify the MXML schema and works it wonderfully so far. http://www.eclipse.org/webtools/index.html Dimitrios Jimmy Gianninas RIA Developer Optimal Payments Inc. _ From: Andrew Muller [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 18, 2005 8:55 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to configure MXML schema in Eclipse + OxygenXML 6? Hans Apologies if this appears twice. I buggerised around for a while and found success if I used the following settings (totally non scientific/documented settings, might be a better way): In Window/Preferences/oXygen/Editor/Tag Insight/Default I added the following: Namespace: Any Root local name: Any File name: Any Schema type: XML Schema Schema URI: file location of XSD file I then moved this entry to the top of the list, have been using it for about a day and it seems to work for me so far without having any noticable side effect on other file types. HTH Andrew Andrew Muller Partner, RocketBoots http://www.rocketboots.com.au On 5/19/05, Hans Omli [EMAIL PROTECTED] wrote: Has anyone successfully set up tag insight with Eclipse and the new version of OxygenXML. I had no trouble with OxygenXML 5.1, but can't seem to get tag insight working with 6.0. Thanks! Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. _ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . table width=800 cellpadding=4 cellspacing=10 border=0tr bgcolor=BDBDBDtd valign=top width=400font face=verdana size=2 color=FFbAVIS IMPORTANT/b/font/tdtd valign=top width=400font face=verdana size=2 color=FFbWARNING/b/font/td/trtrtd valign=top width=400p
[flexcoders] DataGrid Refreshing and using slider to change interval...need help:)
Hello folks, I have a datagrid that refreshes itself every 30 seconds. I want to implement a slider that will give the user the ability to change this when the application runs. I have the following code below. Can someone tell me what I am doing wrong? Thanks a bunch, you guys are the greatest for helping out noobs like me. private var gridTimer:Number = 3; private function initComp() { //stuff that calls the webservice and populates the grid. //this funtion is also the initialize=initComp() in the main app setInterval(this,getData,gridTimer); } //code to change time function handleGridTimeChange(event){ gridTimer = refreshGridSlider.value; var so:SharedObject = SharedObject.getLocal(_gridTimer); so.data.gridTimer = gridTimer; so.flush(); } //the slider code in the main app. mx:HSlider id=refreshGridSlider change=handleGridTimeChange(event) minimum=3 maximum=6 liveDragging=true tickInterval=5000 value={gridTimer} labels=['3', '6'] width=15%/ Bottom line, its not working and I need somehelp. Any input is greatly appreciated 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] CFlogin, SetCredentials and the RemoteObject
Hi Dave: I've never tried using RemoteObject with cflogin, but RemoteObject works very nicely with CF session variables, so it should be able to pass that information to your application. To get it to work with session variables, I was using CF and Flex on the same server, and had turned on jsessionid (in CF Admin). Indy On 5/23/05, dave buhler [EMAIL PROTECTED] wrote: Does the RemoteObject permit the passing of a username and password to a CFLogin tag? I want to create an instance of NetConnection and include setCredentials(username,password) to pass over to my remote object for a valid user check on each request. If it's not supported in Flex, does anyone have any suggestions so that we can ensure a valid username and password is part of each remote CFC request. Best, mx.controls.Alert.show('Dave') Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links * 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] Applications forgetting variables
The difference between these two approaches is scope. In your first example u create a variable on the instance of the class u are working in. This variable exists as long as that instance has a reference somewhere in the application. In the second example u create a variable inside a function definition. This means that at the }, the end of the function this variable is destroyed. Greetz Erik From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]Sent: woensdag 25 mei 2005 4:41To: flexcoders@yahoogroups.comSubject: [flexcoders] Applications forgetting variables I can not help but feel I have ran in to more problems than neccessary because my flex applicaitons forget variables. I mean I know from a code standpoint I am doing the right thing when I write my code but I think it forgets variables and I think this is causing me more stress than need be. What I want to know is how does someone go about making sure it does not forget variables I mean is this a way to do it: If I have a function and a variablethat looks like this say: public var age:Number public function compute(){ age = 23 } but lets say that for some odd reason when you get to the compute function it keeps forgetting the age variable will this solve it to write the function like this: public function compute(){ var age:Number age = 23 } If there is any other suggestions let me know Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Minimal Tomcat Deployment
Hi Dan, You don't have to do that much work to get Flex running under Tomcat. Here is the simplest way: - install Tomcat under c:\tomcat (just an example, put it anywhere you want) - createa folder called "samples" under c:\tomcat\webapps - extract the contents of the samples.war to the c:\tomcat\webapps\samples folder - start up tomcat - navigate to http://loclahost:8080/samples and voila! Repeat the same instructions for the flex.war and then create your first ever helloworld.mxml file and put it under c:\tomcat\webapps\flex and start-up tomcat. Then navigate to http://loclahost:8080/flex/helloworld.mxml to look at your creation. That's it, you don't need to put any jar files in any special places. Hope that helps! Dimitrios "Jimmy" Gianninas RIADeveloper Optimal Payments Inc. From: Dan Glauser [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 24, 2005 12:39 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Minimal Tomcat Deployment Hello folks,I'm sorry if this topic has already been covered but when searchingthe list I was unable to find what I am looking for.I'd like to put together a *minimal* set of tasks for deploying a Flexapp in Tomcat. Specifically I'm looking for what jars need to bewhere and what deployment descriptors need to be changed. Now I'velooked at the samples that come with Flex and here is what I have sofar:I'm aware that you can put flex-tomcat-common.jar in$TOMCAT_HOME/common/lib and put flex-tomcat-server.jar in$TOMCAT_HOME/server/lib. From the samples webapp I see a bunch ofother jars in WEB-INF/flex/jars but the ones that seem to stand outare flex-tags.jar and flex.jar.There are a bunch of entries in the web.xml for the samplesapplication. Not sure which are necessary for a basic application.I know that I can just get going by deploying the flex.war webapp inTomcat but I'm looking for a minimal project that contains all thenecessary flex libraries. I'm also looking for the minimalconfiguration file changes to get "hello world" working and to haveTomcat properly handle mxml files.I've found lots of good examples just to get me going with Flex but Ihaven't yet found a minimalist approach.Thanks in advance,--Dan GlauserJ2EE Developer[EMAIL PROTECTED] Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Cairngorm error
Hi, You must add the appropriate entry for the cairngorm-manifest.xml in the flex-config.xml (portion in red below): namespace uri="http://www.macromedia.com/2003/mxml" manifest/WEB-INF/flex/mxml-manifest.xml/manifest/namespace namespace uri=http://www.iterationtwo.com/cairngorm manifest/WEB-INF/flex/cairngorm-manifest.xml/manifest/namespace This explains the error message. If it still doesn't work, please post you flex-config so we can take a look and please let us know what are the contents of the {server}\WEB-INF\flex folder. Dimitrios "Jimmy" Gianninas RIADeveloper Optimal Payments Inc. From: Mehdi, Agha [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 24, 2005 10:50 PMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Cairngorm error Did that just now. Same error. I restarted flex services but didn't work. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dave buhlerSent: Tuesday, May 24, 2005 7:43 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Cairngorm error Hi Agha,Copy the Flex-Config file from the source files that came with either the Login sample or Store sample that came with the cairngorm download.Copy it over your existing Flex-Config fileBest,Dave On 5/24/05, Mehdi, Agha [EMAIL PROTECTED] wrote: Hi guys, I just started with Cairngorm 0.99 and am running into the following error. Did everything by the book. Any help will earn my thanks. :) Error /com/littler/ourpeople/business/Services.mxml:11 Namespace http://macromedia.com/2003/mxml has not been associated with component manifest. - Agha Mehdi web developer Littler Mendelson P.C. work: 415-288-6362 cell: 415-987-7104 - Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.To reply to our email administrator directly, send an email to[EMAIL PROTECTED]Littler Mendelson, P.C.http://www.littler.com This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.To reply to our email administrator directly, send an email to[EMAIL PROTECTED]Littler Mendelson, P.C.http://www.littler.com Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Tabnavigator tab name issue
hai, I have a tab navigator with 4 canvases inside. the label for each canvas is very lenghty and i want it to be displayed in two lines. say the label is "Display Content" ,I want it to be displayed as: Display Content How should i be doing this? Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Is there any event to handle a right click in flex?
hai, I have a tree which on right click should open a pop-up window.. How do i handle the right click event? thanks, nithya Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Is there any event to handle a right click in flex?
Hi Nithya, Flex (or, more correctly, the Flash Player)does have the notion of a context menu that can be configured - check the docs for details: http://livedocs.macromedia.com/flex/15/flex_docs_en/1276.htm However, there is a limitation of the current player where the context menu can only be shown on componentsinside the root container (ie. mx.core.Application.application). You can get around this by having the context menu on the root object and changing its dynamically at runtime depending on which component the mouse is over, but its a bit more work for you. Cheers, Ali -- Alistair McLeodDevelopmentDirector iteration::two[EMAIL PROTECTED] Office: +44 (0)131 338 6108 This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately.Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of nithya karthikSent: 25 May 2005 11:20To: flexcodersSubject: [flexcoders] Is there any event to handle a right click in flex? hai, I have a tree which on right click should open a pop-up window.. How do i handle the right click event? thanks, nithya Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] how to use the setInterval() in flex actionscript ?
the code run normally in swf, ActionScript: function checkOut() { TextToCheck = spellCheck_txt.text; url_string = javascript:SpellCheck();; getURL(url_string, ); checkOut_interval = setInterval(function () { if (spellResult != undefined) { spellCheck_txt.text = spellResult; clearInterval(checkOut_interval); } // end if }, 100); } and how to use setInterval() in flex actionscript as referred in flex actionscript reference: setInterval(functionName:Function, interval:Number [, param1:Object, param2, ..., paramN]) : Number setInterval(objectName:Object, methodName:Function, interval:Number [, param1:Object, param2, ..., paramN]) : Number Parameters functionName A function name or a reference to an anonymous function. interval The time in milliseconds between calls to the functionName or methodName parameter. param1, param2, ..., paramN Optional parameters passed to the functionName or methodName parameter. objectName An object containing the method methodName. You must include this parameter when using setInterval() in an mx:Script block in Flex applications. thanks Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] how to use the setInterval() in flex actionscript ?
Same, just put in a mx:Script tag, or link to the external .as file in your script tag. - Original Message - From: loveewind [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, May 25, 2005 7:51 AM Subject: [flexcoders] how to use the setInterval() in flex actionscript ? the code run normally in swf, ActionScript: function checkOut() { TextToCheck = spellCheck_txt.text; url_string = javascript:SpellCheck();; getURL(url_string, ); checkOut_interval = setInterval(function () { if (spellResult != undefined) { spellCheck_txt.text = spellResult; clearInterval(checkOut_interval); } // end if }, 100); } and how to use setInterval() in flex actionscript as referred in flex actionscript reference: setInterval(functionName:Function, interval:Number [, param1:Object, param2, ..., paramN]) : Number setInterval(objectName:Object, methodName:Function, interval:Number [, param1:Object, param2, ..., paramN]) : Number Parameters functionName A function name or a reference to an anonymous function. interval The time in milliseconds between calls to the functionName or methodName parameter. param1, param2, ..., paramN Optional parameters passed to the functionName or methodName parameter. objectName An object containing the method methodName. You must include this parameter when using setInterval() in an mx:Script block in Flex applications. thanks Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Dispathching and Event from Combo Box cell rende rer
Hi Mohanraj, I have a similar requirement. I don't want to reinvent the wheel. If you don't mind can you post your code so that I can tailor to my requirements. Thanks! Thanks! Hari -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mohanraj Jayaraman Sent: Tuesday, May 24, 2005 9:20 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Dispathching and Event from Combo Box cell renderer Hi Matt, Thanks , that worked. Mohanraj --- Matt Chotin [EMAIL PROTECTED] wrote: It's the ComboCellRenderer dispatching the statusChanged event? In that case the addEventListener is on the wrong thing because it's not main dispatching the event. I think if the ComboCellRenderer does listOwner.parentDocument.dispatchEvent({type: 'statusChanged'}) then it will execute on main.mxml. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mohanraj Jayaraman Sent: Tuesday, May 24, 2005 4:53 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Dispathching and Event from Combo Box cell renderer Hi , I have a main.mxml where I have this DataGrid function initListener(){ addEventListener(statusChanged, mx.utils.Delegate.create(this, onStatusChange)); } function onStatusChange(e){ mx.controls.Alert.show(listener is Listening); } mx:DataGrid id=datagrid1 rowHeight=100 dataProvider={tp} editable=true mx:columns mx:Array mx:DataGridColumn headerText=Name columnName=name editable=false/ mx:DataGridColumn headerText=City columnName=city editable=false / mx:DataGridColumn headerText=Birthday columnName=day / mx:DataGridColumn headerText=Status columnName=status editable=true cellRenderer=ComboCellRenderer / /mx:Array /mx:columns /mx:DataGrid Whenever the combox box value is changed I want to call a remote object with the datagrid's selectedItem object. I am handling the 'change' event in the ComboCellRenderer and dispatching a 'statusChanged' event and I also have a listener attached to main.mxml for the 'statusChanged' event. But whenever the combo box value is changed the listener function onStatusChange in main.mxml is not called. Can you tell me what I am missing here? Thanks Mohan __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . __ Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Register a ChangeEvent listener on a static property
Hello, I have a question: is there a way to register a changeEvent listener on a static property ? For example : class ModelLocator { [ChangeEvent(userChanged)] public static var user : User; } class AnotherClass { public function AnotherClass() { ModelLocator.user.addEventListener(userChanged, this); } ... } But here, I have this error : There is no method with the name 'addEventListener'. Regards, Laurent Cornelis 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] Register a ChangeEvent listener on a static property
Laurent, Your class User must extend UIObject to inherit the method addEventListener(), unless you create the method yourself... Cheers Rich -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Laurent Cornelis Sent: 25 May 2005 13:21 To: flexcoders@yahoogroups.com Subject: [flexcoders] Register a ChangeEvent listener on a static property Hello, I have a question: is there a way to register a changeEvent listener on a static property ? For example : class ModelLocator { [ChangeEvent(userChanged)] public static var user : User; } class AnotherClass { public function AnotherClass() { ModelLocator.user.addEventListener(userChanged, this); } ... } But here, I have this error : There is no method with the name 'addEventListener'. Regards, Laurent Cornelis Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Register a ChangeEvent listener on a static property
Hi Lauren, I think you're getting things mixed up. Your code should be something like this (incomplete and untested): class ModelLocator { static function initialize() : Boolean { EventDispatcher.initialize( ModelLocator.prototype ); return true; } static var mixIn : Boolean = ModelLocator.initialize(); private static var _user : User; [ChangeEvent(userChanged)] public static function get user() : User { return _user; } public static function set user( user : User ) : Void { _user = user; } } class AnotherClass { public function AnotherClass() { ModelLocator.addEventListener( userChanged, this ); } ... } Theres quite a lot going on in there, search the archives for the static initialization (you can alternatively just use EventDispatcher.initialize in a constructor), or read this article about mixins: http://www.macromedia.com/support/documentation/en/flex/1/mixin/index.html You should probably also use the Delegate class in your addEventListener. Cheers, Ali -- Alistair McLeod Development Director iteration::two [EMAIL PROTECTED] Office: +44 (0)131 338 6108 This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately. Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Laurent Cornelis Sent: 25 May 2005 13:21 To: flexcoders@yahoogroups.com Subject: [flexcoders] Register a ChangeEvent listener on a static property Hello, I have a question: is there a way to register a changeEvent listener on a static property ? For example : class ModelLocator { [ChangeEvent(userChanged)] public static var user : User; } class AnotherClass { public function AnotherClass() { ModelLocator.user.addEventListener(userChanged, this); } ... } But here, I have this error : There is no method with the name 'addEventListener'. Regards, Laurent Cornelis Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Drag and Drop from tree to List
Hi, I'm dragging and dropping from a tree to a list. All the functionality works fine, but I'm trying to call another method when the item is dropped with the name of the file from the tree as the argument to that method. Example: Tree has two objects in a folder node called files: File1.txt and File2.txt When I drag from the tree and drop into the List container (List1) I want to call a method which has the File1.txt or File2.txt as the argument. Can I use the dataForFormat? Also if I want to restrict this list to only having 1 file in it how can I have it to only have the last item that I dropped into it, thus removing the previous item, if there was one there. I tried to put a change event handler on the list, but when you drop an Item into the list this event is not called, which I find extremely wierd being that the list has in fact 'changed'. Explain that one! Regards, Iain Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Compiling a set of classes
Well i have been stumbling over using RSL the last few days. Using compc, etc. What i tried was creating an SWC wich contains all classes needed by the framework (called TAP). I compiled them using the following sws file in combination with compc: library rsl="empty.swc" /namespace uri="TAP" all="true" //library empty.swc is a swc file containing all components used by an empty flex application, created from a class like this: class empty { var a = mx.core.Application; }; The part 'rsl="empty.swc"' is used so it wont compile the classes allrdy available in the flex generated swf into the library. As commandline arguments i gave compc the namespace TAP and a manifest.xml: ?xml version="1.0"?componentPackage component id="fly.TAP.alertErrors" class="fly.TAP.alertErrors"/ component id="fly.TAP.appCore" class="fly.TAP.appCore"/ component id="fly.TAP.cfcConnector" class="fly.TAP.cfcConnector"/ component id="fly.TAP.commonDialogManager" class="fly.TAP.commonDialogManager"/ component id="fly.TAP.ErrorHandler" class="fly.TAP.ErrorHandler"/ component id="fly.TAP.EventDispatcher" class="fly.TAP.EventDispatcher"/ component id="fly.TAP.EventStructure" class="fly.TAP.EventStructure"/ component id="fly.TAP.eventTracker" class="fly.TAP.eventTracker"/ component id="fly.TAP.flowControl" class="fly.TAP.flowControl"/ com/componentPackage This resulted in a SWC with all TAP classes compiled into a swf together with some flex classes the TAP framework uses and are not by default in the flex generated swf. In order to use the RSL in the flex application i used the following sws: library url=""http://pc021:8300/_TAP/Library.swf">http://pc021:8300/_TAP/Library.swf"namespace uri="TAP" all="true" //library Thishowevermadetheapplicationhangonafullloadersaying"Initializing". So far what i have done. I'll explain again what i want: I want to make a set of classes available in memory at runtime. These classes (AS and MXML) should be compiled into an swf. This swf containing these classes should not contain the classes wich are allrdy in the flex generated swf. I can then in my application load this swf, and as soon as this swf is loaded the classes in the swf are available since they reside in the global scope. This way i can use my framework in any flex application. With flash i would do that just by creating a fla. Put in the appropreate classes (only referencing them so the compiler knows iwill use them). And then export, resulting in an swf with a library of classes. For the classes i dont want in there i create intrinsic class descriptions. I cant do this with flex since some of my classes are mxml files, containing visual components. Maybe u have an idea on how to solve this. Greetz Erik From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt ChotinSent: maandag 23 mei 2005 4:19To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Compiling a set of classes Would an RSL be appropriate in this case? From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Erik WestraSent: Friday, May 20, 2005 9:24 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Compiling a set of classes We are planning a large application. This application uses a frameworkwe developed. Different developers will be creating components wich willfunction only within this framework. In order to let developers work ontheir own module while not bothering others in their testing. We want tobe able to load different libraries at runtime.The ways to do this are allrdy completed.The problem here is how to compile an as file like this:class commonDialogs{ public function commonDialogs() { fly.TAP.commonDialogs.Alert; fly.TAP.commonDialogs.Login; fly.TAP.commonDialogs.Waiting; fly.TAP.commonDialogs.Preloader; fly.TAP.commonDialogs.Prompt; };};fly.TAP.commonDialogs.Login for example extends LoginVisual, wich is anmxml file laying out the visual parts of this window extendingtitlewindow.I want to compile these classes into a swf. However I don't want toinclude the basic flex classes (think of UIObject, TitleWindow,Container, etc.). Does any1 know a way of compiling classes whiledefining wich classes to leave out?I hope my problem is clear, if not, just say so :)Greetz Erik Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] is there any way to get rid of the settings tab in the context menu
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] is there any way to get rid of the settings tab in the context menu
Nope, no way. Greetz Erik -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of send2martin Sent: woensdag 25 mei 2005 15:05 To: flexcoders@yahoogroups.com Subject: [flexcoders] is there any way to get rid of the settings tab in the context menu 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] Register a ChangeEvent listener on a static property
Another way is just to use object.watch on the property: ModelLocator.watch(user, _changeFunction); Greetz Erik -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alistair McLeod Sent: woensdag 25 mei 2005 14:37 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Register a ChangeEvent listener on a static property Hi Lauren, I think you're getting things mixed up. Your code should be something like this (incomplete and untested): class ModelLocator { static function initialize() : Boolean { EventDispatcher.initialize( ModelLocator.prototype ); return true; } static var mixIn : Boolean = ModelLocator.initialize(); private static var _user : User; [ChangeEvent(userChanged)] public static function get user() : User { return _user; } public static function set user( user : User ) : Void { _user = user; } } class AnotherClass { public function AnotherClass() { ModelLocator.addEventListener( userChanged, this ); } ... } Theres quite a lot going on in there, search the archives for the static initialization (you can alternatively just use EventDispatcher.initialize in a constructor), or read this article about mixins: http://www.macromedia.com/support/documentation/en/flex/1/mixin/index.ht ml You should probably also use the Delegate class in your addEventListener. Cheers, Ali 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] how to use the setInterval() in flex actionscript ?
The documentation seems not correct here: setInterval(objectName:Object, methodName:Function, interval:Number [, param1:Object, param2, ..., paramN]) : Number I thought methodName should be of type string when using an object as 1th parameter. Greetz Erik -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of loveewind Sent: woensdag 25 mei 2005 13:52 To: flexcoders@yahoogroups.com Subject: [flexcoders] how to use the setInterval() in flex actionscript ? the code run normally in swf, ActionScript: function checkOut() { TextToCheck = spellCheck_txt.text; url_string = javascript:SpellCheck();; getURL(url_string, ); checkOut_interval = setInterval(function () { if (spellResult != undefined) { spellCheck_txt.text = spellResult; clearInterval(checkOut_interval); } // end if }, 100); } and how to use setInterval() in flex actionscript as referred in flex actionscript reference: setInterval(functionName:Function, interval:Number [, param1:Object, param2, ..., paramN]) : Number setInterval(objectName:Object, methodName:Function, interval:Number [, param1:Object, param2, ..., paramN]) : Number Parameters functionName A function name or a reference to an anonymous function. interval The time in milliseconds between calls to the functionName or methodName parameter. param1, param2, ..., paramN Optional parameters passed to the functionName or methodName parameter. objectName An object containing the method methodName. You must include this parameter when using setInterval() in an mx:Script block in Flex applications. thanks Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Validating XML
All that is possible in Flex is based on the Flash Players capabilities. Validation with XSD is not implemented in the player and thus not possible in Flex. The flash player only has most basic features available, as u know its only possible to dynamicly load one type of image, sound and movie. This is don't in order to keep the player itself small. I guess the same reason has made that XSD didn't make it into the player. Greetz Erik -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: dinsdag 24 mei 2005 17:51 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Validating XML My perception of Castor and the reason to use it is based on the ability to validate your data/value objects in Java, thus ensuring that if your data is valid, and another system has problems using it, it is the other system and not the base Java code. Furthermore, the use of XSD's for data objects allows the proliferation of many standard value objects to be used across a myriad of applications with the ability of those applciations to validate the data they are sending, thus ensuring ease of communication across disparate systems. With the above 2 said, that is my guess as to why someone would expect Flex to validate the XML via the XSD before sending; that way you can ensure the data you are sending back to Java is valid ... in form, not in contents. So, if the number is 0-0-0-0-0 instead of 000-000-, that is a data input validation error, but at least the data is well formed. Does that make sense? I'm not saying I agree with using an XSD vs. just straight RemoteObject and mapping both server-side and client side value object classes to match as close as possible, and through testing you are ensured that the data works since you mirrored the Java class client side in a value object, but your thoughts do help me understand the why someone would want to do it; I'm trying to build up a decent inference here. 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] CFlogin, SetCredentials and the RemoteObject
Hi Indy, I understand setting up perhaps the username and password as a session variable. Can you show me an example of how you are passing over the username and password in the remote object? I can see adding it as something like the following on each request: service.getKittens(loginVO,kittensVO) ...but was wondering if there was another method that is used directly with the remote object configuration. DaveOn 5/24/05, Indy Nagpal [EMAIL PROTECTED] wrote: Hi Dave:I've never tried using RemoteObject with cflogin, but RemoteObjectworks very nicely with CF session variables, so it should be able topass that information to your application. To get it to work with session variables, I was using CF and Flex on the same server, and hadturned on jsessionid (in CF Admin).IndyOn 5/23/05, dave buhler [EMAIL PROTECTED] wrote:Does the RemoteObject permit the passing of a username and password to a CFLogin tag? I want to create an instance of NetConnection and include setCredentials(username,password) to pass over to my remote object for a valid user check on each request. If it's not supported in Flex, does anyone have any suggestions so that we can ensure a valid username and password is part of each remote CFC request. Best,mx.controls.Alert.show('Dave')Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.Yahoo! Groups Links* 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 To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Saving a Flex chart as a jpeg file
Thanks Dave, I will check it out. Andrew --- In flexcoders@yahoogroups.com, dave buhler [EMAIL PROTECTED] wrote: http://www.convertzone.com/net/cz-adshareit%20swf%20to%20video%20converter%20pro-swf-jpg.htm On 5/24/05, greenfishinwater [EMAIL PROTECTED] wrote: I have a request for an application that presents data as various kinds of charts and graphs. The user would like thye ability to save specific charts as a jpeg, for later use in a powerpoint slide. Is this possible, I have a feeling it is not, I know how to print out, but to save as a jpeg? Andrew Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] how to use the setInterval() in flex actionscript ?
Abdul Qabiz [EMAIL PROTECTED] to flexcoders More optionsApr 23 Hi, However, I'm still unable to do the following:Call a setInterval within a class. Have the setInterval pass over a number. And the function called increment that number. Pass this newnumber to a textfield object.If I call:setInterval(this,somefunction, 1000, 5) function somefunction ( e : Number) { e++mx.controls.Alert.show(e)// shows 6} I think, it would trace 6 repeatedly over the interval. And I feel that there is no reason it won't work. I just created a sample to verify if my feelings are right :) This sample is demonstrating setInterval(..) inside a class. Look at the attached files or code later in this mail. Hope that helps... -abdul 1) ##Counter.as## import mx.core.UIObject; [Event(start)] [Event(increment)] [Event(stop)] class Counter extends UIObject { var counterIntervalId:Number; var __delay:Number = 50; var __min:Number = 0; var __max:Number = 100; var __count:Number = 0; var running:Boolean = false; function Counter(delay:Number, min:Number, max:Number) { __min = min ? min : 0; __max = max ? max : 100; __delay = delay ? delay : 50; } function startCounter():Void { __count = 0; running = true; dispatchEvent({type:start}); counterIntervalId = setInterval(this,incrementCou nt, __delay,__min);//you can also do this://counterIntervalId =setInterval(mx.utils.Delegate.create(this,incrementCount), __delay, __min); } function incrementCount(num):Void { if(__count __max) { //un-comment the following to see setInterval (..) passes samenumber agian and again // mx.controls.Alert.show(num.toString()); __count++; dispatchEvent({type:increment}); } else { stopCounter(); } } function stopCounter():Void {clearInterval(counterIntervalId);__count = 0;running = falsedispatchEvent({type:stop}); } function get min():Number {return __min; } function set min(newValue:Number):Void {__min = newValue; } function get max():Number {return __max; } function set max(newValue:Number):Void {__max = newValue; } function get value():Number {return __count; }} 2) ##setIntervalExample.mxml##?xml version=1.0 encoding=iso-8859-1?mx:Application width=800 height=600xmlns:mx= http://www.macromedia.com/2003/mxml initialize=onAppInit() mx:Script![CDATA[ import Counter; import mx.utils.Delegate; var counter:Counter; function onAppInit() {counter = new Counter();changeLimit();counter.addEventListener(start, Delegate.create(this,onCounterStart));counter.addEventListener(increment, Delegate.create(this,onCounterIncrement));counter.addEventListener(stop, Delegate.create (this,onCounterStop)); } function onCounterStart(event) {_ta.text +=Counter started..\n; } function onCounterIncrement(event) {_ta.text += event.target.value + \n; } function onCounterStop(event) {_ta.text += Counter stopped...\n; } function changeLimit() {counter.min = slider.values[0];counter.max = slider.values[1]; }]] /mx:Script mx:HBoxmx:Label text=Count:/mx:TextArea id=_ta width=300height=150 / /mx:HBox mx:HBox mx:Button label=Start Counter click=counter.startCounter();enabled={!counter.running}/mx:Button label=Stop Counter click=counter.stopCounter ();enabled={counter.running}/ /mx:HBox mx:HSlider id=slidertoolTipPlacement=topthumbCount=2 labels=['min', 'max']values=[0, 100]snapInterval=1change=changeLimit();allowTrackClick=true maximum=1000minimum=0//mx:Application On 5/25/05, Erik Westra [EMAIL PROTECTED] wrote: The documentation seems not correct here:setInterval(objectName:Object, methodName:Function, interval:Number [,param1:Object, param2, ..., paramN]) : NumberI thought methodName should be of type string when using an object as 1th parameter.Greetz Erik-Original Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com ] OnBehalf Of loveewindSent: woensdag 25 mei 2005 13:52To: flexcoders@yahoogroups.comSubject: [flexcoders] how to use the setInterval() in flex actionscript ?the code run normally in swf,ActionScript:function checkOut(){ TextToCheck = spellCheck_txt.text; url_string = _javascript_:SpellCheck();; getURL(url_string, ); checkOut_interval = setInterval(function () {if (spellResult != undefined){ spellCheck_txt.text = spellResult; clearInterval(checkOut_interval); } // end if }, 100);}and how to use setInterval() in flex actionscriptas referred in flex actionscript reference:setInterval(functionName:Function, interval:Number [, param1:Object, param2, ..., paramN]) : Number setInterval(objectName:Object,methodName:Function, interval:Number [, param1:Object, param2, ...,paramN]) : Number Parameters
RE: [flexcoders] Drag and Drop from tree to List
Yep, dataForFormat(treeItems) I think is what you want. As for only having one item in the destination List, you could simply clear the list before adding in the treeItems in the dragDrop handler. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Wednesday, May 25, 2005 8:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Drag and Drop from tree to List Hi, I'm dragging and dropping from a tree to a list. All the functionality works fine, but I'm trying to call another method when the item is dropped with the name of the file from the tree as the argument to that method. Example: Tree has two objects in a folder node called files: File1.txt and File2.txt When I drag from the tree and drop into the List container (List1) I want to call a method which has the File1.txt or File2.txt as the argument. Can I use the dataForFormat? Also if I want to restrict this list to only having 1 file in it how can I have it to only have the last item that I dropped into it, thus removing the previous item, if there was one there. I tried to put a change event handler on the list, but when you drop an Item into the list this event is not called, which I find extremely wierd being that the list has in fact 'changed'. Explain that one! Regards, Iain Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Flex and Load Balancing
We'd like to use Flex in an enterprise deployment, where all HTTP requests are handled and dispatched by a Radware load balancer.We are getting a bit of push-back from our client. Our client has seen in the past that the Radware load balancers don't work exactly as expected when tunnelling other protocols over HTTP ( e.g. Java RMI). We want to make sure that the Radware load balancers can handle Flex invocations over HTTP without any problems. These guys need pertinent information to relieve risk-based stress. ;-)Do any of you have any data that indicates that Radware load balancers are fully compatible with Flex remoting? Special thanks,Leifa.k.a., JesterXL's manager Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Flex and Load Balancing
Hi Leif, All Flex remoting calls are AMF over HTTP/S, so should seamlessly integrate with your load balancer. The problem with RMI will have been was that it wasnot going over HTTP. I've not actually used Flex with Radware, but I'd be very surprised if there were any issues. Regards, Alistair -- Alistair McLeodDevelopmentDirector iteration::two[EMAIL PROTECTED] Office: +44 (0)131 338 6108 This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately.Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Leif WellsSent: 25 May 2005 15:34To: flexcoders@yahoogroups.comSubject: [flexcoders] Flex and Load Balancing We'd like to use Flex in an enterprise deployment, where all HTTP requests are handled and dispatched by a Radware load balancer.We are getting a bit of push-back from our client. Our client has seen in the past that the Radware load balancers don't work exactly as expected when tunnelling other protocols over HTTP ( e.g. Java RMI). We want to make sure that the Radware load balancers can handle Flex invocations over HTTP without any problems. These guys need pertinent information to relieve risk-based stress. ;-)Do any of you have any data that indicates that Radware load balancers are fully compatible with Flex remoting? Special thanks,Leifa.k.a., JesterXL's manager Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: Saving a Flex chart as a jpeg file
I would recommend you save as something other than JPEG if you are going to be using the resulting images for anything other than online content. You'll get a much better result using WMF, which is scalable and lossless. JPEGs are fine for static HTML pages, but for anything else you want to avoid them at all costs. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of greenfishinwater Sent: 25 May 2005 14:39 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Saving a Flex chart as a jpeg file Thanks Dave, I will check it out. Andrew --- In flexcoders@yahoogroups.com, dave buhler [EMAIL PROTECTED] wrote: http://www.convertzone.com/net/cz-adshareit%20swf%20to%20video%20convert er%20pro-swf-jpg.htm On 5/24/05, greenfishinwater [EMAIL PROTECTED] wrote: I have a request for an application that presents data as various kinds of charts and graphs. The user would like thye ability to save specific charts as a jpeg, for later use in a powerpoint slide. Is this possible, I have a feeling it is not, I know how to print out, but to save as a jpeg? Andrew Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Flex and Load Balancing
RemoteObject uses HTTP and should work fine in a load-balanced environment. The other services (HTTPService and WebService) also do their work over HTTP. Do you anticipate needing stateful Java classes or will everything work in a stateless environment? The only thing I can imagine is if somehow the Radware balancers require url-rewriting or some mechanism for supporting sticky sessions that we wouldnt automatically support, but I tend to think wed be fine. Dont have anything official for you though or actual experience with Radware. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Leif Wells Sent: Wednesday, May 25, 2005 10:34 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex and Load Balancing We'd like to use Flex in an enterprise deployment, where all HTTP requests are handled and dispatched by a Radware load balancer. We are getting a bit of push-back from our client. Our client has seen in the past that the Radware load balancers don't work exactly as expected when tunnelling other protocols over HTTP (e.g. Java RMI). We want to make sure that the Radware load balancers can handle Flex invocations over HTTP without any problems. These guys need pertinent information to relieve risk-based stress. ;-) Do any of you have any data that indicates that Radware load balancers are fully compatible with Flex remoting? Special thanks, Leif a.k.a., JesterXL's manager Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] ProgressBar and cached images problem
One solution is to add a unique string to the tail of the image's URL, so the browser thinks it's a new image and goes and fetches it on every request(rather than returning it from the local cache). This fix is based on a related thread a week or two ago. The downside is that you dont get the benefit of the local cache. Here's an example that illustrates it: ?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" initialize="doLoad()" mx:Script![CDATA[ var xxx:String; public function doLoad() { xxx = "?CacheBuster="+Math.random(); myImage.source = "http://www.icv2.com/images/144699Curseofwererabmd.jpg" + xxx; } ]]/mx:Script mx:ProgressBar source="myImage" / mx:Image id="myImage" / !-- this is just so you can see what is being generated: -- mx:Label text="{xxx}" //mx:Application HTH, matt horn flex docs From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kristopher SchultzSent: Tuesday, May 24, 2005 6:14 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] ProgressBar and cached images problem Hey guys and gals, I've stumbled upon a quirky behavior I'm hoping you can help me resolve. The ProgressBar component does not appear to work properly if the graphic asset being loaded is in the browser's cache. The simple example below illustrates this problem. The first time this app is displayed the ProgressBar properly tracks the loading of the image. But on subsequent browser refreshes, the image loads justfinebut the ProgressBar remains at 0%. If the browser cache is cleared and the app is reloaded the ProgressBar once again works properly. Is this a known issue? How do I work around this problem? Example ?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" initialize="doLoad()" mx:Script ![CDATA[ public function doLoad() { myImage.source = "http://somedomain.com/someImage.jpg"; } ]] /mx:Script mx:ProgressBar source="myImage" / mx:Image id="myImage" / /mx:Application Kris -- Kristopher Schultz Developer Resource Interactive p: 614.410.2123 www.resource.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 the Yahoo! Terms of Service.
[flexcoders] Cairngorm store products
I keep getting a products could not be retrieved message from the cairngorm store. Must be a db path problem. How should I specify it in store.cfg? If it helps, the path to hsqldb.jar on my machine is: C:\servers\jakarta-tomcat-5.0.25\webapps\cairngormstore\WEB-INF\lib - Tom 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] Saving a flex chart as a jpeg
I had a quick look at the swf converter that was suggested, but the way flex works is that the chart is drawn at runtime from data provided by a remote object, so there will not be a swf file with the displayed chart in it. The only swf file availabe is the original swf generated by flex. I like the ability of Flex in producing charts, with dynamic data and parameters. I know it sounds corny, but maybe the user can take a snapshot of the screen, edit the image to isolate the graph and then save for later use. I take the point about using something more suitable than a jpeg file. Andrew Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Cairngorm store products
Tom, There are a number of things to check ... first of all, have you placed the named service in flex-config.xml (have you used our flex-config.xml) ? Is there more detailed error message in your appserver log file ? Steven -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Fitzpatrick Sent: 25 May 2005 16:16 To: flexcoders@yahoogroups.com Subject: [flexcoders] Cairngorm store products I keep getting a products could not be retrieved message from the cairngorm store. Must be a db path problem. How should I specify it in store.cfg? If it helps, the path to hsqldb.jar on my machine is: C:\servers\jakarta-tomcat-5.0.25\webapps\cairngormstore\WEB-INF\lib - Tom Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Cairngorm store products
At 11:17 AM 5/25/2005, you wrote: There are a number of things to check ... first of all, have you placed the named service in flex-config.xml (have you used our flex-config.xml) ? Yes, I used your flex-config.xml file. Is there more detailed error message in your appserver log file ? The only cairngorm store related message in the log just references the Flex build. - Tom 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] Saving a flex chart as a jpeg
A major insane way if you're feeling adventuerous. Go to the AS2Draw or similiar drawing actionscript classes; then, utilizing DENG, convert you're drawing to SVG XML. From that point, you can pass it to a server-side script that can take the SVG to convert to whatever format you like. Thinking out loud here... - Original Message - From: greenfishinwater [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, May 25, 2005 11:21 AM Subject: [flexcoders] Saving a flex chart as a jpeg I had a quick look at the swf converter that was suggested, but the way flex works is that the chart is drawn at runtime from data provided by a remote object, so there will not be a swf file with the displayed chart in it. The only swf file availabe is the original swf generated by flex. I like the ability of Flex in producing charts, with dynamic data and parameters. I know it sounds corny, but maybe the user can take a snapshot of the screen, edit the image to isolate the graph and then save for later use. I take the point about using something more suitable than a jpeg file. Andrew Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Custom DateCellRenderer issue.
Hi Pradeep, Change your focusIn() method to the following: function focusIn() : Void { if ( dateObj == undefined ) { createClassObject( DateField, dateObj, 100, {styleName:this, owner:this}); dateObj.width=width; dateObj.dateFormatter=this.formatDate; dateObj.addEventListener(change, this); } dateObj.selectedDate = dateValue; dateObj.visible = true; label.visible = false; dateObj.setFocus(); } You were recreating the DateField object each time. I also removed the hardcoded with of 80 and set it to the cell width - this fixed the layout of the DateField when it first appeared. The creation of the DateField object probably better sits within createChildren, but that should make it work. Your date formatter isn't working because of scope of the dateFormat instance variable inside your formatDate() method, probably because you're adding event listeners without using the Delegate class - I'll let you work out the correct solution for that yourself, but a workaround for just now is to define the date formatter inside your formatDate() method: private function formatDate( date : Date ):String{ var dateFormat = new DateFormatter(); dateFormat.formatString=MM-DD-; return dateFormat.format(date); } Cheers, Ali -- Alistair McLeod Development Director iteration::two [EMAIL PROTECTED] Office: +44 (0)131 338 6108 This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately. Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Pradeep Chaudhary Sent: 25 May 2005 16:02 To: flexcoders@yahoogroups.com Subject: [flexcoders] Custom DateCellRenderer issue. Hi, I'am trying to create a custom DateCellRenderer to be used in DataGrid. By default label is displayed with formatted date value. On clicking in the cell DateField is displayed with cell value. After changing the date the DateField shows empty text field and its size changes. I want it to just display the changed value. The DateField should disappear when user clicks or tabs out of the DateField with the label displaying the new value. Also i could not apply a dateFormatter function to the DateField. Can anybody please suggest what I'm missing. Attached is source code for the DateCellRenderer and sample DataGrid in which it is used. Thanks in advance, Pradeep Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] About deploying flex app in Weblogic
Hi all, I have my flex app running in weblogic 8.1, and I am using ant to automate everything (including deploy and undeploy). When running the undeploy WL tool it tries to delete the dir my app was copied into, but I get an error thrown by ant in which it is impossible to delete the file WEB-INF/flex/jars/ahdump.jar. Is there a way to have this file unlocked? Perhaps a switch in some flex servlet? No big deal here, just trying to remove nasty red-colored messages in my ant console. Regards. J. Jesús Ramos Cardona Desarrollo de Sistemas de Casa de Bolsa [EMAIL PROTECTED] +52 (55) 51 74 22 22 ext. 1250 Ixe Grupo Financiero Este correo electrónico y sus anexos pueden contener información CONFIDENCIAL para uso exclusivo de su destinatario. Si ha recibido este correo por error, por favor, notifÃquelo al remitente y bórrelo de su sistema. Muchas gracias. Las opiniones expresadas en este correo son las de su autor y no son necesariamente compartidas o apoyadas por la compañÃa. Ixe Grupo Financiero no asume aquà obligaciones ni se responsabiliza del contenido de este correo, a menos que dicha información sea confirmada por escrito por un representante autorizado. No se garantiza que la transmisión de este correo sea segura o libre de errores, podrÃa haber sido viciada, perdida, destruida, haber llegado tarde, de forma incompleta o contener VIRUS. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Saving a flex chart as a jpeg
That was my original thought; but I didn't want to suggest such a low tech method. :) Basically if you want really flexible screen capture beyong the Print-Screen button get yourself SnagIT, and screen cap away... greenfishinwater wrote: I had a quick look at the swf converter that was suggested, but the way flex works is that the chart is drawn at runtime from data provided by a remote object, so there will not be a swf file with the displayed chart in it. The only swf file availabe is the original swf generated by flex. I like the ability of Flex in producing charts, with dynamic data and parameters. I know it sounds corny, but maybe the user can take a snapshot of the screen, edit the image to isolate the graph and then save for later use. I take the point about using something more suitable than a jpeg file. Andrew Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Cairngorm store products
Hi Tom, if you used the default settings of store.cfg, make sure you have a db directory in the parent of your WEBAPP_DIR. On Tomcat that's TOMCAT_HOME/webapps. In db you have to place your catalog.proteries and catalog.script files. See install docs for more. Best, Alex -- Alex Uhlmann Software Engineer iteration::two -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Behalf Of Tom Fitzpatrick Sent: 25 May 2005 16:31 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Cairngorm store products At 11:17 AM 5/25/2005, you wrote: There are a number of things to check ... first of all, have you placed the named service in flex-config.xml (have you used our flex-config.xml) ? Yes, I used your flex-config.xml file. Is there more detailed error message in your appserver log file ? The only cairngorm store related message in the log just references the Flex build. - Tom Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Compiling Flex files with Ant and mxmlc.jar
I've been trying to create a platform neutral build for our flex application using Ant and mxmlc.jar but I can't get the configuration to work. When I run the build I always get an class not found exception for the flex/tools/Mxmlc class. I can build flex with Ant if I use the mxmlc.exe compiler directly from Ant, but I wanted the build to work without requiring the compiler script or executable. Here is my current Ant target that is not working: target name=compile_flex_jar depends=init, flex_classpath echo message=mxmlc.jar = ${mxmlc.jar}/ echo message=flex_config = ${flex_config}/ echo message=flex_file = ${flex_file}/ echo message=flex.class.path = ${flex.class.path}/ echo message=flex_jars.dir = ${flex_jars.dir}/ echo message=flex_home.dir = ${flex_home.dir}/ java jar=${mxmlc.jar} fork=true dir=c:\dev\in2m\in2m\flex failonerror=true jvmarg value=-Dassert -Dapplication.home=${env.FLEX_HOME} -Xms256M -Xmx512M / classpath path refid=flex.class.path/ pathelement location=c:/dev/in2m/in2m/flex/webapp/mvelopes/WEB-INF/flex/jars/mxmlc.jar/ /classpath arg value=-configuration ${flex_config} ${flex_file} / /java /target Even when I hard code the mxmlc.jar file in the class path executing mxmlc.jar doesn't find the correct class. Is anyone else using Ant and mxmlc.jar to compile their Flex files and if so can you post a solution showing the correct configuration? Thanks in advance for your help. Brett 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 store products
Hi Alex - Thanks to you and Steven for staying with me on this. I did set it up that way, and it's still not working. My directory structure is: jakarta-tomcat-5.0.25 webapps db jakarta-tomcat-5.0.25 webapps cairngormstore Inside the db directory are catalog.properties, catalog.script, and mysql_store.sql I did find this error message from Tomcat: java.sql.SQLException: User not found: CAIRNGORMSTORE Does that help? - Tom At 12:25 PM 5/25/2005, you wrote: if you used the default settings of store.cfg, make sure you have a db directory in the parent of your WEBAPP_DIR. On Tomcat that's TOMCAT_HOME/webapps. In db you have to place your catalog.proteries and catalog.script files. See install docs for more. 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] Compiling Flex files with Ant and mxmlc.jar
Here's a working Ant script(this is run in an exploded web application dir, but that's easy to change): java jar=${flex.mxmlc.jar} dir=${app.dir} fork=true arg line=-flexlib ${flex.dist.lib} -configuration WEB-INF/flex/flex-config.xml -webroot . -o index.mxml.swf index.mxml/ /java Note that when using the jar= argument to java, one doesn't specify a classpath. That's probably your problem. . .. . ...j Brett Palmer wrote: I've been trying to create a platform neutral build for our flex application using Ant and mxmlc.jar but I can't get the configuration to work. When I run the build I always get an class not found exception for the flex/tools/Mxmlc class. I can build flex with Ant if I use the mxmlc.exe compiler directly from Ant, but I wanted the build to work without requiring the compiler script or executable. Here is my current Ant target that is not working: target name=compile_flex_jar depends=init, flex_classpath echo message=mxmlc.jar = ${mxmlc.jar}/ echo message=flex_config = ${flex_config}/ echo message=flex_file = ${flex_file}/ echo message=flex.class.path = ${flex.class.path}/ echo message=flex_jars.dir = ${flex_jars.dir}/ echo message=flex_home.dir = ${flex_home.dir}/ java jar=${mxmlc.jar} fork=true dir=c:\dev\in2m\in2m\flex failonerror=true jvmarg value=-Dassert -Dapplication.home=${env.FLEX_HOME} -Xms256M -Xmx512M / classpath path refid=flex.class.path/ pathelement location=c:/dev/in2m/in2m/flex/webapp/mvelopes/WEB-INF/flex/jars/mxmlc.jar/ /classpath arg value=-configuration ${flex_config} ${flex_file} / /java /target Even when I hard code the mxmlc.jar file in the class path executing mxmlc.jar doesn't find the correct class. Is anyone else using Ant and mxmlc.jar to compile their Flex files and if so can you post a solution showing the correct configuration? Thanks in advance for your help. Brett Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Cairngorm error
here's the flex-config file and the content of web-inf/flex folder: /web-inf/flex/ frameworks frameworks-debug generated jars logs system_classes user_classes cache.dep cairngorm-manifest.xml flash-unicode-table.xml flex-config.xml gateway-config.xml global.css license.properties mxml-manifest.xml hope that helps figuring out the problem Thanks From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios GianninasSent: Wednesday, May 25, 2005 1:08 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Cairngorm error Hi, You must add the appropriate entry for the cairngorm-manifest.xml in the flex-config.xml (portion in red below): namespace uri="http://www.macromedia.com/2003/mxml" manifest/WEB-INF/flex/mxml-manifest.xml/manifest/namespace namespace uri=http://www.iterationtwo.com/cairngorm manifest/WEB-INF/flex/cairngorm-manifest.xml/manifest/namespace This explains the error message. If it still doesn't work, please post you flex-config so we can take a look and please let us know what are the contents of the {server}\WEB-INF\flex folder. Dimitrios "Jimmy" Gianninas RIADeveloper Optimal Payments Inc. From: Mehdi, Agha [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 24, 2005 10:50 PMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Cairngorm error Did that just now. Same error. I restarted flex services but didn't work. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dave buhlerSent: Tuesday, May 24, 2005 7:43 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Cairngorm error Hi Agha,Copy the Flex-Config file from the source files that came with either the Login sample or Store sample that came with the cairngorm download.Copy it over your existing Flex-Config fileBest,Dave On 5/24/05, Mehdi, Agha [EMAIL PROTECTED] wrote: Hi guys, I just started with Cairngorm 0.99 and am running into the following error. Did everything by the book. Any help will earn my thanks. :) Error /com/littler/ourpeople/business/Services.mxml:11 Namespace http://macromedia.com/2003/mxml has not been associated with component manifest. - Agha Mehdi web developer Littler Mendelson P.C. work: 415-288-6362 cell: 415-987-7104 - Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.To reply to our email administrator directly, send an email to[EMAIL PROTECTED]Littler Mendelson, P.C.http://www.littler.com This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.To reply to our email administrator directly, send an email to[EMAIL PROTECTED]Littler Mendelson, P.C.http://www.littler.com Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message. To reply to our email administrator directly, send an email to [EMAIL PROTECTED] Littler Mendelson, P.C. http://www.littler.com flex-config.xml Description: Binary data
RE: [flexcoders] Tabnavigator tab name issue
If you know the tab name and how you want it to be split, you can programmatically insert a newline to force the label to display in 2 lines. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml mx:Script function manage(){ view1.label = Display + \n + Content; } /mx:Script mx:TabNavigator creationComplete=manage(); width=50% tabHeight=100 mx:VBox id=view1/ /mx:TabNavigator /mx:Application -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of nithya karthik Sent: Wednesday, May 25, 2005 3:12 AM To: flexcoders Subject: [flexcoders] Tabnavigator tab name issue hai, I have a tab navigator with 4 canvases inside. the label for each canvas is very lenghty and i want it to be displayed in two lines. say the label is Display Content ,I want it to be displayed as: Display Content How should i be doing this? Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Cairngorm store products
Actually the db directory by default is in TOMCAT_HOME not TOMCAT_HOME/webapps. (you can change this via store.cfg. In case you did that: We're using HSQLDB in in-process mode, so it initialises when you start your app server. Have you restarted Tomcat? When you restart Tomcat, HSQLDB should by default create catalog.lck and catalog.log files in the db directory. Does your catalog.script file actually create a user CAIRNGORMSTORE. Is the content matching the content of the supplied catalog.script? Best, Alex -- Alex Uhlmann Software Engineer iteration::two -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Behalf Of Tom Fitzpatrick Sent: 25 May 2005 18:02 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Cairngorm store products Hi Alex - Thanks to you and Steven for staying with me on this. I did set it up that way, and it's still not working. My directory structure is: jakarta-tomcat-5.0.25 webapps db jakarta-tomcat-5.0.25 webapps cairngormstore Inside the db directory are catalog.properties, catalog.script, and mysql_store.sql I did find this error message from Tomcat: java.sql.SQLException: User not found: CAIRNGORMSTORE Does that help? - Tom At 12:25 PM 5/25/2005, you wrote: if you used the default settings of store.cfg, make sure you have a db directory in the parent of your WEBAPP_DIR. On Tomcat that's TOMCAT_HOME/webapps. In db you have to place your catalog.proteries and catalog.script files. See install docs for more. Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] ProgressBar and cached images problem
On 5/25/05, Kristopher Schultz [EMAIL PROTECTED] wrote: The ProgressBar component does not appear to work properly if the graphic asset being loaded is in the browser's cache. The simple example below [...] That odd. Anyway, here's a workaround: mx:Image id=myImage complete=progressbar.mode = 'manual'; progressbar.setProgress(100, 100) / When the image dispatches a complete event, set the progress to 100. 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 Confusion
Hello Everyone, I want so terribly to assimilate Flex into my programming life, as I can see the true potential of it now. Coming from the Flash MX 2004 and AS2.0 programming background, I can truly appreciate the power Flex offers. Since I am starting with a clean slate using Flex, I am seeking advice on how I should handle my Data Structures on the Client Side, and how I can collect data spread across multiple forms, and then send it to my Remoting Server. More than that, I've never been one to stare a Gift Horse in the mouth - and ignore good advice. If I must learn Flex using blood, sweat and tears - then maybe that's how I must learn it, but if there is a model I can follow, that will serve as a guide for me, I would love to have a tool like that. Everybody keeps touting Cairngorm - and I downloaded everything from the website. I read everything that was available, but there is one critical piece missing. All the whitepapers talk about, is how Cairngorm has evolved through the versions, what has changed since the last version, and the fact that it addresses the modeling questions when it comes to building RIA's - Isn't there an article covering the topic of WHAT Cairngorm is? How it works? Explain in plain English as to HOW the proposed structure and included helper files enhances the developers ability to create RIA's (which are scalable in nature). Does everybody understand what I am getting at? There is nothing on the website, that starts at Ground Zero - explaining What Cairngorm is, Here is how it works, Here is a coding example of a typical way of doing an app, and then in comparison, the Cairngorm way. I know you all, are probably going to say Well, look at the bundled applications, because it will spell it all out there. The thing is, I don't want to have to make that determination for myself. I am not that good yet - I actually need to be TOLD why it should be done this way. Sorry for the unusual post, but I just need some clarifications on Cairngorm. Pretend I am an idiot - and not somebody who has been following this model for months, and has a good grasp of Flex. Thanks in advance, Mike 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 store products
Hi Alex - At 01:51 PM 5/25/2005, you wrote: Actually the db directory by default is in TOMCAT_HOME not TOMCAT_HOME/webapps. (you can change this via store.cfg. This is getting stranger. I moved the db folder and its contents up a level to the location you describe (the same level as webapps): jakarta-tomcat-5.0.25 db Now, when I restarted tomcat, a new db directory was created above jakarta-tomcat-5.0.25. Inside that directory are the catalog.lck and catalog.log files you refer to below, as well as a copy of the catalog.properties file. I'm still getting the products can't be retrieved message. Hmm. In case you did that: We're using HSQLDB in in-process mode, so it initialises when you start your app server. Have you restarted Tomcat? When you restart Tomcat, HSQLDB should by default create catalog.lck and catalog.log files in the db directory. - Tom 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 Confusion
I think you raise valid questions. The main question is really one that most developers ask at some point. Why use these things called Patterns? You may want to check out: http://en.wikipedia.org/wiki/Design_Patterns http://java.sun.com/blueprints/corej2eepatterns/ or search google. There are many, many article on Pattern based development. And my short answer to the What is Cairngorm? question is: Cairngorm is a framework for implementing Patterns within a Flex application. Hope that helps. -James On Wed, 2005-05-25 at 13:08 -0500, Mike Anderson wrote: Hello Everyone, I want so terribly to assimilate Flex into my programming life, as I can see the true potential of it now. Coming from the Flash MX 2004 and AS2.0 programming background, I can truly appreciate the power Flex offers. Since I am starting with a clean slate using Flex, I am seeking advice on how I should handle my Data Structures on the Client Side, and how I can collect data spread across multiple forms, and then send it to my Remoting Server. More than that, I've never been one to stare a Gift Horse in the mouth - and ignore good advice. If I must learn Flex using blood, sweat and tears - then maybe that's how I must learn it, but if there is a model I can follow, that will serve as a guide for me, I would love to have a tool like that. Everybody keeps touting Cairngorm - and I downloaded everything from the website. I read everything that was available, but there is one critical piece missing. All the whitepapers talk about, is how Cairngorm has evolved through the versions, what has changed since the last version, and the fact that it addresses the modeling questions when it comes to building RIA's - Isn't there an article covering the topic of WHAT Cairngorm is? How it works? Explain in plain English as to HOW the proposed structure and included helper files enhances the developers ability to create RIA's (which are scalable in nature). Does everybody understand what I am getting at? There is nothing on the website, that starts at Ground Zero - explaining What Cairngorm is, Here is how it works, Here is a coding example of a typical way of doing an app, and then in comparison, the Cairngorm way. I know you all, are probably going to say Well, look at the bundled applications, because it will spell it all out there. The thing is, I don't want to have to make that determination for myself. I am not that good yet - I actually need to be TOLD why it should be done this way. Sorry for the unusual post, but I just need some clarifications on Cairngorm. Pretend I am an idiot - and not somebody who has been following this model for months, and has a good grasp of Flex. Thanks in advance, Mike Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] can I bind more that one checkbox to a send requ est?
That helped alot, thanks Jeff. --- Jeff Steiner [EMAIL PROTECTED] wrote: Craig, I have a specific example on FlexAuthority. Visit: http://www.flexauthority.com/samplesIndex.cfm?sampleID=23 I have multiple checkboxes that pass along their checked state to a CFC that returns XML to populate a chart. Let me know if that does not answer your specific question. Jeff http://www.flexauthority.com - Original Message - From: Craig Newroth [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, May 24, 2005 4:55 AM Subject: RE: [flexcoders] can I bind more that one checkbox to a send requ est? Matt: Thanks for the response, I am trying to pass a list of the ones that are checked..values in the checkboxes are going to be passed to a cfc to get data from query and returned to datagrid. so I guess that you are saying to build an array out of the checkboxes (if they are checked) and then pass that array value to my cfc call? Craig --- Matt Chotin [EMAIL PROTECTED] wrote: Are you trying to pass a list of the ones that are checked or just one? Your changeThrusts method can simply store which checkboxes are selected and then you can build an array to pass to your web service for the query. If only one of those checkboxes is meant to be checked maybe you should look into using RadioButtons instead and then take advantage of RadioButtonGroup.selectedData. Matt _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cnewroth55 Sent: Thursday, May 19, 2005 10:44 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] can I bind more that one checkbox to a send request? I have a form that has several different checkboxes and need to pass any of their respected labels (or data) to a webservice cfc..what i what to do is be able to pass any of the below up to my webservice call. the code for the web service call is below this...; mx:VBox mx:CheckBox label=Select All Thrust color=#123154 labelPlacement=right id=ThrustReportsCHB1 click=changeThrusts( event ); / mx:CheckBox label=ASMT - Affordable Structures amp; Mfg. Tech color=#123154 labelPlacement=right id=ThrustReportsCHB2 / mx:CheckBox label=ALE - Adv. Lean amp; Efficient color=#123154 labelPlacement=right id=ThrustReportsCHB3 / mx:CheckBox label=ASC - Adv. Support Concepts color=#123154 labelPlacement=right id=ThrustReportsCHB4 / mx:CheckBox label=ASC - APS - Adv. Platform Systems color=#123154 labelPlacement=right id=ThrustReportsCHB5 / mx:CheckBox label=NCO - Net-Centric Operations color=#123154 labelPlacement=right id=ThrustReportsCHB6 / mx:HBox x=5 y=230 mx:FormItem mx:CheckBox label=Summary color=#123154 labelPlacement=top id=summaryCHB click=changeOther( event );/ /mx:FormItem mx:FormItem mx:CheckBox label=Detail color=#123154 labelPlacement=top id=detailCHB click=changeOther( event );/ /mx:FormItem /mx:HBox /mx:VBox WEB SERVICE CALL mx:WebService wsdl=http://nameremoved.com/gvs/_cfc/gvs_queries.cfc? http://nameremoved.com/gvs/_cfc/gvs_queries.cfc? wsdl id=gvsQueriesWS mx:operation name=Thrust_Query mx:request ThrustName{WhereIneedToPassCheckboxDATA}/ThrustName /mx:request /mx:operation /mx:WebService _ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! http://docs.yahoo.com/info/terms/ Terms of Service. __ Do you Yahoo!? Yahoo! Small Business - Try our new Resources site http://smallbusiness.yahoo.com/resources/ Yahoo! Groups Links __ Do you Yahoo!? Yahoo! Small Business - Try our new Resources site http://smallbusiness.yahoo.com/resources/ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Compiling Flex files with Ant and mxmlc.jar
Joe, Thanks for the information. I'm trying to compile the flex file in an exploded web application as well, but I'm still getting a no class found exception. Here are some comments and questions to clarify my problem: 1. Here is my exploded flex web application directory structure relative to my build.xml: flex/ - contains my build.xml file flex/webapp/MyApplication - root context for my webapp application - contains MyApplication.mxml flex/webapp/MyApplication/WEB-INF/flex/jars - contains Flex jar libraries (i.e. mxmlc.jar) 2. With the fork option set to true can I still use relative paths or do I need to use full paths? 3. Here are some questions with regards to your suggested parameter and my assumptions as to what they should point be: * jar=${flex.mxmlc.jar} - Should be a relative path to the mxmlc.jar file (i.e. webapp/MyApplication/WEB-INF/flex/jars/mxmlc.jar) * dir=${app.dir} - I'm not sure what this should point to. Should this be my current working directory or root context to my web application? * ${flex.dist.lib} - I assume this points to the Flex jars directory (i.e. webapp/MyApplication/WEB-INF/flex/jars) * webroot - I assume this should point to the root directory of my web application. If you have further information on the above questions I would appreciate it. Thanks again, Brett On 5/25/05, Joe Berkovitz [EMAIL PROTECTED] wrote: Here's a working Ant script(this is run in an exploded web application dir, but that's easy to change): java jar=${flex.mxmlc.jar} dir=${app.dir} fork=true arg line=-flexlib ${flex.dist.lib} -configuration WEB-INF/flex/flex-config.xml -webroot . -o index.mxml.swf index.mxml/ /java Note that when using the jar= argument to java, one doesn't specify a classpath. That's probably your problem. . .. . ...j Brett Palmer wrote: I've been trying to create a platform neutral build for our flex application using Ant and mxmlc.jar but I can't get the configuration to work. When I run the build I always get an class not found exception for the flex/tools/Mxmlc class. I can build flex with Ant if I use the mxmlc.exe compiler directly from Ant, but I wanted the build to work without requiring the compiler script or executable. Here is my current Ant target that is not working: target name=compile_flex_jar depends=init, flex_classpath echo message=mxmlc.jar = ${mxmlc.jar}/ echo message=flex_config = ${flex_config}/ echo message=flex_file = ${flex_file}/ echo message=flex.class.path = ${flex.class.path}/ echo message=flex_jars.dir = ${flex_jars.dir}/ echo message=flex_home.dir = ${flex_home.dir}/ java jar=${mxmlc.jar} fork=true dir=c:\dev\in2m\in2m\flex failonerror=true jvmarg value=-Dassert -Dapplication.home=${env.FLEX_HOME} -Xms256M -Xmx512M / classpath path refid=flex.class.path/ pathelement location=c:/dev/in2m/in2m/flex/webapp/mvelopes/WEB-INF/flex/jars/mxmlc.jar/ /classpath arg value=-configuration ${flex_config} ${flex_file} / /java /target Even when I hard code the mxmlc.jar file in the class path executing mxmlc.jar doesn't find the correct class. Is anyone else using Ant and mxmlc.jar to compile their Flex files and if so can you post a solution showing the correct configuration? Thanks in advance for your help. Brett Yahoo! Groups Links Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Compiling Flex files with Ant and mxmlc.jar
Brett, here are some answers that I hope will be helpful. 2. With the fork option set to true can I still use relative paths or do I need to use full paths? You can use relative paths. Relative paths in arguments to the java program will be relative to the dir attribute of the java task, while relative paths in attributes of the java task itself (like the jar file path) are relative to wherever Ant is running. 3. Here are some questions with regards to your suggested parameter and my assumptions as to what they should point be: * jar=${flex.mxmlc.jar} - Should be a relative path to the mxmlc.jar file (i.e. webapp/MyApplication/WEB-INF/flex/jars/mxmlc.jar) Correct. It needn't be relative, but if it is, it will be relative to Ant's current directory. * dir=${app.dir} - I'm not sure what this should point to. Should this be my current working directory or root context to my web application? In my example, it is the doc root of the web application. This is the working directory for the Java process in which MXMLC runs. * ${flex.dist.lib} - I assume this points to the Flex jars directory (i.e. webapp/MyApplication/WEB-INF/flex/jars) *** Nope, that has to point to the lib/ directory in your Flex 1.5 distribution. (e.g. C:\Program Files\Macromedia\Flex\lib). This is probably your current problem. * webroot - I assume this should point to the root directory of my web application. Correct. 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 error
Ok the cairngorm-manifest.xml file is there, which is good. I made a mistake in the earlier post (blame copy'n'paste), the entry should look like this (missing double-quotes): namespace uri="http://www.iterationtwo.com/cairngorm" manifest/WEB-INF/flex/cairngorm-manifest.xml/manifest/namespace Can you let us know if that works? Dimitrios "Jimmy" Gianninas RIADeveloper Optimal Payments Inc. From: Mehdi, Agha [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 25, 2005 1:37 PMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Cairngorm error here's the flex-config file and the content of web-inf/flex folder: /web-inf/flex/ frameworks frameworks-debug generated jars logs system_classes user_classes cache.dep cairngorm-manifest.xml flash-unicode-table.xml flex-config.xml gateway-config.xml global.css license.properties mxml-manifest.xml hope that helps figuring out the problem Thanks From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios GianninasSent: Wednesday, May 25, 2005 1:08 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Cairngorm error Hi, You must add the appropriate entry for the cairngorm-manifest.xml in the flex-config.xml (portion in red below): namespace uri="http://www.macromedia.com/2003/mxml" manifest/WEB-INF/flex/mxml-manifest.xml/manifest/namespace namespace uri=http://www.iterationtwo.com/cairngorm manifest/WEB-INF/flex/cairngorm-manifest.xml/manifest/namespace This explains the error message. If it still doesn't work, please post you flex-config so we can take a look and please let us know what are the contents of the {server}\WEB-INF\flex folder. Dimitrios "Jimmy" Gianninas RIADeveloper Optimal Payments Inc. From: Mehdi, Agha [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 24, 2005 10:50 PMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Cairngorm error Did that just now. Same error. I restarted flex services but didn't work. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dave buhlerSent: Tuesday, May 24, 2005 7:43 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Cairngorm error Hi Agha,Copy the Flex-Config file from the source files that came with either the Login sample or Store sample that came with the cairngorm download.Copy it over your existing Flex-Config fileBest,Dave On 5/24/05, Mehdi, Agha [EMAIL PROTECTED] wrote: Hi guys, I just started with Cairngorm 0.99 and am running into the following error. Did everything by the book. Any help will earn my thanks. :) Error /com/littler/ourpeople/business/Services.mxml:11 Namespace http://macromedia.com/2003/mxml has not been associated with component manifest. - Agha Mehdi web developer Littler Mendelson P.C. work: 415-288-6362 cell: 415-987-7104 - Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.To reply to our email administrator directly, send an email to[EMAIL PROTECTED]Littler Mendelson, P.C.http://www.littler.com This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.To reply to our email administrator directly, send an email to[EMAIL PROTECTED]Littler Mendelson, P.C.http://www.littler.com This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.To reply to our email administrator directly, send an email to[EMAIL PROTECTED]Littler Mendelson, P.C.http://www.littler.com Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] PieChart label
Hi, How do I make a pie chart show its label even if it is 100% for one item (i.e. only one slice for the whole pie)? At the moment the labels only show up when there is more then one slice present. Thanks Jonathan 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] Applications forgetting variables
Ok assuming your right and again I hope this is not another silly question but what does a local variable look like and what does an instance variable look like? To me I just thought all variables were just like this public var name:String you know things like that Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Applications forgetting variables
It all depends on WHERE you declare the variable. In the first case, you were defining your var outisde of the function, which should keep its value even when the function is through running. If you declare the var inside the function, however, that variable will be destroyed when that function is through running. You really should read a tutorial or chapter on Variable Scope, and post your code here, because you're not giving us much to work with. Cheers On 5/25/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Ok assuming your right and again I hope this is not another silly question but what does a local variable look like and what does an instance variable look like? To me I just thought all variables were just like this public var name:String you know things like that Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Jordan Snyder Applications Developer ImageAction, USA http://www.imageaction.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] Applications forgetting variables
An instance variable is inside a class, but outside that class's methods. A local variable is inside one of the methods. public class MyClass { var myInstanceVariable:String; public function myMethod():Void { var myLocalVariable:String = Gordon; trace(myLocalVariable); } } Questions like this are definitely not silly, but they're questions about object-oriented programming, not about Flex per se. You would face similar issues with other OO programnming environments. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, May 25, 2005 2:31 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Applications forgetting variables Ok assuming your right and again I hope this is not another silly question but what does a local variable look like and what does an instance variable look like? To me I just thought all variables were just like this public var name:String you know things like that Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Cairngorm error
Nope, didn't work let me paste the entire exception info Compilation Results Errors, warnings or exceptions were found while compiling /internet/ourpeople/index.mxml. Visit the online Flex documentation or API reference for further information. 5 Errors found. Error /com/littler/ourpeople/business/Services.mxml:11 Namespace http://macromedia.com/2003/mxml has not been associated with component manifest.Error /com/littler/ourpeople/business/Services.mxml:11 Don't know how to parse element "http://macromedia.com/2003/mxml:RemoteObject". It is not a known type or a property of org.nevis.cairngorm.business.ServiceLocator.Error /internet/ourpeople/index.mxml:11 Don't know how to parse element "com.littler.ourPeople.business.*:Services". It is not a known type or a property of mx.core.Application.Error /internet/ourpeople/index.mxml:12 Don't know how to parse element "com.littler.ourPeople.Control.*:OurPeopleController". It is not a known type or a property of mx.core.Application.Error /internet/ourpeople/index.mxml:19 Don't know how to parse element "http://www.macromedia.com/2003/mxml:Canvas". It is not a known type or a property of mx.core.Application. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios GianninasSent: Wednesday, May 25, 2005 1:20 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Cairngorm error Ok the cairngorm-manifest.xml file is there, which is good. I made a mistake in the earlier post (blame copy'n'paste), the entry should look like this (missing double-quotes): namespace uri="http://www.iterationtwo.com/cairngorm" manifest/WEB-INF/flex/cairngorm-manifest.xml/manifest/namespace Can you let us know if that works? Dimitrios "Jimmy" Gianninas RIADeveloper Optimal Payments Inc. From: Mehdi, Agha [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 25, 2005 1:37 PMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Cairngorm error here's the flex-config file and the content of web-inf/flex folder: /web-inf/flex/ frameworks frameworks-debug generated jars logs system_classes user_classes cache.dep cairngorm-manifest.xml flash-unicode-table.xml flex-config.xml gateway-config.xml global.css license.properties mxml-manifest.xml hope that helps figuring out the problem Thanks From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios GianninasSent: Wednesday, May 25, 2005 1:08 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Cairngorm error Hi, You must add the appropriate entry for the cairngorm-manifest.xml in the flex-config.xml (portion in red below): namespace uri="http://www.macromedia.com/2003/mxml" manifest/WEB-INF/flex/mxml-manifest.xml/manifest/namespace namespace uri=http://www.iterationtwo.com/cairngorm manifest/WEB-INF/flex/cairngorm-manifest.xml/manifest/namespace This explains the error message. If it still doesn't work, please post you flex-config so we can take a look and please let us know what are the contents of the {server}\WEB-INF\flex folder. Dimitrios "Jimmy" Gianninas RIADeveloper Optimal Payments Inc. From: Mehdi, Agha [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 24, 2005 10:50 PMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Cairngorm error Did that just now. Same error. I restarted flex services but didn't work. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dave buhlerSent: Tuesday, May 24, 2005 7:43 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Cairngorm error Hi Agha,Copy the Flex-Config file from the source files that came with either the Login sample or Store sample that came with the cairngorm download.Copy it over your existing Flex-Config fileBest,Dave On 5/24/05, Mehdi, Agha [EMAIL PROTECTED] wrote: Hi guys, I just started with Cairngorm 0.99 and am running into the following error. Did everything by the book. Any help will earn my thanks. :) Error /com/littler/ourpeople/business/Services.mxml:11 Namespace http://macromedia.com/2003/mxml has not been associated with component manifest. - Agha Mehdi web developer Littler Mendelson P.C. work: 415-288-6362 cell: 415-987-7104 - Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.To reply to our email administrator
RE: [flexcoders] Cairngorm error
Ahh, that has nothing to do with the Cairngorm manifest... I looked to quickly at the previous error. Can you attach your flex-config.xml so we can take a look at what might be wrong with it. Seems like the mxml-manifest can't be found. Dimitrios "Jimmy" Gianninas RIADeveloper Optimal Payments Inc. From: Mehdi, Agha [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 25, 2005 6:49 PMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Cairngorm error Nope, didn't work let me paste the entire exception info Compilation Results Errors, warnings or exceptions were found while compiling /internet/ourpeople/index.mxml. Visit the online Flex documentation or API reference for further information. 5 Errors found. Error /com/littler/ourpeople/business/Services.mxml:11 Namespace http://macromedia.com/2003/mxml has not been associated with component manifest.Error /com/littler/ourpeople/business/Services.mxml:11 Don't know how to parse element "http://macromedia.com/2003/mxml:RemoteObject". It is not a known type or a property of org.nevis.cairngorm.business.ServiceLocator.Error /internet/ourpeople/index.mxml:11 Don't know how to parse element "com.littler.ourPeople.business.*:Services". It is not a known type or a property of mx.core.Application.Error /internet/ourpeople/index.mxml:12 Don't know how to parse element "com.littler.ourPeople.Control.*:OurPeopleController". It is not a known type or a property of mx.core.Application.Error /internet/ourpeople/index.mxml:19 Don't know how to parse element "http://www.macromedia.com/2003/mxml:Canvas". It is not a known type or a property of mx.core.Application. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios GianninasSent: Wednesday, May 25, 2005 1:20 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Cairngorm error Ok the cairngorm-manifest.xml file is there, which is good. I made a mistake in the earlier post (blame copy'n'paste), the entry should look like this (missing double-quotes): namespace uri="http://www.iterationtwo.com/cairngorm" manifest/WEB-INF/flex/cairngorm-manifest.xml/manifest/namespace Can you let us know if that works? Dimitrios "Jimmy" Gianninas RIADeveloper Optimal Payments Inc. From: Mehdi, Agha [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 25, 2005 1:37 PMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Cairngorm error here's the flex-config file and the content of web-inf/flex folder: /web-inf/flex/ frameworks frameworks-debug generated jars logs system_classes user_classes cache.dep cairngorm-manifest.xml flash-unicode-table.xml flex-config.xml gateway-config.xml global.css license.properties mxml-manifest.xml hope that helps figuring out the problem Thanks From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios GianninasSent: Wednesday, May 25, 2005 1:08 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Cairngorm error Hi, You must add the appropriate entry for the cairngorm-manifest.xml in the flex-config.xml (portion in red below): namespace uri="http://www.macromedia.com/2003/mxml" manifest/WEB-INF/flex/mxml-manifest.xml/manifest/namespace namespace uri=http://www.iterationtwo.com/cairngorm manifest/WEB-INF/flex/cairngorm-manifest.xml/manifest/namespace This explains the error message. If it still doesn't work, please post you flex-config so we can take a look and please let us know what are the contents of the {server}\WEB-INF\flex folder. Dimitrios "Jimmy" Gianninas RIADeveloper Optimal Payments Inc. From: Mehdi, Agha [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 24, 2005 10:50 PMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Cairngorm error Did that just now. Same error. I restarted flex services but didn't work. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dave buhlerSent: Tuesday, May 24, 2005 7:43 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Cairngorm error Hi Agha,Copy the Flex-Config file from the source files that came with either the Login sample or Store sample that came with the cairngorm download.Copy it over your existing Flex-Config fileBest,Dave On 5/24/05, Mehdi, Agha [EMAIL PROTECTED] wrote: Hi guys, I just started with Cairngorm 0.99 and am running into the following error. Did everything by the book. Any help will earn my thanks. :) Error /com/littler/ourpeople/business/Services.mxml:11 Namespace http://macromedia.com/2003/mxml has not been associated with component manifest. - Agha Mehdi web developer Littler Mendelson P.C. work: 415-288-6362 cell: 415-987-7104 - 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!
RE: [flexcoders] Cairngorm error
Humm weird... I just did a fresh install of Flex 1.5 under Tomcat 5.1 and used the flex-config.xml you posted and it worked! Perhaps you should start from scratch as I did, just create a "Hello World" app, make sure it works and if it does, then add in your other files. You must have some corrupt file somewhere that is causing you that trouble. Dimitrios "Jimmy" Gianninas RIADeveloper Optimal Payments Inc. From: Mehdi, Agha [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 25, 2005 6:54 PMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Cairngorm error Here it is From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios GianninasSent: Wednesday, May 25, 2005 3:51 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Cairngorm error Ahh, that has nothing to do with the Cairngorm manifest... I looked to quickly at the previous error. Can you attach your flex-config.xml so we can take a look at what might be wrong with it. Seems like the mxml-manifest can't be found. Dimitrios "Jimmy" Gianninas RIADeveloper Optimal Payments Inc. From: Mehdi, Agha [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 25, 2005 6:49 PMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Cairngorm error Nope, didn't work let me paste the entire exception info Compilation Results Errors, warnings or exceptions were found while compiling /internet/ourpeople/index.mxml. Visit the online Flex documentation or API reference for further information. 5 Errors found. Error /com/littler/ourpeople/business/Services.mxml:11 Namespace http://macromedia.com/2003/mxml has not been associated with component manifest.Error /com/littler/ourpeople/business/Services.mxml:11 Don't know how to parse element "http://macromedia.com/2003/mxml:RemoteObject". It is not a known type or a property of org.nevis.cairngorm.business.ServiceLocator.Error /internet/ourpeople/index.mxml:11 Don't know how to parse element "com.littler.ourPeople.business.*:Services". It is not a known type or a property of mx.core.Application.Error /internet/ourpeople/index.mxml:12 Don't know how to parse element "com.littler.ourPeople.Control.*:OurPeopleController". It is not a known type or a property of mx.core.Application.Error /internet/ourpeople/index.mxml:19 Don't know how to parse element "http://www.macromedia.com/2003/mxml:Canvas". It is not a known type or a property of mx.core.Application. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios GianninasSent: Wednesday, May 25, 2005 1:20 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Cairngorm error Ok the cairngorm-manifest.xml file is there, which is good. I made a mistake in the earlier post (blame copy'n'paste), the entry should look like this (missing double-quotes): namespace uri="http://www.iterationtwo.com/cairngorm" manifest/WEB-INF/flex/cairngorm-manifest.xml/manifest/namespace Can you let us know if that works? Dimitrios "Jimmy" Gianninas RIADeveloper Optimal Payments Inc. From: Mehdi, Agha [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 25, 2005 1:37 PMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Cairngorm error here's the flex-config file and the content of web-inf/flex folder: /web-inf/flex/ frameworks frameworks-debug generated jars logs system_classes user_classes cache.dep cairngorm-manifest.xml flash-unicode-table.xml flex-config.xml gateway-config.xml global.css license.properties mxml-manifest.xml hope that helps figuring out the problem Thanks From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios GianninasSent: Wednesday, May 25, 2005 1:08 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Cairngorm error Hi, You must add the appropriate entry for the cairngorm-manifest.xml in the flex-config.xml (portion in red below): namespace uri="http://www.macromedia.com/2003/mxml" manifest/WEB-INF/flex/mxml-manifest.xml/manifest/namespace namespace uri=http://www.iterationtwo.com/cairngorm manifest/WEB-INF/flex/cairngorm-manifest.xml/manifest/namespace This explains the error message. If it still doesn't work, please post you flex-config so we can take a look and please let us know what are the contents of the {server}\WEB-INF\flex folder. Dimitrios "Jimmy" Gianninas RIADeveloper Optimal Payments Inc. From: Mehdi, Agha [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 24, 2005 10:50 PMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Cairngorm error Did that just now. Same error. I restarted flex services but didn't work. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dave buhlerSent: Tuesday, May 24, 2005 7:43 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Cairngorm error Hi Agha,Copy the Flex-Config file from the source files that came with either the Login sample or Store sample that came with the
[flexcoders] Re: Drag and Drop from tree to List
This seems to work fine when the dataProvider for the tree is a static mx:XML node list, but when the node list is the result of a remoteObject, the dataForFormat(treeItems) returns an undefined. I think what I am trying to do is very simple. I have a tree which is populated by a remoteObject call, this works fine. The XML returned from the remoteObject Call is in this format: node label=Test node label=Test.txt/ node label=Test2.txt/ /node Tree now works fine. Now, in the doDragDrop(event) function I call another method (after clearing the List and populating it with this dragsource object) called: sendFile(event) Which does this: var myObj:Object = event.dragSource.dataForFormat(treeItems); var fileName:String = String(myObj[0]); mx.core.Application.alert(fileName); All i get is undefined. If I try a .label or .node I also get an undefined. How can I get the label? Regards, Iain --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Yep, dataForFormat(treeItems) I think is what you want. As for only having one item in the destination List, you could simply clear the list before adding in the treeItems in the dragDrop handler. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Wednesday, May 25, 2005 8:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Drag and Drop from tree to List Hi, I'm dragging and dropping from a tree to a list. All the functionality works fine, but I'm trying to call another method when the item is dropped with the name of the file from the tree as the argument to that method. Example: Tree has two objects in a folder node called files: File1.txt and File2.txt When I drag from the tree and drop into the List container (List1) I want to call a method which has the File1.txt or File2.txt as the argument. Can I use the dataForFormat? Also if I want to restrict this list to only having 1 file in it how can I have it to only have the last item that I dropped into it, thus removing the previous item, if there was one there. I tried to put a change event handler on the list, but when you drop an Item into the list this event is not called, which I find extremely wierd being that the list has in fact 'changed'. Explain that one! Regards, Iain Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . 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 error
I had to do the same as Jimmy. When I started from a clean install (after uninstalling Flex Server) the app worked.On 5/25/05, Dimitrios Gianninas [EMAIL PROTECTED] wrote: Humm weird... I just did a fresh install of Flex 1.5 under Tomcat 5.1 and used the flex-config.xml you posted and it worked! Perhaps you should start from scratch as I did, just create a Hello World app, make sure it works and if it does, then add in your other files. You must have some corrupt file somewhere that is causing you that trouble. Dimitrios Jimmy Gianninas RIADeveloper Optimal Payments Inc. From: Mehdi, Agha [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 25, 2005 6:54 PMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Cairngorm error Here it is From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Dimitrios GianninasSent: Wednesday, May 25, 2005 3:51 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Cairngorm error Ahh, that has nothing to do with the Cairngorm manifest... I looked to quickly at the previous error. Can you attach your flex-config.xml so we can take a look at what might be wrong with it. Seems like the mxml-manifest can't be found. Dimitrios Jimmy Gianninas RIADeveloper Optimal Payments Inc. From: Mehdi, Agha [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 25, 2005 6:49 PMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Cairngorm error Nope, didn't work let me paste the entire exception info Compilation Results Errors, warnings or exceptions were found while compiling /internet/ourpeople/index.mxml. Visit the online Flex documentation or API reference for further information. 5 Errors found. Error /com/littler/ourpeople/business/Services.mxml:11 Namespace http://macromedia.com/2003/mxml has not been associated with component manifest.Error /com/littler/ourpeople/business/Services.mxml:11 Don't know how to parse element http://macromedia.com/2003/mxml:RemoteObject. It is not a known type or a property of org.nevis.cairngorm.business.ServiceLocator.Error /internet/ourpeople/index.mxml:11 Don't know how to parse element com.littler.ourPeople.business.*:Services. It is not a known type or a property of mx.core.Application.Error /internet/ourpeople/index.mxml:12 Don't know how to parse element com.littler.ourPeople.Control.*:OurPeopleController. It is not a known type or a property of mx.core.Application.Error /internet/ourpeople/index.mxml:19 Don't know how to parse element http://www.macromedia.com/2003/mxml:Canvas. It is not a known type or a property of mx.core.Application. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Dimitrios GianninasSent: Wednesday, May 25, 2005 1:20 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Cairngorm error Ok the cairngorm-manifest.xml file is there, which is good. I made a mistake in the earlier post (blame copy'n'paste), the entry should look like this (missing double-quotes): namespace uri= http://www.iterationtwo.com/cairngorm manifest/WEB-INF/flex/cairngorm-manifest.xml/manifest/namespace Can you let us know if that works? Dimitrios Jimmy Gianninas RIADeveloper Optimal Payments Inc. From: Mehdi, Agha [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 25, 2005 1:37 PMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Cairngorm error here's the flex-config file and the content of web-inf/flex folder: /web-inf/flex/ frameworks frameworks-debug generated jars logs system_classes user_classes cache.dep cairngorm-manifest.xml flash-unicode-table.xml flex-config.xml gateway-config.xml global.css license.properties mxml-manifest.xml hope that helps figuring out the problem Thanks From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Dimitrios GianninasSent: Wednesday, May 25, 2005 1:08 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Cairngorm error Hi, You must add the appropriate entry for the cairngorm-manifest.xml in the flex-config.xml (portion in red below): namespace uri= http://www.macromedia.com/2003/mxml manifest/WEB-INF/flex/mxml-manifest.xml/manifest/namespace namespace uri=http://www.iterationtwo.com/cairngorm manifest/WEB-INF/flex/cairngorm-manifest.xml/manifest/namespace This explains the error message. If it still doesn't work, please post you flex-config so we can take a look and please let us know what are the contents of the {server}\WEB-INF\flex folder. Dimitrios Jimmy Gianninas RIADeveloper Optimal Payments Inc. From: Mehdi, Agha [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 24, 2005 10:50 PMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Cairngorm error Did that just now. Same error. I restarted flex services but didn't work. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of dave buhlerSent: Tuesday, May 24, 2005 7:43 PMTo:
Re: [flexcoders] CFlogin, SetCredentials and the RemoteObject
Hi Dave: Here is my setup, I don't know if this helps. I have a CF application where users need to login. Once they successfully plug in their username and password, their session is setup (I'm using jessionid). I have a cfc (with relevant functions for login/logout) that is used for authenticating users and setting up session. I call that cfc as remoteobject, firing the login function in the cfc, passing it the username and password. If the login is successful, the session for the user is setup and all is sweet. I can access the user's session info through the same cfc (i have a function that returns their session structure Flex. And my Flex code can then look at the session object of the user and do what it needs to. I think the key for you would be to get jsessionid going, along with using functions within a cfc to validate the user and return user's session (or any other value that you want to return to flex). Indy On 5/26/05, dave buhler [EMAIL PROTECTED] wrote: Hi Indy, I understand setting up perhaps the username and password as a session variable. Can you show me an example of how you are passing over the username and password in the remote object? I can see adding it as something like the following on each request: service.getKittens(loginVO,kittensVO) ...but was wondering if there was another method that is used directly with the remote object configuration. Dave On 5/24/05, Indy Nagpal [EMAIL PROTECTED] wrote: Hi Dave: I've never tried using RemoteObject with cflogin, but RemoteObject works very nicely with CF session variables, so it should be able to pass that information to your application. To get it to work with session variables, I was using CF and Flex on the same server, and had turned on jsessionid (in CF Admin). Indy On 5/23/05, dave buhler [EMAIL PROTECTED] wrote: Does the RemoteObject permit the passing of a username and password to a CFLogin tag? I want to create an instance of NetConnection and include setCredentials(username,password) to pass over to my remote object for a valid user check on each request. If it's not supported in Flex, does anyone have any suggestions so that we can ensure a valid username and password is part of each remote CFC request. Best, mx.controls.Alert.show('Dave') Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links * 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 error
Ok, May be I am just dumb. I reinstalled it, extracted my flex.war into jrun4/servers/flex and now it looks like c:/jrun4/servers/flex/flex. Flex-config.xml has this for this namespace namespace uri="http://www.macromedia.com/2003/mxml"manifest{context.root}/WEB-INF/flex/mxml-manifest.xml/manifest/namespace whereI defined mycontext root in jrun4 for this server as /flex. the path to mxml-manifest.xml is "c:\jrun4\servers\flex\flex\web-inf\flex\mxml-manifest.xml" The file I am trying to run is http://localhost:8303/flex/test/index.mxml All that and I get this: 3 Errors found. Error /test/index.mxml:2 Namespace http://www.macromedia.com/2003/mxml has not been associated with component manifest.Error /test/index.mxml:2 No type for element "http://www.macromedia.com/2003/mxml:Application"Error /test/index.mxml:2 Unexpected root element "http://www.macromedia.com/2003/mxml:Application" does not extend MovieClip From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dave buhlerSent: Wednesday, May 25, 2005 4:36 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Cairngorm error I had to do the same as Jimmy. When I started from a clean install (after uninstalling Flex Server) the app worked. On 5/25/05, Dimitrios Gianninas [EMAIL PROTECTED] wrote: Humm weird... I just did a fresh install of Flex 1.5 under Tomcat 5.1 and used the flex-config.xml you posted and it worked! Perhaps you should start from scratch as I did, just create a "Hello World" app, make sure it works and if it does, then add in your other files. You must have some corrupt file somewhere that is causing you that trouble. Dimitrios "Jimmy" Gianninas RIADeveloper Optimal Payments Inc. From: Mehdi, Agha [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 25, 2005 6:54 PMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Cairngorm error Here it is From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Dimitrios GianninasSent: Wednesday, May 25, 2005 3:51 PM To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Cairngorm error Ahh, that has nothing to do with the Cairngorm manifest... I looked to quickly at the previous error. Can you attach your flex-config.xml so we can take a look at what might be wrong with it. Seems like the mxml-manifest can't be found. Dimitrios "Jimmy" Gianninas RIADeveloper Optimal Payments Inc. From: Mehdi, Agha [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 25, 2005 6:49 PMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Cairngorm error Nope, didn't work let me paste the entire exception info Compilation Results Errors, warnings or exceptions were found while compiling /internet/ourpeople/index.mxml. Visit the online Flex documentation or API reference for further information. 5 Errors found. Error /com/littler/ourpeople/business/Services.mxml:11 Namespace http://macromedia.com/2003/mxml has not been associated with component manifest.Error /com/littler/ourpeople/business/Services.mxml:11 Don't know how to parse element "http://macromedia.com/2003/mxml:RemoteObject". It is not a known type or a property of org.nevis.cairngorm.business.ServiceLocator.Error /internet/ourpeople/index.mxml:11 Don't know how to parse element "com.littler.ourPeople.business.*:Services". It is not a known type or a property of mx.core.Application.Error /internet/ourpeople/index.mxml:12 Don't know how to parse element "com.littler.ourPeople.Control.*:OurPeopleController". It is not a known type or a property of mx.core.Application.Error /internet/ourpeople/index.mxml:19 Don't know how to parse element "http://www.macromedia.com/2003/mxml:Canvas". It is not a known type or a property of mx.core.Application. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Dimitrios GianninasSent: Wednesday, May 25, 2005 1:20 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Cairngorm error Ok the cairngorm-manifest.xml file is there, which is good. I made a mistake in the earlier post (blame copy'n'paste), the entry should look like this (missing double-quotes): namespace uri=" http://www.iterationtwo.com/cairngorm" manifest/WEB-INF/flex/cairngorm-manifest.xml/manifest/namespace Can you let us know if that works? Dimitrios "Jimmy" Gianninas RIADeveloper Optimal Payments Inc. From: Mehdi, Agha [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 25, 2005 1:37 PMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Cairngorm error here's the flex-config file and the content of web-inf/flex folder: /web-inf/flex/ frameworks frameworks-debug generated jars logs system_classes user_classes cache.dep
RE: [flexcoders] Re: Drag and Drop from tree to List
This is a bit of a guess, but try: var fileName:String = myObj[0].getProperty(label); I say this because the treeItems should be an array of treeDataProvider items/nodes, and when trying to access dataProviders, it is always best to use the dataProvider API. If that doesn't work, can you debug this perhaps with FlexBuilder and inspect myObj? Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Wednesday, May 25, 2005 7:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Drag and Drop from tree to List This seems to work fine when the dataProvider for the tree is a static mx:XML node list, but when the node list is the result of a remoteObject, the dataForFormat(treeItems) returns an undefined. I think what I am trying to do is very simple. I have a tree which is populated by a remoteObject call, this works fine. The XML returned from the remoteObject Call is in this format: node label=Test node label=Test.txt/ node label=Test2.txt/ /node Tree now works fine. Now, in the doDragDrop(event) function I call another method (after clearing the List and populating it with this dragsource object) called: sendFile(event) Which does this: var myObj:Object = event.dragSource.dataForFormat(treeItems); var fileName:String = String(myObj[0]); mx.core.Application.alert(fileName); All i get is undefined. If I try a .label or .node I also get an undefined. How can I get the label? Regards, Iain --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Yep, dataForFormat(treeItems) I think is what you want. As for only having one item in the destination List, you could simply clear the list before adding in the treeItems in the dragDrop handler. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Wednesday, May 25, 2005 8:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Drag and Drop from tree to List Hi, I'm dragging and dropping from a tree to a list. All the functionality works fine, but I'm trying to call another method when the item is dropped with the name of the file from the tree as the argument to that method. Example: Tree has two objects in a folder node called files: File1.txt and File2.txt When I drag from the tree and drop into the List container (List1) I want to call a method which has the File1.txt or File2.txt as the argument. Can I use the dataForFormat? Also if I want to restrict this list to only having 1 file in it how can I have it to only have the last item that I dropped into it, thus removing the previous item, if there was one there. I tried to put a change event handler on the list, but when you drop an Item into the list this event is not called, which I find extremely wierd being that the list has in fact 'changed'. Explain that one! Regards, Iain Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: Drag and Drop from tree to List
Use the TreeDataProvider methods to get the label, myObj[0].getProperty(label) Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of digital_eyezed Sent: Wednesday, May 25, 2005 7:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Drag and Drop from tree to List This seems to work fine when the dataProvider for the tree is a static mx:XML node list, but when the node list is the result of a remoteObject, the dataForFormat(treeItems) returns an undefined. I think what I am trying to do is very simple. I have a tree which is populated by a remoteObject call, this works fine. The XML returned from the remoteObject Call is in this format: node label=Test node label=Test.txt/ node label=Test2.txt/ /node Tree now works fine. Now, in the doDragDrop(event) function I call another method (after clearing the List and populating it with this dragsource object) called: sendFile(event) Which does this: var myObj:Object = event.dragSource.dataForFormat(treeItems); var fileName:String = String(myObj[0]); mx.core.Application.alert(fileName); All i get is undefined. If I try a .label or .node I also get an undefined. How can I get the label? Regards, Iain --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Yep, dataForFormat(treeItems) I think is what you want. As for only having one item in the destination List, you could simply clear the list before adding in the treeItems in the dragDrop handler. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of digital_eyezed Sent: Wednesday, May 25, 2005 8:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Drag and Drop from tree to List Hi, I'm dragging and dropping from a tree to a list. All the functionality works fine, but I'm trying to call another method when the item is dropped with the name of the file from the tree as the argument to that method. Example: Tree has two objects in a folder node called files: File1.txt and File2.txt When I drag from the tree and drop into the List container (List1) I want to call a method which has the File1.txt or File2.txt as the argument. Can I use the dataForFormat? Also if I want to restrict this list to only having 1 file in it how can I have it to only have the last item that I dropped into it, thus removing the previous item, if there was one there. I tried to put a change event handler on the list, but when you drop an Item into the list this event is not called, which I find extremely wierd being that the list has in fact 'changed'. Explain that one! Regards, Iain Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Cairngorm error
Alright!!! You gotta have a second pair of eyes looking right at your monitor. I missed it. In my Services.mxml I had this Namespace http://macromedia.com/2003/mxml Whereas in flex-config.xml, it was http://www.macromedia.com/2003/mxml that's why it was throwing error Error /com/littler/ourpeople/business/Services.mxml:11 Namespace http://macromedia.com/2003/mxml has not been associated with component manifest. I apologize to everyone who I bothered and especially to Steve for making it look like Cairngorm Error!!! :( Thanks to all of you who tried to solve this problem on-list and off-list (Dave Buhler ) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mehdi, AghaSent: Wednesday, May 25, 2005 5:59 PMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Cairngorm error Ok, May be I am just dumb. I reinstalled it, extracted my flex.war into jrun4/servers/flex and now it looks like c:/jrun4/servers/flex/flex. Flex-config.xml has this for this namespace namespace uri="http://www.macromedia.com/2003/mxml"manifest{context.root}/WEB-INF/flex/mxml-manifest.xml/manifest/namespace whereI defined mycontext root in jrun4 for this server as /flex. the path to mxml-manifest.xml is "c:\jrun4\servers\flex\flex\web-inf\flex\mxml-manifest.xml" The file I am trying to run is http://localhost:8303/flex/test/index.mxml All that and I get this: 3 Errors found. Error /test/index.mxml:2 Namespace http://www.macromedia.com/2003/mxml has not been associated with component manifest.Error /test/index.mxml:2 No type for element "http://www.macromedia.com/2003/mxml:Application"Error /test/index.mxml:2 Unexpected root element "http://www.macromedia.com/2003/mxml:Application" does not extend MovieClip From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dave buhlerSent: Wednesday, May 25, 2005 4:36 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Cairngorm error I had to do the same as Jimmy. When I started from a clean install (after uninstalling Flex Server) the app worked. On 5/25/05, Dimitrios Gianninas [EMAIL PROTECTED] wrote: Humm weird... I just did a fresh install of Flex 1.5 under Tomcat 5.1 and used the flex-config.xml you posted and it worked! Perhaps you should start from scratch as I did, just create a "Hello World" app, make sure it works and if it does, then add in your other files. You must have some corrupt file somewhere that is causing you that trouble. Dimitrios "Jimmy" Gianninas RIADeveloper Optimal Payments Inc. From: Mehdi, Agha [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 25, 2005 6:54 PMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Cairngorm error Here it is From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Dimitrios GianninasSent: Wednesday, May 25, 2005 3:51 PM To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Cairngorm error Ahh, that has nothing to do with the Cairngorm manifest... I looked to quickly at the previous error. Can you attach your flex-config.xml so we can take a look at what might be wrong with it. Seems like the mxml-manifest can't be found. Dimitrios "Jimmy" Gianninas RIADeveloper Optimal Payments Inc. From: Mehdi, Agha [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 25, 2005 6:49 PMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Cairngorm error Nope, didn't work let me paste the entire exception info Compilation Results Errors, warnings or exceptions were found while compiling /internet/ourpeople/index.mxml. Visit the online Flex documentation or API reference for further information. 5 Errors found. Error /com/littler/ourpeople/business/Services.mxml:11 Namespace http://macromedia.com/2003/mxml has not been associated with component manifest.Error /com/littler/ourpeople/business/Services.mxml:11 Don't know how to parse element "http://macromedia.com/2003/mxml:RemoteObject". It is not a known type or a property of org.nevis.cairngorm.business.ServiceLocator.Error /internet/ourpeople/index.mxml:11 Don't know how to parse element "com.littler.ourPeople.business.*:Services". It is not a known type or a property of mx.core.Application.Error /internet/ourpeople/index.mxml:12 Don't know how to parse element "com.littler.ourPeople.Control.*:OurPeopleController". It is not a known type or a property of mx.core.Application.Error /internet/ourpeople/index.mxml:19 Don't know how to parse element "http://www.macromedia.com/2003/mxml:Canvas". It is not a known type or a property of mx.core.Application. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Dimitrios GianninasSent: Wednesday, May 25, 2005 1:20 PMTo: flexcoders@yahoogroups.comSubject: RE:
[flexcoders] Binding a webservice result to a dataprovider
Hello, I am relatively new to the flex community. I have a question regarding a small application that I'm developing to learn flex. I've tried a lot of things but no mater what I do I cannot seem to bind the result of this webservice call to a dataProvider (ideally a chart) :( Heres the code for my app. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:WebService concurrency=single id=ws result=alert('recieved') wsdl=http://www.flash-db.com/services/ws/stockHistory.wsdl; mx:operation name=doStockHistory mx:request usernameany/username passwordany/password symbolNDAQ/symbol intervaldaily/interval dayFrom1/dayFrom monthFrom1/monthFrom yearFrom2005/yearFrom /mx:request /mx:operation /mx:WebService mx:Panel width=100% height=100% mx:VBox width=100% height=100% mx:DataGrid id=grid width=100% height=100% dataProvider={ws.doStockHistory.result} mx:columns mx:Array mx:DataGridColumn columnName=date / mx:DataGridColumn columnName=close / /mx:Array /mx:columns /mx:DataGrid mx:Button label=Get click=ws.doStockHistory.send(); / /mx:VBox /mx:Panel /mx:Application 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] Binding a webservice result to a dataprovider
Hi, Your code looks fine. I guess, something is wrong with Webservice itself, it throws error. I have used a different webservice and it works fine, see the following code: ##GetQuotesWS.mxml## ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:WebService concurrency=single id=ws result=alert('result recieved') wsdl=http://www.xignite.com/xquotes.asmx?WSDL; mx:operation name=GetQuotes mx:request SymbolMACR,ADBE,YHOO,MSFT/Symbol /mx:request /mx:operation /mx:WebService mx:Panel width=100% height=100% mx:VBox width=100% height=100% mx:DataGrid id=grid width=100% height=100% dataProvider={ws.GetQuotes.result} mx:columns mx:Array mx:DataGridColumn columnName=Symbol headerText=Symbol/ mx:DataGridColumn columnName=Name headerText=Name/ mx:DataGridColumn columnName=Date headerText=Date/ mx:DataGridColumn columnName=Open headerText=Open/ mx:DataGridColumn columnName=High headerText=High/ mx:DataGridColumn columnName=Low headerText=Low/ mx:DataGridColumn columnName=Change headerText=Change/ mx:DataGridColumn columnName=Last headerText=Last/ /mx:Array /mx:columns /mx:DataGrid mx:Button label=Get click=ws.GetQuotes.send(); / /mx:VBox /mx:Panel /mx:Application Hope that helps.. -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cmdpromptjunkie Sent: Thursday, May 26, 2005 8:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Binding a webservice result to a dataprovider Hello, I am relatively new to the flex community. I have a question regarding a small application that I'm developing to learn flex. I've tried a lot of things but no mater what I do I cannot seem to bind the result of this webservice call to a dataProvider (ideally a chart) :( Heres the code for my app. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:WebService concurrency=single id=ws result=alert('recieved') wsdl=http://www.flash-db.com/services/ws/stockHistory.wsdl; mx:operation name=doStockHistory mx:request usernameany/username passwordany/password symbolNDAQ/symbol intervaldaily/interval dayFrom1/dayFrom monthFrom1/monthFrom yearFrom2005/yearFrom /mx:request /mx:operation /mx:WebService mx:Panel width=100% height=100% mx:VBox width=100% height=100% mx:DataGrid id=grid width=100% height=100% dataProvider={ws.doStockHistory.result} mx:columns mx:Array mx:DataGridColumn columnName=date / mx:DataGridColumn columnName=close / /mx:Array /mx:columns /mx:DataGrid mx:Button label=Get click=ws.doStockHistory.send(); / /mx:VBox /mx:Panel /mx:Application Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Binding a webservice result to a dataprovider
If I change the dataProvider to a list and map the dataProvider to ws.doStockHistory.result.date or ws.doStockHistory.result.price the list will show the right data, how do i combine these two into a datagrid? Can a datagrid use an object as a dataProvider or must it be an array? --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: Hi, Your code looks fine. I guess, something is wrong with Webservice itself, it throws error. I have used a different webservice and it works fine, see the following code: ##GetQuotesWS.mxml## ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:WebService concurrency=single id=ws result=alert('result recieved') wsdl=http://www.xignite.com/xquotes.asmx?WSDL; mx:operation name=GetQuotes mx:request SymbolMACR,ADBE,YHOO,MSFT/Symbol /mx:request /mx:operation /mx:WebService mx:Panel width=100% height=100% mx:VBox width=100% height=100% mx:DataGrid id=grid width=100% height=100% dataProvider={ws.GetQuotes.result} mx:columns mx:Array mx:DataGridColumn columnName=Symbol headerText=Symbol/ mx:DataGridColumn columnName=Name headerText=Name/ mx:DataGridColumn columnName=Date headerText=Date/ mx:DataGridColumn columnName=Open headerText=Open/ mx:DataGridColumn columnName=High headerText=High/ mx:DataGridColumn columnName=Low headerText=Low/ mx:DataGridColumn columnName=Change headerText=Change/ mx:DataGridColumn columnName=Last headerText=Last/ /mx:Array /mx:columns /mx:DataGrid mx:Button label=Get click=ws.GetQuotes.send(); / /mx:VBox /mx:Panel /mx:Application Hope that helps.. -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cmdpromptjunkie Sent: Thursday, May 26, 2005 8:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Binding a webservice result to a dataprovider Hello, I am relatively new to the flex community. I have a question regarding a small application that I'm developing to learn flex. I've tried a lot of things but no mater what I do I cannot seem to bind the result of this webservice call to a dataProvider (ideally a chart) :( Heres the code for my app. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:WebService concurrency=single id=ws result=alert('recieved') wsdl=http://www.flash-db.com/services/ws/stockHistory.wsdl; mx:operation name=doStockHistory mx:request usernameany/username passwordany/password symbolNDAQ/symbol intervaldaily/interval dayFrom1/dayFrom monthFrom1/monthFrom yearFrom2005/yearFrom /mx:request /mx:operation /mx:WebService mx:Panel width=100% height=100% mx:VBox width=100% height=100% mx:DataGrid id=grid width=100% height=100% dataProvider={ws.doStockHistory.result} mx:columns mx:Array mx:DataGridColumn columnName=date / mx:DataGridColumn columnName=close / /mx:Array /mx:columns /mx:DataGrid mx:Button label=Get click=ws.doStockHistory.send(); / /mx:VBox /mx:Panel /mx:Application Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Applications forgetting variables
perhaps you are right do you know of any such tutorial. The reason I do not post a lot of my code is its way to long and complicated. I would rather post a simple example of code Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.