Re: [flexcoders] Breeze Live Presentation on Flex and Cairngorm
FYI the sample application code, README, presentation slides and meeting recording URL are available here: http://www.rocketboots.com.au/blog/index.cfm?mode=entryentry=C6173106-E081-51EF-A73336809276EB7C Robin On 27/01/2005, at 1:50 PM, Robin Hilliard wrote: Hi All, Just letting you know that I'm doing a little presentation on Flex and Cairngorm tomorrow as part of the Macromedia Australia - New Zealand Community seminar series. The meeting is at 3pm Australian Eastern Standard Time and will be recorded. The URL is http://www.macromedia.com/go/anzcommunity Cheers, Robin
RE: [flexcoders] Re: Path to a Combo Box Cell Renderer Inside a D ata Grid
Hey RK, Right, I also suggested that... Thanks, -Abdul -Original Message- From: RK [mailto:[EMAIL PROTECTED] Sent: Monday, January 31, 2005 7:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Path to a Combo Box Cell Renderer Inside a Data Grid Hello Abdul, Try the following. It worked for me, I don't know if it is elegant but works. var _combobox = filterDG.rows[_index].cells[_cellIndex].combo; where _index is datagrid row index and _cellIndex is column index. good luck, -rk --- In flexcoders@yahoogroups.com, cpsdesigns2002 [EMAIL PROTECTED] wrote: I've used a combo box cell renderer class for a column in a datagrid. However, I can't determine the path to the combo box in a particular cell after it is initially drawn. I want to reset the selectedIndex in the combo when a new item is added to the datagrid. Is there a way I can access that combo box's path? Yahoo! Groups Links
A nearly complete click-and-hold menu!
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ladies and Gentlemen, May I present to you a click and hold contextual menu package Beta 1 http://designgods.net/misc_stuff/flex/popMenu.mxml.swf Some things to note: * Operation - click and hold anywhere in the application. I have mapped sample menus for everything. The code is such that if there is no menu mapped somewhere it will not try to display one. * Try and get a context menu while clicking and holding over the push button - It doesn't work? I think it's something in the menu controls but I haven't tested it thoroughly. * Clicking and dragging will still pop up a menu... I'm going to work on a fix at my next convenience... any hints as to an elegant solution would be appreciated as I just noticed it tonight. * Sometimes clicking and then quickly clicking somewhere else causes the menu code to fail. Not sure why. * Source code will be available later on... I still feel I have a lot of work to do before I'm willing to publish it (at the very least a ton of documentation needs to be put in. I'm thinking of trying NaturalDocs on it.) Okay... please give me your feedback, bug reports, etc... I'm looking to make this a solid package for open release. Thanks, Seth -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) iD8DBQFB/cjDsnBTlzgQQ28RAsi+AJ0W1l7X3/DeyV6pviY5aWL4neaZ6wCfYjh0 PwPds2idc892/q05sIs4o2U= =bmUy -END PGP SIGNATURE-
RE: [flexcoders] Re: Refactored App, now: Initializing... THEN NO THING...
This is usually caused by a bug in the application (infinite loop, etc.). Try turning off the preloader (set usePreloader=false on the Application tag) and seeing what happens. Jason -Original Message- From: Chris Phillips [mailto:[EMAIL PROTECTED] Sent: Saturday, January 29, 2005 3:17 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Refactored App, now: Initializing... THEN NO THING... BTW, I've done this with certain combinations of tags/containers. Just goes to 100 and then sit's there stuck at 100 and not doing anything. On Wed, 26 Jan 2005 11:50:51 -0500, Roger Gonzalez [EMAIL PROTECTED] wrote: Some things to try (I personally don't believe that it is the 32k issue): - Toggle optimization - Toggle the SWO cache - Double check any static dependencies - Turn on the compile report and check class deps - Connect with the debugger to see where it is wedged. When the progress bar finishes the initializing phase, does the dialog disappear or does it hang at 100%? (It is waiting for the app to kill it, so its an interesting data point to see if it continues and wedges elsewhere or isn't getting removed.) -Roger Roger Gonzalez mailto:[EMAIL PROTECTED] -Original Message- From: extensive_systems [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 25, 2005 9:35 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Refactored App, now: Initializing... THEN NOTHING... Ok, adding ?debug=true, refactoring again to make code smaller or larger to get under/over (as per suggestions) a '32K Limit' does not solve this tedious issue. I find that (to cite one example of a few possible) if I leave the following simple code inline (instead of refactoring it to its own MXML file for modularity and further expansion as I certainly want to do) then the app compiles, links and loads. But if I place it in its own MXML file, and reference the nested component in standard fashion, things don't work, as I've described. mx:Tree id=foobar width=100% height=70% xmlns:xxx=xxx.* xmlns:esf-view=com.extensivesystems.esf.view.* xmlns:mx=http://www.macromedia.com/2003/mxml; /mx:Tree --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: You are probably on the edge of the 32k limit. Add ?debug=true to your app url. Sometime that gets over the hump, and lets you run, sometimes it shows the error message. I you can find out where the limit is being hit, either make the code smaller by more refactoring, or add some bogus code. It appears that there is some threshold where the 32k limit strikes, but adding more code causes flex to generate differently. Large script blocks are a particular problem. Move them into a class. But try the more code route first. Tracy -Original Message- From: extensive_systems [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 25, 2005 4:40 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Refactored App, now: Initializing... THEN NOTHING... Flex 1.5 Has anybody any insight into this issue that I've just run into after refactoring my app's MXML code? When I run the app the Initializing progress bar shows up, goes to 100% then... nothing - no sign of life, no message... All I did was make some new components (i.e., cut MXML text from a couple of files and created a few new MXML files, then referred to the components represented by the latter in the former. BTW, I can make the app fail as described in more than one way, so it doesn't seem to be just one bad snippet of code. Yahoo! Groups Links Yahoo! Groups Links Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Chris Phillips www.dealerpeak.com Senior Application Developer Yahoo! Groups Links
How do you pass reference to button from MXML to javascript??
Hi We have an existing code in which the _javascript_ code (which paints the screen using HTML) invokes another _javascript_ function by passing a parameter this. This parameter is a reference tothe current object, which could be a button. The destination _javascript_ function then extracts the id attribute of the parameter. Existing Code: input type=button class=button id=next multdrcrdet_ONCLICK17(this,this); Pseudo code of _javascript_: function multdrcrdet_ONCLICK17(obj,p1) { var tmpBtnId = Obj.id; if (tmpBtnId == 'Save' || tmpBtnId == 'Post') { // do something } else { // do something else } } We are changing this functionality to use Flex. So now the screen is being painted using Flex and we are trying to invoke the same destination _javascript_ function. We need to know a way to pass the object reference i.e. button reference so that the _javascript_ function doesnot need to change. The workaround that we are doing currently is that we are passing the id attribute of the button from flex and we have modified the _javascript_ function to use the parameter passed to it rather than to extract the id attribute out of the parameter. As we do not know how to pass a reference we are invoking the multdrcrdet_ONCLICK17(\next\) and changedthe _javascript_ function to use the obj directly rather than doing obj.id we do not want to change the _javascript_ function Is there a way in which we can pass a reference of the button from flex to _javascript_ function so that it does not need to be changed at all and it can extract the id attribute and continue in its functionality? Thanks Srikanth
RE: [flexcoders] How do you pass reference to button from MXML to javascript??
Hi, Is there a way in which we can pass a reference of the button from flex to _javascript_ function so that it does not need to be changed at all and it can extract the id attribute and continue in its functionality? No! You can only pass primitive types (string, number, boolean etc). -abdul From: Srikanth Duvvuri [mailto:[EMAIL PROTECTED] Sent: Monday, January 31, 2005 12:19 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] How do you pass reference to button from MXML to _javascript_?? Hi We have an existing code in which the _javascript_ code (which paints the screen using HTML) invokes another _javascript_ function by passing a parameter this. This parameter is a reference to the current object, which could be a button. The destination _javascript_ function then extracts the id attribute of the parameter. Existing Code: input type="button" class="button" id="next" Pseudo code of _javascript_: function multdrcrdet_ONCLICK17(obj,p1) { var tmpBtnId = Obj.id; if (tmpBtnId == 'Save' || tmpBtnId == 'Post') { // do something } else { // do something else } } We are changing this functionality to use Flex. So now the screen is being painted using Flex and we are trying to invoke the same destination _javascript_ function. We need to know a way to pass the object reference i.e. button reference so that the _javascript_ function does not need to change. The workaround that we are doing currently is that we are passing the id attribute of the button from flex and we have modified the _javascript_ function to use the parameter passed to it rather than to extract the id attribute out of the parameter. As we do not know how to pass a reference we are invoking the multdrcrdet_ONCLICK17(\next\) and changed the _javascript_ function to use the obj directly rather than doing obj.id we do not want to change the _javascript_ function Is there a way in which we can pass a reference of the button from flex to _javascript_ function so that it does not need to be changed at all and it can extract the id attribute and continue in its functionality? Thanks Srikanth
RE: [flexcoders] How do you pass reference to button from MXMLtojavascript??
Hey Abdul Does thatmean that I need to pass the id to my _javascript_ and change my _javascript_ function to not bother in extracting the id attribute.. no other go, is what you mean.. am I right?? We are working on converting a huge application into Flex and are trying to minimize the extent of code change to the existing app.. that is the reason for looking at not modifying the existing _javascript_ code Srikanth -Original Message- From: Abdul Qabiz [mailto:[EMAIL PROTECTED] Sent: Monday, January 31, 2005 1:06 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How do you pass reference to button from MXMLtojavascript?? Hi, Is there a way in which we can pass a reference of the button from flex to _javascript_ function so that it does not need to be changed at all and it can extract the id attribute and continue in its functionality? No! You can only pass primitive types (string, number, boolean etc). -abdul From: Srikanth Duvvuri [mailto:[EMAIL PROTECTED] Sent: Monday, January 31, 2005 12:19 PM To: [EMAIL PROTECTED] Subject: [flexcoders] How doyou pass reference to button from MXML to _javascript_?? Hi We have an existing code in which the _javascript_ code (which paints the screen using HTML) invokes another _javascript_ function by passing a parameter this. This parameter is a reference to the current object, which could be a button. The destination _javascript_ function then extracts the id attribute of the parameter. Existing Code: input type=button class=button id=next multdrcrdet_ONCLICK17(this,this); Pseudo code of _javascript_: function multdrcrdet_ONCLICK17(obj,p1) { var tmpBtnId = Obj.id; if (tmpBtnId == 'Save' || tmpBtnId == 'Post') { // do something } else { // do something else } } We are changing this functionality to use Flex. So now the screen is being painted using Flex and we are trying to invoke the same destination _javascript_ function. We need to know a way to pass the object reference i.e. button reference so that the _javascript_ function does not need to change. The workaround that we are doing currently is that we are passing the id attribute of the button from flex and we have modified the _javascript_ function to use the parameter passed to it rather than to extract the id attribute out of the parameter. As we do not know how to pass a reference we are invoking the multdrcrdet_ONCLICK17(\next\) and changed the _javascript_ function to use the obj directly rather than doing obj.id we do not want to change the _javascript_ function Is there a way in which we can pass a reference of the button from flex to _javascript_ function so thatit does not need to be changed at all and it can extract the id attribute and continue in its functionality? Thanks Srikanth
RE: [flexcoders] How do you pass reference to button from MXMLtojavascript??
Srikanth, I wouldnt depend heavily on the Flash player - _javascript_ bridge; you depend on the viewing browser when you do this. Were I you, Id attempt to put all your existing logic completely inside Flex. The Flash Player methods (those used by _javascript_) have not changed since Flash Player 3. This should tell you how simplistic (and unsupportive) these methods are. Obtaining references to objects within Flash Player memory is certainly well outside this functionality. From the sounds of things, you need to review your plan fromthe top down. Good luck! Robert From: SrikanthDuvvuri [mailto:[EMAIL PROTECTED] Sent: 31 January 2005 09:37 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How do you pass reference to button from MXMLtojavascript?? Hey Abdul Does thatmean that I need to pass the id to my _javascript_ and change my _javascript_ function to not bother in extracting the id attribute.. no other go, is what you mean.. am I right?? We are working on converting a huge application into Flex and are trying to minimize the extent of code change to the existing app.. that is the reason for looking at not modifying the existing _javascript_ code Srikanth -Original Message- From: Abdul Qabiz [mailto:[EMAIL PROTECTED] Sent: Monday, January 31, 2005 1:06 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How do you pass reference to button from MXMLtojavascript?? Hi, Is there a way in which we can pass a reference of the button from flex to _javascript_ function so that it does not need to be changed at all and it can extract the id attribute and continue in its functionality? No! You can only pass primitive types (string, number, boolean etc). -abdul From:Srikanth Duvvuri [mailto:[EMAIL PROTECTED] Sent: Monday, January 31, 2005 12:19 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How doyou pass reference to button from MXML to _javascript_?? Hi We have an existing code in which the _javascript_ code (which paints the screen using HTML) invokes another _javascript_ function by passing a parameter this. This parameter is a reference to the current object, which could be a button. The destination _javascript_ function then extracts the id attribute of the parameter. Existing Code: input type=button class=button id=next multdrcrdet_ONCLICK17(this,this); Pseudo code of _javascript_: function multdrcrdet_ONCLICK17(obj,p1) { var tmpBtnId = Obj.id; if (tmpBtnId == 'Save' || tmpBtnId == 'Post') { // do something } else { // do something else } } We are changing thisfunctionality to use Flex. So now the screen is being painted using Flex and we are trying to invoke the same destination _javascript_ function. We need to know a way to pass the object reference i.e. button reference so that the _javascript_ function does not need to change. The workaround that we are doing currently is that we are passing the id attribute of the button from flex and we have modified the _javascript_ function to use the parameter passed to it rather than to extract the id attribute out of the parameter. As we do not know how to pass a reference we are invoking the multdrcrdet_ONCLICK17(\next\) and changed the _javascript_ function to use the obj directly rather than doing obj.id we do not want to change the _javascript_ function Is there a way in which we can pass a reference of the button from flex to _javascript_ function so thatit does not need to be changed at all and it can extract the id attribute and continue in its functionality? Thanks Srikanth
RE: [flexcoders] How do you pass reference to button from MXML to javascript??
Hey Manish The last part of your mail was very right.. as part of the phase-1, we are using flex only for ui rendering.. phase-2 would deal with moving some more logic into flex.. Coming to the code snippet that you sent.. do you think I can continue to use my javascript function and your mxmlcode.. I think NO.. can you suggest something so that my javascript function remains untouched i.e. it works on the id attribute of the parameter passed, and mxml passes a suitable value to it.. Thanks Srikanth -Original Message- From: Manish Jethani [mailto:[EMAIL PROTECTED] Sent: Monday, January 31, 2005 1:21 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How do you pass reference to button from MXML to javascript?? Srikanth Duvvuri wrote: Existing Code: input type=button class=button id=next onClick=javascript:return multdrcrdet_ONCLICK17(this,this); Pseudo code of javascript: function multdrcrdet_ONCLICK17(obj,p1) { var tmpBtnId = Obj.id; if (tmpBtnId == 'Save' || tmpBtnId == 'Post') { // do something } else { // do something else } } We are changing this functionality to use Flex. How are you calling the JavaScript function? http://www.moock.org/webdesign/flash/fscommand/ Disclaimer: I haven't tried this... You can access the button object in your Flex app simply by referring to it by its name. mx:Application mx:Button id=Save click=callExternalScriptFoo('Save') / /mx:Application In your JS you can refer to the button using its id: // javascript function myFoo() { // flashMovie.Save is the button, where flashMovie // is the name/id of the Flex app (the SWF) } Of course, if you only want to know which button was clicked, you can just use the name passed to the JS function. BTW, it appears that you're using Flex _only for rendering the UI components_ and leaving the client-side logic to external JavaScript. Any reason why you can't port it to Flex (ActionScript)? Flex is more than just pretty buttons and menus. Manish Yahoo! Groups Links
RE: [flexcoders] How do you pass reference to button from MXML to javascript??
You can probably create another function in js, which calls the main js function. You call the following call_multdrcrdet_ONCLICK17(..) from Flex. function call_multdrcrdet_ONCLICK17(id, otherData) { var o = {id:id, otherData:otherData}; multdrcrdet_ONCLICK17(o, o); } You can keep such proxy functions, in separate js file. So rather than changing the signature of existing functions, you are creating more... There could be better ways, this is just an idea.. -abdul -Original Message- From: Srikanth Duvvuri [mailto:[EMAIL PROTECTED] Sent: Monday, January 31, 2005 2:04 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How do you pass reference to button from MXML to javascript?? Hey Manish The last part of your mail was very right.. as part of the phase-1, we are using flex only for ui rendering.. phase-2 would deal with moving some more logic into flex.. Coming to the code snippet that you sent.. do you think I can continue to use my javascript function and your mxmlcode.. I think NO.. can you suggest something so that my javascript function remains untouched i.e. it works on the id attribute of the parameter passed, and mxml passes a suitable value to it.. Thanks Srikanth -Original Message- From: Manish Jethani [mailto:[EMAIL PROTECTED] Sent: Monday, January 31, 2005 1:21 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How do you pass reference to button from MXML to javascript?? Srikanth Duvvuri wrote: Existing Code: input type=button class=button id=next onClick=javascript:return multdrcrdet_ONCLICK17(this,this); Pseudo code of javascript: function multdrcrdet_ONCLICK17(obj,p1) { var tmpBtnId = Obj.id; if (tmpBtnId == 'Save' || tmpBtnId == 'Post') { // do something } else { // do something else } } We are changing this functionality to use Flex. How are you calling the JavaScript function? http://www.moock.org/webdesign/flash/fscommand/ Disclaimer: I haven't tried this... You can access the button object in your Flex app simply by referring to it by its name. mx:Application mx:Button id=Save click=callExternalScriptFoo('Save') / /mx:Application In your JS you can refer to the button using its id: // javascript function myFoo() { // flashMovie.Save is the button, where flashMovie // is the name/id of the Flex app (the SWF) } Of course, if you only want to know which button was clicked, you can just use the name passed to the JS function. BTW, it appears that you're using Flex _only for rendering the UI components_ and leaving the client-side logic to external JavaScript. Any reason why you can't port it to Flex (ActionScript)? Flex is more than just pretty buttons and menus. Manish Yahoo! Groups Links Yahoo! Groups Links
Jaas with Flex
Hi, have you some tutorial and/or link how to integrate java jaas with Flex any suggestion is appreciate. Thank you Devis
RE: [flexcoders] Jaas with Flex
Do a search for the article on devnet written by Brian Deitte. It's an *excellent* overview, and will point you to all the right places in the docs that cover this as well. Best, Steven -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 31 January 2005 09:59 To: Flex Coders Subject: [flexcoders] Jaas with Flex Hi, have you some tutorial and/or link how to integrate java jaas with Flex any suggestion is appreciate. Thank you Devis Yahoo! Groups Links --- Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.776 / Virus Database: 523 - Release Date: 12/10/2004
[flexcoders] Jaas with Flex
Sorry but i dont't find your article can you help me... Bye Devis Steven Webster ha scritto: Do a search for the article on devnet written by Brian Deitte. It's an *excellent* overview, and will point you to all the right places in the docs that cover this as well. Best, Steven -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 31 January 2005 09:59 To: Flex Coders Subject: [flexcoders] Jaas with Flex Hi, have you some tutorial and/or link how to integrate java jaas with Flex any suggestion is appreciate. Thank you Devis Yahoo! Groups Links --- Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.776 / Virus Database: 523 - Release Date: 12/10/2004 Yahoo! Groups Links
RE: [flexcoders] Jaas with Flex
http://www.google.co.uk/search?hl=enq=brian+deitte+securitymeta= -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 31 January 2005 10:41 To: flexcoders@yahoogroups.com Subject: [flexcoders] Jaas with Flex Sorry but i dont't find your article can you help me... Bye Devis Steven Webster ha scritto: Do a search for the article on devnet written by Brian Deitte. It's an *excellent* overview, and will point you to all the right places in the docs that cover this as well. Best, Steven -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 31 January 2005 09:59 To: Flex Coders Subject: [flexcoders] Jaas with Flex Hi, have you some tutorial and/or link how to integrate java jaas with Flex any suggestion is appreciate. Thank you Devis Yahoo! Groups Links --- Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.776 / Virus Database: 523 - Release Date: 12/10/2004 Yahoo! Groups Links Yahoo! Groups Links --- Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.776 / Virus Database: 523 - Release Date: 12/10/2004
Re: [flexcoders] A nearly complete click-and-hold menu!
Nicely done! Seth Voltz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ladies and Gentlemen, May I present to you a click and hold contextual menu package Beta 1 http://designgods.net/misc_stuff/flex/popMenu.mxml.swf Some things to note: * Operation - click and hold anywhere in the application. I have mapped sample menus for everything. The code is such that if there is no menu mapped somewhere it will not try to display one. * Try and get a context menu while clicking and holding over the push button - It doesn't work? I think it's something in the menu controls but I haven't tested it thoroughly. * Clicking and dragging will still pop up a menu... I'm going to work on a fix at my next convenience... any hints as to an elegant solution would be appreciated as I just noticed it tonight. * Sometimes clicking and then quickly clicking somewhere else causes the menu code to fail. Not sure why. * Source code will be available later on... I still feel I have a lot of work to do before I'm willing to publish it (at the very least a ton of documentation needs to be put in. I'm thinking of trying NaturalDocs on it.) Okay... please give me your feedback, bug reports, etc... I'm looking to make this a solid package for open release. Thanks, Seth -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) iD8DBQFB/cjDsnBTlzgQQ28RAsi+AJ0W1l7X3/DeyV6pviY5aWL4neaZ6wCfYjh0 PwPds2idc892/q05sIs4o2U= =bmUy -END PGP SIGNATURE- Yahoo! Groups Links
ChartHow to drop the shadow on the line in linechart
HI My question is how to drop the shadow on the line series plotted in the linechart? The shadow of the line makes the line looks thick even if I set it to weight=1 Wilfred
Re: [flexcoders] How do you pass reference to button from MXML to javascript??
Srikanth Duvvuri wrote: The last part of your mail was very right.. as part of the phase-1, we are using flex only for ui rendering.. phase-2 would deal with moving some more logic into flex.. Okay, I'm assuming the client-side logic is too complex to port right away. Otherwise I wouldn't do this in two phases. It's most likely not worth it (but you know better!). Coming to the code snippet that you sent.. do you think I can continue to use my javascript function and your mxmlcode.. I think NO.. can you suggest something so that my javascript function remains untouched i.e. it works on the id attribute of the parameter passed, and mxml passes a suitable value to it.. I'd go with Abdul's suggestion: i.e., use a wrapper JS function. Manish
How to catch Clickevent in CustomCellrenderer of a datagrid?
I have a Custom Cellrenderer, the Cell only contains a image. How can I catch the Click Event and whats the best way to determine which cell was clicked? This is my current code: mx:VBox xmlns:mx=http://www.macromedia.com/2003/mxml mx:Image id=waartekoop source=@Embed('waar_te_koop.gif') width=13 height=13 / /mx:VBox Greets, Sjors Pals
your letter
Hello, The [EMAIL PROTECTED] email address has become so infected with spam that I never check it. If you don't know the google email address that I use, the site-guru Will Baude does. Thanks, and I hope to hear from you. Best, - Amanda Butler
RE: [flexcoders] ChartHow to drop the shadow on the line in linechart
Solved with mx:LineSeries renderer. No problem now Wilfred -Original Message- From: Wilfred LEUNG [mailto:[EMAIL PROTECTED] Sent: Monday, January 31, 2005 8:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] ChartHow to drop the shadow on the line in linechart HI My question is how to drop the shadow on the line series plotted in the linechart? The shadow of the line makes the line looks thick even if I set it to weight=1 Wilfred Yahoo! Groups Links
RE: [flexcoders] How to catch Clickevent in CustomCellrenderer of a datagrid?
This really depends on your needs. Usually, I call dispatchEvent on the cell's listowner from within the, e.g. mx:VBox xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script var listOwner:Object; var getCellIndex:Function; private function doMouseUp():Void { listOwner.dispatchEvent({type: imageClick, itemIndex: getCellIndex().itemIndex, cellIndex: getCellIndex.cellIndex}) } /mx:Script mx:Image source=@Embed('waar_te_koop.gif') mouseUp=doMouseUp()/ /mx:VBox You'l lof course have to add an eventlistener for the imageClick event tothe list this cell belongs to. The events itemIndex and cellIndex fields contain the according indices. Dirk. -Original Message- From: Sjors Pals [mailto:[EMAIL PROTECTED] Sent: Monday, January 31, 2005 2:25 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to catch Clickevent in CustomCellrenderer of a datagrid? I have a Custom Cellrenderer, the Cell only contains a image. How can I catch the Click Event and whats the best way to determine which cell was clicked? This is my current code: mx:VBox xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Image id=waartekoop source=@Embed('waar_te_koop.gif') width=13 height=13 / /mx:VBox Greets, Sjors Pals Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Effects
Hi I would like to do some effects like fadein-fadeout on a chart. I found that if the fonts are embedded, then things are working alright. However, if I am not using embedded fonts, it does not work. Any idea? Or is this a normal behaviour? Wilfred
your letter
Hello, The [EMAIL PROTECTED] email address has become so infected with spam that I never check it. If you don't know the google email address that I use, the site-guru Will Baude does. Thanks, and I hope to hear from you. Best, - Amanda Butler
your letter
Hello, The [EMAIL PROTECTED] email address has become so infected with spam that I never check it. If you don't know the google email address that I use, the site-guru Will Baude does. Thanks, and I hope to hear from you. Best, - Amanda Butler
Credit Card Validator for Switch/Solo
http://www.prismix.com/ Hello Flexcoders, Has anyone modified the credit card validator to include Switch and Solo cards? I also heard rumours that certain Gold Cards would fail with Kuhn mod10, but I haven't been able to verify. Anyone else have problems with this algorithm? Many thanks, Allen Allen Manning, Technical Director Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com http://www.prismix.com/ --_=_NextPart_002_01C507A2.4EEF0BB4 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: quoted-printable !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd; HTMLHEADTITLENiklas Richardson, Prismix Ltd/TITLE META http-equiv=Content-Type content=text/html; charset=us-ascii META content=MSHTML 6.00.2900.2523 name=GENERATOR/HEAD BODY background=http://www.prismix.com/images/background.gif TABLE cellSpacing=0 cellPadding=0 width=606 border=0 TBODY TR TDA href=http://www.prismix.com/;IMG height=82 alt=Prismix Ltd - designing usable business solutions - MacromediaAlliance Partner src=http://www.prismix.com/email/top2.gif; width=606 border=0/A/TD/TR TR TD style=BACKGROUND-IMAGE: url(http://www.prismix.com/email/mid2.gif) background=mid.gif TABLE cellSpacing=0 cellPadding=0 width=520 align=center border=0 TBODY TR TD style=FONT-SIZE: 12px; COLOR: #47476a; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif DIVSPAN style=FONT-SIZE: 12px; COLOR: #47476a; FONT-FAMILY: Verdana,Arial, Helvetica, sans-serifSPAN class=334553114-31012005Hello Flexcoders,/SPAN/SPAN/DIV DIVSPAN style=FONT-SIZE: 12px; COLOR: #47476a; FONT-FAMILY: Verdana,Arial, Helvetica, sans-serifSPAN class=334553114-31012005FONT color=#00 size=2/FONT/SPAN/SPANnbsp;/DIV DIVSPAN style=FONT-SIZE: 12px; COLOR: #47476a; FONT-FAMILY: Verdana,Arial, Helvetica, sans-serifSPAN class=334553114-31012005FONT color=#00 size=2Has anyone modified the credit card validator to include Switch and Solo cards?nbsp; /FONT/SPAN/SPAN/DIV DIVSPAN style=FONT-SIZE: 12px; COLOR: #47476a; FONT-FAMILY: Verdana,Arial, Helvetica, sans-serifSPAN class=334553114-31012005FONT color=#00 size=2/FONT/SPAN/SPANnbsp;/DIV DIVSPAN style=FONT-SIZE: 12px; COLOR: #47476a; FONT-FAMILY: Verdana,Arial, Helvetica, sans-serifSPAN class=334553114-31012005FONT color=#00 size=2I also heard rumours that certain Gold Cards would fail withnbsp;Kuhn mod10, but I haven't been able to verify.nbsp; Anyone else have problems with this algorithm?/FONT/SPAN/SPAN/DIV DIVSPAN style=FONT-SIZE: 12px; COLOR: #47476a; FONT-FAMILY: Verdana,Arial, Helvetica, sans-serifSPAN class=334553114-31012005FONT color=#00 size=2/FONT/SPAN/SPANnbsp;/DIV DIVSPAN style=FONT-SIZE: 12px; COLOR: #47476a; FONT-FAMILY: Verdana,Arial, Helvetica, sans-serifSPAN class=334553114-31012005FONT color=#00 size=2Many thanks,/FONT/SPAN/SPAN/DIV DIVSPAN style=FONT-SIZE: 12px; COLOR: #47476a; FONT-FAMILY: Verdana,Arial, Helvetica, sans-serifSPAN class=334553114-31012005FONT color=#00 size=2Allen/FONTnbsp;/SPAN/SPAN/DIV/TD/TR/TBODY/TABLE/TD/TR TR TD style=BACKGROUND-IMAGE: url(http://www.prismix.com/email/bottom2.gif) vAlign=top width=606 background=http://www.prismix.com/email/bottom2.gif height=106 TABLE height=106 cellSpacing=0 cellPadding=5 width=530 align=center border=0 TBODY TR height=29 TDnbsp;/TD/TR TR height=21 TD style=FONT-SIZE: 10px; COLOR: #47476a; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif vAlign=centerSPAN style=FONT-SIZE: 10px; COLOR: #47476a; FONT-FAMILY: Verdana,Arial, Helvetica, sans-serifSTRONGAllen Manning/STRONG, Technical Director /SPAN/TD/TR TR height=26 TD style=FONT-SIZE: 10px; COLOR: #47476a; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif vAlign=topSPAN style=FONT-SIZE: 10px; COLOR: #47476a; FONT-FAMILY: Verdana,Arial, Helvetica, sans-serifPrismix Ltd STRONGt:/STRONG +44 (0)870 749 1100 STRONGf:/STRONG+44 (0)870 749 1200 STRONGw:/STRONG A style=COLOR: #47476a href=http://www.prismix.com/;www.prismix.com/A /SPAN/TD/TR/TBODY/TABLE/TD/TR/TBODY/TABLE/BODY/HTML --_=_NextPart_002_01C507A2.4EEF0BB4--image/gifimage/gif
Problem with Repeater.
Hi, I (newbie) have to code a calenderview like outlook. Several Days must be displayed. My first idea was using on DataGrid with multiple Columns. But I've problems with dragging elements from one day to an other. My next idea was using multiple DataGrids with one Column. Both ideas have the problem to display more than one appointment at one time (like Outlook). Does anybody have a better idea to solve this problem or a ready component? My example with multiple DataGrids (see below) is not displaying the correct headerText. It should be a value from the dp:Array. It works for the mx:Label, but not for the mx:DataGridColumn. What am I doing wrond? Thanks for your help, Michael Hnat - code - ?xml version=1.0? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* backgroundColor=#FF mx:Script ![CDATA[ var dp:Array = [{name:1},{name:2}, {name:3}, {name:4}, {name:5}]; var initDG:Array = [{ Day:'06:00'}, { Day:'07:00'}, { Day:'08:00'}, { Day:'09:00'}]; ]] /mx:Script mx:Panel title=Repeater Panel mx:HBox mx:Repeater id=rp dataProvider={dp} recycleChildren=true mx:Label text={rp.currentItem.name} / mx:DataGrid id=dg2 dataProvider={initDG} editable=true mx:columns mx:Array mx:DataGridColumn headerText={rp.currentItem.name} columnName=Day width=100/ /mx:Array /mx:columns /mx:DataGrid /mx:Repeater /mx:HBox /mx:Panel /mx:Application
[no subject]
Is it still valid to use source="servlet" on the RemoteObject to gain accessto a server session... I don't see it mentioned in the API or in LiveDocs. Did I miss something and it was removed? Jimmy Gianninas - Developer Optimal Payments Inc.
Re: [flexcoders] A nearly complete click-and-hold menu!
It looks great. Jeff http://www.flexauthority.com - Original Message - From: Seth Voltz [EMAIL PROTECTED] To: Flex Coders flexcoders@yahoogroups.com Sent: Sunday, January 30, 2005 9:57 PM Subject: [flexcoders] A nearly complete click-and-hold menu! -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ladies and Gentlemen, May I present to you a click and hold contextual menu package Beta 1 http://designgods.net/misc_stuff/flex/popMenu.mxml.swf Some things to note: * Operation - click and hold anywhere in the application. I have mapped sample menus for everything. The code is such that if there is no menu mapped somewhere it will not try to display one. * Try and get a context menu while clicking and holding over the push button - It doesn't work? I think it's something in the menu controls but I haven't tested it thoroughly. * Clicking and dragging will still pop up a menu... I'm going to work on a fix at my next convenience... any hints as to an elegant solution would be appreciated as I just noticed it tonight. * Sometimes clicking and then quickly clicking somewhere else causes the menu code to fail. Not sure why. * Source code will be available later on... I still feel I have a lot of work to do before I'm willing to publish it (at the very least a ton of documentation needs to be put in. I'm thinking of trying NaturalDocs on it.) Okay... please give me your feedback, bug reports, etc... I'm looking to make this a solid package for open release. Thanks, Seth -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) iD8DBQFB/cjDsnBTlzgQQ28RAsi+AJ0W1l7X3/DeyV6pviY5aWL4neaZ6wCfYjh0 PwPds2idc892/q05sIs4o2U= =bmUy -END PGP SIGNATURE- Yahoo! Groups Links
Re: [flexcoders] Effects
As somone put it to me a while back - Welcome to the world of effects... This is normal behavior. Embedded fonts are required for effects. Jeff http://www.flexauthority.com - Original Message - From: Wilfred LEUNG [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, January 31, 2005 5:53 AM Subject: [flexcoders] Effects Hi I would like to do some effects like fadein-fadeout on a chart. I found that if the fonts are embedded, then things are working alright. However, if I am not using embedded fonts, it does not work. Any idea? Or is this a normal behaviour? Wilfred Yahoo! Groups Links
RE: [flexcoders]
It should work, but I think this name should change in the future when dotNet version isavailable. In my personal preference, I will start using Gateway.getHttpRequest() to get access to the HTTP resources. William Chan Macromedia - Flex QA Newton 617-219-2011 -Original Message-From: Dimitrios Gianninas [mailto:[EMAIL PROTECTED]Sent: Monday, January 31, 2005 11:04 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Is it still valid to use source="servlet" on the RemoteObject to gain access to a server session... I don't see it mentioned in the API or in LiveDocs. Did I miss something and it was removed? Jimmy Gianninas - Developer Optimal Payments Inc.
RE: [flexcoders] Jaas with Flex
Thanks Steven. I also of course recommend reading that excellent overview. :) Also, here's my response from an internal question about JAAS: JAAS is at a deeper level in the J2EE appserver than what Flex works with. We have no specific hooks into JAAS and this is a very appserver and setup-specific piece. We can usually integrate with JAAS with a little legwork, but it depends on how JAAS works on their appserver. If they can integrate JAAS with the resource-constraints in web.xml, then we will automatically integrate with JAAS on their appserver. See the security examples for how we hook into resource-constraints. If they only are using RemoteObject for the authentication piece, then can write their own LoginCommand that works with their JAAS setup. See the {flex}/examples/security/LoginCommand for an example of this. -Brian -Original Message- From: Steven Webster [mailto:[EMAIL PROTECTED] Sent: Monday, January 31, 2005 5:28 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Jaas with Flex Do a search for the article on devnet written by Brian Deitte. It's an *excellent* overview, and will point you to all the right places in the docs that cover this as well. Best, Steven -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 31 January 2005 09:59 To: Flex Coders Subject: [flexcoders] Jaas with Flex Hi, have you some tutorial and/or link how to integrate java jaas with Flex any suggestion is appreciate. Thank you Devis Yahoo! Groups Links --- Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.776 / Virus Database: 523 - Release Date: 12/10/2004 Yahoo! Groups Links
RE: [flexcoders] session servlet
The session servlet has not been removed, but we recommend a different way of doing things now. See here: http://www.macromedia.com/support/documentation/en/flex/1_5/migration.html#sessions -Brian From: Dimitrios Gianninas [mailto:[EMAIL PROTECTED] Sent: Monday, January 31, 2005 11:04 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Is it still valid to use source="servlet" on the RemoteObject to gain accessto a server session... I don't see it mentioned in the API or in LiveDocs. Did I miss something and it was removed? Jimmy Gianninas - Developer Optimal Payments Inc.
RE: [flexcoders] Problem with Repeater.
Hi, welcome on board. You may get performance problems with DataGrids placed inside a Repeater tag. Probably a better solution would be to use mx.controls.List components for your calendar. You may also want to take a look into the CellRenderer API - cell renderers give you a very high level of control on cells inside list based controls. Dirk. -Original Message- From: Michael Hnat [mailto:[EMAIL PROTECTED] Sent: Monday, January 31, 2005 4:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problem with Repeater. Hi, I (newbie) have to code a calenderview like outlook. Several Days must be displayed. My first idea was using on DataGrid with multiple Columns. But I've problems with dragging elements from one day to an other. My next idea was using multiple DataGrids with one Column. Both ideas have the problem to display more than one appointment at one time (like Outlook). Does anybody have a better idea to solve this problem or a ready component? My example with multiple DataGrids (see below) is not displaying the correct headerText. It should be a value from the dp:Array. It works for the mx:Label, but not for the mx:DataGridColumn. What am I doing wrond? Thanks for your help, Michael Hnat - code - ?xml version=1.0? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* backgroundColor=#FF mx:Script ![CDATA[ var dp:Array = [{name:1},{name:2}, {name:3}, {name:4}, {name:5}]; var initDG:Array = [{ Day:'06:00'}, { Day:'07:00'}, { Day:'08:00'}, { Day:'09:00'}]; ]] /mx:Script mx:Panel title=Repeater Panel mx:HBox mx:Repeater id=rp dataProvider={dp} recycleChildren=true mx:Label text={rp.currentItem.name} / mx:DataGrid id=dg2 dataProvider={initDG} editable=true mx:columns mx:Array mx:DataGridColumn headerText={rp.currentItem.name} columnName=Day width=100/ /mx:Array /mx:columns /mx:DataGrid /mx:Repeater /mx:HBox /mx:Panel /mx:Application Yahoo! Groups Links
RE: [flexcoders] Effects
They're only required for fade effects. This is because the Flash Player cannot use alpha when it renders a system font. - Gordon -Original Message- From: Jeff Steiner [mailto:[EMAIL PROTECTED] Sent: Monday, January 31, 2005 8:08 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Effects As somone put it to me a while back - Welcome to the world of effects... This is normal behavior. Embedded fonts are required for effects. Jeff http://www.flexauthority.com - Original Message - From: Wilfred LEUNG [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, January 31, 2005 5:53 AM Subject: [flexcoders] Effects Hi I would like to do some effects like fadein-fadeout on a chart. I found that if the fonts are embedded, then things are working alright. However, if I am not using embedded fonts, it does not work. Any idea? Or is this a normal behaviour? Wilfred Yahoo! Groups Links Yahoo! Groups Links
Re: [flexcoders] Problem with Repeater.
Michael Hnat wrote: My example with multiple DataGrids (see below) is not displaying the correct headerText. It should be a value from the dp:Array. Indeed it does. I tried your code on my Flex installation. Manish
Accordion skinning
I have modified the pulseBlue.fla to re-skin all the components including the accordion... now, the new skins work for everything but the accordion...any have any idea why?
HTTPService Fault
Hey, all. We just loaded Flex 1.5 on our Solaris 8 server and for every Flex sample, we get this error: HTTPService Fault; java.lang.RuntimeException: Bad service name : FormatSourceService Any idea what this is about and how we might get around it? Thanks! Kevin Conboy Lead UI Engineer / Office Dullard SpireMedia® Inspired Technology. Inspired Results. vox: 303.620.9974 ext 316 fax: 303.629.6385 [EMAIL PROTECTED] www.spiremedia.com
OpenType Fonts?
I am trying to use an OpenType font in Flex and getting this error: 1 Warning found. Warning /mxml-test.jsp:16 Font not found at: file:/blah/assets/Fonts/avenirltstd_light.otf I know the file exists, so does this mean that OpenType Fonts are not supported? Thanks. -James