Re: [flexcoders] Escaping textArea HTML to pass back to WebService...
Hi Jamie, Not sure if I understand what you require, but did you know you can get a plain text representation of the html in the textarea using myTextArea.text Hilary -- On 11/5/06, jamiebadman [EMAIL PROTECTED] wrote: Hi, I need to 'escape' the html text from a textArea to pass back to a WebService. I wondered if anyone out there has already written a convenient function to accomplish this in its entirety ? If you have and you're willing to share, please let me know. If no one's done this yet (and I'm not barking up the wrong tree entirely!) then I'll share when I've done it. Anyway, let me know if you can help (or if I'm going in a wrong/stupid direction). Cheers, Jamie. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Hilary -- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Escaping textArea HTML to pass back to WebService...
Yeah, I know I can do this but then I lose all the formatting. I want to send the data back to a DB via a webservice so that I can then retrieve it in the future. I believe that to do this I need to 'escape' some of the characters in the HTML I retrieve from the textArea. Thinking about it, it may just be the '' and '' that I need to 'escape' in which case of course it's simple. My initial instincts were that it might be more involved than that but perhaps not! Cheers, Jamie. --- In flexcoders@yahoogroups.com, Hilary Bridel [EMAIL PROTECTED] wrote: Hi Jamie, Not sure if I understand what you require, but did you know you can get a plain text representation of the html in the textarea using myTextArea.text Hilary -- On 11/5/06, jamiebadman [EMAIL PROTECTED] wrote: Hi, I need to 'escape' the html text from a textArea to pass back to a WebService. I wondered if anyone out there has already written a convenient function to accomplish this in its entirety ? If you have and you're willing to share, please let me know. If no one's done this yet (and I'm not barking up the wrong tree entirely!) then I'll share when I've done it. Anyway, let me know if you can help (or if I'm going in a wrong/stupid direction). Cheers, Jamie. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Hilary -- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Bug in EventDispatcher? It shouldn't dispatch new Events if not at top of st
Ok, just to make sure what happens, i created a little test: private function onInitialize() { var ed1 : EventDispatcher = new EventDispatcher(); var ed2 : EventDispatcher = new EventDispatcher(); ed1.addEventListener('method', function():void { trace(11); }); ed1.addEventListener('method', function():void { trace(12); ed2.dispatchEvent( new Event('method')); }); ed1.addEventListener('method', function():void { trace(13); }); ed2.addEventListener('method', function():void { trace(21); }); ed2.addEventListener('method', function():void { trace(22); throw new Error('error'); }); ed2.addEventListener('method', function():void { trace(23); }); setInterval( function():void { trace('next event'); ed1.dispatchEvent( new Event('method')); }, 1000 ); } When i run this script, the following output is created: next event 11 12 21 22 Error: error -- at this point an alert box pops up asking if i want to continue - i answer yes 23 13 -- same again starting from 'next event' So, the exception is not breaking the event dispatching. The EventDispatcher seems to catch exceptions in event handlers. The Alert stops the whole event handling process and also the timer is stopped until i press continue. Do you see this alert too? Maybe the socket events are not stopped from beeing dispatched (in contrast to the timer events shown above), while the synchronous event handling still is beeing suspended? If you catch the error by yourself, so that no alert is shown, do you still see your problem? Cheers, Ralf. On 11/4/06, ncr100 [EMAIL PROTECTED] wrote: NOTE: Forgive me for replying twice. The Rich-Text Editor (Beta) seems to not be posting my replies, only the content. -Nick - - - Hi Ralf - thanks for the help figuring out and thinking about this problem - About your diagram, I am getting an exception in line 4 which caused unrolling up to line 3 which unexpectedly starts dispatching more events of types not dispatched in line 3. Yeah so I agree, all handlers registered to listen to a particular event type on a given object instance should be called when an event of that type is dispatched from that object. I also agree there should be no unexpected interruption of my single thread. And that if I synchronously dispatch an event then that will be handled by all listeners synchronously one after the other. But my understanding about asynchronous events (like new socket data, or Timer callbacks) is that they are delivered so they enter at the top of the execution stack, being passed to all registered event handlers synchronously one after the other. The problem is what I'm seeing is unexpected calls in the middle of my stack. Check this out: I'm handling an event of one type ProgressEvent.SOCKET_DATA and I need to do some dispatching of my own, a custom NavigationEvent event. The dispatcher correctly delivers my NavigationEvent synchronously while I wait blocked on that dispatch. But then I am surprised as the dispatcher takes the opportunity I've given it to dispatch not only my event but it starts to deliver other events: more ProgressEvent.SOCKET_DATA's that have queued up and other queued events. The socket data ProgressEvent is recursively delivered to my 'onSocketData', recursively because this new socket data event is delivered while I'm handling the prior socket data ProgressEvent listening 'onSocketData', in the same call stack, and it causes havoc. I wasn't expecting my synchronous call to the dispatcher to dispatch events other than the one I asked it to dispatch. Do what I say, not what you're doing. is what I am saying to myself as I see this. Diagrams do rock so I tweaked your illustration to match my situation: 1 OS dispatches event A 2 I handle event A .. there may be a Function.call higher in the stack .. 3 I dispatch event B synchronously 4 I handle event B deeper in this stack 5 I handle event B in my other registered listener after returning from 4 .. I throw a null pointer exception .. 6 I am unexpectedly handling event C after returning from 5. Then I crash. The dispatcher at 3 just dispatched C unexpectedly. I never return from my synchronous call to the dispatcher to the next line of code after 3 was called...also all of the code in 4-7 is in the same call stack started at 1. This event C is unexpected. I didn't dispatch it in 3, the OS/Adobe EventDispatcher did. I think the OS should have waited until I returned from my A handler entry point 2 before it dispatched C. To me that gotta send 'em all right now behavior is unusual. So, are you saying that it is in fact usual for C events to be dispatched at any opportunity I give the event dispatcher to dispatch events? And consequentially that I'm in store for inspection / tweaking to my
Re: [flexcoders] Re: Structuring a collection of Flex apps in a tomcat webapps folder
Dustin, Thanks for verifying this. Its odd that so few people have noticed this. I guess perhaps everyone just uses apache as a front end. But for me setting up apache on linux is just another headache since I am not familiar with it, so I really dont want to introduce any new complexities. So what I am doing now is just manually copying the files out of the folder before I build war files. But this is really annoying. I guess if I switch to ant for building my war's this could be automated. Regards Hank On 11/4/06, Dustin Mercer [EMAIL PROTECTED] wrote: Yeah, this one is annoying. I don't use the Compile locally option just because of this issue. I have it compile on the server. Definately something that should be filed with Adobe though. I keep meaning to file a wish request for this, I'll make some time to do that today. Dustin Mercer From: flexcoders@yahoogroups.com on behalf of hank williams Sent: Sat 11/4/2006 5:44 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Structuring a collection of Flex apps in a tomcat webapps folder Ok, looking at this somemore, I think this is most likely a design bug in flex builder. There is no reason for flex builder to prevent the user from specifying any folder he likes for the build output. For FDS applications, it seems the flex builder is limited to generating compiler output in a folder that is inside the web application folder. While the intentions are good, FDS should certainly not prevent the user from placing the output in root of the web application folder and not in a folder inside the web application folder. in other words flexbuilder will build this webapps mywebappfolder myflexappfolder yada.html yada.swf but flexbuilder will not build this: webapps mywebappfolder yada.html yada.swf which makes it very hard to make an app domain www.appname.com instead of www.appname.com/somefoldername without apache or some other indirection Regards Hank On 11/4/06, hank williams [EMAIL PROTECTED] mailto:hank777%40gmail.com wrote: It sounds like you are letting FDS compile for you on the server. I am compiling on the client. To restate, hopefully, more clearly my problem, it is as follows: I want my swf and html output files to be inside: webapps/serlvet-name instead of: webapps/serlvet-name/flex-app-name I am not able to get flexbuilder to do this. The place to do it would be in the properties panel for the flex-app-Flex Build Path - output folder. But the dialog requires me to enter a folder name which will be placed inside the servlet-name folder. When I try to leave this field blank, which would, conceptually, achieve the goal because the screen states that the path is relative to servlet-name, flex builder generates an error. Entering a full path i.e. C:\..., I dont get the error, but flexbuilder refuses to compile the app. The reason I want to do this is so that my url does not need to be www.somedomain.com/flex-app-name Thanks Hank How On 11/2/06, Nick Rothwell [EMAIL PROTECTED] mailto:nick%40cassiel.com wrote: On 1 Nov 2006, at 22:22, hank williams wrote: I dont see how you avoid this since servlet containers require that the WEB-INF folder be in the root directory of the application, but this is not how flex structures things. With Flex/FDS there is the your webapp directory which is inside webapps, and then a sub directory, for the flex application I'm not sure I follow. I have FDS in Tomcat configured with webapps/MY APPLICATION/WEB-INF/ (and then flex/, lib/ etc.) and webapps/MY APPLICATION/mxml files and the context prefix is MY APPLICATION. In any case, I tend to solve URL mapping issues by bolting Apache on the front of the app and using the reverse proxy module... -- N. nick rothwell -- composition, systems, performance -- http:// www.cassiel.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to:
Re: [flexcoders] Re: Structuring a collection of Flex apps in a tomcat webapps folder
Hi there,What I usually do is create a virtual folder on my project which points to the tomcat webapp folder. Then I change the ouput folder through the compile settings screen: right click on the project - properties - Flex Build path. Then to force eclipse to launch for example http://localhost:8080/myApp you can go to Run as... - Run.. There you choose your flex project compilation configuration and change URL or path to launch. I'm not sure if this is what you were looking for. hope that helps.X.On 11/5/06, hank williams [EMAIL PROTECTED] wrote:Dustin,Thanks for verifying this.Its odd that so few people have noticed this. I guess perhaps everyone just uses apache as a front end. But for me setting up apache on linuxis just another headache since I am not familiar with it, so I reallydont want to introduce any new complexities. So what I am doing now is just manually copying the files out of the folder before I build warfiles. But this is really annoying. I guess if I switch to ant forbuilding my war's this could be automated.RegardsHankOn 11/4/06, Dustin Mercer [EMAIL PROTECTED] wrote: Yeah, this one is annoying.I don't use the Compile locally option just because of this issue.I have it compile on the server.Definately something that should be filed with Adobe though.I keep meaning to file a wish request for this, I'll make some time to do that today. Dustin Mercer From: flexcoders@yahoogroups.com on behalf of hank williams Sent: Sat 11/4/2006 5:44 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Structuring a collection of Flex apps in a tomcat webapps folder Ok, looking at this somemore, I think this is most likely a design bug in flex builder. There is no reason for flex builder to prevent the user from specifying any folder he likes for the build output. For FDS applications, it seems the flex builder is limited to generating compiler output in a folder that is inside the web application folder. While the intentions are good, FDS should certainly not prevent the user from placing the output in root of the web application folder and not in a folder inside the web application folder. in other words flexbuilder will build this webapps mywebappfolder myflexappfolder yada.html yada.swf but flexbuilder will not build this: webapps mywebappfolder yada.html yada.swf which makes it very hard to make an app domain www.appname.com instead of www.appname.com/somefoldername without apache or some other indirection Regards Hank On 11/4/06, hank williams [EMAIL PROTECTED] mailto:hank777%40gmail.com wrote: It sounds like you are letting FDS compile for you on the server. I am compiling on the client. To restate, hopefully, more clearly my problem, it is as follows: I want my swf and html output files to be inside: webapps/serlvet-name instead of: webapps/serlvet-name/flex-app-name I am not able to get flexbuilder to do this. The place to do it would be in the properties panel for the flex-app-Flex Build Path - output folder. But the dialog requires me to enter a folder name which will be placed inside the servlet-name folder. When I try to leave this field blank, which would, conceptually, achieve the goal because the screen states that the path is relative to servlet-name, flex builder generates an error. Entering a full path i.e. C:\..., I dont get the error, but flexbuilder refuses to compile the app. The reason I want to do this is so that my url does not need to be www.somedomain.com/flex-app-name Thanks Hank How On 11/2/06, Nick Rothwell [EMAIL PROTECTED] mailto: nick%40cassiel.com wrote: On 1 Nov 2006, at 22:22, hank williams wrote: I dont see how you avoid this since servlet containers require that the WEB-INF folder be in the root directory of the application, butthis is not how flex structures things. With Flex/FDS there is theyour webapp directory which is inside webapps, and then a sub directory, for the flex application I'm not sure I follow. I have FDS in Tomcat configured with webapps/MY APPLICATION/WEB-INF/ (and then flex/, lib/ etc.) and webapps/MY APPLICATION/mxml files and the context prefix is MY APPLICATION. In any case, I tend to solve URL mapping issues by bolting Apache on the front of the app and using the reverse proxy module... -- N. nick rothwell -- composition, systems, performance -- http:// www.cassiel.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Re: [flexcoders] Re: Structuring a collection of Flex apps in a tomcat webapps folder
Oh, thats an interesting idea. A virtual folder. I'll have to try that. But boy such an ugly solution! I hopefully they can fix this.ThanksHankOn 11/5/06, Xavi Beumala [EMAIL PROTECTED] wrote: Hi there,What I usually do is create a virtual folder on my project which points to the tomcat webapp folder. Then I change the ouput folder through the compile settings screen: right click on the project - properties - Flex Build path. Then to force eclipse to launch for example http://localhost:8080/myApp you can go to Run as... - Run.. There you choose your flex project compilation configuration and change URL or path to launch. I'm not sure if this is what you were looking for. hope that helps.X.On 11/5/06, hank williams [EMAIL PROTECTED] wrote:Dustin,Thanks for verifying this.Its odd that so few people have noticed this. I guess perhaps everyone just uses apache as a front end. But for me setting up apache on linuxis just another headache since I am not familiar with it, so I reallydont want to introduce any new complexities. So what I am doing now is just manually copying the files out of the folder before I build warfiles. But this is really annoying. I guess if I switch to ant forbuilding my war's this could be automated.RegardsHankOn 11/4/06, Dustin Mercer [EMAIL PROTECTED] wrote: Yeah, this one is annoying.I don't use the Compile locally option just because of this issue.I have it compile on the server.Definately something that should be filed with Adobe though.I keep meaning to file a wish request for this, I'll make some time to do that today. Dustin Mercer From: flexcoders@yahoogroups.com on behalf of hank williams Sent: Sat 11/4/2006 5:44 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Structuring a collection of Flex apps in a tomcat webapps folder Ok, looking at this somemore, I think this is most likely a design bug in flex builder. There is no reason for flex builder to prevent the user from specifying any folder he likes for the build output. For FDS applications, it seems the flex builder is limited to generating compiler output in a folder that is inside the web application folder. While the intentions are good, FDS should certainly not prevent the user from placing the output in root of the web application folder and not in a folder inside the web application folder. in other words flexbuilder will build this webapps mywebappfolder myflexappfolder yada.html yada.swf but flexbuilder will not build this: webapps mywebappfolder yada.html yada.swf which makes it very hard to make an app domain www.appname.com instead of www.appname.com/somefoldername without apache or some other indirection Regards Hank On 11/4/06, hank williams [EMAIL PROTECTED] mailto: hank777%40gmail.com wrote: It sounds like you are letting FDS compile for you on the server. I am compiling on the client. To restate, hopefully, more clearly my problem, it is as follows: I want my swf and html output files to be inside: webapps/serlvet-name instead of: webapps/serlvet-name/flex-app-name I am not able to get flexbuilder to do this. The place to do it would be in the properties panel for the flex-app-Flex Build Path - output folder. But the dialog requires me to enter a folder name which will be placed inside the servlet-name folder. When I try to leave this field blank, which would, conceptually, achieve the goal because the screen states that the path is relative to servlet-name, flex builder generates an error. Entering a full path i.e. C:\..., I dont get the error, but flexbuilder refuses to compile the app. The reason I want to do this is so that my url does not need to be www.somedomain.com/flex-app-name Thanks Hank How On 11/2/06, Nick Rothwell [EMAIL PROTECTED] mailto: nick%40cassiel.com wrote: On 1 Nov 2006, at 22:22, hank williams wrote: I dont see how you avoid this since servlet containers require that the WEB-INF folder be in the root directory of the application, butthis is not how flex structures things. With Flex/FDS there is theyour webapp directory which is inside webapps, and then a sub directory, for the flex application I'm not sure I follow. I have FDS in Tomcat configured with webapps/MY APPLICATION/WEB-INF/ (and then flex/, lib/ etc.) and webapps/MY APPLICATION/mxml files and the context prefix is MY APPLICATION. In any case, I tend to solve URL mapping issues by bolting Apache on the front of the app and using the reverse proxy module... -- N. nick rothwell -- composition, systems, performance -- http:// www.cassiel.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com http://www.mail-archive.com/flexcoders%40yahoogroups.com
[flexcoders] HTTPS and status codes
Is there a way to get the HTTP status code out of the HTTPStatusEvent when making an HTTPS call? Or for that matter, is there any way to display the status code from an HTTPS call w/o using Data Services? We are making a simple Flex2/AS3 HTTPS call out of IE6 which fails for an unknown reason. It works in IE6 using HTTP, in Firefox using HTTP or HTTPS, and we can bring the pagae up in HTTPS in IE6 if we just enter the URL in the browser. Any ideas? Thanks. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Login application - several newbie questions
I am trying to implement an application where the user logs in using a Title Window. 1. I need to store data returned from the server containing user info with successful login. Currently I am using DataGrid but there is only one record. Is this the best method ? When the Title Window closes should the DataGrid still be available ? if so how do I then reference this data to be used for subsequent server request ? 2. I want to populate or create a Label or Button after login and closing of the Title Window. Not having much luck using functions in the Title Window to popuplate elements in the parent window. I am trying to transition to Flex from interactive PDF / JavaScripts. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Shortcut for creating and dispatching events
Thanks for the answer Mike. I am curious why I need the STRING around my variable). Bruce --- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: Hi, It needs to be; model.dispatchEvent( new TextEvent(SEARCH_MACHINES, false, false, String( dgItems.selectedItem.machine))); Peace, Mike -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] setting my application pageTitle
I think maybe your project is messed up? I just changed the pageTitle on my Application and it changed the title fine. Try working in a new project and see if things are OK? Do a project clean too? From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of hank williams Sent: Friday, November 03, 2006 9:00 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] setting my application pageTitle in the bin directory, the title is index. What now? Hank On 11/3/06, Matt Chotin [EMAIL PROTECTED]com wrote: Application usually gets replaced with the pageTitle attribute value. If you look in your bin directory what does the generated wrapper look like? From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of hank williams Sent: Thursday, November 02, 2006 3:38 AM To: [EMAIL PROTECTED]ups.com Subject: Re: [flexcoders] setting my application pageTitle No, I'm loading the default html page that flex2 creates for deploying an application. In the HTML file, the title is index. But in the index-template.html file, which is presumably the base from which the index file is built, it says title${application}/title. So the question is, I guess, where is the {application} variable coming from and why cant I set it using the title parameter? Regards Hank On 11/2/06, Tom Chiverton tom.chiverton@halliwells.com wrote: On Wednesday 01 November 2006 21:41, hank williams wrote: name of the apps main .mxml file (which is named index.mxml so that I dont have to list the actual app name in my url). Are you loading the .swf file directly, or via a HTML wrapper ? If the latter, what is the HTML title tag ? -- Tom Chiverton Helping to heterogeneously strategize eligible platforms This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] getItemIndex it's a bug Complex Data
Hi if you look my code, if i remove update Function all work, i have made a mistake into my ActionScript class or is it bug? Thanks for your help devis Here throw TypeError: Error #1034: Assegnazione di tipo forzata non riuscita: impossibile convertire mx.collections::[EMAIL PROTECTED] in mx.data.IManaged. ... private var dsResponsabili:DataService; [Bindable] private var responsabili:ArrayCollection = new ArrayCollection(); private function Update():void { dgResponsabili.selectedIndex = responsabili.getItemIndex(responsabili); } This my object package com.visitatori.vo { import mx.utils.ArrayUtil; import mx.collections.ArrayCollection; [Managed] [RemoteClass(alias=com.visitatori.vo.Trsp001)] public class Trsp001 { public function Trsp001() {} public var rsppkid:int; public var rspcgn:String=; public var rspnme:String=; public var rspsct:String=; public var trpr001:Trpr001; } } -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
FW: [flexcoders] Isn´t there any release of Adobe Apollo yet? Alpha maybe....
This didnt make it through the first time, trying again. (Regarding 2D libraries for Action Script) From: Evan Gifford Sent: Friday, November 03, 2006 8:38 AM To: 'flexcoders@yahoogroups.com' Subject: RE: [flexcoders] Isn´t there any release of Adobe Apollo yet? Alpha maybe Correction! I was wrong about one of the open source 3D libraries for flash/flex, Papervision is aspiring to go open source but has not. According to the author, those hoping to use an open source Papervision will have to wait a while. Personally, I think its a shame to have two dualing open source 3D libraries for Actionscript. For what its worth, my vote is for sandy, which is available now: http://www.flashsandy.org/ :^) -Evan From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Evan Gifford Sent: Thursday, November 02, 2006 8:48 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Isn´t there any release of Adobe Apollo yet? Alpha maybe Sandy, (http://www.flashsandy.org/) is an open source pseudo-3D API. That is to say, it uses the existing flash graphic distortion and rendering abilities to 'simulate' 3D (and it does this very well). The problem is, like Hank said, the rendering times are slow due to a number of limitations of the Flash player. I can envision a universal 3D API which would choose from two different models, textures and rendering engines based on weather or not hardware acceleration is available and/or a quick performance test (like a bandwidth test for choosing a streaming video rate). This would allow a Flex app which aspires to leverage hardware acceleration to also achieve universal compatibility. - If there is no hardware support, simplify the model and render it using something like sandy and papervision. - However, if there is hardware support (via Apollo), then use a more complex model, textures and really pump up the UI. (Remember, an occasionally connected client will be running next to Vista XAML soon) This would also be a draw for consumers to run the app in Apollo instead of always viewing on the web. For certain projects, this could be a really catalyst to migrating web apps to the occasionally connected client realm. :^) My $0.03 -Evan -Original Message- From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Tom Chiverton Sent: Thursday, November 02, 2006 7:44 AM To: [EMAIL PROTECTED]ups.com Subject: Re: [flexcoders] Isn´t there any release of Adobe Apollo yet? Alpha maybe On Thursday 02 November 2006 12:55, hank williams wrote: Currently flash does not have 3D graphics ... Flash does not have a 3D API, which would be necessary for 3D. What's this Sandy thing then ? -- Tom Chiverton Helping to advantageously implement distributed action-items This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.13.22/512 - Release Date: 11/1/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.13.22/512 - Release Date: 11/1/2006 __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company
RE: [flexcoders] TileList item effects? (Flex Store)
Writing more of those effects automatically is something we want to do in a future release. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of John C. Bland II Sent: Friday, November 03, 2006 7:04 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] TileList item effects? (Flex Store) I know what showEffect is. That was merely to clarify my point/need. Nothing personal but I don't get down with copy/paste in place of learning something. My original question is for knowledge sake. I went through the Flex Store code and looked at how they did their animations. It made me wonder if there was an easier way since the Flex Store has been around since early Flex 2 alpha, etc days. On 11/3/06, Igor Costa [EMAIL PROTECTED]com wrote: John the showEffect it's a method tigger that is same in Flex 2.0 isn't a costum Effect. Just put the code in FlexStore into your project and use it. On 11/3/06, John C. Bland II johncblandii@gmail.com wrote: Is there a way to get the Flex Store effects without dealing with custom AS? Like how you can set showEffect, etc? If not, :-(. Thoughts? --- John C. Bland II Chief Geek Katapult Media, Inc. - www.katapultmedia.com --- Biz Blog - http://blogs.katapultmedia.com/jb2 Personal Blog - http://blog.blandfamilyonline.com http://www.lifthimhigh.com - Christian Products for Those Bold Enough to Wear Them Home of FMUG.az - http://www.gotoandstop.org Home of AZCFUG - http://www.azcfug.org -- Igor Costa www.igorcosta.com -- John C. Bland II Chief Geek Katapult Media, Inc. - www.katapultmedia.com --- Biz Blog - http://blogs.katapultmedia.com/jb2 Personal Blog - http://blog.blandfamilyonline.com http://www.lifthimhigh.com - Christian Products for Those Bold Enough to Wear Them Home of FMUG.az - http://www.gotoandstop.org Home of AZCFUG - http://www.azcfug.org __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Web Services in Cairngorm 2.1
ok, now my app is able to call the webservices, but I get another weird behavior with cairngorm 2.1 that didn't happen with version 2.0. basically it changes the way I'm accessing the results, but not in a consistent way, for example: I'm calling the same webservices twice and in order to get the results I have to change the reference to the return value: when I call my service for the first time I get: soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsd=http://www.w3.org/2001/XMLSchema xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance soap:Body CreateTokenResponse xmlns=http://www.xxx.net/schemas/services/sso CreateTokenResult563ee119-802a-47bc-8d37-a5995e576ae6 /CreateTokenResult/ CreateTokenResponse/soap:Body/ soap:Envelope on the command to access the result I use public function result( event:Object ) : void{loginModel.tokenSSO = event.result;executeNextCommand();} then with executeNextCommand() method (I'm using a sequenceCommand) I call another command that calls the same webservices but assign the result to a different variable. this the return value: soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsd=http://www.w3.org/2001/XMLSchema xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance soap:Body CreateTokenResponse xmlns=http://www.xxx.net/schemas/services/sso CreateTokenResulta6628f61-3f20-4dbe-aa23-e34efa3e3796 /CreateTokenResult/ CreateTokenResponse/soap:Body/ soap:Envelope This time in order to access the results I need to do this: public function result( event:Object ) : void{loginModel.tokenApp = event.result.CreateTokenResult;} this happens for other services too, where with cairngorm 2.0 I was able to access the results with event.result now I need to specify the name of the soap tag that contains the result. The real problem here is that this does not apply to all the services but just some. And the weirdest case is the sample that I have explained above where the strategy to access the result of the same service changes depending on when you call it (first time event.result, second time event.result.CreateTokenResult), and I don't see any difference in the soap returned from the service. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] VideoPlayer Example
Hi all, I'm trying to build a videoplayer, that gets some urls from an XML file and then can play those .flv, that are located at those urls. I looked at the Flex Manual and have used the NetConnection Example. Now as I plug the videoPlayer Component into my application, I suddenly only hear the sound, but don't see the video. I'm sure it is playing somewhere, just not there, where I want to to play. I have the following class, that I use: package youtube { import flash.display.Sprite; import flash.events.NetStatusEvent; import flash.events.SecurityErrorEvent; import flash.media.Video; import flash.net.NetConnection; import flash.net.NetStream; import flash.events.Event; import flash.display.StageScaleMode; // import flash.display.StageAlign; import flash.net.URLRequest; import flash.net.URLLoader; public class VideoPlayer extends Sprite { private var videoURL:String // = http://www.youtube.com/get_video.php?video_id=seGhTWE98DUt=OEgsToPDskJTX-7s6JV2QE3tijPcNMT6.flv;; private var connection:NetConnection; private var stream:NetStream; // variables for video url private var loader:URLLoader; private var videoID:String; public function VideoPlayer() { // stage.align = StageAlign.TOP_LEFT; // stage.scaleMode = StageScaleMode.NO_SCALE; trace(1. VideoPlayer instanziert) connection = new NetConnection(); trace(2. new Net Connection); // connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler); connection.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler); trace(3. error handler eventListener); connection.connect(null); trace(4. connection(null)); } public function playVideo(myVideoID:String):void { trace(videoID received in Method: + myVideoID); // First, load the YouTube video page to get the 't' parameter. // See loadComplete() trace(playVideo aufgerufen) loader = new URLLoader(); loader.addEventListener(complete, loadComplete); loader.load(new URLRequest(http://www.youtube.com/watch?v=; + myVideoID)); trace(5. url request: http://www.youtube.com/watch?v=; + myVideoID); videoID = myVideoID; } private function loadComplete(event:Event):void { // Extract 't' parameter, pass it to get_video.php trace(6. loadComplete: + event); trace(videoID in loadComplete Function: + videoID); var t:String = String(loader.data).match(/t=[^]*/)[0]; trace(7. t String: + t); videoURL = http://www.youtube.com/get_video.php?video_id=; + videoID + t + .flv; trace(8. videoURL got from Server: http://www.youtube.com/get_video.php?video_id=; + videoID + t + .flv); connectStream(); } /* private function netStatusHandler(event:NetStatusEvent):void { switch (event.info.code) { case NetConnection.Connect.Success: trace(connectStream in netStatus Handler); connectStream(); break; case NetStream.Play.StreamNotFound: trace(Stream not found: + videoURL); break; } } */ private function securityErrorHandler(event:SecurityErrorEvent):void { trace(securityErrorHandler: + event); } private function connectStream():void { trace(connect Stream); var stream:NetStream = new NetStream(connection); // stream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler); stream.client = new CustomClient(); var video:Video = new Video(); // video.x = 1; // video.y = 1; video.height = 240; video.width = 320; // video.opaqueBackground = true; video.attachNetStream(stream); stream.play(videoURL); trace(videoURL final: + videoURL); addChild(video); } } } class CustomClient { public function onMetaData(info:Object):void { trace(metadata: duration= + info.duration + width= + info.width + height= + info.height + framerate= + info.framerate); } public function onCuePoint(info:Object):void { trace(cuepoint: time= + info.time + name= + info.name + type= + info.type); } } In my videoDisplay component (it's a canvas) I use this code, to start the video: import youtube.VideoPlayer; public function play(videoID:String):void { var videoplayer:VideoPlayer = new VideoPlayer(); videoplayer.x = 0; videoplayer.y = 0;
RE: [flexcoders] specifying measuredWidth/measuredHeight in a skin
Hmm, so everything else I've sent recently has been posted, so I'll try to resend this. I know that flexcoders can have a slow posting time for some people (which now seems to include me), but it's been a day. If that's now normal, someone just let me know. Thanks, Brian From: Brian Deitte Sent: Friday, November 03, 2006 4:25 PMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] specifying measuredWidth/measuredHeight in a skin Hi Mike, thanks for the response. I do have a solution now, based on Dirk's example (http://www.richinternet.de/blog/index.cfm?mode=entryentry=ADD4FDD1-9B48-BFBC-2A70F3C57EBC6892), but I would be interested in knowing what I was doing wrong. I was doing something I saw in the framework for Application, and subclassing ProgrammaticSkin and using it in CSS as a background-image. The skin would have to have the measuredWidth/measuredHeight, as previously mentioned, and here's the a simplified version of the updateDisplayList() method: override protected function updateDisplayList(w:Number, h:Number):void { super.updateDisplayList(w, h); // FIXME: override Application to add styles for all values below, then getStyle() for each // one and set in CSS var g:Graphics = graphics; g.clear(); // set width and height to dimensions we want for this gradient w = 916; h = 16; var fillColors:Array = [0xF7F7F7, 0xD5D5D5]; var fillAlphas:Array = [1, 1]; drawRoundRect(x, y, w, h, null, fillColors, fillAlphas, verticalGradientMatrix(x, y, w, h)); } And this works fine, but again only if the measuredWidth/measuredHeight is set. So after seeing Dirk's code, I tried changingone skin over to extend HaloBorder, not set the measuredWidth/measuredHeight, and then use the skin in CSS as a border-skin. This works, I'm happy to say. It does feel a little strange to me, that I'm using something called "border-skin" but I'm doing things in the middle of a canvas. Is this part normal or should I be using a background-image? This turned into a longer message than I thought! I'm starting to get into this whole building-a-Flex-app thing. :) -Brian From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael SchmalleSent: Thursday, November 02, 2006 5:07 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] specifying measuredWidth/measuredHeight in a skin Hi Brian,This dosn't make sense...What are you subclassing for the skin class?I use ProgrammaticSkin and RectangularBorder all the time and have never specified measuredWidth or measuredHeight in a skin. I get none of the things you are talking about. Are you using an image or drawing API in the skin?If it is a borderSkin style are you subclassing RectangularBorder? For the borderMetrics. Can you give an example, I am sure I could nail this one.Peace, Mike On 11/2/06, Brian Deitte [EMAIL PROTECTED]com wrote: Ah, my first flexcoders post as a Flex developer. I feel like I shouldbe getting my cloak and learning a secret handshake right now.Is there a way to not specify the measuredWidth and measuredHeight in askin? I don't like having to hardcode a width and height there, as Icurrently have to do.For more details, this is an application that is using absolutepositioning, and the skins are on Canvases. If I don't specify themeasured width and height in the skin, then the drawRoundRect() doesn'tdraw from the correct position, and the passed-in width and height fromupdateDisplayList() doesn't seem to help with this fact. Am I missingsomething here?Thanks for any pointers, Brian-- What goes up, does come down. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] specifying measuredWidth/measuredHeight in a skin
Hi Mike, thanks for the response. I do have a solution now, based on Dirk's example (http://www.richinternet.de/blog/index.cfm?mode=entryentry=ADD4FDD1-9B48-BFBC-2A70F3C57EBC6892), but I would be interested in knowing what I was doing wrong. I was doing something I saw in the framework for Application, and subclassing ProgrammaticSkin and using it in CSS as a background-image. The skin would have to have the measuredWidth/measuredHeight, as previously mentioned, and here's the a simplified version of the updateDisplayList() method: override protected function updateDisplayList(w:Number, h:Number):void { super.updateDisplayList(w, h); // FIXME: override Application to add styles for all values below, then getStyle() for each // one and set in CSS var g:Graphics = graphics; g.clear(); // set width and height to dimensions we want for this gradient w = 916; h = 16; var fillColors:Array = [0xF7F7F7, 0xD5D5D5]; var fillAlphas:Array = [1, 1]; drawRoundRect(x, y, w, h, null, fillColors, fillAlphas, verticalGradientMatrix(x, y, w, h)); } And this works fine, but again only if the measuredWidth/measuredHeight is set. So after seeing Dirk's code, I tried changingone skin over to extend HaloBorder, not set the measuredWidth/measuredHeight, and then use the skin in CSS as a border-skin. This works, I'm happy to say. It does feel a little strange to me, that I'm using something called "border-skin" but I'm doing things in the middle of a canvas. Is this part normal or should I be using a background-image? This turned into a longer message than I thought! I'm starting to get into this whole building-a-Flex-app thing. :) -Brian From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael SchmalleSent: Thursday, November 02, 2006 5:07 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] specifying measuredWidth/measuredHeight in a skin Hi Brian,This dosn't make sense...What are you subclassing for the skin class?I use ProgrammaticSkin and RectangularBorder all the time and have never specified measuredWidth or measuredHeight in a skin. I get none of the things you are talking about. Are you using an image or drawing API in the skin?If it is a borderSkin style are you subclassing RectangularBorder? For the borderMetrics. Can you give an example, I am sure I could nail this one.Peace, Mike On 11/2/06, Brian Deitte [EMAIL PROTECTED]com wrote: Ah, my first flexcoders post as a Flex developer. I feel like I shouldbe getting my cloak and learning a secret handshake right now.Is there a way to not specify the measuredWidth and measuredHeight in askin? I don't like having to hardcode a width and height there, as Icurrently have to do.For more details, this is an application that is using absolutepositioning, and the skins are on Canvases. If I don't specify themeasured width and height in the skin, then the drawRoundRect() doesn'tdraw from the correct position, and the passed-in width and height fromupdateDisplayList() doesn't seem to help with this fact. Am I missingsomething here?Thanks for any pointers, Brian-- What goes up, does come down. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] x, y, width, and height in CSS
Thanks Peter. If I can use Left/Right/Top/Buttom or Padding* for all the components where I specify x/y/width/height, this will bea goodsubstitute. -Brian From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Peter BairdSent: Thursday, November 02, 2006 6:30 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] x, y, width, and height in CSS There are some reasonable approaches for some of things your looking for inCSS. For X and Y positioning, you can use the CSS values Left, Right, Top, andBottom to specify the pixels distance.For height, for controls like button, you can use your CSS paddings to, in asense, define the height. For example, a button, setting PaddingTop andPadding Bottom will create a consistent height for buttons across allbuttons with that styleName. You can play around with paddingTop andpaddingBottom until you get the desired height (http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.html) and use that to define height.-peter On 11/2/06 2:47 PM, "Brian Deitte" [EMAIL PROTECTED]com wrote: Is there any thoughts on having x, y, width, and height in CSS? I find it painful to not have the values there when working with a designer and using absolute positioning. My life would be much easier if I could simply set up the Flex application on the designer's machine, point him to the CSS, and let him make design changes himself. I've read Manish's posts on this (http://mannu.livejournal.com/359634.html, http://mannu.livejournal.com/299285.html) as well as Gordon's flexcoders post where he says this is by design. I assume this is by design for performance reasons, and that the framework would be slowed down by having to look up the values continuously to check for runtime changes. So how about special-casing these four values in CSS, and allowing them to continue to be properties? -Brian -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] Re: Shortcut for creating and dispatching events
You'd write model.dispatchevent( new TextEvent(SEARCH_MACHINES, false, false, dgItems.selectedItem.machine)); But the SDK team considers the 3-line approach better practice, because it makes clear which property is getting set to what. If you have an event with a lot of properties, code like dispatchEvent(new MyEvent(MY_EVENT_TYPE, false, false, 1, foo, 19, 36, [ bar ], true, 2, { x: 99, y: 108 }) isn't very clear. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of boy_trike Sent: Saturday, November 04, 2006 11:18 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Shortcut for creating and dispatching events The signature for the TextEvent already HAS the text property. from LiveDocs: TextEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, text:String = ) I am just looking for the syntax for typing it on one line thanks bruce --- In [EMAIL PROTECTED]ups.com, Ralf Bokelberg ralf.bokelberg@... wrote: Hi Bruce, you need to extend the constructor of TextEvent: public function TextEvent( type : String, text : String ) ... Cheers, Ralf. On 11/4/06, boy_trike [EMAIL PROTECTED].. wrote: the 1st 3 lines work fine. However, being a lazy programmer who does not want to type much, I want to do something like the commented line, but I am missing something with the syntax (since it does not work) var event : TextEvent = new TextEvent(SEARCH_MACHINES); event.text = dgItems.selectedItem.machine; model.dispatchEvent( event ); // model.dispatchEvent( new TextEvent(SEARCH_MACHINES, {text:dgItems.selectedItem.machine} )); thanks bruce -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Ralf Bokelberg ralf.bokelberg@... Flex Flash Consultant based in Cologne/Germany __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] x, y, width, and height in CSS
Hi BrianNot each component but also you could do just in the mx.core.UIComponent classIt will affect all components.Regards.On 11/3/06, Brian Deitte [EMAIL PROTECTED] wrote: Hi Igor, if this is fixed in 2.1, that'd be great to know. As for Manish's approach, the problem for me with this is that I would need to override every Flex component that is used to get this to work, not just Canvas. Hopefully it is changed in 2.1 or Peter's solution will work. -Brian From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Igor CostaSent: Friday, November 03, 2006 8:15 AMTo: [EMAIL PROTECTED]ups.comSubject: Re: [flexcoders] x, y, width, and height in CSS BrianAs in liveDocs says the values ( width, height, x,y ) doesn't support in an external CSS file, but you can also use as Manish J. said http://mannu.livejournal.com/299285.html you can override the class and start doing this .I had a same situation last week when I was trying to get a designer to start doing the CSS code but with the width and height he couldn't do nothing I just searched in the google and found that link above too and did the same, worked but also isn't enough. I belive the in 2.1 version of Flex this will be fixed ( I guess).Regards. On 11/2/06, Brian Deitte [EMAIL PROTECTED] wrote: Is there any thoughts on having x, y, width, and height in CSS? I findit painful to not have the values there when working with a designer andusing absolute positioning. My life would be much easier if I couldsimply set up the Flex application on the designer's machine, point himto the CSS, and let him make design changes himself.I've read Manish's posts on this(http://mannu.livejournal.com/359634.html, http://mannu.livejournal.com/299285.html) as well as Gordon's flexcoderspost where he says this is by design. I assume this is by design forperformance reasons, and that the framework would be slowed down byhaving to look up the values continuously to check for runtime changes.So how about special-casing these four values in CSS, and allowing themto continue to be properties?-Brian-- Igor Costawww.igorcosta.com -- Igor Costawww.igorcosta.com __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] HTTPS and status codes
Do a search for problems with HTTPS responses containing Pragma,no-cache headers and Expires headers with a time set in the past and MSIE (it has been discussed on this list before too)... to sniff HTTPS requests consider using Paros Proxy with MSIE on the client to see the actual headers being returned. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of riskysevenSent: Saturday, November 04, 2006 10:32 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] HTTPS and status codes Is there a way to get the HTTP status code out of the HTTPStatusEvent when making an HTTPS call? Or for that matter, is there any way to display the status code from an HTTPS call w/o using Data Services? We are making a simple Flex2/AS3 HTTPS call out of IE6 which fails for an unknown reason. It works in IE6 using HTTP, in Firefox using HTTP or HTTPS, and we can bring the pagae up in HTTPS in IE6 if we just enter the URL in the browser. Any ideas? Thanks. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Where are Bookmarks stored?
Hello, Ive had to re-import my project a couple of times because of system level problems. Each time this has happened, Ive lost all of my bookmarks. I assume that this is because the bookmarks are stored somewhere other than where Im expecting them. So, the question is, where are the bookmarks stored, so I can make sure they get added to our source repository, etc? Thanks in Advance, Steve Steve Kellogg Peak8 Solutions 1401 14th Street Boulder, Colorado 80302, USA Fax: 303.415.2597 E-Mail: [EMAIL PROTECTED] __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Can a Transition be used for addedEffect / removedEffect?
I'm not finding any documented examples and something like this doesn't seem to work for me: mx:states mx:State name=ShowForm mx:SetProperty name=visible value=false target={mypanel1}/ mx:RemoveChild target={mypanel1}/ mx:AddChild position=lastChild ns1:NewPanel1 addedEffect={myFade} id=newPanel1 x=10 y=10 width=288 height=433 title=Outline mx:ControlBar height=40 /mx:ControlBar /ns1:NewPanel1 /mx:AddChild .. mx:Transition id=myFade mx:Sequence mx:Fade alphaFrom=0 alphaTo=1 duration=600 / /mx:Sequence /mx:Transition Thanks, Bruce -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Login application - several newbie questions
#1) No, you store the data is some model object. Example: public UserModel { public var user:UserInfo; public var roles:ArrayCollection; } #2) I assume you want to do this based on the user that is logged in. You would use data binding to do this. Example: bla:MyComponent user="{UserModel.getInstance().user}" / So inside your MyComponent in the setter for the user property, you would created a Button/Label, or hide them based on the permissions a user has. Sounds like you are just starting with Flex. Best thing to do is to go thru the manual ("Flex Developer's Guide")located in the Help section of Eclipse. Dimitrios Gianninas RIA Developer Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pdflibpilotSent: Sunday, November 05, 2006 8:23 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Login application - several newbie questions I am trying to implement an application where the user logs in using aTitle Window. 1. I need to store data returned from the server containing user infowith successful login. Currently I am using DataGrid but there is onlyone record. Is this the best method ? When the Title Window closesshould the DataGrid still be available ? if so how do I then referencethis data to be used for subsequent server request ?2. I want to populate or create a Label or Button after login andclosing of the Title Window. Not having much luck using functions inthe Title Window to popuplate elements in the parent window.I am trying to transition to Flex from interactive PDF / _javascript_s. AVIS IMPORTANT WARNING Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur. This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Re: hostmysite.com...RemoteObject not working
Bummer - here was their reply: Yes, we know that ColdFusion MX 7 Updater 2 provides integration between ColdFusion and Flex 2 applications. HostMySite does not currently support Flex in a shared environment. It would be possible in a dedicated environment provided the you purchased a license. --- In flexcoders@yahoogroups.com, Pat Buchanan [EMAIL PROTECTED] wrote: The last time I spoke with HostMySite, they did not support it, however they had it in a test environment and was planning on deploying it eventually. They would not give me a hard date, sorry. However, I would email them anyway and apply the pressure. :) Thanks -Pat On 11/4/06, qnotemedia [EMAIL PROTECTED] wrote: Hi all - back from MAX, and I'm finally using RemoteObject! I have a simple calendar application. All is working fine with my dev copy of ColdFusion, but when I put it up on hostmysite.com it fails to connect - error follows at the end of this post. The remoteobject looks like this. mx:RemoteObject id=calendarRO destination=ColdFusion source=g3calendar.cfcs.CalendarGateway mx:method name=getAll result=getAllHandler(event)/ /mx:RemoteObject I have tried with and without g3calendar in the source, though I think its finding the CFC, because instead, I would get a CFC not found right? I used the make CFCs wizard in Flex Builder 2. They do have the servers updated to v7.02. I have double-checked that the datasource is working. I have made a CFMapping to the g3calendar folder. Other Flex Apps work fine via WebService and HTTPService. Here is the error - not quite sure how to toubleshoot this! - Chris [RPC Fault faultString=Send failed faultCode=Client.Error.MessageSend faultDetail=Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 500] at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::fa ultHandler() at mx.rpc::Responder/fault() at mx.rpc::AsyncRequest/fault() at mx.messaging::ChannelSet/::faultPendingSends() at mx.messaging::ChannelSet/channelFaultHandler() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv entFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.messaging::Channel/mx.messaging:Channel::connectFailed() at mx.messaging.channels::PollingChannel/mx.messaging.channels:PollingCha nnel::connectFailed() at mx.messaging.channels::AMFChannel/mx.messaging.channels:AMFChannel::st atusHandler() -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Can a Transition be used for addedEffect / removedEffect?
Bruce, The answer is yes, although it takes some playing with to get it right J here is an example of a fading transition. The key here is the RemoveChildAction effect and the AddChildAction effect in the transition. These allow you to control when the RemoveChild and AddChild state changes happen. You should be able to adapt this to your example. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=absolute currentState=vb1 mx:states mx:State name=vb1 mx:RemoveChild target={vb2} / /mx:State mx:State name=vb2 mx:RemoveChild target={vb1} / /mx:State /mx:states mx:transitions mx:Transition toState=vb1 fromState=* mx:Sequence mx:Fade target={vb2} alphaFrom=1 alphaTo=0 / mx:RemoveChildAction target={vb2} / mx:AddChildAction target={vb1} / mx:Fade target={vb1} alphaFrom=0 alphaTo=1 / /mx:Sequence /mx:Transition mx:Transition toState=vb2 fromState=* mx:Sequence mx:Fade target={vb1} alphaFrom=1 alphaTo=0 / mx:RemoveChildAction target={vb1} / mx:AddChildAction target={vb2} / mx:Fade target={vb2} alphaFrom=0 alphaTo=1 / /mx:Sequence /mx:Transition /mx:transitions mx:Button label=Change State top=10 left=10 click=currentState = currentState == 'vb1'?'vb2':'vb1'; / mx:VBox id=vb1 top=44 bottom=10 right=10 left=10 backgroundColor=0xFF borderStyle=solid /mx:VBox mx:VBox id=vb2 top=44 bottom=10 right=10 left=10 backgroundColor=0x33 borderStyle=solid /mx:VBox /mx:Application From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Bruce Denham Sent: Sunday, November 05, 2006 9:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Can a Transition be used for addedEffect / removedEffect? I'm not finding any documented examples and something like this doesn't seem to work for me: mx:states mx:State name=ShowForm mx:SetProperty name=visible value=false target={mypanel1}/ mx:RemoveChild target={mypanel1}/ mx:AddChild position=lastChild ns1:NewPanel1 addedEffect={myFade} id=newPanel1 x=10 y=10 width=288 height=433 title=Outline mx:ControlBar height=40 /mx:ControlBar /ns1:NewPanel1 /mx:AddChild .. mx:Transition id=myFade mx:Sequence mx:Fade alphaFrom=0 alphaTo=1 duration=600 / /mx:Sequence /mx:Transition Thanks, Bruce __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] controlling child index in an Image
i'm changing an mx:Image's source via load(). i'm also adding a couple of TextFields to the Image via addChildAt() after the new image is loaded via a Complete event. other shapes/sprites can also be added via user interaction. i need to selectively remove some of the Image's children maintain the newly loaded image at 0 child so stuff can continue to be drawn over it. however beyond the initial image load, the new image isn't always the 0th child, so i'm having a tough time not removing it as i step thru the children (even though i'm adding the children at a specific index always 0). tried checking children names (the new image is always FlexLoaderXXX where XXX is some number) but i guess i'm missing something as it seems to not work consistently. i suspect it's my sequential way of thinking is there some way to control the index where the new image is loaded so it's always 0? i don't get how to accomplish this via the way i'm now loading the new image: theImage.load(newImageSource); or is there a better method to handle this? thanks. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] RE: FilteredLineSeries and Printing - ChartMan Ely, we need you!
It'll take me a little longer to answer your first question, but as for the second...if you want to duplicate a component into a separate view (say, a print view), you've got a few options: 1) reparent the child into the other view. This is usually fine if you're going to do it, print it, and put it back before the screen updates, but it sounds like that's not an option for you. 2) duplicate the component and all of its state into the other view. This is normally the approach I would recommend, as it avoids issues around resolution, font rendering, etc. But if that doesn't work, you could always... 3) create a bitmap copy of the image. To do that: 1) create an instance of BitmapData() at the height/width of the source component. 2) use BitmapData.draw() to copy the source compoennt into the bitmap 3) wrap the BitmapData component into a new Bitmap() 4) create a UIComponent at the height/width of the source component 5) attach the new Bitmap as a child of the new UIComponent 6) attach the UIComponent as a child wherever you want in your print view. Keep in mind that Printers generally have higher resolution than the screen, as as such can render flex components at much higher resolution than they are on screen. If you capture a component at screen resolution into a bitmap, you might be losing that higher fidelity (i.e., printing a bitmap of a chart might look worse than printing the chart). You could experiment with creating your bitmapData at 2x, 4x, etc the size of the component on screen and then scaling it down to be the width height you want in the end, I haven't thought it through all the way, but it might work. E. -Original Message- From: Jonathan Miranda [mailto:[EMAIL PROTECTED] Sent: Thursday, November 02, 2006 3:28 PM To: Ely Greenfield; flexcoders@yahoogroups.com Subject: FilteredLineSeries and Printing - ChartMan Ely, we need you! Alright, I've got it working - so for those following along, here's a working filter at a LineSeries not LineChart levelbut hit another framework show-stopper and need your expertise Ely (sorry for bugging ya directly Ely, thought ya missed my reply earlier and getting slammed with a deadline - I promise I'll share my Gantt when its finished :). Anyways, below is my FilteredLineSeries (which works) and my mxml file I'm using to test it. My problem is the horizontalAxis/categoryAxis isn't smart when it filters data - if you change the dataprovider of the categoryAxis back between the hAxisData and the alteredData, you will see what the problem is. In a nut shell, the categoryAxis is filtering the data completely meaning that once it sees a value for the x-axis, it clips/skips the other instances of it - aka, even though I have a number:1 for blue and red, I only see blue. How do I get around this? I need to show both lines for red/blue starting at 1. If you uncomment the basic LineSeries addition, you can see it easier. In pure basic terms: If I have in my dataProvider: name=1 amount=200 brand=blue name=1 amount=400 brand=red how do I get 2 lines starting at name=1 and not two entries for 1 in the x-axis? I'm assuming this is a change on CategoryAxis, not the FilteredLineSeries I'll need to mess with. **Also** Side note: Printing of Charts, usually with PrintJobs you have to create a sprite and do an addChild - but a problem in the FlexFramework, is that if I do an addChild of something I'm displaying, I'll lose it because of parenting problems. Is there some nice way to print charts ala cacheAsBitmap or something similar? I'd rather not recreate charts via actionscript for each print job. I know there's some way to say take what I see and make it a bitmap but I'm not savy to that and I'm guessing Ely you know how to print charts :) Some advice? FilteredLineSeries package com.NoTouchie.chart { import mx.charts.series.LineSeries; import mx.charts.ChartItem; import mx.charts.series.items.LineSeriesSegment; import mx.graphics.IStroke; import mx.charts.series.renderData.LineSeriesRenderData; public class FilteredLineSeries extends LineSeries{ public function FilteredLineSeries(customFilters:Array = null) { super(); this._customFilters = customFilters; } public function set customFilters(newFilterSet:Array):void { _customFilters = newFilterSet; invalidateData(); } override protected function updateFilter():void { super.updateFilter(); // No customFilters, then don't run if(_customFilters.length 0) { var validSegments :Array = new Array();
[flexcoders] Re: Flex Data Services - Client.Data.UnderFlow
The problem was actually solved (or avoided) by switching from the default gateway to the debugger gateway But i`m still very curious to know more about this strange problem /fredrik --- In flexcoders@yahoogroups.com, wesubotnix [EMAIL PROTECTED] wrote: Hi, When switching to communicate with a copy of my database on a testserver (with mysql server at localhost) I very very slowly receive some initial data from the database. At the third sql-call it breaks...I get this same error. netStatusHandler: [NetStatusEvent type=netStatus bubbles=false cancelable=false eventPhase=2 info=[object Object]] level : error details : code : Client.Data.UnderFlow description : Could it have anything to do with differences in php- or mysqlversions? On the old webserver everything works fine. Nothing is acutaly changed in the actionscript-code. And the sql-statements works fine in the amfphp-browser. Someone has any suggestions for this problem? Thanks, Fredrik Sandberg This is due to an unexpected error during serialization. If you could send me a reproducible test case I would very much like to know what caused this... the best way would be to zip up the code and rename the zip file with a .pete extension (as .zip files will be denied by our email system). Thanks, Pete -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Fade Text in and out, when text variable is changed
Hi all, I have some text, that gets retrieved from some variables (those variables get retrieved from an xml-file). I would like to fade in the text, when the variable changes and fade it out, when the old text is replaced by the new one (i.e. again the variable changes). I tried showEffect=Fade hideEffect=Fade but it didn't work. Can anyone point me in the right direction? Thanks a lot for your answers and best regards, Pascal -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] DataTip on DataGrid: Change background color
Hi all, I use some DataTips on a DataGrid (showDataTips=true). It works fine, but the DataTips have a yellow background. Where can I change this background color? I have tried to use the CSS Style: DataTips { backgroundColor: #FF } but the background color of the DataTips didn't change. Can anyone help me? Thanks a lot, Pascal -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Fade Text in and out, when text variable is changed
First you need to create effect objects. In the sample below you can find 2 fade effects and 2 move effects. There 2 approaches that I use: If you want an effect on a UI element that triggers the effect itself, such as the text input controls in the sample below, and if you are using an effect event, such as focusInEffect (they typically have effect as a postfix in their name), its enough to give the name of the effect object. Or, if you want to trigger an effect by other events, such as change, click, or if you want to trigger the effect from a different place altogether (see the swap button in the example), then you need to play() the effects manually. The effect objects need to know which targets (UI elements) they play on, and you can either provide this as value for the target properties, the targets array property, or in the play function call as targets array in the argument. In the button example I use the first option. HTH ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=absolute mx:Fade alphaFrom=0.2 alphaTo=1 id=myFadeIn duration=500/ mx:Fade alphaFrom=1 alphaTo=0.2 id=myFadeOut duration=500/ mx:TextInput x=27 y=27 text= alpha=0.2 focusInEffect=myFadeIn focusOutEffect=myFadeOut id=myText / mx:TextInput x=27 y=54 text= alpha=0.2 focusInEffect=myFadeIn focusOutEffect=myFadeOut id=myText2 / !-- non-effect event triggered effects -- mx:Script ![CDATA[ public function handleSwap() : void { if (myText.y 27) { MoveUp.target = myText; MoveDown.target = myText2; } else { MoveUp.target = myText2; MoveDown.target = myText; } MoveUp.play(); MoveDown.play(); } ]] /mx:Script mx:Move id=MoveUp yFrom=54 yTo=27 duration=500/ mx:Move id=MoveDown yFrom=27 yTo=54 duration=500/ mx:Button label=Swap Text Fields click=handleSwap()/ /mx:Application From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Pascal Schrafl Sent: Sunday, November 05, 2006 1:42 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Fade Text in and out, when text variable is changed Hi all, I have some text, that gets retrieved from some variables (those variables get retrieved from an xml-file). I would like to fade in the text, when the variable changes and fade it out, when the old text is replaced by the new one (i.e. again the variable changes). I tried showEffect=Fade hideEffect=Fade but it didn't work. Can anyone point me in the right direction? Thanks a lot for your answers and best regards, Pascal __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Custom Progress Bar
Title: quote I want to use the Progress Bar as component in a video player to show how much of the movie has played. Can you subclass the Progress Bar to do this? I was planning on creating a timer and a listener to update the progress bar. Has anyone done something like this? Thanks. -- Whether you think that you can, or that you can't, you are usually right. - Henry Ford __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] FlexPrintJob problem: application background colors showing in margins
The background color of my application is printing in the margins of the page when I print my component in landscape mode. In portrait mode, there's a tiny sliver of the bg color on each side. Is there a way to prevent that besides using a white background? It seems like a bug since I can't actually print my component in those areas (it gets cropped at the margins) but the background color shows anyway. Any thoughts? Thanks,Tom __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] Re: local SWF files cannot use the LoaderContext.securityDomain property
Last thought is that you can see if getting the directories of the apps youre developing on the client as well as the urls of your modules added into your trust directories (set in the global security settings you can reach via right-click settings in the player). It might allow your development to move forward without the copying around. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Thomas W. Gonzalez Sent: Friday, November 03, 2006 5:30 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: local SWF files cannot use the LoaderContext.securityDomain property The process sounds right, but Flex (or more importantly Flash) does not currently support it due to the fact the Module files are remote. We can not have the module files locally as our Application runs on a web-server, which is a network address, and these modules get streamed from the web application server via a secure pathway. I know this is a confusing use case but an important one. We are probably leveraging Flex/Flash in ways not originally thought of, and thus why we are hitting this issue. Probably best to discuss off-list if it is something the Adobe team is interested in pursuing a solution to. From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Matt Chotin Sent: Friday, November 03, 2006 4:57 PM To: [EMAIL PROTECTED]ups.com Subject: RE: [flexcoders] Re: local SWF files cannot use the LoaderContext.securityDomain property Your process sounds right, alternatively you could have the stable modules also available locally though, right? From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Thomas W. Gonzalez Sent: Friday, November 03, 2006 10:53 AM To: [EMAIL PROTECTED]ups.com Subject: RE: [flexcoders] Re: local SWF files cannot use the LoaderContext.securityDomain property Hi Mike, Yes that would solve the problem with the once exception of how do we get the Parent application (being the .swf we just compiled) out to the remote server? Would we manually have to deploy it after each compile cycle? Step by Step Use Case: Test and compile child application Deploy child application to remote server (think of this is a stable code module) Make changes to Parent application locally in FB. Launch Parent application in debug mode by compiling/launching from Builder. Test Parent application functionality (which requires loading of the child application) Make sure Parent app and Child app play nicely together. (currently not possible because of sandbox/security violation of local resource embedding networked resource and the SecurityDomain.) Does your scenario solve this use case? In what you proposed we would also have to manually put the latest Parent app out on the remote server as well. I see this especially becoming an issue when we start working with Module classes (per 2.0.1) From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Mike Morearty Sent: Friday, November 03, 2006 9:29 AM To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] Re: local SWF files cannot use the LoaderContext.securityDomain property If I understand you correctly, all you want to do is launch the browser pointing at http://myserver/myparentapp.html, instead of pointing at C:\myproject\bin\myparentapp.html, right? If that's the case, then: 1. bring up the launch configurations dialog (click the down-arrow on the Debug toolbar button, and then CTRL-click on the line for the launch config you want to modify) 2. find the launch configuration that you want to modify 3. un-check the use default launch URLs checkbox, and then enter the URL you want. --- In [EMAIL PROTECTED]ups.com, Thomas W. Gonzalez [EMAIL PROTECTED].. wrote: Yes, I understand that we want both apps coming from the same domain in production (or at least both from remote network locations) But there is a major use case here that can't be fulfilled: How do you DEBUG? Is there a way to setup Flex Builder to debug via remote files? We need to debug the loading and interaction of the child app with the Parent app (we don't necessarily need to debug the child app, although that would be nice, but we do need to debug the parent app.) I think this is a legitimate use case, albeit an advanced one, but I suspect it will start to come up more often especially when people start making more modular applications. - Tom _ From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Matt Chotin Sent: Thursday, November 02, 2006 9:45 PM To: [EMAIL PROTECTED]ups.com Subject: RE: [flexcoders] local SWF files cannot use the LoaderContext.securityDomain property I think you probably need to get your first app served over http
RE: [flexcoders] Re: TextArea in Grid - too big
Just do mx:GridItem direction=vertical. And then I recommend using mx:Text instead of mx:TextArea. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of app.developer Sent: Friday, November 03, 2006 9:54 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: TextArea in Grid - too big How do i change the direction of the gridItem? I see I can do it to the grid. The text is not meant to be editable. Precia --- In [EMAIL PROTECTED]ups.com, Matt Chotin [EMAIL PROTECTED] wrote: GridItem is an HBox. What if you change the direction on the GridItem to vertical, then put a Spacer in with a height of 100%, then just put the TextArea beneath that? Is the Text meant to be editable, maybe it should be a Text control instead? From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of app.developer Sent: Friday, November 03, 2006 7:38 AM To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] Re: TextArea in Grid - too big The bigger issue is the textArea is expanding 100% in each direction in the gridItem. I need align the text to the bottom and it's not happening. The text stays at the top. The top gridRow containing 8 gridItems with a textArea inside the gridItem. What I have done to is set the height of each textArea, however if I do not set the height, the textArea expands to fill the gridItem. That's ok if the text in the textArea would valign to the bottom, but it doesn't. So I'm at loss. How do I make this look better? At the moment it looks like floating balloons. Ugg. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] global settings through AS 3
No, you cant change the settings via AS. But you can put a crossdomain.xml file on your server which would allow the SWF to access the data. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of srioviyan_p Sent: Friday, November 03, 2006 11:25 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] global settings through AS 3 I have a SWF file which fetches data from the server and displays it. I just want to know whether it is possible to run that SWF file from DESKTOP as a stand-alone application. I tried to add my SWF location in the global security settings from ADOBE site.Once i add the SWF file in it, im able to fetch the data from the server. Is it possible to change these global settings through AS 3. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Barchart - trying to make it display the way i want
trying to finagle with a barchart, how do i change the widths of the bars and the spacing between the bars and the color of the bars? Also, if i want to put images next to the bars - would i do that with a canvas and in AS3? thanks Patrick -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Flex2 Docs font in Mac
Hey, When viewing the help docs in FB2 Beta for Mac, the small font used for the code examples renders terrible. Anyway to manually change this on the Mac Regards, Bjorn Schultheiss -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Distortion Effects
Thank you. This roXXors! I can see I'm gonna have to find a way to use it now ... Cheers John -Original Message-From: Alex Uhlmann [mailto:[EMAIL PROTECTED]Sent: Saturday, 4 November 2006 1:57 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Distortion Effects Here's something for ya: http://weblogs.macromedia.com/auhlmann/archives/2006/11/download_distor.cfm ;) Alex Alex Uhlmann Consultant (Rich Internet Applications)Adobe ConsultingWestpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UKp: +44 (0) 131 338 6969m: +44 (0) 7917 428 951[EMAIL PROTECTED]http://weblogs.macromedia.com/auhlmann This email and any files transmitted with it may be confidential and are intended solely for the use of the individual or entity to whom they are addressed. This email may contain personal information of individuals, and be subject to Commonwealth and/or State privacy laws in Australia. This email is also subject to copyright. If you are not the intended recipient, you must not read, print, store, copy, forward or use this email for any reason, in accordance with privacy and copyright laws. If you have received this email in error, please notify the sender by return email, and delete this email from your inbox. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Q. How can I change the property of a row in a datagrid? Please help...
Hi, I am sorry for sending the code so late. This code is written in a ".as" file. I am calling this function on mouseOver event of the list . Now here,"GridComponent" is the "mxml" file name and "gridObj" is the static object containing the reference of the datagrid.I have also got the index of the row and I have to highlight that row, by changing alpha or anything.public function changeBackground(index:Number,highlight:Boolean):void{ var myGrid:DataGrid = GridComponent.gridObj; var item:Object = (mGrid.dataProvider as ArrayCollection).getItemAt(index); ...} I tried to change the property of the "item" object but it is for a cell only, not the row. Is there anyway I can get the row of the datagrid, using the index.- Original Message From: Igor Costa [EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Friday, November 3, 2006 10:05:43 PMSubject: Re: [flexcoders] Q. How can I change the property of a row in a datagrid? Please help... Can you provide part of your code, it's hard to undrestand what you want to.Regards.On 11/3/06, arpan30_cs [EMAIL PROTECTED] com wrote: I have list that displays some values, now when i select some value from the list corresponding row in the grid should get highlighted. I have got the row number, and I want to change the "alpha" of that row. Method "setPropertiesAt( )" is not present in this version of Flex, I am working on Flex 2. -- - ---Igor Costawww.igorcosta. com __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] Flex2 Docs font in Mac
I'm guessing that the PDFs look ok because the fonts are embedded. Could be that help files don't have the necessary font embedded and that it's a non-standard Mac font? Or it could be a (Windows) TrueType versus (Mac) TrueType issue? Cheers John -Original Message- From: Bjorn Schultheiss [mailto:[EMAIL PROTECTED] Sent: Monday, 6 November 2006 2:27 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex2 Docs font in Mac Hey, When viewing the help docs in FB2 Beta for Mac, the small font used for the code examples renders terrible. Anyway to manually change this on the Mac Regards, Bjorn Schultheiss -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links This email and any files transmitted with it may be confidential and are intended solely for the use of the individual or entity to whom they are addressed. This email may contain personal information of individuals, and be subject to Commonwealth and/or State privacy laws in Australia. This email is also subject to copyright. If you are not the intended recipient, you must not read, print, store, copy, forward or use this email for any reason, in accordance with privacy and copyright laws. If you have received this email in error, please notify the sender by return email, and delete this email from your inbox. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] LinkButton - Style without surrounding color.
Hi all, I suspect this could be simple, although no results yielded when I searched the group (The Few. The Proud. The Searchers, LOL) I want to style a LinkButton in my application similar to an HTML link. For example, when the user rolls over the button, I would it to ONLY change the text color. Basically I am looking to set the selectionColor and rollOverColor properties to a zero alpha since I have varying background colors throughout the app. I'm sure it's right in front of my face. Thanks for any help you can offer. -Kenny -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Flex2 Docs font in Mac
I think most likely its using a non-standard Mac, perhaps i can update the appropriate asdocs template file and rebuild the docs? Regards, Bjorn Schultheiss From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of John Mazzocchi Sent: Monday, 6 November 2006 3:26 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex2 Docs font in Mac I'm guessing that the PDFs look ok because the fonts are embedded. Could be that help files don't have the necessary font embedded and that it's a non-standard Mac font? Or it could be a (Windows) TrueType versus (Mac) TrueType issue? Cheers John -Original Message- From: Bjorn Schultheiss [mailto:[EMAIL PROTECTED]] Sent: Monday, 6 November 2006 2:27 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex2 Docs font in Mac Hey, When viewing the help docs in FB2 Beta for Mac, the small font used for the code examples renders terrible. Anyway to manually change this on the Mac Regards, Bjorn Schultheiss -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links This email and any files transmitted with it may be confidential and are intended solely for the use of the individual or entity to whom they are addressed. This email may contain personal information of individuals, and be subject to Commonwealth and/or State privacy laws in Australia. This email is also subject to copyright. If you are not the intended recipient, you must not read, print, store, copy, forward or use this email for any reason, in accordance with privacy and copyright laws. If you have received this email in error, please notify the sender by return email, and delete this email from your inbox. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] RE: FilteredLineSeries and Printing - ChartMan Ely, we need you!
Jonathan -- The Category Axis maps values to catgegories...it can't know how to map the same value to multiple categories. What's the behavior you're looking for? Let me suggest one possibility. In a fully specified situation, the series names its xField, loads the value out of that field, and uses the category axis to map it to a category. But most of the time, developers don't bother to specify an xField. When that happens, the series just assumes that the data appears in the same order as the categories, and maps the nth item to the nth category. In that case, it's theoretically possible to have multiple categories representing the same value, since no one is actually trying to map values against the categories. If that's the case you're looking for, then I would suggest you: 1) remove the categoryFIeld from the category axis. 2) add a lableFuntion to the cat axis that pulls the name field out of the data and uses it as the label. Ely. -Original Message- From: Jonathan Miranda [mailto:[EMAIL PROTECTED] Sent: Thursday, November 02, 2006 3:28 PM To: Ely Greenfield; flexcoders@yahoogroups.com Subject: FilteredLineSeries and Printing - ChartMan Ely, we need you! Alright, I've got it working - so for those following along, here's a working filter at a LineSeries not LineChart levelbut hit another framework show-stopper and need your expertise Ely (sorry for bugging ya directly Ely, thought ya missed my reply earlier and getting slammed with a deadline - I promise I'll share my Gantt when its finished :). Anyways, below is my FilteredLineSeries (which works) and my mxml file I'm using to test it. My problem is the horizontalAxis/categoryAxis isn't smart when it filters data - if you change the dataprovider of the categoryAxis back between the hAxisData and the alteredData, you will see what the problem is. In a nut shell, the categoryAxis is filtering the data completely meaning that once it sees a value for the x-axis, it clips/skips the other instances of it - aka, even though I have a number:1 for blue and red, I only see blue. How do I get around this? I need to show both lines for red/blue starting at 1. If you uncomment the basic LineSeries addition, you can see it easier. In pure basic terms: If I have in my dataProvider: name=1 amount=200 brand=blue name=1 amount=400 brand=red how do I get 2 lines starting at name=1 and not two entries for 1 in the x-axis? I'm assuming this is a change on CategoryAxis, not the FilteredLineSeries I'll need to mess with. **Also** Side note: Printing of Charts, usually with PrintJobs you have to create a sprite and do an addChild - but a problem in the FlexFramework, is that if I do an addChild of something I'm displaying, I'll lose it because of parenting problems. Is there some nice way to print charts ala cacheAsBitmap or something similar? I'd rather not recreate charts via actionscript for each print job. I know there's some way to say take what I see and make it a bitmap but I'm not savy to that and I'm guessing Ely you know how to print charts :) Some advice? FilteredLineSeries package com.NoTouchie.chart { import mx.charts.series.LineSeries; import mx.charts.ChartItem; import mx.charts.series.items.LineSeriesSegment; import mx.graphics.IStroke; import mx.charts.series.renderData.LineSeriesRenderData; public class FilteredLineSeries extends LineSeries{ public function FilteredLineSeries(customFilters:Array = null) { super(); this._customFilters = customFilters; } public function set customFilters(newFilterSet:Array):void { _customFilters = newFilterSet; invalidateData(); } override protected function updateFilter():void { super.updateFilter(); // No customFilters, then don't run if(_customFilters.length 0) { var validSegments :Array = new Array(); var validFrom :int = 0; var validTo :int = -1; var getLastValid:Boolean = false; var newCache:Array = new Array(); // For every point in the line... for(var i:int = 0; i renderData.filteredCache.length; i++) { var currentItem:ChartItem = renderData.filteredCache[i]; // For every custom filter... var
RE: [flexcoders] Barchart - trying to make it display the way i want
Hi Patrick. Look at: 1) the barWidthRatio and maxBarWidth properties on barChart (or barSeries, if you're not using a barChart). 2) the fill style on barSeries to change the colors. tell me more about what it is you want to do with images, and I can give you more help. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of djSent: Sunday, November 05, 2006 7:00 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Barchart - trying to make it display the way i want trying to finagle with a barchart, how do i change the widths of the bars and the spacing between the bars and the color of the bars?Also, if i want to put images next to the bars - would i do that with a canvas and in AS3?thanksPatrick __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] ComboBox dataBinding complexData
Hi i have a problem to binding a comboBox with a complex data can you help me pls. Here my code [Bindable] private var lkreparti:ArrayCollection = new ArrayCollection(); private var dsReparti:DataService; dsReparti = new DataService(reparti); dsReparti.fill(lkreparti); dsReparti.autoCommit = false; mx:Binding source=cbReparto.selectedItem destination=responsabile.trpr001/ mx:ComboBox id=cbReparto dataProvider={lkreparti} labelField=rprdsc selectedItem={responsabile.trpr001}/ /mx:FormItem Here my class ActionScript package com.visitatori.vo { import mx.utils.ArrayUtil; import mx.collections.ArrayCollection; [Managed] [RemoteClass(alias=com.visitatori.vo.Trsp001)] public class Trsp001 { public function Trsp001() {} public var rsppkid:int; public var rspcgn:String=; public var rspnme:String=; public var rspsct:String=; public var trpr001:Trpr001= new Trpr001(); } } package com.visitatori.vo { import mx.collections.ArrayCollection; [Managed] [RemoteClass(alias=com.visitatori.vo.Trpr001)] public class Trpr001 { public function Trpr001() {} public var rprpkid:Number; public var rprdsc:String=; public var tbdg001s:ArrayCollection=new ArrayCollection(); } } -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: getItemIndex it's a bug Complex Data
Sorry i'm sleep is my mistake.. i have correct it dgResponsabili.selectedIndex = responsabili.getItemIndex(responsabile); Sorry again Devis --- In flexcoders@yahoogroups.com, devisbalsemin [EMAIL PROTECTED] wrote: Hi if you look my code, if i remove update Function all work, i have made a mistake into my ActionScript class or is it bug? Thanks for your help devis Here throw TypeError: Error #1034: Assegnazione di tipo forzata non riuscita: impossibile convertire mx.collections::[EMAIL PROTECTED] in mx.data.IManaged. ... private var dsResponsabili:DataService; [Bindable] private var responsabili:ArrayCollection = new ArrayCollection(); private function Update():void { dgResponsabili.selectedIndex = responsabili.getItemIndex(responsabili); } This my object package com.visitatori.vo { import mx.utils.ArrayUtil; import mx.collections.ArrayCollection; [Managed] [RemoteClass(alias=com.visitatori.vo.Trsp001)] public class Trsp001 { public function Trsp001() {} public var rsppkid:int; public var rspcgn:String=; public var rspnme:String=; public var rspsct:String=; public var trpr001:Trpr001; } } -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/