Re: [flexcoders] Embedding Flash Player
Hi guys, sorry about my slow response. I was enjoying my weekend :) We have decided to continue on this line of inquiry, partly due to your answers. Steve, you mentioned kicking of a silent install of the Player if it's not found. How silent can you make it? From memory, the player install sequence has a few dialog boxes and progress bars... is the distributable installer sequence less obvious, or are these dialogs just part of the overall installation experience for your users? We'd be happy enough with the latter, but the former would be even better :-) Thanks again! On Sat, Nov 22, 2008 at 07:12, Steve Mathews [EMAIL PROTECTED] wrote: Well it was less than great because someone here applied online several times but could not actually get the installer. Then we had a chat with Lee Brimelow (http://theflashblog.com/) http://theflashblog.com/, he passed our request on and we got the installer within a day or two. So I would recommend talking to him or another evangelist to help the process. Steve On Fri, Nov 21, 2008 at 9:07 AM, Jim Hayes [EMAIL PROTECTED] wrote: How easy was it to get the licence to distribute the flash player? Anecdotally, I'd heard this was rather hard to do in practice, but maybe this has changed since I last enquired a couple of years back. This has always been a stumbling block for various solutions I've tried over the years. -Original Message- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Steve Mathews *Sent:* 21 November 2008 15:48 *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Embedding Flash Player You can get a license to distribute the installer from Adobe. Then just silently install the player you need when installing your application. Unless there is something I don't know about the 'Plugin' version of the installer. We are doing exactly this but we are targeting windows only (C# app + Flash 9 ActiveX msi). Steve On Fri, Nov 21, 2008 at 3:48 AM, Jules Suggate [EMAIL PROTECTED] 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 __ 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. __ -- Flexcoders Mailing List FAQ: http://groups.yahttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt ... [Message clipped]
Re: [flexcoders] Re: Embedding Flash Player
Hi, sorry for my late reply. Merapi is on our list of possibles, but we don't like the socket-server approach for reasons of technical aesthetic. Having two separate processes just smells icky... conceptually the Java code and the Flex code both address the same concern -- To Build a Rich Client. Separating them technically is only necessary because the AIR framework doesn't support everything we need. We'd rather keep the technical structure as similar to the logical structure as possible. An example of what could happen: if the Flex UI crashes, the CD burning process might continue. Things like this give the socket server approach an unnatural feel IMHO. The main advantage for us of using AIR would be the application updater harness, but that's ruled out when using the Merapi approach anyway. Most crucially though, we want a self-contained one-click install, and this is just not possible using AIR and Merapi from what I can see. Cheers, Jules On Sat, Nov 22, 2008 at 04:31, valdhor [EMAIL PROTECTED] wrote: I don't know about others but this seems, to me, to be a very difficult route to take. Have you looked at the Merapi Project (http://www.merapiproject.net/)? This would give you a bridge between your AIR application and the local Java implementation. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Jules Suggate [EMAIL PROTECTED] 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] RemoteObject invocations returning all at once...
I have a function that performs a series of server-side operations. Each call takes a half a second or so and I'd like to update the UI via a progress bar. The problem I'm running into is that all my remote methods are returning at the same time so I have a progress bar that goes from empty to full all at once rather than nice and gradual. From watching the server side logs and the client trace statements I can see that the server side requests are returning once every half-second or so but I see no trace statements from my handleVoidAction method until the very end when I see all of them at once. This happens whether the number of requests is 5 or 500. Here is the method I'm calling: public function makeGroupsNotEligible(groups:Array):void { resetProgressBar(groups.length, Making groups not eligible...); for each(var g:Group in groups) { var token:AsyncToken = remoteObject.makeGroupNotEligible(g.enterpriseId, g.groupId, g.userLimit); token.addResponder(new AsyncResponder(handleVoidAction, faultHandler, token)); } } My question is how do I make the AsyncResponder respond after each response rather than all at once in the very end? Thanks!
[flexcoders] I need some help please!....
So here is the problem, I am new to Flex Builder 3 and I am using a book walk-through tutorial by Friends of ED publishing which has me add a simple 'panel component' by clicking and dragging the panel onto the area. The problem I am having is that after this panel is dropped into the Design area, some white rulers and blue buttons on all four sides are dislayed on the outside of the panel where the book shows the reader to Anchor, Unanchor, or Center the panel component but I don't have the rulers or blue buttons to select the 3 choices I listed above. Does anyone know how I can get the rulers and blue buttons to appear on the design view? If you need a visual reference, I will be posting the book excerpts on the Frontpage of my website temporarily to show you what I mean. For the visual reference please go to: www.jonmorales.me I really appreciate any help, I have been going nuts for 2 days trying to find out how to get this damn thing working. -Jon Morales-
[flexcoders] Integrating JasperReports with Flex
Hi there, I am exploring the possibility of generating spreadsheets using Flex with JasperReports in the backend. There seems to be little or no documentation related to the same. I did run into a Flex extension (xViewer http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetailextid=1384018#) but I am not sure if that would generate spreadsheets. Would appreciate any comments. Thanks, Tarun
[flexcoders] FABridge Debugging
Hi, I'm trying to find a tool which will let me debug apps that are largely written in JavaScript but use FABridge to control my Flex Application. Ideally something that will allow debugging of both sides of the app at the same time, or as part of the same process. Any suggestions most welcome. Kevin _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Simon Bailey Sent: 24 November 2008 08:44 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] DataGrid itemRenderer Woes Just a checkbox inside of it in answer to your first question. The reason I am using a column to ascertain visibility of the check box is due to using a vo to populate the header renderer and I need to make a comparison between the grid renderer current item and it corresponding column header vo. Cheers, Si On 24 Nov 2008, at 06:33, Alex Harui wrote: Are you changing the visibility of the entire renderer or just a checkbox inside it? Renderers on the recycle list get visible=false and set back to true when used again. If you completely hide a renderer, I'm not sure what would happen. Other than that, I would find a way to introspect the renderers and see if they did compute visible correctly for their data. It seems odd that your lookup of data.val is based on a column. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Simon Bailey Sent: Sunday, November 23, 2008 11:24 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] DataGrid itemRenderer Woes Ok I have stopped all the errors and essentially integrated your (Alex's) logic into my application after some serious hair pulling. The responsibility lies now with the method below for showing or hiding the check box: override protected function commitProperties():void { super.commitProperties(); var row:int = listData.rowIndex+1; visible = false; for( var i:int = 0; i data.ff.length; i++ ) { if( data.val[listData.columnIndex-1] != undefined data.val[listData.columnIndex-1].option[i] == row ) { visible = true; } } if (owner is ListBase) selected = ListBase(owner).isItemSelected(data); } And dammit if its still doing exactly the same as before?!? On 23 Nov 2008, at 04:48, Alex Harui wrote: Read the item renderers section on my blog (blogs.adobe.com/aharui). Start with the oldest posting. From: /spanflexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Simon Bailey Sent: Saturday, November 22, 2008 2:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] DataGrid itemRenderer Woes Hi, I have seen through google that this has been an issue but implementing various solutions still l! eaves my existing problem. Essentially I have a DataGrid with a custom itemRenderer displaying CheckBoxes. Within the renderer I am running a comparison on a value within the renderers data i.e. data.my_val and the current grid row and column values. Depending on whether the data value equals a specific row I show or hide the check box. I achieve this by running the comparison logic with the overridden updateDisplayList method below which works fine until scrolled. override protected function updateDisplayList( unscaledWidth:Number, unscaledHeight:Number ):void { super.updateDisplayList( unscaledWidth, unscaledHeight ); var row:int = listData.rowIndex+1; for( var! i:int = 0; i data.ff.length; i++ ) { if( data.val[listData.columnIndex-1] != undefined data.val[listData.columnIndex-1].option[i] == row ) { btn.visible = true; } } } The issue is on scroll all of the check boxes are displayed/hidden incorrectly and the whole grid messes right up! Any ideas pls would be appreciated. Si
Re: [flexcoders] Re: Removing an item from a sorted ArrayCollection?
Thanks for that suggestion .. it seems to behave the same way though. I can partly fix this by doing a myAc.refresh() every time, but I see all kinds of strange behaviour (elements will be duplicated, etc.). No one knows the answer to my initial question about why there is a problem implementing removeItemAt()/addItemAt() on a sorted AC? It's tempting to make a WorkingArrayCollection.as ;-) - bjorn 2008/11/21 Haykel BEN JEMIA [EMAIL PROTECTED] Try doing something like this: var obj:Object = mySortedArray.getItemAt(index); var originalIndex:int = mySortedArray.list.getItemIndex(obj); mySortedArray.list.removeItemAt(originalIndex); I didn't test the code. But the idea behind it is that a ListcollectionView holds a pointer to the IList it's wrapping so you have access to it. All you have to do is get the object you want to remove, find it's index in the wrapped IList and use that index to remove it, again from the wrapped IList. Haykel Ben Jemia Allmas Web RIA Development http://www.allmas-tn.com On Fri, Nov 21, 2008 at 6:51 PM, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, bjorn [EMAIL PROTECTED] wrote: I experienced some problems with ArrayCollection's removeItemAt(). It seemed to work... randomly. Tucked away in the documentation i found this little gem: Note: If you use the ICollectionView interface to sort or filter a collection, do not use the IList interface to manipulate the data, because the results are indeterminate. My problem, of course, was that I had a sort on the ac, and that I used IList's removeItemAt(). I don't understand the rationale behind this, maybe someone can explain to me why it's difficult to implement removeItemAt() on a sorted ArrayCollection ... I mean, I _am_ working with sorted data here, so when I say index 11 I mean index 11 on the sorted data. That's the data I see, that's the data I'm using, I don't need to know anything about the underlying Array and the element's _real index_ the ArrayCollection knows which element this refers to in the underlying Array, so there shouldn't be a problem ...? Anyway, given the restraints we're working with here - what is the best way to approach this? I need to be able to remove items from a sorted ArrayCollection - any best practices? I usually use either a one or more other ArrayCollections or ListCollectionViews with a pointer to the same data to do filtering and sorting on. Although often that's just because I want to preserve the original order as much as anything. -- http://www.juicability.com - flex blog http://www.nospoiler.com - link to youtube videos without the spoilers
[flexcoders] Re: Can an embedded image in a module be used by the main application?
I used style.getStyle(icon) to look at the object, and it was just the string representation from the stylesheet (@Embed(...)). Obviously when the button style was set with this value from the module, it's not going to find the image. I've ditched the idea of using a stylesheet file and have defined all the styles manually in actionscript. That way it works when embedding images. Thanks, Mark --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: It might just be that the module doesn't get loaded until after the button sets up its styles. I don't know if it will pick up the fact that the styles showed up later. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of skuteboarding Sent: Sunday, November 23, 2008 6:07 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Can an embedded image in a module be used by the main application? I'm trying to load an image from a stylesheet in a module, then use that style declaration in the main application. It doesn't seem to work, but wondered if there is something special I need to do to get it to work? I have the following in my stylesheet in my module: .sun { icon: @Embed(source='../assets/Background/Sun.png'); } Then in my module I have a function like: public function getSunStyle():CSSStyleDeclaration { return StyleManager.getStyleDeclaration(.sun); } I've checked the return value here and it does exist (I've also checked it with simple things like background colours etc). Now, in my main application, I take that return value and do this: var sun:CSSStyleDeclaration = module.getSunStyle; if (gui.controlPanelBackgroundStyle != null) { StyleManager.setStyleDeclaration(.sun, sun, true); } And I have a button (in the main app) defined as: mx:Button x=10 y=10 label=Button styleName=.sun/ Is it possible to achieve what I'm trying to do?
[flexcoders] Prob With Remoteobject Timeout in FlexClient -
Hi All, How to change the default Client Timeout in BlazeDS -Remoteobject AMFChannel? We are developing an Application in Flex, we are using the Remoteobject concept to call backend method, in that method we are doing some database related manipulation operations,it will take 3 to 20 minutes approximately. What happening here is remote calling is made successfully and the operations are running perfectly in java side, but the 5 th minute from the remoteobject call is made,the control is returned to flex client[as fault event] and it executing the fault event handler method, though operation is not finished in backend side[its still running] how to override this 5 minute timeout to custom time (in my case its ~50 minutes) Please help me out this Friends This is very urgent the mesage i'm getting in Faultevent (mx.messaging.messages::ErrorMessage)#0 body = (Object)#1 clientId = (null) correlationId = D7300EA9-2865-17DF-7157-B411C50C1276 destination = extendedData = (null) faultCode = Channel.Call.Failed faultDetail = NetConnection.Call.Failed: HTTP: Failed faultString = error headers = (Object)#2 messageId = 5D758FD4-5072-F686-0DF3-B41662EF7CD0 rootCause = (Object)#3 code = NetConnection.Call.Failed description = HTTP: Failed details = https://192.###.###.###:444/samplapp/messagebroker/amf; level = error timestamp = 0 timeToLive = 0 we are using mx.messaging.channels.AMFChannel mx.messaging.channels.SecureAMFChannel in service config Thanks In Advance GnanaPrakasam T.
Re: [flexcoders] Prob With Remoteobject Timeout in FlexClient -
This is totally and utterly wrong :-) You should not have an RPC call that queries the DB and returns in 20 minutes or even 2 minutes... If your calculations are that slow, make a process that precalculates and saves the results somewhere and then return this via the RPC call... On Mon, Nov 24, 2008 at 12:12 PM, ursprakash6 [EMAIL PROTECTED] wrote: Hi All, How to change the default Client Timeout in BlazeDS -Remoteobject AMFChannel? We are developing an Application in Flex, we are using the Remoteobject concept to call backend method, in that method we are doing some database related manipulation operations,it will take 3 to 20 minutes approximately. What happening here is remote calling is made successfully and the operations are running perfectly in java side, but the 5 th minute from the remoteobject call is made,the control is returned to flex client[as fault event] and it executing the fault event handler method, though operation is not finished in backend side[its still running] how to override this 5 minute timeout to custom time (in my case its ~50 minutes) Please help me out this Friends This is very urgent the mesage i'm getting in Faultevent (mx.messaging.messages::ErrorMessage)#0 body = (Object)#1 clientId = (null) correlationId = D7300EA9-2865-17DF-7157-B411C50C1276 destination = extendedData = (null) faultCode = Channel.Call.Failed faultDetail = NetConnection.Call.Failed: HTTP: Failed faultString = error headers = (Object)#2 messageId = 5D758FD4-5072-F686-0DF3-B41662EF7CD0 rootCause = (Object)#3 code = NetConnection.Call.Failed description = HTTP: Failed details = https://192.###.###.###:444/samplapp/messagebroker/amf; level = error timestamp = 0 timeToLive = 0 we are using mx.messaging.channels.AMFChannel mx.messaging.channels.SecureAMFChannel in service config Thanks In Advance GnanaPrakasam T. -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
Re: [flexcoders] I need some help please!....
I have seen that myself :-) The anchor staff on the latest builder (only for absolute based components not dynamic such as vbox and hbox which do not have the panel) can be found at the bottom right of the Flex Properties panel in the header Constraints Small box with 3 horizontal and 3 vertical tick boxes... On Sun, Nov 23, 2008 at 10:28 PM, thacoconut [EMAIL PROTECTED] wrote: So here is the problem, I am new to Flex Builder 3 and I am using a book walk-through tutorial by Friends of ED publishing which has me add a simple 'panel component' by clicking and dragging the panel onto the area. The problem I am having is that after this panel is dropped into the Design area, some white rulers and blue buttons on all four sides are dislayed on the outside of the panel where the book shows the reader to Anchor, Unanchor, or Center the panel component but I don't have the rulers or blue buttons to select the 3 choices I listed above. Does anyone know how I can get the rulers and blue buttons to appear on the design view? If you need a visual reference, I will be posting the book excerpts on the Frontpage of my website temporarily to show you what I mean. For the visual reference please go to: www.jonmorales.me I really appreciate any help, I have been going nuts for 2 days trying to find out how to get this damn thing working. -Jon Morales- -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
[flexcoders] Re: RemoteObject invocations returning all at once...
What are you using for your AMF implementation? WebOrb by any chance? --- In flexcoders@yahoogroups.com, Croz [EMAIL PROTECTED] wrote: I have a function that performs a series of server-side operations. Each call takes a half a second or so and I'd like to update the UI via a progress bar. The problem I'm running into is that all my remote methods are returning at the same time so I have a progress bar that goes from empty to full all at once rather than nice and gradual. From watching the server side logs and the client trace statements I can see that the server side requests are returning once every half- second or so but I see no trace statements from my handleVoidAction method until the very end when I see all of them at once. This happens whether the number of requests is 5 or 500. Here is the method I'm calling: public function makeGroupsNotEligible(groups:Array):void { resetProgressBar(groups.length, Making groups not eligible...); for each(var g:Group in groups) { var token:AsyncToken = remoteObject.makeGroupNotEligible(g.enterpriseId, g.groupId, g.userLimit); token.addResponder(new AsyncResponder (handleVoidAction, faultHandler, token)); } } My question is how do I make the AsyncResponder respond after each response rather than all at once in the very end? Thanks!
Re: [flexcoders] ImageSnapshot.captureBitmapData with transparency on Windows (Vista)
Hi all, It's been a few days since I sent the message below, and with many people now back from MAX and the weekend, I thought I'd just bump it to see if anyone has any ideas? Thanks, Ian On 21 Nov 2008, at 00:18, Ian M. Jones wrote: Hi all, I've noticed that using ImageSnapshot.captureBitmapData on Windows with a component that has a transparent background returns a bitmap that has a solid black fill where it should be transparent, whereas on Mac OS X it correctly captures the transparency. Does anyone know if there is any way to get the capture on Windows to honour the transparency, or am I going to have to keep on temporarily setting the background of the component to white (so it'll at least print nicely) before the capture? Is there maybe a way to use ImageSnapshot.captureImage with PNG encoding and then convert the result to BitmapData for later setting to the Clipboard? Thanks in advance for any help. Regards, Ian IMiJ Software http://www.imijsoft.com http://www.ianmjones.net (blog)
RE: [flexcoders] embed font combo box
Thanks I'd forgotten about that. What I ended up doing was to create a larger swf with all the fonts I needed in one single file rather than several (i.e. font1.swf, font1Bold.swf, font1Itlaic.swf etc) so that if there was any issues with it defaulting to bold then it picked up the font anyway. It doesn't explain all of the issues I had with the fonts but its working for now, so that's all that matters J Cheers. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Freiman Sent: 22 November 2008 19:52 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] embed font combo box The only issue I know of with the combo box is that the control shows the bold version of the font. So if the bold style is not explicitly embeded, the font won't show up correctly in the control. - Daniel Freiman On Fri, Nov 21, 2008 at 6:14 AM, Kenneth Sutherland [EMAIL PROTECTED] wrote: Is there any issues with using embedded fonts and the combo box. Under a very small test program I can get the embedded font to works fine in all circumstances but in my actual app the embedded font does not work. I've tried using a swf with the font inside it, I've tried the actual ttf font file. The REALLY odd thing is that if I use a swf generated from Flash with the font inside it, it works for me and 15 out of 16 other machines but 1 user didn't get the embedded font. I do know that some of the machines that had it working do not have the font installed so it must have been getting pulled out of the flex app. It's all very odd! The embedded font is used in other components inside the app and they work, it's just in the combobox that it does not work. Cheers for any info. Kenneth Sutherland Technical Developer Realise Ltd 0131 476 7432 www.realise.com enlightened e-business solutions Disclaimer This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. Disclaimer --- This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. ---
Re: [flexcoders] Re: Chart datatips
Brendan, you're a life saver. This is exactly what I was after. Actually step4 example you gave me is very similar to what we are planning to achieve in future versions, so thank you and thanks Doug! Sefi On Mon, Nov 24, 2008 at 1:58 AM, Brendan Meutzner [EMAIL PROTECTED]wrote: Sefi, So I think I understand what you mean... the very small line tick that extends to the left which probably belongs to one of the underlying data points... Check out the following (right click for source): http://www.meutzner.com/blog/attachments/360/Flex_Finance_Step4.html It's an example I put together some time ago, but uses custom renderers, and a custom method getChartDataPoint on mouseMove event for the chart. It requires a bit more work to implement, with custom series renderer, and some calculations to figure out positioning, but it may be what you're after. Brendan On Sun, Nov 23, 2008 at 5:51 PM, Brendan Meutzner [EMAIL PROTECTED]wrote: Sefi, So I changed values, and it does what you'd expect only showing the renderer for the top layer series... I still don't understand what you mean by root of the connecting line. Brendan On Sun, Nov 23, 2008 at 3:49 PM, Sefi Ninio [EMAIL PROTECTED] wrote: Yeah, in that example the series are far apart and there is only one tip at a time - there are no overlapping data tips. Change the value of march expenses from 500 to 300 to make the series closer and you'll see what I mean. On Sun, Nov 23, 2008 at 11:11 PM, Brendan Meutzner [EMAIL PROTECTED]wrote: Huh? I did a test just now on the Component explorer example of line/area series chart and it worked fine for each series. Can you provide a screen capture or a bit more explanation of what you mean by root of the connecting line? Brendan On Sun, Nov 23, 2008 at 2:33 PM, Sefi Ninio [EMAIL PROTECTED]wrote: Hi Brendan, I saw that in the docs as well, and tried it. It actually kinda works, except if there's more than one series, the marker is displayed with a root of the connecting line... I admit it's the closest I've got to what I need. sefi On Sun, Nov 23, 2008 at 7:56 PM, Brendan Meutzner [EMAIL PROTECTED] wrote: Sefi, Add this to your Chart definition... it sets the dataTipRenderer style to be a blank instance, but the data point renderer still shows... I think this is what you're looking for. dataTipRenderer=mx.skins.ProgrammaticSkin Brendan On Sun, Nov 23, 2008 at 7:03 AM, Sefi Ninio [EMAIL PROTECTED]wrote: Hi Vivian, I guess I'm not doing a very good job of making myself clear, please excuse me - english is not my first language. Anyway, A chart datatip has 3 parts: the bubble with the text area, the marker on the series itself and the line that connects the two. I would like to display the datatip, but only with the marker on the series itself, without the bubble or the connecting line. Sefi On Sun, Nov 23, 2008 at 2:48 PM, Vivian Richard [EMAIL PROTECTED]wrote: if you are trying to get the charting source data then try HitData http://livedocs.adobe.com/flex/3/html/help.html?content=charts_eventsandeffects_03.html On Sun, Nov 23, 2008 at 2:48 AM, Sefi Ninio [EMAIL PROTECTED]sefi.ninio%40gmail.com wrote: Hi Don, Thanks for the reply. This isn't what I'm after though... I'm looking for a way to display the datatip but only display the target of the datatip, without the bubble and the leading line from the target to the bubble. Or if there's a different approach other than datatips... I would have extended the DataTip or something, but I don't have access to the charting source for some reason... Sefi On Sun, Nov 23, 2008 at 12:31 PM, Don Kerr [EMAIL PROTECTED]fusionpage%40yahoo.com wrote: Not clear what you are asking, but did you try dataTipFunction for custom dataTips? It lets you layout your dataTip any way you'd like . Generic example from one of my apps below... public function dtf(hd:HitData):String { return b+(hd.item.evaldueDate.getMonth()+1).toString() + '/'+ hd.item.evaldueDate.getDate()+/b + br+ hd.item.title + br +hd.item.crNumber + br +hd.item.opr + br; } Don --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Sefi Ninio [EMAIL PROTECTED] wrote: Hey, Is it possible to enable datatips on a chart, but to only display the round marker on the series item and not the datatip? Thanks, Sefi -- Brendan Meutzner http://www.meutzner.com/blog/ -- Brendan Meutzner http://www.meutzner.com/blog/ -- Brendan Meutzner http://www.meutzner.com/blog/ -- Brendan Meutzner http://www.meutzner.com/blog/
Re: [flexcoders] Prob With Remoteobject Timeout in FlexClient -
On Monday 24 Nov 2008, Fotis Chatzinikos wrote: If your calculations are that slow, make a process that precalculates and saves the results somewhere and then return this via the RPC call... Or use one call to (re)start the process, and then access the new results by polling for them or using a BlazeDS managed collection so it automatically sees the changes. -- Tom Chiverton Helping to advantageously embrace enterprise interdependent magnetic industry-wide bandwidth 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 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Embedding Flash Player
Grr, ok the plot sickens :) Have just spoken with the guys and someone pointed out that native drag-and-drop, custom context menus and similar OS-level integrations are never going to be added to the Flash Player now that Adobe have AIR to put those features into. I'm inclined to see their point, but I need to think up a way around the one-click install showstopper. Naive approach would be: use a native installer to automate download and install of Adobe AIR (if not exists) and an AIR application without user intervention. Has anyone tried this? Can it be done (legally/technically)? Another alternative would be the Shu Player (http://www.shu-player.com). This bundles the AIR runtime into a single standalone exe with your AIR app, however distributing such applications contravenes the standard Adobe AIR license (see http://www.shu-player.com/air-runtime-notice). Has anyone had any luck negotiating a case by case runtime distribution agreement with Adobe for bundling the AIR runtime with an AIR application? Hope you guys can shed some light on this! Cheers, Jules On Mon, Nov 24, 2008 at 22:33, Jules Suggate [EMAIL PROTECTED]wrote: Hi, sorry for my late reply. Merapi is on our list of possibles, but we don't like the socket-server approach for reasons of technical aesthetic. Having two separate processes just smells icky... conceptually the Java code and the Flex code both address the same concern -- To Build a Rich Client. Separating them technically is only necessary because the AIR framework doesn't support everything we need. We'd rather keep the technical structure as similar to the logical structure as possible. An example of what could happen: if the Flex UI crashes, the CD burning process might continue. Things like this give the socket server approach an unnatural feel IMHO. The main advantage for us of using AIR would be the application updater harness, but that's ruled out when using the Merapi approach anyway. Most crucially though, we want a self-contained one-click install, and this is just not possible using AIR and Merapi from what I can see. Cheers, Jules On Sat, Nov 22, 2008 at 04:31, valdhor [EMAIL PROTECTED] wrote: I don't know about others but this seems, to me, to be a very difficult route to take. Have you looked at the Merapi Project (http://www.merapiproject.net/)? This would give you a bridge between your AIR application and the local Java implementation. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Jules Suggate [EMAIL PROTECTED] 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
Re: [flexcoders] Re: Embedding Flash Player
I say build a bunch of custom Swing components and build the whole thing in Java FX, it goes live in a week. On Mon, Nov 24, 2008 at 9:38 PM, Jules Suggate [EMAIL PROTECTED]wrote: Grr, ok the plot sickens :) Have just spoken with the guys and someone pointed out that native drag-and-drop, custom context menus and similar OS-level integrations are never going to be added to the Flash Player now that Adobe have AIR to put those features into. I'm inclined to see their point, but I need to think up a way around the one-click install showstopper. Naive approach would be: use a native installer to automate download and install of Adobe AIR (if not exists) and an AIR application without user intervention. Has anyone tried this? Can it be done (legally/technically)? Another alternative would be the Shu Player (http://www.shu-player.com). This bundles the AIR runtime into a single standalone exe with your AIR app, however distributing such applications contravenes the standard Adobe AIR license (see http://www.shu-player.com/air-runtime-notice). Has anyone had any luck negotiating a case by case runtime distribution agreement with Adobe for bundling the AIR runtime with an AIR application? Hope you guys can shed some light on this! Cheers, Jules On Mon, Nov 24, 2008 at 22:33, Jules Suggate [EMAIL PROTECTED]wrote: Hi, sorry for my late reply. Merapi is on our list of possibles, but we don't like the socket-server approach for reasons of technical aesthetic. Having two separate processes just smells icky... conceptually the Java code and the Flex code both address the same concern -- To Build a Rich Client. Separating them technically is only necessary because the AIR framework doesn't support everything we need. We'd rather keep the technical structure as similar to the logical structure as possible. An example of what could happen: if the Flex UI crashes, the CD burning process might continue. Things like this give the socket server approach an unnatural feel IMHO. The main advantage for us of using AIR would be the application updater harness, but that's ruled out when using the Merapi approach anyway. Most crucially though, we want a self-contained one-click install, and this is just not possible using AIR and Merapi from what I can see. Cheers, Jules On Sat, Nov 22, 2008 at 04:31, valdhor [EMAIL PROTECTED] wrote: I don't know about others but this seems, to me, to be a very difficult route to take. Have you looked at the Merapi Project (http://www.merapiproject.net/)? This would give you a bridge between your AIR application and the local Java implementation. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Jules Suggate [EMAIL PROTECTED] 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 -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/ :: http://twitter.com/sophistifunk
[flexcoders] login system with flex and coldfusion
hey guys i really need help on this, i would like a simple step by step on how to create a login system with flex and coldfusion. thanks
Re: [flexcoders] login system with flex and coldfusion
here is one http://www.brucephillips.name/blog/index.cfm/2007/3/16/Developing-A-Login-System-For-A-Flex-Application-With-A-ColdFusion-and-Database-Backend-Part-1 d. On Mon, Nov 24, 2008 at 8:02 AM, stinasius [EMAIL PROTECTED] wrote: hey guys i really need help on this, i would like a simple step by step on how to create a login system with flex and coldfusion. thanks
[flexcoders] Re: login system with flex and coldfusion
hello is there something more simple to understand than that? one that uses one cfc
[flexcoders] Re: Can anybody hear me on flexcoders@yahoogroups.com ?
Mystery no solved, thanks to Tom Chiverton. Please ignore, tom On Mon, Nov 24, 2008 at 4:43 PM, tom s [EMAIL PROTECTED] wrote: Hi, Sorry to intrude on your personal email addresses.. I have sent three message to the flexcoders@yahoogroups.com list so far, and I cannot see them in the archive, nor have I seen them bounced back to me, nor have I received any responses. So the obvious question is: can anybody hear me? Please could one person let me know. I am receiving messages from the list (lots) I registered by the email method (I could not get yahoo.com method to work :( I clicked the 'join this group' button, it asks me for a profile name, and then it takes me to a profile setup page that is a dead-end (ie no further 'join' type buttons). On returning to the flex coders page, I see the 'join this group' button - aghhh...) I got this email in response from the email based sign-up method: Hello, Welcome to the flexcoders group at Yahoo! Groups, a free, easy-to-use email group service. Please take a moment to review this message. To learn more about the flexcoders group, please visit http://www.flexcoders.org or http://groups.yahoo.com/group/flexcoders To start sending messages to members of this group, simply send email to flexcoders@yahoogroups.com Please can someone tell me how to fix this? thanks tom
[flexcoders] Can't get web access to flexcoders
Hello, I'm having trouble getting web access to the list. I'm cursing yahoo right now... I registered to the list using the email registration method from my @ gmail.com account. I am still not registered as a web user of the list, so when I go to http://tech.groups.yahoo.com/group/flexcoders/ I see a link on the left saying: Already receiving group email? When I click on that it says: You are currently a member of group flexcoders at email address [blanked by [EMAIL PROTECTED] [EMAIL PROTECTED]. To activate your Web Access for this group, click Continue. I click Continue and it takes me to the setup page, where it says (amongst other things): Select the Yahoo! Profile you would like to use for this group. This profile will be used to identify you when you access the group's Web features. (Add new profilehttp://edit.profiles.yahoo.com/config/edit_identity?.intl=us.done=http%3a//tech.groups.yahoo.com) Now, I already have a profile, so maybe the bug is that it's not picking it up. When I click 'Add new profile' it takes me to my profile page, where I can edit the profile, but has no links that allow me to associate it with my web membership of the list, or to otherwise complete the setup process. When I go back to the flexcoders page I see the same as stated at the top of this message (I'm still not a member) - i.e. I havent gotten anywhere.. 1. Does anyone know how I can get out of this terminal loop? 2. When did Yahoo become this clunky? thanks tom
[flexcoders] Re: checkbox usage in flex
At this point I would recommend using an HTTP Debugging Proxy like Charles (http://www.charlesproxy.com) to see exactly what is being sent and where it is going. I'm afraid I don't know ColdFusion so can't tell if you CF code is correct or not. Once you see the actual data that is being sent to your backend code you should be able to figure out where the problem is very quickly. BTW. I have found Charles to be indispensable. It has saved me literally hundreds of hours in debugging time. It is one of two debugging proxies that understand AMF and the only one that is cross platform. It has been well worth its $50 asking price. --- In flexcoders@yahoogroups.com, sbnkn [EMAIL PROTECTED] wrote: Hi, Thanks for your suggestions. I tried it and the code looks like this: submit button code: mx:Button label=Save click=addAnnouncement(event);cancel(); styleName=saveButton/ addAnnouncement function code: private function addAnnouncement(evt:Event):void{ var selArr:Array = []; var oRequest:Object = new Object(); var idx:int; var len:int = userRequest.lastResult.partners.partner.length; for (idx=0; idxlen; idx++) { if (checkBox[idx].selected) { selArr.push(checkBox[idx].label); } } var strPartners:String = selArr.join(,); oRequest.strTitle = strTitle.text; oRequest.strContent = strContent.text; oRequest.cntAnnouncement = cntAnnouncement.text; oRequest.dtmAssignmentDueDate = dtmAssignmentDueDate.text; oRequest.dtmOpenDate = dtmOpenDate.text; oRequest.dtmCloseDate = dtmCloseDate.text; oRequest.strPartners = strPartners; Alert.show('partner'+ strPartners); Alert.show('title'+oRequest.strTitle); Alert.show('strContent'+oRequest.strContent); Alert.show ('cntannouncement'+oRequest.cntAnnouncement); userRequest.send(oRequest); //userRequest.send(); } httpservice code: mx:HTTPService id=userRequest url=http://localhost:8500/qry_Announcement.cfm; useProxy=false method=POST /mx:HTTPService When I execute, the alert shows all the values selected. but it is not getting inserted into the table(DB). Here is the cfm code: cfprocessingdirective pageencoding = utf-8 suppressWhiteSpace = Yes cfif isDefined(oRequest.strTitle) and isDefined (oRequest.strContent) and oRequest.strTitle NEQ cfquery name=addAnnouncement datasource=Flex INSERT INTO tblAnnouncement (strTitle, strContent, dtmOpenDate, dtmCloseDate, dtmAssignmentDueDate ) VALUES (cfqueryparam value=#oRequest.strTitle# cfsqltype=CF_SQL_VARCHAR maxlength=150, cfqueryparam value=#oRequest.strContent# cfsqltype=CF_SQL_LONGVARCHAR, cfqueryparam value=#oRequest.dtmOpenDate# cfsqltype=CF_SQL_DATE, cfqueryparam value=#oRequest.dtmCloseDate# cfsqltype=CF_SQL_DATE, cfqueryparam value=#oRequest.dtmAssignmentDueDate# cfsqltype=CF_SQL_DATE ) /cfquery /cfprocessingdirective i'm stuck here..not sure, where to look for the bug..i do not see any error..any help is really appreciated. -NB /cfif --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: Yes. To go a bit further, while you can create the request object declaratively in mxml as you have done, it is dificult to debug and not very flexible. Instead, remove mx:request tagg and do this in a function. There is some almost-code below. But, it is not clear from your post quite what you want to sent to the server. The repeater will produce multiple check boxes. What is the server expecting? A delimited list of values? If so, then Repeater creates an array of references to repeated items that have an id property. You can reference each check box like this: checkBox[n], where n is the index in the dataProvider. So, in a for loop, with length equal to the Repeater dataProvider, get a reference to each checkbox. Build your return data structure as needed. Then put that into the request object, like below. var oRequest:Object = new Object(); oRequest. strTitle = strTitle.text; oRequest.strContent = strContent.text; oRequest.dtmAssignmentDueDate = dtmAssignmentDueDate.text; //oRequest.selected = See above??; userRequest.send(oRequest); Now, From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of valdhor Sent: Friday, November 21, 2008 1:11 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: checkbox usage in flex Instead of initiating send in the button, call a function.
[flexcoders] Re: Datagrid pagination w/ httpService
You need to convert your XML to an array collection. One example of how to do this is here: http://codejockeyscorner.blogspot.com/2007/12/flex-xml-object-to-arraycollection.html Then you can manipulate the ArrayCollection. - Alex --- In flexcoders@yahoogroups.com, iloveyouwisconsin [EMAIL PROTECTED] wrote: As you can surmise I am new to the flex world so this is probably a stupid easy question that I've been struggling with for the past couple of hours. Using an example from http://www.boyzoid.com/flexdemos/pagableAC/main.html I was able to generate pagination in a datagrid. My problem now is I don't have a clue how to change the dataprovider to my httpService, which is xml. The code from boyzoid is below. My xml is in the format: container entry blackblack\black whitewhite\white \entry \container ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical xmlns:bz=com.boyzoid.* creationComplete=initApp() viewSourceURL=srcview/index.html mx:HTTPService id=blackwhite url=http://localhost/index.php; fault=httpFaultHandler(event) result=httpResultHandler(event)/ mx:Script ![CDATA[ import mx.rpc.events.FaultEvent; import mx.rpc.events.ResultEvent; import com.boyzoid.PagableArrayCollection.PagableArrayCollection import mx.controls.Alert; [Bindable] public var myTest:PagableArrayCollection = new PagableArrayCollection( [{label:AK, data:Alaska}, {label:AL, data:Alabama}, {label:AR, data:Arkansas}, {label:AZ, data:Arizona}, {label:CA, data:California}, {label:CO, data:Colorado}, {label:CT, data:Connecticut}, {label:DC, data:District of Columbia}, {label:DE, data:Delaware}, {label:FL, data:Florida}, {label:GA, data:Georgia}, {label:HI, data:Hawaii}, ]); public function initApp():void{ myTest.filterFunction = filterStates; } public function ItemsPerPage(value:Number):void{ myTest.itemsPerPage = value as Number; } private function filterStates(item:Object):Boolean{ if(item.data.toLowerCase().search(search.text.toLowerCase()) == -1){ return false } return true } ]] /mx:Script mx:VBox y=10 width=50% horizontalCenter=0 horizontalAlign=center mx:HBox width=100% horizontalAlign=center mx:Button label=lt;lt; click=myTest.pageDown()/ mx:Button label= click=myTest.pageUp()/ /mx:HBox mx:Text x=532 y=28 text=Page {myTest.currentPage} of {myTest.pages}/ mx:HBox width=100% horizontalAlign=center mx:TextInput text=20 id=items textAlign=center change=ItemsPerPage(int(items.text)) restrict=0-9 width=40 / mx:Text text=items per page/ /mx:HBox mx:HBox mx:FormItem label=Search State Name mx:TextInput id=search change={myTest.refresh()} / /mx:FormItem /mx:HBox /mx:VBox mx:DataGrid dataProvider={myTest} width=200 horizontalCenter=0 bottom=15 top=100/ /mx:Application
Re: [flexcoders] Re: login system with flex and coldfusion
On Monday 24 Nov 2008, stinasius wrote: hello is there something more simple to understand than that? one that uses one cfc You can use the SessionToken from http://falkensweb.com/other.html ... -- Tom Chiverton Helping to augmentatively implement fourth-generation enterprise metrics 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 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: login system with flex and coldfusion
That would be because there are a limited number of ways to communicate between ColdFusion and Flex. CFC's are the (IMHO) easiest ways to do that. Is there a particular reason why you can't use CFC's? Look at http://www.adobe.com/devnet/flex/articles/helloworld.html for a good introduction. On Mon, Nov 24, 2008 at 8:21 AM, stinasius [EMAIL PROTECTED] wrote: hello is there something more simple to understand than that? one that uses one cfc -- Howard Fore, [EMAIL PROTECTED] The universe tends toward maximum irony. Don't push it. - Jeff Atwood
[flexcoders] Upgrading Flex to 3.02 - Great step-by-step instructions
If anyone needs to upgrade their Flex to the latest version, here are some great instructions with screen captures of each step: http://blog.flexexamples.com/2008/11/19/upgrading-to-flex-builder-302/
[flexcoders] Re: login system with flex and coldfusion
ok i dont mind using cfcs bt i think all am asking for is a clear explanation on how to go abt it. any way thats possible?
[flexcoders] Re: navigateToURL request.data connection problem
These two lines: var array:Array = new Array(new URLRequestHeader(Content-Type, text/html)); request.contentType = array.toString(); send a very strange request to the server: Second%5FPhone%5FNumber=0Account=00Password=password Removing the two lines send a proper POST request. There is nothing wrong with your Flex code. The Internal Server Error response is coming from the Perl script due to the strange request. BTW. I figured this out using Charles (http://www.charlesproxy.com). --- In flexcoders@yahoogroups.com, assaia [EMAIL PROTECTED] wrote: Hello and thank you a lot for your time. The function runs when a button is clicked. When the new webpage loads I get a Internal Server Error and The server encountered an internal error or misconfiguration and was unable to complete your request. I've tried a lot of different configurations but none seems to work till now... private function onClick():void{ var url:String = https://someplace/cgi/web/sth.pl;; var request:URLRequest = new URLRequest(url); var variables:URLVariables = new URLVariables(); variables.Account = 00; variables.Password = password; variables.Second_Phone_Number = 0; request.data = variables; request.method = URLRequestMethod.POST; var array:Array = new Array(new URLRequestHeader(Content-Type, text/html)); request.contentType = array.toString(); navigateToURL(request, _self); } the previous code is a tranformation of a fla file where there was a layer with this code: Account = 00; Password = password; Second_Phone_Number = 0; stop(); and this code on (release) { // send variables in form movieclip (the textfields) // to email PHP page which will send the mail form.loadVariables(); getURL(https://someplace/cgi/web/sth.pl;, _self, POST); gotoAndStop(2); } Any help would be highly appreciated...
Re: [flexcoders] Re: login system with flex and coldfusion
What I like to do is handle all the backend transactions first and make sure they work. So in your CFC you would have the functions that talk to the database to see if the user's supplied credentials are valid. It could return a boolean or what ever else you need, maybe a list of roles for the user. Make a cfml test page to test those functions. Typically my test pages use CreateObject to instantiate the same CFC that the Flex RemoteObject function will invoke. That way you can isolate any backend issues without any frontend complexity. Once you've got your backend CFC working, then hook in the Flex screen with the RemoteObject. On Mon, Nov 24, 2008 at 9:55 AM, stinasius [EMAIL PROTECTED] wrote: ok i dont mind using cfcs bt i think all am asking for is a clear explanation on how to go abt it. any way thats possible? -- 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 -- Howard Fore, [EMAIL PROTECTED] The universe tends toward maximum irony. Don't push it. - Jeff Atwood
Re: [flexcoders] Re: Embedding Flash Player
Heh -- don't tempt me -- I'm just about at that point to be honest. On Tue, Nov 25, 2008 at 01:45, Josh McDonald [EMAIL PROTECTED] wrote: I say build a bunch of custom Swing components and build the whole thing in Java FX, it goes live in a week. On Mon, Nov 24, 2008 at 9:38 PM, Jules Suggate [EMAIL PROTECTED]wrote: Grr, ok the plot sickens :) Have just spoken with the guys and someone pointed out that native drag-and-drop, custom context menus and similar OS-level integrations are never going to be added to the Flash Player now that Adobe have AIR to put those features into. I'm inclined to see their point, but I need to think up a way around the one-click install showstopper. Naive approach would be: use a native installer to automate download and install of Adobe AIR (if not exists) and an AIR application without user intervention. Has anyone tried this? Can it be done (legally/technically)? Another alternative would be the Shu Player (http://www.shu-player.com). This bundles the AIR runtime into a single standalone exe with your AIR app, however distributing such applications contravenes the standard Adobe AIR license (see http://www.shu-player.com/air-runtime-notice). Has anyone had any luck negotiating a case by case runtime distribution agreement with Adobe for bundling the AIR runtime with an AIR application? Hope you guys can shed some light on this! Cheers, Jules On Mon, Nov 24, 2008 at 22:33, Jules Suggate [EMAIL PROTECTED]wrote: Hi, sorry for my late reply. Merapi is on our list of possibles, but we don't like the socket-server approach for reasons of technical aesthetic. Having two separate processes just smells icky... conceptually the Java code and the Flex code both address the same concern -- To Build a Rich Client. Separating them technically is only necessary because the AIR framework doesn't support everything we need. We'd rather keep the technical structure as similar to the logical structure as possible. An example of what could happen: if the Flex UI crashes, the CD burning process might continue. Things like this give the socket server approach an unnatural feel IMHO. The main advantage for us of using AIR would be the application updater harness, but that's ruled out when using the Merapi approach anyway. Most crucially though, we want a self-contained one-click install, and this is just not possible using AIR and Merapi from what I can see. Cheers, Jules On Sat, Nov 22, 2008 at 04:31, valdhor [EMAIL PROTECTED] wrote: I don't know about others but this seems, to me, to be a very difficult route to take. Have you looked at the Merapi Project (http://www.merapiproject.net/)? This would give you a bridge between your AIR application and the local Java implementation. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Jules Suggate [EMAIL PROTECTED] 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 -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/ :: http://twitter.com/sophistifunk
[flexcoders] Re: login system with flex and coldfusion
thanks i get now
Re: [flexcoders] Embedding Flash Player
On Friday 21 Nov 2008, Jules Suggate wrote: 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 I'm not aware of any desktop cross-platform (i.e. Linux, Mac, Windows) run time that has a burnCD() function... You'll have to ship (3 ?) native binaries at least, I imagine... -- Tom Chiverton Helping to appropriately morph synergies 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 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] DataGrid itemRenderer Woes
The code you posted just sets visible=true/false which would likely set the entire renderer to visible/invisible and not some checkbox inside. If the code you showed is for a subclassed checkbox inside the renderer, then I'd make sure the .data is passed from the renderer to the subclassed checkbox. In cases like these, I usually extend DataGrid and add a function that dumps out the state of the renderers and their data items. Scroll until it goes bad, hit the button, call the function in the DG and see what it thinks is going on. -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Simon Bailey Sent: Sunday, November 23, 2008 11:44 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] DataGrid itemRenderer Woes Just a checkbox inside of it in answer to your first question. The reason I am using a column to ascertain visibility of the check box is due to using a vo to populate the header renderer and I need to make a comparison between the grid renderer current item and it corresponding column header vo. Cheers, Si On 24 Nov 2008, at 06:33, Alex Harui wrote: Are you changing the visibility of the entire renderer or just a checkbox inside it? Renderers on the recycle list get visible=false and set back to true when used again. If you completely hide a renderer, I'm not sure what would happen. Other than that, I would find a way to introspect the renderers and see if they did compute visible correctly for their data. It seems odd that your lookup of data.val is based on a column. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Simon Bailey Sent: Sunday, November 23, 2008 11:24 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] DataGrid itemRenderer Woes Ok I have stopped all the errors and essentially integrated your (Alex's) logic into my application after some serious hair pulling. The responsibility lies now with the method below for showing or hiding the check box: override protected function commitProperties():void { super.commitProperties(); var row:int = listData.rowIndex+1; visible = false; for( var i:int = 0; i data.ff.length; i++ ) { if( data.val[listData.columnIndex-1] != undefined data.val[listData.columnIndex-1].option[i] == row ) { visible = true; } } if (owner is ListBase) selected = ListBase(owner).isItemSelected(data); } And dammit if its still doing exactly the same as before?!? On 23 Nov 2008, at 04:48, Alex Harui wrote: Read the item renderers section on my blog (blogs.adobe.com/aharui). Start with the oldest posting. From: /spanflexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Simon Bailey Sent: Saturday, November 22, 2008 2:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] DataGrid itemRenderer Woes Hi, I have seen through google that this has been an issue but implementing various solutions still l! eaves my existing problem. Essentially I have a DataGrid with a custom itemRenderer displaying CheckBoxes. Within the renderer I am running a comparison on a value within the renderers data i.e. data.my_val and the current grid row and column values. Depending on whether the data value equals a specific row I show or hide the check box. I achieve this by running the comparison logic with the overridden updateDisplayList method below which works fine until scrolled. override protected function updateDisplayList( unscaledWidth:Number, unscaledHeight:Number ):void { super.updateDisplayList( unscaledWidth, unscaledHeight ); var row:int = listData.rowIndex+1; for( var! i:int = 0; i data.ff.length; i++ ) { if( data.val[listData.columnIndex-1] != undefined data.val[listData.columnIndex-1].option[i] == row ) { btn.visible = true; } } } The issue is on scroll all of the check boxes are displayed/hidden incorrectly and the whole grid messes right up! Any ideas pls would be appreciated. Si
[flexcoders] Re: 9-slice question/problem
Haykel, that worked perectly! Regards, Geoff. --- In flexcoders@yahoogroups.com, Haykel BEN JEMIA [EMAIL PROTECTED] wrote: Try setting the maintainAspectRatio property of the Image controls to false. In general, the Image and SWFLoader controls are a bit problematic when you don't set explicit values for the width and height ( see this test: http://demo.quietlyscheming.com/superImage/Tests.html ). Haykel Ben Jemia Allmas Web RIA Development http://www.allmas-tn.com
[flexcoders] ComboBox as itemRenderer/editor in Datagrid is not updating dataProvider...
I'm seeing a problem with a combobox in a datagrid that I simply have not been able to solve. The setup: Consider a datagrid where one of the columns has a combobox itemrenderer/editor in each row with choices A,B,C,or D. Outside of the datagrid is a Save button, along with another combobox exactly like the others, but choosing an option here forces all other comboboxes inside the datagrid to change to it. So selecting B in the outside combo makes all combos in the datagrid go to B. As far as the code structure goes, the itemrenderer is drop-in, and the root component is an hbox, with the combobox inside it. This is to that I could align it to the right of the cell. The structure is like this: DataGridColumn itemrenderer hbox combobox To get the grid combos to change, I bound their selectedIndex to the selectedIndex of the outerDocument.combo Everything works fine if choosing an option within the grid. But when using the outside combobox to change the others, the grid combo boxes are NOT updating their dataprovider. But, oddly, I have observed that if I change the outer combo setting, then click anywhere in the grid FIRST, and then click my Save button, it works. I thought that perhaps I needed to dispatch a CHANGE or CLICK event, so I altered the combo bindings to create a bindsetter instead that does the same thing plus dispatch an event. I have tried dispatching a variety of events and nothing works. How do I get the grid combos to update the datagrid dataprovider when using the outside combo???
[flexcoders] Re: FB 3.0.2 plug-in
Flash Player 10 isn't required for the Flex 3.0.2 framework. But, you can take advantage of the new APIs in Flash Player 10 and AIR 1.5. Bobby
Re: [flexcoders] DataGrid itemRenderer Woes
Fair enough, thanks for the feedback :) On 24 Nov 2008, at 15:49, Alex Harui wrote: The code you posted just sets visible=true/false which would likely set the entire renderer to visible/invisible and not some checkbox inside. If the code you showed is for a subclassed checkbox inside the renderer, then I’d make sure the .data is passed from the renderer to the subclassed checkbox. In cases like these, I usually extend DataGrid and add a function that dumps out the state of the renderers and their data items. Scroll until it goes bad, hit the button, call the function in the DG and see what it thinks is going on. -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Simon Bailey Sent: Sunday, November 23, 2008 11:44 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] DataGrid itemRenderer Woes Just a checkbox inside of it in answer to your first question. The reason I am using a column to ascertain visibility of the check box is due to using a vo to populate the header renderer and I need to make a comparison between the grid renderer current item and it corresponding column header vo. Cheers, Si On 24 Nov 2008, at 06:33, Alex Harui wrote: Are you changing the visibility of the entire renderer or just a checkbox inside it? Renderers on the recycle list get visible=false and set back to true when used again. If you completely hide a renderer, I’m not sure what would happen. Other than that, I would find a way to introspect the renderers and see if they did compute visible correctly for their data. It seems odd that your lookup of data.val is based on a column. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Simon Bailey Sent: Sunday, November 23, 2008 11:24 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] DataGrid itemRenderer Woes Ok I have stopped all the errors and essentially integrated your (Alex's) logic into my application after some serious hair pulling. The responsibility lies now with the method below for showing or hiding the check box: override protected function commitProperties():void { super.commitProperties(); var row:int = listData.rowIndex+1; visible = false; for( var i:int = 0; i data.ff.length; i++ ) { if( data.val[listData.columnIndex-1] != undefined data.val[listData.columnIndex-1].option[i] == row ) { visible = true; } } if (owner is ListBase) selected = ListBase(owner).isItemSelected(data); } And dammit if its still doing exactly the same as before?!? On 23 Nov 2008, at 04:48, Alex Harui wrote: Read the item renderers section on my blog (blogs.adobe.com/ aharui). Start with the oldest posting. From: /spanflexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com ] On Behalf Of Simon Bailey Sent: Saturday, November 22, 2008 2:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] DataGrid itemRenderer Woes Hi, I have seen through google that this has been an issue but implementing various solutions still l! eaves my existing problem. Essentially I have a DataGrid with a custom itemRenderer displaying CheckBoxes. Within the renderer I am running a comparison on a value within the renderers data i.e. data.my_val and the current grid row and column values. Depending on whether the data value equals a specific row I show or hide the check box. I achieve this by running the comparison logic with the overridden updateDisplayList method below which works fine until scrolled. override protected function updateDisplayList( unscaledWidth:Number, unscaledHeight:Number ):void { super.updateDisplayList( unscaledWidth, unscaledHeight ); var row:int = listData.rowIndex+1; for( var! i:int = 0; i data.ff.length; i++ ) { if( data.val[listData.columnIndex-1] != undefined data.val[listData.columnIndex-1].option[i] == row ) { btn.visible = true; } } } The issue is on scroll all of the check boxes are displayed/hidden incorrectly and the whole grid messes right up! Any ideas pls would be appreciated. Si
[flexcoders] Unable to capture click on subclassed DateField
Hello Everyone, I have a subclassed DateField with a TextInput below the calendar. After clicking on the button to open the DateChooser, when I click in the TextInput, the DateChooser closes. If I click in the whitespace to the right or left of the TextInput, the DateChooser remains opened. If I reopen the DateChooser, the cursor is set in the TextInput and the text can be changed. Hopefully, someone out there with component development experience understands the described behavior. Thank you in advance for any help, Orville
[flexcoders] LCDS pushing read-only associations
I have been having a problem pushing read-only associations to clients when then are part of a nested collection of a managed object. It seems as if there is only one way to do this, but I want to confirm this with others to make sure I am not missing something. myObject contains myObject.myCollection which is the non-owning side of a bidirectional one-to-many association. THIS WORKS if I add the new object to the collection - myObject.myCollection.addItem(newObject) then commit that collection, the changes get pushed to all clients THIS DOESN'T WORK if I use createItem(newObject) to persist the object then call myObject.myCollection.addItem(newObject) to add the new object to the collection in this case the object persists to the database and the local collection is updated, but no changes get pushed. QUESTIONS 1) Is this the expected behavior? (I am using LiveCycle Data Services: 2.6.0.200182) 2) I seem to recall if the collection is the result of a client called fill operation then createItem will push to new object to the filled collections. Is this true? 3) Is it best practice (or perhaps the only practice) when working with read-only properties to always use the (non-owning) collection to persist the objects rather than call a createItem assuming you want the data to push out to other clients? Thanks for the clarification. - Kevin
[flexcoders] Flex frameset simulator: does this exist or did I dream it?
I feel like I have seen this type of functionality before, but may have imagined it: I need to create Flex app with two components which, together, take up 100% of the page. One is on top, the other on the bottom, and there is a bar in between. When the bar is grabbed and dragged up, the space allocated to the bottom component grows and the top shrinks. The opposite happens when it's dragged down. basically, this is like an old-school frameset, or resizing the panels in some program like Outlook. Does this exist, either from Adobe or a 3rd party, or do I need to code it up myself? thanks! Ryan
Re: [flexcoders] Flex frameset simulator: does this exist or did I dream it?
Are you talking about mx:HDividedBox? d. On Mon, Nov 24, 2008 at 12:06 PM, Ryan [EMAIL PROTECTED] wrote: I feel like I have seen this type of functionality before, but may have imagined it: I need to create Flex app with two components which, together, take up 100% of the page. One is on top, the other on the bottom, and there is a bar in between. When the bar is grabbed and dragged up, the space allocated to the bottom component grows and the top shrinks. The opposite happens when it's dragged down. basically, this is like an old-school frameset, or resizing the panels in some program like Outlook. Does this exist, either from Adobe or a 3rd party, or do I need to code it up myself? thanks! Ryan
[flexcoders] Re: Flex frameset simulator: does this exist or did I dream it?
I think I need a VDividedBox, but yes, that is exactly what I was looking for! thanks very much! Ryan --- In flexcoders@yahoogroups.com, Derrick Anderson [EMAIL PROTECTED] wrote: Are you talking about mx:HDividedBox? d. On Mon, Nov 24, 2008 at 12:06 PM, Ryan [EMAIL PROTECTED] wrote: I feel like I have seen this type of functionality before, but may have imagined it: I need to create Flex app with two components which, together, take up 100% of the page. One is on top, the other on the bottom, and there is a bar in between. When the bar is grabbed and dragged up, the space allocated to the bottom component grows and the top shrinks. The opposite happens when it's dragged down. basically, this is like an old-school frameset, or resizing the panels in some program like Outlook. Does this exist, either from Adobe or a 3rd party, or do I need to code it up myself? thanks! Ryan
[flexcoders] Re: Prob With Remoteobject Timeout in FlexClient -
If I were trying to do this, I would have the server return a message to the effect Process Started Successfully immediately. Then I would set up a timer to poll the server to see if the results were available. --- In flexcoders@yahoogroups.com, ursprakash6 [EMAIL PROTECTED] wrote: Hi All, How to change the default Client Timeout in BlazeDS -Remoteobject AMFChannel? We are developing an Application in Flex, we are using the Remoteobject concept to call backend method, in that method we are doing some database related manipulation operations,it will take 3 to 20 minutes approximately. What happening here is remote calling is made successfully and the operations are running perfectly in java side, but the 5 th minute from the remoteobject call is made,the control is returned to flex client[as fault event] and it executing the fault event handler method, though operation is not finished in backend side[its still running] how to override this 5 minute timeout to custom time (in my case its ~50 minutes) Please help me out this Friends This is very urgent the mesage i'm getting in Faultevent (mx.messaging.messages::ErrorMessage)#0 body = (Object)#1 clientId = (null) correlationId = D7300EA9-2865-17DF-7157-B411C50C1276 destination = extendedData = (null) faultCode = Channel.Call.Failed faultDetail = NetConnection.Call.Failed: HTTP: Failed faultString = error headers = (Object)#2 messageId = 5D758FD4-5072-F686-0DF3-B41662EF7CD0 rootCause = (Object)#3 code = NetConnection.Call.Failed description = HTTP: Failed details = https://192.###.###.###:444/samplapp/messagebroker/amf; level = error timestamp = 0 timeToLive = 0 we are using mx.messaging.channels.AMFChannel mx.messaging.channels.SecureAMFChannel in service config Thanks In Advance GnanaPrakasam T.
Re: [flexcoders] Embedding Flash Player
Good question. As I haven't installed our app in quite some time, you could go to www.flypaper.com and install the demo to see what it looks like (just make sure you remove your ActiveX player before you run the installer). Steve On Mon, Nov 24, 2008 at 2:26 AM, Jules Suggate [EMAIL PROTECTED]wrote: Hi guys, sorry about my slow response. I was enjoying my weekend :) We have decided to continue on this line of inquiry, partly due to your answers. Steve, you mentioned kicking of a silent install of the Player if it's not found. How silent can you make it? From memory, the player install sequence has a few dialog boxes and progress bars... is the distributable installer sequence less obvious, or are these dialogs just part of the overall installation experience for your users? We'd be happy enough with the latter, but the former would be even better :-) Thanks again! On Sat, Nov 22, 2008 at 07:12, Steve Mathews [EMAIL PROTECTED] wrote: Well it was less than great because someone here applied online several times but could not actually get the installer. Then we had a chat with Lee Brimelow (http://theflashblog.com/) http://theflashblog.com/, he passed our request on and we got the installer within a day or two. So I would recommend talking to him or another evangelist to help the process. Steve On Fri, Nov 21, 2008 at 9:07 AM, Jim Hayes [EMAIL PROTECTED]wrote: How easy was it to get the licence to distribute the flash player? Anecdotally, I'd heard this was rather hard to do in practice, but maybe this has changed since I last enquired a couple of years back. This has always been a stumbling block for various solutions I've tried over the years. -Original Message- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Steve Mathews *Sent:* 21 November 2008 15:48 *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Embedding Flash Player You can get a license to distribute the installer from Adobe. Then just silently install the player you need when installing your application. Unless there is something I don't know about the 'Plugin' version of the installer. We are doing exactly this but we are targeting windows only (C# app + Flash 9 ActiveX msi). Steve On Fri, Nov 21, 2008 at 3:48 AM, Jules Suggate [EMAIL PROTECTED] 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 __ 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. __ -- Flexcoders Mailing List FAQ:
RE: [flexcoders] ComboBox as itemRenderer/editor in Datagrid is not updating dataProvider...
Depending on your data, you may need to call itemUpdated so renderers find out there's been a change to their data. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of biosmonkey Sent: Monday, November 24, 2008 7:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ComboBox as itemRenderer/editor in Datagrid is not updating dataProvider... I'm seeing a problem with a combobox in a datagrid that I simply have not been able to solve. The setup: Consider a datagrid where one of the columns has a combobox itemrenderer/editor in each row with choices A,B,C,or D. Outside of the datagrid is a Save button, along with another combobox exactly like the others, but choosing an option here forces all other comboboxes inside the datagrid to change to it. So selecting B in the outside combo makes all combos in the datagrid go to B. As far as the code structure goes, the itemrenderer is drop-in, and the root component is an hbox, with the combobox inside it. This is to that I could align it to the right of the cell. The structure is like this: DataGridColumn itemrenderer hbox combobox To get the grid combos to change, I bound their selectedIndex to the selectedIndex of the outerDocument.combo Everything works fine if choosing an option within the grid. But when using the outside combobox to change the others, the grid combo boxes are NOT updating their dataprovider. But, oddly, I have observed that if I change the outer combo setting, then click anywhere in the grid FIRST, and then click my Save button, it works. I thought that perhaps I needed to dispatch a CHANGE or CLICK event, so I altered the combo bindings to create a bindsetter instead that does the same thing plus dispatch an event. I have tried dispatching a variety of events and nothing works. How do I get the grid combos to update the datagrid dataprovider when using the outside combo???
[flexcoders] XML attributes
Flex 3 I am implementing drag and drop between 2 datagrids. Both datagrids are populated using a dataprovider with an XML document. The source XML document looks like this: ChannelItems CItem Type=Channel Name=Channel1/ CItem Type=Channel Name=Channel2/ /ChannelItems In the doDragDrop event, I am doing the following: code var dropTarget:DataGrid = DataGrid(event.currentTarget); var items:Array = event.dragSource.dataForFormat(items) as Array; if( items.length 0 ) { var node:XML = items[0]; var myName:String = [EMAIL PROTECTED]; } /code In the debugger I can see that items[0] has this value: CItem Type=Channel Name=Channel1/ I am trying to assign the attribute Name to a string variable. var myName:String = [EMAIL PROTECTED]; I have tried about every permutation I can think of an everything give me a: code TypeError: Error #1010: A term is undefined and has no properties. at MMO/doDragDrop()[C:\flex\src\MMO.mxml:770] at MMO/__sd_dg_service_definition_dragDrop()[C:\flex\src\MMO.mxml:1006] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9156] at mx.managers.dragClasses::DragProxy/mouseUpHandler()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\managers\dragClasses\DragProxy.as:500] /code Both datagrids display the XML correctly. The source datagrid's dataProvider is defined as: code dataProvider={channelListXML.CItem} /code Can anyone give me a leg up here? TIA, Dave
[flexcoders] Re: login system with flex and coldfusion
Hi All, I don't have the Flexbuilder installed in my system. My enviroment here comprises Flex SDK3 along with Coldfusion 8 developer edition alone, So I have to make this (that is the CF-Flex login app) with my mxmlc utility. I ran through some of the documents in where they instructed to edit services-config file and all. But it only resulted in Destination Coldfusion not found. Can anyone shed some light on how to write / compile and to run a login app using just a notepad and mxmlc utility perpective. I gave up searching tutorials, since I couldn't able find suiting my requirement. Can any please help me out?... Thanks, Dave.
[flexcoders] Newbie binding question
I'm having some troubles with data binding and a named event generated by a custom non-visual component. What I'm trying to do is have a property (say, 'data') which, when it changes, triggers the usual data-binding updates, but also fires an event that can be listened to in the MXML. For example: foo:MyClass id=thingy dataChanged=Alert.show('hi mom');/ mx:Label text={thingy.data}/ I can't seem to meet both of these requirements without throwing two separate events. Is this what I should expect? When I do this: [Event(name=dataChanged)] public class MyClass { [Bindable(name=dataChanged)] public function set data(data:Object):void { this._data = data; dispatchEvent( new Event(dataChanged) ); ..then the data binding doesn't work. (The label text doesn't get updated.) It seems I have to resort to vanilla data binding (with no event name), and in addition throw a 'dataChanged' event of my own. [Event(name=dataChanged)] public class MyClass { [Bindable] public function set data(data:Object):void { this._data = data; dispatchEvent( new Event(dataChanged) ); Am I missing something? Michael
RE: [flexcoders] Re: Right click context menus
Any class that inherits from InteractiveObject has a contextMenu property that allows you to build a custom context menu for that particular item. See the Flex docs for specifics. myTextArea.contextMenu = new ContextMenu(); myTextArea.contextMenu.hideBuiltInItems(); var defaultItems:ContextMenuBuiltInItems = myTextArea.contextMenu.builtInItems; defaultItems.print = false; ... Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cesarerocchi Sent: Saturday, November 22, 2008 9:13 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Right click context menus This code is not working for me. Flex 3, tried both player 9 and 10. -c. Rick's code isn't working for you? That's weird. I double checked my code, and I'm adding the context menu to the textField's parent component. So I'm not sure what's going on here. What framework/player versions are you using? - Daniel Freiman On Mon, Jun 30, 2008 at 12:07 PM, sbx33 [EMAIL PROTECTED] wrote: Well, I'm not sure what I'm doing wrong, but when I put this code in exactly, and right click in the text area, all I see in the context menu are Cut, Copy, Paste, and Select All. The only way to see a context menu with BAR! in it, is to click the very edge of the text area. This really isn't what I'm looking for. I really need to add menu items to the Cut-Copy-Paste-Select All menu. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Rick Winscot rick.winscot@ wrote: The mechanism for adding a custom context menu item to a standard context menu is the same as adding it to a text sensitive context menu. 1. Create a context menu 2. Create a context menu item 3. Add the custom menu item to the context menu 4. Associate the context menu with the control (in this case the text whatnot control) ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=init(); layout=absolute mx:Script ![CDATA[ public function init():void { var ctx:ContextMenu = new ContextMenu(); var mit:ContextMenuItem = new ContextMenuItem( BAR! ); ctx.customItems.push( mit ); foo.contextMenu = ctx; } ]] /mx:Script mx:TextArea id=foo x=401 y=249/ /mx:Application Right click in the text area and - Voila! Foo bar baby! Rick Winscot From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of sbx33 Sent: Thursday, June 26, 2008 7:44 PM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Right click context menus Unfortunately, I'm not sure what to even try. If anyone else has any ideas, please let me know. Thanks! --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Daniel Freiman FreimanCQ@ wrote: I can't find where in my code I am doing it, but I am. I don't remember caring about the distinction between the two types of context menus. So just try it and it will probably work. - Daniel Freiman On Tue, Jun 24, 2008 at 12:46 PM, sbx33 sbx33@ wrote: Hello! Per the Flex documentation: Flash Player has three types of context menus: the standard menu (which appears when you right-click in Flash Player), the edit menu (which appears when you right-click a selectable or editable text field), and an error menu (which appears when a SWF file has failed to load into Flash Player). Only the standard and edit menus can be modified with the ContextMenu class. I have been able to add custom menu items to the standard menu however, I'm wondering if anyone knows how to add custom menu items to the edit menu on a flex component, such as a TextArea. The code I am using to add items to the standard menu is: var newCM:ContextMenu = new ContextMenu(); var newCMI:ContextMenuItem = new ContextMenuItem(New Item); newCM.customItems.push(newCMI); TIA! -Mac -- 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
Re: [flexcoders] Re: AIR SQLLite, ints, and NULLs
So if I can sum up your email very clearly. I'd say: DO NOT use int, use Number, because that's what Air's database connection layer is going to return you. If you use int data type for fields you'll get zeros. With Number it's will propagate NULLs correctly. Thanks, Charlie On Mon, Nov 24, 2008 at 12:18 AM, jason_williams_mm [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Charlie Hubbard [EMAIL PROTECTED] wrote: I've read over all of the docs on Air, but there seems to be a missing discussion around NULL values in SQLLite and how those map back to datatypes. What I've found is that if I have an int field type I can't get a NULL value to ever get inserted into the SQLLite. It just ends up inserting 0 (zero). In Java we'd just convert to using a true Object like Integer class, and that would handle this problem for us. What is the equivalent with Actionscript? If you want NULLs and numbers what is an object and a number, and will Air convert between the two correctly? Thanks Charlie It would help to see the code that you are using, however, the following code gives the same results in both 1.5 and 1.1: ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=run() mx:Script ![CDATA[ import mx.utils.ObjectUtil; private function run():void { trace(NativeApplication.nativeApplication.runtimeVersion); var con:SQLConnection = new SQLConnection(); con.open(File.applicationStorageDirectory.resolvePath(nulltesting.db)); var sql:SQLStatement = new SQLStatement(); sql.sqlConnection = con; sql.text = CREATE TABLE test (id integer);; sql.execute(); sql.text = INSERT INTO test VALUES(null);; sql.execute(); sql.text = INSERT INTO test VALUES(1);; sql.execute(); sql.text = INSERT INTO test VALUES(2);; sql.execute(); sql.text = INSERT INTO test VALUES(3);; sql.execute(); sql.text = SELECT * FROM test;; sql.execute(); trace(ObjectUtil.toString(sql.getResult().data)); } ]] /mx:Script /mx:WindowedApplication -- trace output -- (Array)#0 [0] (Object)#1 id = (null) [1] (Object)#2 id = 1 [2] (Object)#3 id = 2 [3] (Object)#4 id = 3 Each of the values returned in the object is a Number. Hope that helps some. jw
[flexcoders] When is a crossdomain.xml file required?
When I run my application using the flash player, everything is good. All my HTTPService requests go through the Apache server (running locally) and I have a reverse proxy which pushes them through to a different server (also local) which servers up the results. If I use my web browser (FF or IE) instead of the flashplayer, then I get the dreaded: [RPC Fault faultString=Security error accessing url faultCode=Channel.Security.Error faultDetail=Destination: DefaultHTTP] at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:218] at mx.rpc::Responder/fault()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:53] at mx.rpc::AsyncRequest/fault()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:103] at DirectHTTPMessageResponder/securityErrorHandler()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:368] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/redirectEvent() The HTML file to download the swf file was changed so that the allowScriptAccess is always instead of sameDomain. But that was only done to try to work around this issue. I am still in the sameDomain, so I don't think having a crossdmain file (especially since I have it as always currently) should work. Any ideas? TIA, Dave
[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] api for connect and controling Ip camera
Hi guys I wanna write a air application manage Ip camera in cctv field . the services are such as coonecting to Ip cameras, preview that record video on local drives and ptz function.,,, anybody knows API to used for it . pls help me . I'll appreciate Best Regards farid valipour
Re: [flexcoders] Re: AIR SQLLite, ints, and NULLs
on debug level it evaluates to NaN, which should insert as NULL.but then remember var n:Number; // == NaN var p:Number = n + 1;//==NaN var q:int = n+1;//==0 On Mon, Nov 24, 2008 at 9:01 PM, Charlie Hubbard [EMAIL PROTECTED]wrote: So if I can sum up your email very clearly. I'd say: DO NOT use int, use Number, because that's what Air's database connection layer is going to return you. If you use int data type for fields you'll get zeros. With Number it's will propagate NULLs correctly. Thanks, Charlie On Mon, Nov 24, 2008 at 12:18 AM, jason_williams_mm [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Charlie Hubbard [EMAIL PROTECTED] wrote: I've read over all of the docs on Air, but there seems to be a missing discussion around NULL values in SQLLite and how those map back to datatypes. What I've found is that if I have an int field type I can't get a NULL value to ever get inserted into the SQLLite. It just ends up inserting 0 (zero). In Java we'd just convert to using a true Object like Integer class, and that would handle this problem for us. What is the equivalent with Actionscript? If you want NULLs and numbers what is an object and a number, and will Air convert between the two correctly? Thanks Charlie It would help to see the code that you are using, however, the following code gives the same results in both 1.5 and 1.1: ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=run() mx:Script ![CDATA[ import mx.utils.ObjectUtil; private function run():void { trace(NativeApplication.nativeApplication.runtimeVersion); var con:SQLConnection = new SQLConnection(); con.open(File.applicationStorageDirectory.resolvePath(nulltesting.db)); var sql:SQLStatement = new SQLStatement(); sql.sqlConnection = con; sql.text = CREATE TABLE test (id integer);; sql.execute(); sql.text = INSERT INTO test VALUES(null);; sql.execute(); sql.text = INSERT INTO test VALUES(1);; sql.execute(); sql.text = INSERT INTO test VALUES(2);; sql.execute(); sql.text = INSERT INTO test VALUES(3);; sql.execute(); sql.text = SELECT * FROM test;; sql.execute(); trace(ObjectUtil.toString(sql.getResult().data)); } ]] /mx:Script /mx:WindowedApplication -- trace output -- (Array)#0 [0] (Object)#1 id = (null) [1] (Object)#2 id = 1 [2] (Object)#3 id = 2 [3] (Object)#4 id = 3 Each of the values returned in the object is a Number. Hope that helps some. jw -- j:pn \\no comment
[flexcoders] How to Add and Remove items from one list to another on click of button
Hi All I am trying to move multiple items from one list to another on click of Add button. Please correct me if I am wrong. I have data provider for both these lists as an array and I was thinking that for adding I need to put the selected items in another array and need to add that array items in first list and delete those items from the second list. Does anyone know how would i achieve that functionality and is this the right approach, My data provider is dynamic and I used HTTP service to constantly update my database. Can anyone help me in moving selected items from one list to another on click of button. Any links, examples and help will be appreciated Many Many Thanks in advance. Anuj
[flexcoders] Re: supertabnavigator component and reordering tabs
From looking at the code and the example, this event is fired when you drag and drop a tab from one position to another. --- In flexcoders@yahoogroups.com, Derrick Anderson [EMAIL PROTECTED] wrote: Hi, Does anyone familiar with the SuperTabNavigator in FlexLib know how to capture the tab reorder event? I looked in the code and I see that it dispatches the event TabReorderEvent, but when I listen for that event like so: surveyPages.addEventListener(SuperTabBar.TABS_REORDERED, onTabReorder); flexlib:SuperTabNavigator id=surveyPages my function is never called, anyone know how to do this? thanks, d.
[flexcoders] help here with an item renderer
Hi I have a xml file and it has a button1800/button1 and so forth, and also I have a repeater (a horizontal list) which grabs the xml and the item renderer with a button, instead of doing the horizontal list do the click I'd like to make the button inside the item renderer to do that. how could I do that? I was trying to use in the item rendered private function send():void{ mx:Script ![CDATA[ public function send(event:MouseEvent):void{ var urlRequest : URLRequest = new URLRequest({data.button1}); navigateToURL( urlRequest, _self ); } ]] /mx:Script and in the button: click=send() so far, it is just putting in my browser mybroser/{data.button1} but I'd like to put in there the URL, how could I? Regards, Gus Gustavo A. Duenas Creative Director LEFT AND RIGHT SOLUTIONS 904. 265 0330 - 904. 386 7958 www.leftandrightsolutions.com Jacksonville - Florida
Re: [flexcoders] Security sandbox and two domains
The .swf being loaded from Site B are nothing more than simple Flash animations. No video, audio or even text. The issue is that something (probably security related but hell if I can figure out what) is preventing the .swfs from Site B from being rendered when we attach one of their inner movieclips to the display list. Terry On Nov 23, 2008, at 10:24 PM, Alex Harui wrote: Not sure what is in your SWF. Is it pulling a FLV from somewhere? Is it being sized correctly? I’d make a simple animation SWF in Flash and try to see what is going on.
[flexcoders] [CUSTOM COLLECTION SERIALIZATION - BLAZEDS]
Hello guys, I have a custom collection in Java and I'd like to bind it to my custom collection in Flex using AMF. I'm using BlazeDS. I implemented IExternalizable and Externalizable both ends but I still always get back a ArrayList instead of my custom implementation. The objects inside of the collection are bound correctly, only the collection that remains. Any hints about this? Regards, João
RE: [flexcoders] The Online Flex Builder!
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.rockonflash.com, somewhere near the beginning of the archives I would think. -Original Message- From: flexcoders@yahoogroups.com on behalf of Cato Paus Sent: Mon 24/11/2008 19:20 To: flexcoders@yahoogroups.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. __winmail.dat
[flexcoders] Re: Security sandbox and two domains
I don't think it matters what is in the swf it matters that one swf is requesting something from other then the server it was loaded from. If your running Flash 10 things have changed - you have to do more things then just a basic crossdomain file. Run your application in FireBug and you will see the requests - and see requests errors that occur.. A lot of people are having issues with this now: Adobe implemented the stricter requirements in Flash Player in three phases. In Phase 1, which began with Flash Player 9,0,115,0, a small number of strict rules were enforced immediately, but most violations of the strict rules resulted only in warnings visible in Debug versions of Flash Player. In Phase 1.5, which began with Flash Player 9,0,124,0, the warnings of Phase 1 became errors in the specific case of socket operations. In Phase 2, which began with Flash Player 10.0, all of the warnings of Phase 1 became errors and the transition to stricter rules was complete. Recommend you read this document http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.htm l
[flexcoders] Has anyone figured out runtime FXG loading?
Hey guys, I'm pulling my hair out trying to figure out how to make this work. I have an FXG file, and I'm trying to load it at runtime in my flex application: ?xml version=1.0 encoding=utf-8 ? Graphic version=1.0 viewHeight=20 viewWidth=20 xmlns= http://ns.adobe.com/fxg/2008; Library Definition name=Tile1 Group id=tile1 Rect width=20 height=20 fill SolidColor color=#5fff83/ /fill /Rect Line xFrom=0.353516 yFrom=0.353516 xTo=20.3535 yTo=20.3535 stroke SolidColorStroke color=#d9e021 caps=none weight=1 joints=miter miterLimit=4/ /stroke /Line /Group /Definition /Library /Graphic I know there is a way to do this, I'm just not able to see it right at this moment. Any pointers? Cheers, Nate
[flexcoders] Re: XML attributes
I was finally able to do this with the following code I hope it helps someone else later): for each (var channel:XML in items) { var myString:String = [EMAIL PROTECTED]; } Not sure why I had to use a for each loop to do this. Semantically I thought this would have been equivalent: var myString:String = [EMAIL PROTECTED]; Dave
[flexcoders] Re: Removing an item from a sorted ArrayCollection?
--- In flexcoders@yahoogroups.com, bjorn [EMAIL PROTECTED] wrote: Thanks for that suggestion .. it seems to behave the same way though. I can partly fix this by doing a myAc.refresh() every time, but I see all kinds of strange behaviour (elements will be duplicated, etc.). No one knows the answer to my initial question about why there is a problem implementing removeItemAt()/addItemAt() on a sorted AC? It's tempting to make a WorkingArrayCollection.as ;-) Did you try using a ListCollectionView that points at the same source? I don't think you need a separate as file to do this. -Amy
[flexcoders] How can I create a path animation in Flex?
I would like to be able to draw a path and then have an object travel through that path. I know how to draw a path in AS3. But I need to get some tips on how I can make an object (i.e. car) following that path. Something like the original LineRider. A while ago I saw an example on a blog, which I did not bookmark, and I am unable to locate it again. Thanks, Gilbert
[flexcoders] UID, how is it used ?
I think I am misinterpreting the uid property usage http://livedocs.adobe.com/flex/3/html/help.html?content=about_dataprovid\ ers_8.html http://livedocs.adobe.com/flex/3/html/help.html?content=about_dataprovi\ ders_8.html In a BlazeDS application I am using an ArrayCollection of items (VOs) returned from the server. I thought when I implement the iuid interface, that will guide flex framework for deciding on objects equality and then I can use the getItemIndex(Obj) kind of functions. But It didn't work. So I wrote this simple test. I was expecting to see person1 and clone1 would pass equality test. But they didn't. What am I missing ? I am actually looking for something I can use like Java equals. -- File Person.as \ - package { import mx.core.IUID; public class Person implements IUID { public var _uid:String; public function get uid(): String { return _uid; } public function Person() { } public function set uid(value: String): void { _uid=value; } } } -- File test.mxml mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=vertical mx:Script ![CDATA[ public function onClick():void { var person1:Person = new Person(); var person2:Person = new Person(); var clone1:Person = new Person(); person1.uid = 1; person2.uid = 2; clone1.uid = 1; trace(UIDs are person1:+person1.uid+ person2:+person2.uid+ clone1:+clone1.uid); trace(Is person1 and person2 equal ? + (person1 == person2)); trace(Is person1 and twin1 equal ? + (person1 == clone1)); } ]] /mx:Script mx:Button label=run equality test click=onClick() / /mx:Application
[flexcoders] Re: Prob With Remoteobject Timeout in FlexClient -
Is managed collection available for BlazeDS ? --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Monday 24 Nov 2008, Fotis Chatzinikos wrote: If your calculations are that slow, make a process that precalculates and saves the results somewhere and then return this via the RPC call... Or use one call to (re)start the process, and then access the new results by polling for them or using a BlazeDS managed collection so it automatically sees the changes. -- Tom Chiverton Helping to advantageously embrace enterprise interdependent magnetic industry-wide bandwidth 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] Can I use a nested XML element as a dataprovider for my pie chart?
Hi everyone, can I use a nested XML element as a dataprovider for my pie chart? I have the following XML file: ?xml version='1.0' encoding='UTF-8' ? data result test001464/test001 test002425/test002 test00326/test003 test00463/test004 test0054573/test005 subresult answerYes/answer answers90/answers /subresult subresult answerNo/answer answers10/answers /subresult /result result test001254/test001 test002346/test002 test00346/test003 test00463/test004 test005453/test005 /result /data I would like to have a pie chart based on the subresult. Thanks.
[flexcoders] SWF Verification
Does anyone know if SWF verification as implemented in Flash Media Server communication could be used to make AMF3 calls more secure? It would be lovely to know how the Flash Player sends the hash of the currently running swf to the server for verification. Greetz Erik
[flexcoders] copying large amount of data using System.setClipboard() in Flash 10.
I understand the security issue that Adobe fixed in Flash 10. In Flash 9, when it comes time to copy large amount of data and to avoid the time out issue in browsers I used to chunk the data and call callLater(foo) to allow for a progress bar while copying the data (and a cancel button). Now, how can I do that in Flash 10, since the above methodology will violate Flash 10 security model? As a side question, is there a sample for how to properly call setClipbaord() so that Flash 10 does copy? Thanks,
RE: [flexcoders] UID, how is it used ?
UID is mainly used by selection management in the list classes. It is not used by actionscript for testing object equality From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of erdal Sent: Monday, November 24, 2008 1:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] UID, how is it used ? I think I am misinterpreting the uid property usage http://livedocs.adobe.com/flex/3/html/help.html?content=about_dataproviders_8.html In a BlazeDS application I am using an ArrayCollection of items (VOs) returned from the server. I thought when I implement the iuid interface, that will guide flex framework for deciding on objects equality and then I can use the getItemIndex(Obj) kind of functions. But It didn't work. So I wrote this simple test. I was expecting to see person1 and clone1 would pass equality test. But they didn't. What am I missing ? I am actually looking for something I can use like Java equals. -- File Person.as - package { import mx.core.IUID; public class Person implements IUID { public var _uid:String; public function get uid(): String { return _uid; } public function Person() { } public function set uid(value: String): void { _uid=value; } } } -- File test.mxml mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:Script ![CDATA[ public function onClick():void { var person1:Person = new Person(); var person2:Person = new Person(); var clone1:Person = new Person(); person1.uid = 1; person2.uid = 2; clone1.uid = 1; trace(UIDs are person1:+person1.uid+ person2:+person2.uid+ clone1:+clone1.uid); trace(Is person1 and person2 equal ? + (person1 == person2)); trace(Is person1 and twin1 equal ? + (person1 == clone1)); } ]] /mx:Script mx:Button label=run equality test click=onClick() / /mx:Application
RE: [flexcoders] Re: Security sandbox and two domains
SWF content is generally not blocked by crossdomain. Access to pixels and objects in untrusted swfs are. I would check the x,y,width,height of things and use a simpler test file. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Anthony DeBonis Sent: Monday, November 24, 2008 12:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Security sandbox and two domains I don't think it matters what is in the swf it matters that one swf is requesting something from other then the server it was loaded from. If your running Flash 10 things have changed - you have to do more things then just a basic crossdomain file. Run your application in FireBug and you will see the requests - and see requests errors that occur.. A lot of people are having issues with this now: Adobe implemented the stricter requirements in Flash Player in three phases. In Phase 1, which began with Flash Player 9,0,115,0, a small number of strict rules were enforced immediately, but most violations of the strict rules resulted only in warnings visible in Debug versions of Flash Player. In Phase 1.5, which began with Flash Player 9,0,124,0, the warnings of Phase 1 became errors in the specific case of socket operations. In Phase 2, which began with Flash Player 10.0, all of the warnings of Phase 1 became errors and the transition to stricter rules was complete. Recommend you read this document http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.htm l
Re: [flexcoders] SWF Verification
On Nov 24, 2008, at 5:09 PM, EECOLOR wrote: It would be lovely to know how the Flash Player sends the hash of the currently running swf to the server for verification. http://kb.adobe.com/selfservice/viewContent.do?externalId=kb405456 I don't think you can control how it sends the hash - it's done in the background by the Flash Player and connection to FMS. What you do is upload a verified version of the SWF to the application directory - or a place where FMS can read it. good luck, jon
Re: [flexcoders] UID, how is it used ?
Actionscript doesn't implement an equivalent to java's .hashCode() and .equals() pattern; whether or not that's a good thing is an exercise best left to the reader - and a source of a few heated discussions around these parts, too ;-) I've written a little utility class you can use if you need a quick way to test for equality for the purposes of comboboxes or lists: http://flex.joshmcdonald.info/2008/10/selecting-right-value-from-combobox-or.html -Josh On Tue, Nov 25, 2008 at 7:31 AM, erdal [EMAIL PROTECTED] wrote: I think I am misinterpreting the uid property usage http://livedocs.adobe.com/flex/3/html/help.html?content=about_dataproviders_8.html In a BlazeDS application I am using an ArrayCollection of items (VOs) returned from the server. I thought when I implement the iuid interface, that will guide flex framework for deciding on objects equality and then I can use the getItemIndex(Obj) kind of functions. But It didn't work. So I wrote this simple test. I was expecting to see person1 and clone1 would pass equality test. But they didn't. What am I missing ? I am actually looking for something I can use like Java equals. -- File Person.as - package { import mx.core.IUID; public class Person implements IUID { public var _uid:String; public function get uid(): String { return _uid; } public function Person() { } public function set uid(value: String): void { _uid=value; } } } -- File test.mxml mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:Script ![CDATA[ public function onClick():void { var person1:Person = new Person(); var person2:Person = new Person(); var clone1:Person = new Person(); person1.uid = 1; person2.uid = 2; clone1.uid = 1; trace(UIDs are person1:+person1.uid+ person2:+person2.uid+ clone1:+clone1.uid); trace(Is person1 and person2 equal ? + (person1 == person2)); trace(Is person1 and twin1 equal ? + (person1 == clone1)); } ]] /mx:Script mx:Button label=run equality test click=onClick() / /mx:Application -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/ :: http://twitter.com/sophistifunk
Re: [flexcoders] copying large amount of data using System.setClipboard() in Flash 10.
How do you append to the clipboard? On Tue, Nov 25, 2008 at 8:23 AM, Ilam Mougy [EMAIL PROTECTED] wrote: I understand the security issue that Adobe fixed in Flash 10. In Flash 9, when it comes time to copy large amount of data and to avoid the time out issue in browsers I used to chunk the data and call callLater(foo) to allow for a progress bar while copying the data (and a cancel button). Now, how can I do that in Flash 10, since the above methodology will violate Flash 10 security model? As a side question, is there a sample for how to properly call setClipbaord() so that Flash 10 does copy? Thanks, -- 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 -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/ :: http://twitter.com/sophistifunk
[flexcoders] Re: Architecture question using Move Effect and Events
I apologize if the context of my question is not fully clear, and I greatly appreciate you taking the time to respond. However, your assumption is not correct. The way the applciation is working so that there is actually 30, 40 or even more instances of the custom MXML components rendered on the canvas at any given point. this is all determined at runtime, and each instance of MyCustomMXMLComponent is moving across the canvas with its very own instance of a Move Effect. To clarify the question: My custom mxml component is called: MyCustomMXMLComponent.mxml it has a Label and a Text Area inside of it. When a user does a mouse rollover on the Label I want the MyCustomMXMLComponent to stop moving and other actions to happen. I am unable to catch events inside of the MyCustomMXMLComponent.mxml object, the code i use is: var instance:MyCustomMXMLComponent = new MyCustomMXMLComponent(); instance.addEventListner(MouseEvent.ROLL_OVER, handleMouseRollOver); The problem is that when a user moves a mouse over the MyCustomMXMLComponent a UITextField catches the event so when i have the below code in the event handler it fails: //find the MoveInstance and pause for(var i:int = 0; i event.target.activeEffects.length; i++) { if(event.target.activeEffects[i].className == 'MoveInstance') event.target.activeEffects[i].pause(); } Why is the UITextField which is inside of the Label catchign the event when I did not register an eventhandler for it to do anything?? Is there a better way to catch the event so that the MyCustomMXMLComponent can handle the event to stop the Move Effect??? Thank you. --- In flexcoders@yahoogroups.com, Chet Haase [EMAIL PROTECTED] wrote: I'm not sure I understand the whole context, but if I'm right that there's just one of these custom components per app, and therefore one Move effect running on it at any given time, isn't it easier to just cache an instance to the effect itself and pause() it directly when you get the rollover event? Chet. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of devenhariyani Sent: Friday, November 21, 2008 1:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Architecture question using Move Effect and Events below is the code that i am using. maybe this will help you see what i'm trying to do, and help how i should be properly stopping the Move Effect for UI components which are dynamically created at runtime. Thanks! public function initApp:void() { //for each element in an ArrayCollection which was retrieved from a HTTPService //get the element, create a new custom MXML component var uiobj:MyCustomMXMLComponent = new MyCustomMXMLComponent(); this.canvas.addChild(uiobj); uiobj.lblTitle = some title that i get from the array collection; uiobj.txaBrief = some more text i get from the array collection; //add Move Effect to the ui obj to move it on the canvas. moveObj(uiobj); } public static function moveObj(obj:UIComponent):void { var mv:Move = new Move(obj); mv.xBy = -(500); mv.duration = 1; mv.play(); //add event listner to listen for mouse rollover event. obj.addEventListener(MouseEvent.MOUSE_OVER, handleMouseRollOver); obj.addEventListener(MouseEvent.MOUSE_OUT, handleMouseRollOut); } private static function handleMouseRollOver(event:MouseEvent):void { if(event.target.parent.parent.activeEffects[0]) event.target.parent.parent.activeEffects[0].pause(); else if(event.target.parent.activeEffects[0]) event.target.parent.activeEffects[0].pause(); } private static function handleMouseRollOut(event:MouseEvent):void { event.target.parent.parent.activeEffects[0].resume(); } -- MyCustomMXMLComponent.mxml mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; horizontalScrollPolicy=off mx:Label id=lblTitle text=DEFAULT TEXT TITLE / mx:TextArea id=txaBrief text=DEFAULT BRIEF TEXT visible=true color=#c0c0c0 / /mx:VBox --- In flexcoders@yahoogroups.com, devenhariyani devenhariyani@ wrote: Hello, I'm struggling on wrapping my mind around the best way to architect a particular feature i am developing. i have gotten my code to work, but i want to improve it to make it work using a more stable and scaleble design. QUESTION: Now, the problem is when a user rolls the mouse over a custom MXML compoenent which already has a Move effect applied to it, I want the MXML component to stop moving. The custom MXML component has a Label, Text Area,and other components inside of it, but the mouse roll over Event is caught by the inner most UITextField component. Inside the Event Handler i have a very hacky way to stop the Move Effect: event.target.parent.parent.activeEffects[0].pause(); 1. how do i make the custom MXML component catch the event instead of the UITextField buried deep
[flexcoders] FlexBuilder compiler errors on CSS
Hi, When using an external CSS file in my Flex apps, I receive compiler errors from attributes that are not valid for normal browser CSS ('property backgroundAlpha doesn't exist'), either because the attributes don't exist in HTML (fillAlphas) or because they are written in Actionscript style (fontSize rather than font-size). Has anyone else seen this, or know why it might be happening? These errors don't occur if the CSS are within the Style tag in the main application file. They occur during the build, and I get the usual alert about errors in the project, asking if I want to continue to launch the application. -- Thanks, Tom Tom McNeer MediumCool http://www.mediumcool.com 1735 Johnson Road NE Atlanta, GA 30306 404.589.0560
[flexcoders] get the properties of an image after its loaded
I have some embedded images, and I need to manipulate them with effects. I don't want to have to explicitly specify the height and width of these for calculations. When you don't specify a height and width of an image, it takes its actual size, so I'm assuming there is a way to get the width and height of an image after it is loaded. is this done through img.loaderInfo? or img.content? I tried img.getConstraintValue('height'); but that returns NaN. Everything I've tried either gives me NaN or undefined. Does anyone know how to access this? Thank you. Jayson
[flexcoders] Re: SWFLoader source
I think, in my case, both apps did have same main.swf filename, but were inside different projects/paths. I assumed the source path diff would still load the correct one, but it did not. I'll make sure the swfs have different filenames and try again. Thanks Alex! Don --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Depending on how you are loading, you can't load a second app with the same name myapp From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Don Kerr Sent: Sunday, November 23, 2008 2:23 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] SWFLoader source Can SWFLoader load an app not within the same project/site folder? I have an application in http://www.mydomain.com/flex/project1/bin/myapp.swf I want to use SWFLoader to load this app inside another app located in a separate project2 site folder http://www.mydomain.com/flex/project2/bin/myapp.swf But, when I use a full url as source, it doesn't load mx:SWFLoader id=loader1 source=http://www.mydomain.com/flex/project1/bin/myapp.swf/ It only looks inside the same project1 folder for the swf, not the full path. I need to keep the apps in separate folders. Any suggestions? Thanks, Don
Re: [flexcoders] How to Add and Remove items from one list to another on click of button
Hi Guys Problem Solved. If anyone needed that code here it is on click of button call this function Thanks private function addToAssociatedDevices(evt:MouseEvent):void { var _addDevicesLen:int=devicesInList.length; var _addToAssociatedDevicesArr:Array; for(var i:*=0;i_addDevicesLen-1;i++) { _addToAssociatedDevicesArr=nvrsInPoolList.selectedItems; } if((_addToAssociatedDevicesArr is Array)(_addToAssociatedDevicesArr!=null)) { for each (var addItemVal:* in _addToAssociatedDevicesArr) { IList(camerasInPoolList.dataProvider).addItem(addItemVal as Object); } } for(var t:*=0;t_addToAssociatedDevicesArr.length;t++) { IList(nvrsInPoolList.dataProvider).removeItemAt(nvrsInPoolList.selectedIndex); } } On Mon, Nov 24, 2008 at 11:41 AM, anuj181 [EMAIL PROTECTED] wrote: Hi All I am trying to move multiple items from one list to another on click of Add button. Please correct me if I am wrong. I have data provider for both these lists as an array and I was thinking that for adding I need to put the selected items in another array and need to add that array items in first list and delete those items from the second list. Does anyone know how would i achieve that functionality and is this the right approach, My data provider is dynamic and I used HTTP service to constantly update my database. Can anyone help me in moving selected items from one list to another on click of button. Any links, examples and help will be appreciated Many Many Thanks in advance. Anuj
Re: [flexcoders] FlexBuilder compiler errors on CSS
Hi Tom I used external CSS as follows Application { background-color:#92959E; backgroundAlpha:2; borderThickness:0; } and it is working fine in my case. However if I modify my external CSS using Dreamwaever it does not sho the property backgroundAlpha though. Anuj On Mon, Nov 24, 2008 at 3:33 PM, Tom McNeer [EMAIL PROTECTED] wrote: Hi, When using an external CSS file in my Flex apps, I receive compiler errors from attributes that are not valid for normal browser CSS ('property backgroundAlpha doesn't exist'), either because the attributes don't exist in HTML (fillAlphas) or because they are written in Actionscript style (fontSize rather than font-size). Has anyone else seen this, or know why it might be happening? These errors don't occur if the CSS are within the Style tag in the main application file. They occur during the build, and I get the usual alert about errors in the project, asking if I want to continue to launch the application. -- Thanks, Tom Tom McNeer MediumCool http://www.mediumcool.com 1735 Johnson Road NE Atlanta, GA 30306 404.589.0560
Re: [flexcoders] Re: Removing an item from a sorted ArrayCollection?
On Mon, Nov 24, 2008 at 3:45 AM, bjorn [EMAIL PROTECTED] wrote: No one knows the answer to my initial question about why there is a problem implementing removeItemAt()/addItemAt() on a sorted AC? Well, the cool thing about using those mx.collections.* classes, as opposed to, for example, just using Arrays (besides binding, that is) is using a cursor view of them so you don't really have to go counting with your fingers where a particular item is. If you have a sorted collection (of Point objects, lets say), you can create a cursor and use that to find, remove, etc. whatever it is that you're looking for. You can quickly do stuff like: // sort the items first by x, in descending order, then by y ascending // (without cumbersome Array sort functions). var customSort:Sort = new Sort(); customSort.fields = [ new SortField(x, false, true), new SortField(y) ]; collection.sort = customSort; collection.refresh(); // later on, you need to find the first point, according to this order, which // has and x of 160 and and y of 130. Instead of looping through the set, // you can use a cursor like this: var cursor:IViewCursor = collection.createCursor(); var itemFound:Boolean = cursor.findFirst({x:160, y:130}) // now your cursor is pointing to the item you're looking for (you can check // on it by looking at the 'current' property), if it has found it. Without // having to worry on which index it was, you can just then say: if (itemFound) cursor.remove(); This is just a simple example of the sort of things that you should be using collections for. I'd suggest a quick glance over the IViewCursor docs to see how cool that approach is. Remember that collections (like ArrayCollection, for example) are just particular views of rawer data sets; Their aim is just to make your life simpler in the end. HTH, -- gabriel montagné láscaris comneno http://rojored.com t/506.8367.6794
[flexcoders] Re: Newbie binding question
--- In flexcoders@yahoogroups.com, Michael Prescott [EMAIL PROTECTED] wrote: I'm having some troubles with data binding and a named event generated by a custom non-visual component. What I'm trying to do is have a property (say, 'data') which, when it changes, triggers the usual data-binding updates, but also fires an event that can be listened to in the MXML. For example: foo:MyClass id=thingy dataChanged=Alert.show('hi mom');/ mx:Label text={thingy.data}/ I can't seem to meet both of these requirements without throwing two separate events. Is this what I should expect? When I do this: [Event(name=dataChanged)] public class MyClass { [Bindable(name=dataChanged)] public function set data(data:Object):void { this._data = data; dispatchEvent( new Event(dataChanged) ); ..then the data binding doesn't work. (The label text doesn't get updated.) It seems I have to resort to vanilla data binding (with no event name), and in addition throw a 'dataChanged' event of my own. [Event(name=dataChanged)] public class MyClass { [Bindable] public function set data(data:Object):void { this._data = data; dispatchEvent( new Event(dataChanged) ); Am I missing something? When Flex comes back to look at your data because you fired the event, it can't get it because you made it write only by only providing a setter and not a getter. HTH; Amy
Re: [flexcoders] copying large amount of data using System.setClipboard() in Flash 10.
I don't, I accumulate the string, and eventually I call setClipbaord(), that is why it doesn't work I guess, because I called callLater(foo). Thanks, --- On Mon, 11/24/08, Josh McDonald [EMAIL PROTECTED] wrote: From: Josh McDonald [EMAIL PROTECTED] Subject: Re: [flexcoders] copying large amount of data using System.setClipboard() in Flash 10. To: flexcoders@yahoogroups.com Date: Monday, November 24, 2008, 3:12 PM How do you append to the clipboard? On Tue, Nov 25, 2008 at 8:23 AM, Ilam Mougy [EMAIL PROTECTED] com wrote: I understand the security issue that Adobe fixed in Flash 10. In Flash 9, when it comes time to copy large amount of data and to avoid the time out issue in browsers I used to chunk the data and call callLater(foo) to allow for a progress bar while copying the data (and a cancel button). Now, how can I do that in Flash 10, since the above methodology will violate Flash 10 security model? As a side question, is there a sample for how to properly call setClipbaord( ) so that Flash 10 does copy? Thanks, - - -- -- Flexcoders Mailing List FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt Alternative FAQ location: https://share. acrobat.com/ adc/document. do?docid= 942dbdc8- e469-446f- b4cf-1e62079f684 7 Search Archives: http://www.mail- archive.com/ flexcoders% 40yahoogroups. comYahoo! Groups Links http://groups. yahoo.com/ group/flexcoders / Individual Email | Traditional http://groups. yahoo.com/ group/flexcoders /join (Yahoo! ID required) mailto:flexcoders-digest@ yahoogroups. com mailto:flexcoders-fullfeat [EMAIL PROTECTED] .com flexcoders-unsubscr [EMAIL PROTECTED] com http://docs. yahoo.com/ info/terms/ -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] com :: http://flex. joshmcdonald. info/ :: http://twitter. com/sophistifunk
[flexcoders] Re: copying large amount of data using System.setClipboard() in Flash 10.
I don't append to clipboard. I append to a string, and after finishing the accumulation, I call setClipboard(), this is when I violated the security model. I call callLater(foo) and foo has the code to setClipboard(). Thanks, --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: How do you append to the clipboard? On Tue, Nov 25, 2008 at 8:23 AM, Ilam Mougy [EMAIL PROTECTED] wrote: I understand the security issue that Adobe fixed in Flash 10. In Flash 9, when it comes time to copy large amount of data and to avoid the time out issue in browsers I used to chunk the data and call callLater(foo) to allow for a progress bar while copying the data (and a cancel button). Now, how can I do that in Flash 10, since the above methodology will violate Flash 10 security model? As a side question, is there a sample for how to properly call setClipbaord() so that Flash 10 does copy? Thanks, -- 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 -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/ :: http://twitter.com/sophistifunk
[flexcoders] Re: check compiler configurations in runtime
The stack trace trick works well. I've written a little class that automates the check. http://michaelvandaniker.com/blog/2008/11/25/how-to-check-debug-swf/ --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: If the app has debug info in it, the text in an Error().getStackTrace() will be different. I don't think there's a test to see if you're hooked to a debugger. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andres Serral Sent: Wednesday, November 19, 2008 10:40 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] check compiler configurations in runtime Hello. I´ve a simple question. Can I access to compiler configurations in runtime? Basically I need check if the app is in debugmode Thanks
Re: [flexcoders] Re: supertabnavigator component and reordering tabs
Hi, I understand that is when it 'should' be dispatched, but my problem is that I have a listener function that is never getting called when I reorder the tabs. I'm listening for the event like: superTabNavElement.addEventListener(SuperTabBar.TABS_REORDERED, onTabReorder); Any ideas? d. On Mon, Nov 24, 2008 at 2:46 PM, valdhor [EMAIL PROTECTED] wrote: From looking at the code and the example, this event is fired when you drag and drop a tab from one position to another. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Derrick Anderson [EMAIL PROTECTED] wrote: Hi, Does anyone familiar with the SuperTabNavigator in FlexLib know how to capture the tab reorder event? I looked in the code and I see that it dispatches the event TabReorderEvent, but when I listen for that event like so: surveyPages.addEventListener(SuperTabBar.TABS_REORDERED, onTabReorder); flexlib:SuperTabNavigator id=surveyPages my function is never called, anyone know how to do this? thanks, d.
[flexcoders] Re: Scrolling with custom item renderers
minWidth did the trick. thanks very much. add me to the long list of people who owe part of their sanity to you. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Set minWidth=0 on your component. You may also need to fix its size based on its parent's size From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jimmy5804 Sent: Friday, November 21, 2008 10:53 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Scrolling with custom item renderers I have a VBox-based custom component (call it 'A') that displays some data in a list of windowshade-ish item renderers. My problem is A doesn't scroll when its child renderers exceed its dimensions. Here are the relevant factors as far as I'm aware: -scrollpolicy is set to auto (on shows a disabled bar) -as far as I can tell, measure() is implemented properly in the item renderers. - A is nested inside another Box. - when I add more children to my A component, the value of A.getExplicitOrMeasuredWidth() continues to increase although it visually does not. Because of this last issue, I'm wondering if A is getting clipped by it's parent container which has scrollpolicy set to off. If this is the problem, how can I show scrollbars on the inner container and not on the outer? Do I need to manually size A to match the dimensions of its parent? TIA
RE: [flexcoders] [CUSTOM COLLECTION SERIALIZATION - BLAZEDS]
Hi João, Does your custom ActionScript collection class use [RemoteClass(alias=...)] metadata to map to your corresponding custom Java collection class on the server? Using [RemoteClass] requires that you have a hard dependency on this custom AS collection class in your app in order for mxmlc to generate the necessary registerClassAlias call during Flex app init; if you don't have an explicit variable of this type in your app, just create a dummy variable during startup that is thrown away and gc'ed and it should do the trick. Best, Seth From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Joao Kreuzberg Sent: Monday, November 24, 2008 12:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] [CUSTOM COLLECTION SERIALIZATION - BLAZEDS] Hello guys, I have a custom collection in Java and I'd like to bind it to my custom collection in Flex using AMF. I'm using BlazeDS. I implemented IExternalizable and Externalizable both ends but I still always get back a ArrayList instead of my custom implementation. The objects inside of the collection are bound correctly, only the collection that remains. Any hints about this? Regards, João
RE: [flexcoders] mx:consumer bandwidth questions
Hi Jitendra, Selector expressions defined by a Consumer that subscribes to a JMS messaging destination are passed through to the JMS server and evaluated there. Only messages that arrive at your JMS server that satisfy the selector expression will be forwarded to the JMS Consumer proxy running within BlazeDS or LCDS, and from there on out to the Consumer in your Flex. Best, Seth From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jitendra jain Sent: Friday, November 21, 2008 11:04 PM To: flex group flex Subject: [flexcoders] mx:consumer bandwidth questions Hi coders, I have a consumer that gets the messages from ACTIVEMQ. I am using a selector property for filtering of message. Does it uses the bandwidth ? I want to know the bandwidth usage with and without selector property. Thanks for your valuable advices in advance. Thanks, with Regards, Jitendra Jain Be the first one to try the new Messenger 9 Beta! Click here.
[flexcoders] ItemRenderer's style is changed when scrolling DataGrid
hi everyone, i wrote a renderer which extends DataGridItemRenderer in DataGrid some code below: override public function getTextStyles():TextFormat { if (!listData||this.text==) { return super.getTextStyles(); } if(listData.uid != lastUID) { var tf:TextFormat = super.getTextStyles(); if(data is PositionDataBottomInfo) { tf.bold = true; } else { tf.bold = false; } } return tf; } if i don't operate the DataGrid, every row's style is correct. however , when i scroll the DataGrid, the row's style is incorrect. after scrolling some rows turn bold, some turn normal. thinks
Re: [flexcoders] Embedding Flash Player
Yeah, we've accepted that already :) But perhaps I shouldn't throw cross-platform around so loosely -- our initial Beta is Mac/Win only... On Tue, Nov 25, 2008 at 04:24, Tom Chiverton [EMAIL PROTECTED]wrote: On Friday 21 Nov 2008, Jules Suggate wrote: 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 I'm not aware of any desktop cross-platform (i.e. Linux, Mac, Windows) run time that has a burnCD() function... You'll have to ship (3 ?) native binaries at least, I imagine... -- Tom Chiverton Helping to appropriately morph synergies 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 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