[flexcoders] Re: Embedding Flash Player
Just a quick note to say we recently released a version of Shu http://shu-player.com that is compatible with the standard AIR redistribution license from Adobe. We created this version specifically for developers concerned about gettting a 'custom' license from Adobe. As of yesterday, we also changed the prices of each of the three versions of Shu. --- In flexcoders@yahoogroups.com, Jules Suggate julian.sugg...@... wrote: Hi list, long-time-no-post :) I've a gnarly one here. I contract to a VC funded startup formed to create a cross-platform desktop client. Unfortunately AIR's APIs are not low-level enough (e.g. you can't burn a CD with AIR). We've looked at Zinc, Shu Player, Janus and the rest but Zinc and Janus don't support MacOS very well and the legal issues around Shu Player make us wary of using it. This is a consumer-facing app and needs to be squeaky clean. How about embedding the NPAPI FP10 in a Java process? That would be cross-platform, and we could use NPRuntime to interact seamlessly from Java. The Flash Player license allows us to automate download of the FP10 installer, however these are the problems we still face: - If a user doesn't have the player installed, there will be a two-step install process (one for the player, one for our app), which is sooo 90s - We can't legally change the install location of the NPAPI plugin, so if we automate downloads of the NPAPI FP10 and the user doesn't have Mozilla installed it's unclear what we should do - Not sure if we can specify the kind of Player (NPAPI vs ActiveX) to download from adobe.com if the user is on Windows Even for the base case (a user with Mozilla and the NPAPI FP10 plugin installed prior to install of our app), should we talk this over with Adobe legal? Has anyone heard of Adobe entering into custom licensing agreements for this kind of thing (and I mean, actual bonafide true stories, not conjecture based on Adobe's licensing page making passing reference)? Hope this hits someone's cache! Cheers, Jules -- Jules Suggate Owner and Technical Lead Uphill Sprint Limited +64-21-157-8562
[flexcoders] Re: Modules Communication
This is a crazy long thread! How you need to implement communication between modules and host application is very application specific in that there is no 'one size fits all' solution. For some solutions, simple Events is the way to go. Others may well suit dependency injection, others a more centralized messaging system etc etc. It really depends on the application as a whole. One particularly neat solution is like the Cocoa NSNotificationCenter (as I have blogged about recently http://blog.cjtech.co.uk/index.php/2009/03/02/a-better-way/ ). But again, its really down to the applications needs/requirements. Dont be fooled by the 'one size fits all'! --- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: I'm not sure, maybe since modules are independent swf's, but that is way more complicated than necessary. Look into the singleton data model. In such a case, you would do: 1. in the source module, MyModel.getInstance().id = myTextInput.text; 2. In the target module, text={ MyModel.getInstance().id } 3. Or use a changeWatcher if you need to take programmatic action when id changes Tracy _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of thelordsince1984 Sent: Tuesday, March 03, 2009 12:30 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Modules Communication --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, thelordsince1984 loreboa@ wrote: --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, Simon Bailey simon@ wrote: On the tip for communicating between modules using a framework, PureMVC has a utility called Pipes which helps you accomplish this: http://trac. http://trac.puremvc.org/Utility_AS3_MultiCore_Pipes puremvc.org/Utility_AS3_MultiCore_Pipes ;S On 3 Mar 2009, at 10:10, claudiu ursica wrote: You should probably have ca comunication manager something like a central event dispatcher (I believe the Mate framework already does this but i might be mistaking) and register panels within that scope. so when a panel fires an event the other listening panels check if the event is adressed to them and actually consume catch that event... there was some guy doing a prof of concept for this google for ALON desing pattern ... HTH, Claudiu From: thelordsince1984 loreboa@ To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com Sent: Tuesday, March 3, 2009 10:53:49 AM Subject: [flexcoders] Re: Modules Communication --- In flexcod...@yahoogro ups.com, Guy Morton guy@ wrote: Have you read the section Using interfaces for module communication in the docs? That's been working for me. thanks for the reply.. For Guy Morton... i've read it but modules are created at runtime so i would have a maneger that controls communication over modules.is it true? For Alex Harui how can i achieve the commuication between modules..for example a module dispatch an event...the event is catch by a manager and then fires to the rigth destination. ..rember that i have an application. ..it contains panels and each panel could contain a module... thanks again Regards Lorenzo thanks all, but is there a simple manner to achieve module to module communication? suppose this scenario: i've a module within a panel. it contains a textinput...it fires a custom event when the user clicks a button..the event contains an id number..an other modules is listen for this event, catchs it at then update itself depending on passed id... thanks again Regards Lorenzo is it possible to use localconnection among modules or is a bad way to achieve module to module communication?
[flexcoders] Re: Calling C++ app or service from flex on Mac
Just use AIR and Shu http://shu-player.com . Simple. --- In flexcoders@yahoogroups.com, Priya Shah shahpriya...@... wrote: Hi everyone, I am in dire need of being able to call a C++ app or service on Mac from flex. I am willing to go the AIR way for this though that's not optimal. I have spent some time trying to figure out the Netscape plugin architecture which is supported on safari but it's sub-optimal for me to go that route. I already have a C++ dll that I have invoked with flex on the Windows side using an Active/X plugin successfully. Now I need to compile the dll into some format on Mac and then communicate back and forth with flex. I have seen some open source bridge projects that enclose flash player in an MFC object but that doesn't help me on mac. Is it as simple as doing some Netstream class from flex to connect to either an app or a service (if there are services on Mac like there are on Windows) and just do a localhost communication back and forth? If so, what are the limitations of such approaches? Any sample apps out there? Regards Priyanka
Re: RE : [flexcoders] custom map image geocoding service?
I have done a lot of this sort of thing. Simply put, to convert long,lat into x,y you need to know the projection of you image. Once you know that, it is a simple matter of writing a function to convert your long,lat based on the projection algorithm. See: http://www.progonos.com/furuti/MapProj/Normal/CartHow/cartHow.html which also has links to some popular projection algorithms. --- In flexcoders@yahoogroups.com, Christophe Jolif [EMAIL PROTECTED] wrote: Hi Rich, Not sure it fits your needs as it would require you to change your map but if you are ok with that ILOG Elixir dashboard maps are allowing you to convert lat/long to x,y position on the map. Hope this helps, Christophe -- http://elixir.ilog.com De: flexcoders@yahoogroups.com de la part de Rich Rodecker Date: lun. 6/16/2008 10:05 À: Flash Coders List; flexcoders@yahoogroups.com Objet : [flexcoders] custom map image geocoding service? I'm building a flash app which requires some mapping functionality. It's relatively simple, so I'm not sure that it needs all the bells and whistles that come with using google's or yahoo's map services. Basically we have a static U.S./Canada map image (no pan or zoom) that has some interactive markers overlaid on it...pretty much a heatmap I guess. We're already set up with receiving the latitude and longitude coordinates, now i just need to translate that into x,y positions on the map. I know there are services out there that handle this, but I've been searching for a while and most of the results reference back to google or yahoo maps, so I'm thinking I'm not suing the right search terms. Does anyone know where I can get this done...or any other tips/advice that might help? Thanks, Rich
[flexcoders] Re: question for cairngprm ModelLocator?
Probably because your obj1 and/or VO.name is not marked as [Bindable]. --- In flexcoders@yahoogroups.com, markflex2007 [EMAIL PROTECTED] wrote: Hi I use cairngorm. obj1 is property in modelLocator and it is a instance of a VO I have the code in the view page ... [Bindable] private var modelLocator : ModelLocator = ModelLocator.getInstance(); ... mx:TextInput id=cname x=306 y=43 text={modelLocator.obj1.name} width=196 / ... but I get the error ' Data blinding will not be able to detect assignments to name ' for the TextInput . Do you know why this happen and how to fix it? Thanks Mark
[flexcoders] Re: DataGrid custom itemRenderer using a ComboBox
You set a ClassFactory to the columns itemEditor property. Via actionscript... var cf:ClassFactory; cf = new ClassFactory(mx.controls.ComboBox); theColumn.itemEditor = cf; Or mxml... mx:DataGridColumn mx:itemEditor mx:Component mx:ComboBox/ /mx:Component /mx:itemEditor /mx:DataGridColumn --- In flexcoders@yahoogroups.com, Fidel Viegas [EMAIL PROTECTED] wrote: Hi All, I am trying to implement a DataGrid with one of the columns as a ComboBox. The thing is that I want to show a label with an icon when the column is in a normal (non editable state), and show the combo box when the user clicks the column to edit it. Does anyone have an example or some tips on how to achieve this? Thanks in advance, Fidel.
[flexcoders] Re: Screenshot, someone?
Hmm. Take a look at Shu... http://shu-player.com --- In flexcoders@yahoogroups.com, Oscar Cortes [EMAIL PROTECTED] wrote: Look at the MapCache example in this page : http://labs.adobe.com/technologies/air/samples/ http://labs.adobe.com/technologies/air/samples/ I think it has that functionality Regards, Oscar http://www.holaflex.com http://www.holaflex.com --- In flexcoders@yahoogroups.com, peterflexcoder peterflexcoder@ wrote: I forget to tell that it is for a air application :( --- In flexcoders@yahoogroups.com, peterflexcoder peterflexcoder@ wrote: Hi All, i have a window and with a button i want to make a screenshot from that window How can i make that, or have someone a example Thanks in advance, Peter
[flexcoders] Re: AIr and NativeDragEvents
addEventListener(NativeDragEvent.NATIVE_DRAG_ENTER, onDragEnter); addEventListener(NativeDragEvent.NATIVE_DRAG_DROP, onDragDrop); private function onDragEnter(event:NativeDragEvent):void { if(event.clipboard.hasFormat(ClipboardFormats.FILE_LIST_FORMAT)) NativeDragManager.acceptDragDrop(this); } private function onDragDrop(event:NativeDragEvent):void { NativeDragManager.dropAction = NativeDragActions.COPY; var files:Array = event.clipboard.getData(ClipboardFormats.FILE_LIST_FORMAT) as Array; for each (var f:File in files) { trace(f.nativePath); } } --- In flexcoders@yahoogroups.com, djhatrick [EMAIL PROTECTED] wrote: HI, I am working with Air and dragging from the desktop to my application. I've got notice that my NativeDragEvent is working. When I get my File list array from my clipboard event, what's next? How can I access the data for conversion to byteArray to send to the server (if that's even necessary)? How can I determine the filetype with the clipboardFormats... etc. For instance, how do I find the filename and extension of the file that I am dragging. The few examples I've found out there are examples written for Air Beta 1. I am one those people who needs examples to understand the process. If you have any links of updates posts it would be greatly appreciated. I'm ready to use the api, but it's a little daunting, any help appreciated. I went looking for an air book in the bookstore after i saw the plethora of titles on amazon, and then I was bummed to learn that they are still unavailable :( Thanks, Patrick