Re: [flexcoders] Re: textInput - Flex 4 vs. Flex 3
mx:TextInput id=textinput1 text={data.name.[0]} / Remove the dot after name like this mx:TextInput id=textinput1 text={data.name[0]} / Regards Igor Costa www.igorcosta.com www.igorcosta.org On Wed, Jul 14, 2010 at 4:07 PM, tex_learning_flex tex.learning.f...@gmail.com wrote: Gordon, I had the following call in a Flex 3 component which worked exactly as I wanted/expected: mx:TextInput id=textinput1 text={data.name.[0]} / When I try this in FlashBuilder 4 I receive 2 errors: Type 1084: Syntax error: expecting identifier before leftbracket. Type 1084: Syntax error: expecting rightparen before end of program. Any feedback will be appreciated. thanks, Tex
Re: [flexcoders] Flash Builder 4 - How to update?
Unistall the existing beta. download the new one and install. Thats all you need Igor Costa www.igorcosta.com www.igorcosta.org On Mon, Mar 22, 2010 at 7:30 PM, Eduardo Dias eduardod...@gmail.com wrote: Hi Guys, Does anyone know how can i update the Flash Builder 4 from beta to the newest final release? Thanks ! -- Best Regards, Eduardo Dias
Re: [flexcoders] Where can I find a lot of Flex 3 AS3 examples?? Code that from other people?
Try this. http://tinyurl.com/ya6ofba Igor Costa 2010/2/28 Csomák Gábor csom...@gmail.com did you try 'tour de flex'? http://www.adobe.com/devnet/flex/tourdeflex/ 2010/2/28 fred44455 fred44...@yahoo.com I am trying to learn Flex 3 AS3 but I need a lot of examples where can I find this?? I need real examples maybe from real sites or books or even source code in Flex that I could purchase. Thanks for your time. -- before printing, think about enviromental responsibility
[flexcoders] BlazeDS for .Net what happened?
I`m wondering what happen to the project BlazeDs for .Net that disapear from the labs.adobe.com any official announcements ? Regards -- Igor Costa www.igorcosta.org
Re: [flexcoders] Flex DMV 3.4.0
Here http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex3sdk Is really open-source? Didn't saw any official news. Regards Igor On Thu, Aug 27, 2009 at 1:21 PM, Battershall, Jeff jeff.battersh...@dowjones.com wrote: Where is DMV 3.4.0 available for download? -- *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Tom Chiverton *Sent:* Thursday, August 27, 2009 11:14 AM *To:* flexcoders@yahoogroups.com *Cc:* Matt Chotin *Subject:* Re: [flexcoders] Flex DMV 3.4.0 On Thursday 27 Aug 2009, Mika Kiljunen wrote: Hi, I just downloaded and installed DMV 3.4.0 with Flex SDK 3.4.0. I compared the sources of DMV 3.3.0 and 3.4.0 and it seems pretty close to nothing has changed. For example even a closed bug from Adobe Bug Issue Management System that was supposed to be fixed in April are not included in DMV 3.4.0 (see https://bugs.adobe.com/jira/browse/FLEXDMV-1785) Hmm, it seems so. ...frameworks/projects/datavisualisation/src/mx/collections/HierarchicalCollectionViewCursor.as still says: /** * @private */ public function findAny(values:Object):Boolean and the done flag is still set incorrectly. I've commented the bug, hopefully Sameer will explain what was changed, although a trivial 'diff' shows now change in the file against the DV for v3.3 or 3.2. -- Helping to proactively drive synergistic principle-centered total markets as part of the IT team of the year, '09 and '08 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 together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. 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*http://www.halliwells.com/ . -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] PDF - Text Display
I did a blog post about this field a while back Check out and see if fits on your own needs http://www.igorcosta.org/?p=231 Regards Igor Costa On Wed, Jun 24, 2009 at 6:13 PM, Avinash kazaavin...@gmail.com wrote: Larson, Please take a look at my blog, and you will know how to load PDF in Flex (well in html through iFrame like Gordon Smith suggested) http://flexpdfair.blogspot.com/ http://flexpdfair.blogspot.com/Avinash On Wed, Jun 24, 2009 at 2:22 PM, lrlarsonny lrlar...@mac.com wrote: Hello -- Am I correct is gleaning from my google searches that there is no way to display a pdf in Flex? (Not Air). And that flashpaper is no more? Given that, how do developers show formatted text? We are building an app that will show documents within the published flex swf, and I just assumed that there was a way to do this. Thanks lrlarson nyc -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] wmode=opaque/transparent and linux
Yes I can confirm that as James said, before that only transparent works but using a hack from polygeek did. Regards Igor Costa On Wed, Jun 24, 2009 at 7:31 PM, hank williams hank...@gmail.com wrote: Thanks James. On Wed, Jun 24, 2009 at 6:05 PM, James Wardjaw...@adobe.comjaward%40adobe.com wrote: This should work fine with a newer version of Firefox (minimum 3.1 I think) and Flash Player 10. I have Firefox 3.5 RC and FP 10 and it works fine. -James From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Sent: Wed Jun 24 13:03:40 2009 Subject: [flexcoders] wmode=opaque/transparent and linux Does this work? One of my developers is telling me that flash on linux doesnt allow divs to overlap flash material. Is this true or is there something wrong with his setup. Thanks Hank -- blog: whydoeseverythingsuck.com -- blog: whydoeseverythingsuck.com -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Dotted Separator Lines for HRULE
Ramesh This going to save you http://blog.dclick.com.br/2008/08/26/dottedspacer-component/pt/ Next time, try to search a little bit at google you will find it. Best Igor Costa On Thu, Jun 25, 2009 at 7:04 PM, ram ramesh ram_y...@yahoo.co.in wrote: Hi , I am really sturggling with the below small implementation Dotted Separator Lines for HRULE Please send me the sample Code . Need to draw one dotted line to separate two text boxes in MXML. Thanks in Advance Ramesh -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Adobe Flex Language Reference
Angelo Not in PDF as I remember, but you can use a local version in html that is built-in in SDK. Regards Igor Costa On Wed, Jun 3, 2009 at 1:02 AM, Angelo Anolin angelo_ano...@yahoo.comwrote: Is there a PDF download for this document? I see this a lot in the Adobe Developer's Guide PDF documentation. Thanks. -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Re: Is this list declining?
Not declining but getting quality of topics. all most increased exchange messages in the past of this list was tend to be good because most were newbies. But the efforts of Adobe bringing the discussion from mailing-list to their forum are a certain of worry about the provider be bought by a competitor and the major support been broken. very clever Adobe at this point and in Forums are well done as Gordon said. Regards Igor Costa On Tue, Jun 2, 2009 at 10:23 AM, Amy amyblankens...@bellsouth.net wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Gordon Smith gosm...@... wrote: There is a lot of traffic (100 posts/day) on the Flex forum at http://forums.adobe.com/community/flex/flex_general_discussion The Adobe forums now support email. How's the nntp support coming? -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Centering my app on the screen...
Laurence, yes. Just create a utility function like and for center the container each time the browser resize, you just add a eventlistener to the stage of app like. import flash.display.DisplayObject; import mx.events.ResizeEvent; public static function centerMyContainer(target:DisplayObject):void { target.x = this.width/2 - target.width * 0.5; target.y = this.height / 2 - target.height * 0.5; } private function init():void { addEventListener(ResizeEvent.RESIZE, centerit); // called in property like creationComplete on mx:Application tag } private function centerIt(e:ResizeEvent):void { centerMyContainer(yourComp); } } Regards Igor www.igorcosta.org On Sat, May 16, 2009 at 8:13 PM, Laurence MacNeill lmacne...@comcast.netwrote: Is there a way I can center my app in the browser window? And keep it there if/when the browser is re-sized? Thanks, Laurence MacNeill Mableton, Georgia, USA -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Application shows with a partial height
If you`re using Flex Builder, try to clean up your project . 1. Select your project 2. Go to the menu and select Project Clean 2. Mark the project to be cleaned up and click OK This is a odd thing happing in Flex Builder 3.0 where the last updates are fixed. Regards Igor On Wed, May 6, 2009 at 9:00 AM, markgoldin_2000 markgoldin_2...@yahoo.comwrote: What could be a cause for an application to show with a normal (full size) width and only about 100-130 pixels of a height? Everything in an app. says 100% for the height. Thanks for the help. -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] alpha - containers, buttons, and skins
If you want to apply the alpha for each control this hapen? Looks like a problem on target to alpha affect. Regards Igor On Mon, May 4, 2009 at 10:50 PM, arieljake arielj...@yahoo.com wrote: Hi, I am trying to understand a weird behavior i am observing when trying to use the alpha property. Please see this image: http://ariel-jakobovits.com/AJ/images/flex/browserControlsAlpha.png I am trying to fade out a box of internet browsing controls when the mouse is rolled-out because the controls are placed over the html control. When i set the alpha property of the container (HBox), clearly the background of the box and the buttons themselves are all affected, but there is a clear variation in the coloring. The box is styled with a background image, and the buttons are skinned with images as well. -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Context menu is not working for Flash Player 10
Two things to verify before that. 1 - Did you instantiate correctly to call the warpper js? 2 - When you debug what erros you got? Regards Igor On Tue, May 5, 2009 at 3:26 PM, Dharmendra Chauhan chauhan_i...@yahoo.comwrote: Hi, My Application is working fine with Flash Player9 but with FP10,it's somewhat broken.I am calling some external method throw ExternalInterFace on Context Menu Select event.None of the method is getting called with FP 10 ie call is not being made. Everything is working fine in FP9 have anybody encountered this issue ? what would be the possible workaround for it ? -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] VBox that scrolls without a scrollbar
Charles As Alex said, you have to write your own VBox Class to update the scroll position. And other thing to keep in mind is that the default mouse wheel behavior in Mac OS doesn`t work correctly, look at google for a replacement for that. Hope you enjoy! Igor On Tue, May 5, 2009 at 5:00 PM, Charles Parcell pokemonkil...@gmail.comwrote: I have a VBox and I want it to scroll using the mouse wheel and some arrow buttons that I will build. The problem is, if I set the verticalScrollPolicy = off then the VBox does not scroll at all. How can I visually turn off the scrollbar and keep the ability to scroll? Thanks, Charles P. -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Adobe Bug | http://bugs.adobe.com/jira/browse/SDK-17299
Rajan Everytime when I use popUp to free memory I put the target displayobject to a null result after I call remove popup. Regards Igor On Wed, Apr 15, 2009 at 11:20 PM, Rajan Jain ilikef...@yahoo.com wrote: Hi Igor Thanks for your help. Actually i have a pop up in which i am using lot of components like Checkbox,Tree control, couple of text controls and few others. Everytime i create popup the new instance of the components are created. I wanted that if i can remove these components from memory then i would be great. Hope the statement below helps. PopUpManager. removePopUp( e.currentTarget. document as IFlexDisplayObject) ; thanks Rajan -- *From:* Igor Costa igorco...@gmail.com *To:* flexcoders@yahoogroups.com *Sent:* Tuesday, April 14, 2009 7:54:51 PM *Subject:* Re: [flexcoders] Adobe Bug | http://bugs.adobe.com/jira/browse/SDK-17299 Rajan Isn't a bug, Not a Bug the problem is the way of your code implementation works. The PopUpManager doesn't work to cast itself. Due to the dependecy of IFlexDisplayObject. Instead of current code example. NOT Right way //action1 if (myPopUp == null) { myPopUp = PopUpManager. createPopUp( this, MyMxmlComponent, false) as MyMxmlComponent; } else { PopUpManager. addPopUp( myPopUp, this, false); } //action1 if (!myPopUp.isPopUp) { myPopUp = PopUpManager. createPopUp( this, MyMxmlComponent, false) as MyMxmlComponent; } else { PopUpManager. addPopUp( myPopUp, this, false); } Remove you should do like PopUpManager. removePopUp( e.currentTarget. document as IFlexDisplayObject) ; regards Igor Costa On Tue, Apr 14, 2009 at 6:24 PM, ilikeflex ilikef...@yahoo. comilikef...@yahoo.com wrote: Hi Adobe bug http://bugs. adobe.com/ jira/browse/ SDK-17299http://bugs.adobe.com/jira/browse/SDK-17299 Does anybody has idea when Adobe is going to fix the above bug ot there is any workaround. Thanks Rajan -- - --- Igor Costa www.igorcosta. com http://www.igorcosta.com/ www.igorcosta. org http://www.igorcosta.org/ -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Adobe Bug | http://bugs.adobe.com/jira/browse/SDK-17299
Rajan Isn't a bug, Not a Bug the problem is the way of your code implementation works. The PopUpManager doesn't work to cast itself. Due to the dependecy of IFlexDisplayObject. Instead of current code example. NOT Right way //action1 if (myPopUp == null) { myPopUp = PopUpManager.createPopUp(this, MyMxmlComponent, false) as MyMxmlComponent; } else { PopUpManager.addPopUp(myPopUp, this, false); } //action1 if (!myPopUp.isPopUp) { myPopUp = PopUpManager.createPopUp(this, MyMxmlComponent, false) as MyMxmlComponent; } else { PopUpManager.addPopUp(myPopUp, this, false); } Remove you should do like PopUpManager.removePopUp(e.currentTarget.document as IFlexDisplayObject); regards Igor Costa On Tue, Apr 14, 2009 at 6:24 PM, ilikeflex ilikef...@yahoo.com wrote: Hi Adobe bug http://bugs.adobe.com/jira/browse/SDK-17299 Does anybody has idea when Adobe is going to fix the above bug ot there is any workaround. Thanks Rajan -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Ruben's FlexBook component question
I've tried a lot, read the source code of component but for sure it doesnt fit as it works. scaling the component itself works and pretty smooth set. But the draw things don't really work out. Still getting any feedback I appreciate. Regards Igor On Wed, Apr 1, 2009 at 10:29 AM, Tom Chiverton tom.chiver...@halliwells.com wrote: On Wednesday 25 Mar 2009, Igor Costa wrote: I found a guy who added a couple of public methods but no one that made the size of book re sizable when the screen gets bigger or less. I would imagine it's easy enough to observe the application size, and the re-call the components layout code... -- Helping to professionally foster corporate world-class transparent mission-critical content as part of the IT team of the year, '09 and '08 Tom Chiverton Developer Tel: +44 0161 618 5032 Fax: +44 0161 618 5099 tom.chiver...@halliwells.com 3 Hardman Square, Manchester, M3 3EB www.Halliwells.com 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 together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. 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. -- Igor Costa www.igorcosta.com www.igorcosta.org
[flexcoders] TextSnapshot and Flex, who lucky done?
Hi there crew. Does anyone here put TextSnapShot Class to work truely with loaded SWF with statics text? This bug http://bugs.adobe.com/jira/browse/SDK-15295 was the only close thing I found googling and is still opened. If you were lucky enough can you tell me the work arround done? the Docummentation of Class and even reading source code didn't helped me out. Regards -- Igor Costa www.igorcosta.com www.igorcosta.org
[flexcoders] Re: TextSnapshot and Flex, who lucky done?
Well, Let me share with others here, finally I found a solution for this problem. Than in future who work with TextSnapshot (with static texts) and Loaded swf can play smooth in Flex. Here's my attempt. private var mySnap:TextSnapshot; private var snapCount:int ; public function search(textToFind:String,caseSensitive:Boolean=false):void { var ar:Array; mySnap = libMC.textSnapshot; mySnap.findText(0,textToFind,false); snapCount = mySnap.findText(snapCount,textToFind,false); var t:String = ...+ mySnap.getText(snapCount,mySnap.charCount,false); Alert.show(t); snapCount = 0; //Alert.show(t); } ]] /mx:Script mx:SWFLoader id=loadedSWF x=193 y=197 width=650 height=462/ mx:TextInput id=magicWord x=193 y=167/ mx:Button x=361 y=167 label=Search It! width=99 click=search(magicWord.text) / But the only problem still persists is http://bugs.adobe.com/jira/browse/SDK-15295 this one. If anyone there with good response please, vote to fix this problem. Regards Igor Costa On Wed, Apr 1, 2009 at 2:49 PM, Igor Costa igorco...@gmail.com wrote: Hi there crew. Does anyone here put TextSnapShot Class to work truely with loaded SWF with statics text? This bug http://bugs.adobe.com/jira/browse/SDK-15295 was the only close thing I found googling and is still opened. If you were lucky enough can you tell me the work arround done? the Docummentation of Class and even reading source code didn't helped me out. Regards -- Igor Costa www.igorcosta.com www.igorcosta.org -- Igor Costa www.igorcosta.com www.igorcosta.org
[flexcoders] Re: Ruben's FlexBook component question
No one? I tough I wasn`t the only dev in world who uses it. Regards Igor On Tue, Mar 24, 2009 at 10:48 PM, Igor Costa igorco...@gmail.com wrote: Hi there Guy's So, hard to ask something before hard searching across web. My question is simple, how many of you guys there tried and extended the Ruben's FlexBook Component since the releases source code? I found a guy who added a couple of public methods but no one that made the size of book re sizable when the screen gets bigger or less. I'm fighing agaist this little bug book component. And added some exra methods, doesnt any guys there who want to change your experience with this component with me? Regards -- Igor Costa www.igorcosta.com www.igorcosta.org -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Re: Flex on mobile devices
Actually Last sunday I`ve tried with Maemo SDK, flyer and a Flash Player 9 installed on Nokia N810 and got working pretty smooth. That`s only 1 device until now that can handle that. But nativlity like Flash Stand Alone, 0 right now. Regards Igor On Tue, Mar 31, 2009 at 2:46 PM, oneworld95 oneworl...@yahoo.com wrote: Thanks, Alex. That helps. I've heard that Flash 10 should be available for most smart phones by next year ( http://reviews.cnet.com/8301-13970_7-10164745-78.html). However, technical difficulties are keeping the iPhone from getting Flash-enabled. - Alex C --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alex Harui aha...@... wrote: Roughly 0 handle Flex apps. Work is in progress for a Flash Player that can handle ActionScript 3 and work on a mobile device. There's supposedly a billion mobile devices that can run Flash apps designed for mobile. Adobe has every intention to get Flex apps running on mobile devices going forward. Smart companies will be planning for Flex on mobile in their futures even though numbers are zero now. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of oneworld95 Sent: Tuesday, March 31, 2009 9:29 AM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Flex on mobile devices Roughly, what percentage of mobile devices today can handle Flex (Flash) apps? I need some hard numbers to convince my boss to use Flex for more projects. Thanks. - Alex C -- Igor Costa www.igorcosta.com www.igorcosta.org
[flexcoders] Ruben's FlexBook component question
Hi there Guy's So, hard to ask something before hard searching across web. My question is simple, how many of you guys there tried and extended the Ruben's FlexBook Component since the releases source code? I found a guy who added a couple of public methods but no one that made the size of book re sizable when the screen gets bigger or less. I'm fighing agaist this little bug book component. And added some exra methods, doesnt any guys there who want to change your experience with this component with me? Regards -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Can you put a UIComponent in a Sprite
It's not possible UIComponent [image: Inheritance]FlexSpritehttp://livedocs.adobe.com/flex/3/langref/mx/core/FlexSprite.html [image: Inheritance]Spritehttp://livedocs.adobe.com/flex/3/langref/flash/display/Sprite.html [image: Inheritance]DisplayObjectContainerhttp://livedocs.adobe.com/flex/3/langref/flash/display/DisplayObjectContainer.html [image: Inheritance]InteractiveObjecthttp://livedocs.adobe.com/flex/3/langref/flash/display/InteractiveObject.html [image: Inheritance]DisplayObjecthttp://livedocs.adobe.com/flex/3/langref/flash/display/DisplayObject.html [image: Inheritance]EventDispatcherhttp://livedocs.adobe.com/flex/3/langref/flash/events/EventDispatcher.html [image: Inheritance]Object http://livedocs.adobe.com/flex/3/langref/Object.html See inheritance of Sprite from UIComponent and probably you will gonna mad to accomplish that. regards Igor Costa On Tue, Feb 3, 2009 at 9:25 PM, Jason Ervin jason_newp...@hotmail.comwrote: Is it possible to put a UIComponent in a Sprite? I assume not since Sprite is lower on the chain and since it doesn't contain the timeline. Yes? No? -- Igor Costa www.igorcosta.com www.igorcosta.org image001.gif
Re: [flexcoders] How can an SWF read its own metadata tags?
Mark Take a look at here. It maybe help you to figure out http://www.igorcosta.org/?p=220 Regards Igor Costa On Sat, Jan 31, 2009 at 6:29 AM, Mark Carter c...@mark.carter.name wrote: How to read SWF metadata tags (like title, publisher etc) at runtime from within that SWF? I use ANT to build the SWF. I manually define metadata like project name etc in a build.properties file. I use these values in ANT to name the SWF and installer etc and also I can use them to set the metadata tags of the SWF I'm compiling to. But when this SWF is running, how can that metadata be accessed? Or is it better to embed the build.properties in the SWF? I need this for an About dialog box. -- View this message in context: http://www.nabble.com/How-can-an-SWF-read-its-own-metadata-tags--tp21760968p21760968.html Sent from the FlexCoders mailing list archive at Nabble.com. -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Rich text editor customization
Mayank You can read it from here a solution, don't know if fits on your needs. http://www.igorcosta.org/?p=217 Regards Igor Costa On Thu, Dec 18, 2008 at 2:35 AM, Mayank Vora mcv_b...@yahoo.com wrote: Hi, I wanted to know if there is a way to embed images using Rich Text Editor. Has anyone tried customizing RTE to embed html images. Regards, Mayank -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Tables in Rich Text Editor
Jeroen Open a feature request at Flex Bug Base. So far doesn't have any. Regards Igor Costa www.igorcosta.org 2008/12/18 Jeroen De Vos jeroen.de...@haven.antwerpen.be Hi, Perhaps one of the most asked questions on the list: when will the Rich Text Editor support tables? I had high hopes with Flash Player 10 and the Text Layout Framework, but alas, no tables. Anyone has any luck extending the RTE to support tables? Thanks, Jeroen. *Jeroen De Vos* *C/ICT - Amaris* * * Deze e-mail en alle gekoppelde bestanden zijn officiele documenten van het Gemeentelijk Havenbedrijf Antwerpen en kunnen vertrouwelijke of persoonlijke informatie bevatten. Gelieve de afzender onmiddellijk via e-mail of telefonisch te verwittigen als u deze e-mail per vergissing heeft ontvangen en verwijder vervolgens de e-mail zonder deze te lezen, te reproduceren, te verspreiden of te ontsluiten naar derden. Het Gemeentelijk Havenbedrijf Antwerpen is op geen enkele manier verantwoordelijk voor fouten of onnauwkeurigheden in de inhoud van deze e-mail. Het Gemeentelijk Havenbedrijf Antwerpen kan niet aansprakelijk gesteld worden voor directe of indirecte schade, verlies of ongemak veroorzaakt als gevolg van een onnauwkeurigheid of fout in deze e-mail. English Translation: This e-mail and all attached files are official documents of Antwerp Port Authority and may contain confidential or personal information. If you have received this e-mail in error, you are asked to inform the sender by e-mail or telephone immediately, and to remove it from your system without reading or reproducing it or passing it on to other parties. Antwerp Port Authority is in no way responsible for any errors or inaccuracies in the contents of this e-mail, nor can it be held liable for any direct or indirect loss, damage or inconvenience arising from any such errors or inaccuracies. -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Re: Flex Feedback for the Future
Derrick Actually you can hack it. Built-in is not good right now because there's a lot of implementation in Flash Player 10 and Text Layout and RTE hope will rewritten completely But, hold your breath here's a solution http://www.igorcosta.org/?p=217 Regards Igor Costa On Tue, Feb 12, 2008 at 5:17 PM, Don Kerr fusionp...@yahoo.com wrote: I also vote for RTE enhancements, in general. Better output is key, but I'd also like to see it move more toward a WYSIWYG-like editor like ColdFusion offers. FCK for Flex...basically. And on the display side, something like the AIR HTML component for Flex web appa would be nice. In short, better support for capturing HTML content (authoring, copy/paste, insert images,tables),storing it, and displaying it. Or something equivalent to HTML-like authoring for Content Management apps. A basic simple one would be to automatically convert typed urls to clickable colored links. Right now, my users have to re-highlight the text and set the color. You can't set the url and the color at the same time. Don Kerr It is true that I said it, but it doesn't have to be truth to you. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Derrick Anderson no.way.this.is.in@... wrote: one of my personal gripes, an RTE that can output valid xhtml. i have had to create my own which is a pain- i think it should be built in. thanks, d. On Feb 11, 2008 12:50 PM, Joan Lafferty t...@... wrote: As we close up Flex 3 development, the team is evaluating existing Flex feedback to figure out what bugs to fix and features to add for the future. If you could briefly list some of the key enhancements or bug fixes that you would like in the future, please send them along. Also, be sure to vote on deferred bugs and feature requests in the public bugbase as we will be evaluating those too. http://bugs.adobe.com/flex Thanks, Joan Lafferty Flex SDK QA -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] the flex RTE and xhtml
Derrick A solution, hope fits on your needs. http://www.igorcosta.org/?p=217 Regards Igor Costa On Mon, Feb 4, 2008 at 7:40 PM, Derrick Anderson no.way.this.is.in@gmail.com wrote: anybody out there have anything that will take the html generated by the flex richtexteditor and have it output valid XHTML (and back again)? i've found a few things googling but i have not found a good implementation yet. thanks, d. -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Re: Silent Print from Flex on Kiosk
As our friend suggest before, You can communicate with Javascript and pass the job to js and you will print silence, dispatch the print silent to the js as you wish. Two interesting sites to read it http://stackoverflow.com/questions/21908/silent-printing-in-a-web-application http://www.actionscript.org/forums/archive/index.php3/t-102128.html Regards Igor Costa www.igorcosta.org On Fri, Jan 30, 2009 at 6:51 PM, Jeremi Bergman jere...@gmail.com wrote: Thanks for the info. It would be nice to be able to add an app as a Trusted application, so that the application would have the option to print silently. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Gregor Kiddie gkid...@... wrote: Yeah, The Flash Player doesn’t allow silent printing, as some wag would write an advertising swf which printed out their entire promotional literature of 2000 pages on your printer every time you checked your email… Nate is right, if you have JS code that works, call out to that, or use some other means of interacting with the printer (we have a client side DotNet component to handle our printing needs). Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@... From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of Nate Beck Sent: 29 January 2009 17:18 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Silent Print from Flex on Kiosk Just a theory... but you might be able to use ExternalInterface to call the same methods within user.js, and pass the content. Since you're already got it working within Javascript. I wish I knew more about FlexPrintJob. On Thu, Jan 29, 2009 at 8:41 AM, Jeremi Bergman jere...@... mailto:jere...@... wrote: I have a flex app that I need to print an image. I have Firefox Setup running the app. in user.js for FF i have: user_pref(†print.always_print_silent†,true); user_pref(†print.show_print_progress†,false); This works perfectly when using firefox's print functionality on any standard site. It prints directly to the default printer without any user interaction. Within my App I have: public static function printCoupon(obj:UIComponent):void { // Create an instance of the FlexPrintJob class. var printJob:FlexPrintJob = new FlexPrintJob(); // Start the print job. if (printJob.start() != true) return; // Add the object to print. Do not scale it. printJob.addObject(obj, FlexPrintJobScaleType.NONE); // Send the job to the printer. printJob.send(); } The UIComponent passed in is an Image. It prints the image, but it prompts me with the print diologe box. Any thoughts? Thanks. -- Cheers, Nate http://blog.natebeck.net http://blog.natebeck.net -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Mimic IGoogle with Flex 3
Lorenzo You should check this out. http://jwopitz.wordpress.com/2008/01/24/simple-drag-n-drop-for-flex-ala-igoogle/ Regards Igor Costa www.igorcosta.org On Wed, Jan 28, 2009 at 8:10 AM, thelordsince1984 lore...@katamail.comwrote: Hi, i would create an app that has the same functionality that igoogle provides.. in particular i would have same panels and drag and drop around a main panel with a layout like tilegrid or grid?And if i want to add panels at run time? Anybody knows a solution for this kind of problem? Thanks in advance Regards Lorenzo -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Re: Can't remove an object?!
Try to addChild before you set the properties. If you're using as PopUp you will need that. Regards Igor On Fri, Jan 2, 2009 at 10:13 AM, Nate Pearson napearso...@yahoo.com wrote: I had my remove effect typed as fade instead of Fade. That's what did it. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Manish Jethani manish.jeth...@... wrote: On Thu, Jan 1, 2009 at 6:30 AM, Nate Pearson napearso...@... wrote: I'm adding this opaque loading overlay to my application when it loads. It's just a VBox. I'm pulling out my hair, any help is greatly appreciated! Here's what I do: [snip] I'm not sure I understand where your problem is. When are you calling removeLoadingOverlay? I would use PopUpManager to add and remove the overlay (as opposed to adding it directly to the application). Manish -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Re: Can't remove an object?!
My mistake, You're problem is on removing. So where and when you call the remove function? Igor On Fri, Jan 2, 2009 at 10:18 AM, Igor Costa igorco...@gmail.com wrote: Try to addChild before you set the properties. If you're using as PopUp you will need that. Regards Igor On Fri, Jan 2, 2009 at 10:13 AM, Nate Pearson napearso...@yahoo.comwrote: I had my remove effect typed as fade instead of Fade. That's what did it. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Manish Jethani manish.jeth...@... wrote: On Thu, Jan 1, 2009 at 6:30 AM, Nate Pearson napearso...@... wrote: I'm adding this opaque loading overlay to my application when it loads. It's just a VBox. I'm pulling out my hair, any help is greatly appreciated! Here's what I do: [snip] I'm not sure I understand where your problem is. When are you calling removeLoadingOverlay? I would use PopUpManager to add and remove the overlay (as opposed to adding it directly to the application). Manish -- Igor Costa www.igorcosta.com www.igorcosta.org -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] [ANN Class] 3D Interactive UI, Papervision w/ Flex for Games and more
In his own website. not here. I guess here it's just to learn new things, not to buy one. It's my opinion. Regards Igor On Sun, Oct 19, 2008 at 3:14 PM, Paul Andrews [EMAIL PROTECTED] wrote: Where would be the right place for something like this? - Original Message - *From:* Igor Costa [EMAIL PROTECTED] *To:* flexcoders@yahoogroups.com *Sent:* Sunday, October 19, 2008 9:28 PM *Subject:* Re: [flexcoders] [ANN Class] 3D Interactive UI, Papervision w/ Flex for Games and more Come on. Isn't the right place for spam. On Fri, Oct 17, 2008 at 4:38 PM, v.cekvenich [EMAIL PROTECTED]wrote: A 10 hour bootcamp in Flex to learn 3D using Papervision. Taught by professional trainer Vic Cekvenich. In SF on 11/20 after Max,more info at: http://papervision.proj.com $200-400. We will cover hands on labs from scratch: * Setting up the SDK * Warm up: 2D Motion * 3D Primitives * 3D Math * Materials * Make a complex objects (Collada) * Interactions * Shadows/Reflection * Flash 10 * Calling a remote (web java/data ) service * and more. This is an intensive all day class stressing techniques useful for gaming and traditional 3D. You will walk out comfortable creating simple 3D games or a Rich UI Web site. You must provide your own laptop, over 1 GB ram recommended. Power will be provided for each laptop. We will mail you class prep materials on a usb stick 10 days before the class. You will also have support after the class. .V -- Igor Costa www.igorcosta.com www.igorcosta.org -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] [ANN Class] 3D Interactive UI, Papervision w/ Flex for Games and more
Come on. Isn't the right place for spam. On Fri, Oct 17, 2008 at 4:38 PM, v.cekvenich [EMAIL PROTECTED] wrote: A 10 hour bootcamp in Flex to learn 3D using Papervision. Taught by professional trainer Vic Cekvenich. In SF on 11/20 after Max,more info at: http://papervision.proj.com $200-400. We will cover hands on labs from scratch: * Setting up the SDK * Warm up: 2D Motion * 3D Primitives * 3D Math * Materials * Make a complex objects (Collada) * Interactions * Shadows/Reflection * Flash 10 * Calling a remote (web java/data ) service * and more. This is an intensive all day class stressing techniques useful for gaming and traditional 3D. You will walk out comfortable creating simple 3D games or a Rich UI Web site. You must provide your own laptop, over 1 GB ram recommended. Power will be provided for each laptop. We will mail you class prep materials on a usb stick 10 days before the class. You will also have support after the class. .V -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Have a question about Weborb
You do as same as you do to add, but the only diffrent is on the server-side instead of INSERT INTO you should do UPDATE Regards On Sun, Sep 28, 2008 at 11:59 PM, timgerr [EMAIL PROTECTED] wrote: Hello all, I am trying to learn Weborb and need some help on how to update a database record. Here is my question, I have a database table named test and the construction of one row is: id = 1 name = Tim email = [EMAIL PROTECTED] tim%40tim.com Now if I wanted to return all the rows it would be ActiveRecord.test.findall(). If I wanted to add a record it would be: private var t:Test = new Test(); t.Name = 'bob'; t.Email = '[EMAIL PROTECTED] %27bob%40bob.com'; var asyncToken:AsyncToken = null; asyncToken = t.save(); The problem that I have is I dont understand how to update a record, take my row 1 id = 1 name = Tim email = [EMAIL PROTECTED] tim%40tim.com How can I change that row to somting like this id = 1 name = Timmy email = [EMAIL PROTECTED] timmy%40timmy.com Can some one show me the code? Thanks for the help, timgerr -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] How to set rounded corners on an Accordion container
Brad See what google's brings to me ( http://dougmccune.com/blog/2007/09/22/nifty-flex-accordion-menu-like-on-applecom/ ) Regards Igor Costa On Mon, Sep 29, 2008 at 1:14 AM, Brad O'Hearne [EMAIL PROTECTED]wrote: Hello all, I am trying to create rounded corners on an accordion container, and I have discovered that if I set the corner radius, I get rounded corners, but I can also see a rectangular corner and background behind it. Does anyone know how to achieve rounded corners in an accordion without additional artifacts? Thanks, Brad -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Need help in BlazeDS(Custom Adapters)
Khaild Is the sufix of object you're trigger to send to the client,but the code in doc's are wrong Here's my sample for adapter in java side package com.adobe.adapter; import flex.messaging.messages.AsyncMessage; import flex.messaging.messages.Message; import flex.messaging.services.MessageService; import flex.messaging.services.ServiceAdapter; public class CustomMessagingAdapter extends ServiceAdapter { @Override public Object invoke(Message message) { AsyncMessage newMessage = (AsyncMessage)message; newMessage.setBody(Client + message.getBody() + is ready!); MessageService msgService = (MessageService)getDestination().getService(); msgService.pushMessageToClients(newMessage, true); return null; } } Regards Igor Costa On Mon, Sep 29, 2008 at 10:48 AM, scjpkhalid [EMAIL PROTECTED] wrote: Hello , I am new to Flex world and to this group also. While going through the BlazeDS Developer Guide (custom adapters). I cam across the following snipet. link : http://livedocs.adobe.com/blazeds/1/blazeds_devguide /help.html?content=messaging_7.html package customclasspackage; { import flex.messaging.services.messaging.adapters.MessagingAdapter; import flex.messaging.services.MessageService; import flex.messaging.messages.Message; import flex.messaging.Destination; public class SimpleCustomAdapter extends MessagingAdapter { public Object invoke(Message message) { MessageService msgService = (MessageService)service; msgService.pushMessageToClients(message, true); msgService.sendPushMessageFromPeer(message, true); return null; } } } I am not getting what is service in the following line of code: MessageService msgService = (MessageService)service; Awaiting for your reply Thanks and Regards Khalid Chaudhary -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Re: Have a question about Weborb
I guess there's something on the code. take look at the sql instrict methods to see if there's something like UPDATE Regards Igor On Mon, Sep 29, 2008 at 11:33 AM, timgerr [EMAIL PROTECTED] wrote: Do I have to set that or does that come from the script generated weborb? timgerr --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Igor Costa [EMAIL PROTECTED] wrote: You do as same as you do to add, but the only diffrent is on the server-side instead of INSERT INTO you should do UPDATE Regards On Sun, Sep 28, 2008 at 11:59 PM, timgerr [EMAIL PROTECTED] wrote: Hello all, I am trying to learn Weborb and need some help on how to update a database record. Here is my question, I have a database table named test and the construction of one row is: id = 1 name = Tim email = [EMAIL PROTECTED] tim%40tim.com Now if I wanted to return all the rows it would be ActiveRecord.test.findall(). If I wanted to add a record it would be: private var t:Test = new Test(); t.Name = 'bob'; t.Email = '[EMAIL PROTECTED] %27bob%40bob.com'; var asyncToken:AsyncToken = null; asyncToken = t.save(); The problem that I have is I dont understand how to update a record, take my row 1 id = 1 name = Tim email = [EMAIL PROTECTED] tim%40tim.com How can I change that row to somting like this id = 1 name = Timmy email = [EMAIL PROTECTED] timmy%40timmy.com Can some one show me the code? Thanks for the help, timgerr -- Igor Costa www.igorcosta.com www.igorcosta.org -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] LCDS deadLock with managed assocation
Sure, You should manage your fill methods to stop deadlock on your LCDS. If you take a close into the documentation you will see this recomendation. Regards Igor Costa On Mon, Sep 29, 2008 at 9:24 AM, kcCedrics [EMAIL PROTECTED] wrote: Hi everybody, I've got a really weird problem with LCDS!! I'm using 4 data service for my objects A, B, C, D. My object A has a collection of B, a collection of C and a collection of D. So in my datamanagement-config.xml I defined my destination like this: destination id=A-Mapping channels=my-rtmp adapter ref=java-dao / properties metadata identity property=FAid/ one-to-many property=FBList destination=B-Mapping/ one-to-many property=FCList destination=C-Mapping/ one-to-many property=FDList destination=D-Mapping/ /metadata ... destination id=B-Mapping channels=my-rtmp adapter ref=java-dao / properties metadata identity property=FBid/ /metadata ... In my actionscript code I have this: FADS = new DataService(A-Mapping); FADS.fill(FAList); FBDS = new DataService(B-Mapping); FBDS.fill(FBList); So my problem is that sometimes, my application seems to be in a dead lock state, and when I'm looking the jboss log I see that it's locked just after finishing the A fill method, it's never getting the B objects. Moreover after this, my jboss is completly locked, none of new client can get A or B objects. I also used StackTrace software and I'm getting this log: my-rtmp-SocketServer-WorkerThread-32 prio=6 tid=0x29a11400 nid=0x39c waiting for monitor entry [0x2d3ef000..0x2d3efa94] java.lang.Thread.State: BLOCKED (on object monitor) at flex.data.SequenceManager.createSequence(SequenceManager.java:2251) - waiting to lock 0x091f0a10 (a flex.data.SequenceManager) at flex.data.SequenceManager.manageSequence(SequenceManager.java:786) at flex.data.SequenceManager.manageSequence(SequenceManager.java:755) at flex.data.DataService.serviceMessage(DataService.java:571) at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1495) ... Is my problem can be relevant to the managed association? Thanks for your answer Cédric -- View this message in context: http://www.nabble.com/LCDS-deadLock-with-managed-assocation-tp19722926p19722926.html Sent from the FlexCoders mailing list archive at Nabble.com. -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Event Propagation Problem (I think)
Hum Very strange error, if you share you're code maybe will be easy to everyone help you. But try to debug and place a breakpoint where it's focus using event.preventDefault() to see what's happen behind the scenes. Regards Igor Costa On Sun, Sep 28, 2008 at 11:46 PM, creativepragmatic [EMAIL PROTECTED] wrote: Hello everyone, I am currently working on a set of time entry components that I hope to share with the open source community when finished. The components are a time masking field that extends TextInput, a TimeStepper extends NumericStepper, a DateTimeChooser extends DateChooser and DateTimeField extends DateField. My question concerns the TimeStepper and TimeField. When I set the focus to the time field by clicking on it and then clicking on either arrow button to increase or decrease the time, I get the following error. It should also be noted that the first version of NumericStepper that extended UIComponent did not have this problem. If anybody knows where and how to prevent the following stack trace, your help will be greatly appreciated. Also, I am curious to know if anyone would find these components useful in their own projects. Thank you in advance for any assistance, Orville TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.controls::TextInput/drawFocus()[E:\dev\3.0.x\frameworks\projects\fr amework\src\mx\controls\TextInput.as:1851] at mx.core::UIComponent/focusOutHandler()[E:\dev\3.0.x\frameworks\project s\framework\src\mx\core\UIComponent.as:8563] at mx.controls::TextInput/focusOutHandler()[E:\dev\3.0.x\frameworks\proje cts\framework\src\mx\controls\TextInput.as:2151] at flash.display::Stage/set focus() at mx.core::UITextField/setFocus()[E:\dev\3.0.x\frameworks\projects\frame work\src\mx\core\UITextField.as:1531] at com.m4tech.FlexLibraries.components::TimeInput/setFocus()[F:\Projects\ Flex\src\com\FlexLibraries\components\TimeInput.as:381] at com.m4tech.FlexLibraries.components::TimeStepper/buttonClickHandler()[ F:\Projects\Flex\src\com\FlexLibraries\components\TimeStepper.as:398] -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Zoneinfo database to use for AIR applications.
George See that? http://en.wikipedia.org/wiki/List_of_zoneinfo_timezones You can create a db in sqlite and store all the info. Than you can use it easy. Regards Igor On Fri, Sep 26, 2008 at 1:35 PM, george_w_canada [EMAIL PROTECTED] wrote: Anyone knows are there any best way to use the public zoneinfo database (from original Olson database) in AIR applications? http://en.wikipedia.org/wiki/Zoneinfo -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Re: Word wrap doesn't work with a dynamically loaded font.
Rob Sure, just set the verticalScrollPolicy=off for vertical and horizontalScrollPolicy=off for horizontal. Regards Igor Costa On Mon, Sep 29, 2008 at 11:14 AM, Rob Kunkle [EMAIL PROTECTED] wrote: Hi Jitendra - Thanks! This helped. But now I need to get rid of the scroll bars on the textArea control. Is there a way to just turn them off? Rob --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, jitendra jain [EMAIL PROTECTED] wrote: Have u used wordWrap =true of TextArea control?? Thanks, with Regards, Jitendra Jain - Original Message From: Rob Kunkle [EMAIL PROTECTED] To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Sent: Monday, 29 September, 2008 4:57:55 PM Subject: [flexcoders] Word wrap doesn't work with a dynamically loaded font. Hello all - My application dynamically loads fonts at runtime from separate .swf files using the StyleManager class. Everything is working great, except that fonts that are loaded dynamically won't do word wrap in a TextArea control. I've searched far and wide on the internet about this, and cant find any obvious answers for how to fix this. Has anyone run into something similar? Thanks! Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/ -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] LCDS deadLock with managed assocation
Cédric here's for LCDS 2.5 http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/lcds/data_manage_intro_2.html#109213 And in LCDS 2.6 seems to changed to http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/lcds/dms_managedobjects_2.html#342967 Regards igor On Mon, Sep 29, 2008 at 12:05 PM, kcCedrics [EMAIL PROTECTED] wrote: Thanks Igor for your answer, I already manage the fill methods but I don't know if there is something to stop the deadLock. The only thing I found into the documentation about deadLock is about use-transactions mode. I don't know if it's what you're talking about. So if it's not, can you tell me where do you find it into the documentation? Regards Cédric -- View this message in context: http://www.nabble.com/LCDS-deadLock-with-managed-assocation-tp19722926p19725692.html Sent from the FlexCoders mailing list archive at Nabble.com. -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Zoneinfo database to use for AIR applications.
George I don't know if you know the Joda, I've portted to actionscript 3.0 and in it there's a very powerfull date/time api for java developers. I don't know if I could to opensource the portation for now because there's a lot of thing to test. But the kind of zoneinfo db is hard to keep in auto update pilot, you have to write a server-side way to collect theses data and get to AIR/Flex project. Regards Igor On Mon, Sep 29, 2008 at 2:32 PM, George [EMAIL PROTECTED] wrote: Thanks Igor. I know that. That list is just the zone.tab file. What I need is to get a complete zoneinfo database (and can be updated to new data later when zoneinfo database update maybe every year) and convert into something that to be used directly in AIR applications. Especially I need not only zone information but also others such as daylight saving when application changing timezone runtime. I actually create an open source project for this myself (silently) as I couldn't find anything really useful last weekend. http://code.google.com/p/as3-zoneinfo-lib/ George Igor Costa wrote: George See that? http://en.wikipedia.org/wiki/List_of_zoneinfo_timezones http://en.wikipedia.org/wiki/List_of_zoneinfo_timezones You can create a db in sqlite and store all the info. Than you can use it easy. Regards Igor On Fri, Sep 26, 2008 at 1:35 PM, george_w_canada [EMAIL PROTECTED]yahoo%40neatfilm.com mailto:[EMAIL PROTECTED] yahoo%40neatfilm.com wrote: Anyone knows are there any best way to use the public zoneinfo database (from original Olson database) in AIR applications? http://en.wikipedia.org/wiki/Zoneinfo http://en.wikipedia.org/wiki/Zoneinfo -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] about keyboard operation in flex
Anyway If you open the index.template.html that's stored in html-template you can avoid that browser borring thing and will works. Open it and add the following code onLoad=window.document.${application}.focus(); onkeydown=window.${application}.focus() into your body tag It will works both in IE,FF, Safari Regards Igor Costa On Sat, Sep 13, 2008 at 2:15 AM, Alex Harui [EMAIL PROTECTED] wrote: That is a limitation of the browsers. They control focus and a click is required. Some folks have done extensive work to capture keystrokes in javascript and forward them to the player, but most folks simply put up some UI to encourage users to click on the app. *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *qiyadsy *Sent:* Friday, September 12, 2008 7:48 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] about keyboard operation in flex I want only use keyboard to operation in flex. Just as Global keyboard event handling( http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetailsproductId=2postId=304 ) But,have some problem ,it need click anywhere in the application and then press some keys.But i don't want click anywhere ,direct operate with keyboard. How I can deal it ? Thanks. -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Eh. How does this still work?!
Actually you did manually what flex builder does with php server-side enabled. The amfphp project in the console setup to you when you first-load the gateway to do that. When you just set -services and the uri for the services-config.xml file the .swf is metadated to that uri to open a gateway for the amfphp services. Regards -- Igor On Sun, Sep 7, 2008 at 6:30 PM, nwebb [EMAIL PROTECTED] wrote: Hi, I skipped a step when setting up a flex-remoting (amfphp) project, but it still works. I didn't set up the Flex project to use PHP when I created it, and so didn't define the webroot or the root url at all. I added in the services-config file (see code at the bottom of this email) and I added the following additional compiler argument: -services services-config.xml and that was all I needed to get things working. Does anyone know if amfphp automatically assume the uri in the config file will start with http://localhost/ when not otherwise defined? The config file I used defines gateway.php as being in the amfphp folder in the webroot, but how does the Flex project know the location of my webroot?! (which by the way is C:\xampp\htdocs) Cheers. // SERVICES-CONFIG CODE ?xml version=1.0 encoding=UTF-8? services-config services service id=amfphp-flashremoting-service class=flex.messaging.services.RemotingService messageTypes=flex.messaging.messages.RemotingMessage destination id=amfphp channels channel ref=my-amfphp/ /channels properties source*/source /properties /destination /service /services channels channel-definition id=my-amfphp class=mx.messaging.channels.AMFChannel endpoint uri=/amfphp/gateway.php class=flex.messaging.endpoints.AMFEndpoint/ /channel-definition /channels /services-config -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] export chart to a pdf
Young You should consider like add bitmap data for a open-source library like this http://code.google.com/p/apdf/, you will to create a method to take a snapshot of your chart, grap it into a Object and than send to the apdf constructor to add that image to the pdf document. Not hassles to do that. --- Igor Costa www.igorcosta.org On Mon, Sep 8, 2008 at 12:11 AM, yk96290 [EMAIL PROTECTED] wrote: Hi, Is there a way to export a chart to a pdf from Flex? Thanks Young -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Signing Air application!?
Not necessery to work arround . Here's all you need http://www.adobe.com/devnet/air/articles/signing_air_applications_print.html Regards Igor Costa www.igorcosta.org On Mon, Sep 8, 2008 at 1:53 AM, guillaumeracine [EMAIL PROTECTED]wrote: Hi i built an application that i want to use but i don't know how to sign it ... it seems i must provide a valid certificate but i dont want to pay for it since its not a commercial app... Is there a workaround? -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] array collection retrieve one row from database cause error
The coeration error it means you're trying to convert an objectProxy to ArrayCollection. You should convert to array frist and than set the new array created to the ArrayCollection source. -- Igor Costa www.igorcosta.org On Sat, Sep 6, 2008 at 2:26 PM, xiu_jewel [EMAIL PROTECTED] wrote: I had created a timetable in the datagrid. The datagrid is able to display individual staff's tiimetable. However, I was prompt an error when I click on this particular staff to view the class schedule.I realised the error is cause by the array collection only retrieve a row from the database; This is because when I added a new row in the selected staff, the error seems to be gone. Thus, what should I do to remove the error? The Error http://i192.photobucket.com/albums/z63/nellehs/error.jpg Particular Row http://i192.photobucket.com/albums/z63/nellehs/databasecopy.jpg -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] How do I move a child? from one container to another?
Why to trying that? I mean there's no reson for it. You better use as3 instead of states. Even States are wrong way uses. Regards Igor Costa www.igorcosta.org On Fri, Sep 5, 2008 at 8:33 PM, Mario Falomir [EMAIL PROTECTED]wrote: I made this example, hope it helps :) ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:states mx:State name=moveit mx:RemoveChild target={text1}/ mx:AddChild relativeTo={myPanel} target={text1}/ /mx:State mx:State name=init/ /mx:states mx:Panel width=188 height=178 x=250 y=53 id=myPanel /mx:Panel mx:Text x=329 y=27 text=Text id=text1/ mx:Script ![CDATA[ private function changeView(e:MouseEvent):void { if ( currentState != moveit ) currentState = moveit; } ]] /mx:Script mx:Button x=278 y=239 label=Change View State height=50 click=changeView(event)/ /mx:Application --- On *Fri, 9/5/08, luvfotography [EMAIL PROTECTED]* wrote: From: luvfotography [EMAIL PROTECTED] Subject: [flexcoders] How do I move a child? from one container to another? To: flexcoders@yahoogroups.com Date: Friday, September 5, 2008, 5:03 PM Hi, I'm trying to use States and removing(RemoveChil d) a child (mx:Text id='mytext') and trying to add it to a different container with addchild, but I get an error - ' identifier 'mytext' used more than once I can do this in actionscript, but how do I do this in mxml, keeping the same id of 'mytext' on the text field?? mx:State name=moveit mx:RemoveChild target={mytext} / mx:AddChild relativeTo= {myhbox} position=firstChil d mx:Text id=mytext paddingTop= 0 fontSize=16 width=100% / /mx:AddChild /mx:State thanks, -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] HTTPService Synchronization
Rupal The Flex CookBook could help you at here. http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetailsproductId=2postId=7184 Regards Igor Costa www.igorcosta.org On Fri, Sep 5, 2008 at 7:02 PM, rupal_2381 [EMAIL PROTECTED] wrote: Hi All, Is there any framework in place to make multiple HTTPService requests synchronous. Also, does making concurrency=last helps? Regards, -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] VideoDisplay Object
Is more easy for anyone to help you if you post part of your attempt and we see how we could help. Regards Igor Costa www.igorcosta.org On Fri, Sep 5, 2008 at 7:42 PM, Mario Falomir [EMAIL PROTECTED]wrote: You are using the Flex 3 VideoDisplay component ? Weirdit works fine with me.. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute initialize=init(event) mx:VideoDisplay x=146.5 y=157 width=395 height=258 id=videoObj/ mx:Script ![CDATA[ import mx.events.SliderEvent; private var iniW:Number; private var iniH:Number; private function init(e:Event):void { iniW = videoObj.width; iniH = videoObj.height; try { videoObj.source = http://localhost/surf.flv;; } catch (e:Error) { output_txt.text = e.message; } sizeSlider.addEventListener(SliderEvent.CHANGE, resizeVideo); } private function resizeVideo(e:SliderEvent):void { var nw:Number = iniW + (sizeSlider.value * 25); var nh:Number = iniH + (sizeSlider.value * 25); videoObj.setActualSize( nw, nh ); } ]] /mx:Script mx:HSlider x=264 y=131 id=sizeSlider liveDragging=true minimum=0 maximum=20 snapInterval=1/ /mx:Application --- On *Fri, 9/5/08, [EMAIL PROTECTED] [EMAIL PROTECTED]* wrote: From: [EMAIL PROTECTED] [EMAIL PROTECTED] Subject: Re: [flexcoders] VideoDisplay Object To: flexcoders@yahoogroups.com Date: Friday, September 5, 2008, 4:04 PM So am i. I made it smaller and the video itself stays the same size but the component shrinks and displays scrollbars Percy Sent via BlackBerry by ATT -- *From*: Mario Falomir mario_falomir@ yahoo.com *Date*: Fri, 5 Sep 2008 12:12:40 -0700 (PDT) *To*: [EMAIL PROTECTED] ups.com *Subject*: Re: [flexcoders] VideoDisplay Object Hi percy, I used its width and height property and everything resize fine... --- On *Fri, 9/5/08, [p e r c e p t i c o n] percepticon@ gmail.com*wrote: From: [p e r c e p t i c o n] percepticon@ gmail.com Subject: [flexcoders] VideoDisplay Object To: [EMAIL PROTECTED] ups.com Date: Friday, September 5, 2008, 12:07 PM Hi People,I'm resizing video display object in my app and the video itself isn't being resized...just the component... how can i change the size of the video itself. percy -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Re: Getting a reference to a itemRenderer of a chart series
ItemRenders are not part of Style even is not the way we could get a reference into a render for Charts. Try this. http://www.flex888.com/699/the-illusive-itemrenderer.html Maybe will help you to figure out how. Regards Igor Costa www.igorcosta.org On Fri, Sep 5, 2008 at 9:12 PM, Tim Hoff [EMAIL PROTECTED] wrote: Assuming chart is a ColumnChart, chart.series[0].items[0] will get you a rference to the first ColumnSeriesItem. Charts don't have itemRenderers and an itemRenderer is not a style. -TH --- In flexcoders@yahoogroups.com, Fernando Ghisi [EMAIL PROTECTED] wrote: So, nobody can help me? 2008/9/5 Fernando Ghisi [EMAIL PROTECTED]: How can I get a reference to a itemRenderer of a chart series? If I use getStyle method, I´ll get the reference of the ClassFactory Ex: Series(chart.series[index]).getStyle(itemRenderer) Looking for any property that I could use, I´ve found in the ColumnSeries a property called _instanceCache. I could get a reference of the objects created by the ClassFactory using _instanceCache.instances, but this attribute is private. So, what should I do to get the reference of the itemRenderes of the series? -- Fernando Benedet Ghisi -- Fernando Benedet Ghisi -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Datagrid - Sort Error
Try This. http://blog.flexexamples.com/2008/04/09/creating-a-custom-sort-on-a-datagrid-control-in-flex/ It will help you. Regards Igor Costa www.igorcosta.org On Fri, Sep 5, 2008 at 7:53 PM, sleblang [EMAIL PROTECTED] wrote: I am getting the following error when attempting to run a sort on a datagrid's dataprovider (which is an XMLListCollection). It doesn't occur the first time I run the sort, however all subsequent runs result in an error: Error: Find criteria must contain at least one sort field value Here is the sort code: // sort on date var sortA:Sort = new Sort(); var sortByDate:SortField = new SortField(@date,false,false) sortA.fields=[sortByDate]; // Refresh the collection view to show the sort. modelLocator.projectData.projectData_xlc.sort = sortA; modelLocator.projectData.projectData_xlc.refresh(); Any ideas as to where the error might be? Thanks for any and all replies. -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Jigsaw Puzzle Component
Before you go future, you have to keep in mind of inhertance of Flex Classes for DisplayObject, maybe this is the problem you're facing of. Regards Igor Costa www.igorcosta.org On Fri, Sep 5, 2008 at 7:21 PM, Troy Gilbert [EMAIL PROTECTED] wrote: Hi! Im trying to build a jigsaw but Im not very successfull. What I tried to do was to load a Bitmap and then use BitmapData and FlexSprite. Unfortunelly the way I was using (Graphics API), didn't worked, so, I would like to ask a few sugestions about it. Thanks in advance I can't find a link right now, but if you google for Flash and Jigsaw puzzles you'll find a tutorial on building a jigsaw puzzle in Flash. It's not Flex, but the logic would be the same. I successfully used it to jumpstart a more robust jigsaw puzzle engine (in AS3). I'd share, but it was for a client. Troy. -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Binding warnings - per instance suppression?
Try this. http://life.neophi.com/danielr/2006/08/binding_error.html#comments It will help you on that. Regards Igor Costa www.igorcosta.org On Fri, Sep 5, 2008 at 4:05 PM, Richard Rodseth [EMAIL PROTECTED] wrote: I like wiring things together in MXML, and I like having no warnings. Is there any way to suppress binding warnings on a per-line basis? In the following case, module and services really aren't going to change: controller:MyController id=controller hostContainer={this} services={this.module.services} / The references are interfaces, and using custom events, I can add binding support to those interfaces, but it's a bit unnecessary. I suppose I could also set controller.services in a Script block, but I'm not crazy about that either. -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] describeType vs DescribeTypeCache
Actually DescribeTypeCache holds the results from DescribeType() method. If is cached the result is more fast. REgards Igor Costa On Fri, Sep 5, 2008 at 7:08 PM, reflexactions [EMAIL PROTECTED]wrote: I have read that you should use DescribeTypeCache as it is much faster than calling describeType directly. I wondered how big an issue this is becuase... I noticed that the ADG uses describeType everytime it sets the value of a cell into the dataProvider at the end of an edit, so it is getting hit an awful lot, so is it going to be a significant benefit if I override the function and change to using DescribeTypeCache? tks -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] VideoDisplay play/pause button
Try to put your control on control. Like that mx:VideoDisplayObject id=vid/ button click=vid.play();/ button click=vid.pause();/ Regards Igor Costa www.igorcosta.org On Fri, Sep 5, 2008 at 4:14 PM, sleekdigital [EMAIL PROTECTED] wrote: To make a simple play / pause button I bind the selected state of the button to the playing property of the VideoDisplay component. This works fine with progressive video, but for some reason when using streaming video the binding does not work correctly. Most of the time it does not set the selected state when the playing property changes. Anyone know why or how to fix this? -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Getting the label of a clicked button
Cordova Here's a attempt mx:Button/ mx:Script private function GetAronLabel(e:Event):String { if(e.currentTarget is Button){ return e.currentTarget.Label; } } /mx:Script Regards Igor Costa www.igorcosta.org On Fri, Sep 5, 2008 at 11:14 PM, Cordova Aaron [EMAIL PROTECTED] wrote: When a button is clicked is there a way to determine the label of the button? I have tried something like this but its a no-go so far. public function sendToken(e:MouseEvent) { var clickedButtonLabel:String = e.SelectedItem.label? } mx:Button x=143 y=26 label=A width=35 fillAlphas=[1.0, 1.0, 1.0, 1.0] click=sendToken(event) id=button_a/ -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] [ann] Data Management for Flex and PHP
Mark Is a great addition to the product. very handy feature. Look forward. -- Igor Costa On Thu, Sep 4, 2008 at 6:20 PM, Mark Piller [EMAIL PROTECTED]wrote: Hey guys, This is an announcement and I apologize for spamming your inboxes if you have no interest in this subject. However, if you are working with Flex and PHP and would like to try out our new data management implementation, please contact me off the list (mark [at] themidnightcoders.com). You can see a video overview of the new functionality at: http://www.themidnightcoders.com/weborb/php/videos/wdmf/overview There are also a few more tidbits in the blog: http://www.themidnightcoders.com/blog/ Cheers, Mark -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] AIR app not launching after installation
Nate be sure to have the last air runtime installed on your machine to properly work. -- Igor On Tue, Jul 15, 2008 at 4:52 PM, nateross83 [EMAIL PROTECTED] wrote: Hi all, I have been having a strange problem and I have looked everywhere for a solution. I have generated an .air file for the AIR app I have been working on. When I run the .air file, the installation works fine, but when I try to run the application, it does nothing. In fact, the only way I can see the application is by adding visibletrue/visible to the descriptor XML file. Otherwise, it doesn't show up in the taskbar (I am running Windows). The only trace of it I see is in the Task Manager where the process is running. Now, with me setting the visibility to true in the descriptor, I just see the window with nothing inside of it. I am not sure if it is just hanging for some reason when it is being unpacked, or if I have some code that is making it not work (Unfortunately I cannot release any source code for this project). The weird thing is that I can run it on a Mac without any problems. I have tried in Vista and XP and both are not working. I have verified that the app runs in FB3 under both Run and Debug configurations without any errors. Plus, I have successfully ran AIR apps with my Vista and XP machines in the past without any problems. Please help! Thanks, Nate Ross -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] MySQL query from flex builder
Alan My friend Google give me this indication (http://quantum.sourceforge.net) Regards Igor On Wed, Jul 2, 2008 at 5:41 PM, Alan [EMAIL PROTECTED] wrote: Anyone know about any plugin that allows me to run querys from flex builder...perhaps an eclipse plug in? Alan -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Working with Flex3/Eclipse/Maven2 projects.
see that http://blog.flex-mojos.info/2008/06/13/rcards4/ Regards --Igor On Thu, Jun 12, 2008 at 8:05 PM, baztheman [EMAIL PROTECTED] wrote: All, If i am developing/building Flex 3 code by using Eclipse(Europa), then can i build everything with Maven 2 on command line as is? How? This is assuming that I have installed the Flex 3 eclipse plug-in. Thanks. A. -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] configuring for a headless server
are you deploying with the flex-config.xml with it? If you're not deploying (running) you have to set up. because the flex-config.xml will need it. Regards Igor On Mon, Jun 2, 2008 at 10:56 AM, netdeep [EMAIL PROTECTED] wrote: I have seen a few posts about setting up flex to run on a headless server but I'm a bit confused about how to actually do this or even if this will fix my problem. This is what the documentation says should be done to set things up: --- define the value of the headless-server tag in the flex-config.xml file. Setting this property to true is required to support fonts and SVG images in a nongraphical environment. The headless-server tag is a child tag of compiler. The following example sets headless-server to true: headless-servertrue/headless-server --- Seems straight forward enough, but when I deploy to the server using a war file, I am not providing the flex-config.xml file. Do I need to get my sys admin to update this on the server manually? What I am doing is launching flex from the server as a thread to run in the background and save snapshots of charts drawn in flex every time new data is sent from the server to the flex app running in the browser. So in this instance of flex, no user is involved. The server is a headless rack mounted computer. -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] automated image files on a headless server with AIR?
actually not need air app to do that, You can use the bytearray to encode the image and send to your java to save that each time or in meanwhile you need. Regards Igor On Mon, Jun 2, 2008 at 4:50 PM, netdeep [EMAIL PROTECTED] wrote: I am trying to run flex as an image generator on the server. Since my server is headless, the feedback I am getting is that it is bad practice to run flex in the browser for a background app. Here's what the program does in a nutshell: The server launches my java app. It reads a list of report definitions from the data base. For each report, it spawns a thread. Each thread launches my Flex application in the browser. Flex draws the data in charts. Each time data is pushed to the flex application from the java server side, Flex calls a remote java method to save it's image to a file. This file sits in a directory where it can be viewed in a regular old html page. The problem is really the automated aspect. I want to have this chart generated every few minutes as a .png file. It works perfectly fine on my localhost machine, but the server deployment is so far not working. We have firefox installed on the server. Is there no way to launch it as a background process to draw these images? Should I turn this into an AIR app (I've never done anything with AIR up to this point) to make it run more easily in the background? -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Flex + WebORB for PHP, A very strage problem
If you paste a part of your code someone here in the list can answer you but it's hard to get what you really need. Regards Igor On Tue, Jun 3, 2008 at 11:45 AM, Manu Dhanda [EMAIL PROTECTED] wrote: Hii, In short, In Weborb Mgmt Services, I can see the object having a value of boolean type correctly.( that is it is returned correctly from the db). But when I receive it on Flex side, all is returned as true. How should I resolve this? Appreciate your time.. to respond it. thanks. -- View this message in context: http://www.nabble.com/Flex-%2B-WebORB-for-PHP%2C-A-very-strage-problem-tp17625304p17625304.html Sent from the FlexCoders mailing list archive at Nabble.com. -- Igor Costa www.igorcosta.com www.igorcosta.org
[flexcoders] Any folks from WebService Fx SDK team here?
I need to talk with someone from SDK team in part of WebServices. Is that possible? -- Igor Costa www.igorcosta.org
Re: [flexcoders] Any folks from WebService Fx SDK team here?
So. Anyway. Is there any plan on fixing bugs on WebService code generator for support Weblogic webservice generator? I did a test with .Net ws and works smooth but with Weblogic isn't working properly. I have the real situation. On server I have Weblogic 9.2.2 publising DataServices and using a translated version of their soap 1.1, But with so many tests I can't get working. Why? I believe is related to schema that WebServices of Their implementation works. For example I did extended the AbstractWebservice to try a way to work. Just a CRUD example and for somehow works only for list and filter, Operations like delete, create or edit doesnt work and Flex give's me a #2032 that's to me doesn't mean anything. That's why I would like any folks from Adobe to expose all source code and could help to implement a way to support the WebLogic Webservice SOAP format. Regards Igor On Tue, May 27, 2008 at 8:03 PM, Alex Harui [EMAIL PROTECTED] wrote: If your post contains keywords like WebService, DataSevices, fill(), SOAP, etc, they usually see it and respond. -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Josh McDonald *Sent:* Tuesday, May 27, 2008 3:58 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Any folks from WebService Fx SDK team here? Good luck with that, although I've been poking around in their source a lot recently, and I know Web Services can be... frustrating in Flex, so if you post your question I might be able to help :) -J On Wed, May 28, 2008 at 8:40 AM, Igor Costa [EMAIL PROTECTED] wrote: I need to talk with someone from SDK team in part of WebServices. Is that possible? -- Igor Costa www.igorcosta.org -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Runtime CSS Switching at App Startup
Marrittw For your solution I guess you could call applicationComplete Handler. And works most of time. For your function unload the default and than load yours. Regards Igor Costa On 4/7/08, merrittwchapman [EMAIL PROTECTED] wrote: I have an application that needs to be styled based on a URL variable. I'm having trouble applying the style BEFORE the application starts displaying controls. When the app loads, a login Panel is displayed in the default look and feel (gray) until the StyleManager runs as part of an init method called from the creationComplete method. So basically, the default style is initially shown for a split second and then it switches to the correct style. How can I force the style to load before the UI is displayed? I've tried calling the StyleManager in preinitialize functions, but that isn't working. Any thoughts would be appreciated. Thanks! MC -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Flex Code Behind issue
Very Stange behavior. I´ve tested your code and couldn´t get same error. Log a bug for it. Regards Igor Costa On 4/6/08, firdosht [EMAIL PROTECTED] wrote: Hey guys, so I have created a simple flex proj mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute themeColor=#0EFF02 mx:Script ![CDATA[ private function onOver(evt:Event):void{ trace(onOver : +evt.currentTarget ); test.setStyle(backgroundColor,0xff00ff); } private function onOut(evt:Event):void{ trace(onOut : +evt.currentTarget ); test.setStyle(backgroundColor,0x00); } ]] /mx:Script mx:Canvas id=test x=118 y=136 width=443 height=133 themeColor=#099FFF backgroundColor=#D7 rollOver=onOver(event); rollOut=onOut(event); mx:Button x=39 y=35 label=Button/ /mx:Canvas /mx:Application So basically all the code above does is changes the backgroundColor of the Canvas. It works fine Now if I make a MXML Component using the Code Behind Method * *mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute themeColor=#0EFF02 xmlns:ns1=item.* ns1:ListItem x=80 y=48/ /mx:Application *ListItem.mxml* item:CListItem xmlns:mx=http://www.adobe.com/2006/mxml; width=400 height=300 xmlns:item=item.* mx:Button x=65 y=61 label=Button/ /item:CListItem * CListItem.as* package item { import flash.events.MouseEvent; import mx.containers.Canvas; import mx.events.FlexEvent; public class CListItem extends Canvas { public function CListItem() { super(); this.addEventListener(FlexEvent.CREATION_COMPLETE, onComponentLoaded); } private function onMouseOver(evt:MouseEvent):void{ trace(CListItem.onMouseOver :); this.setStyle(backgroundColor,0xff00ff); } private function onMouseOut(evt:MouseEvent):void{ trace(CListItem.onMouseOut); this.setStyle(backgroundColor,0x00); } private function onComponentLoaded(evt:FlexEvent):void{ this.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver); this.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut); } } } Now when I mouse over the Button component the onMouseOut function gets called and there is a flicker in the backgroundColor. If I dont use the Code Behind Method then the onMouseOut function does not get called when I rollOver the button. Can anyone explain this strange behavior? Thanks Cheers Firdosh -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] BlazeDS + Jetty
Velo Once the Jetty is found in JoNas and JBoss, it´s just a matter of Libraries to start running. Same configuration you have to install in JBoss will works fine in Jetty too. Regards Igor Costa www.igorcosta.org On 4/7/08, VELO [EMAIL PROTECTED] wrote: Anyone had put BlazeDS to run inside Jetty? Look on google for this. Found almost nothing. VELO -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Flex SuperTabBar skin not updated when selecting tab programmatically
Rico If you´re trying using the Flex 3 SDK, this problem happens. Please Check out the last sources from the project. Maybe Doug already fix it. That´s because of StyleProxy acomming to Flex 3 SDK. Flex 2 works smooth. Regards Igor Costa www.igorcosta.org On 4/7/08, rleuthold [EMAIL PROTECTED] wrote: I'm using several SuperTabNavigators (They 're awesome !) from flexlib (Thanxs for flexlib ! ) but I have one problem (not able to solve it since weeks). After loading the contents for the SuperTabNavigator I'd like to select the first tab - superTabNav.selectedChild or superTabNav.selectedIndex. This works well, but sometimes the skin of the associated Tab header (SuperTabBar child) is not set to its upSkin. Does anybody have an idea why this happens ? _rico -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Flex Soap and Https
Jean This Could help your for while http://weblogs.macromedia.com/lin/archives/2008/04/how_to_access_f.cfm Regards Igor Costa www.igorcosta.org On 4/7/08, Szabo Jean [EMAIL PROTECTED] wrote: Hello, Is it possible to call Soap service thru https, with WebService Class, il the server need Basic Authentication ? Thanks Jean -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Loaded Runtime Style Sheet rendering
Hi there Claudia here`s a small piece component that was develop by Rubens that gets what you`re looking for. Here`s the link http://www.rubenswieringa.com/blog/index.php?tag=css Best regards Igor Costa On Feb 3, 2008 5:04 PM, Claudia Barnal [EMAIL PROTECTED] wrote: Hi, Is there any kind of event that is dispatched once a runtime style sheet (theme) is loaded to an application and the change is _visible_ to the user? It's possible to know when the theme has been implemented, but I haven't been able to catch when the theme is actually rendered and visible to the user. Depending on the theme and components being used, the loaded runtime style sheet rendering might vary, which is why I need some sort of event to tell me when it's initialized. Thanks, Claudia -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Application dimension for 1024x768 res
Greg I was explain right minutes ago to a brazilian developer at flexbrasil.orgabout same question you're asking. So to be very short in answer and clear as possible, There's no best praticies for this, but has solutions first aid kit to solve problems like that. the Flex SDK has a class responsable for that called LayoutManager witch calls a method updateDisplayList() when you use fixed or percent values to the entire UI components you're using into your application. So, When you us width height combined with % usage, it's hard to fit into the container(application) and create a great App. Well To fix that gap I suggest you to use containers in % mode too, they will mesure the sizes and always will place things in right mode. An example of that you could test to see it: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx= http://www.adobe.com/2006/mxml; layout=absolute mx:HDividedBox width=100% height=100% mx:RichTextEditor width=50% height=100% /mx:RichTextEditor mx:TextArea width=50% height=100% /mx:TextArea /mx:HDividedBox /mx:Application When the container itself verified witch values are in the (width/height) automatically the layoutManager calculate the sizes and fit the controls into the Container witch is located. But if you want to make fixed sizes to your end-users you could fill gaps using kind of technique as Manually. ?xml version=1.0 encoding=utf-8? mx:Application enterFrame=checarTamanho() xmlns:mx=http://www.adobe.com/2006/mxml layout=absolute mx:Script ![CDATA[ private function checarTamanho():void { if(mx.core.Application.application.width = 800 || mx.core.Application.application.height =600) { pp.percentWidth = 50; pp.x = 0; pp.y = 0; pp.percentHeight = 100; pp2.percentHeight = 100; pp2.percentWidth = 50; } if(mx.core.Application.application.width =800 || mx.core.Application.application.height =600) { pp.title = tmanho fixo; pp.width = 300; pp.x = 0; pp.y = 0; pp2.x = 500; pp2.y = 0; pp.height = 400; pp2.width = 300; pp2.height = 500; } } ]] /mx:Script mx:RichTextEditor id=pp /mx:RichTextEditor mx:TextArea id=pp2 /mx:TextArea /mx:Application For sure using manually isn't a best praticies because of some problems with browser borders or you can't get the exactly the value of Browser window opened. So, hope you got the message. Regards Igor Costa On Jan 14, 2008 12:59 PM, Greg Hess [EMAIL PROTECTED] wrote: Hi All, What is best practice application dimension for designing an application for a target audience with 1024x768 resolution? We require no horizontal or vertical scrolling and I am not sure what is the standard dimension is today with all the browser tool bars ect… Any comments much appreciated. Thanks, Greg -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Make MenuBar open onRollOver instead of click?
To do That Keith You have to extend the MenuBar class. Regards On Jan 14, 2008 11:08 AM, keith [EMAIL PROTECTED] wrote: Please help, so far this is what I've done: I want to make my MenuBar open up when I rollover an item without clicking any MenuBarItems. The following code works, until I've selected something or clicked somewhere else in the applicaiton. Afterwards, I have to click the MenuBarItems again to open a menu. -- Keith H -- /** Initializing the MenuBar's selectedIndex to menu.menuBarItems.length when setting the MenuBar's dataProvider. **/ private function initMenu():void menu.labelField=@label; menu.dataProvider=menudata; menu.showRoot=false; menu.selectedIndex=menu.menuBarItems.length; } keith wrote: How can I make the main MenuBarItems open onRollOver without having to click them first? -- Keith H -- -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Connecting To Flex from CF
You have to pass an argument to the compiler -services c:\path_for_your_\services-config.xml to enable that one. Take a look in the mail list arquiche and you will see past threads on that. Regrds -Igor On Jan 1, 2008 11:57 PM, Dale Fraser [EMAIL PROTECTED] wrote: I have done this before but can't get it to work this time (first time with CF8). I am using Flex to connect to CFC's via mapping. I have enabled mapping use in the XML and restarted the server but I get this error. [RPC Fault faultString=[MessagingError message='Destination 'ColdFusion' either does not exist or the destination has no channels defined (and the application does not define any default channels.)'] faultCode=InvokeFailed faultDetail=Couldn't establish a connection to 'ColdFusion'] at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::invoke ()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:264] at mx.rpc.remoting.mxml::Operation/http://www.adobe.com/2006/flex/mx/internal::invoke ()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\remoting\mxml\Operation.as:204] at mx.rpc.remoting::Operation/send ()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\remoting\Operation.as:120] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.rpc.remoting.mxml::Operation/send ()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\remoting\mxml\Operation.as:177] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.rpc::AbstractService/http://www.adobe.com/2006/actionscript/flash/proxy::callProperty ()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\AbstractService.as:292] at DataGrid1/___DataGrid1_Button1_click()[F:\DataGrid1\src\DataGrid1.mxml:17] It seems to be asking for a Channel, but I want to using a mapping and not define channels. Regards Dale Fraser http://learncf.com -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Creating a game in Flex
Gordon Because the of time spent on developing game, saw the example game he want to develop? If you see have many itens that using Flex isnt a time safe, even if work with sprites on flash then using flex integration kit for flash, it will a time cost. I know that can be done in flex, but such game like that, using Flash is more easy to develop and more time save. Regards On Dec 13, 2007 3:46 AM, Gordon Smith [EMAIL PROTECTED] wrote: Why do you say that, Igor? Gordon Smith Adobe Flex SDK Team -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Igor Costa *Sent:* Wednesday, December 12, 2007 2:47 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Creating a game in Flex I believe that if you use flash you will have more sucess. Regards Igor Costa www.igorcosta.org www.igorcosta.com On Dec 8, 2007 5:28 PM, pirzadaz_ali [EMAIL PROTECTED] wrote: Hi, I have Chess board and pieces images in png format separately. Now I want to use those images and create a chess game. Is it possible in Flex that I can make chess game from above images? like this game http://www.newsandentertainment.com/zfchess.html thanks -- Igor Costa www.igorcosta.com www.igorcosta.org -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] I need some help with custom labels in a BarChart
Mark if you´re using embeded fonts, why just dont you use the font-Size on it: the auto-metrics of text is to fill the gap between itens witch is useful when you have to create more stabl charts. Regards Igor Costa www.igorcosta.org www.igorcosta.com On Dec 12, 2007 12:57 AM, Mark [EMAIL PROTECTED] wrote: I have a BarChart that is using 2 horizontal Axis, one on top and one on the bottom. Both are showing the same information I have two only for scrolling purposes. If the user has to scroll they'll get the data at the bottom as well. I'm having a strange problem where the top data fonts are showing at about 4 pts (way too small to see). I set the size at 12 pts for the top as well as the bottom but no change. In fact depending on the amount of data showing, the bottom one doesn't even stay at a consistent point size. Is there any way to fix this? Maybe a label renderer... are there any examples? Thanks, Mark -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Flex Data Management and container's UserTransaction
Den Here´s explanation A Flex Data Management Service change for assemblers that return references to lazy associations: In beta 3 your assembler had to return the complete state of all referenced items. Now, if your association tag is marked with lazy=true, you only need to return instances of the referenced objects where the id properties are populated. The rest of the state is not accessed. When the client fetches the value of the referenced item, your assembler's get method is called to retrieve the referenced item. This also fixes a problem with the hibernate assembler in beta 3 where it would do a deep traversal of the entire object graph. Now, as long as your FDMS destination sets lazy=true on the associations, Flex Data Management Service will only do the traversal it needs to fetch the ids of the referenced items. Regards. Igor Costa www.igorcosta.org www.igorcosta.com On Dec 12, 2007 8:10 AM, den.orlov [EMAIL PROTECTED] wrote: As I understand Flex Data Management Services require that application container provide UserTransaction for it. But I can't find any guide about how FDMS uses it. I was completely confused when I checked several tutorials that used FDMS+HibernateAssempler+Spring or FDMS+hand written Assempler+Hibernate+Spring. That tutorial http://blogs.adobe.com/mtg/2006/08/my_first_hibernate_enabled_fle.html specify that Hibernate's SessionFactory use datasource not tied to global transaction manager. This tutorials: http://devblog.ezmo.com/2007/05/29/using-flex-data-services-with-spring-and-hibernate/ http://iamjosh.wordpress.com/2007/11/08/building-a-livecycle-data-service-application/ don't specify that SessionFactory should use global transaction scope for Session and use local transaction management. So what's the purpose of FDMS to have reference to container's UserTransaction? Den -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Flex Beta 3 [Managed] tag not working.
Kevin witch build do you have? Im with last flex 3 beta 2 and doesnt approach that error. Regards Igor Costa www.igorcosta.org www.igorcosta.com On Dec 11, 2007 7:00 PM, Kevin [EMAIL PROTECTED] wrote: Has something changed with the Managed tag? We removed it in order to get our app to compile in Flex 3 Beta and so now we get errors unless we directly implement the IManaged interface. Is this the correct way to approach this now? Is there a reason why was done? We have a lot of classes to change now... Thanks, Kevin -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Canvas with individual rounded corners
Mark to gain more time on your work, i suggest you to use flex component kit to skin your normal canvas with flash and import those to flex. More pratical and more time save. Regards Igor Costa www.igorcosta.org www.igorcosta.com On Dec 12, 2007 8:06 AM, Mark Ingram [EMAIL PROTECTED] wrote: Hi, I'm trying to create a canvas where I can style the corner radius for each individual corner. I've had a look at the Panel class to try to understand how the roundedBottomCorners style works – but I can't see any code that actually uses it for drawing / filling / masking purposes?! The only reference to it is here: private function setControlBar(newControlBar:IUIComponent):void { if (newControlBar == controlBar) return; controlBar = newControlBar; // If roundedBottomCorners is set locally, don't auto-set // it when the controlbar is added/removed. if (!checkedForAutoSetRoundedCorners) { checkedForAutoSetRoundedCorners = true; autoSetRoundedCorners = styleDeclaration ? styleDeclaration.getStyle( roundedBottomCorners) === undefined : true; } if (autoSetRoundedCorners) setStyle(roundedBottomCorners, controlBar != null); var controlBarStyleName:String = getStyle(controlBarStyleName); if (controlBarStyleName controlBar is ISimpleStyleClient) ISimpleStyleClient(controlBar).styleName = controlBarStyleName; if (controlBar) controlBar.enabled = enabled; if (controlBar is IAutomationObject) IAutomationObject(controlBar).showInAutomationHierarchy = false; invalidateViewMetricsAndPadding(); invalidateSize(); invalidateDisplayList(); } Where is the best place to start? I'm trying to achieve the following – so canvas's on top of each other, the top canvas one colour, with top rounded corners, the bottom canvas with another colour, with the bottom corners rounded. Any clues? Mark -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Error 1009 when running on different server
the problem isnt in your server machine. When you call from remoteObject to collect data from your cfc you´re trying to fill out the form detail without the response back complete from the collection you invoked. Suggestion is. try to fill the detail page with a way to when the result of method complete, you fill out the master detail page. ex::: remoteobject method namebla result=myresult(event)/ /remoteobject script public function myresult(event:resultevent):void { // code to fill the master detail here } Regards On Dec 11, 2007 8:23 PM, bobklhr [EMAIL PROTECTED] wrote: My app has a master detail layout populated by remote calls to cfcs. The cfc returns a query for the master list and an object for the detail. This works fine on our development server. When I run this on our production server the query is returned ok but I get an error 1009 when it tries to return the object with the details: TypeError: Error #1009: Cannot access a property or method of a null object reference. at orders::OrdersList/::showOrder() at orders::OrdersList/___Operation2_result() ... Both servers appear to be identical (Windows 2003, CF version 7.02 latest hotfixes) I've checked the cfc and they work as expected on both machines. Any idea why the application would work on one server but not on the other? -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Creating a game in Flex
I believe that if you use flash you will have more sucess. Regards Igor Costa www.igorcosta.org www.igorcosta.com On Dec 8, 2007 5:28 PM, pirzadaz_ali [EMAIL PROTECTED] wrote: Hi, I have Chess board and pieces images in png format separately. Now I want to use those images and create a chess game. Is it possible in Flex that I can make chess game from above images? like this game http://www.newsandentertainment.com/zfchess.html thanks -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Re: PopupManager causes RangeError: Error #2006: adding a popup window
The problem in your code friend is because you´re trying to add itens to an datagrid without existing first. you can only add that if you have already created the container for it. so addChild or initiate the popup before you do that. and will works. regards Igor Costa www.igorcosta.org www.igorcosta.com On Dec 12, 2007 1:49 AM, wpbarto [EMAIL PROTECTED] wrote: Additional Info: This problem is apparantly caused by MULTIPLE itemEditEnd events dispatched from the DataGrid, exacerbated by the fact that the PopupManager code is not reentrant or doesn't handle concurrency. Looks like Flash player can interrupt part of a running script (PopupManager's addPopup thread) and begin additional events. So: 1. Why is dataGrid sending 4-5 (!) itemEditEnd events for one edit action? 2. Shouldn't PopupManager be reliable and opaque without developers having to code around it's quirks? (Don't get me wrong--I love Flex; just don't like banging my head over framework issues. I have enough banging for my own issues!) --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, wpbarto [EMAIL PROTECTED] wrote: I saw something else similar in flexcoders, but the information didn't seem to apply to this case. I can create a popup window from a button's click handler, but THE SAME CODE used when editing a DataGrid cell FAILS! Is it a bug or a mis-use of PopupManager?? Thanks for any help! Top part of Error stack: RangeError: Error #2006: The supplied index is out of bounds. at flash.display::DisplayObjectContainer/addChildAt() at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal: :rawChildren_addChildAt() at mx.managers::SystemManager/addChild() at mx.managers::PopUpManagerImpl/addPopUp() at mx.managers::PopUpManager$/addPopUp() at TestPopup/::onCellEdit() at TestPopup/__pointGrid_itemEditEnd() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv entFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent() at mx.controls::DataGrid/::endEdit() at mx.controls::DataGrid/::deactivateHandler() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv entFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent() at mx.controls::DataGrid/::endEdit() This is the smallest example I can create: [File1: TestPopup.mxml] == ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute applicationComplete=onAppComplete() mx:Script ![CDATA[ import mx.managers.PopUpManager; import mx.collections.ArrayCollection; import mx.events.DataGridEvent; import mx.events.DataGridEventReason; private var popWin:MyPopupWindow = null; private var curData:ArrayCollection; // items for datagrid private var items:ArrayCollection; // items for pop up private function onAppComplete():void { curData = new ArrayCollection(); curData.addItem( { ident:ORD, cityname:Chicago, IL } ); curData.addItem( { ident:ATL, cityname:Atlanta, GA } ); curData.addItem( { ident:DEN, cityname:Denver, CO } ); curData.addItem( { ident:, cityname: } ); // one blank pointGrid.rowCount = 5; pointGrid.dataProvider = curData; items = new ArrayCollection(); items.addItem( {ident:JFK, cityname:New York, NY} ); items.addItem( {ident:LAX, cityname:Los Angeles, CA} ); items.addItem( {ident:SEA, cityname:Seattle, WA} ); } private function onClick():void { if(popWin == null) { popWin = new MyPopupWindow(); popWin.itemChoices = items; } PopUpManager.addPopUp(popWin, this, true); PopUpManager.centerPopUp(popWin); } private function onCellEdit(event:DataGridEvent):void { if(event.reason == DataGridEventReason.CANCELLED) return; if(popWin == null) { popWin = new MyPopupWindow(); popWin.itemChoices = items; } PopUpManager.addPopUp(popWin, this, true); PopUpManager.centerPopUp(popWin); } ]] /mx:Script mx:VBox mx:Label text=Clicking the button creates popup OK: / mx:Button id=theButton label=Click Me click=onClick()/ mx:Label text=However, editing a cell FIRST fails: / mx:DataGrid id=pointGrid itemEditEnd=onCellEdit(event) editable=true mx:columns mx:DataGridColumn id=identCol width=50 dataField=ident headerText=Ident/ mx:DataGridColumn id=citynameCol width=90 dataField=cityname headerText=City/Name paddingLeft=1 paddingRight=1/ /mx:columns /mx:DataGrid /mx:VBox /mx:Application [File2: MyPopupWindow.mxml] == ?xml version=1.0 encoding=utf-8? mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute width=400 height=300 title=The Popup Window mx:DataGrid id=selItemList dataProvider={itemChoices} width=100% height=100% mx:columns
Re: [flexcoders] A way to Timer
Try to use this code. i used that to create a cutdown timer for flash cs3 , so will give you an idea on how to do that. this.onEnterFrame = function() { var hoje:Date = new Date(); var anoAtual:Number = hoje.getFullYear(); var horaAtual:Number = hoje.getTime(); var dataEvento:Date = new Date(anoAtual, 9, 2); var tempoAlvo:Number = dataEvento.getTime(); var tempoRestante:Number = tempoAlvo-horaAtual; var segundos = Math.floor(tempoRestante/1000); var minutos = Math.floor(segundos/60); var horas = Math.floor(minutos/60); var dias = Math.floor(horas/24); // iniciando o contagem regressiva segundos = String(segundos%60); if (segundos.length2) { segundos = 0 + segundos; } minutos = String(minutos%60); if (minutos.length2) { minutos = 0+ minutos; } horas = String(horas%24); if (horas.length2) { horas = 0+horas; } dias = String(dias); var contador:String = dias+:+horas+:+minutos+:+segundos; // tempo_txt tempo_txt.text = contador; // Finalizando }; regards igor Costa www.igorcosta.org www.igorcosta.com On Dec 10, 2007 7:25 PM, markcavins [EMAIL PROTECTED] wrote: Hello, I have a very functional timer here that I am using but I would like to get some advice on how to make it better. Code: private function getDaysUntil():void { // creates a new five-minute Timer var minuteTimer:Timer = new Timer(1000, 300); // designates listeners for the interval and completion events minuteTimer.addEventListener(TimerEvent.TIMER, onTick); minuteTimer.addEventListener(TimerEvent.TIMER_COMPLETE, onTimerComplete); // starts the timer ticking minuteTimer.start(); } public function onTick(evt:TimerEvent):void { var minuteTimer:Timer = evt.target as Timer; lblTimeUntil.text = minuteTimer.currentCount.toString(); } public function onTimerComplete(evt:TimerEvent):void { var minuteTimer:Timer = evt.target as Timer; minuteTimer.reset(); minuteTimer.start(); } I would like to be able to split the time into minutes and seconds. Also I would like to get it to count down instead of up. -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Flex with Lds in apache Geronimo
Before you deploy the flex.war into geronimo you have to read the instructions of installation file, you need some .jars to get it done. This problem s caused because lcds depends on some libraries that is missing on geronimo. a way back 3 months ago i created an appliation with lcds and geronimo with no doubt. Regards Igor Costa www.igorcosta.org www.igorcosta.com On Dec 9, 2007 1:18 PM, yusuf.baker [EMAIL PROTECTED] wrote: Hello I am trying to deploy my flex app with Lds into geromino v2. Geronimo throws an exception org.apache.geronimo.common.DeploymentException: Could not parse TLD file at file in /WEB-INF/lib/flex-bootstrap-jsp.jar. This is a flex jar. The exception is caused by org.apache.xmlbeans.impl.piccolo.io.IllegalCharException: Illegal XML character: 0x3 I have looked at this tld file and i can see no illegal character. Does this mean that flex cannot work in Geronimo application server? Or am i missing something. Oh yes i forgot to say i did try just deploying the flex.war file into geronimo using the geronimo console page and i recieved the same exception. -- View this message in context: http://www.nabble.com/Flex-with-Lds-in-apache-Geronimo-tp14238907p14238907.html Sent from the FlexCoders mailing list archive at Nabble.com. -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] How To Hide Tab Of Tabnavigator
set the id to the container and then put visible='false simple and functional. regards. On Dec 10, 2007 9:34 AM, Scott Melby [EMAIL PROTECTED] wrote: tabNav.removeChildAt(index) works for me. hth Scott Scott Melby Founder, Fast Lane Software LLChttp://www.fastlanesw.com yourName wrote: can any one tell my how i can set visibility of tabnavigator tab by using any variable or how can hide tabnavigator tab... Thanks in advance... -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Include CA certificate in flex for a SSL connection?
Yes, you need first instance crossdomain. Throw out your http protocol and set an https server for tunneling the webservices. for ceritifcation propouses just pass the https url and flex rpc collection understand that is a certification . Nothing needs more. ;) best On 5/25/07, pioplacz [EMAIL PROTECTED] wrote: Hi! I'm trying to get my flex app to connect with a wsdl service but that service requires that I include a CA certificate for validation off connection. My problem is that I don't really know how. I've got an example line for a Java Application from the API reference: System.setProperty(javax.net.ssl.trustStore,Path To istcacert); Does anyone here know how I can make it all possible? One more question when trying to connect to a webservice do I really need the crossdomain.xml on the data hosting server? Cause that just isn't possible. -- Igor Costa www.igorcosta.org www.igorcosta.com skype: igorpcosta
Re: [flexcoders] Re: Positioning Alert Control
Just do it using the var myAlert:Alert = new Alert(); myAlert.move(x,y); myAlert.show(Just did it,Doing x and y, null,null); Best Igor Costa On 5/25/07, cbs1918 [EMAIL PROTECTED] wrote: I have the parent set. My problem is that the parent is a large area and I do not want the alert box centered at least vertical. Here's the code I am using to call the display the alert. var confirm:Alert = Alert.show(Are you sure you want to delete the selected item(s), Confirm Delete, Alert.YES | Alert.NO, this, handleConfirmDeleteClose); --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Marvin Froeder [EMAIL PROTECTED] wrote: Simple... Lets see the show method: public static function show(text:String = , title:String = , flags:uint = 0x4 /* Alert.OK */, parent:Sprite = null, closeHandler:Function = null, iconClass:Class = null, defaultButtonFlag:uint = 0x4 /* Alert.OK*/):Alert { Just need to set there a parent! VELO On 5/25/07, cbs1918 [EMAIL PROTECTED] wrote: How do you control the position of an Alert popup? By default it appears that the location is centered within the dimensions of the flash file. The problem is that the current flash file I am working on is taller than the browsers window. So when I need to show an Alert popup some users may not see the popup because they are at the top of the page and the center of the page is off screen. Is there a way to control this, and is there a way to center the position of the popup based on the client's current viewable area? -- Igor Costa www.igorcosta.org www.igorcosta.com skype: igorpcosta
Re: [flexcoders] PopUpManager - how to pass an object to a IFlexDisplayObject
You can do that, Just do it. !--- here's the ReduxPanel component -- ?xml version=1.0 encoding=utf-8? mx:Panel creationComplete=createPopUpMe() xmlns:mx= http://www.adobe.com/2006/mxml; layout=absolute width=400 height=300 mx:Script ![CDATA[ import mx.controls.ComboBox; import mx.managers.PopUpManager; public function createPopUpMe():void { var cbx:ComboBox = new ComboBox(); cbx.x = 30; cbx.y = 30; cbx.dataProvider = reduxjd; cbx.labelField = label; addChild(cbx); } ]] /mx:Script mx:ArrayCollection id=reduxjd mx:Object label=bla bla bla/ mx:Object label=Create some stuff/ mx:Object label=redux/ /mx:ArrayCollection /mx:Panel Now here's the main Application ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.managers.PopUpManager; import mx.core.IFlexDisplayObject; public var j:IFlexDisplayObject; import ReduxPanel; public function createPopUp():void { j = mx.managers.PopUpManager.createPopUp(this,ReduxPanel,false); } ]] /mx:Script mx:Button label=Call ReduxDJ PopUp click=createPopUp()/ /mx:Application Happy Code! -- Igor Costa On 5/25/07, {reduxdj} [EMAIL PROTECTED] wrote: I am trying to pass an array collection to my pop up manager, is there a way to do this? Or, can I bind an arrayCollection to my main Application and cand the binding drilldown? Thanks. Patrick -- Igor Costa www.igorcosta.org www.igorcosta.com skype: igorpcosta
Re: [flexcoders] Flex cookbook article: Flex2 XML Reader Can Create UIComponents
Run time XML to define new MXML and complied SWF? No way man, I simplify agree with Ely, what´s the real impact of such request for the customers, Remeber that Flex is for Best User Experience. Wanna some dynamic content to be loaded or created into other componentes or application, Use for SURE the repeter or UIComponent set for do that. Or even better, Flex XML classes and XMLList package has a HUGE possibilities to the developers do such thing. Reading xml to define new Interface for SURE isn´t what companies looks like, dynamic creation policy it´s must better then that. Think a little bit and you will see that´s completly unecessery at this time. Maybe in the future but not now. - Best Igor Costa On 5/18/07, John Robinson [EMAIL PROTECTED] wrote: For the archives, compile times can be greatly reduced using fcsh, though I'm not sure how you'd go about using it in a server-side environment. http://labs.adobe.com/wiki/index.php/Flex_Compiler_Shell John On May 17, 2007, at 8:30 PM, Paul J DeCoursey wrote: You can easily integrate a compile on demand system using the Flex SDK and Tomcat. The problem is the compilers are not very fast. I'm guessing that the Apache/IIS module does some caching so that compiles run faster because they don't have to reload large libraries each time. Once the compiler is opened up a little more you should be able to implement this kind of thing. Austin Kottke wrote: Ely, I find runtime MXML something that would be invaluable. It is something that if implemented could make developing in flex a lot more scaleable and integration with the server end would be a lot more feasible. (As in doing HTTPRequests where serverside MXML could be generated through Velocity/JSP and then given back to the ui) A lot of developers don't know a thing about flex, but can learn basic MXML for layout or simple scripting and implement basic server side operations. And if these are kept just as mxml it makes updates in the future easier. We can then just tell someone (edit the MXML) and you're done, instead of download the flex sdk, set your ant build, yada ya -- some aren't programmers, but MXML is very easy to learn. It's a lot more confrontable for a designer/layout guy to tackle. Anyway, runtime MXML would be something that would majorly increase scalability and integration with servers - similar to the Apache IIS mod for JSP, etc - the only problem is that it's just for Apache or IIS. Some run tomcat, resin, etc. But having it on the client end would eliminate this problem. Best, austin Ely Greenfield wrote: Austin et. al. – There are a number of features of MXML that simply can't be replicated at runtime. Things like script blocks. Other features would be prohibitively difficult (arbitrary binding expressions, @Embed, mx:Component, among others). You could reduce MXML to a runtime-parsable subset, and I know various people have taken various approaches to this. The more you reduce it, the easier it would be to replicate…removing repeaters, implicit arrays, default properties, etc. would get you down to something that could be implemented in a reasonable amount of time. I'm curious…how many people would find runtime MXML to be important to them? Ely. *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Doug McCune *Sent:* Thursday, May 17, 2007 12:47 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Flex cookbook article: Flex2 XML Reader Can Create UIComponents Yeah, ummm, my advice would be ignore that article. That's one of the effects of having an article submission process that allows anyone to submit anything. I know the cookbook is supposed to be user generated and reviewed, but anyone from Adobe want to exercise a little editorial control? I wouldn't mind the hand of god going in there and selectively removing a little content... sometimes democracy needs a helping hand. On 5/17/07, *Daniel Freiman* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I think they're just stating that the mx.modules package exists. The sentence We also know Flex2 knows how to read MXML at runtime because the compiler knows how to convert MXML into GUI Objects doesn't inspire confidence that they know what they're talking about. Since it's possible that they don't know what a compiler does, it's also possible they're just writing and compiling Modules and don't understand that they're doing it. Then again, that wouldn't explain what they're fighting with another company about earlier in the article. They claim what they're talking about is in the docs so I'd either search them or not worry about it. My guess is you'd be searching a long time for something that isn't there. It would be nice if someone could prove my guess wrong though. Dan Freiman nondocs http://nondocs.blogspot.com On 5/17/07, *Austin Kottke* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED
Re: [flexcoders] Removing Framework dependencies using ASDoc
Simple pass this argument -exclude-class or -exclude-dependencies in your asdoc.exe best -- Igor Costa On 5/16/07, Carlos Rovira [EMAIL PROTECTED] wrote: Hi, I'm trying to create asdocs for a library of as classes and I have a problem with flex framework dependencies. I'm searching for a solution for the problem but with no luck yet. My question is: how I can exclude the flex framework classes from my documentation? -- ::| Carlos Rovira ::| http://www.carlosrovira.com ::| http://www.madeinflex.com -- Igor Costa www.igorcosta.org www.igorcosta.com skype: igorpcosta
Re: [flexcoders] Placing a tooltip
Doug http://www.igorcosta.org/?p=40 Read this post has some cool example on how to approach on that. Best -- Igor Costa On 5/14/07, dougco2000 [EMAIL PROTECTED] wrote: I'd like to be able to control the placement of a tooltip, i.e. have it appear to the left of the object. It seems to decide either above or below the object normally. Anyone develop a way to do this? thanks -- Igor Costa www.igorcosta.org www.igorcosta.com skype: igorpcosta
Re: [flexcoders] Php 5.2.2, amfphp 1.9 - anyone get this working?
You have to read this to fix it http://www.5etdemi.com/blog/archives/2007/05/amfphp-fix-for-php-522-compatibility-issue/ Best. -- Igor Costa On 5/14/07, passive_thoughts [EMAIL PROTECTED] wrote: 5.2.1 works fine, but the upgrade fails. Looking at service capture, its just getting the text back from the default page that says Your gateway is working There is a comment on the 1.9 site, something about input streams no longer being enabled by default in the new version of php but the workaround suggested there didn't work for me. Just curious if anyone else has got it working. -- Igor Costa www.igorcosta.org www.igorcosta.com skype: igorpcosta
Re: [flexcoders] Re: Compile Flex application to .exe
Yes Sergey open up your .swf in the flash player stand alone not in the browser then click in the menu File Create Projector But otherwise you can create using such as Zinc, SHX. -- Igor On 5/14/07, Sergey Kovalyov [EMAIL PROTECTED] wrote: I mean standalone application, but not Apollo at the moment. :) On 5/14/07, Sergey Kovalyov [EMAIL PROTECTED] wrote: Hi All! Is it possible to compile Flex application to .exe? If so - how? Thank you in advance. Sergey. -- Igor Costa www.igorcosta.org www.igorcosta.com skype: igorpcosta
Re: [flexcoders] open source skins
here some http://www.scalenine.com/ best -- Igor On 5/13/07, flex_estonia [EMAIL PROTECTED] wrote: are there any open source skins for flex that I can use for a new project? Andrus -- Igor Costa www.igorcosta.org www.igorcosta.com skype: igorpcosta
Re: [flexcoders] dataTipFunction on DataGridColumn with custom itemRenderer?
Todd Presuming on what Alex Harui said, here's how to procedure: mx:Component id=todd mx:Label mouseOver=parentDocument.showDaysToolTip()/ /mx:Component mx:DataGridColumn headerText=Days dataField=daysOfWeek sortable=false editable=false itemRenderer={todd} width=40 showDataTips=true dataTipFunction=showDaysToolTip/ And my function is defined like this: public function showDaysToolTip(obj:Object): String { trace(in showDaysToolTip); return testing; } Regards. On 2/13/07, Todd Breiholz [EMAIL PROTECTED] wrote: Is it just me, or is it not possible to set a dataTipFunction on a DataGridColumn that uses a custom itemRenderer? I have the following DataGridColumn defined: mx:DataGridColumn headerText=Days dataField=daysOfWeek sortable=false editable=false itemRenderer=com.meredith.newmedia.bhgdesktop.view.admin.blogDaysIcon width=40 showDataTips=true dataTipFunction=showDaysToolTip/ And my function is defined like this: public function showDaysToolTip(obj:Object): String { trace(in showDaysToolTip); return testing; } But this is never getting called. Am I doing something unsupported? Thanks! Todd -- Igor Costa www.igorcosta.org www.igorcosta.com skype: igorpcosta
Re: [flexcoders] Re: DataGridColumn showDataTips problem
Robert here's an example ?xml version=1.0? !-- Simple example to demonstrate the Alert control. -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ public function flexItem(item:Object):String { var s:String = Harvard School; return s; } ]] /mx:Script mx:ArrayCollection id=flexbrasil mx:source mx:Object nome=item valor=200 imagem=photo.png/ mx:Object nome=item 2 valor=100/ mx:Object nome=item 3 valor=500/ mx:Object nome=item 4 valor=140/ mx:Object nome=item 5 valor=340/ /mx:source /mx:ArrayCollection mx:DataGrid dataTipFunction=flexItem dataProvider={flexbrasil} mx:columns mx:DataGridColumn showDataTips=true dataTipFunction=flexItem headerText=Column 1 dataField=nome/ mx:DataGridColumn headerText=Column 2 dataField=valor/ /mx:columns /mx:DataGrid /mx:Application --- Igor Costa On 2/23/07, Robert Chyko [EMAIL PROTECTED] wrote: Nope, no dataTipFunction is declared anywhere. -Original Message- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Doug Lowder *Sent:* Thursday, February 22, 2007 6:23 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: DataGridColumn showDataTips problem Are you also setting the dataTipFunction property? That would cause the bahavior you're seeing. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Robert Chyko [EMAIL PROTECTED] wrote: I am trying to use the showDataTips property of the DataGridColumn. The documentation states: Datatips are tooltips designed to show the text that is too long for the row. I swear that in Flash, the similar functionality (whatever it was called - not showDataTips) would only show the toolTip for a cell if the text in the cell was wider than the width of the cell. The behavior I am seeing is that if I set showDataTips to true, the toolTip is always being shown, regardless of whether or not the cells text is longer than the cell. Can anyone confirm/deny? Or am I just that thick... Thanks Bob Chyko -- Igor Costa www.igorcosta.org www.igorcosta.com skype: igorpcosta