[flexcoders] Failed to disable shadow of ToolTip...
Hi, I want to remove shadow of the tooltip in my flex screen but failed to do the same... I have used (In MXML file) StyleManager.getStyleDeclaration(ToolTip).setStyle (dropShadowEnabled,false); or StyleManager.getStyleDeclaration(ToolTip).setStyle (dropShadowEnabled,false); (In CSS file) ToolTip { dropShadowEnabled: false; } But It is not working. Can anyone pls do let me know, how can I remove the shadow from the tooltip. Thanks in Advance, Sanjay Sharma MXML file == ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=ShortTimer() mx:Script ![CDATA[ import mx.events.DropdownEvent; import mx.controls.Alert; import mx.events.CloseEvent; import mx.events.ItemClickEvent; import flash.display.Sprite; import flash.events.Event; import flash.events.TimerEvent; import flash.utils.Timer; import mx.controls.ToolTip; [Bindable] public var arr:Array = ['1','2','3','4']; public var minuteTimer:Timer = new Timer (1000, 60); public var counter:int = 1; public var flag:int = 0; public function open(event:Object):void { flag = 1; } public function close(event:Object):void { flag = 0; } public function ShortTimer():void { StyleManager.getStyleDeclaration(ToolTip).setStyle (cornerRadius,0); StyleManager.getStyleDeclaration(ToolTip).setStyle (dropShadowEnabled,false); // creates a new five-second Timer //var minuteTimer:Timer = new Timer(1000, 60); // designates listeners for the interval event and the completion event minuteTimer.addEventListener(TimerEvent.TIMER, onTick); minuteTimer.addEventListener(TimerEvent.TIMER_COMPLETE, onTimerComplete); // starts the timer ticking minuteTimer.start(); } public function onTick(evt:TimerEvent):void { // displays the tick count so far // The target of this event is the Timer instance itself. ComboPos.text=tick + evt.target.currentCount + , + Counter + counter; if(flag == 0) counter++; } public function onTimerComplete(evt:TimerEvent):void { ComboPos.text=Time's Up!; } ]] /mx:Script mx:ComboBox id=myComboBox toolTip=Testing Shaddow text=Select dataProvider={arr} click=open(event) close=close (event) /mx:ComboBox mx:TextArea id=ComboPos x=129 y=42 color=#00/ /mx:Application
[flexcoders] Flex drawing application
Somebody develop a drawing/CAD application with Flex? Is Flex enough powerful to develop this kina of applications? I don't want to develop a Photoshop(for example), I have a client that need a simple CAD application, for now we develop this with wxWidgets, but I think that is possible to develop this with Flex. Thanks Giro.
RE: [flexcoders] DateChooser X and Y?
Many thanks Gordon, it works a treat! Linc _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Wednesday, 23 May 2007 9:32 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] DateChooser X and Y? Handle the DateField's open event and set the position of its dropdown. The dropdown property is in the mx_internal namespace (which means it is subject to change without notice) but you can stil access it. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ private function dateField_openHandler(event:Event):void { dateField.mx_internal::dropdown.x = 10; dateField.mx_internal::dropdown.y = 10; } ]] /mx:Script mx:DateField id=dateField open=dateField_openHandler(event)/ /mx:Application - Gordon _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Lincoln Mitchell Sent: Tuesday, May 22, 2007 3:35 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] DateChooser X and Y? yes _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Wednesday, 23 May 2007 6:07 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] DateChooser X and Y? x and y are properties, not styles. A DateField pops up its DateChooser in a location relative to the DateField. Are you trying to make it pop up in some location you specify? - Gordon _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Lincoln Mitchell Sent: Tuesday, May 22, 2007 1:50 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] DateChooser X and Y? You are right - I missed the Show Inherited Public Properties . Can this be determined if accessed via the DateField? I have been looking at dateChooserStyleName as below but this didn't work: ?xml version=1.0 encoding=utf-8? mx:ApolloApplication layout=absolute xmlns:mx=http://www.adobe.com/2006/mxml; . mx:Style .myDateChooser{x:200;y:200} /mx:Style mx:DateField dateChooserStyleName=myDateChooser/ /mx:ApolloApplication Linc _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Wednesday, 23 May 2007 12:35 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] DateChooser X and Y? In what sense do these appear to be missing? I see them in the Language Reference as inherited properties. - Gordon _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Lincoln Mitchell Sent: Tuesday, May 22, 2007 4:03 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] DateChooser X and Y? There appears to be no x and y attributes for this component but is it still possible to define exactly where the DateChooser will appear? Linc
[flexcoders] Re: Working with Session....
Ya that's true I can hold the data in flex itself but there are some session variables used by the JSPs in the same application and the same variables are also required in my flex screen to pass as a parameters for various java classes/methods calls. This purpose I need to get the session variables in flex. So pls help to do that.. Thanks, SS --- In flexcoders@yahoogroups.com, Dimitrios Gianninas [EMAIL PROTECTED] wrote: True, but the more important question is why you want to access the session? You don't need to. Remember with Flex you are creating an app that will run on the client side and you can hold all the client side data in Flex itself. Dimitrios Gianninas Developer Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Flexing... Sent: Tuesday, May 22, 2007 4:25 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Working with Session If you are using FDS, have a look at flex.messaging.FlexContext On May 22, 2007, at 11:27 AM, sanjaypmg wrote: Hi All, Am using flex with an existing java application here I need to use some session variables so can anyone let me know the followings: 1. How to get the session variables in flex 2.0. 2. How to set the session variables in flex 2.0. 3. How to destroy the session using flex 2.0. Request you all to let me know how can I do the mentioned task.. It would be a great help... thanks in advance SS -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
RE: [flexcoders] Modules + Tab Navigators = Error
Thought we fixed this in the hotfix. Do you have it? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of boy_trike Sent: Tuesday, May 22, 2007 4:00 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Modules + Tab Navigators = Error Everything works FINE until I load a new module. (Even after I go back to the original module, I get the error). Any component with a Tab Container or Accordian throws the following error when I load the component: TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.managers::HistoryManager$/register() at mx.containers::ViewStack/::addedHandler() at flash.display::DisplayObjectContainer/addChildAt() at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal:: http://www.adobe.com/2006/flex/mx/internal:: $addChildAt() at mx.core::Container/addChildAt() at mx.core::Container/addChild() at mx.core::Container/createComponentFromDescriptor() at mx.core::Container/createComponentsFromDescriptors() at mx.core::Container/mx.core:Container::createChildren() at mx.core::UIComponent/initialize() I have turned off History manager in the compiler page of the project properties. That does not help any. Any suggestions? Thanks Bruce
RE: [flexcoders] Tabbing bug - disabling tabbing in the application
Did you reparent some child in a container? You can turn off tabbing by capturing keyFocusChange event from the stage. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mr_MarkK Sent: Tuesday, May 22, 2007 5:15 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Tabbing bug - disabling tabbing in the application We are having a bug in our application when the user presses the tab key in any field. The error is the following: ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller. at flash.display::DisplayObjectContainer/getChildIndex() at mx.core::Container/getChildIndex()[C:\dev\flex_201_gmc\sdk\frameworks\mx \core\Container.as:2442] at fl.managers::FocusManager/::getChildIndex() at fl.managers::FocusManager/::sortByDepth() at Array$/Array::_sort() at Array/http://adobe.com/AS3/2006/builtin::sort http://adobe.com/AS3/2006/builtin::sort () at fl.managers::FocusManager/::sortFocusableObjects() at fl.managers::FocusManager/::keyDownHandler() I am currently unable to narrow down the problem to a specific component, so until I find a better solution, I would like to disable tabbing globally in the application. It's impossible to provide an exhaustive list of things I've tried in order to achieve that result, but I've been unable to block the tab keydown event from getting to the FocusManager. I have tried listening to the keydown event everywhere (also using useCapture = true) in the application, from the root component to the fields where the user can actually press tab, but nothing works. Does anybody have a quick fix to disable tabbing? Thanks, Mark
[flexcoders] Perth,Oz based flexoids?
Hi all, I am based in Perth, West Australia. Is any other flex developers out this way? It's always good to know. Happy to chat / get together to talk all things Flex/RIA! Linc
Re: [flexcoders] Flex drawing application
Giro wrote: Somebody develop a drawing/CAD application with Flex? we've built stuff to annotate a map image w/text, lines, polygons, arrows, etc. report it all via PDF/fashpaper (via coldfusion). it wasn't very difficult.
[flexcoders] titleWindow cutomisation
How do you remove ALL the space around a TitleWindow main content area? This is how far I have got: --- ?xml version=1.0 encoding=utf-8? mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml; title=title backgroundColor=red headerHeight=0 borderStyle=none borderSides= borderThickness=0 dropShadowEnabled=false paddingLeft=0 paddingRight=0 paddingTop=0 paddingBottom=0 mx:VBox backgroundColor=yellow width=100% height=100% /mx:VBox /mx:TitleWindow --- Any help appreciated. Linc
[flexcoders] Series::stripNaNs Exception in LineGraph
While I am trying to resolve it, if anyone has any clue about it that will be great. TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.charts.chartClasses::Series/ mx.charts.chartClasses:Series::stripNaNs() at mx.charts.series::LineSeries/ mx.charts.series:LineSeries::updateFilter() at mx.charts.chartClasses::Series/ mx.charts.chartClasses:Series::validateTransform() at mx.charts.chartClasses::Series/getRenderDataForTransition() at mx.charts.effects.effectClasses::SeriesInterpolateInstance/play() at mx.effects::EffectInstance/startEffect() the above exception only comes when I associate an effect (SeriesInterpolate in my case) with the LineSeries. I printed the values of the dataprovider associated with the LineSeries and all the values are NOT Null.
Re: [flexcoders] titleWindow cutomisation
Also set following to zero borderThicknessBottom borderThicknessTop borderThicknessLeft borderThicknessRight Refer http://livedocs.adobe.com/flex/2/langref/mx/containers/ Panel.html (TitleWindow extends Panel) for more details. On May 23, 2007, at 2:05 PM, Lincoln Mitchell wrote: How do you remove ALL the space around a TitleWindow main content area? This is how far I have got: --- ?xml version=1.0 encoding=utf-8? mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml; title=title backgroundColor=red headerHeight=0 borderStyle=none borderSides= borderThickness=0 dropShadowEnabled=false paddingLeft=0 paddingRight=0 paddingTop=0 paddingBottom=0 mx:VBox backgroundColor=yellow width=100% height=100% /mx:VBox /mx:TitleWindow --- Any help appreciated. Linc
[flexcoders] Re: titleWindow cutomisation
try mx:TitleWindow borderStyle=solid --- In flexcoders@yahoogroups.com, Lincoln Mitchell [EMAIL PROTECTED] wrote: How do you remove ALL the space around a TitleWindow main content area? This is how far I have got: --- ?xml version=1.0 encoding=utf-8? mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml; title=title backgroundColor=red headerHeight=0 borderStyle=none borderSides= borderThickness=0 dropShadowEnabled=false paddingLeft=0 paddingRight=0 paddingTop=0 paddingBottom=0 mx:VBox backgroundColor=yellow width=100% height=100% /mx:VBox /mx:TitleWindow --- Any help appreciated. Linc
[flexcoders] XSLT/XPath and flex
I want to make the best of the MXML file and generate various documents from it using XSLT and XPath. The kind of things I want to create are: 1. Lists of icons/images used in app - presented as HTML or pdf 2. List of Components used in app - presented as HTML or pdf 3. Variation of the mxml file say a PDA version. I have used an XML publishing framework called apache cocoon and wanted to really take advantage of the fact that MXML is XML. Would Cairngorm or some other framework do this or could I somehow send MXML to Cocoon? Any hints? Linc
RE: [flexcoders] titleWindow cutomisation
Grand! I guess I assumed borderThickness=0 would have dealt with that! This list is awesome. Thx heaps. Linc _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Flexing... Sent: Wednesday, 23 May 2007 4:44 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] titleWindow cutomisation Also set following to zero borderThicknessBottom borderThicknessTop borderThicknessLeft borderThicknessRight Refer http://livedocs. http://livedocs.adobe.com/flex/2/langref/mx/containers/Panel.html adobe.com/flex/2/langref/mx/containers/Panel.html (TitleWindow extends Panel) for more details. On May 23, 2007, at 2:05 PM, Lincoln Mitchell wrote: How do you remove ALL the space around a TitleWindow main content area? This is how far I have got: --- ?xml version=1.0 encoding=utf-8? mx:TitleWindow xmlns:mx= http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml; title=title backgroundColor=red headerHeight=0 borderStyle=none borderSides= borderThickness=0 dropShadowEnabled=false paddingLeft=0 paddingRight=0 paddingTop=0 paddingBottom=0 mx:VBox backgroundColor=yellow width=100% height=100% /mx:VBox /mx:TitleWindow --- Any help appreciated. Linc
[flexcoders] Charts and FlashPaper
Anyone tried using FlashPaper as a printing solution for their data driven Flex app, particularly using Flex charts? Is it possible to generate FlashPaper content either client or server side and have it rendered in the browser ready printing? Any good tips or sites which show the way? Thanks Simon
[flexcoders] Cast Exception from FDS to Hibernate
Hi all, I have an hibernate mapping defined with some properties and a relationship: set name=items table=... lazy=false key column=.../ one-to-many class=.../ /set This relationship is defined in the java bean as: private Collection items; On the Flex side, I'm receiving this relationship as an ArrayCollection. The serialization from java.util.Collection to Flex ArrayCollection works fine but, when I try to save the changes made on the client side ( what, on the server side, gets translated into getHibernateTemplate().update ( .. ) ), it just fails throwing this error: java.lang.ClassCastException : flex.messaging.io.ArrayCollection cannot be cast to java.util.Set Im stuck and I dont know what to do. Any ideas? Thank you! Alberto
[flexcoders] [JOB POSTING] Flex / Flash developers needed in New Delhi, India
We are looking for intermediate to advanced Flex developers or very advanced Actionscript 2 developers. You should be motivated for work, coming up with your own ideas and taking initiative. We put a lot of effort into RND, so we do NOT need do as you're told kind of people. The company is 130+ people, working exclusively for international clients such as Pearson Education, Bedford, Willey, BBC, Publicis, etc. So the projects are from publishing, education and advertising field including gaming and RIA. Salary is very generous, above industry standard and depending on experience. Please email me if you're interested and I will give you the corporate info. Come on guys, you'll have fun here :) Thanks, Alen
[flexcoders] Locking Last row in a Flex Data Grid
hi, Does anybody know how to lock a last row in a datagrid. I know that lockedRowCount can lock all the rows abouve the specified index, but I need to lock the last row in data grid in addition to header row. This last row will show the Total value for each column and it should be locked dharmendran a Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. http://tv.yahoo.com/
Re: [flexcoders] Locking Last row in a Flex Data Grid
On Wednesday 23 May 2007, Dharmendran A wrote: to lock the last row in data grid in addition to header row. This last row will show the Total value for each column and it should be locked Have you considered just putting another DataGrid under the data one with the totals in ? -- Tom Chiverton Helping to dynamically incentivize best-of-breed channels on: http://thefalken.livejournal.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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] work-arounds saving to file? [was: output formats (excel/word)]
On Wednesday 23 May 2007, barry.beattie wrote: perhaps really pushed ExternalInterface to send (a fair bit of content) to a HTML window (ie: Flex opening a new window, send it the content)? Yeah, that could work actually... -- Tom Chiverton Helping to widespreadedly negotiate global design-patterns on: http://thefalken.livejournal.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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Populating a form
On Tuesday 22 May 2007, cbs1918 wrote: populate the form for the user to edit. Is there a 'Best Practice' or a proper way to wait to populate the form until all of the drop downs have been populated? Validators. You'd define all your 'OK' conditions, then check each validation result from the change handler of each drop down. If they are all OK, do the remote call. -- Tom Chiverton Helping to efficiently unleash slick solutions on: http://thefalken.livejournal.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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Locking Last row in a Flex Data Grid
One approach can be: http://flex-apollo.blogspot.com/2007/05/adding-total-row-at-end-of- datagrid.html On May 23, 2007, at 2:46 PM, Dharmendran A wrote: hi, Does anybody know how to lock a last row in a datagrid. I know that lockedRowCount can lock all the rows abouve the specified index, but I need to lock the last row in data grid in addition to header row. This last row will show the Total value for each column and it should be locked dharmendran a Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV.
Re: [flexcoders] Embedding Verdana font may shadow error
Gotta love cryptic messages. Though, I guess they're not as bad as I've seen in some of my other programs. :) Happy we could help out. I'm sure I've been a pain since I signed up to flexcoders with all sorts of questions ... so anywhere I can help I'm more than happy to. cheers, jon On May 22, 2007, at 5:57 PM, Douglas McCarroll wrote: Jon and Dan, Thanks much. Very helpful. So when the warning says fontName it really means fontFamily, at least in this case. (Snort!)
Re: [flexcoders] Locking Last row in a Flex Data Grid
http://blogs.adobe.com/aharui/2007/04/datagrid_footers.html I suppose this is what u are looking for On 5/23/07, Flexing... [EMAIL PROTECTED] wrote: One approach can be: http://flex-apollo.blogspot.com/2007/05/adding-total-row-at-end-of-datagrid.html On May 23, 2007, at 2:46 PM, Dharmendran A wrote: hi, Does anybody know how to lock a last row in a datagrid. I know that lockedRowCount can lock all the rows abouve the specified index, but I need to lock the last row in data grid in addition to header row. This last row will show the Total value for each column and it should be locked dharmendran a -- Ready for the edge of your seat? Check out tonight's top pickshttp://us.rd.yahoo.com/evt=48220/*http://tv.yahoo.com/on Yahoo! TV.
[flexcoders] Problems with configuring Eclipse workspace (Flex, Java, JBoss)
I have a workspace in Eclipse 3.2.2 (with WTP 1.5.4 and Flex plugin) with one Dynamic Web Project. This dynamic web project contains my Flex application and some Java files as well. I would like to be able to do the following: - deploy this as a war-file to JBoss (version 4.0.2) - be able to debug the Java as well as the Flex files - have the Flex Development Perspective work correctly (ie. Design Mode should work correctly) - have hot deployment of changes in the Java and Flex files to JBoss (perhaps a different issue) First let me explain the source folder structure. WebProject |- locale (contains resourcebundles for each language the application needs to support (in seperate directories)) |- src |- main |- java (all my java source files) |- flex (all my flex source files) |- webapp (contains WEB-INF, META-INF, main application mxml, images etc) |- test |- java (all my java test source files) |- flex (all my flex test source files) The Dynamic Web Project has the Java Nature as well as the Flex Nature. The build path for Java is as follows: - WebProject/locale/en_US (output folder: WebProject/src/main/webapp/WEB-INF/flex/user_classes) - WebProject/src/main/flex (output folder: WebProject/src/main/webapp/WEB-INF/flex/user_classes) - WebProject/src/test/flex (output folder: WebProject/src/main/webapp/WEB-INF/flex/user_classes) - WebProject/src/test/java (output folder: WebProject/src/main/webapp/WEB-INF/classes) (Default output folder is WebProject/src/main/webapp/WEB-INF/classes) The build path for Flex is as follows: Main source folder: WebProject/src/main/webapp Output folder: WebProject/src/main/webapp/WEB-INF/flex/user_classes Additional source folders outside main source folders: - WebProject/locale/en_US - WebProject/src/main/flex - WebProject/src/test/flex Problem 1: in Design Mode in the Flex Development Perspective all components present in the src/main/flex directory are not found, they appear as a red cross. However I have no compile errors. When I deploy the WebProject to JBoss the application works fine. I can debug the Java code (when JBoss is started in Debug mode), and debug the Flex application (by debugging the Flex Application which points to the location where JBoss is running). It seems the Flex Development Perspective is having trouble with recognizing the additional source paths in the Design Mode. When I move the components from the src/main/flex directory to the main source folder of Flex (src/main/webapp) it does work correctly. However I no longer have a separation between the Flex source and test files, plus this means I have to change the Maven build file and that's something I'd rather not do. Problem 2: When I make a change in a mxml, I would like to see this change immediately a my JBoss server. I can understand that I would have to reload the application, but currently it's necessary to stop and start JBoss. So my questions are: What should I do to fix the problem in Design Mode? And is it possible to have Flex do hot deployment to JBoss (or any other server)?
[flexcoders] AS3: dispatchEvent from within event handler?
I'm trying to do what i think should be pretty simple. I want to dispatch an event when my xml has completed lodaing. For the life of me i can't figure out why event does not get dispatched from handleXML, I know the listner works because I've tested it by dispatching the same event from a button click. Any ideas what I may be doing wrong? package { import flash.display.Sprite; import com.acme.AppController; import com.acme.MyService; public class MyView extends Sprite { public function MyView() { var controller:MyController = new MyController(this); } } } package com.acme { import flash.events.EventDispatcher; import flash.events.Event; import flash.display.Sprite; import com.acme.MyService; public class MyController extends EventDispatcher { private var _view:Sprite; private var _service:MyService; public function MyController(target:Sprite){ _view = target; _view.addEventListener(xmlLoaded, doSomething); _service = new MyService(); } public function doSomething(e:Event):void{ trace(doSomething CALLED); } } } package com.acme { import flash.events.EventDispatcher; import flash.events.Event; import flash.net.URLLoader; import flash.net.URLRequest; public class MyService extends EventDispatcher { private var _loader:URLLoader; private var _xml:XML; public function MyService(){ _loader = new URLLoader(); _loader.addEventListener(Event.COMPLETE, handleXML); _loader.load(new URLRequest(xml/data.xml)); } public function handleXML(event:Event):void{ dispatchEvent(new Event(xmlLoaded, true)); // this never fires _xml = new XML(_loader.data); } } }
RE: [flexcoders] display more data on a row from mysql
Hi, yes i found it, but i only get one field on each column:(, how do i make several field data in one column, maybe separate by line return betweem field data, could u give some hint? thx in advance --- Alex Harui [EMAIL PROTECTED] wrote: Read up on custom item renderers. You can use them to make any cell look like just about anything. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ary Sent: Sunday, May 20, 2007 10:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] display more data on a row from mysql Hi All, i've succeded in displaying data from mysql (php) into datagrid, now i want to display more customize data in a single row and column, lets say like video playlist, u have title, short description duration, thumbnail, in a single cell (like youtube playlist), i try using mx:repeater it only display 1 record :( , any idea how can i achieve this? thanks in advance! __ Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games. http://sims.yahoo.com/ http://sims.yahoo.com/ Shape Yahoo! in your own image. Join our Network Research Panel today! http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
[flexcoders] DataGrid with multiple rowheaders / colheaders - Flex 3?
Hi all, I've been off this list for about a year now, so i'm not completely up to date on the activity on the list. However, i've still failed to find people extending the DataGrid component to allow for multiple row/column headers and groups and row/column footers. I know that I can probably write such a component myself, but I've been delaying it in hope of somebody else writing it first :) Anyways, does anybody know of such an implementation of the DataGrid, or does anybody know if the Flex team at Adobe is working on such a component for the next release of Flex? Speaking of which - I've heard some rumours of Flex 3. Is there a status, feature-list or alpha-release-plan or something? Best regards, Gunnar A. Reinseth (developer at Exie AS)
RE: [flexcoders] How to keep TextArea from losing focus?
Thank you, thank you, thank you. Hit the nail right on the head: this.textField.alwaysShowSelection = true; Mark _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: 21 May 2007 18:52 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How to keep TextArea from losing focus? I think you want subclass, get to the inner TextField and set alwaysShowSelection on it. _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Monday, May 21, 2007 4:35 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How to keep TextArea from losing focus? I've tried using systemManager.stage.focus and the various setFocus and MOUSE_FOCUS_CHANGE / KEY_FOCUS_CHANGE (with preventDefault) being called. But the focus is still lost from the Text Area. This is what I'm doing currently: this.addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, handleMouseFocusChange); this.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, handleKeyFocusChange); this.textField.addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, handleMouseFocusChange); this.textField.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, handleKeyFocusChange); private function handleMouseFocusChange(event:FocusEvent):void { event.preventDefault(); } private function handleKeyFocusChange(event:FocusEvent):void { event.preventDefault(); } I hoped that would stop the focus from moving away from the text area - but it doesn't. Thanks, Mark -Original Message- From: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com [mailto:[EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com] On Behalf Of Tom Chiverton Sent: 21 May 2007 12:29 To: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com Subject: Re: [flexcoders] How to keep TextArea from losing focus? On Monday 21 May 2007, Mark Ingram wrote: Hi, how can I stop a text area from losing focus? I always want it to show the selection, no matter if the user is in another control. Have you tried the various focus related methods listed in the LiveDoc ? -- Tom Chiverton Helping to enthusiastically build industry-wide applications on: http://thefalken. http://thefalken.livejournal.com livejournal.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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups. http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail- http://www.mail-archive.com/flexcoders%40yahoogroups.com archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
[flexcoders] Highlight a word in a RichTextEditor
Hi all, Would you know how to highlight a word in a RichTextEditor? I'd like to underline a word, not by using TextFormat.underline but by putting a sort of lacy line like when a word is mispelled in MS Word. Hope you can help me on that. Cheers! Julien
RE: [flexcoders] How to keep TextArea from losing focus?
Thank you, thank you, thank you. Hit the nail right on the head: this.textField.alwaysShowSelection = true; Mark _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: 21 May 2007 18:52 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How to keep TextArea from losing focus? I think you want subclass, get to the inner TextField and set alwaysShowSelection on it. _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Monday, May 21, 2007 4:35 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How to keep TextArea from losing focus? I've tried using systemManager.stage.focus and the various setFocus and MOUSE_FOCUS_CHANGE / KEY_FOCUS_CHANGE (with preventDefault) being called. But the focus is still lost from the Text Area. This is what I'm doing currently: this.addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, handleMouseFocusChange); this.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, handleKeyFocusChange); this.textField.addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, handleMouseFocusChange); this.textField.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, handleKeyFocusChange); private function handleMouseFocusChange(event:FocusEvent):void { event.preventDefault(); } private function handleKeyFocusChange(event:FocusEvent):void { event.preventDefault(); } I hoped that would stop the focus from moving away from the text area - but it doesn't. Thanks, Mark -Original Message- From: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com [mailto:[EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com] On Behalf Of Tom Chiverton Sent: 21 May 2007 12:29 To: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com Subject: Re: [flexcoders] How to keep TextArea from losing focus? On Monday 21 May 2007, Mark Ingram wrote: Hi, how can I stop a text area from losing focus? I always want it to show the selection, no matter if the user is in another control. Have you tried the various focus related methods listed in the LiveDoc ? -- Tom Chiverton Helping to enthusiastically build industry-wide applications on: http://thefalken. http://thefalken.livejournal.com livejournal.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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups. http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail- http://www.mail-archive.com/flexcoders%40yahoogroups.com archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
RE: [flexcoders] Change hardcoded XML for dynamic XML source
If I brouwse to the stafflist.php file from a browser I get XML in avalid format :-) How do I get the data into my flex app??? To get XML from PHP, you must set resultFormat=e4x on your mx:HTTPService tag. Otherwise, you will receive your data as ActionScript Objects. And, like Tracy said, you need a result handler. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Monday, May 21, 2007 12:28 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Change hardcoded XML for dynamic XML source Use an instance variable to hold your data. But your hard coded data is not xml. Start by hardcoding your sample xml into the app and putting it in an instance variable. When you have everything working that way, make the httpservice.send() call. Use a result handler function to receive the data, and then assign it to the instance variable. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of portuguesedanny Sent: Sunday, May 20, 2007 2:03 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Change hardcoded XML for dynamic XML source Hi All, Can anyone help? It is probably something very simple :-s The following code works ok, but I need to change the source of the XML data... ### CODE # ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=vertical creationComplete=initData() mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] private var dataList:ArrayCollection ; private function initData():void{ dataList= new ArrayCollection([ {name:school A, city:Paris}, {name:school B, city:Pomona }, {name:School C, city:Phillipsburg}, {name:School D, city:Liverpool}, {name:School E, city:Madrid}, ]) } private function filterDemo():void{ dataList.filterFunction = searchDemo; dataList.refresh(); } private function searchDemo(item:Object):Boolean{ var isMatch:Boolean = false if(item.name.toLowerCase().search(search.text.toLowerCase()) != -1){ isMatch = true } return isMatch; } private function clearSearch():void{ dataList.filterFunction = null; dataList.refresh(); search.text = ''; } ]] /mx:Script mx:Form mx:FormItem label=Search Name direction=horizontal mx:TextInput id=search change=filterDemo() / mx:Button label=Clear Search click=clearSearch() / /mx:FormItem /mx:Form mx:DataGrid dataProvider={dataList} width=400 height=400 mx:columns mx:DataGridColumn headerText=Name dataField=name / mx:DataGridColumn headerText=City dataField=city / /mx:columns /mx:DataGrid /mx:Application ### /CODE # As the XML data source in the above example is hardcoded, I want to modify the code to get the data from a URL, but am having trouble..! The following code is what I am having trouble with setting the XML source... Can anyone help, suggest how I might change CHANGE THIS private function initData():void{ dataList= new ArrayCollection([ {name:school A, city:Paris}, {name:school B, city:Pomona }, {name:School C, city:Phillipsburg}, {name:School D, city:Liverpool}, {name:School E, city:Madrid}, ]) } /CHANGE THIS TO THIS # private function initData():void{ dataList= new ArrayCollection( mx:HTTPService id=getStaffList url=http://192.168.0.84/amfphp/stafflist.php http://192.168.0.84/amfphp/stafflist.php / ) } /TO THIS This should be the final code that works, but doesnt :-( ### CODE # ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=vertical creationComplete=getStaffList.send(); mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] private var dataList:ArrayCollection ; private function getStaffList():void{ dataList= new ArrayCollection; } private function filterDemo():void{ dataList.filterFunction = searchDemo; dataList.refresh(); } private function searchDemo(item:Object):Boolean{ var isMatch:Boolean = false if(item.name.toLowerCase().search(search.text.toLowerCase()) != -1){ isMatch = true } return isMatch; } private function clearSearch():void{ dataList.filterFunction = null; dataList.refresh(); search.text = ''; } ]] /mx:Script mx:HTTPService id=getStaffList url=http://192.168.0.84/amfphp/stafflist.php http://192.168.0.84/amfphp/stafflist.php / mx:Form mx:FormItem label=Search direction=horizontal mx:TextInput id=search change=filterDemo() / mx:Button label=Clear Search click=clearSearch() / /mx:FormItem /mx:Form mx:DataGrid dataProvider={dataList} width=400 height=400 mx:columns mx:DataGridColumn headerText=Staff Code dataField=staffcode / mx:DataGridColumn headerText=Department
[flexcoders] Senior Flex Programmer Job Posting
I hope this posting is okay -- we are seeking a senior programmer to work in Flex, and this seemed like a perfect place to find someone. The posting is below. Thanks, Vanessa ___ *MIXEDINK LLC Senior Programmer (Remote)* *Company Description:* MixedInk LLC is an exciting startup company that aims to revolutionize online collaborative writing. *Job Qualifications:* - MS/BS in Computer Science or related background required, coursework in math and statistics preferred. - 3-5 years of development experience. - Experience with rich internet application development in Java, Flex and Ajax. - Proficient in PHP. - Relational database design/development skills. - Strong knowledge of different client-to-server communication approaches and protocols. - Excellent knowledge of object-oriented design, analysis, and programming. *Job Description:* This position offers an opportunity to help shape the future of online collaboration. The right candidate will be an exceptional programmer with a strong academic and professional background. The candidate must be a self starter, work well in teams and be able to work well in a high-pressure startup environment without much supervision. - Play lead role in all phases of the design and development of new applications and the implementation, customization and integration of software as well as maintenance and enhancement of existing software. - Customize software based on clients' needs. - Participate actively in software design discussions. - Share opinions and experiences in usability and program user interface. - Produce results in short timeframes. We will be accepting cover letters and resumes on a rolling basis through June 15th. Please respond to [EMAIL PROTECTED]
RE: [flexcoders] TileList itemRenderer resize
commitProperties should have called measureWidthOfItems, measureHeightOfItems. If not then explicitRowHeight/ColumnWidth did get set. Maybe you should post a mini-example. -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Grace Sent: Monday, May 21, 2007 1:13 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] TileList itemRenderer resize A few Alert.show()'s later and I can verify that the functions are being called in the order that you say: I set itemsNeedMeasurement = true, then call invalidateProperties(), then Flex calls commitProperties() and makeRowsAndColumns. But it still doesn't seem to size the rows any differently than the first time it was rendered. Daniel On 5/18/07, Alex Harui [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Is it possible you set explicit rowHeight and columnWidth? commitProperties() should get called followed by makeRowsAndColumn. -Alex From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Daniel Grace Sent: Friday, May 18, 2007 2:22 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] TileList itemRenderer resize I added the following code to the TileList: public override function set dataProvider(o: Object): void { if (this.dataProvider) { this.dataProvider.removeEventListener (collectionChange, this.cc); } super.dataProvider = o; this.dataProvider.addEventListener(collectionChange, this.cc); this.callLater(this.cc); } private function cc(event: Event = null): void { this.itemsNeedMeasurement = true; this.invalidateProperties (); } I have added (and since removed, since it was noisy) an alert to my cc function, so I know that it's getting called when my underlying data gets changed... but the individual tiles still aren't resizing. I can see the very top part of the unhidden data in the tiles, but it doesn't expand to see the rest. Am I handling this in the wrong place? TIA, Daniel On 5/18/07, Alex Harui [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Try setting itemsNeedMeasurement=true and calling invalidateProperties(). From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Daniel Grace Sent: Friday, May 18, 2007 12:26 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: [flexcoders] TileList itemRenderer resize I am using a mostly default (some options, no subclassing) TileList with a custom itemRenderer. I have been using the same itemRenderer for a while with no problems. I made a change to where one of the UI elements inside of this itemRenderer sets its visible and includeInLayout to false depending on the underlying data. When this happens the height of the itemRenderer should change, but the TileList doesn't seem to realize this. I am assuming that the TileList does a height/width calculation early on and doesn't notice that things are different. I am fine with subclassing, but at this point I don't know where to look for the right functions/events to latch on to to make this work as I expect. BTW, I know that the measurements are based off of the first data element, but because of the way this actual application works all of its itemRenderers will be the same size -- they just need to change sizes at runtime sometimes. TIA, Daniel
RE: [flexcoders] Re: Datagrid auto sorting. Has anyone done this?
Off the top of my head... using the Sort class on your dataprovider will do what you are looking for. Even sets the sort arrow for you. Using placeSortArrow() gets a little hairy, I've been down that road before. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ian M. Jones Sent: Tuesday, May 22, 2007 11:31 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Datagrid auto sorting. Has anyone done this? As a total newbie, having just seen this in the docs, I may be totally wrong, but have you looked at the DataGrid's placeSortArrow() method? I'm not sure how you use it, but it looks promising. Regards, -- Ian M. Jones IMiJ Software http://www.imijsoft.com http://www.imijsoft.com http://www.ianmjones.net http://www.ianmjones.net (blog) On Tue, May 22, 2007 14:06, polestar11 wrote: Hi there I tried exactly that in various different ways, but wasnt able to get it to work. I have an array, which I convert to an array collection, on which I sort and refresh, after which I set as a dataProvider for my DataGrid. Still no sort arrow is shown. I then tried extending the DataGrid class, but that opened up another can of worms Help, anyone?? Tracy --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Manish Jethani [EMAIL PROTECTED] wrote: On 4/28/07, Mark Piller [EMAIL PROTECTED] wrote: Do you know how to configure a datagrid to automatically sort in a particular column before the data is rendered? Basically you just set the sort on the collection, and the DataGrid will appropriately display a sort arrow on the header. So it's the collection you need to sort. You can see an example of how to sort a collection here: http://www.adobe.com/livedocs/flex/2/langref/mx/collections/Sort.html http://www.adobe.com/livedocs/flex/2/langref/mx/collections/Sort.html -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
Re: [flexcoders] Highlight a word in a RichTextEditor
On Wednesday 23 May 2007, Julien Phalip wrote: Would you know how to highlight a word in a RichTextEditor? RTE has a htmlText property that understands simple HTML, so something like the following: rte.htmlText=rte.htmlText.replace(someString,font color=redu+someString+/u/font) is possible. -- Tom Chiverton Helping to ambassadorially seize strategic markets on: http://thefalken.livejournal.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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] display more data on a row from mysql
On Wednesday 23 May 2007, Ary wrote: Hi, yes i found it, but i only get one field on each column:(, how do i make several field data in one column, maybe separate by line return betweem field data, could u give some hint? Your renderer gets passed the whole data item as well as a column name, if you want to access other fields and concatenate them, do so. -- Tom Chiverton Helping to preemptively extend B2C partnerships on: http://thefalken.livejournal.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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: Flex beginner cannot run mx:Script .... /mx: Script
That code works fine... make sure the ? is the first thing in the file and there is nothing before it. Dimitrios Gianninas Developer Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of henryaydin Sent: Tuesday, May 22, 2007 11:08 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex beginner cannot run mx:Script /mx: Script ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml xmlns=* layout=vertical creationComplete = initApp() mx:Script ** error is here *** ![CDATA[ //ActionScript statements public function initApp():void { mainTxt.text=hello world; } ]] /mx:Script mx:Label id=title fontSize=24 fontStyle=bold text=Hello World Example / mx:Label id=subtitle fontSize=12 text=From Programming ActionScript 3.0, Chapter 2: Getting Started / mx:TextArea id = mainTxt width=400/ mx:SWFLoader width=208 height=160/ /mx:Application --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Dimitrios Gianninas [EMAIL PROTECTED] wrote: Also try to post a portion of your app so we can see what you are doing, just in case in ain't the error Brian mentions. Dimitrios Gianninas Developer Optimal Payments Inc. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Sterling, Brian Sent: Tuesday, May 22, 2007 8:51 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: RE: [flexcoders] Flex beginner cannot run mx:Script /mx: Script Make sure you have the right xml namespace attribute on your application like so: mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml ... -Brian From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of henryaydin Sent: Tuesday, May 22, 2007 3:01 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups.com Subject: [flexcoders] Flex beginner cannot run mx:Script /mx: Script When I try to run my first actionscript application in flex, I get an error: Could not resolve mx:Script to a component implementation message. I've been trying many ways to pass this error but I couldn't success yet. Pls help me who knows this error. Thanks -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e- mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
[flexcoders] Problem: FileReference onComplete event handler fires too soon - not properly waiting for HTTP status code 200
Dear all, We are trying to use Flash 8's FileReference API to upload the big media files in our web app. In our application we upload big media file first to some transient server and then immediately in the same uploading process we start moving this file to Amazon S3 file storage server. The whole uploading process for big media file can be accomplished within 100 seconds, 200 seconds or even 10 000 seconds on slow connections. Important note: Only after the WHOLE upload process finishes, HTTP status code 200 is sent from the server to the Flash player. Unfortunately, for some reason, FileReference 'onComplete' event handler ALWAYS fires after aprox.10-15 sec of time, regardless the fact that HTTP status code 200 is sent from the server after 100 seconds, 200 seconds and even 10 000 seconds. Why is that? Accordingly to Flash 8 livedocs, FileReference onComplete event handler fires ONLY when Flash Player has received an HTTP status code of 200 from the server . http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=2215.html -- With flex regards, Andriy Panas
RE: [flexcoders] Re: Cairngorm event question.
Thanks, This clarifies issue quite nicely for me. Tero _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mssairam Sent: 22 May 2007 14:59 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Cairngorm event question. Hi, Really you just need to have a LoginEvent, I think. Here is a sequence of the scenario -- 1) User enters username and password and clicks submit 2) A Cairngorm event named LoginEvent is broadcast probably with data elements containing username and password as entered by user 3) The Cairngorm controller has a mapping for LoginEvent-. The controller uses this mapping and figures out the class that handles this event -- lets say a class called LoginCommand 4) LoginCommand class should have a method declared -- public function execute( event : CairngormEvent ): void The event is passed to this method and this method effectively makes a call to the server. Typically this is done through a Delegate class. This is an asynchronous call so the execute method doesnt really wait for the response. 5) The same LoginCommand class should have a method that looks like this ... public function onResult( event : * = null ) : void When the server comes back with results after processing, this method receives the response back and processes it. 6) However if some error occurs, the handling is done by another method -- public function onError( event : * = null ) : void 7) In the onResult and onError methods, the information from the server is used to update the display. Typically this is done by updating the Model with the newly acquired information and the view updates itself by a previously specified databinding mechanism. I am not an expert on Cairngorm -- hope this helps. thanks --- In HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED], Tero Pikala [EMAIL PROTECTED] wrote: Hi I'm designing my first Cairngorm application and would like to have opinions about events to create. I will definitely have LoginEvent which takes place after user has entered credentials and clicked Login button. Should I also create events like LoginSuccessfulEven-t, LoginFailedEvent and PasswordExpiredEven-t which would happen in result to a server response? I think I should but this being my first project I'm not sure about it and would like to have some feedback from the experts. Thanks Tero No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.7.6/813 - Release Date: 20/05/2007 07:54 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.7.6/813 - Release Date: 20/05/2007 07:54 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.7.6/813 - Release Date: 20/05/2007 07:54 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.7.6/814 - Release Date: 21/05/2007 14:01
RE: [flexcoders] XSLT/XPath and flex
Flex and MXML are used for creating rich internet applications. The other things you mentioned are all static documents. While it's certainly feasible to convert MXML to the other formats, you will have to greatly limit what you do in MXML in order to achieve this goal--particularly using custom components and dynamic runtime generated content. Sam --- We're Hiring! Seeking a passionate developer to join our team building Flex based products. Position is in the Washington D.C. metro area. If interested contact [EMAIL PROTECTED] -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Lincoln Mitchell Sent: Wednesday, May 23, 2007 4:49 AM To: flexcoders@yahoogroups.com Cc: [EMAIL PROTECTED] Subject: [flexcoders] XSLT/XPath and flex I want to make the best of the MXML file and generate various documents from it using XSLT and XPath. The kind of things I want to create are: 1. Lists of icons/images used in app - presented as HTML or pdf 2. List of Components used in app - presented as HTML or pdf 3. Variation of the mxml file say a PDA version. I have used an XML publishing framework called apache cocoon and wanted to really take advantage of the fact that MXML is XML. Would Cairngorm or some other framework do this or could I somehow send MXML to Cocoon? Any hints? Linc
RE: [flexcoders] XSLT/XPath and flex
You say it's feasible - do you know how? In addition, I would like to generate mxml via a series of chained xslt files. Linc _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Samuel R. Neff Sent: Wednesday, 23 May 2007 9:16 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] XSLT/XPath and flex Flex and MXML are used for creating rich internet applications. The other things you mentioned are all static documents. While it's certainly feasible to convert MXML to the other formats, you will have to greatly limit what you do in MXML in order to achieve this goal--particularly using custom components and dynamic runtime generated content. Sam --- We're Hiring! Seeking a passionate developer to join our team building Flex based products. Position is in the Washington D.C. metro area. If interested contact [EMAIL PROTECTED] mailto:careers%40blinemedical.com l.com -Original Message- From: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com [mailto:[EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com] On Behalf Of Lincoln Mitchell Sent: Wednesday, May 23, 2007 4:49 AM To: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com Cc: [EMAIL PROTECTED] mailto:users%40cocoon.apache.org apache.org Subject: [flexcoders] XSLT/XPath and flex I want to make the best of the MXML file and generate various documents from it using XSLT and XPath. The kind of things I want to create are: 1. Lists of icons/images used in app - presented as HTML or pdf 2. List of Components used in app - presented as HTML or pdf 3. Variation of the mxml file say a PDA version. I have used an XML publishing framework called apache cocoon and wanted to really take advantage of the fact that MXML is XML. Would Cairngorm or some other framework do this or could I somehow send MXML to Cocoon? Any hints? Linc
Re: [flexcoders] Tabbing bug - disabling tabbing in the application
Maybe as part of a state change. Could that be the issue? The child it's looking for seems to be quite often a VScrollBar and the parent a VBox. I'll try the keyFocusChange today. Thanks, Mark On 5/23/07, Alex Harui [EMAIL PROTECTED] wrote: Did you reparent some child in a container? You can turn off tabbing by capturing keyFocusChange event from the stage. -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Mr_MarkK *Sent:* Tuesday, May 22, 2007 5:15 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Tabbing bug - disabling tabbing in the application We are having a bug in our application when the user presses the tab key in any field. The error is the following: ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller. at flash.display::DisplayObjectContainer/getChildIndex() at mx.core::Container/getChildIndex ()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2442] at fl.managers::FocusManager/::getChildIndex() at fl.managers::FocusManager/::sortByDepth() at Array$/Array::_sort() at Array/http://adobe.com/AS3/2006/builtin::sort() at fl.managers::FocusManager/::sortFocusableObjects() at fl.managers::FocusManager/::keyDownHandler() I am currently unable to narrow down the problem to a specific component, so until I find a better solution, I would like to disable tabbing globally in the application. It's impossible to provide an exhaustive list of things I've tried in order to achieve that result, but I've been unable to block the tab keydown event from getting to the FocusManager. I have tried listening to the keydown event everywhere (also using useCapture = true) in the application, from the root component to the fields where the user can actually press tab, but nothing works. Does anybody have a quick fix to disable tabbing? Thanks, Mark
[flexcoders] To select in the ComboBox
Hi! Without being for selectedIndex in comboBox, How To make in run-time, the comboBox selecting an item, with selectedItem Example: public function edit() : void{ txtId.text = dgMarca.selectedItem.idMarca; txtDsProd.text = dgMarca.selectedItem.label; //It catches the selected value of the Grid and arrow in cb cbCat.selectedItem.idCat = dgMarca.selectedItem.idCat; } **In cbCat I have label and idCat as attributes. Thanks!! \o/
[flexcoders] Difference in ActionScript File and ActionScript Class
Hi All, What is the difference when using an ActionScriptFile and ActionScript Class? Is it that the difference lies only in the way of referencing it? When do we use ActioScript File and ActionScript Class. Can somebody help me? I am just confused in the usage. Thanks in advance Cheers Hara
[flexcoders] JBoss custom authentication fails
Hi, I am currently merging my application from the integrated JRun to JBoss 4.0.5.GA and my application fails to authenticate. On JRun it works fine. I followed the installation instructions on custom auth: flex-tomcat-common.jar - X:\svn\dev\jboss\server\default\lib flex-tomcat-server.jar - X:\svn\dev\jboss\server\default\lib context.xml - X:\svn\dev\jboss\server\default\deploy\sollichat.war\WEB-INF context.xml - X:\svn\dev\jboss\server\default\deploy\sollichat.war\META-INF I copied context.xml to both directories to be sure. My app doesn't auth and responds with Login required before authorization can proceed.. A simple JSP page which echo's my user name works just fine. Anyone has an idea why my authorisation doesnt work?
RE: [flexcoders] Difference in ActionScript File and ActionScript Class
AS File: Just a file that contains functions that run when needed. Similar to how u use a JS file. AS Class: Like a Java class, define properties and methods, create instances of it and use as needed. OOP style. I always use AS classes. Dimitrios Gianninas Developer Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of haravallabhan Sent: Wednesday, May 23, 2007 9:40 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Difference in ActionScript File and ActionScript Class Hi All, What is the difference when using an ActionScriptFile and ActionScript Class? Is it that the difference lies only in the way of referencing it? When do we use ActioScript File and ActionScript Class. Can somebody help me? I am just confused in the usage. Thanks in advance Cheers Hara -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
Re: [flexcoders] Difference in ActionScript File and ActionScript Class
Files are for blocks of code. You add them to your code using the include directive. You might think of them as snippets? Classes are programming entities that make up packages that make up applications. That is probably a horrible description. To parallel ColdFusion an ActionScript file would be the equivalent of an cfm file that you cfinclude into a page. An ActionScript class would be a CFC. If you look up the documentation on include and import you might fond some more info. haravallabhan wrote: Hi All, What is the difference when using an ActionScriptFile and ActionScript Class? Is it that the difference lies only in the way of referencing it? When do we use ActioScript File and ActionScript Class. Can somebody help me? I am just confused in the usage. Thanks in advance Cheers Hara -- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com
[flexcoders] videoDisplay.volume not working
hi; i'm setting the volume property of a videoDisplay to 0.0 but when the video is loaded; there comes sound... is this property not working or is there a crack for this (like flex 1.5 useHandCursor crack) or what am i making wrong ? thnks.
Re: [flexcoders] work-arounds saving to file? [was: output formats (excel/word)]
Here's a workaround for loading a local file into Flex. It should be modifiable to save a file. Of course there are drawbacks of having to deal with another security context since it uses a helperJava applet. http://www.kellyjo.com/blog/index.cfm/2007/2/20/Accessing-the-Local-File-System-with-Flex Dan Freiman nondocs http://nondocs.blogspot.com On 5/23/07, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 23 May 2007, barry.beattie wrote: perhaps really pushed ExternalInterface to send (a fair bit of content) to a HTML window (ie: Flex opening a new window, send it the content)? Yeah, that could work actually... -- Tom Chiverton Helping to widespreadedly negotiate global design-patterns on: http://thefalken.livejournal.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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
Re: [flexcoders] AS3: dispatchEvent from within event handler?
I'd set listeners for error events to make sure the file is actually being loaded successfully. Just copy/paste/edit from example in the livedocs ( http://livedocs.adobe.com/flex/201/langref/flash/net/URLLoader.html). Dan Freiman nondocs http://nondocs.blogspot.com On 5/23/07, ronnlixx [EMAIL PROTECTED] wrote: I'm trying to do what i think should be pretty simple. I want to dispatch an event when my xml has completed lodaing. For the life of me i can't figure out why event does not get dispatched from handleXML, I know the listner works because I've tested it by dispatching the same event from a button click. Any ideas what I may be doing wrong? package { import flash.display.Sprite; import com.acme.AppController; import com.acme.MyService; public class MyView extends Sprite { public function MyView() { var controller:MyController = new MyController(this); } } } package com.acme { import flash.events.EventDispatcher; import flash.events.Event; import flash.display.Sprite; import com.acme.MyService; public class MyController extends EventDispatcher { private var _view:Sprite; private var _service:MyService; public function MyController(target:Sprite){ _view = target; _view.addEventListener(xmlLoaded, doSomething); _service = new MyService(); } public function doSomething(e:Event):void{ trace(doSomething CALLED); } } } package com.acme { import flash.events.EventDispatcher; import flash.events.Event; import flash.net.URLLoader; import flash.net.URLRequest; public class MyService extends EventDispatcher { private var _loader:URLLoader; private var _xml:XML; public function MyService(){ _loader = new URLLoader(); _loader.addEventListener(Event.COMPLETE, handleXML); _loader.load(new URLRequest(xml/data.xml)); } public function handleXML(event:Event):void{ dispatchEvent(new Event(xmlLoaded, true)); // this never fires _xml = new XML(_loader.data); } } }
Re: [flexcoders] Tabbing bug - disabling tabbing in the application
Tried the keyFocusChange, but nothing to do, the event still gets fired after the FocusManager handles the keyDown event. Any other ideas? Mark On 5/23/07, Mark Kornfilt [EMAIL PROTECTED] wrote: Maybe as part of a state change. Could that be the issue? The child it's looking for seems to be quite often a VScrollBar and the parent a VBox. I'll try the keyFocusChange today. Thanks, Mark On 5/23/07, Alex Harui [EMAIL PROTECTED] wrote: Did you reparent some child in a container? You can turn off tabbing by capturing keyFocusChange event from the stage. -- *From:* [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Mr_MarkK *Sent:* Tuesday, May 22, 2007 5:15 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Tabbing bug - disabling tabbing in the application We are having a bug in our application when the user presses the tab key in any field. The error is the following: ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller. at flash.display::DisplayObjectContainer/getChildIndex() at mx.core::Container/getChildIndex ()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2442] at fl.managers::FocusManager/::getChildIndex() at fl.managers::FocusManager/::sortByDepth() at Array$/Array::_sort() at Array/http://adobe.com/AS3/2006/builtin::sort() at fl.managers::FocusManager/::sortFocusableObjects() at fl.managers::FocusManager/::keyDownHandler() I am currently unable to narrow down the problem to a specific component, so until I find a better solution, I would like to disable tabbing globally in the application. It's impossible to provide an exhaustive list of things I've tried in order to achieve that result, but I've been unable to block the tab keydown event from getting to the FocusManager. I have tried listening to the keydown event everywhere (also using useCapture = true) in the application, from the root component to the fields where the user can actually press tab, but nothing works. Does anybody have a quick fix to disable tabbing? Thanks, Mark
[flexcoders] Re: Highlight a word in a RichTextEditor
Hey! Thanks for you reply, but that doens't exactly work the way I'd like. How could I get a wavy line under a word in the RichTextEditor, like in MS Word when a word is mispelled. Thanks! --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 23 May 2007, Julien Phalip wrote: Would you know how to highlight a word in a RichTextEditor? RTE has a htmlText property that understands simple HTML, so something like the following: rte.htmlText=rte.htmlText.replace(someString,font color=redu+someString+/u/font) is possible. -- Tom Chiverton Helping to ambassadorially seize strategic markets on: http://thefalken.livejournal.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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Tree drag-n-drop into a TextInput (hiding the feedback)
Is there an easy way to hide the feedback icons for drag an drop operations? I just wanna kill them all together if its possible. My application has a Tree control for dragging directory paths to TextInput controls in a Form. The addTreeDragToFieldBehavior is called in my application to initialize the drag and drop actions to my TextInput controls. The static method showFeedback does not kill the feedback as I expected. DragManager.showFeedback(DragManager.NONE); How can I kill all feedback so when my Tree items are dragged, there is no red X beside it? -- Keith H -- www.keithhair.com [CODE] private function addTreeDragToFieldBehavior():void { var movefield:Object; var draggeditem:Object; function getMousedMoveField(evt:DragEvent):void { var n:int=0; while(n _rules.length){ var o:Object=_rules[n]; var field:TextInput=TextInput(o.move_field); if(mouseInsideContainer(field)){ movefield=field; assignToField(); return; } n++; } movefield=null; } function assignToField():void { if(movefield == null){ return; } [EMAIL PROTECTED]; movefield=null; } function activateDrop(evt:DragEvent):void { [EMAIL PROTECTED]; directorytree.removeEventListener(DragEvent.DRAG_COMPLETE,getMousedMoveF\ ield); directorytree.addEventListener(DragEvent.DRAG_COMPLETE,getMousedMoveFiel\ d); } directorytree.removeEventListener(DragEvent.DRAG_ENTER,activateDrop); directorytree.addEventListener(DragEvent.DRAG_ENTER,activateDrop); directorytree.dragEnabled=true; directorytree.dragMoveEnabled=true; DragManager.showFeedback(DragManager.NONE); } [/CODE]
Re: [flexcoders] star (*) data type vs. Object
* is just like Object I couldn't disagree more. I really dislike that Object is referred to in the docs about *. There is an implication there that they are similar when they really aren't. This is a sore spot for me everytime I use Array.pop() and Array.shift() in the Flash IDE. Both of those functions have their returns typed as Object. Why? Someone thought it was a good idea because you can have any type returned ... Well, no. Yes, you can have any type returned at runtime, but you can't actually type the return variable to anything except Object or nothing. For example, the Array.as file in the Flash 8 Classes folder defines: function shift():Object; If you try to do this you will get a compiler error: var arr:Array = new Array(3); var n:Number = arr.shift(); compiler error The same holds true in AS3. For example: function go():Object { return 'something'; } Everything's valid here. Setting the return type to Object allows me to return any type that subclasses Object, which is everything. var s:String = go(); compiler error Implicit coercion of a value with static type Object to a possibly unrelated type String. The compiler doesn't swing that way! So Object and * are NOT interchangeable. And the difference isn't subtle. Use Object when you want to actually use generic objects and * when you want to dynamically-type something. On 5/18/07, Peter Farland [EMAIL PROTECTED] wrote: See: http://livedocs.adobe.com/flex/2/langref/specialTypes.html#* The type * is just like Object but it can also store values that are undefined. Object can only store null. It's useful to determine whether a dynamic property actually exists on a type and just happens to be null, or whether it literally is not defined on that type. From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of Adam Pasztory Sent: Friday, May 18, 2007 2:42 PM To: flexcoders Subject: [flexcoders] star (*) data type vs. Object Can anyone tell me what the difference is between setting a generic variable's data type to Object and setting it to *. Are they equivalent? I tried to search for the answer, but it's hard to do a search for *. :) thanks, Adam -- Derek Vadneau
[flexcoders] Re: DataGrid with multiple rowheaders / colheaders - Flex 3?
Hi, However, i've still failed to find people extending the DataGrid component to allow for multiple row/column headers and groups and row/column footers. I would like you to clarify, what do you mean by having multiple column headers for DataGrid. You can use item renderer for column header to place more than one control inside Datagrid's column header. As for supporting footer in Datagrid, you can find this post helpful: http://blogs.adobe.com/aharui/2007/04/datagrid_footers.html#comments - With best regards, JabbyPanda
Re: [flexcoders] Re: Highlight a word in a RichTextEditor
You'd have to extend the RichTextEditor and use the methods of its TextField. You'd have to get the start and end index of the string you're searching for, find the physical position of the String using TextField.getCharBoundries(), and then use the graphics object of the RichTextEditor to draw the wavy line. Dan Freiman nondocs http://nondocs.blogspot.com On 5/23/07, Julien Phalip [EMAIL PROTECTED] wrote: Hey! Thanks for you reply, but that doens't exactly work the way I'd like. How could I get a wavy line under a word in the RichTextEditor, like in MS Word when a word is mispelled. Thanks! --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 23 May 2007, Julien Phalip wrote: Would you know how to highlight a word in a RichTextEditor? RTE has a htmlText property that understands simple HTML, so something like the following: rte.htmlText=rte.htmlText.replace(someString,font color=redu+someString+/u/font) is possible. -- Tom Chiverton Helping to ambassadorially seize strategic markets on: http://thefalken.livejournal.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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com.
RE: [flexcoders] star (*) data type vs. Object
...but you can't actually type the return variable to anything except Object or nothing. Not true. In your example, you simply need to cast to the correct type, i.e. String: var s:String = go() as String; I don't think using * to get around compile-time type checking is a good idea. You really should be casting values when assigning them from generic types as a best practice. Pete From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Derek Vadneau Sent: Wednesday, May 23, 2007 11:11 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] star (*) data type vs. Object * is just like Object I couldn't disagree more. I really dislike that Object is referred to in the docs about *. There is an implication there that they are similar when they really aren't. This is a sore spot for me everytime I use Array.pop() and Array.shift() in the Flash IDE. Both of those functions have their returns typed as Object. Why? Someone thought it was a good idea because you can have any type returned ... Well, no. Yes, you can have any type returned at runtime, but you can't actually type the return variable to anything except Object or nothing. For example, the Array.as file in the Flash 8 Classes folder defines: function shift():Object; If you try to do this you will get a compiler error: var arr:Array = new Array(3); var n:Number = arr.shift(); compiler error The same holds true in AS3. For example: function go():Object { return 'something'; } Everything's valid here. Setting the return type to Object allows me to return any type that subclasses Object, which is everything. var s:String = go(); compiler error Implicit coercion of a value with static type Object to a possibly unrelated type String. The compiler doesn't swing that way! So Object and * are NOT interchangeable. And the difference isn't subtle. Use Object when you want to actually use generic objects and * when you want to dynamically-type something. On 5/18/07, Peter Farland [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: See: http://livedocs.adobe.com/flex/2/langref/specialTypes.html#* http://livedocs.adobe.com/flex/2/langref/specialTypes.html#* The type * is just like Object but it can also store values that are undefined. Object can only store null. It's useful to determine whether a dynamic property actually exists on a type and just happens to be null, or whether it literally is not defined on that type. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Adam Pasztory Sent: Friday, May 18, 2007 2:42 PM To: flexcoders Subject: [flexcoders] star (*) data type vs. Object Can anyone tell me what the difference is between setting a generic variable's data type to Object and setting it to *. Are they equivalent? I tried to search for the answer, but it's hard to do a search for *. :) thanks, Adam -- Derek Vadneau
[flexcoders] changing states in module behaves strange
Hello, Here's the story: I have a custom window and a class which defines a specific content (pictures, text, other components and so on). My module loads a custom window and sets its content to that specific class (much like a popupmanager, if you like, but i can't use that for this project). My problem is that, whenever one of the windows changes state, it jumps back to the upper left corner, where all moduleLoaders objects are. I have implemented transitions between the states, and if I remove them, the window doesn't jump anymore. One of the transitions looks like this: mx:Transition id=resUp fromState=* toState=results mx:Sequence target={this.parent.parent} mx:AddChildAction/ mx:Resize target={this.parent.parent} heightTo=460/ /mx:Sequence /mx:Transition where this.parent.parent leads to the custom window. Any ideas? Thanks!
[flexcoders] Re: Difference in ActionScript File and ActionScript Class
So as you guys say can I change all my ActionScript file to a Classs file ? I hate refering the ActionScript file with a long hard coded path. If I refer with a package it looks good. Can I change those ActionScript file to classes? I just wanted to use the functions and constants from it? Is it worth changing?? Will there be any performance issue if I change it? That is if I change it I need to instantiate them and create new objects to use it to refer to the method or function in the class. Will it not degrade the performance of the flex application? Already flex itslef swallow lot of memory?. Do you guys advise me to proceed. Or its better to be with actionscript file. Thanks again in advance Cheers Hara --- In flexcoders@yahoogroups.com, Dimitrios Gianninas [EMAIL PROTECTED] wrote: AS File: Just a file that contains functions that run when needed. Similar to how u use a JS file. AS Class: Like a Java class, define properties and methods, create instances of it and use as needed. OOP style. I always use AS classes. Dimitrios Gianninas Developer Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of haravallabhan Sent: Wednesday, May 23, 2007 9:40 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Difference in ActionScript File and ActionScript Class Hi All, What is the difference when using an ActionScriptFile and ActionScript Class? Is it that the difference lies only in the way of referencing it? When do we use ActioScript File and ActionScript Class. Can somebody help me? I am just confused in the usage. Thanks in advance Cheers Hara -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e- mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
[flexcoders] mx:Image / centering loaded content
I'm using the Image component for yes an image gallery. I'm not finding any info in Google search. All I want to do is center the component with each image loaded. Any takers? Cake, for you pros out there.
Re: [flexcoders] star (*) data type vs. Object
It's not about getting around compile-time checking, which is what you'd be doing with Object anyhow, I think. Sometimes you really need to dynamically type. In that case, why is Object better than *? Is it for checking null vs. undefined in some cases or is there more to it? On 5/23/07, Peter Farland [EMAIL PROTECTED] wrote: ...but you can't actually type the return variable to anything except Object or nothing. Not true. In your example, you simply need to cast to the correct type, i.e. String: var s:String = go() as String; I don't think using * to get around compile-time type checking is a good idea. You really should be casting values when assigning them from generic types as a best practice. Pete From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of Derek Vadneau Sent: Wednesday, May 23, 2007 11:11 AM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: Re: [flexcoders] star (*) data type vs. Object * is just like Object I couldn't disagree more. I really dislike that Object is referred to in the docs about *. There is an implication there that they are similar when they really aren't. This is a sore spot for me everytime I use Array.pop() and Array.shift() in the Flash IDE. Both of those functions have their returns typed as Object. Why? Someone thought it was a good idea because you can have any type returned ... Well, no. Yes, you can have any type returned at runtime, but you can't actually type the return variable to anything except Object or nothing. For example, the Array.as file in the Flash 8 Classes folder defines: function shift():Object; If you try to do this you will get a compiler error: var arr:Array = new Array(3); var n:Number = arr.shift(); compiler error The same holds true in AS3. For example: function go():Object { return 'something'; } Everything's valid here. Setting the return type to Object allows me to return any type that subclasses Object, which is everything. var s:String = go(); compiler error Implicit coercion of a value with static type Object to a possibly unrelated type String. The compiler doesn't swing that way! So Object and * are NOT interchangeable. And the difference isn't subtle. Use Object when you want to actually use generic objects and * when you want to dynamically-type something. On 5/18/07, Peter Farland [EMAIL PROTECTED] pfarland%40adobe.com mailto:[EMAIL PROTECTED] pfarland%40adobe.com wrote: See: http://livedocs.adobe.com/flex/2/langref/specialTypes.html#* http://livedocs.adobe.com/flex/2/langref/specialTypes.html#* The type * is just like Object but it can also store values that are undefined. Object can only store null. It's useful to determine whether a dynamic property actually exists on a type and just happens to be null, or whether it literally is not defined on that type. From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com mailto:flexcoders% flexcoders%2540yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com mailto: flexcoders% flexcoders%2540yahoogroups.com ] On Behalf Of Adam Pasztory Sent: Friday, May 18, 2007 2:42 PM To: flexcoders Subject: [flexcoders] star (*) data type vs. Object Can anyone tell me what the difference is between setting a generic variable's data type to Object and setting it to *. Are they equivalent? I tried to search for the answer, but it's hard to do a search for *. :) thanks, Adam -- Derek Vadneau -- Derek Vadneau
[flexcoders] Locking the focus to a component
I've got an app where I want a single component to *always* have keyboard focus and prevent other components (like lists, buttons, etc.) from ever getting keyboard focus (they'll all be mouse-controlled). What's the best way to do this? Is there a straightforward global way to handle this or will I need to add focus handlers to all the components that *aren't* supposed to get focus and have them redirect it? Or, could would it work to put a focus handler on the component and simply have it grab the focus back whenever its lost? Is that going to cause any loops or weird behavior in the Flex components? Thanks! Troy.
[flexcoders] Re: mx:Image / centering loaded content
--- In flexcoders@yahoogroups.com, joshspooning [EMAIL PROTECTED] wrote: I'm using the Image component for yes an image gallery. I'm not finding any info in Google search. All I want to do is center the component with each image loaded. Any takers? Cake, for you pros out there. Have you tried adding horizontalAlign=center to your Image component?
Re: [flexcoders] star (*) data type vs. Object
The problem is that AS3 is trying to catch inheritance issues (which *does* go a bit against the dynamic typing grain, but that's kind of the point of AS3). So, String is an Object but Object isn't necessarily a String (which is why the compiler requires a typecast). So, a dynamic type would be convenient (in that you save the keystrokes of the typecast) but you'd also lose the type information (so you couldn't do something like myObject.myMethod().anotherMethod() and have the IDE help you out or the compiler verify it). You could always disable strict type checking in your project properties... that should eliminate the issue all together (I believe the end result is an implicit cast to whatever the type is of the desintation or l-value is). Troy. On 5/23/07, Derek Vadneau [EMAIL PROTECTED] wrote: It's not about getting around compile-time checking, which is what you'd be doing with Object anyhow, I think. Sometimes you really need to dynamically type. In that case, why is Object better than *? Is it for checking null vs. undefined in some cases or is there more to it? On 5/23/07, Peter Farland [EMAIL PROTECTED] wrote: ...but you can't actually type the return variable to anything except Object or nothing. Not true. In your example, you simply need to cast to the correct type, i.e. String: var s:String = go() as String; I don't think using * to get around compile-time type checking is a good idea. You really should be casting values when assigning them from generic types as a best practice. Pete From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.comflexcoders%40yahoogroups.com] On Behalf Of Derek Vadneau Sent: Wednesday, May 23, 2007 11:11 AM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: Re: [flexcoders] star (*) data type vs. Object * is just like Object I couldn't disagree more. I really dislike that Object is referred to in the docs about *. There is an implication there that they are similar when they really aren't. This is a sore spot for me everytime I use Array.pop() and Array.shift() in the Flash IDE. Both of those functions have their returns typed as Object. Why? Someone thought it was a good idea because you can have any type returned ... Well, no. Yes, you can have any type returned at runtime, but you can't actually type the return variable to anything except Object or nothing. For example, the Array.as file in the Flash 8 Classes folder defines: function shift():Object; If you try to do this you will get a compiler error: var arr:Array = new Array(3); var n:Number = arr.shift(); compiler error The same holds true in AS3. For example: function go():Object { return 'something'; } Everything's valid here. Setting the return type to Object allows me to return any type that subclasses Object, which is everything. var s:String = go(); compiler error Implicit coercion of a value with static type Object to a possibly unrelated type String. The compiler doesn't swing that way! So Object and * are NOT interchangeable. And the difference isn't subtle. Use Object when you want to actually use generic objects and * when you want to dynamically-type something. On 5/18/07, Peter Farland [EMAIL PROTECTED] pfarland%40adobe.com mailto:[EMAIL PROTECTED] pfarland%40adobe.com wrote: See: http://livedocs.adobe.com/flex/2/langref/specialTypes.html#* http://livedocs.adobe.com/flex/2/langref/specialTypes.html#* The type * is just like Object but it can also store values that are undefined. Object can only store null. It's useful to determine whether a dynamic property actually exists on a type and just happens to be null, or whether it literally is not defined on that type. From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com mailto:flexcoders% flexcoders%2540yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com mailto:flexcoders%flexcoders%25 40yahoogroups.com ] On Behalf Of Adam Pasztory Sent: Friday, May 18, 2007 2:42 PM To: flexcoders Subject: [flexcoders] star (*) data type vs. Object Can anyone tell me what the difference is between setting a generic variable's data type to Object and setting it to *. Are they equivalent? I tried to search for the answer, but it's hard to do a search for *. :) thanks, Adam -- Derek Vadneau -- Derek Vadneau
RE: [flexcoders] Difference in ActionScript File and ActionScript Class
The only difference is that if you choose ActionScript Class, FlexBuilder presents a wizard-y dialog and then autogenerates some starter code for you. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of haravallabhan Sent: Wednesday, May 23, 2007 6:40 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Difference in ActionScript File and ActionScript Class Hi All, What is the difference when using an ActionScriptFile and ActionScript Class? Is it that the difference lies only in the way of referencing it? When do we use ActioScript File and ActionScript Class. Can somebody help me? I am just confused in the usage. Thanks in advance Cheers Hara
RE: [flexcoders] Locking the focus to a component
Try turning off focusEnabled and tabEnabled in all other components. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of thirtyfivemph Sent: Wednesday, May 23, 2007 9:13 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Locking the focus to a component I've got an app where I want a single component to *always* have keyboard focus and prevent other components (like lists, buttons, etc.) from ever getting keyboard focus (they'll all be mouse-controlled). What's the best way to do this? Is there a straightforward global way to handle this or will I need to add focus handlers to all the components that *aren't* supposed to get focus and have them redirect it? Or, could would it work to put a focus handler on the component and simply have it grab the focus back whenever its lost? Is that going to cause any loops or weird behavior in the Flex components? Thanks! Troy.
RE: [flexcoders] changing states in module behaves strange
If you don't use a module, do you have the same problem? I'm more interested in who the parent of the custom window and content is, and whether it is the content that shifts or the custom window. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of flashcrow2000 Sent: Wednesday, May 23, 2007 8:35 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] changing states in module behaves strange Hello, Here's the story: I have a custom window and a class which defines a specific content (pictures, text, other components and so on). My module loads a custom window and sets its content to that specific class (much like a popupmanager, if you like, but i can't use that for this project). My problem is that, whenever one of the windows changes state, it jumps back to the upper left corner, where all moduleLoaders objects are. I have implemented transitions between the states, and if I remove them, the window doesn't jump anymore. One of the transitions looks like this: mx:Transition id=resUp fromState=* toState=results mx:Sequence target={this.parent.parent} mx:AddChildAction/ mx:Resize target={this.parent.parent} heightTo=460/ /mx:Sequence /mx:Transition where this.parent.parent leads to the custom window. Any ideas? Thanks!
RE: [flexcoders] star (*) data type vs. Object
As far as I'm aware, Object was made different from * in order to make it possible to program without thinking about the 'undefined' value, which Object can't store. It banishes the 'undefined' value from the part of the language that is compile-time-typed, because toher compile-time-typed languages do not have both 'undefined' and 'null'. The Object type requires downcasting because that's normal for all compile-time-types. The * type doesn't require downcasting because it isn't a compile-type-type at all. It is simply a notation that tells the compiler I really want this thing to have no compile time type as opposed to simply omitting the type annotation, which might mean I forgot to give this thing a compile-time-type. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Derek Vadneau Sent: Wednesday, May 23, 2007 9:07 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] star (*) data type vs. Object It's not about getting around compile-time checking, which is what you'd be doing with Object anyhow, I think. Sometimes you really need to dynamically type. In that case, why is Object better than *? Is it for checking null vs. undefined in some cases or is there more to it? On 5/23/07, Peter Farland [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: ...but you can't actually type the return variable to anything except Object or nothing. Not true. In your example, you simply need to cast to the correct type, i.e. String: var s:String = go() as String; I don't think using * to get around compile-time type checking is a good idea. You really should be casting values when assigning them from generic types as a best practice. Pete From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Derek Vadneau Sent: Wednesday, May 23, 2007 11:11 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] star (*) data type vs. Object * is just like Object I couldn't disagree more. I really dislike that Object is referred to in the docs about *. There is an implication there that they are similar when they really aren't. This is a sore spot for me everytime I use Array.pop() and Array.shift() in the Flash IDE. Both of those functions have their returns typed as Object. Why? Someone thought it was a good idea because you can have any type returned ... Well, no. Yes, you can have any type returned at runtime, but you can't actually type the return variable to anything except Object or nothing. For example, the Array.as file in the Flash 8 Classes folder defines: function shift():Object; If you try to do this you will get a compiler error: var arr:Array = new Array(3); var n:Number = arr.shift(); compiler error The same holds true in AS3. For example: function go():Object { return 'something'; } Everything's valid here. Setting the return type to Object allows me to return any type that subclasses Object, which is everything. var s:String = go(); compiler error Implicit coercion of a value with static type Object to a possibly unrelated type String. The compiler doesn't swing that way! So Object and * are NOT interchangeable. And the difference isn't subtle. Use Object when you want to actually use generic objects and * when you want to dynamically-type something. On 5/18/07, Peter Farland [EMAIL PROTECTED] mailto:pfarland%40adobe.com mailto:[EMAIL PROTECTED] mailto:pfarland%40adobe.com wrote: See: http://livedocs.adobe.com/flex/2/langref/specialTypes.html#* http://livedocs.adobe.com/flex/2/langref/specialTypes.html#* http://livedocs.adobe.com/flex/2/langref/specialTypes.html#* http://livedocs.adobe.com/flex/2/langref/specialTypes.html#* The type * is just like Object but it can also store values that are undefined. Object can only store null. It's useful to determine whether a dynamic property actually exists on a type and just happens to be null, or whether it literally is not defined on that type. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
RE: [flexcoders] Tabbing bug - disabling tabbing in the application
What does your keyFocusChange handler look like and how did you attach the listener? We use it elsewhere to shut down the FM. Also, are you running 2.0.1 with the latest hotfix? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Kornfilt Sent: Wednesday, May 23, 2007 7:37 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Tabbing bug - disabling tabbing in the application Tried the keyFocusChange, but nothing to do, the event still gets fired after the FocusManager handles the keyDown event. Any other ideas? Mark On 5/23/07, Mark Kornfilt [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Maybe as part of a state change. Could that be the issue? The child it's looking for seems to be quite often a VScrollBar and the parent a VBox. I'll try the keyFocusChange today. Thanks, Mark On 5/23/07, Alex Harui [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Did you reparent some child in a container? You can turn off tabbing by capturing keyFocusChange event from the stage. From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups.com http://yahoogroups.com ] On Behalf Of Mr_MarkK Sent: Tuesday, May 22, 2007 5:15 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Tabbing bug - disabling tabbing in the application We are having a bug in our application when the user presses the tab key in any field. The error is the following: ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller. at flash.display::DisplayObjectContainer/getChildIndex() at mx.core::Container/getChildIndex()[C:\dev\flex_201_gmc\sdk\frameworks\mx \core\Container.as:2442] at fl.managers::FocusManager/::getChildIndex() at fl.managers::FocusManager/::sortByDepth() at Array$/Array::_sort() at Array/http://adobe.com/AS3/2006/builtin::sort http://adobe.com/AS3/2006/builtin::sort () at fl.managers::FocusManager/::sortFocusableObjects() at fl.managers::FocusManager/::keyDownHandler() I am currently unable to narrow down the problem to a specific component, so until I find a better solution, I would like to disable tabbing globally in the application. It's impossible to provide an exhaustive list of things I've tried in order to achieve that result, but I've been unable to block the tab keydown event from getting to the FocusManager. I have tried listening to the keydown event everywhere (also using useCapture = true) in the application, from the root component to the fields where the user can actually press tab, but nothing works. Does anybody have a quick fix to disable tabbing? Thanks, Mark
RE: [flexcoders] AS3: dispatchEvent from within event handler?
I don't think you're listening to the service From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Freiman Sent: Wednesday, May 23, 2007 7:29 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AS3: dispatchEvent from within event handler? I'd set listeners for error events to make sure the file is actually being loaded successfully. Just copy/paste/edit from example in the livedocs ( http://livedocs.adobe.com/flex/201/langref/flash/net/URLLoader.html http://livedocs.adobe.com/flex/201/langref/flash/net/URLLoader.html ). Dan Freiman nondocs http://nondocs.blogspot.com On 5/23/07, ronnlixx [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I'm trying to do what i think should be pretty simple. I want to dispatch an event when my xml has completed lodaing. For the life of me i can't figure out why event does not get dispatched from handleXML, I know the listner works because I've tested it by dispatching the same event from a button click. Any ideas what I may be doing wrong? package { import flash.display.Sprite; import com.acme.AppController; import com.acme.MyService; public class MyView extends Sprite { public function MyView() { var controller:MyController = new MyController(this); } } } package com.acme { import flash.events.EventDispatcher; import flash.events.Event; import flash.display.Sprite; import com.acme.MyService; public class MyController extends EventDispatcher { private var _view:Sprite; private var _service:MyService; public function MyController(target:Sprite){ _view = target; _view.addEventListener(xmlLoaded, doSomething); _service = new MyService(); } public function doSomething(e:Event):void{ trace(doSomething CALLED); } } } package com.acme { import flash.events.EventDispatcher; import flash.events.Event; import flash.net.URLLoader; import flash.net.URLRequest; public class MyService extends EventDispatcher { private var _loader:URLLoader; private var _xml:XML; public function MyService(){ _loader = new URLLoader(); _loader.addEventListener(Event.COMPLETE, handleXML); _loader.load(new URLRequest(xml/data.xml)); } public function handleXML(event:Event):void{ dispatchEvent(new Event(xmlLoaded, true)); // this never fires _xml = new XML(_loader.data); } } }
[flexcoders] Re: Working with Session....
I am sure there are many ways to make this happen some better then others. -IF values never change once they are logged in then you could pass them in a FlashVars... kinda oldschool but still works - Write them as JavaScript vars on page and read them in, like with at External Interface (http://livedocs.adobe.com/flex/2/langref/flash/external/ExternalInterfa ce.html) or Flex/AJax bridge - Write a service (jsp or something) that returns the users session vars as XML and just call the service anytime you want to recheck the users current session values.
Re: [flexcoders] AS3: dispatchEvent from within event handler?
Hi, This; _view.addEventListener(xmlLoaded, doSomething); _service = new MyService(); needs to be _service = new MyService(); _service .addEventListener(xmlLoaded, doSomething); Peace, Mike On 5/23/07, Alex Harui [EMAIL PROTECTED] wrote: I don't think you're listening to the service -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Daniel Freiman *Sent:* Wednesday, May 23, 2007 7:29 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] AS3: dispatchEvent from within event handler? I'd set listeners for error events to make sure the file is actually being loaded successfully. Just copy/paste/edit from example in the livedocs (http://livedocs.adobe.com/flex/201/langref/flash/net/URLLoader.html ). Dan Freiman nondocs http://nondocs.blogspot.com On 5/23/07, *ronnlixx* [EMAIL PROTECTED] wrote: I'm trying to do what i think should be pretty simple. I want to dispatch an event when my xml has completed lodaing. For the life of me i can't figure out why event does not get dispatched from handleXML, I know the listner works because I've tested it by dispatching the same event from a button click. Any ideas what I may be doing wrong? package { import flash.display.Sprite; import com.acme.AppController; import com.acme.MyService; public class MyView extends Sprite { public function MyView() { var controller:MyController = new MyController(this); } } } package com.acme { import flash.events.EventDispatcher; import flash.events.Event; import flash.display.Sprite; import com.acme.MyService; public class MyController extends EventDispatcher { private var _view:Sprite; private var _service:MyService; public function MyController(target:Sprite){ _view = target; _view.addEventListener(xmlLoaded, doSomething); _service = new MyService(); } public function doSomething(e:Event):void{ trace(doSomething CALLED); } } } package com.acme { import flash.events.EventDispatcher; import flash.events.Event; import flash.net.URLLoader; import flash.net.URLRequest; public class MyService extends EventDispatcher { private var _loader:URLLoader; private var _xml:XML; public function MyService(){ _loader = new URLLoader(); _loader.addEventListener(Event.COMPLETE, handleXML); _loader.load(new URLRequest(xml/data.xml)); } public function handleXML(event:Event):void{ dispatchEvent(new Event(xmlLoaded, true)); // this never fires _xml = new XML(_loader.data); } } } -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.
[flexcoders] Possible to send object to POST data?
Hi all, Is it possible to pass an object (i.e. Graph) to a PHP script in a POST? and then store it in a database? Would I have to use HTTPService, URLRequest? I've only passed xml and string data, I was hoping I could send a whole object to be used later on in my application, rather than having to parse out every node of the graph into xml. Thanks
[flexcoders] Does Flex support Client Side Digital Certificates
Does Flex support Client Side Digital Certificates? I have been asked this question several times each time I have a hard time finding and answer/proof. Has anyone implemented this and do you have a code that tests it out. If it's all https traffic I am sure the browser handles this fine but what if you're using Flex Data Services for AMF binary transfer or messaging with Flash/Flex support the client side certificate?
Re: [flexcoders] Tabbing bug - disabling tabbing in the application
I have tried adding the listener to the main application, and to an individual text input, but i can't catch it. I have tried listening both with and without useCapture (therefore attaching in an mxml tag and also manually on creation complete -- not both at the same time of course). the handler is just a dumb handler but I can still provide it: private function focusChangeHandler(event : Event) : void { trace(focus change); } I would be interested to know how you were able to shut down the FM. We are not running 2.0.1 hotfix, because we don't use any DataGrid and I didn't see any fix worth making the change for now. Is there a fix that wasn't described in the hotfix kb? Mark On 5/23/07, Alex Harui [EMAIL PROTECTED] wrote: What does your keyFocusChange handler look like and how did you attach the listener? We use it elsewhere to shut down the FM. Also, are you running 2.0.1 with the latest hotfix? -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Mark Kornfilt *Sent:* Wednesday, May 23, 2007 7:37 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Tabbing bug - disabling tabbing in the application Tried the keyFocusChange, but nothing to do, the event still gets fired after the FocusManager handles the keyDown event. Any other ideas? Mark On 5/23/07, *Mark Kornfilt* [EMAIL PROTECTED] wrote: Maybe as part of a state change. Could that be the issue? The child it's looking for seems to be quite often a VScrollBar and the parent a VBox. I'll try the keyFocusChange today. Thanks, Mark On 5/23/07, *Alex Harui* [EMAIL PROTECTED] wrote: Did you reparent some child in a container? You can turn off tabbing by capturing keyFocusChange event from the stage. -- *From:* [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups.com] *On Behalf Of *Mr_MarkK *Sent:* Tuesday, May 22, 2007 5:15 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Tabbing bug - disabling tabbing in the application We are having a bug in our application when the user presses the tab key in any field. The error is the following: ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller. at flash.display::DisplayObjectContainer/getChildIndex() at mx.core::Container/getChildIndex ()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2442] at fl.managers::FocusManager/::getChildIndex() at fl.managers::FocusManager/::sortByDepth() at Array$/Array::_sort() at Array/http://adobe.com/AS3/2006/builtin::sort() at fl.managers::FocusManager/::sortFocusableObjects() at fl.managers::FocusManager/::keyDownHandler() I am currently unable to narrow down the problem to a specific component, so until I find a better solution, I would like to disable tabbing globally in the application. It's impossible to provide an exhaustive list of things I've tried in order to achieve that result, but I've been unable to block the tab keydown event from getting to the FocusManager. I have tried listening to the keydown event everywhere (also using useCapture = true) in the application, from the root component to the fields where the user can actually press tab, but nothing works. Does anybody have a quick fix to disable tabbing? Thanks, Mark
[flexcoders] DateFormatter - going BC
has anyone worked with DateFormatter and had to format dates for BC or, how about dates prior to 100AD? Entering apr 21, 100 = April 21, 100 Entering apr 21, 99 = April 21, 1999 now, I realize the issue of why a 2 digit date is going to be post 1900 and something formatted 07 will come back as 2007 etc, but is there a way I can change those rules without customizing my own formatter? IE: I'll require a 4 digit entry, and expect to be able to get back or 72 would = 0072, not 1972 anyone? -- [ JPG ]
Re: {Disarmed} [flexcoders] Possible to send object to POST data?
You might want to check out WebORB for PHP at http://www.themidnightcoders.com. http://themidnightcoders.com/weborb/php/remoteobjectandphp.htm Jurgen TCash21 wrote: Hi all, Is it possible to pass an object (i.e. Graph) to a PHP script in a POST? and then store it in a database? Would I have to use HTTPService, URLRequest? I've only passed xml and string data, I was hoping I could send a whole object to be used later on in my application, rather than having to parse out every node of the graph into xml. Thanks
Re: {Disarmed} [flexcoders] Possible to send object to POST data?
--- In flexcoders@yahoogroups.com, Jurgen Beck [EMAIL PROTECTED] wrote: You might want to check out WebORB for PHP at http://www.themidnightcoders.com. http://themidnightcoders.com/weborb/php/remoteobjectandphp.htm Jurgen TCash21 wrote: Hi all, Is it possible to pass an object (i.e. Graph) to a PHP script in a POST? and then store it in a database? Would I have to use HTTPService, URLRequest? I've only passed xml and string data, I was hoping I could send a whole object to be used later on in my application, rather than having to parse out every node of the graph into xml. Thanks Thanks, I'll try it. What about amfphp?
Re: {Disarmed} [flexcoders] Possible to send object to POST data?
--- In flexcoders@yahoogroups.com, Jurgen Beck [EMAIL PROTECTED] wrote: You might want to check out WebORB for PHP at http://www.themidnightcoders.com. http://themidnightcoders.com/weborb/php/remoteobjectandphp.htm Jurgen TCash21 wrote: Hi all, Is it possible to pass an object (i.e. Graph) to a PHP script in a POST? and then store it in a database? Would I have to use HTTPService, URLRequest? I've only passed xml and string data, I was hoping I could send a whole object to be used later on in my application, rather than having to parse out every node of the graph into xml. Thanks Thanks, I'll check it out. What about amfphp? That could do the trick I think as well?
Re: {Disarmed} Re: {Disarmed} [flexcoders] Possible to send object to POST data?
AMFPHP allows you to do RPC with objects too. Last thing I've heard and seen is that AMFPHP is changing hands. You'd need to monitor traffic to see what the future holds for it. WebORB is extremely solid and Mark and Harris at Midnight Coders are great in keeping up with adding new features to it. Essentially it comes down to your preference. Check both of them out, but my pick would be WebORB. :-) Jurgen TCash21 wrote: --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Jurgen Beck [EMAIL PROTECTED] wrote: You might want to check out WebORB for PHP at http://www.themidnightcoders.com. http://www.themidnightcoders.com. http://themidnightcoders.com/weborb/php/remoteobjectandphp.htm http://themidnightcoders.com/weborb/php/remoteobjectandphp.htm Jurgen TCash21 wrote: Hi all, Is it possible to pass an object (i.e. Graph) to a PHP script in a POST? and then store it in a database? Would I have to use HTTPService, URLRequest? I've only passed xml and string data, I was hoping I could send a whole object to be used later on in my application, rather than having to parse out every node of the graph into xml. Thanks Thanks, I'll try it. What about amfphp?
[flexcoders] Gradient Fill for an AreaChart
Is there a simple way to specify an AreaChart gradient fill? Or, maybe a link to a really quick example of how to roll my own renderer on the quick tip? Always appreciated, Patrick
[flexcoders] Re: Menubar selected
How to invalidate menuBarItem to call the updateDisplayList? This is not working: MenuBarItem(mp.menuBarItems[0]).invalidateDisplayList() --- In flexcoders@yahoogroups.com, nxzone [EMAIL PROTECTED] wrote: I want hightlight a menuitem if i'm in his section or child section... I created a MenuBarActive skin and added these attributes to my MenuBar: itemUpSkin=com.timeline.skin.MenuBarActiveSkin itemDownSkin=com.timeline.skin.MenuBarActiveSkin itemOverSkin=com.timeline.skin.MenuBarActiveSkin If the item is selected or mouse over, i want draw the hightlight. When the user change section, selectedMenu change and I invalidateDisplayList in MenuBar but the updateDisplayList in each menubarItem are not call, why? #In my MenuBarTiveSkin override protected function updateDisplayList(w:Number, h:Number):void { var isActive:Boolean=false if(name==itemUpSkin){ if((this.parent).data==UIComponent(this.parent).parentApplication.select\ edMenu){ isActive=true; } }else{ isActive=true } super.updateDisplayList(w,h) if(isActive){ drawHightLightRect(); } }
[flexcoders] Re: Vertial Scroll Issue with Using Date Field ItemRenderer in a DataGrid
I just got done installing the hotfix. While the hotfix fixes the scrolling issue with combobox itemrenderers, I am still getting the same scrolling issues with the datefield itemrenderer. Does anyone have an idea on how to fix this? --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Should be fixed in the latest hotfix. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Troy A. Binford Sent: Friday, May 18, 2007 10:15 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Vertial Scroll Issue with Using Date Field ItemRenderer in a DataGrid Hi folks, This is a weird bug and I hope someone can help me with it. In my example code (DateRendererWTF.mxml being the main app and OMGRenderer.mxml being the renderer), everything initially scrolls fine. Then choose a date for any one of the datefields. Now move your mouse down and up so that in travels through and out of the datagrid on the top and bottom. As you can see the datagrid now scrolls automatically. What is with this? Sample mxml files: http://www.speechlessrock.com/DateRendererWTF.mxml http://www.speechlessrock.com/DateRendererWTF.mxml http://www.speechlessrock.com/OMGRenderer.mxml http://www.speechlessrock.com/OMGRenderer.mxml Thanks for any help, Troy
[flexcoders] call function on a pop up
I am trying to call a function to a popup. i am using the public function LoadPopUp():voie{ var pop1:pWindow1=pWindow1 (PopUpManager.createPopUp(this,pWindow1,false)); } to create a popup. and another function on the parent app to call refresh() on the popup public function SendRefresh():void{ pop1.Refresh() } of course the refresh doesnt work. I am just trying to refresh the fields on the child page once they are changed on the parent page instantly without mouseover() etc.
[flexcoders] Re: Question about inline ItemRenderers
Thanks for taking the trouble to respond -- unfortunately none of these seem to work. I created a really simple example -- this is attached. Just in case the attachment doesn't come through, I have cut and pasted the entire mxml file below. I tried the following -- neither of these allows me to center the radio button *and* have the radio buttons act as a group. 1) Ran the attached file -- buttons are centered but they dont act as a RadioButtonGroup 2) Deleted the RadioButtonGroup sameGroup and replaced the groupName from {parentApplication.sameGroup} to just sameGroup -- buttons are not centered but they act as a group. thanks sai File sample.mxml ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ [Bindable] public var someData:Array = [ {id: 1 , emp: Steve }, {id: 2 , emp: James }, {id: 3 , emp: Curt }, {id: 4 , emp: Leslie}, {id: 5 , emp: Amare} ]; ]] /mx:Script mx:RadioButtonGroup id=sameGroup / mx:DataGrid id=resultGrid dataProvider={someData} mx:columns mx:DataGridColumn dataField=itemType width=60 headerText= mx:itemRenderer mx:Component mx:HBox paddingLeft=5 paddingRight=5 verticalAlign=middle horizontalAlign=center mx:RadioButton groupName={parentApplication.sameGroup} value={data.emp}/ /mx:HBox /mx:Component /mx:itemRenderer /mx:DataGridColumn mx:DataGridColumn dataField=id width=120 headerText= / mx:DataGridColumn dataField=emp width=200 headerText= / /mx:columns /mx:DataGrid /mx:Application - I have always been regretting that I was not as wise as the day I was born. - Thoreau - ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ [Bindable] public var someData:Array = [ {id: 1 , emp: Steve }, {id: 2 , emp: James }, {id: 3 , emp: Curt }, {id: 4 , emp: Leslie}, {id: 5 , emp: Amare} ]; ]] /mx:Script mx:RadioButtonGroup id=sameGroup / mx:DataGrid id=resultGrid dataProvider={someData} mx:columns mx:DataGridColumn dataField=itemType width=60 headerText= mx:itemRenderer mx:Component mx:HBox paddingLeft=5 paddingRight=5 verticalAlign=middle horizontalAlign=center mx:RadioButton groupName=blah value={data.emp}/ /mx:HBox /mx:Component /mx:itemRenderer /mx:DataGridColumn mx:DataGridColumn dataField=id width=120 headerText= / mx:DataGridColumn dataField=emp width=200 headerText= / /mx:columns /mx:DataGrid /mx:Application
RE: [flexcoders] Re: Difference in ActionScript File and ActionScript Class
Performance will not be affected, your MXML files get turned into AS classes anyways (yup every single one of them). I suggest going with AS classes, its will feel better, trust me :) Dimitrios Gianninas Developer Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of haravallabhan Sent: Wednesday, May 23, 2007 11:51 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Difference in ActionScript File and ActionScript Class So as you guys say can I change all my ActionScript file to a Classs file ? I hate refering the ActionScript file with a long hard coded path. If I refer with a package it looks good. Can I change those ActionScript file to classes? I just wanted to use the functions and constants from it? Is it worth changing?? Will there be any performance issue if I change it? That is if I change it I need to instantiate them and create new objects to use it to refer to the method or function in the class. Will it not degrade the performance of the flex application? Already flex itslef swallow lot of memory?. Do you guys advise me to proceed. Or its better to be with actionscript file. Thanks again in advance Cheers Hara --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Dimitrios Gianninas [EMAIL PROTECTED] wrote: AS File: Just a file that contains functions that run when needed. Similar to how u use a JS file. AS Class: Like a Java class, define properties and methods, create instances of it and use as needed. OOP style. I always use AS classes. Dimitrios Gianninas Developer Optimal Payments Inc. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of haravallabhan Sent: Wednesday, May 23, 2007 9:40 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Difference in ActionScript File and ActionScript Class Hi All, What is the difference when using an ActionScriptFile and ActionScript Class? Is it that the difference lies only in the way of referencing it? When do we use ActioScript File and ActionScript Class. Can somebody help me? I am just confused in the usage. Thanks in advance Cheers Hara -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e- mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
[flexcoders] Re: AS3: dispatchEvent from within event handler?
Thanks Daniel, Alex and Michael. I realized my mistake quickly after posting. Thanks again.
RE: [flexcoders] Re: Vertial Scroll Issue with Using Date Field ItemRenderer in a DataGrid
I was not able to reproduce the problem with the datefield in the latest hotfix. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Troy A. Binford Sent: Wednesday, May 23, 2007 11:11 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Vertial Scroll Issue with Using Date Field ItemRenderer in a DataGrid I just got done installing the hotfix. While the hotfix fixes the scrolling issue with combobox itemrenderers, I am still getting the same scrolling issues with the datefield itemrenderer. Does anyone have an idea on how to fix this? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: Should be fixed in the latest hotfix. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Troy A. Binford Sent: Friday, May 18, 2007 10:15 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Vertial Scroll Issue with Using Date Field ItemRenderer in a DataGrid Hi folks, This is a weird bug and I hope someone can help me with it. In my example code (DateRendererWTF.mxml being the main app and OMGRenderer.mxml being the renderer), everything initially scrolls fine. Then choose a date for any one of the datefields. Now move your mouse down and up so that in travels through and out of the datagrid on the top and bottom. As you can see the datagrid now scrolls automatically. What is with this? Sample mxml files: http://www.speechlessrock.com/DateRendererWTF.mxml http://www.speechlessrock.com/DateRendererWTF.mxml http://www.speechlessrock.com/DateRendererWTF.mxml http://www.speechlessrock.com/DateRendererWTF.mxml http://www.speechlessrock.com/OMGRenderer.mxml http://www.speechlessrock.com/OMGRenderer.mxml http://www.speechlessrock.com/OMGRenderer.mxml http://www.speechlessrock.com/OMGRenderer.mxml Thanks for any help, Troy
[flexcoders] Dragging onto a tree
Hello, What I am trying to do is drag an icon off of a panel and drop it onto an item in a Tree and get the value of the item that I dropped on in the tree... tree.selectedItem does not return this. How should I be handling this? Thank you all, Christopher
[flexcoders] PlotChart: dataTip
Is it possible to have the dataTips on plot chart points always visible, as opposed to just when the point is rolled over?
RE: [flexcoders] Tabbing bug - disabling tabbing in the application
The hotfix fixed a problem where scrollbars were accidentally getting focus. In theory in your creationComplete handler, you should be able to do: systemManager.stage.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, focusChangeHandler); and start seeing traces. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Kornfilt Sent: Wednesday, May 23, 2007 10:13 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Tabbing bug - disabling tabbing in the application I have tried adding the listener to the main application, and to an individual text input, but i can't catch it. I have tried listening both with and without useCapture (therefore attaching in an mxml tag and also manually on creation complete -- not both at the same time of course). the handler is just a dumb handler but I can still provide it: private function focusChangeHandler(event : Event) : void { trace(focus change); } I would be interested to know how you were able to shut down the FM. We are not running 2.0.1 hotfix, because we don't use any DataGrid and I didn't see any fix worth making the change for now. Is there a fix that wasn't described in the hotfix kb? Mark On 5/23/07, Alex Harui [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: What does your keyFocusChange handler look like and how did you attach the listener? We use it elsewhere to shut down the FM. Also, are you running 2.0.1 with the latest hotfix? From: flexcoders@yahoogroups.com [mailto: flexcoders@ mailto:flexcoders@ yahoogroups.com http://yahoogroups.com ] On Behalf Of Mark Kornfilt Sent: Wednesday, May 23, 2007 7:37 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Tabbing bug - disabling tabbing in the application Tried the keyFocusChange, but nothing to do, the event still gets fired after the FocusManager handles the keyDown event. Any other ideas? Mark On 5/23/07, Mark Kornfilt [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Maybe as part of a state change. Could that be the issue? The child it's looking for seems to be quite often a VScrollBar and the parent a VBox. I'll try the keyFocusChange today. Thanks, Mark On 5/23/07, Alex Harui [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Did you reparent some child in a container? You can turn off tabbing by capturing keyFocusChange event from the stage. From: [EMAIL PROTECTED] ups.com [mailto: flexcoders@ mailto:flexcoders@ yahoogroups.com http://yahoogroups.com ] On Behalf Of Mr_MarkK Sent: Tuesday, May 22, 2007 5:15 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Tabbing bug - disabling tabbing in the application We are having a bug in our application when the user presses the tab key in any field. The error is the following: ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller. at flash.display::DisplayObjectContainer/getChildIndex() at mx.core::Container/getChildIndex()[C:\dev\flex_201_gmc\sdk\frameworks\mx \core\Container.as:2442] at fl.managers::FocusManager/::getChildIndex() at fl.managers::FocusManager/::sortByDepth() at Array$/Array::_sort() at Array/http://adobe.com/AS3/2006/builtin::sort http://adobe.com/AS3/2006/builtin::sort () at fl.managers::FocusManager/::sortFocusableObjects() at fl.managers::FocusManager/::keyDownHandler() I am currently unable to narrow down the problem to a specific component, so until I find a better solution, I would like to disable tabbing globally in the application. It's impossible to provide an exhaustive list of things I've tried in order to achieve that result, but I've been unable to block the tab keydown event from getting to the FocusManager. I have tried listening to the keydown event everywhere (also using useCapture = true) in the application, from the root component to the fields where the user can actually press tab, but nothing works. Does anybody have a quick fix to disable tabbing? Thanks, Mark
{Disarmed} Re: {Disarmed} [flexcoders] Possible to send object to POST data?
--- In flexcoders@yahoogroups.com, Jurgen Beck [EMAIL PROTECTED] wrote: AMFPHP allows you to do RPC with objects too. Last thing I've heard and seen is that AMFPHP is changing hands. You'd need to monitor traffic to see what the future holds for it. WebORB is extremely solid and Mark and Harris at Midnight Coders are great in keeping up with adding new features to it. Essentially it comes down to your preference. Check both of them out, but my pick would be WebORB. :-) Jurgen TCash21 wrote: --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Jurgen Beck jurgen@ wrote: You might want to check out WebORB for PHP at http://www.themidnightcoders.com. http://www.themidnightcoders.com. http://themidnightcoders.com/weborb/php/remoteobjectandphp.htm http://themidnightcoders.com/weborb/php/remoteobjectandphp.htm Jurgen TCash21 wrote: Hi all, Is it possible to pass an object (i.e. Graph) to a PHP script in a POST? and then store it in a database? Would I have to use HTTPService, URLRequest? I've only passed xml and string data, I was hoping I could send a whole object to be used later on in my application, rather than having to parse out every node of the graph into xml. Thanks Thanks, I'll try it. What about amfphp? Do both of these require Flex Data Services though? I was hoping to get around using that.
Re: {Disarmed} Re: {Disarmed} [flexcoders] Possible to send object to POST data?
No, neither AMFPHP nor WebORB require FDS, well, at least not the server technology. You have to set up the Flex project as an FDS project type and you may need to make sure that the FDS SDK is installed on your development box. However, the rest is handled by the server components (AMFPHP/WebORB for PHP). AMFPHP and WebORB each handle things a bit different. FDS goes beyond what either of them currently offer, with WebORB coming closer to the FDS feature set. WebORB for .NET is a different story and you should check it out too. However, that would be a .NET implementation. Mark Piller at Midnight Coders would need to chime in here, but I believe there are plans to expand WebORB for PHP quite a bit. So definitely keep that in mind. If you look at the feature set of WebORB for .NET, especially for the Enterprise version, there is a good chance that a number of them will end up in the PHP version too, at least that's what was stated by Mark in the past. If you require the full feature set of FDS now, you'll need to consider it instead. Jurgen TCash21 wrote: --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Jurgen Beck [EMAIL PROTECTED] wrote: AMFPHP allows you to do RPC with objects too. Last thing I've heard and seen is that AMFPHP is changing hands. You'd need to monitor traffic to see what the future holds for it. WebORB is extremely solid and Mark and Harris at Midnight Coders are great in keeping up with adding new features to it. Essentially it comes down to your preference. Check both of them out, but my pick would be WebORB. :-) Jurgen TCash21 wrote: --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, Jurgen Beck jurgen@ wrote: You might want to check out WebORB for PHP at http://www.themidnightcoders.com. http://www.themidnightcoders.com. http://www.themidnightcoders.com. http://www.themidnightcoders.com. http://themidnightcoders.com/weborb/php/remoteobjectandphp.htm http://themidnightcoders.com/weborb/php/remoteobjectandphp.htm http://themidnightcoders.com/weborb/php/remoteobjectandphp.htm http://themidnightcoders.com/weborb/php/remoteobjectandphp.htm Jurgen TCash21 wrote: Hi all, Is it possible to pass an object (i.e. Graph) to a PHP script in a POST? and then store it in a database? Would I have to use HTTPService, URLRequest? I've only passed xml and string data, I was hoping I could send a whole object to be used later on in my application, rather than having to parse out every node of the graph into xml. Thanks Thanks, I'll try it. What about amfphp? Do both of these require Flex Data Services though? I was hoping to get around using that.
Re: [flexcoders] Dragging onto a tree
You probably need to look at the: event.dragInitiator.selectedItem Christopher Olsen [EMAIL PROTECTED] To com flexcoders@yahoogroups.com Sent by: cc [EMAIL PROTECTED] om Subject 05/23/2007 03:23 PM [flexcoders] Dragging onto a tree Please respond to [EMAIL PROTECTED] com Hello, What I am trying to do is drag an icon off of a panel and drop it onto an item in a Tree and get the value of the item that I dropped on in the tree... tree.selectedItem does not return this. How should I be handling this? Thank you all, Christopher --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender and erase this e-mail message immediately. ---attachment: pic13648.gif
Re: [flexcoders] Tabbing bug - disabling tabbing in the application
Tried the hotfix and didn't work. Also tried listening to the event on stage like you specified, but again that gets fired after the error. Interesting you mention the problem with scrollbars, because that's what it seems like the problem is here too. The FM is looking for the parent of VScrollBar (or HSCrollBar) in a VBox for example and that's what throws the error. It's a shame that the hotfix didn't work, i was really enthusiastic. Other ideas? Mark On 5/23/07, Alex Harui [EMAIL PROTECTED] wrote: The hotfix fixed a problem where scrollbars were accidentally getting focus. In theory in your creationComplete handler, you should be able to do: systemManager.stage.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, focusChangeHandler); and start seeing traces. -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Mark Kornfilt *Sent:* Wednesday, May 23, 2007 10:13 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Tabbing bug - disabling tabbing in the application I have tried adding the listener to the main application, and to an individual text input, but i can't catch it. I have tried listening both with and without useCapture (therefore attaching in an mxml tag and also manually on creation complete -- not both at the same time of course). the handler is just a dumb handler but I can still provide it: private function focusChangeHandler(event : Event) : void { trace(focus change); } I would be interested to know how you were able to shut down the FM. We are not running 2.0.1 hotfix, because we don't use any DataGrid and I didn't see any fix worth making the change for now. Is there a fix that wasn't described in the hotfix kb? Mark On 5/23/07, *Alex Harui* [EMAIL PROTECTED] wrote: What does your keyFocusChange handler look like and how did you attach the listener? We use it elsewhere to shut down the FM. Also, are you running 2.0.1 with the latest hotfix? -- *From:* flexcoders@yahoogroups.com [mailto: [EMAIL PROTECTED] *On Behalf Of *Mark Kornfilt *Sent:* Wednesday, May 23, 2007 7:37 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Tabbing bug - disabling tabbing in the application Tried the keyFocusChange, but nothing to do, the event still gets fired after the FocusManager handles the keyDown event. Any other ideas? Mark On 5/23/07, *Mark Kornfilt* [EMAIL PROTECTED] wrote: Maybe as part of a state change. Could that be the issue? The child it's looking for seems to be quite often a VScrollBar and the parent a VBox. I'll try the keyFocusChange today. Thanks, Mark On 5/23/07, *Alex Harui* [EMAIL PROTECTED] wrote: Did you reparent some child in a container? You can turn off tabbing by capturing keyFocusChange event from the stage. -- *From:* [EMAIL PROTECTED] ups.com [mailto: flexcoders@ yahoogroups.com] *On Behalf Of *Mr_MarkK *Sent:* Tuesday, May 22, 2007 5:15 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Tabbing bug - disabling tabbing in the application We are having a bug in our application when the user presses the tab key in any field. The error is the following: ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller. at flash.display::DisplayObjectContainer/getChildIndex() at mx.core::Container/getChildIndex ()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2442] at fl.managers::FocusManager/::getChildIndex() at fl.managers::FocusManager/::sortByDepth() at Array$/Array::_sort() at Array/http://adobe.com/AS3/2006/builtin::sort() at fl.managers::FocusManager/::sortFocusableObjects() at fl.managers::FocusManager/::keyDownHandler() I am currently unable to narrow down the problem to a specific component, so until I find a better solution, I would like to disable tabbing globally in the application. It's impossible to provide an exhaustive list of things I've tried in order to achieve that result, but I've been unable to block the tab keydown event from getting to the FocusManager. I have tried listening to the keydown event everywhere (also using useCapture = true) in the application, from the root component to the fields where the user can actually press tab, but nothing works. Does anybody have a quick fix to disable tabbing? Thanks, Mark
[flexcoders] textAlign not working for TabBar
I'm not to get textAlign=left working on the TabBar control. I've searched the archives and find no references to this issue. Is my code flawed in some way that I'm just not catching? mx:TabBar direction=vertical dataProvider={vacCAppList} labelField=app width=300 textAlign=left itemClick=fSelectApp(event)/ Has anyone else had this problem? If so, have you found a work-around.
[flexcoders] Re: WSDLError Element not resolvable with WebService using creationComplete
There is a thread that kind of answers this problem over in the Adobe Flex2 General Discussion forum: WebService bad element / not resolvable http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=585\ threadid=1257326 The work-around to this problem is from scottpez: Hi, I finally figured out the problem and found a solution. The problem was that the creationComplete event was being fired before the webservice component was able to load the wsdl file. The solution that seems to work is to create the mx:WebService component just as I had before except add a function that is called on its load event. So something like this: mx:WebService id=generator wsdl=... load=sendOperation(); And then in the creationComplete event of the application, I have generator.loadWSDL();. Finally, in the function sendOperation() I send the operation something like this generator.generateOperation.send();. Therefore the webservice operation is not sent until the wsdl has loaded. This seems to work for me. Thanks, Scott This sure seems like a bug to me. Several other posters note that they are experiencing the same problem and one points out that it appeared AFTER upgrading to 2.0.1 Flex from 2.0. Before that, 'creationComplete' worked properly. Which raises the question... How does one examine and/or post Flex2 bugs to Adobe's bug queue? I've poked around Adobe's support pages and anything resembling a bug queue does not seem to be at all visible to developers. To me, this is a shocking lack of openness on the part of Adobe that seriously impedes developers.
[flexcoders] Data Paging a la Matt Chotin for Flex 2.1
I am getting ready to implement a report for a project that requires the user to be able to sift through a maximum of 150,000 records from a table (yes, we all know that in reality this is ridiculous, but we also know that customers get what customers want). I read through Matt Chotin's posts on large datasets and will likely go down that path, but I'm in a time cruch and so the hope of saving some time, I am curious as to whether anyone has already ported his samples to 2.1 as they are from way back in 04. Or, if anyone has a better option, I'm all ears. Thanks, Shaun Matt's post: http://weblogs.macromedia.com/mchotin/archives/2004/05/large_data_sets_2 .cfm
[flexcoders] Populate Tree with XML
the only examples i found online for tree involve a XMLList. is it possible to use an XML to populate it? for example, my XML looks like this: [code] [Bindable] private var MyCat:XML = categories category ID=0 titleCategory 1/title link ID2=0 linkTitleLink 1 Title/linkTitle linkURLhttp://www.link1.com/linkURL /link /category category ID=1 titleCategor 2 /title link ID2=0 linkTitleLink1 title/linkTitle linkURLhttp://www.Line 1 URL.com/linkURL /link link ID2=1 linkTitleLink2 title/linkTitle linkURLhttp://www.Line 2 URL.com/linkURL /link /category /categories [/code] Thanks in advance!