[flexcoders] Re: Browser cache problem
http://tech.groups.yahoo.com/group/flexcoders/message/135077 --- In flexcoders@yahoogroups.com, yamunaeaswer yamunaeas...@... wrote: Hi Any one know how to remove the browser cache using flex? Thanks to Advance
[flexcoders] Re: Flex cache problem
http://tech.groups.yahoo.com/group/flexcoders/message/135077 --- In flexcoders@yahoogroups.com, yamuna priya yamunaeas...@... wrote: Hi Can any one help for clear cache(SWF) using flex? Adance Thanks... Yahoo! recommends that you upgrade to the new and safer Internet Explorer 8. http://downloads.yahoo.com/in/internetexplorer/
[flexcoders] Re: Formatting my messages on this list...
Hi, this is not a solution for your question,but if you replay from the forum with the Rich-Text Editor that still are in beta, works almost. --- In flexcoders@yahoogroups.com, laurence5905 lmacne...@... wrote: Why is it, every single time I post a message with some code in it, the formatting is always removed? All those tabs and spaces I have in there to make my code look halfway decent are all gone when the message is posted. Anyone know how to stop the formatting from being removed like that? Thanks, Laurence MacNeill Mableton, Georgia, USA
[flexcoders] Re: Printing PDF417 barcodes in Flex...
Here you have it http://bumpslide.com/blog/tag/flex/ --- In flexcoders@yahoogroups.com, Laurence MacNeill lmacne...@... wrote: Has anybody here ever tried to print PDF417 barcodes in Flex? It's far more than a simple embed-the-font kind of thing, as you need a proper encoder to encode the data before printing it in the PDF417 font. I can buy the font, no problem. But the encoder is what's getting me -- closest encoder I can buy is a Java Servlet, and I have no idea if/how that can be integrated into a Flex app. Does anyone know if that's possible? Of course, the best solution would be the source code for a proper encoder in ActionScript, I suppose. Does anyone have that? Or know where I can get it? Thanks, Laurence MacNeill Mableton, Georgia, USA
[flexcoders] Re: NativeDragManager and nested components
http://www.mikechambers.com/blog/2007/11/07/air-example-native-drag-and-drop/ --- In flexcoders@yahoogroups.com, Yves Riel r...@... wrote: Thanks Alex but I need to be able to drag from the Desktop to the App too. However, maybe I can dynamically swap the NativeDMI for the regular DMI and vice-versa when I need it. I'll have to look into this. I'll try to find the tech note but if you have the link, it would be handy. Thanks! Whyves From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: Thursday, May 07, 2009 2:53 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] RE: NativeDragManager and nested components There are different rules to doing drag/drop totally internally (DragManagerImpl) and having to work with many OS platforms (NativeDragManagerImpl). We just couldn't find enough common ground. However, if you don't need to drag from your AIR app to the desktop, you can replace NativeDMI with regular DMI. There's a technote or documentation on how to do it. Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Yves Riel Sent: Wednesday, May 06, 2009 10:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] NativeDragManager and nested components The DragManagerImpl and NativeDragManagerImpl behaviours are so different that it drives me nut! I have a Flex component that is embedded in a Flex and AIR app. So, I used the IDragManager interface to access the methods and used the standard events. Unfortunately, I can't get a consistent behaviour across both platforms. One of my biggest problem is that in AIR, if a parent UIComponent accepted the drag, a child cannot cancel it through the standard IDragManager interface. I have a container that can accept or refuse a drag operation and I have children of the container that can do the same. So, when I move the mouse over the container, if it accepts the drag and that I move the mouse over a children and that the children cannot accept the drag, I simply cannot get the no drag icon over the child. I could possibly try to use the NativeDragEvents to do the trick but since I want my component to be cross platform, I cannot use AIR only classes. I'm starting to think that Adobe didn't think about this use case when designing both drag managers. Anyone has an idea or overcame this issue? Thanks! Yves
[flexcoders] Re: popup progress bar will uploading file
in the titleWindow you can call the PopUpManager.removePopUp(this); called from Complete Event as you have done, or you can dispatch the Complete Event to parent, and kill the popup ther , (The PopUpManager is a singleton so you can access it form enyware) --- In flexcoders@yahoogroups.com, stinasius stinas...@... wrote: hi i am trying to show a popup progress bar will uploading file. i would like help on how to close the popup once the file has finished uploading. here is my code so far.. popup progress bar(progress_popup.mxml) ?xml version=1.0 encoding=utf-8? mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical borderStyle=none headerHeight=0 creationCompleteEffect={customMove} mx:Script ![CDATA[ import mx.managers.PopUpManager; import mx.effects.easing.*; ]] /mx:Script mx:Parallel id=customMove target={this} mx:Move yFrom=0 xFrom={(stage.width - this.width) / 2} xTo={(stage.width - this.width) / 2} yTo={(stage.height - this.height) / 2} easingFunction=Elastic.easeOut duration=1000 / mx:Fade duration=500 / /mx:Parallel mx:ProgressBar indeterminate=true/ /mx:TitleWindow file uploadcode upload.as(where popup is called from upload form) private const FILE_UPLOAD_URL:String = ../cfcs/upload.cfm; private var fileRef:FileReference; private function init():void { fileRef = new FileReference(); fileRef.addEventListener(Event.SELECT, fileRef_select); fileRef.addEventListener(Event.COMPLETE, fileRef_complete); //fileRef.addEventListener(ProgressEvent.PROGRESS, progressHandler); } private function browseAndUpload():void { fileRef.browse(); message.text = ; createdprogressPopup(); } private function fileRef_select(event:Event):void { try { //message.text = size (bytes): + numberFormatter.format(fileRef.size); fileRef.upload(new URLRequest(FILE_UPLOAD_URL)); } catch (err:Error) { message.text = ERROR: zero-byte file; } memPhoto.text = event.currentTarget.name; } private function fileRef_complete(event:Event):void { message.text += (complete); progress_win.addEventListener(Close, removeMe); } /* private function fileRef_progress(evt:ProgressEvent):void { progressBar.setProgress(Number(evt.bytesLoaded), Number(evt.bytesTotal)); } private function progressHandler(event:ProgressEvent):void { var file:FileReference = FileReference(event.target); progressBar.setProgress( Number(event.bytesLoaded), Number(event.bytesTotal)); } */ [Bindable] private var progress_win:progress_popup; private function createdprogressPopup():void{ progress_win=progress_popup(PopUpManager.createPopUp(this,progress_popup,true)); /* reply_win.reply_subject.text = discussion_dg.selectedItem.data; reply_win.postsubject_msg.text = discussion_dg.selectedItem.data; reply_win.idusr_msg.text = number.text; */ } private function removeMe(event:Event):void { PopUpManager.removePopUp(progress_win); }
[flexcoders] Re: popup progress bar will uploading file
Main App: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=initApp(); @ mx:Script ![CDATA[ import mx.managers.PopUpManager; import mx.containers.TitleWindow; private var popUp:PopUp = null; private function initApp():void { popUp = new PopUp(); popUp.width = 100; popUp.height = 100; popUp.title = PopUp; popUp.addEventListener(Event.COMPLETE, removePopUp); PopUpManager.addPopUp(popUp,this); } private function removePopUp(event:Event):void { if(popUp !=null) { PopUpManager.removePopUp(popUp); } } ]] /mx:Script /mx:Application And the popUp, that dispatch the Complete Event, What I have done here is faking the Complete event by using a button, hope you figure it out :) PopUp.mxml put it in the same dir as your running app.. ?xml version=1.0 encoding=utf-8? mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute width=400 height=300 mx:Button label=event complete click=dispatchEvent(new Event(Event.COMPLETE)); / /mx:TitleWindow --- In flexcoders@yahoogroups.com, stinasius stinas...@... wrote: do you mind sharing an example?
[flexcoders] Re: Encrypt Flash SEO for Flash
have look at http://simplifiedlogic.com/ but some company like http://www.amayeta.com/ call's it encrypting but is realy obfuscation read on http://www.preemptive.com/obfuscator.html HP have a decompiler out now for security reason HP SWFScan, a free tool developed by HP Web Security Research Group, will automatically find security vulnerabilities in applications built on the Flash platform. download here: https://h30406.www3.hp.com/campaigns/2009/wwcampaign/1-5TUVE/index.php?key=swfjumpid=go/swfscan But it have ben 12 months sinse I have ben poking in this so if someone konw of a true encrypter please replay on this :) --- In flexcoders@yahoogroups.com, Ju Aedis aed...@... wrote: Hi Now Google Yahoo search engines can index all URLs, dynamic or otherwise in flash. Other people decompile SWF movie and steal the ActionScript Code, so I want to encrypt my SWF. Is the SWF after encrypted still be indexed by search engines? Help? Thanks! :) -- Live Technology in A.J. ââââââââââââââââââââââââââ .air?air Jordan?air = atmosphere?no,no,no!air = ria = RIA = Rich Internet Applications!
[flexcoders] Re: Encrypt Flash SEO for Flash
ok, but wath program do you use to encrypt ? --- In flexcoders@yahoogroups.com, Ju Aedis aed...@... wrote: Is the SWF after encrypted still be indexed by search engines? -- Sorry, I talk about the seo problem after encrypted. 2009/4/20 Cato Paus ca...@... have look at http://simplifiedlogic.com/ but some company like http://www.amayeta.com/ call's it encrypting but is realy obfuscation read on http://www.preemptive.com/obfuscator.html HP have a decompiler out now for security reason HP SWFScan, a free tool developed by HP Web Security Research Group, will automatically find security vulnerabilities in applications built on the Flash platform. download here: https://h30406.www3.hp.com/campaigns/2009/wwcampaign/1-5TUVE/index.php?key=swfjumpid=go/swfscan But it have ben 12 months sinse I have ben poking in this so if someone konw of a true encrypter please replay on this :) --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Ju Aedis aediso@ wrote: Hi Now Google Yahoo search engines can index all URLs, dynamic or otherwise in flash. Other people decompile SWF movie and steal the ActionScript Code, so I want to encrypt my SWF. Is the SWF after encrypted still be indexed by search engines? Help? Thanks! :) -- Live Technology in A.J. ââ¬Ã¢ ââ¢â¹Ã¢ â â â â â â â â â â â â â â â â â â â ââ¢â¹Ã¢ â⬠.air?air Jordan?air = atmosphere?no,no,no!air = ria = RIA = Rich Internet Applications! -- Live Technology in A.J. ââââââââââââââââââââââââââ .air?air Jordan?air = atmosphere?no,no,no!air = ria = RIA = Rich Internet Applications!
[flexcoders] Download *.docx from server
Hi all I have a weard issue, if I upload a foo.docx to server and want to download it later using Flex and the FileReference class I got this 17/04 15:13:28 error Requested resource '/**/1.3.11 Gjennomf?ringer.docx' (%2flcds%2flic%2f5%2f1%2f2%2f1.3.1 1%20Gjennomf%ef%bf%bdringer.docx) not found It works fine when I downloade a foo.doc
[flexcoders] Re: Download *.docx from server
Sorry duds, I have to configer my JRun and IIS6 to handle the MIME Type ;) --- In flexcoders@yahoogroups.com, Cato Paus ca...@... wrote: Hi all I have a weard issue, if I upload a foo.docx to server and want to download it later using Flex and the FileReference class I got this 17/04 15:13:28 error Requested resource '/**/1.3.11 Gjennomf?ringer.docx' (%2flcds%2flic%2f5%2f1%2f2%2f1.3.1 1%20Gjennomf%ef%bf%bdringer.docx) not found It works fine when I downloade a foo.doc
[flexcoders] Re: Flash speed test - please participate - only 1 click required !
DO NOT TEST THIS... Trojan Horse Detected on page! --- In flexcoders@yahoogroups.com, tom93438 tcs2...@... wrote: One other test that would also be useful: Please hit: http://flatim3000.appspot.com/?fps=24 Does the same as before, but tests for 24 fps. thanks tom --- In flexcoders@yahoogroups.com, tom s tcs2201@ wrote: Hi All, I'm doing some tests to see how 'fast' the Flash Player is in a variety of environments. Please click the link to take part: (you don't have to do anything other than click the link) http://flatim3000.appspot.com It's totally malware free. If you're interested, see below for details. Please hit it as many times as you like, from as many different environments as you can :) I'll share the results when I'm done. cheers tom details = The SWF: 1. attempts to set the frame rate to 1000 2. listens for enter_frame 10,000 times 3. records how long (2) takes 4. computes the actual FPS 5. send the data to a server, along with details on OS, Browser, FP version, IP Any suggestions/improvements - let me know...
[flexcoders] Re: Flash speed test - please participate - only 1 click required !
After a hit, I did stop using the AVG.. and are now using Norton Internet Security, it uses Insigth and is much faster then AVG .. here is the link to the Trojan http://securityresponse.symantec.com/security_response/writeup.jsp?docid=2004-021914-2822-99 --- In flexcoders@yahoogroups.com, Paul Andrews p...@... wrote: How did you find the trojan Cato - AVG reports nothing. What trojan is it? Paul - Original Message - From: Cato Paus ca...@... To: flexcoders@yahoogroups.com Sent: Monday, April 13, 2009 11:58 AM Subject: [flexcoders] Re: Flash speed test - please participate - only 1 click required ! DO NOT TEST THIS... Trojan Horse Detected on page! --- In flexcoders@yahoogroups.com, tom93438 tcs2201@ wrote: One other test that would also be useful: Please hit: http://flatim3000.appspot.com/?fps=24 Does the same as before, but tests for 24 fps. thanks tom --- In flexcoders@yahoogroups.com, tom s tcs2201@ wrote: Hi All, I'm doing some tests to see how 'fast' the Flash Player is in a variety of environments. Please click the link to take part: (you don't have to do anything other than click the link) http://flatim3000.appspot.com It's totally malware free. If you're interested, see below for details. Please hit it as many times as you like, from as many different environments as you can :) I'll share the results when I'm done. cheers tom details = The SWF: 1. attempts to set the frame rate to 1000 2. listens for enter_frame 10,000 times 3. records how long (2) takes 4. computes the actual FPS 5. send the data to a server, along with details on OS, Browser, FP version, IP Any suggestions/improvements - let me know... -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: Flex alternative to Microsoft's Seadragon
Here you have it for Flex Deep zoom :) http://openzoom.org/ --- In flexcoders@yahoogroups.com, Paul Andrews p...@... wrote: - Original Message - From: Hyder hyder_...@... To: flexcoders@yahoogroups.com Sent: Sunday, April 12, 2009 8:26 PM Subject: [flexcoders] Flex alternative to Microsoft's Seadragon Is it possible to do this flex? http://livelabs.com/seadragon/ As I understand it, seadragon is a client and server technology requiring extensive server support to do it's magic. I Suspect you could implement the client in Flex, but whether you could under the licence terms, is another matter. Paul
[flexcoders] Re: Flash player fails to install on vista!
There was no error, just a silent error. And when I went back to the page that requires the last version of flash player I get up again to installed --- In flexcoders@yahoogroups.com, Sam Lai samuel@... wrote: This just sounds like the tech support calls I get from customers. Given you're a developer, I expected better - What was the error message, how is it not installing? 2009/4/2 Cato Paus ca...@...: Hi all, this is veard, I have a clean install(Windows Vista Ultimate) on my laptop and IExploer do not want to install the flash player (ActiveX) ! switching to FireFox, up yours MS! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Flash player fails to install on vista!
Hi all, this is veard, I have a clean install(Windows Vista Ultimate) on my laptop and IExploer do not want to install the flash player (ActiveX) ! switching to FireFox, up yours MS!
[flexcoders] Re: How to clear cache for all major browsers (IE, Mozilla, Safari and Chrome)
Or just do this src, ${swf}?version=1.0, and increment it each time you crate a new build, I have filed a request to adobe about this issue https://bugs.adobe.com/jira/browse/FB-16764 go and vote for it :) --- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: The only reliable, cross platform/browser solution I have seen is to append a unique string to the swf url. Modify the index.template like this: AC_FL_RunContent( src, ${swf}?nocache=+(new Date()).getTime(), It does make that app slow to load every time. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of anuj181 Sent: Tuesday, March 17, 2009 7:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to clear cache for all major browsers (IE, Mozilla, Safari and Chrome) Hi Guys Anyone has any idea which is the best way to clear the cache for my web application (which is made in Flex and PHP), For some reason it keeps on pulling old entries from cache and is confusing user and me with the inconsistent results, I guess that it is pulling values from the cache as everything works fine when I manually clear the cache.I did little research and tried following tags in the index.template.html but somehow it is not working efficiently , Whats the best way to clear the cache for all the major browsers (IE, Mozilla, Safari and Chrome) for my web application? Anyone has any idea? Thanks in advance for your help, head meta http-equiv=Content-Type content=text/html; charset=utf-8 / meta http-equiv=Pragma content=no-cache / meta http-equiv=Expires content=-1 / /head
[flexcoders] Re: flex + mysql unicode support
one or another setting in mysql, you must specify the client input to unicode (UTF8) what flex have does not matters .. but if you use UTF8 in the SQL DB you should use UTF8 in Flex --- In flexcoders@yahoogroups.com, cvsikh sonofgurugobindsing...@... wrote: Hello all, I am displaying data from mySql database. This data some unicode text which I want to display in a datagrid in uncide. Is this possble? Thanks
[flexcoders] Re: Getting ByteArray.uncompress() to work in Flash - looking for an example text with compressed bytes
go here http://onrails.org/articles/2007/11/27/flash-utils-bytearray-compressing\ -4-1mb-to-20k http://onrails.org/articles/2007/11/27/flash-utils-bytearray-compressin\ g-4-1mb-to-20k --- In flexcoders@yahoogroups.com, David Adams dpad...@... wrote: I've been having no luck getting Flex to decompress some data I've compressed using a tool based on zlib. I've tried the same code using AIR where I can specify the compression method and the data *does* decompress correctly. Below is a bit of code to give the idea: public function onComplete(event:Event) : void{ var loader:URLLoader = URLLoader(event.target); //var info:String = loader.data; //trace(info); var ba:ByteArray = new ByteArray; ba = loader.data as ByteArray; ba.position = 0; // The next line of code fails with error #2058 every time using Flex. // Under AIR - you can get it to work by specifying the decompression method as DEFLATE. ba.uncompress(); // For the AIR application, the line above is // ba.uncompress(CompressionAlgorithm.DEFLATE); var bytes:String = bytes = ba.toString(); Alert.show(bytes.toString()); // AIR shows the original string, Flex never gets this far. } A couple of questions: * Does it matter what MIME type is set on the Web server for the content? If so, what MIME type is likely to work. * What decompression method exactly does the Flash player support? I've read deflate - which AIR seems to handle when I specify DEFLATE. * Perhaps there's something messed up in my compression data - would someone be willing to post some kind of 'hello world' in plain text and compressed form that is known to work with ByteArray.uncompress()? From there, I can experiment and see if I can tinker with my compression settings (or switch compression libraries) until I get a match. Thanks in advance for any help.
[flexcoders] TitleWindow and CloseButton
Wath I want help with is: are there a another way to do this, private function thisCreationComplete(event:FlexEvent):void {trace('OverWriteWarning::thisCreationComplete'); for(var i:int = 0; titleBar.numChildren i; i++){ if(titleBar.getChildAt(i) is Button) { var butt:Button = titleBar.getChildAt(i) as Button; butt.buttonMode = true; } } }
[flexcoders] Re: Gumbo / Flex 4 release date estimate?
How to handle the bugeting, we have the Upgrade Plan and Maintenance on Flex builder and LCDS it works greeat each year we pay Adobe a sum, and we always have the last software :) http://www.adobe.com/support/programs/customer/platinum.html --- In flexcoders@yahoogroups.com, Jason jason.merr...@... wrote: I know there is never an official announcement about release dates from Adobe until right before it happens... I have searched the archives because I know it was mentioned before, but anyone have a good idea/guess when Flexbuilder 4 will be released? Even just your best (somewhat informed) idea of what quarter of 2009 it will be? Budgeting for software for the year is always tough when it comes to stuff like this - we just want to know when to put money aside for this. Thanks! Jason Merrill
[flexcoders] Re: ToolTip stay until closed
Here is a Nice one :) http://www.adobe.com/devnet/flex/samples/fig_callout/ --- In flexcoders@yahoogroups.com, flexaustin flexaus...@... wrote: Is it possible to make a tooltip stay on until its closed? Maybe put an x in the top right corner or something. I don't see any properties that allow it to remain, guessing I will need to customize it? Maybe tooltip won't let you do this at all? TIA
[flexcoders] Alex Harui DataGrid and DTO question
Hi Alex is there somway to force the datagird to use the DTO getters and setters insted of columns ? ex: mx:DataGrid FileDTO /FileDTO /mx:DataGrid
[flexcoders] Re: Global variable
Flex treat images as global, if you ref it in one componet and a another componet, flex only use the one loaded first into memory. --- In flexcoders@yahoogroups.com, christophe_jacquelin christophe_jacque...@... wrote: Hello, How to declare a global variable (for several mxml files) that is a common image ? Thank you, Christophe,
[flexcoders] To Alex Harui
Hi can you please add your blog address to your email signature :)
[flexcoders] Re: Shared Objects And Modules
http://livedocs.adobe.com/flex/3/html/lsos_5.html --- In flexcoders@yahoogroups.com, thelordsince1984 lore...@... wrote: --- In flexcoders@yahoogroups.com, Marco Catunda marco.catunda@ wrote: Lorenzo, When the doc says the same domain it means that flash player should get module from the same URL domain for security reason. About shared objects, it is cool but has size limitation like cookies. You can save whatever you want... -- Marco Catunda On Mon, Feb 2, 2009 at 7:27 AM, thelordsince1984 loreboa@ wrote: Hi, i'm reading about shared objects...they are like html cookies but with improved performances...very cool!!but if i use modules can i always save the state of each modules? Infact i read that modules are used for the same domain..what domain means? that I can save the state for a single application (so a single swf files), is it true? thanks in advance Regards Lorenzo Thanks for the reply.. so is it possible to save a specific configuration with modules? suppose that i have a main application and here i have n modules (distinct swf files). then within modules i run my operations and finally when i closed the main application i would save the configuration for modules that i have modified.. At the succesive startup i would retrieve saved data. Is it possible to save the entire modules, so an entire complex object? or is possible to save only data, for example values properties? Do you know any example in the web? Thanks Again Regards Lorenzo
[flexcoders] Go and Vote for beter Flex builder! (Cache Buster)
https://bugs.adobe.com/jira/browse/FB-16764
[flexcoders] Re: Go and Vote for beter Flex builder! (Cache Buster)
Yes I know that but, I was thinking on making flex builder a better product for all and not only the hard core coders :) --- In flexcoders@yahoogroups.com, Ralf Bokelberg ralf.bokelb...@... wrote: I'm not sure if it is necessary to change FlexBuilder to do this. Have you tried a ant script running as a builder before your flex build. Cheers Ralf. On Tue, Jan 27, 2009 at 10:40 AM, Cato Paus ca...@... wrote: https://bugs.adobe.com/jira/browse/FB-16764
[flexcoders] Cache Buster, HTML Wrapper SOLVED
Hi all, I have ben poking around on this Cache issue, and did find out this: In some cases, the browser will not refresh your application properly, even if the cache has been emptied, which can be very frustrating. by adding a script which will add a random number on the end of a query string in the filename, fooling the browser into thinking we want to access a unique URL each and every time the HTML page is refreshed. The term cache buster is a bit of a misnomer, since you're not really bypassing the browser cache, as the SWF will still get cached upon each and every page refresh. It's just that the browser will always fetch the SWF from the server instead of using the one that it already has in its cache, thus solving the browser cache latency problem. changes in the index.template.html file is located in your project folder under html-template dir. alter this on line 72 if you are using the default settings in flex builder 3 and sdk 3.2: AC_FL_RunContent( src, ${swf}?nocache=+(new Date()).getTime(), remember to clean project!! Verify the query string has been added to the filename in the browser. If you are using Firefox as your browser, you can do this by selecting Tools Page Info Media tab.
[flexcoders] Re: services-config.xml question
--- In flexcoders@yahoogroups.com, tchredeemed apth...@... wrote: Basically, right now my setup looks like this: !-- SECURE -- !-- channel-definition id=rubyamf class=mx.messaging.channels.SecureAMFChannel -- !-- NOT SECURE -- channel-definition id=rubyamf class=mx.messaging.channels.AMFChannel !-- WWW -- !-- endpoint uri=https://www.gladhandle.com/rubyamf/gateway; class=flex.messaging.endpoints.SecureAMFEndpoint/ -- !-- endpoint uri=http://www.gladhandle.com:3000/rubyamf/gateway; class=flex.messaging.endpoints.AMFEndpoint/ -- !-- LOCAL -- try this: use bindings on the server, port and contextroot after that you have to hardcode! I think endpoint url=http://{server.name}:{server.port}/ {context.root}/gateway/http class=flex.messaging.endpoints.AMFEndpoint/ /channel-definition Obviously, that is not the best way. I have to recompile this with the correct channel-definition/endpoint uncommented depending on if I am running it locally (development), off our dev server (testing), or on www (live). What would be a better way to approach this?
[flexcoders] Re: Need some Help in implementing Log out functionality
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showDetails\ postId=5401productId=2loc=en_US http://www.adobe.com/cfusion/communityengine/index.cfm?event=showDetail\ spostId=5401productId=2loc=en_US on this link, you can get my, login and logout logic handled by a singleton, and warns the user, that he is about to be loged out automattically and last a popup you are logged out! --- In flexcoders@yahoogroups.com, anuj181 anuj...@... wrote: Hi I have implemented Log Out functionality in my App, All I did is that as soon as user clicks Log Out button, the code is going to reload the whole App which will automatically take the user to the login screen as login is the first screen in my flex App. Now My probelm is that I need some feedback to give to the user that he has been logged out. I am successfully in taking user to the login page but somehow could not figure out how will I show the feedback, The idea i came up is may be add string to the URL if user logs out and if the URL string matches the added string should display a label in the main login page showing You have successfully logged out, but my following code is not working. Is there any better way to do this or please let me know where things are being screwed up, For the time being I just put dummy alerts but they will be replaced with the actual Labels. All i need is the first time user logs in should just display the login screen but if user logs out he should be directed to the same login screen but with added label You have succesfully logged out Thanks Anuj //Logging Out of the App mx:Image id=_imgLogOut height={ImgHt} width={ImgWidth} x=941 y=96 click=_logOut(event); private function _logOut(event:MouseEvent):void { var selfLoad:URLRequest=new URLRequest(Application.application.url+?logout=true); navigateToURL(selfLoad,_self); } private function initApp():void { //Checkign if the User logged out and Displaying the message and relaoding the App var _DefaulturlString:String=Application.application.url; var _loggedOutURLString:String=_DefaulturlString+?logout=true; if(Application.application.navigateToURL(_loggedOutURLString)) { Alert.show(Logged Out); } else { Alert.show(First Time); }
[flexcoders] Re: swf caching
Hi Tracy, How can I do that ? --- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: You could modify the html wrapper to append a unique string to the swf url. Tracy From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Arulmurugan T Sent: Wednesday, October 22, 2008 2:10 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] swf caching It is a web application. I cannot force my client to clear the cache. Regards, You can catch up with me using the links below http://flex-arulmurugant.blogspot.com/ http://flex-arulmurugant.blogspot.com/ - Original Message - From: Guy Morton mailto:g...@... To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Sent: Wednesday, October 22, 2008 9:06 AM Subject: Re: [flexcoders] swf caching Look at your browser's caching settings and make sure it's not set to cache everything forever. IE is particularly annoying in this regard as it often defaults to using a cached item without even checking with the server to see if it has changed since it was cached. That said, you should get used to clearing your cache, as all browsers will sometimes cache things in a way you don't want it to. That's a fact of life in web development. Guy On 22/10/2008, at 1:41 PM, arulmurugan wrote: Hi, When ever I compile a proj/application the SWF I saw didn't reflect any of the changes I'd made. I need to clear the cache, history, cookies in the browser. How to over come this. Regards Arulmurugan
[flexcoders] Re: swf caching
Thanks :) --- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: Look at the generated wrapper code. Track the AC_FL_RunContent function into the AC_OETags.js file, You will see where the url to the swf is being built. Append a string to that, maybe using Date.getTime(). Be sure to save your changes to the html/js files so they are not lost if you change project settings. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Cato Paus Sent: Tuesday, January 13, 2009 4:07 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: swf caching Hi Tracy, How can I do that ? --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Tracy Spratt tspratt@ wrote: You could modify the html wrapper to append a unique string to the swf url. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com ] On Behalf Of Arulmurugan T Sent: Wednesday, October 22, 2008 2:10 AM To: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com Subject: Re: [flexcoders] swf caching It is a web application. I cannot force my client to clear the cache. Regards, You can catch up with me using the links below http://flex-arulmurugant.blogspot.com/ http://flex-arulmurugant.blogspot.com/ http://flex-arulmurugant.blogspot.com/ http://flex-arulmurugant.blogspot.com/ - Original Message - From: Guy Morton mailto:guy@ To: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Wednesday, October 22, 2008 9:06 AM Subject: Re: [flexcoders] swf caching Look at your browser's caching settings and make sure it's not set to cache everything forever. IE is particularly annoying in this regard as it often defaults to using a cached item without even checking with the server to see if it has changed since it was cached. That said, you should get used to clearing your cache, as all browsers will sometimes cache things in a way you don't want it to. That's a fact of life in web development. Guy On 22/10/2008, at 1:41 PM, arulmurugan wrote: Hi, When ever I compile a proj/application the SWF I saw didn't reflect any of the changes I'd made. I need to clear the cache, history, cookies in the browser. How to over come this. Regards Arulmurugan
[flexcoders] Re: Tree and array data
bind the isBranch = {yourobject.haschilderen} or create your own TreeDataDescriptor by implemnting the ITreeDataDescriptor interface --- In flexcoders@yahoogroups.com, Dan Vega danv...@... wrote: I don't think its just icon though is it? It needs to be a branch with an arrow next to it so that you can click on it to expand the folder. Thank You Dan Vega danv...@... http://www.danvega.org On Thu, Dec 18, 2008 at 2:43 PM, Fotis Chatzinikos fotis.chatzini...@... wrote: use iconFunction=yourFunction() where yourfunction checks your isLeaf variable and assigns a folder or leaf icon On Thu, Dec 18, 2008 at 9:07 PM, Dan Vega danv...@... wrote: but not every folder will be a branch, only those who have children. I can set the default leaf icon to a standar folder but I am stuck on how to treat branches using my example. -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@...,
[flexcoders] Re: File Explorer
Waht server are you using ? Java ? if so I can dig up an old project form flex2 --- In flexcoders@yahoogroups.com, Dan Vega danv...@... wrote: I am building a full featured file explorer and I am stuck on one part of the application. On the left hand side I will have a base root directory (root) and a listing of all directories that fall under it (no end). When you click on a folder they will show up in the datagrid to the right. My question is actually 2 parts. 1.) What approach should I take. Do I make one call to my server and build the entire folder structure, then return either and arraycollection or xmllistcollection or should I just grab the list of directories and show an arrow next to directories with sub directories indicating that there are sub directories. When you click on that folder make another call to the server to grab that sub directory list and so on. 2.) The second part of the question is i heard that If I am going to be updating this collection (deleting / adding / renaming directories) that I should be using an ArrayCollection. The question is when I have data like there is below, how do I break it down into parent/child nodes? Every example I have seen of the tree always uses xml as the data and in those examples its clear how to break down child / parent relationships. ** Any help on this how to move forward with this would be great help ** [0] (Object)#3 Attributes = DateLastModified = Sat Nov 1 13:21:02 GMT-0400 2008 Directory = H:\JRun4 hasDirs = 0 Mode = Name = bin Path = H:\JRun4\bin Size = 0 Type = Dir [1] (Object)#4 Attributes = DateLastModified = Fri Aug 3 21:55:23 GMT-0400 2007 Directory = H:\JRun4 hasDirs = 1 Mode = Name = docs Path = H:\JRun4\docs Size = 0 Type = Dir Thank You Dan Vega danv...@... http://www.danvega.org
[flexcoders] Re: File Explorer
I have emailed you the project, I see that you are using JRun4 --- In flexcoders@yahoogroups.com, Dan Vega danv...@... wrote: I am building a full featured file explorer and I am stuck on one part of the application. On the left hand side I will have a base root directory (root) and a listing of all directories that fall under it (no end). When you click on a folder they will show up in the datagrid to the right. My question is actually 2 parts. 1.) What approach should I take. Do I make one call to my server and build the entire folder structure, then return either and arraycollection or xmllistcollection or should I just grab the list of directories and show an arrow next to directories with sub directories indicating that there are sub directories. When you click on that folder make another call to the server to grab that sub directory list and so on. 2.) The second part of the question is i heard that If I am going to be updating this collection (deleting / adding / renaming directories) that I should be using an ArrayCollection. The question is when I have data like there is below, how do I break it down into parent/child nodes? Every example I have seen of the tree always uses xml as the data and in those examples its clear how to break down child / parent relationships. ** Any help on this how to move forward with this would be great help ** [0] (Object)#3 Attributes = DateLastModified = Sat Nov 1 13:21:02 GMT-0400 2008 Directory = H:\JRun4 hasDirs = 0 Mode = Name = bin Path = H:\JRun4\bin Size = 0 Type = Dir [1] (Object)#4 Attributes = DateLastModified = Fri Aug 3 21:55:23 GMT-0400 2007 Directory = H:\JRun4 hasDirs = 1 Mode = Name = docs Path = H:\JRun4\docs Size = 0 Type = Dir Thank You Dan Vega danv...@... http://www.danvega.org
[flexcoders] Re: Padding/spacing before the first line in a TextArea
Have you try this paddingTop: 0; paddingBottom: 0; paddingRight: 0; paddingLeft: 0; on TextArea? --- In flexcoders@yahoogroups.com, bjorn itrashm...@... wrote: Any ideas on where I might find more info about this? .. or people who might know more ... 2008/12/2 bjorn itrashm...@... There is some padding before the first line in a TextArea. Have a look at this image to see what I mean: http://i34.tinypic.com/4uz8s0.jpg I need to remove this, and the first solution that comes to mind is to find that value and position the TextArea.y = TextArea.y - [that value]. The padding before the first line seems to be equal (in most cases) to the font's descent, which I can get from getTextLineMetrics().descent. However, this is not true in all cases. In some cases, the padding is more. Anyone have suggestions? Bjørn -- http://www.juicability.com - flex blog http://www.nospoiler.com - link to youtube videos without the spoilers -- http://www.juicability.com - flex blog http://www.nospoiler.com - link to youtube videos without the spoilers
[flexcoders] Re: speed of the for each looping
The book ActionScript 3 Cookbook and ActionScript 3.0 Bible, talks about this issue, and your interesting disuions on this thread, have pointed me in the right way :) thanks .. By the way, my firm have the first build on a night watcher application, where we use Nokia NFC (RFID) to collect data and Flex for the Show :) and we are able to alter the data on the RFID tag with just Flex and no install of a third party application. The customer is very very happy. --- In flexcoders@yahoogroups.com, Cato Paus [EMAIL PROTECTED] wrote: Hi, all you experts :) I'm tying to speed up my application and I use a lot of exsample for (var i:int = 0; i 5; i++) { trace(i); } so is the for each looping faster ?
[flexcoders] Re: Socket and Pop3
http://www.bytearray.org/?p=27 --- In flexcoders@yahoogroups.com, quantum_ohm [EMAIL PROTECTED] wrote: Hi All ! I'm building a POP3 mail client in AIR, and can't figure out how to dispatch events (or where ) to send all the commands one after each other in a unique same shot. For now I have to send them individually like : USER then when I have the response PASS then STAT then RETR and so on... As the server needs to send a response before the AIR client can send another command. I think this is a kind of Synchronous/Asynchronous issue that I have some trouble to understand... is there any way to do that ? Thx for help :-)
[flexcoders] Re: Socket and Pop3
http://blog.emmanuelbonnet.com/2007/02/08/connexion-pop-par-socket- as3/ --- In flexcoders@yahoogroups.com, quantum_ohm [EMAIL PROTECTED] wrote: Thx for responding, but this info is about SMTP, not POP3. (I just want to retrieve mails) After lookin' at the code I found nothing which could solve my problem... :-( --- In flexcoders@yahoogroups.com, Cato Paus cato1@ wrote: http://www.bytearray.org/?p=27 --- In flexcoders@yahoogroups.com, quantum_ohm charly.antoine@ wrote: Hi All ! I'm building a POP3 mail client in AIR, and can't figure out how to dispatch events (or where ) to send all the commands one after each other in a unique same shot. For now I have to send them individually like : USER then when I have the response PASS then STAT then RETR and so on... As the server needs to send a response before the AIR client can send another command. I think this is a kind of Synchronous/Asynchronous issue that I have some trouble to understand... is there any way to do that ? Thx for help :-)
[flexcoders] Re: speed of the for each looping
if you need to get the i you can use the getItemIndex::ArrayCollection --- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Josh McDonald dznuts@ wrote: *nods* I find that it's often much easier to read when you use for..in and for each..in rather than regular for. And since you need to have a var current = list[i] or similar as the first line, If you only need an index to display, or it's 1-based as opposed to 0-based, using a for [each]..in and having the first inner line be ++idx will be easier to read than a bunch of statements within your loop that look like: var current = foo[i+1] or msg = you're at item # + (i + 1) The thing is, I nearly always find I need that i for something else other than just iterating, so even when I start out with a for each loop, about 80% of the time I wind up switching back so I have that i to get hold of. Since I know that this is quite likely to happen, I just cut to the chase and use the indexed loop. -Amy
[flexcoders] speed of the for each looping
Hi, all you experts :) I'm tying to speed up my application and I use a lot of exsample for (var i:int = 0; i 5; i++) { trace(i); } so is the for each looping faster ?
[flexcoders] Re: speed of the for each looping
Hi and thanks for your deep explanation :) and yes I run the profiler, and are doing some improvement here and there, the real question is how the for each is working. I have been browsing the internet and all the bibels on ActionScript 3, but did not found any good explanation on the matter. --- In flexcoders@yahoogroups.com, Maciek Sakrejda [EMAIL PROTECTED] wrote: If you're trying to speed up your application, you should use the profiler. Something like the difference between a manually indexed for loop and a for-each loop is almost certain to be trivial. If you don't have the profiler, run an ad-hoc perf test by doing something like // we need to construct something to iterate over: var iterations:int = 100; var arr:Array = []; for (var i:int = 0; i iterations; i++) arr.push(i); var dummy:int = 0; var forBeginning:Number = new Date().getTime(); for (var j:int = 0; j iterations; j++) { // we need to do something in the loop so the whole thing // is not just optimized out (not sure if FP does this, but // it can), but we don't want to use trace() since I/O is // relatively expensive compared to the cost of the loop itself dummy = arr[j]; } trace(for loop took + (new Date().getTime() - forBeginning) + milliseconds); var forEachBeginning:Number = new Date().getTime(); for each (var k:int in arr) { dummy = k; } trace(for-each loop took + (new Date().getTime() - forEachBeginning) + milliseconds); That should give you an idea of the difference (but run this many times and average it, and vary the order of the loops). Also, keep in mind that most of the time, you won't be iterating over a million items. Bottlenecks can occur in surprising places (though they're often found in common places too, like Container layout code). Don't try to optimize things that *seem like* they would be slow without actually confirming not only that they *are* slow, but that they are affecting the overall speed or responsiveness of your application. It makes no sense to make a 10x performance improvement in one part of your code that accounts for .01% of your application's CPU usage. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Cato Paus [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] speed of the for each looping Date: Tue, 09 Dec 2008 13:28:23 - Hi, all you experts :) I'm tying to speed up my application and I use a lot of exsample for (var i:int = 0; i 5; i++) { trace(i); } so is the for each looping faster ?
[flexcoders] Re: Multithreading Concept in Flex
Go and wote for Change :) http://bugs.adobe.com/jira/browse/FP-93 --- In flexcoders@yahoogroups.com, jitendra jain [EMAIL PROTECTED] wrote: Hi friends,      I read Alex's PseudoThread blog and it is quite useful information. My frustration starts with Flex consumer that receives 25-30 messages/Second. Depending on this messages i run some special effects like move , rotating etc. Everything is working fine. But my user can't input or open dialog etc when this effects and consumer is running. I tried with event priorities but it is not helping. Let me know your views. Welcome for your vital suggestions.  Thanks, with Regards, Jitendra Jain Connect with friends all over the world. Get Yahoo! India Messenger. Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/
[flexcoders] Re: The Online Flex Builder!
Found it at http://osflash.org/flexible :) --- In flexcoders@yahoogroups.com, Cato Paus [EMAIL PROTECTED] wrote: Hi all, I remeber taht someone did create a FlexBuilder in a flash-application, but I'cant remeber where, someone have the url ?
[flexcoders] Re: The Online Flex Builder!
yes I found it and got it working in Flex 3 :) --- In flexcoders@yahoogroups.com, ivo [EMAIL PROTECTED] wrote: This is probably what you are looking for http://flexible.riaforge.org/ but I have not been able to get it to work properly with Flex 3. From: Johannes Nel [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, November 25, 2008 2:23:16 AM Subject: Re: [flexcoders] The Online Flex Builder! this mailing list has been running for years, no where near the beginning of the archives :) On Mon, Nov 24, 2008 at 10:45 PM, Jim Hayes [EMAIL PROTECTED] com wrote: John Grden had one quite a while back, not seen any news on it for a while though. The name of it escapes me for now I'm afraid. try http://www.rockonfl ash.com, somewhere near the beginning of the archives I would think. -Original Message- From: [EMAIL PROTECTED] ups.com on behalf of Cato Paus Sent: Mon 24/11/2008 19:20 To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] The Online Flex Builder! Hi all, I remeber taht someone did create a FlexBuilder in a flash-application, but I'cant remeber where, someone have the url ? _ _ _ _ _ _ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. _ _ _ _ _ _ -- j:pn \\no comment
[flexcoders] The Online Flex Builder!
Hi all, I remeber taht someone did create a FlexBuilder in a flash-application, but I'cant remeber where, someone have the url ?
[flexcoders] Re: Flex: getting the current directory
Hi :) you can accsess the url like this var url:String = Application.application.url; take a look at About exchanging data with Flex applications in Flex Help. --- In flexcoders@yahoogroups.com, renzeullo [EMAIL PROTECTED] wrote: Hi guys, Quick question: Is there a way to get the current directory that a Flex application is currently running in? For example, if I'm running an app in C:\Documents and Settings\Administrator\Desktop\FlexApp\app.html, is there a way to retrieve C:\Documents and Settings\Administrator\Desktop\FlexApp ? Thanks in advance. Regards, Renz
[flexcoders] Re: Flex Book wish :)
Hi I have two action script books and thay are great, but to apply it to the flex framework is a another case :) --- In flexcoders@yahoogroups.com, Paul Andrews [EMAIL PROTECTED] wrote: Not exactly what you want, but worth a look: http://www.friendsofed.com/book.html?isbn=9781430210276 Actionscript design patterns: http://www.amazon.com/Advanced-ActionScript-3-Design-Patterns/dp/0321426568 , http://www.amazon.com/ActionScript-3-0-Design-Patterns-Programming/dp/0596528469 Paul - Original Message - From: Cato Paus [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, November 11, 2008 10:14 AM Subject: [flexcoders] Flex Book wish :) a wish book, which addresses the disign pattern and flex framework, that I had purchased on spot. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Flex Book wish :)
a wish book, which addresses the disign pattern and flex framework, that I had purchased on spot.
[flexcoders] Re: Around image in new flash text engine
I want to know too ! --- In flexcoders@yahoogroups.com, cenkhchuluun [EMAIL PROTECTED] wrote: Hello guys~ I'm planning to develop a rich text editor using flex. One big task is that make it possible to insert image within text content surrounded by texts, I mean inline image. As you know there's already inline image support in both flex3,4 (TextField, TextView), the problem is that the inserted images are not totally surrounded, the height of the line containing the image becomes the height of image. I'd really expecting the new text enginge will support that. So i wanna ask you guys if TCAL will support the that particular feature in meantime, or do i have to re-write whole document object model structure like buzzword.com. I only need to get a basic text processor on flex. Thanks Chuka
[flexcoders] Re: How to get image data and save it?
Hi i posted you a message on markflex2007 with some source code look at the flex project it reads bytes form the database. --- In flexcoders@yahoogroups.com, markflex2007 [EMAIL PROTECTED] wrote: Hi, I develop an AIR application. I use file browser to select a image file and I want to get the image data and save it to database so other people can see the image by reading the image data in database. I can not save the imageFile.url to database because other people do not have the image in their computer.I need save the real data of the image but I do not have a idea how to get it. Thanks Mark PS: The following is part of source code private function loadImage():void { var imagesFilter:FileFilter = new FileFilter(Images, *.jpg;*.gif;*.png); imageFile = new File(); imageFile.browseForOpen(Select an Image, [imagesFilter]); imageFile.addEventListener(Event.SELECT, imageSelected); } private function imageSelected(event:Event):void { imageHolder.source = imageFile.url; }
[flexcoders] Re: How to get image data and save it?
I have sent it to you on your [EMAIL PROTECTED] with all the source code.. or do you use a other email? --- In flexcoders@yahoogroups.com, markflex2007 [EMAIL PROTECTED] wrote: Hi, I develop an AIR application. I use file browser to select a image file and I want to get the image data and save it to database so other people can see the image by reading the image data in database. I can not save the imageFile.url to database because other people do not have the image in their computer.I need save the real data of the image but I do not have a idea how to get it. Thanks Mark PS: The following is part of source code private function loadImage():void { var imagesFilter:FileFilter = new FileFilter(Images, *.jpg;*.gif;*.png); imageFile = new File(); imageFile.browseForOpen(Select an Image, [imagesFilter]); imageFile.addEventListener(Event.SELECT, imageSelected); } private function imageSelected(event:Event):void { imageHolder.source = imageFile.url; }
[flexcoders] Re: How to get image data and save it?
I have sent you a copy of the source to at [EMAIL PROTECTED] --- In flexcoders@yahoogroups.com, Barry Gee [EMAIL PROTECTED] wrote: any chance of getting that code too? its a problem im trying to fgure out too. thanks Barry. Cato Paus wrote: I have sent it to you on your [EMAIL PROTECTED] mailto:markflex2007%40yahoo.com with all the source code.. or do you use a other email? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, markflex2007 markflex2007@ wrote: Hi, I develop an AIR application. I use file browser to select a image file and I want to get the image data and save it to database so other people can see the image by reading the image data in database. I can not save the imageFile.url to database because other people do not have the image in their computer.I need save the real data of the image but I do not have a idea how to get it. Thanks Mark PS: The following is part of source code private function loadImage():void { var imagesFilter:FileFilter = new FileFilter(Images, *.jpg;*.gif;*.png); imageFile = new File(); imageFile.browseForOpen(Select an Image, [imagesFilter]); imageFile.addEventListener(Event.SELECT, imageSelected); } private function imageSelected(event:Event):void { imageHolder.source = imageFile.url; }
[flexcoders] Re: Barcode Scanners and Flex
Hi Fidel, I wrote a litle app some weeks ago where I tested a RFID reader that emulate keyboard, here it is if you want it :) ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=intApp(event); mx:Script ![CDATA[ import mx.managers.FocusManager; import mx.events.FlexEvent; private function intApp(event:FlexEvent):void { this.rfidInput.addEventListener(FlexEvent.ENTER, onRFIDInput); } private function startRFIDRead(event:MouseEvent):void { rfidInput.text = ''; focusManager.setFocus(rfidInput); } private function onRFIDInput(event:FlexEvent):void { trace(event); focusManager.hideFocus(); focusManager.setFocus(readButtom); } ]] /mx:Script mx:TextInput id=rfidInput horizontalCenter=0 verticalCenter=0/ mx:Button id=readButtom label=les horizontalCenter=0 verticalCenter=30 click=startRFIDRead(event);/ /mx:Application --- In flexcoders@yahoogroups.com, Fidel Viegas [EMAIL PROTECTED] wrote: Hello all, I was wondering if anyone has tried reading a Barcode Scanner from Flash using either Flex or Flash CS. Since some Barcode Scanners emulate the keyboard, I thought that it should be possible to read it from Flash. Has anyone had any luck with that? And how did you go about doing it? Thanks in advance, Fidel.
[flexcoders] Re: Custom dataDescriptor and custom ICollectionView
Hi if You can use arrayCollection you can use this class just change the MainChapterListVO, SubChapterListVO to your Data Class waht I do here is I have a arraycollection called MainChapterListVO this holds data and a arraycollection named SubChapterListVO, the SubChapterListVO also holds data and a arrayColection to, whit files, these classes all have in commen a 'name' property so I can read it form the tree as label see botom for tre code.. package no.umbrellaCorp.customer.customerView.bp { import mx.collections.ICollectionView; import mx.controls.treeClasses.ITreeDataDescriptor; import no.umbrellaCorp.bp.MainChapterListVO; import no.umbrellaCorp.bp.SubChapterListVO; public class FileSystemBPTreeDataDescriptor implements ITreeDataDescriptor { public function getData(node:Object, model:Object=null):Object { return node; } public function hasChildren(node:Object, model:Object=null):Boolean { if(node is MainChapterListVO || node is SubChapterListVO){ return true; }else{ return false; } } public function addChildAt(parent:Object, newChild:Object, index:int, model:Object=null):Boolean { return false; } public function isBranch(node:Object, model:Object=null):Boolean { try { if (node is Object) { if (node.subColl.length 0) { return true; } } } catch (e:Error) { trace([Descriptor] exception checking for isBranch); } return false; //return !(node is FileNode) hasChildren(node); } public function removeChildAt(parent:Object, child:Object, index:int, model:Object=null):Boolean { //FileSystemBPTreeDataDescriptor(parent).Items.slice(index,index); return false; } public function getChildren(node:Object, model:Object=null):ICollectionView { if(node is MainChapterListVO){ return MainChapterListVO(node).subColl; }else{ return SubChapterListVO(node).subColl; } } } } mx:Tree mx:VBox label=Maler width=100% height=100% mx:Tree id=bpTree dataProvider={LicenseVOSingleton.instance.bpTreeColl} click=onBpTreeSelected(event); labelField=name dataDescriptor={new FileSystemBPTreeDataDescriptor()} iconField=fileType width=100% height=100% / /mx:VBox Cato --- In flexcoders@yahoogroups.com, franto [EMAIL PROTECTED] wrote: Hey all, it's long time I've posted something here :) But I can't find answer for my help, so I hope someone will help me here... I'm creating custom component which extends Tree. Structure must support different levels, but I cant use ArrayCollection or XMLListCollection. I think best way is write own ICollectionView class, because each item of this collection should be type of my class, let's call class Data(); So I've create class Data and create property call children:ICollectionView(for dataDescriptor getChildren) Now I want create dataProvider for my customcomponent in MXML model:MyModel id=myModel model:dataProvider data:Data name=Main Item importance=100 progress=0 level=0 data:Data name=Subitem 1 importance=33 progress=0 level=1/ data:Data name=Subitem 2 importance=33 progress=0 level=1/ data:Data name=Subitem 3 importance=34 progress=0 level=1/ /data:Goal /model:dataProvider /model:MyModel but this give me compile error: In initializer for 'children': multiple initializer values for target type mx.collections.ICollectionView. Does any know, how can I write this in MXML. Btw i have [DefaultProperty(children)] so when it was array, MXML works, but with ICollectionView do not. Or maybe if you have better idea how to implement such component based on Tree let me know. I appreciate links to some tutorials or resources. Thank you very much --
[flexcoders] Ecard Designer in Flex ? How to build one in Flex
Hi enyone have some code or links on the issue?
[flexcoders] Re: Help: filterFunction and Dates
Ah yes your rigth!, I only do it by old habit, just making sure :) I started with Flex 1.0 --- In flexcoders@yahoogroups.com, Maciek Sakrejda [EMAIL PROTECTED] wrote: My point is that it's not necessary to set the filterFunction to null. Filter functions are not composed (do not stack). Try your code with the following filterArrayColl: private function filterArrayColl():void { foo.filterFunction = fileterFunction; foo.refresh(); trace(foo); foo.filterFunction = fileterFunctionTwoe;; foo.refresh(); trace(foo); } It produces the exact same output, even though the filterFunction is not reset to null. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Cato Paus [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Help: filterFunction and Dates Date: Sun, 26 Oct 2008 09:13:42 - Hi I'm not sure where you want to go with this sample code, but here is the flex builder code ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.utils.ObjectUtil; import mx.collections.ArrayCollection; private var foo:ArrayCollection = new ArrayCollection([1,2,3,4]); private function fileterFunction(item:Object):Boolean { //trace(ObjectUtil.toString(item)); var test:Boolean; if(int(item) %2 ==1){ test = true; }else{ test = false; } return test; } private function fileterFunctionTwoe(item:Object):Boolean { var test:Boolean; if(int(item) %2 ==0){ test = true; }else{ test = false; } return test; } private function filterArrayColl():void { foo.filterFunction = null; foo.refresh(); foo.filterFunction = fileterFunction; foo.refresh(); trace(foo); foo.filterFunction = null; foo.refresh(); foo.filterFunction = fileterFunctionTwoe;; foo.refresh(); trace(foo); } ]] /mx:Script mx:Button click=filterArrayColl(); / /mx:Application --- In flexcoders@yahoogroups.com, Maciek Sakrejda msakrejda@ wrote: //Allways set to null first else you get filter inside the filter! myArrayCollection.filterFunction=null; Cato, Can you give an example of this? I tried the following and var foo:ArrayCollection = new ArrayCollection([1,2,3,4]); trace(foo); foo.filterFunction = function(num:int):Boolean { return num % 2 == 1; }; foo.refresh(); trace(foo); foo.filterFunction = function(num:int):Boolean { return num % 2 == 0; }; foo.refresh(); trace(foo); foo.filterFunction = null; foo.refresh(); trace(foo); --- produces --- 1,2,3,4 (Array)#0 [0] 1 [1] 3 (Array)#0 [0] 2 [1] 4 1,2,3,4 I don't think ListCollectionView composes filterFunctions. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Cato Paus cato1@ Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Help: filterFunction and Dates Date: Thu, 23 Oct 2008 17:02:27 - Hi if you use java as backend do you serilaze the object ? if so you can map the date objec to the date object in actionscript and back.. here is a datefilter connetced to a arraycollection. public function chkToDay():void { //Allways set to null first else you get filter inside the filter! myArrayCollection.filterFunction=null; myArrayCollection.refresh(); myArrayCollection.filterFunction=toDayDateFilterFunc; /* Refresh the collection view to apply the filter. */ myArrayCollection.refresh(); } and the filter function private function toDayDateFilterFunc(item:Object):Boolean { var toDay:Date = new Date(); //item.date is if you have a public var named date in your DTO(Data Transfer Object) return item.date== toDay; } Cato --- In flexcoders@yahoogroups.com, cox.blair blair.cox@ wrote: Hi everyone, With the help of another poster I was pointed in the correct direction to solve a problem I have: The two links were helpful: http://livedocs.adobe.com/flex/3/html/help.html?content=controls_12.html http://blog.flexexamples.com/2008/03/12/using-a-combobox-to-filter-items \ -in-a-datagrid-in-flex/ Based on the above information, I was able to accomplish all my tasks, except being able to sort dates. Problem #1 - How to format the date so that it displays as 2008-10-01. I have it all the way up to 2008-10-1. Apparently the 'day' is represented as a single digit. That won't work - using a MySQL db. Problem #2 - I am apparently lacking in my knowledge of ActionScript to correctly write the proper script to filter the date. What I can't seem to figure out is the correct syntax for working with dates, or perhaps simply a string or number containing - dashes? Sorry, I'm not providing code you to ponder over, I
[flexcoders] Re: Help: filterFunction and Dates
http://www.devshed.com/c/a/PHP/The-Basics-of-Serializing-Objects-in-PHP/ --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: See how messy this gets; when dates are represented as strings. Look into AMFPHP serialization/deserialization. If you get back a date, instead of a sting, you don't have to jump through these hoops. I only say this because the amount of time it takes to setup the integration is sometimes less than the time it takes to hack the application into submission. :) Glad that you have a working solution. -TH --- In flexcoders@yahoogroups.com, Blair Cox blair.cox@ wrote: Many thanks Tim! I dropped the DateField component and tried a simple text box, plus your suggestion and it works. So even though the database table field is defined as a Date, the AMFPHP is bringing it in as a string. The key part to this was .toString() Okay, so now back to an original dilemma. When using the DateField component, I get a full UTC date output. I¹ve been able to use labelFunction and DateFormatter and a couple others to get close to the required format of -MM-DD, but what I end up with is -MM-D, because apparently 1 through 9 are not represented with a leading zero (01, 02, etc) If I cannot match the string in the db, it won¹t work, correct? Any hints on this? -- Blair From: Tim Hoff TimHoff@ Reply-To: flexcoders@yahoogroups.com Date: Fri, 24 Oct 2008 17:58:19 - To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Help: filterFunction and Dates Ideally, in the result function, the dto would be cast to an associated AS class as a VO; making it strongly typed. This can be done automatically by using [RemoteClass(alias=com.myDTO)] in a VO class; but that's a more involved topic. So, let's take this one step at a time. What is the data type of item.Date_Collected? You can find this by inspecting the the object in debug mode. If it's a string, try this in your filter function: return item.Date_Collected == dfconv.format(wholeDate.selectedDate).toString(); The key is to compare apples to apples. If one side is an apple and the other is an orange, you have to turn the orange into an apple before comparing. -TH
[flexcoders] Re: Help: filterFunction and Dates
Hi I'm not sure where you want to go with this sample code, but here is the flex builder code ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.utils.ObjectUtil; import mx.collections.ArrayCollection; private var foo:ArrayCollection = new ArrayCollection([1,2,3,4]); private function fileterFunction(item:Object):Boolean { //trace(ObjectUtil.toString(item)); var test:Boolean; if(int(item) %2 ==1){ test = true; }else{ test = false; } return test; } private function fileterFunctionTwoe(item:Object):Boolean { var test:Boolean; if(int(item) %2 ==0){ test = true; }else{ test = false; } return test; } private function filterArrayColl():void { foo.filterFunction = null; foo.refresh(); foo.filterFunction = fileterFunction; foo.refresh(); trace(foo); foo.filterFunction = null; foo.refresh(); foo.filterFunction = fileterFunctionTwoe;; foo.refresh(); trace(foo); } ]] /mx:Script mx:Button click=filterArrayColl(); / /mx:Application --- In flexcoders@yahoogroups.com, Maciek Sakrejda [EMAIL PROTECTED] wrote: //Allways set to null first else you get filter inside the filter! myArrayCollection.filterFunction=null; Cato, Can you give an example of this? I tried the following and var foo:ArrayCollection = new ArrayCollection([1,2,3,4]); trace(foo); foo.filterFunction = function(num:int):Boolean { return num % 2 == 1; }; foo.refresh(); trace(foo); foo.filterFunction = function(num:int):Boolean { return num % 2 == 0; }; foo.refresh(); trace(foo); foo.filterFunction = null; foo.refresh(); trace(foo); --- produces --- 1,2,3,4 (Array)#0 [0] 1 [1] 3 (Array)#0 [0] 2 [1] 4 1,2,3,4 I don't think ListCollectionView composes filterFunctions. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Cato Paus [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Help: filterFunction and Dates Date: Thu, 23 Oct 2008 17:02:27 - Hi if you use java as backend do you serilaze the object ? if so you can map the date objec to the date object in actionscript and back.. here is a datefilter connetced to a arraycollection. public function chkToDay():void { //Allways set to null first else you get filter inside the filter! myArrayCollection.filterFunction=null; myArrayCollection.refresh(); myArrayCollection.filterFunction=toDayDateFilterFunc; /* Refresh the collection view to apply the filter. */ myArrayCollection.refresh(); } and the filter function private function toDayDateFilterFunc(item:Object):Boolean { var toDay:Date = new Date(); //item.date is if you have a public var named date in your DTO(Data Transfer Object) return item.date== toDay; } Cato --- In flexcoders@yahoogroups.com, cox.blair blair.cox@ wrote: Hi everyone, With the help of another poster I was pointed in the correct direction to solve a problem I have: The two links were helpful: http://livedocs.adobe.com/flex/3/html/help.html?content=controls_12.html http://blog.flexexamples.com/2008/03/12/using-a-combobox-to-filter-items \ -in-a-datagrid-in-flex/ Based on the above information, I was able to accomplish all my tasks, except being able to sort dates. Problem #1 - How to format the date so that it displays as 2008-10-01. I have it all the way up to 2008-10-1. Apparently the 'day' is represented as a single digit
[flexcoders] Re: Refresh Screen Counter
Hi mister look at this http://tech.groups.yahoo.com/group/flexcoders/message/124722 http://tech.groups.yahoo.com/group/flexcoders/message/124722 --- In flexcoders@yahoogroups.com, itdanny2002 [EMAIL PROTECTED] wrote: I have below sample code which display the result of counter. How can I display the progress by using some screen refresh function ? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ private function Counter():void{ for (var i:int;i 40;i++){ counter.text = i.toString(); } } ]] /mx:Script mx:Button x=37 y=36 label=Button click=Counter();/ mx:Label id=counter x=37 y=10 text=Label/ /mx:Application
[flexcoders] Re: Help: filterFunction and Dates
Hi I'm not sure what you want to do with this sample you sent me, I have typed it into flex builder, here is the code, run debug on it ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.utils.ObjectUtil; import mx.collections.ArrayCollection; private var foo:ArrayCollection = new ArrayCollection([1,2,3,4]); private function fileterFunction(item:Object):Boolean { //trace(ObjectUtil.toString(item)); var test:Boolean; if(int(item) %2 ==1){ test = true; }else{ test = false; } return test; } private function fileterFunctionTwoe(item:Object):Boolean { var test:Boolean; if(int(item) %2 ==0){ test = true; }else{ test = false; } return test; } private function filterArrayColl():void { foo.filterFunction = null; foo.refresh(); foo.filterFunction = fileterFunction; foo.refresh(); trace(foo); foo.filterFunction = null; foo.refresh(); foo.filterFunction = fileterFunctionTwoe;; foo.refresh(); trace(foo); } ]] /mx:Script mx:Button click=filterArrayColl(); / /mx:Application --- In flexcoders@yahoogroups.com, Maciek Sakrejda [EMAIL PROTECTED] wrote: //Allways set to null first else you get filter inside the filter! myArrayCollection.filterFunction=null; Cato, Can you give an example of this? I tried the following and var foo:ArrayCollection = new ArrayCollection([1,2,3,4]); trace(foo); foo.filterFunction = function(num:int):Boolean { return num % 2 == 1; }; foo.refresh(); trace(foo); foo.filterFunction = function(num:int):Boolean { return num % 2 == 0; }; foo.refresh(); trace(foo); foo.filterFunction = null; foo.refresh(); trace(foo); --- produces --- 1,2,3,4 (Array)#0 [0] 1 [1] 3 (Array)#0 [0] 2 [1] 4 1,2,3,4 I don't think ListCollectionView composes filterFunctions. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Cato Paus [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Help: filterFunction and Dates Date: Thu, 23 Oct 2008 17:02:27 - Hi if you use java as backend do you serilaze the object ? if so you can map the date objec to the date object in actionscript and back.. here is a datefilter connetced to a arraycollection. public function chkToDay():void { //Allways set to null first else you get filter inside the filter! myArrayCollection.filterFunction=null; myArrayCollection.refresh(); myArrayCollection.filterFunction=toDayDateFilterFunc; /* Refresh the collection view to apply the filter. */ myArrayCollection.refresh(); } and the filter function private function toDayDateFilterFunc(item:Object):Boolean { var toDay:Date = new Date(); //item.date is if you have a public var named date in your DTO(Data Transfer Object) return item.date== toDay; } Cato --- In flexcoders@yahoogroups.com, cox.blair blair.cox@ wrote: Hi everyone, With the help of another poster I was pointed in the correct direction to solve a problem I have: The two links were helpful: http://livedocs.adobe.com/flex/3/html/help.html?content=controls_12.html http://blog.flexexamples.com/2008/03/12/using-a-combobox-to-filter-items \ -in-a-datagrid-in-flex/ Based on the above information, I was able to accomplish all my tasks, except being able to sort dates. Problem #1 - How to format the date so that it displays as 2008-10-01. I have it all the way up to 2008-10-1. Apparently the 'day' is represented as a single digit. That won't work - using a MySQL db. Problem #2 - I am apparently lacking in my knowledge of ActionScript to correctly write the proper script to filter the date. What I can't seem to figure out is the correct syntax for working with dates, or perhaps simply a string or number containing - dashes? Sorry, I'm not providing code you to ponder over, I really only need a reference to start with so I can learn as I go. I've been searching but have not been able to locate a reference which deals with sorting dates? Thanks,
[flexcoders] Re: Help: filterFunction and Dates
Hi if you use java as backend do you serilaze the object ? if so you can map the date objec to the date object in actionscript and back.. here is a datefilter connetced to a arraycollection. public function chkToDay():void { //Allways set to null first else you get filter inside the filter! myArrayCollection.filterFunction=null; myArrayCollection.refresh(); myArrayCollection.filterFunction=toDayDateFilterFunc; /* Refresh the collection view to apply the filter. */ myArrayCollection.refresh(); } and the filter function private function toDayDateFilterFunc(item:Object):Boolean { var toDay:Date = new Date(); //item.date is if you have a public var named date in your DTO(Data Transfer Object) return item.date== toDay; } Cato --- In flexcoders@yahoogroups.com, cox.blair [EMAIL PROTECTED] wrote: Hi everyone, With the help of another poster I was pointed in the correct direction to solve a problem I have: The two links were helpful: http://livedocs.adobe.com/flex/3/html/help.html?content=controls_12.html http://blog.flexexamples.com/2008/03/12/using-a-combobox-to-filter-items\ -in-a-datagrid-in-flex/ Based on the above information, I was able to accomplish all my tasks, except being able to sort dates. Problem #1 - How to format the date so that it displays as 2008-10-01. I have it all the way up to 2008-10-1. Apparently the 'day' is represented as a single digit. That won't work - using a MySQL db. Problem #2 - I am apparently lacking in my knowledge of ActionScript to correctly write the proper script to filter the date. What I can't seem to figure out is the correct syntax for working with dates, or perhaps simply a string or number containing - dashes? Sorry, I'm not providing code you to ponder over, I really only need a reference to start with so I can learn as I go. I've been searching but have not been able to locate a reference which deals with sorting dates? Thanks,
[flexcoders] Re: Help: filterFunction and Dates
it will work becouse the datefield returns a Date variable :) the formating is just for view it do't change the dateobject ;) --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Something like this: private function processFilter(item:Object):Boolean { return (item.Date_Collected) == wholeDate.selectedDate; } mx:DateField id=wholeDate formatString=-MM-DD/ -TH --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: So, you're converting a String to a Number and comparing that to a Date? Does that work? If not, perhaps using a DateField instead would work better; so that you'e comparing apples to apples. If it works though, nevermind. :) -TH --- In flexcoders@yahoogroups.com, Blair Cox blair.cox@ wrote: Hmm, okay, now I¹m confused. So this is the working end of my code, totally borrowed from http://blog.flexexamples.com. private function processFilter(item:Object):Boolean { return (item.Date_Collected) == Number(wholeDate.text); } ?? -- Blair From: Tim Hoff TimHoff@ Reply-To: flexcoders@yahoogroups.com Date: Thu, 23 Oct 2008 17:25:41 - To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Help: filterFunction and Dates Hey Blair, For dates, it's important that you use the Date() data type. Some use strings instead. Since you're using AMF, using strongly typed date objects for the VO's is the cleanest way. The reason that I say to use Date(), is because that the Date.time property is stored as the number of milliseconds since 1970, IIRC. Because it' numeric, you can easily perform sorts. For formatting, you can use a dateFormatter with -mm-dd as the formatString. This leaves the underlying date alone, but displays it in whatever format that is specified. -TH --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Blair Cox blair.cox@ wrote: Hi Cato, Thanks for the hint. I¹m using amfPHP and RemoteObject, I¹ll assume it does the same thing. I¹ll use this as a starting point, cheers! -- Blair From: Cato Paus cato1@ Reply-To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Date: Thu, 23 Oct 2008 17:02:27 - To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Help: filterFunction and Dates Hi if you use java as backend do you serilaze the object ? if so you can map the date objec to the date object in actionscript and back.. here is a datefilter connetced to a arraycollection. public function chkToDay():void { //Allways set to null first else you get filter inside the filter! myArrayCollection.filterFunction=null; myArrayCollection.refresh(); myArrayCollection.filterFunction=toDayDateFilterFunc; /* Refresh the collection view to apply the filter. */ myArrayCollection.refresh(); } and the filter function private function toDayDateFilterFunc(item:Object):Boolean { var toDay:Date = new Date(); //item.date is if you have a public var named date in your DTO(Data Transfer Object) return item.date== toDay; } Cato --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , cox.blair blair.cox@ wrote: Hi everyone, With the help of another poster I was pointed in the correct direction to solve a problem I have: The two links were helpful: http://livedocs.adobe.com/flex/3/html/help.html?content=controls_12.html http://blog.flexexamples.com/2008/03/12/using-a-combobox-to-filter-items\ \ \ \ http://blog.flexexamples.com/2008/03/12/using-a-combobox-to-filter-item\ \ s -in-a-datagrid-in-flex/ http://blog.flexexamples.com/2008/03/12/using-a-combobox-to-filter-item\ \ \ s-in http://blog.flexexamples.com/2008/03/12/using-a-combobox-to-filter-item\ \ s-in -a-datagrid-in-flex/ Based on the above information, I was able to accomplish all my tasks, except being able to sort dates. Problem #1 - How to format the date so that it displays as 2008-10-01. I have it all the way up to 2008-10-1. Apparently the 'day' is represented as a single digit. That won't work - using a MySQL db. Problem #2 - I am apparently lacking in my knowledge of ActionScript to correctly write the proper script to filter the date. What I can't seem to figure out is the correct syntax for working with dates, or perhaps simply a string or number containing - dashes? Sorry, I'm not providing code you to ponder over, I really only need a reference to start with so I can learn as I go
[flexcoders] Re: my boss wants the impossible.. or is it?
http://www.onflex.org/ted/2006/07/flex-2-preloaders-swf-png-gif-examples.php --- In flexcoders@yahoogroups.com, al-al :D [EMAIL PROTECTED] wrote: Hi guys, I have a weird question. Is there a way to change, modify or remove the application loading component everytime a Flex program starts? In every example I've seen throughout the internet, the loading component is always there. Any thoughts? Thanks for reading this :D Have a good day. Alvin
[flexcoders] Custom DataGrid and Custom itemRenderer and Custom Event
Here is my code from the TaskDG that extends Datagrid, waht I want is to lisen for the event from the custom itemRenderer added to the column with ClassFactory! switch (filterState) { case 0: this.columns = new Array(); column = new DataGridColumn(active); column.headerText = Active; column.itemRenderer = new ClassFactory(TaskActive); // add listner where Alex?? column.width = 50; column.sortable = false; dgCol.push(column); column = new DataGridColumn(startDateTime); column.headerText = Forfallsdato; column.itemRenderer = new ClassFactory(ItemDateFormat); dgCol.push(column); this.columns = dgCol; fadeIn.target = this; fadeIn.play(); break;
[flexcoders] Show progress while using for()
Hi all :) I have a text file that i put into flex. I do some parising on the data, I use the for() logic, but I would like to show/use the prgressBar (i,fileData.length) but it seems the for() have to complete! and then all the data just comes in one big bang!
[flexcoders] Re: Show progress while using for()
--- In flexcoders@yahoogroups.com, Cato Paus [EMAIL PROTECTED] wrote: Hi all :) I have a text file that i put into flex. I do some parising on the data, I use the for() logic, but I would like to show/use the prgressBar (i,fileData.length) but it seems the for() have to complete! and then all the data just comes in one big bang! I have tested the callLater and the timer,but then it realy gets slow!! :)
[flexcoders] Re: Dynamic destination of remote object?
channel = new AMFChannel('my-amf', 'http://{server.name}: {server.port}/flex/messagebroker/amf'); in your as file. --- In flexcoders@yahoogroups.com, xmwang1982 [EMAIL PROTECTED] wrote: Hi, So far as I know all destinations of remote object must be defined in remote-cofig.xml. Can we do it by programming? If we could set destination properties in code, it is much more flexible. Anybody knows how to do that? Here is my code for dynamic channel setting: var ro:RemoteObject = new RemoteObject(); var cs:ChannelSet = new ChannelSet(); var wfc:Channel = new AMFChannel(workflow- secure-channel, https://localhost:8443/Granite/messagebroker/amfsecure;); cs.addChannel(wfc); ro.channelSet = cs; ro.destination = WorkFlowServiceDemo; ro.addEventListener(ResultEvent.RESULT, onResult); ro.addEventListener(FaultEvent.FAULT, onFault); ro.add(v1.text, v2.text);
[flexcoders] Double post from FlexCoders?
I get two copy's from all post in my mail, someone else ?
[flexcoders] Re: Double post from FlexCoders?
Jup you'r Outlook did run the rule twise! :) --- In flexcoders@yahoogroups.com, Cato Paus [EMAIL PROTECTED] wrote: I get two copy's from all post in my mail, someone else ?
[flexcoders] Re: Hslider scrubber won't work with some flv files
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails\ postId=1921productId=2 http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetail\ spostId=1921productId=2 --- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: http://reenie.org/test/ScrubTest3/ScrubTest.html This flex application has a video which plays an flv file, but the scrubber, built with an HSlider, does not work. It does work with other flv files, so what is it about this particular file that the scrubber doesn't like? Any idea what the problem is ?
[flexcoders] Re: I do not like flex 3 any more!!!!
Hehe totally agree with you, I'm realy look forward to Flex4 and FlashPlayer10 --- In flexcoders@yahoogroups.com, hworke [EMAIL PROTECTED] wrote: See this presentation by Ely. You will know why: http://tv.adobe.com/#v=http%3A//adobe.edgeboss.net/flash/adobe/adobetvpr\ od/adc_presents/64_adc_018.flv%3Frss_feedid%3D1216%26xmlvers%3D2
[flexcoders] Re: Flex Dashboard
Hi In this project of your, do you store the module as byte in the db ? --- In flexcoders@yahoogroups.com, gjessup1 [EMAIL PROTECTED] wrote: Added a code project for those interested http://code.google.com/p/flex-dashboard/ --- In flexcoders@yahoogroups.com, gjessup1 gregjessup@ wrote: Hey all, I have been watching this group for a while and figured many of you could benefit from a project I started called the Flex Dashboard. The google group is http://groups.google.com/group/flex-dashboard Its basically a database driven module loader. It is currently using MSSQL Server as the DB, but the table script is available online, so could easily be changed to use the DB of your choice. Its a work in progress, but getting a community involved usually helps a project grow much faster. I am using Weborb to invoke the DB calls using C#. This could be changed. Would like to see it become very dynamic over time. Please head over and have a look. Looking to create a community that can make this a great product everyone can use. http://groups.google.com/group/flex-dashboard
[flexcoders] Re: Flash USB-API :)
hm yes, we need to vote for it, I have filed a fr so go and vote https://bugs.adobe.com/jira/browse/FP-247 I suspect that we will have it, probably something that wil come a long with the OpenScreen Project. So we dont have to start writing code to PS3, WII and so on! Just a thought :) --- In flexcoders@yahoogroups.com, Rick Winscot [EMAIL PROTECTED] wrote: Then use Merapi - if it is important to you. but just because it is important to you doesn't mean that the development cost is justifiable. If this isn't the 'solution' that you hope for. make a case - submit it as a feature request to Adobe and try to garner some support for the feature. R From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dorkie dork from dorktown Sent: Saturday, July 19, 2008 7:10 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flash USB-API :) @Rick - That doesn't really help solve the problem. And because it doesn't exist or it would be difficult isn't a reason for not including it. People still have applications that need to be built that include this support. dorkie a little bit late to the conversation dork from dorktown On Tue, May 27, 2008 at 9:31 PM, Rick Winscot [EMAIL PROTECTED] wrote: Before we go too much further with this - it would be beneficial to recognize that there is no such thing as a Generic USB Protocol that will give everyone blanket communications with usb devices. every device has a specific implementation that would have to be 'handled' in Flex/AIR similar to what Adobe has done with web-cams. They could use HID (Human Interface Device) I suppose but that is what the mouse/keyboard is for! If you need something very specific like joystick control in your app - you have more than enough (a wealth of) tools at your disposal to make it happen. Have you considered joystick emulation? NTPAD http://www.ntpad.com.ar/index.php?page=downloadseng.php http://www.ntpad.com.ar/index.php?page=downloadseng.phplang=eng lang=eng JoyEmu (personal fav) http://members.tripod.com/~szanella/joyemueng.htm http://members.tripod.com/%7Eszanella/joyemueng.htm JoyToKey http://www.electracode.com/4/joy2key/JoyToKey%20English% 20Version.htm Rick Winscot From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Cosma Sent: Tuesday, May 27, 2008 3:47 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flash USB-API :) Why don't you use a signed java applet? You could simply load it in the wrapper html file (with size set to 0, if you don't want that java swing stuff in your UI), and then interact with it using the flex ExternalInterface and applet's NSObject. I use this solution to allow direct TWAIN image scanning in my Flex application. The only problem with it is that the ExternalInterface doesn't seem very reliable for exchanging more than small simple variables - very long strings and binary data seems to cause troubles. Here is an interesting blog post on this topic: http://tobiaspatton.wordpress.com/2007/08/29/using-a-signed-java- applet-as-a -flex-helper-part-1/ Bye Cosma --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Cato Paus cato1@ wrote: Hi I know abouth the MerApi http://www.merapiproject.net/index.php, but My use-case is: I'm developing a TV-FlexApplication for a cutsomer that wants to use a tv remote controller to change the channels that I'm stremaing form satelitte or cabel. The point of using Flex/flash is that I have all under my controll (The app) and the customer will allvays have the last build of the app. To day flash player have connection to several USB devises, USB Camare and microphone!! Why not extend this a litle more :) --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Rick Winscot rick.winscot@ wrote: There is an obvious solution: Flex/AIR - Web Services (or similar) - USB ... but _direct_ communication with USB? I'm stumped as to why you would even need something like this. What is your use case? Rick Winscot From: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com ] On Behalf Of Cato Paus Sent: Friday, May 23, 2008 9:35 AM To: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com Subject: [flexcoders] Re: Flash USB-API :) Hehe Totaly Agree with you on Joe Random, but I put my trust on Adobe to find a solution :) --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com mailto:flexcoders% mailto:flexcoders%25 40yahoogroups.com , Tom Chiverton tom.chiverton@ wrote: On Thursday 22 May 2008, Cato Paus wrote: I realy hope we can have USB communication in AIR
[flexcoders] Re: convert the file selected to upload to byteArray
read about it here, flash Player 10 supports local file load and save. http://labs.adobe.com/technologies/flashplayer10/ --- In flexcoders@yahoogroups.com, Dan Blackman [EMAIL PROTECTED] wrote: LlggG Sent from my Verizon Wireless BlackBerry -Original Message- From: sudesh_666 [EMAIL PROTECTED] Date: Tue, 01 Jul 2008 05:01:05 To: flexcoders@yahoogroups.com Subject: [flexcoders] convert the file selected to upload to byteArray Hi I have a problem with file upload. The problem is that I have no permission in the server to store the files which has to be uploaded. so I have to store the file directly in the data base in binary format. Is there any way to convert the selected file to a byteArray ? and later to display the same. note: File can be of any type.
[flexcoders] Re: Digital Camera Control in Flex?
Flash 10 will have access to local files :) We voted and we got it :) --- In flexcoders@yahoogroups.com, nathanpdaniel [EMAIL PROTECTED] wrote: You should check out the VideoDisplay component for starters. If you want to do that with a Flex based web app, look into Networking and Communication because you'll have to save the image from the camera, upload it to a server, then download it. Flash 9 doesn't have access to the local file system. But I hear Flash 10 will (not sure if that's true or not though). -Nate --- In flexcoders@yahoogroups.com, Dan Pride danielpride@ wrote: I would like to issue commands to a locally connected digital camera and retrieve the image file, rename it and store it locally. Any pointers on where to go to figure this out? Thanks Dan Pride
RE: [flexcoders] Datagrid Password Column?
Do this on the textInput borderStyle=none alpha=0.0 -Opprinnelig melding- Fra: [EMAIL PROTECTED] .com [mailto:[EMAIL PROTECTED] ps.yahoo.com] Sendt: 11. juni 2008 08:31 Emne: RE: [flexcoders] Datagrid Password Column? A TextInput just contains a TextField and draws border and background around it. DGIR extends TextField. If you're ok with popup editors, I' d extends both DGIR as the renderer and TextInput as the editor. If you really need TextInput as the renderer, try setting backgroundColor=. I'm not sure I understand what was wrong about backgroundAlpha=0 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Falling Sent: Tuesday, June 10, 2008 10:04 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Datagrid Password Column? I'm trying to make an editable password column in a datagrid that displays asterisks instead of the characters of the string that it's displaying. Simply using a TextInput with displayAsPassword does exactly this, but when the row is selected (whether the password field is selected or not), the password field has a solid white background. This looks inconsistent compared to other editable column fields, so I'm hoping someone has a trick to fix this. As Tracy suggested, I can make it's background alpha 0, but then it doesn't look right when it's selected. This may seem petty, but it looks wrong. I can always create an item renderer that emulates the TextInput's displayAsPassword property, but I'm so close now, and was hoping there's a trick I'm missing to get this working. On Tue, Jun 10, 2008 at 11:56 PM, Alex Harui [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Maybe I don't understand what you want. Do you want rendererIsEditor or do you want an editor to popup over the cell? My first instinct would be to have an editor popup over the cell so rendererIsEditor=false, and I subclass DGIR as the column renderer, and supply a custom TextInput as the editor with displayAsPassword=false. From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Dennis Falling Sent: Tuesday, June 10, 2008 9:44 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] Datagrid Password Column? I tried doing the same thing I'm doing now, except moving the TextInput into an external item renderer and listening for begin/end edit events to toggle the alpha, but that seemed really clunky. So you're saying that is probably the best way? On Tue, Jun 10, 2008 at 11:34 PM, Alex Harui [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: You should be able to use DataGridItemRenderer and set its displayAsPassword=true in a subclass or in a custom classFactory From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Tracy Spratt Sent: Tuesday, June 10, 2008 6:06 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: RE: [flexcoders] Datagrid Password Column? Maybe set backgroundAlpha=0? Tracy From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Dennis Falling Sent: Tuesday, June 10, 2008 7:28 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: [flexcoders] Datagrid Password Column? I have an editable DataGrid that displays usernames and masked passwords (). To hide the password, I'm just using an inline item renderer: mx:DataGridColumn dataField=password headerText=Password editorDataField=text rendererIsEditor=true mx:itemRenderer mx:Component mx:TextInput displayAsPassword=true borderStyle=none/ /mx:Component /mx:itemRenderer /mx:DataGridColumn This works exactly how I want it to, with very little code...except it doesn't look too hot when that row is selected: the TextInput always has a solid white background whether it's selected or not. Is there an easy way to tell it to make it not show a background except when selected (appear like the default item editor)? I've listened to the various edit events but can't figure out a clean way of doing this. Thanks! No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.2.0/1495 - Release Date: 10.06.2008 17:11
[flexcoders] Re: not sure why COLLECTION_CHANGE listener is not firing.
look at this mx.events.CollectionEventKind --- In flexcoders@yahoogroups.com, Derrick Anderson [EMAIL PROTECTED] wrote: Hi, I'm using the Guasax framework in my application- and in my model I am adding a collection change event listener, but it is never getting fired- here is my code (is there something with adding event listeners in a constructor maybe??) *EmployeesModel.as* package com.winn.model { import com.winn.vo.EmployeeVO; import conf.Constants; import es.guasax.container.GuasaxContainer; import es.guasax.view.ViewLocator; import mx.collections.ArrayCollection; import mx.controls.Alert; import mx.events.CollectionEvent; public class EmployeesModel { private static var instance:EmployeesModel; public static function getInstance():EmployeesModel { if( instance==null ) instance = new EmployeesModel(); return instance; } [Bindable] public var selectedEmployee:EmployeeVO; [Bindable] public var employeesList:ArrayCollection; [Bindable] public var employeeStatusList:ArrayCollection; public function EmployeesModel(){ employeesList = new ArrayCollection(); employeeStatusList = new ArrayCollection(); *employeeStatusList.addEventListener ( CollectionEvent.COLLECTION_CHANGE,employeeStatusListChange );* } * public function employeeStatusListChange(event:CollectionEvent):void { Alert.show('firing listener function');//never shows GuasaxContainer.getInstance().executeViewUpdate( [ViewLocator.getInstance().getViewObject(Constants.EMPLOYEES_VIEW)], 'setEmployeeTypes',[]); }* } } now here is where I load content into that arrayCollection and expect to see my listener function fire off *EmployeeBO.as private var employeesModel:EmployeesModel = EmployeesModel.getInstance(); *public function getEmployeesAuxData():void { var params:Array = []; ServiceLocator.getInstance().executeService (employeeCFC,getEmployeesAuxData,params,employeesAuxDataHandler,fa ultHandler,this); } public function employeesAuxDataHandler(event:* = null ):void { *employeesModel.employeeStatusList = event.result.EMPLOYEESTATUSES;//i assumed this would be enough to trigger the collectionChange*** //employeesModel.employeeStatusList.refresh ();*//thought this would make the collectionEvent fire, but didn't* employeesModel.employeeStatusList.dispatchEvent(new CollectionEvent(CollectionEvent.COLLECTION_CHANGE));*//then tried to fire it manually, but my listener is still never registered* } can anybody see why it seems my event listener is never registered? thanks, d.
[flexcoders] Re: Datagrid Password Column?
you can do this to: ?xml version=1.0 encoding=utf-8? mx:TextInput xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=initThis() displayAsPassword=true borderStyle=none alpha=0.0 focusEnabled=true mx:Script ![CDATA[ private function initThis():void { this.addEventListener(FocusEvent.FOCUS_IN, changeState); this.addEventListener(FocusEvent.FOCUS_OUT, changeState); } private function changeState(event:FocusEvent):void { if(event.type == FocusEvent.FOCUS_IN) { currentState = 'selected'; } else{ currentState = ''; } } ]] /mx:Script mx:states mx:State name=selected mx:SetProperty name=alpha value=1.0/ mx:SetStyle name=borderStyle value=solid/ /mx:State /mx:states /mx:TextInput --- In flexcoders@yahoogroups.com, Dennis Falling [EMAIL PROTECTED] wrote: I have an editable DataGrid that displays usernames and masked passwords (). To hide the password, I'm just using an inline item renderer: mx:DataGridColumn dataField=password headerText=Password editorDataField=text rendererIsEditor=true mx:itemRenderer mx:Component mx:TextInput displayAsPassword=true borderStyle=none/ /mx:Component /mx:itemRenderer /mx:DataGridColumn This works exactly how I want it to, with very little code...except it doesn't look too hot when that row is selected: the TextInput always has a solid white background whether it's selected or not. Is there an easy way to tell it to make it not show a background except when selected (appear like the default item editor)? I've listened to the various edit events but can't figure out a clean way of doing this. Thanks!
[flexcoders] Re: Deep Zoom (Silverlght) in Flex??
http://theflashblog.com/?p=351 --- In flexcoders@yahoogroups.com, slash_n_rose [EMAIL PROTECTED] wrote: Hi All Is there any flex component like a Silverlight Deep Zoom? Regards Jerry
[flexcoders] Re: SWC Encrypt 2.0 - Does it work?
Hello again, I have read more Flex documentation, and found a lot of good information regarding the remote objects and the environment, but I have a thought about making a change in the structure of the Flex application, have someone tried to take a module and put it into a sql database as a bytearray, and bring it to the application as remote object and connect module loader to the DTO, is possible to connect the module loader to the byteArray? --- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: I'll Chime in on this since.. I could call myself a professional component developer. I had the same worries about source and intellectual property (2 years ago). What I have found in the real component market, developers will buy your component without code IF you have a site and support backing up your claim of a purely 'encapsulated' API. Now what I have learned; Mind you I have been developing components since Flash 5 :) - Source code IS love but, they are going to pay a lot more for it. I'm talking about my frameworks coming up that are definite jewels for the professional/enterprise flex developer. I will have to options SWC or SWC/with source. You can't stop people from riping off your stuff. There are ticks and leaches in the REAL world as well. The trick, is to be the leader and innovator. I have survived 2 years without selling source. I have created a brand new framework that I am very proud of, documented great and I will be selling my components with source. Anyway, ramble but... you will always get decompiled and don't kid yourself. Peace, Mike On Wed, Jun 4, 2008 at 3:57 AM, Josh McDonald [EMAIL PROTECTED] wrote: I still can't see what you hope to achieve with these solutions? Anybody willing to copy and paste your code, is just as willing to copy your encrypted .SWC file. Source code is like love - it only has value if you give it out. -Josh On Wed, Jun 4, 2008 at 5:45 PM, Cato Paus [EMAIL PROTECTED] wrote: Hello again everyone, how can we protect our code? How should we go forward in order to protect the methods used to change the senistive information on user data, some blogs on this? I found one at a remote-finfig.xml and the use of session id http://www.flexpasta.com/index.php/2008/03/18/flex-using-blazeds- with-java-do-you-care-about-security/ this is good to have this thread hope we can work together to find out of this :) --- In flexcoders@yahoogroups.com, jmfillman jmfillman@ wrote: Has anyone had experience using SWC Encrypt 2.0, by Amayeta? Does it work, or would I just be wasting my money? I'm trying to protect a component I plan to sell, but given the prevalence of de- compilers, I'm hesitant to release it. I don't want to see all my hard work stolen. -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'.
[flexcoders] Re: mx.rpc.remoting.remoteobject and the endpoint property
take look at this http://tech.groups.yahoo.com/group/flexcoders/message/115062 http://tech.groups.yahoo.com/group/flexcoders/message/115062 --- In flexcoders@yahoogroups.com, arieljake [EMAIL PROTECTED] wrote: does anyone know why only the mxml version of remoteobject has the endpoint property available to set?
[flexcoders] Re: mx.rpc.remoting.remoteobject and the endpoint property
Channel(id:String = null, uri:String = null) Constructs an instance of a generic Channel that connects to the specified endpoint URI. used in the sample like: channel = new AMFChannel('my-amf', 'http://{server.name}:{server.port}/flex/messagebroker/amf'); --- In flexcoders@yahoogroups.com, Cato Paus [EMAIL PROTECTED] wrote: take look at this http://tech.groups.yahoo.com/group/flexcoders/message/115062 http://tech.groups.yahoo.com/group/flexcoders/message/115062 --- In flexcoders@yahoogroups.com, arieljake arieljake@ wrote: does anyone know why only the mxml version of remoteobject has the endpoint property available to set?
[flexcoders] Re: SWC Encrypt 2.0 - Does it work?
Hello again everyone, how can we protect our code? How should we go forward in order to protect the methods used to change the senistive information on user data, some blogs on this? I found one at a remote-finfig.xml and the use of session id http://www.flexpasta.com/index.php/2008/03/18/flex-using-blazeds-with-ja\ va-do-you-care-about-security/ http://www.flexpasta.com/index.php/2008/03/18/flex-using-blazeds-with-j\ ava-do-you-care-about-security/ this is good to have this thread hope we can work together to find out of this :) --- In flexcoders@yahoogroups.com, jmfillman [EMAIL PROTECTED] wrote: Has anyone had experience using SWC Encrypt 2.0, by Amayeta? Does it work, or would I just be wasting my money? I'm trying to protect a component I plan to sell, but given the prevalence of de-compilers, I'm hesitant to release it. I don't want to see all my hard work stolen.
[flexcoders] Re: DataGrid What is the limit?
According to the flex doc Maximum size 5000 by 5000. --- In flexcoders@yahoogroups.com, Nadeem Manzoor [EMAIL PROTECTED] wrote: Hello Flex Gurus What is the maximum row count that a DataGrid Component can display at a time? Same Question is for Column so DataGrid -- Thanks Nadeem Manzoor
[flexcoders] Re: SWC Encrypt 2.0 - Does it work?
Hi Mister I have tested both the swc and swf encrypt, and I have hell of a big project running the Flex RSL and Flex Data Services, and lots of remoteobjects, And I have no problems with the swc 2.0 and swf 5.0 --- In flexcoders@yahoogroups.com, jmfillman [EMAIL PROTECTED] wrote: Has anyone had experience using SWC Encrypt 2.0, by Amayeta? Does it work, or would I just be wasting my money? I'm trying to protect a component I plan to sell, but given the prevalence of de-compilers, I'm hesitant to release it. I don't want to see all my hard work stolen.
[flexcoders] Re: SWC Encrypt 2.0 - Does it work?
I have tested it the code looks like spageti! --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Monday 02 Jun 2008, jmfillman wrote: Has anyone had experience using SWC Encrypt 2.0, by Amayeta? Does it work, or would I just be wasting my money? Have you tried decompiling a swfencrypt'ed SWF ? -- Tom Chiverton 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 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. 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 Solicitors Regulation Authority. 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 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Re: programmatically using RemoteObject
Here is a part of my way to do it this is only for the connection, you have to use flexComRo.yourjavamethod and you have to create a handler for tath if you need to. you have to put the destination in the remote-config.xml import flash.events.Event; import flash.events.EventDispatcher; import mx.controls.Alert; import mx.managers.CursorManager; import mx.messaging.Channel; import mx.messaging.ChannelSet; import mx.messaging.channels.AMFChannel; import mx.messaging.events.ChannelEvent; import mx.messaging.events.ChannelFaultEvent; import mx.rpc.events.FaultEvent; import mx.rpc.events.ResultEvent; import mx.rpc.remoting.mxml.RemoteObject; import mx.utils.ObjectUtil; public class RemoteObjectProxy extends EventDispatcher { private static var _instance:RemoteObjectProxy; private static var flexComRO:RemoteObject; private static var channelSet:ChannelSet = new ChannelSet(); private static var channel:Channel; public function RemoteObjectProxy(enforcer:SingletonEnforcer){} public static function getInstance():RemoteObjectProxy { if(RemoteObjectProxy._instance == null) { RemoteObjectProxy._instance = new RemoteObjectProxy(new SingletonEnforcer()); initFlexCom(); //trace('PopUpControl created!') return RemoteObjectProxy._instance; } //trace('PopUpControl returned!') return RemoteObjectProxy._instance; } private static function initFlexCom():void { channel = new AMFChannel('my-amf', 'http://{server.name}:{server.port}/flex/messagebroker/amf'); channel.requestTimeout = 10; channel.connectTimeout = 10; channelSet.addChannel(channel); flexComRO = new RemoteObject(); flexComRO.concurrency = Concurrency.LAST; flexComRO.destination = FlexComRO; flexComRO.channelSet = channelSet; // trace('channelSet: ' + ObjectUtil.toString(channelSet)); channelSet.addEventListener(ChannelFaultEvent.FAULT, handleChannelFault); channelSet.addEventListener(ChannelEvent.CONNECT, handleChannelConnect); channelSet.addEventListener(ChannelEvent.DISCONNECT, handleChannelDisconnect); flexComRO.addEventListener(FaultEvent.FAULT, faultHandler);// denne er for selve objectet som er koblet mot java. men denne 'fault handleren' er komblet kun mot loginUser. } // Handler for Channels and remote Object private static function handleChannelFault(event:ChannelFaultEvent):void {//trace('handleChannelFault: ' + event); CursorManager.removeBusyCursor(); } private static function handleChannelConnect(event:ChannelEvent):void {//trace('handleChannelConnect: ' + event); } private static function handleChannelDisconnect(event:ChannelEvent):void {//trace('handleChannelConnect: ' + event); } private static function faultHandler (event:FaultEvent):void { // Deal with event.fault.faultString on all FlexComRO's methods! Alert.show(event.fault.faultString + : + event.fault.message, Server Error: + event.fault.faultCode); CursorManager.removeBusyCursor(); } }//Class }// Package class SingletonEnforcer {} http://www.umbrellacorp.no http://www.umbrellacorp.no --- In flexcoders@yahoogroups.com, blc187 [EMAIL PROTECTED] wrote: I'm trying to move some code out of my MXML into AS classes but having trouble with the RemoteObject. The following code: mx:RemoteObject id=remoteObject destination=genericDestination mx:method name=myMethod result=gotServerData(event)/ /mx:RemoteObject How do I go about setting up the remoteObject method programmatically?
[flexcoders] Re: SWC Encrypt 2.0 - Does it work?
right now the Flex framework is too much to decode. decoders only hang that I know of --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Monday 02 Jun 2008, jmfillman wrote: Has anyone had experience using SWC Encrypt 2.0, by Amayeta? Does it work, or would I just be wasting my money? Have you tried decompiling a swfencrypt'ed SWF ? -- Tom Chiverton 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 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. 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 Solicitors Regulation Authority. 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 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Re: SWC Encrypt 2.0 - Does it work?
Hi, Yes that is true, I stand corrected :) I tested it with SWF Encrypt 5.0 and 4.0 my self and the Sothink decompiler did show it almost like the code form flex builder. Money saved there! --- In flexcoders@yahoogroups.com, Doug McCune [EMAIL PROTECTED] wrote: That last comment isn't true. The Sothink decompiler works just fine on Flex swfs. Here's my experience with SWF Encrypt and SWC Encrypt: - We ran SWCEncrypt on a Flex SWC and then tried decompiling a Flex app created with the encrypted SWC versus the unencrypted SWC. I could not tell any difference whatsoever. Both decompiled just fine, it appeared as if SWCEncrypt did absolutely nothing to the SWC file. I don't know if we were doing soemthing wrong (although really how can you? you just run it on a SWC), or if the encryptor doesn't support Flex SWCs specifically. - SWFEncrypt, on the other hand, works. But it does not work for Flex swfs. If you try to encrypt a full Flex SWF the encryptor goes overboard and jacks up the Flex framework code and makes your SWF unrunnable. - What did seem to work was creating a SWF module that did not include the Flex framework code, encrypting that, and loading that module into a wrapper Flex app. - Neither SWCEncrypt nor SWFEncrypt seems to actually encrypt anything, All of it can still be decompiled with the Sothink decompiler (maybe the decompiler just knows how to decrypt whatever encryption is used). SWFEncrypt does seem to obfuscate the code though. A decompiled SWF that has been run through SWFEncrypt is harder to read than a non- obfuscated one. On Tue, Jun 3, 2008 at 11:49 AM, Cato Paus [EMAIL PROTECTED] wrote: right now the Flex framework is too much to decode. decoders only hang that I know of --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tom Chiverton tom.chiverton@ wrote: On Monday 02 Jun 2008, jmfillman wrote: Has anyone had experience using SWC Encrypt 2.0, by Amayeta? Does it work, or would I just be wasting my money? Have you tried decompiling a swfencrypt'ed SWF ? -- Tom Chiverton 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 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. 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 Solicitors Regulation Authority. 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 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Re: SWC Encrypt 2.0 - Does it work?
anyone tested this one http://www.kindisoft.com/products/ --- In flexcoders@yahoogroups.com, jmfillman [EMAIL PROTECTED] wrote: Has anyone had experience using SWC Encrypt 2.0, by Amayeta? Does it work, or would I just be wasting my money? I'm trying to protect a component I plan to sell, but given the prevalence of de-compilers, I'm hesitant to release it. I don't want to see all my hard work stolen.
[flexcoders] Re: please need help with dataGrid and checkBox
package { import flash.display.DisplayObject; import flash.events.KeyboardEvent; import flash.events.MouseEvent; import flash.text.TextField; import mx.controls.CheckBox; import mx.controls.dataGridClasses.DataGridListData; import mx.controls.listClasses.ListBase; /** * The Renderer. */ public class TaskActive extends CheckBox { public function TaskActive() { focusEnabled = false; invalidateDisplayList(); } // update data item on click // TODO: Validate taskVO //and send update to db. override protected function clickHandler(event:MouseEvent):void { super.clickHandler(event); data[DataGridListData(listData).dataField] = selected; } // center the checkbox icon override protected function updateDisplayList(w:Number, h:Number):void { super.updateDisplayList(w, h); var n:int = numChildren; for (var i:int = 0; i n; i++) { var c:DisplayObject = getChildAt(i); // CheckBox component is made up of box skin and label TextField if (!(c is TextField)) { c.x = Math.round((w - c.width) / 2); c.y = Math.round((h - c.height) / 2); } } } } } bump the file in root of app, and here is some good reading :) http://weblogs.macromedia.com/pent/ http://weblogs.macromedia.com/pent/ http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.ht\ ml http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.h\ tml --- In flexcoders@yahoogroups.com, Laila Towailib [EMAIL PROTECTED] wrote: -- Forwarded message -- From: Laila Towailib [EMAIL PROTECTED] Date: Sat, May 31, 2008 at 8:37 PM Subject: dataGrid and checkBox To: flexcoders@yahoogroups.com *what is the best way to add a checkbox field to each row of a datagrid and read what is checked ? I really need this for my project.*
[flexcoders] Re: Panel with no borders. How To?
Hi First off all you have this: borderStyle=none and you can do this to: borderStyle=none borderThickness=0 borderThicknessBottom=0 borderThicknessLeft=0 borderThicknessRight=0 borderThicknessTop=0 and finaly: paddingBottom=0 paddingLeft=0 paddingRight=0 paddingTop=0 play with these params. you probaly will find wath your looking for :) Cato Paus http://www.umbrellacorp.no --- In flexcoders@yahoogroups.com, Manu Dhanda [EMAIL PROTECTED] wrote: Hii I need a panel with no border or say with border with ZERO width. How can I get this done? Thanks. -- View this message in context: http://www.nabble.com/Panel-with-no- borders.-How-To--tp17573772p17573772.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Re: Flash USB-API :)
Hi I know abouth the MerApi http://www.merapiproject.net/index.php, but My use-case is: I'm developing a TV-FlexApplication for a cutsomer that wants to use a tv remote controller to change the channels that I'm stremaing form satelitte or cabel. The point of using Flex/flash is that I have all under my controll (The app) and the customer will allvays have the last build of the app. To day flash player have connection to several USB devises, USB Camare and microphone!! Why not extend this a litle more :) --- In flexcoders@yahoogroups.com, Rick Winscot [EMAIL PROTECTED] wrote: There is an obvious solution: Flex/AIR - Web Services (or similar) - USB ... but _direct_ communication with USB? I'm stumped as to why you would even need something like this. What is your use case? Rick Winscot From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Cato Paus Sent: Friday, May 23, 2008 9:35 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flash USB-API :) Hehe Totaly Agree with you on Joe Random, but I put my trust on Adobe to find a solution :) --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Tom Chiverton tom.chiverton@ wrote: On Thursday 22 May 2008, Cato Paus wrote: I realy hope we can have USB communication in AIR and Flash Player :) USB communication from a web site ? I think not... unless you want Joe Random reading all your data. For AIR this makes more sense. -- Tom Chiverton 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 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. 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 Solicitors Regulation Authority. 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 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Re: Flash USB-API :)
Update on the case :) https://bugs.adobe.com/jira/browse/FP-247 --- In flexcoders@yahoogroups.com, Cato Paus [EMAIL PROTECTED] wrote: WE need to vote again :) https://bugs.adobe.com/jira/browse/FP-247 I realy hope we can have USB communication in AIR and Flash Player :) I can imagine many different type of applications which can communicate with different devices connected over USB, atleast my phone (over bluetooth or cable)... It would be great if AIR and Flash player can have USB API for those things, so that we (developers) are not forced to write socket- servers and take care of installation etc..
[flexcoders] Re: Flash USB-API :)
Hehe Totaly Agree with you on Joe Random, but I put my trust on Adobe to find a solution :) --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Thursday 22 May 2008, Cato Paus wrote: I realy hope we can have USB communication in AIR and Flash Player :) USB communication from a web site ? I think not... unless you want Joe Random reading all your data. For AIR this makes more sense. -- Tom Chiverton 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 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. 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 Solicitors Regulation Authority. 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 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Flash USB-API :)
WE need to vote again :) https://bugs.adobe.com/jira/browse/FP-247 I realy hope we can have USB communication in AIR and Flash Player :) I can imagine many different type of applications which can communicate with different devices connected over USB, atleast my phone (over bluetooth or cable)... It would be great if AIR and Flash player can have USB API for those things, so that we (developers) are not forced to write socket-servers and take care of installation etc..
[flexcoders] Re: Flash Player 10 is in prerelease!
Yes, Yes, Yes! we have File uploade and downloade to localhost :) it's a greeat day :) Woowo --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: http://labs.adobe.com/technologies/flashplayer10/ Gordon Smith Adobe Flex SDK Team
[flexcoders] Re: Question about IISTestProjectFlex3 project
Ah, yes of course, I have the Flex data servises 2.5.6 running in this project, sorry I will take that away and send you new files :) --- In flexcoders@yahoogroups.com, Jon Santos [EMAIL PROTECTED] wrote: - Forwarded Message From: Jon Santos [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 15, 2008 4:16:11 PM Subject: Question about IISTestProjectFlex3 project Hi Cato.. I´m trying to install your applicationin my Eclipse I have created the IISTestProjectFlex3 Flex project To see the structure of my project in Eclipsesee the attached file. I´m getting one error : unable to open 'C:\videoclub\IISTestProjectFlex3 \LCDS_FLEX_SERVER_ROOT\WEB-INF\flex\libs\fds.swc' I don´t know if i must create the LCDS_FLEX_SERVER_ROOT or just change my properties of my project Can you check it. Thanks in advance