Re: [flexcoders] Re: BETA 2: How to validate a form before actually submitting
Hi Alex,Sorry, I hardcoded it while writing the email and I made some mistakes:1. Add this import:import mx.controls.Alert;2 . Change vars decalaration toprivate var stringvalidation : String; private var stringvalidation2 : String;I think it's all correct now.See you, Oriol.2006/4/4, Alex Alex [EMAIL PROTECTED] :Hi Oriol,This *sounds* a lot better though I am getting these errors at compile time.1::Implicit coercion of a value of type 'String' to an unrelatedtype 'mx.events:ValidationResultEvent (this error appears twice)2::Comparison between a value with statictype 'mx.validators:StringValidator ' and a possibly unrelatedtype 'String' (this error appears twice)3::Access of undefined property 'alert'I'm not such of an actionscript guy, but I'll get there sooner orlater. Thanks again. Alex--- In flexcoders@yahoogroups.com, Oriol Gual [EMAIL PROTECTED]wrote: Hi Alexander, Thanks to your observation I've came to a better solution: mx:Script ![CDATA[ import mx.events.ValidationResultEvent; private function checkValidators() : Boolean { stringvalidation= stringvalidator.validate ().type; stringvalidation2 = stringvalidator2.validate().type; if ( (stringvalidator == ValidationResultEvent.VALID) (stringvalidator2 == ValidationResultEvent.VALID) ) { return true; } else { return false; } } private function sendForm() : void { if(checkValidators()) { //do whatever you have to do to send the form } else { alert.show(Form is not valid!,Alert); } } private var stringvalidation : ValidationResultEvent; private var stringvalidation2 : ValidationResultEvent; ]] /mx:Script mx:StringValidator id=stringvalidator source={inputText} property=text minLength=3 maxLength=20trigger={inputText} triggerEvent=change/ mx:StringValidator id=stringvalidator2 source={inputText} property=text minLength=3 maxLength=20trigger={inputText2} triggerEvent=change/ mx:Form mx:FormItem label=Input some text required=truedirection=horizontal fontWeight=bold textAlign=left mx:TextInput id=inputText width=80 maxChars=20//mx:FormItem mx:FormItem label=Input some other text required=true direction=horizontal fontWeight=bold textAlign=left mx:TextInput id=inputText2 width=80 maxChars=20//mx:FormItem /mx:Form mx:Button id=fromButton label=Send form click=sendForm()/ Some explanation and changes: - Removed the valid/invalid properties of the validators. - Added an id for each one. - Instead of doing this: if ( (stringvalidator.validate ().type== ValidationResultEvent.VALID) (stringvalidator2.validate().type== ValidationResultEvent.VALID) ) which is also correct, I think it'sbetter to do it with the variables, and then evaluating them, because you validate all the fields (and the tooltip errors are shown, like you wantedAlexander), the other way if the first fails the other fields won't bevalidated. Hope this helps, Oriol 2006/4/3, Alexander Tsoukias [EMAIL PROTECTED]: While this does the trick, what if I have 3 inputs? While onepasses the validation the sendForm() will be executed while the other 2 inputs are still unvalidated? I want to make sure all of them are validatedbefore executing sendForm(). BTW, cool about the on change validation. One thing though... is there a way to make the error tooltip show up programatically instead ofhaving to hover over my mouse pointer? Thanks, Alexander *Oriol Gual [EMAIL PROTECTED]* wrote: Hi, What I do to validate a form, is somethig like this: mx:Script ![CDATA[ private function handleValid(eventObj:ValidationResultEvent) :void { if(eventObj.type==ValidationResultEvent.VALID ) { formValid = true; } else { formValid = false; } } private function sendForm() : void { if(formValid) { //do whatever you have to do to send the form } else { alert.show(Form is not valid!,Alert); } } private var formValid : Boolean = false; ]] /mx:Script mx:StringValidator source={inputText} property=textminLength=3 maxLength=20 trigger={inputText} triggerEvent=change valid=handleValid(event) invalid=handleValid(event)/ mx:Form mx:FormItem label=Input some text required=true direction=horizontal fontWeight=bold textAlign=left mx:TextInput id=inputText width=80 maxChars=20/ /mx:FormItem /mx:Form mx:Button id=fromButton label=Send form click=sendForm()/ When the user inputs some text in the textinput the validation occurs automatically ( trigger={inputText} triggerEvent=change) andthe function handleValid is called. Then, when clicking the buttonif the variable formValid it's true we can send the form. By the way, I have a question, what is the meaning of the modelswith flex 2 and forms? Because they're declared in the examples but thevalidators don't use them. Hope this helps, Oriol2006/4/2, Dreamer [EMAIL PROTECTED]:Alex Alex, you can put the data be validated in amodel.like this: mx:Model id=order email{ email.text }/email//email is a textInput controller's id /mx:Model then define a validator:mx:EmailValidator
[flexcoders] What is Incompatible override??
Hi. I'm trying to compile a [EMAIL PROTECTED] But I got errors every override lines. What is Incompatible override?? package { import flash.util.Proxy; import flash.util.flash_proxy; import flash.util.trace; use namespace flash_proxy; public dynamic class Person extends Proxy { protected var name:String; protected var age:uint; public function Person( name:String, age:uint ) { this.name = name; this.age = age; } flash_proxy override function callProperty(name:Object, ... args):* { trace(callProperty: + name); return super[name].apply(null,args); } flash_proxy override function setProperty(name:Object, value:Object):void { trace(setProperty: + name); super.setProperty(name, value); } flash_proxy override function deleteProperty(name:Object):void { trace(deleteProperty: + name); super.deleteProperty(name); } flash_proxy override function hasProperty(name:Object):Boolean { trace(hasProperty: + name); return super.hasProperty( name ); } } } -- 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/ * 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/
[flexcoders] Re: Flex2B2 - XML.contains()
Thank you Matt! thats worked. regrds bod --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Sorry, my bad. XML.contains is basically an equality test. XMLList.contains will tell you whether the item is in there. So if I do this it should work: xml1.children().contains (xml1.Report[0]) Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bhaq1972 Sent: Monday, April 03, 2006 1:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex2B2 - XML.contains() Nope. Still failing the if test. regards bod --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote: Yes, contains is by reference, so it doesn't recognize your inline definition as being the same as what's in the XML object. So this would work: var test:XML = xml1.Report[0]; if (xml1.contains(test)) { trace('found'); } Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bhaq1972 Sent: Friday, March 31, 2006 7:31 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex2B2 - XML.contains() Just trying out this method. the first 2 if tests are failing (not getting traces). is that correct? var xml1:XML = Root Report / Detail / /Root; if(xml1.contains(Report /)) { trace(report found); } if(xml1.contains(Detail /)) { trace(detail found); } if(!xml1.contains(Me /)) { trace(Me not found); } -- 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 -- 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 -- 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/ * 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/
[flexcoders] DataGrid Columnsort - CaseInsensitive
Hello, is there any posibility to sort the columns of a DataGrid caseinsensitve? Harry -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. BEGIN:VCARD VERSION:2.1 N:Dehn;Harald FN:Harald Dehn ([EMAIL PROTECTED]) TEL;HOME;VOICE:+49 (69) 61002712 TEL;CELL;VOICE:+49 (151) 17887510 TEL;WORK;FAX:+49 (69) 15049656 ADR;WORK:;;Gutzkowstraße 27;Frankfurt;;60594;Deutschland LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Gutzkowstra=DFe 27=0D=0AFrankfurt 60594=0D=0ADeutschland ADR;HOME:;;Gutzkowstraße 27;Frankfurt;;60594;Deutschland LABEL;HOME;ENCODING=QUOTED-PRINTABLE:Gutzkowstra=DFe 27=0D=0AFrankfurt 60594=0D=0ADeutschland EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20060302T091719Z END:VCARD
[flexcoders] How to set wsdl path of webservice at runtime (Flex 1.5)
is it possible to change wsdl path dynamically in flex 1.5? mx:Application . mx:Script function setWsdlPath() { ws1.wsdl = http:\\newurl-to-webservice; } /mx:Script mx:WebService id=ws1 wsdl=http:\\url-to-webservice/ mx:Button click=setWsdlPath()/ /mx:Application -- 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/ * 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: Flash Player 7 for Pocket PC?
But the point is there's already Flash Player 7 for Mobile 5 (released today), and it's not the same as Flash Lite 2.0. Get it here: http://www.macromedia.com/software/flashplayer_pocketpc/ Cheers, Dave Yang - Quantumwave Interactive Inc. http://quantumwave.com http://swfoo.com -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Renaun Erickson Sent: Tuesday, April 04, 2006 12:11 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flash Player 7 for Pocket PC? They need to make flash player 6 or flash lite 2 for Mobile 5 then I could test, lol. I attended the webinar on Flash Lite 2 and asked about Flex, they said it is not possible. Renaun -- 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/ * 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] hasOwnProperty inheritance
This is Flex2 Beta2. this.hasOwnProperty(arg) gives compile error. this[hasOwnProperty](arg) compiles and returns correct results. Seems like a bug to me. Dave Matt Chotin wrote: 1.5 or 2.0? I think it should probably work. What if you do this[hasOwnProperty](arg)? Does it work or give you a runtime error? Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Moylan Sent: Monday, April 03, 2006 5:45 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] hasOwnProperty inheritance I have an object that is a child of the VBox class. VBox documentation states that the hasOwnProperty() method is inherited from Object. Shouldn't my class then be able to call hasOwnProperty()? I get compile error Call to a possibly undefined method... currently. Thanks. Dave Moylan -- 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 -- 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 * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/. -- 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/ * 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/
[flexcoders] Re: Find Function
The built in sort function in the DataGrid only works for my FreeText column. Are the two problems related? As I beleive the built in sort function not working is a bug. Thanks for any help. --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: The cursor find function can't take e4x expressions. It can only do exact match searching of what's in the ICollectionView. So you're going to need to setup the find a little differently, perhaps find the node using e4x, then get its index, then seek to it. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mepaninaresh Sent: Monday, April 03, 2006 8:51 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Find Function I can't seem to get complex xml elements working. Example 1 works. private function findFirstName():void { createSort(); var cursor:IViewCursor = myXMLListCollection.getCursor(); var values:Object = {FreeText: nameInput.text}; cursor.findFirst(values); } Example 2 does not work. private function findFirstName():void { createSort(); var cursor:IViewCursor = myXMLListCollection.getCursor(); var values:Object = {Company.(@Type=='Subject').CompanyId: nameInput.text}; cursor.findFirst(values); } - mx:DataGrid id=myCustomerCountFilterGrid1 width=800% height=600% dataProvider={myXMLListCollection} mx:columns mx:DataGridColumn columnName=FreeText headerText=Reference/ mx:DataGridColumn columnName=Name headerText=Name width=250 mx:cellRenderer mx:Component mx:Link label={dataObject.Company. (@Type=='Subject').Name}/ /mx:Component /mx:cellRenderer /mx:DataGridColumn mx:DataGridColumn labelFunction=setRegistrationNo headerText=Registration No/ mx:DataGridColumn labelFunction=setCreditLimit headerText=Monthly Credit Limit/ mx:DataGridColumn labelFunction=setInsuredLimit headerText=Insured Limit width=40/ mx:DataGridColumn labelFunction=setOutStandingBalance headerText=Outstanding Balance/ /mx:columns /mx:DataGrid Thanks for any help. -- 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 -- 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/ * 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/
[flexcoders] a question about Flow sample at Adobe Labs
Hi. a question about Flow sample at Adobe Labs flashplatform +projects +flexsamples +trunk\src +flex2 +samples +flow I'm trying to compile, but some errors happen like below. What is this error?? Unable to transcode C:/work/Beta2/Flow/styles/../fonts/Verdana/verdanab.ttf. Flow.mxml Flow s 39 2006/04/04 20:12:47 408 -- 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/ * 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/
[flexcoders] Form dataProvider
Hi, I'd like to write this with a Form: mx:Form id=bookDetails label=Book Details dataProvider={bookDataGrid.selectedItem} mx:FormItem label=Title mx:TextInput id=title dataField=title/ /mx:FormItem /mx:Form which is the same that I can write for a DataGrid but for only one object. I'd also want that the binding be bidirectional: when I modify something in the Form, I'd want that the object be modified. I know it is not posible at present. But how close can I get generallicaly? (without specifying for each field the object property it has to update, etc.). Somehow, I feel that is very declarative for a DataGrid but very programatic for a Form. Thanks, Pepe. -- 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/ * 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/
[flexcoders] Flex2 : how to stop media (down)loading?
My objective isto get the videoHeight and the videoWidth of a video, justafter the upload of a.flv file. In oder to do that, I'm using a videoDisplay control to start loading the flv until I get the width and the height of the video. It works fine. The problem : how to stop the loading process once I got the requiredinformations? There is only a load() method... I've tried to set videoDisplay.url to null or "", and to re-execute load() to cancel the previous one, but it generates an error... I suppose this question is valid for all the "loader" components. Any idea? Benoit Hediard -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Flex2 : how to stop media (down)loading?
Hi Benoit, try loading a non-existent flv: videoDisplay.load("this_flv_is_nonsense.flv"); Stefan From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Benoit HediardSent: 04 April 2006 12:31To: flexcoders@yahoogroups.comSubject: [flexcoders] Flex2 : how to stop media (down)loading? My objective isto get the videoHeight and the videoWidth of a video, justafter the upload of a.flv file. In oder to do that, I'm using a videoDisplay control to start loading the flv until I get the width and the height of the video. It works fine. The problem : how to stop the loading process once I got the requiredinformations? There is only a load() method... I've tried to set videoDisplay.url to null or "", and to re-execute load() to cancel the previous one, but it generates an error... I suppose this question is valid for all the "loader" components. Any idea? Benoit Hediard -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] As2lib regexp doesn't work in Flex
Hello FlexCoders, To Adobe guys: Is this a bug in Flex 1.5? I spent 4 hours and I have just fixed that bug! :) So it doesn't work in Flex because, of this (org.as2lib.regexp.Pattern): static var ACCEPT:Node = new Node(); static var LASTACCEPT:Node = new LastNode(); A classes instance variables may only be initialized to compile-time constant expressions!!! And Flex compiler doesn't give us that error when we use static variables. BUG? So to fix this we just need to initialize this variables at constructor for example, like this: static var ACCEPT:Node; static var LASTACCEPT:Node public function myConstructor() : Void { if(!ACCEPT) { ACCEPT = new Node(); } if(!LASTACCEPT) { LASTACCEPT= new LastNode(); } } Best regards Stanislav On 3/31/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: Dear Flexcoders, Are there any ways to make as2lib regexp in Flex? I use Pattern.matches(a*b, aab) and it returns true in Flash, but either undefined or false in Flex. The same code works different. Could you please assist me with this issue. Regards, Sergey. -- 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 -- 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/ * 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/
[flexcoders] Organize Imports
Hi, I have got a question about organizing import-statements within FlexBuilder. Now with CTRL-SHIFT-O the imports are sorted but what really is needfull is that all imports are generated automatically for all classes which are not imported yet. Using FDT for AS2 this feature has become so common that it's hard to work without it in the Flex2/AS3-world. Currently imports are only added when you type a classname and complete it with autocompletion. But while refactoring classes (copy-n-paste) a real organize imports is a must have from my point of view. Any plans this will be part of beta3 or the final version of Flex2? Cheers, Sönke -- 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/ * 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: MenuBar calling TitleWindow
Hi Angelo,Not Again!An important information that I don't say: I`m using Flex Buider Beta 2!Well, using CTRL+C/CTRL+V in your code, the only part I was change is:public function menuHandler(oEvent:Object) { if (oEvent.menuItem.label='Tempos de Producao'){ showAbout(true); } else{ mx.controls.Alert.show('This is option is not implemented yet!', 'ContactManager (Ver 1.0.0.2)'); } }:On 4/3/06, angelosalsa [EMAIL PROTECTED] wrote:Hi Kleber,Try this it works!.Create a Component TitleWindow and call it Test.mxml-?xml version=1.0 encoding=utf-8?mx:TitleWindow xmlns:mx=http://www.macromedia.com/2005/mxml xmlns=* layout=verticalshowEffect=Fade panelAlpha=1 hideEffect=Fadewidth=350height=225 title=About verticalAlign=middle horizontalAlign=center closeButton=false themeColor=haloSilverbackgroundAlpha=1mx:Script![CDATA[import mx.managers.PopUpManager ;]]/mx:Scriptmx:HBox width=100% height=100%mx:VBox textAlign=center width=100% height=100%mx:Label text=Title fontWeight=bold fontSize=20 color=#c0c0c0 textAlign=center width=100%/mx:Label text=version fontSize=10 color=#00width=100%/mx:Spacer height=5/ mx:Label text=Copyright fontSize=10 color=#00width=100% textAlign=center/mx:Label text=Other info fontSize=10 fontWeight=bold color=#ff0080 width=100% textAlign=center/mx:Spacer height=2/mx:ControlBar horizontalAlign=center width=100% height=37 verticalAlign=middle direction=verticalmx:Button label=Okclick=mx.managers.PopUpManager.removePopUp(this); width=42/ /mx:ControlBar/mx:VBox/mx:HBox/mx:TitleWindowThen in your application mxml file.TestApp.mxml?xml version= 1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.macromedia.com/2005/mxmlxmlns=* layout=absolute mx:Script![CDATA[import Test;import mx.core.Application;import mx.managers.PopUpManager;import aboutWindow;public function showAbout(modal:Boolean):void { var test:Test = new Test();test.addEventListener(test, aboutHandler);PopUpManager.popUpWindow(test, this, modal); PopUpManager.centerPopUp(test);}public function aboutHandler():void {}]]/mx:Scriptmx:Script![CDATA[ public function menuHandler(oEvent:Object) { if (oEvent.menuItem.getProperty(label)=='Tempos deProdu��o'){showAbout(true); } } ]]/mx:Script mx:MenuBar id=myMenuBar x=0 y=30 width=100%change=menuHandler(event) mx:XMLmenuitem label=Home/ menuitem label=Aquisi��o/menuItem label=Produ��omenuItem label=Tempos de Produ��o //menuItem menuitem label=Qualidade /menuitem label=Vendas //mx:XML/mx:MenuBarmx:Spacer //mx:Application Let me know...Angelo--- In flexcoders@yahoogroups.com, Kleber Voigt [EMAIL PROTECTED]wrote: Hi Angelo, Don`t work for me. The Flash Player shows the follow error: -- TypeError: Error #1034: Type Coercion failed: cannot convert Forms.controleTempos to Class at Main/::menuHandler() at Main/__myMenuBar_change() at flash.events::EventDispatcher/dispatchEvent() at mx.controls::MenuBar/eventHandler() at flash.events::EventDispatcher/dispatchEvent () at mx.controls::Menu/dispatchEvent() at mx.controls::Menu/::dispatchMenuEvent() at mx.controls::Menu/mouseUpHandler() - And here its my app again: ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxmllayout=absolute mx:Script![CDATA[ import Forms.*; import mx.managers.PopUpManager; private function menuHandler(oEvent:Object) { var test = 'Forms.'[EMAIL PROTECTED] ; PopUpManager.createPopUp(this, test, false); } ]]/mx:Script mx:MenuBar id=myMenuBar labelField=@label showRoot=false x=0 y=30 width=100% change=menuHandler(event) mx:XML menuitem label=Home/ menuitem label=Aquisi��o/ menuItem label=Produ��o menuItem label=Tempos de Produ��odata=""> /menuItem menuitem label=Qualidade / menuitem label=Vendas / /mx:XML /mx:MenuBar mx:Spacer / /mx:Application If I use ' var test = Forms.controleTempos' it`s works perfect. Buthow I wanna call the window dynamically, i need to use the stringgenerated by the XML node. There`s a way to transform a string in a class? Thanks.--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* 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/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best
[flexcoders] Listening to Databind events
Hi all, I would like to know how can I drive, or listen to, Databind events. I have a bindable property defined like this: [Bindable] public var clientDetail : ClientVO; This property is updated by the parent container like this: view:ClientEvents id=clientEvents clientDetail={ selectedClient } / I would like to execute a function or method in ClientEvent component when the clientDetail variable is updated. Excuse me if this is too simple but I could not find a way, except by using predefined properties, to do this Thanks in advance -- 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/ * 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: MenuBar calling TitleWindow
Hi Angelo,Not Again!An important information that I don't say: I`m using Flex Buider Beta 2!Well, using CTRL+C/CTRL+V in your code, the only part I was change is: public function menuHandler(oEvent:Object) { if (oEvent.menuItem.getProperty(label)=='Tempos de Producao'){ showAbout(true); } else{ mx.controls.Alert.show('This is option is not implemented yet!', 'ContactManager (Ver 1.0.0.2)'); }}RETURN: Error 1006 - Call attempted on an object that is no a function Changing the if parameter to: if (oEvent.menuItem.getProperty(label)='Tempos de Producao')RETURN: Target of assigment must be a reference valueChanging again to: if (oEvent.menuItem.label=='Tempos de Producao') RETURN: This if show the alert in else condiction.Another change to: if (oEvent.menuItem.label='Tempos de Producao') RETURN: This time show the titleWindow, but if I change the label in menuItem, continuous showing the TitleWindow. I'm gratefull by your help, but with this script I need to write condiction by condiction right? What I really wanna is one function thats shows the titleWindow using an attribute definition in menuItem nodes. So, thanks again!Kleber Voigt -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Few issues
An IP address like 192.168.1.103 is a local IP address assigned by a router (most likely a Linksys, right?). An outside machine (not on your LAN) won't be able to see your machine via that IP. At least that's my take on the situation...On 3/28/06, angelosalsa [EMAIL PROTECTED] wrote: Hi all.,1st issue:My remoteobjects and webservices work fine from my local server but when I try to access the site from the outside world, I get only thehourglass loading with no errors but nothing shows,My crossdomain is in both C:\Inetpub\wwwroot\crossdomain.xml andincase C:\CFusionMX7\wwwroot\crossdomain.xml, here is what the crossdomain file look like.?xml version=1.0?!DOCTYPE cross-domain-policySYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd cross-domain-policyallow-access-from domain=* //cross-domain-policyMy local host is running on http://192.168.1.103:8701 and theflexenterprise-services.xml has this:endpoint uri=http://192.168.1.103:80{context.root}/flex2gateway/all my components and services are in C:\Inetpub\wwwroot\CFIDE\components\...any ideas?2nd issue:My Application have many components on right hand of the App. I havean Accordion that has a TabNavigator and in the TabNavigator I havea component that search the database for employees, right now the result is bind to a TileList with a listItemRenderer, in thatcomponent 'detail State', what i want to do is: insted of the resultgetting back to the TileList, I would like to bind thisArrayCollection to another component ' empDetails.mxml' DataGridwhich is on the mainApp as ns1:empDetails /I played around with loose coupling but on my matter it doesnt looklike it would work unless I can make the ArrayCollection as a public object MAYBE!Right now this is how I am getting back the results:--empSearch.mxml--mx:ArrayCollection id=searchResultssource={mx.utils.ArrayUtil.toArray(EmployeeService.search.result )}/mx:ArrayCollectionAlso played aroung with Calling component but I couldnt figure outhow to pass the results to dataProvider in the 'empDetails.mxml'3ed issue:using the Tree, how would I call other components in a ViewStack to view?ThanksAngelo--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* 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/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Flex beta 2 - add, remove and moving DataGridColumn
I've noticed that you can't actually manipulate the columns property directly cause it looks like the grid returns a copy of its internal columns array. eg: trace(grid.columns == grid.columns); //outputs false So doing things like grid.columns.push(...) doesn't change anything, even if you call invalidateDisplayList(). I've had to assign back the property: var cols: Array = grid.columns; cols.push (...); grid.columns = col;Once you assign the property, the grid automatically redraws itself.On 4/3/06, Matt Chotin [EMAIL PROTECTED] wrote: The columns are stored in an Array. You simply need to manipulate the array using operations like splice. Then make sure to call invalidateDisplayList to get it to redraw. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Bruno Martins Sent: Monday, April 03, 2006 11:05 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex beta 2 - add, remove and moving DataGridColumn I tryed almost every thing but I don't know how to add, remove and moving a column. Please send a example. Tks.. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] What is Incompatible override??
The function signatures have changed. eg:callProperty(name:Object, ... args):*has changed to:callProperty(name:*, ... args):* On 4/4/06, sn197412 [EMAIL PROTECTED] wrote: Hi.I'm trying to compile a [EMAIL PROTECTED]But I got errors every override lines.What is Incompatible override??package{import flash.util.Proxy;import flash.util.flash_proxy ;import flash.util.trace;use namespace flash_proxy;public dynamic class Person extends Proxy{protected var name:String;protected var age:uint;public function Person( name:String, age:uint ) {this.name = name;this.age = age;}flash_proxy override function callProperty(name:Object, ... args):*{trace(callProperty: + name); return super[name].apply(null,args);}flash_proxy override function setProperty(name:Object,value:Object):void{trace(setProperty: + name);super.setProperty (name, value);}flash_proxy override function deleteProperty(name:Object):void{trace(deleteProperty: + name);super.deleteProperty(name);}flash_proxy override function hasProperty(name:Object):Boolean {trace(hasProperty: + name);return super.hasProperty( name );}}}--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* 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/ -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Flex2 : how to stop media (down)loading?
Indeed, workaround : videoDisplay.url = ""; videoDisplay.load(); Thanks Stefan. Benoit Hediard De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la part de Stefan RichterEnvoyé: mardi 4 avril 2006 13:48À: flexcoders@yahoogroups.comObjet: RE: [flexcoders] Flex2 : how to stop media (down)loading? Hi Benoit, try loading a non-existent flv: videoDisplay.load("this_flv_is_nonsense.flv"); Stefan From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Benoit HediardSent: 04 April 2006 12:31To: flexcoders@yahoogroups.comSubject: [flexcoders] Flex2 : how to stop media (down)loading? My objective isto get the videoHeight and the videoWidth of a video, justafter the upload of a.flv file. In oder to do that, I'm using a videoDisplay control to start loading the flv until I get the width and the height of the video. It works fine. The problem : how to stop the loading process once I got the requiredinformations? There is only a load() method... I've tried to set videoDisplay.url to null or "", and to re-execute load() to cancel the previous one, but it generates an error... I suppose this question is valid for all the "loader" components. Any idea? Benoit Hediard -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: BETA 2: How to validate a form before actually submitting
You could start by reading the help. Developing Flex Applications - Validating Data Then after that come back and ask a question, if youre stuck. This is not meant to be harsh; it's better for you to learn by trial and error. Figuring out these types of problems or questions will lead to your having a deep understanding of Flex and the framework. Jason -Message d'origine-De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part de Alexander TsoukiasEnvoyé: mardi 4 avril 2006 14:56À: flexcoders@yahoogroups.comObjet: Re: [flexcoders] Re: BETA 2: How to validate a form before actually submitting Ok cool it all worked fine!! And now to take it up a noch How can I do the following 2 things: 1) Display the red error tooltip while typing 2) How can I have the submit button disabled and when all the validation is through to enable it for submittion. Thanks, Alexander Oriol Gual [EMAIL PROTECTED] wrote: Hi Alex,Sorry, I hardcoded it while writing the email and I made some mistakes:1. Add this import:import mx.controls.Alert;2 . Change vars decalaration toprivate var stringvalidation : String; private var stringvalidation2 : String;I think it's all correct now.See you, Oriol. 2006/4/4, Alex Alex [EMAIL PROTECTED] : Hi Oriol,This *sounds* a lot better though I am getting these errors at compile time.1::Implicit coercion of a value of type 'String' to an unrelatedtype 'mx.events:ValidationResultEvent (this error appears twice)2::Comparison between a value with statictype 'mx.validators:StringValidator ' and a possibly unrelatedtype 'String' (this error appears twice)3::Access of undefined property 'alert'I'm not such of an actionscript guy, but I'll get there sooner orlater. Thanks again.Alex--- In flexcoders@yahoogroups.com, "Oriol Gual" [EMAIL PROTECTED]wrote: Hi Alexander, Thanks to your observation I've came to a better solution: mx:Script ![CDATA[ import mx.events.ValidationResultEvent; private function checkValidators() : Boolean { stringvalidation= stringvalidator.validate ().type; stringvalidation2 = stringvalidator2.validate().type; if ( (stringvalidator == ValidationResultEvent.VALID) (stringvalidator2 == ValidationResultEvent.VALID) ) { return true; } else { return false; } } private function sendForm() : void { if(checkValidators()) { //do whatever you have to do to send the form } else { alert.show("Form is not valid!","Alert"); } } private var stringvalidation : ValidationResultEvent; private var stringvalidation2 : ValidationResultEvent; ]] /mx:Script mx:StringValidator id="stringvalidator" source="{inputText}" property="text" minLength="3" maxLength="20"trigger="{inputText}" triggerEvent="change"/ mx:StringValidator id="stringvalidator2" source="{inputText}" property="text" minLength="3" maxLength="20"trigger="{inputText2}" triggerEvent="change"/ mx:Form mx:FormItem label="Input some text" required="true"direction="horizontal" fontWeight="bold" textAlign="left" mx:TextInput id="inputText" width="80" maxChars="20"//mx:FormItem mx:FormItem label="Input some other text" required="true" direction="horizontal" fontWeight="bold" textAlign="left" mx:TextInput id="inputText2" width="80" maxChars="20"//mx:FormItem /mx:Form mx:Button id="fromButton" label="Send form" click="sendForm()"/ Some explanation and changes: - Removed the valid/invalid properties of the validators. - Added an id for each one. - Instead of doing this: if ( (stringvalidator.validate ().type== ValidationResultEvent.VALID) (stringvalidator2.validate().type== ValidationResultEvent.VALID) ) which is also correct, I think it'sbetter to do it with the variables, and then evaluating them, because you validate all the fields (and the tooltip errors are shown, like you wantedAlexander), the other way if the first fails the other fields won't bevalidated. Hope this helps, Oriol 2006/4/3, Alexander Tsoukias [EMAIL PROTECTED]: While this does the trick, what if I have 3 inputs? While onepasses the validation the sendForm() will be executed while the other 2 inputs are still unvalidated? I want to make sure all of them are validatedbefore executing sendForm(). BTW, cool about the on change validation. One thing though... is there a way to make the error tooltip show up programatically instead ofhaving to hover over my mouse pointer? Thanks, Alexander *Oriol Gual [EMAIL PROTECTED]* wrote: Hi, What I do to validate a form, is somethig like this:
RE: [flexcoders] Form dataProvider
WhatI would do in this case is use 2 Models. mx:Model id="sourceModel"dataTest data/data/mx:Model mx:Model id="destinationModel"data{mytext.text}/data/mx:Model mx:TextInput id="mytext" text="{sourceModel.data}" / It really would cause allot of pain for people if they had implemented automated 2 way binding. The destination is what you would validate on and use to update the originating data source. You set the source data in AS based on your selected item. The only problem with this is the model is compiled into the app, so if you update it you have to recompile your app. I use a helper class that loads an xml data structure at runtime creates a copy for source and on for destination and provides bindable getters and setters for each. This way I can extend the data model with out recompile, though; thats another whole discussion. hope this helps jason -Message d'origine-De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part de pepe_perez_perez_perezEnvoyé: mardi 4 avril 2006 13:22À: flexcoders@yahoogroups.comObjet: [flexcoders] Form dataProviderHi,I'd like to write this with a Form:mx:Form id="bookDetails" label="Book Details" dataProvider="{bookDataGrid.selectedItem}" mx:FormItem label="Title" mx:TextInput id="title" dataField="title"/ /mx:FormItem/mx:Formwhich is the same that I can write for a DataGrid but for only oneobject. I'd also want that the binding be bidirectional: when I modifysomething in the Form, I'd want that the object be modified.I know it is not posible at present. But how close can I getgenerallicaly? (without specifying for each field the object propertyit has to update, etc.). Somehow, I feel that is very declarative fora DataGrid but very programatic for a Form.Thanks,Pepe. -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Form dataProvider
Thanks for the help but that is not what I am looking for. Perhaps I haven't explained myself correctly. What I want to hear, if possible, is something like: subclass mx:Form, add these properties, these events (I don't know exactly), etc.. What I am after is a component where a DataGrid and a Form would be the two sides of the same coin for editing an ArrayCollection. Thanks, Pepe. -- 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/ * 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/
[flexcoders] Finding Width of a DataGrid Column Dynamically / Super Header Text
Friends, A new challenge in our Flex development. We're trying to create super header text to two or three groups of DataGrid columns, but not every DataGrid column. Say my DataGrid has 12 columns, but we want specific headers that are always above columns 6-9 and 10-12 in as close to the width of those columns groups (and having center alignment) as possible. We wish to utilize the header text as a property in each column, but, say, have labels above each of the column groups separating out those groups of columns as specific categories. We also don't want a series of multiple DataGrids since having each row of data highlightable is very important. And, as we can never be certain, given the different data that will be populated in the Datagrid, just what the exact width should be in every instance, even percentage-wise. So...is there a way to determine the column width of each DataGridColumn (probably on creationComplete) every time new data populates it and send that pixel width somewhere? I was told to look up how the DataGrid pays attention to changes in the column width, but can't find anything in the archive that answers this specific need for pixel width. RSVP. Thanks, everyone. jk -- 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/ * 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/
[flexcoders] Beta 2 - Older Flash Embed Bug - with example and source files available.
There appears to be bug in the way an embedded =8 flash file works in Flex. Sometimes they are not able to load external assets (jpegs). Look here: http://www.campusvt.com/embedBug/ There are 6 instances of mx:Loader all loading the same SWF. The SWF contains a thin white line and a picture above it. Refresh the page a few times. Sometimes the pictures that get loaded change. You can download the project file which includes the FLA for the swf: http://www.campusvt.com/embedBug/flashEmbedBug.zip (500k) All file links are relative but you will probably get sandbox error when you publish the file and it run on your local file system. If you run it on a server it will work as shown in the first link. I could really use a workaround if one exists. I only want to have one instance of a SWF and it needs to load its own assets. Thanks, Adam -- 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/ * 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/
[flexcoders] Error while retrieving data in Flex UI(Urgent solution needed)
Hi Sir I am facing this error. I have table from which I am retreving data.The table have data in which there are 9000 rows which I am trying to showing on the screen.But getting above alert.But the data is coming on the log message file but while showing on flex UI giving error. WSDL is generated properly.I am using java technology using design patterns. Sir plz solve this proble its urgent. Regards Anil kumar [EMAIL PROTECTED] Software Engineer Vanguard Info-Solutions Limited 78, JIL Tower-II, Sector-18, Gurgaon-122001 (INDIA) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- "The information in this e-mail is the property of VanGuard Info-Solution Ltd.and may be confidential and privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you receive this message in error, please notify the sender immediately forward a copy of this e-mail to [EMAIL PROTECTED].An E-mail reply to this address may be subject to interception or monitoring for operational reasons or for lawful business practices.This e-mail and any attachments has been scanned for the presence of computer viruses.Vanguard accept no responsibility for computer viruses once e-mail has been transmitted" --
RE: [flexcoders] Error while retrieving data in Flex UI(Urgent solution needed)
DUDE!!! OMG!!!Why on earth are you even trying to load 9000 rows of data! That is just bad for your user's. If you want to show it use paging. if you want to chart it, summarize or cube it up before, and get it to a manageable row count. 9000 rows = no respect what so ever for your user. And; they do perceive it as a lack of respect. Im sorry I have no solution to your problem except the above. My .002 Jason -Message d'origine-De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part de anil thakurEnvoy: mardi 4 avril 2006 17:00: flexcoders@yahoogroups.comObjet: [flexcoders] Error while retrieving data in Flex UI(Urgent solution needed) Hi Sir I am facing this error. I have table from which I am retreving data.The table have data in which there are 9000 rows which I am trying to showing on the screen.But getting above alert.But the data is coming on the log message file but while showing on flex UI giving error. WSDL is generated properly.I am using java technology using design patterns. Sir plz solve this proble its urgent. RegardsAnil kumar[EMAIL PROTECTED]Software EngineerVanguard Info-Solutions Limited78, JIL Tower-II, Sector-18, Gurgaon-122001 (INDIA) -- "The information in this e-mail is the property of VanGuard Info-Solution Ltd.and may be confidential and privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you receive this message in error, please notify the sender immediately forward a copy of this e-mail to [EMAIL PROTECTED].An E-mail reply to this address may be subject to interception or monitoring for operational reasons or for lawful business practices.This e-mail and any attachments has been scanned for the presence of computer viruses.Vanguard accept no responsibility for computer viruses once e-mail has been transmitted" -- -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: DataGrid Columnsort - CaseInsensitive
I don't know of anything built-in that provides this, but one way to accomplish it is to provide two fields in your data: one case- insensitive, the other case-sensitive. Set your grid column to the case-insenstiive field, then use a cell renderer or label function to have the grid display the case-sensitive field. Sorting on that column will then be case-insensitive. Doug --- In flexcoders@yahoogroups.com, Harald Dehn [EMAIL PROTECTED] wrote: Hello, is there any posibility to sort the columns of a DataGrid caseinsensitve? Harry -- 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/ * 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] Error while retrieving data in Flex UI(Urgent solution needed)
Correct Jason,Add my .002 too.SachinOn 4/4/06, Jason Hawryluk [EMAIL PROTECTED] wrote: DUDE!!! OMG!!!Why on earth are you even trying to load 9000 rows of data! That is just bad for your user's. If you want to show it use paging. if you want to chart it, summarize or cube it up before, and get it to a manageable row count. 9000 rows = no respect what so ever for your user. And; they do perceive it as a lack of respect. I'm sorry I have no solution to your problem except the above. My .002 Jason -Message d'origine-De: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com]De la part de anil thakurEnvoyé: mardi 4 avril 2006 17:00À: flexcoders@yahoogroups.comObjet: [flexcoders] Error while retrieving data in Flex UI(Urgent solution needed) Hi Sir I am facing this error. I have table from which I am retreving data.The table have data in which there are 9000 rows which I am trying to showing on the screen.But getting above alert.But the data is coming on the log message file but while showing on flex UI giving error. WSDL is generated properly.I am using java technology using design patterns. Sir plz solve this proble its urgent. Regards Anil kumar [EMAIL PROTECTED] Software Engineer Vanguard Info-Solutions Limited78, JIL Tower-II, Sector-18, Gurgaon-122001 (INDIA) -- The information in this e-mail is the property of VanGuard Info-Solution Ltd.and may be confidential and privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you receive this message in error, please notify the sender immediately forward a copy of this e-mail to [EMAIL PROTECTED].An E-mail reply to this address may be subject to interception or monitoring for operational reasons or for lawful business practices.This e-mail and any attachments has been scanned for the presence of computer viruses.Vanguard accept no responsibility for computer viruses once e-mail has been transmitted -- -- 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 Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- -Fight back spam! Download the Blue Frog.http://www.bluesecurity.com/register/s?user=c2FjaGluLmRoYXJtYXB1cmlrYXI4NjI%3D -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: CursorManager problem?
Matt, It's an Actionscript Component extending UIComponent and is part of a Flex Project. However, at the moment, I am just testing it by itself (just running this testClass.as file by itself and not being called via an MXML tag). Are you saying that in order to use the CursorManager, my AS component would have to be called via an MXML tag? Are there other ways? Cheers, Tim --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Is this part of a Flex project or AS only? You probably need the full framework available for CursorManager. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sufibaba Sent: Monday, April 03, 2006 6:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] CursorManager problem? Dear Flexors, I am trying to use the busy cursor in a custom actionscript component and I am getting the following error. TypeError: Error #1009: null has no properties. at mx.managers::CursorManager$/setBusyCursor() at CursorTest/::turnOnBusyCursor() ---import -- import mx.managers.CursorManager; --- Calling function -- private function turnOnBusyCursor():void nb! sp; { // Set busy cursor. CursorManager.setBusyCursor(); } Cheers, Tim -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+ site+design+developmentw2=Computer+software+developmentw3=Software+des ign+and+developmentw4=Macromedia+flexw5=Software+development+best+prac ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=We b+site+design+developmentw2=Computer+software+developmentw3=Software+d esign+and+developmentw4=Macromedia+flexw5=Software+development+best+pr acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1= Web+site+design+developmentw2=Computer+software+developmentw3=Software +design+and+developmentw4=Macromedia+flexw5=Software+development+best+ practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+ developmentw2=Computer+software+developmentw3=Software+design+and+deve lopmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=1 66.sig=OO6nPIrz7_EpZI36cYzBjw Software development best practice http://groups.yahoo.com/gads?t=msk=Software+development+best+practice; w1=Web+site+design+developmentw2=Computer+software+developmentw3=Softw are+design+and+developmentw4=Macromedia+flexw5=Software+development+be st+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . -- 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/ * 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] Finding Width of a DataGrid Column Dynamically / Super Header Text
So...is there a way to determine the column width of eachDataGridColumn (probably on creationComplete) every time new data populates it and send that pixel width somewhere? check out DataGrid.columns, it's an array of all columns so just iterate thru it to get the width of each column. jeremy. -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Can you capture LinkBar mouseOver index?
I'm trying to setup a 2 linkBar navigation, similar to macromedia.com's nav where you roll over the top linkBar and it displays the related linkBar below. However I'm having troubles finding the mouseOver index for the top linkbar. Seems only on click is an index passed Is there a way to capture this, or do you need to make your own custom component? Working in Flex 1.5, but if its available in 2.0 I'll install and try it Thanks! -- 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/ * 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/
[flexcoders] Dynamic Menu - setting enable=false (F2)
Flex 2: I am attempting to set a menuItem to disabled at runtime in an AS3 script. The menu collection has been inited with: menuBarCollection = new XMLListCollection(menubarXML); How do I invoke the 'setEnabled(object,true)' function? Exactly how should this statement be constructed with the qualified object name? I am new to OO and have not figured this one out yet. -- 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/ * 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/
[flexcoders] Flex 2b2: Double click troubles
Hello List; I have a couple questions/problems with double click events. When the user double-clicks an object, two events are fired. The first click fires a Click event. The second click fires a DoubleClick event. This is problematic when a control needs to implement different behaviors for click and double-click. Whenever the user double-clicks, the click handler is invoked before the double-click handler. How can the click handler know it should ignore the event because its actually part of a double-click event. Label controls dont seem to every get a DoubleClick event. Even when the doubleClickEnabled property is set to true for the entire containment hierarchy. Is this a bug? Heres the application Im using to test click and double click events: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* layout=absolute doubleClickEnabled=true creationComplete=OnCreationComplete() mx:Script ![CDATA[ private function OnCreationComplete() : void { trace( Label doubleClickEnabled:, l1.doubleClickEnabled ); trace( Button doubleClickEnabled:, b1.doubleClickEnabled ); } ]] /mx:Script mx:HBox mx:Label id=l1 text=ClickMe doubleClickEnabled=true click=trace( 'Label Click' ) doubleClick=trace( 'Label DoubleClick' )/ mx:Button id=b1 label=ClickMe doubleClickEnabled=true click=trace( 'Button Click' ) doubleClick=trace( 'Button DoubleClick' )/ /mx:HBox /mx:Application Creo Inc., a subsidiary of Kodak Tobias Patton | Software Developer | Tel: +1.604.451.2700 ext: 5148 | mailto:[EMAIL PROTECTED] | http://www.creo.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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] rowCount and PrintDataGrid
Hello all, I'm working on some print reports and I've run into an issue. I have a print data grid that needs to print over multiple pages. On the first page only nine rows can fit due to a header that's printed on this first page along with the grid. On subsequent pages there is space for many more rows to fit. Here's the problem. On all of the subsequent pages the grid still contains only 9 rows. I've made sure sizeToPage is set to true. I'm calling nextPage()...I'm adding my page code below. Any help is appreciated. if(!fpv.classBreakdownGrid.validNextPage) { pj.addObject(fpv); } else { fpv.showPage(first); pj.addObject(fpv); while(true) { fpv.classBreakdownGrid.nextPage(); fpv.showPage(last); if(!fpv.classBreakdownGrid.validNextPage) { if(fpv.classBreakdownGrid.verticalScrollPosition = numRows) { fpv.classBreakdownGrid.includeInLayout = false; fpv.classBreakdownGrid.visible = false; break; } else { pj.addObject(fpv); break; } } else { fpv.showPage(middle); pj.addObject(fpv); } } removeChild(fpv); } pj.send(); fpv.verticalScrollPolicy = mx.core.ScrollPolicy.ON; In the above code pj is a flexPrintJob, fpv is my printView mxml. I have noticed that when I step through the code in the debugger the rowCount on the printDataGrid is always set at the initial size of nine. Thanks for your help -- 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/ * 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] Flex1.5: Refreshing components to display changes in model
Have you tried using dataProvider.replaceItemAt()? In this way, you don't need to refresh the whole grid. |-+- | | | | | RAMOS CARDONA JESUS | | | SALVADOR | | | [EMAIL PROTECTED] | | | Sent by: | | | flexcoders@yahoogroups.com | | | 04/04/2006 11:02 AM| | | Please respond to | | | flexcoders | | | | |-+- -| | | | To: flexcoders@yahoogroups.com | | cc: | | Subject: [flexcoders] Flex1.5: Refreshing components to display changes in model | -| Hi all. I have a medium-sized app that makes heavy use of DataGrids. Upon selecting an item from one grid, it is possible to edit the data via a pop-up form. Once edited, the changes do not appear automatically on the grid. I am using Cairngorm 0.99, and I wish to know the correct way to accomplish this. Should I insert the new model back into the backing array of the grid's data provider? Please help. J. -- 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 --- 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. --- -- 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/ * 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/
[flexcoders] in operator (F2B2)
I want to clone an mx:Label object. I thought I should be able to use for (var i: String in label){ trace(i); } to test cycling through the properties of my label, but no luck. There's no compile error, but it also doesn't loop. I've tried this directly on the label object and inside a function where the label would be cast as an Object. Shouldn't I be able to treat any object as an associative array? Dave -- 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/ * 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] Flex beta 2 - add, remove and moving DataGridColumn
Tks Matt and Jason On 4/4/06, Jason Y. Kwong [EMAIL PROTECTED] wrote: I've noticed that you can't actually manipulate the columns property directly cause it looks like the grid returns a copy of its internal columns array. eg: trace(grid.columns == grid.columns); //outputs false So doing things like grid.columns.push(...) doesn't change anything, even if you call invalidateDisplayList(). I've had to assign back the property: var cols: Array = grid.columns; cols.push (...); grid.columns = col;Once you assign the property, the grid automatically redraws itself. On 4/3/06, Matt Chotin [EMAIL PROTECTED] wrote: The columns are stored in an Array. You simply need to manipulate the array using operations like splice. Then make sure to call invalidateDisplayList to get it to redraw. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Bruno MartinsSent: Monday, April 03, 2006 11:05 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Flex beta 2 - add, remove and moving DataGridColumn I tryed almost every thing but I don't know how to add, remove and moving a column. Please send a example. Tks.. --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Bruno Gustavo MartinsMobile: (55)(11)9585-9587[EMAIL PROTECTED]experience everywhere http://www.dclick.com.br/blog -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Question about mx.Resource.Locale
Does anyone know how this class works? Specifically, does Locale.getCurrent() return run-time or compile-time locale information? Creo Inc., a subsidiary of Kodak Tobias Patton | Software Developer | Tel: +1.604.451.2700 ext: 5148 | mailto:[EMAIL PROTECTED] | http://www.creo.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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] cloning was: in operator (F2B2)
Found out why this won't work, but is there still an easy way to clone an object? The FlexBuilder docs say to use describeType() and then use E4X to parse the XML to find object properties but that seems overly complicated when I just want a copy of an object. Dave David Moylan wrote: I want to clone an mx:Label object. I thought I should be able to use for (var i: String in label){ trace(i); } to test cycling through the properties of my label, but no luck. There's no compile error, but it also doesn't loop. I've tried this directly on the label object and inside a function where the label would be cast as an Object. Shouldn't I be able to treat any object as an associative array? Dave -- 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 * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/. -- 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/ * 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/
[flexcoders] Extending DataGridItemRenderer ( Flex 2 )
I am attempting to bind a DataGrid to an ArrayCollection of custom AS classes that don't easily lend themselves to the 'dataField' concept, as there are a couple of calcs that need to be run in order to determine the text that I want to place in the cell. As such, I am attempting to extend the DataGridItemRenderer, but have been unable to get it to render any text back into the cells. Does anyone have an example of how to do this? Thanks -Jeff -- 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/ * 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/
[flexcoders] F2B2 - TabNavigator.horizontalAlign not working
Setting the horizontalAlign property on my TabNavigator has no effect whatsoever. Bug? -- 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/ * 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] cloning was: in operator (F2B2)
Sorry for the bandwidth. Took me a while to find this... import mx.utils.ObjectUtil; var obj: Object = ObjectUtil.copy(objectToCopy); David Moylan wrote: Found out why this won't work, but is there still an easy way to clone an object? The FlexBuilder docs say to use describeType() and then use E4X to parse the XML to find object properties but that seems overly complicated when I just want a copy of an object. -- 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/ * 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] in operator (F2B2)
In AS3, the in operator will iterate only through dynamically added properties. Properties/methods that are declared as part of the class are not included, so it will show nothing for the Label. On 4/4/06, David Moylan [EMAIL PROTECTED] wrote: I want to clone an mx:Label object.I thought I should be able to usefor (var i: String in label){trace(i);}to test cycling through the properties of my label, but no luck.There's no compile error, but it also doesn't loop.I've tried this directly on the label object and inside a function where the label wouldbe cast as an Object.Shouldn't I be able to treat any object as anassociative array?Dave--Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ * 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/ -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Finding Width of a DataGrid Column Dynamically / Super Header Text
Thanks, Jeremy -- I am aware of DataGridColumns, which is where we're tracking those widths, and I understand what you're describing in principle. It's the practice I'm looking for... :} Could you (or someone) provide me with a snippet of code as an example? Obliged, jk --- In flexcoders@yahoogroups.com, jeremy lu [EMAIL PROTECTED] wrote: So...is there a way to determine the column width of each DataGridColumn (probably on creationComplete) every time new data populates it and send that pixel width somewhere? check out DataGrid.columns, it's an array of all columns so just iterate thru it to get the width of each column. jeremy. -- 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/ * 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/
[flexcoders] Re: Finding Width of a DataGrid Column Dynamically / Super Header Text
Hi, I think if you say dg.getColumnAt(a).width will give the width of the column at index a in the datagrid. dg being the id of the datagrid. Hope this helps. -Shweta --- In flexcoders@yahoogroups.com, jameskeepnews [EMAIL PROTECTED] wrote: Thanks, Jeremy -- I am aware of DataGridColumns, which is where we're tracking those widths, and I understand what you're describing in principle. It's the practice I'm looking for... :} Could you (or someone) provide me with a snippet of code as an example? Obliged, jk --- In flexcoders@yahoogroups.com, jeremy lu wade.lu@ wrote: So...is there a way to determine the column width of each DataGridColumn (probably on creationComplete) every time new data populates it and send that pixel width somewhere? check out DataGrid.columns, it's an array of all columns so just iterate thru it to get the width of each column. jeremy. -- 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/ * 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/
[flexcoders] Re: Finding Width of a DataGrid Column Dynamically / Super Header Text
And thank you, Shweta -- I saw the Macromedia sample on their site that return ciolumn width, with this syntax you suggest below. However, when I try to utilize it, I get this compile error in Eclipse (running Flex 2.0 Beta 2): Call to a possibly undefined method 'getColumnAt' through a reference with static type 'mx.controls:DataGrid' Macro-Adobe folks: is this syntax no longer useable within 2.0? I have since tracked down part of my solution. A script gathers the width info like so: var columns:ArrayCollection = new ArrayCollection(mygrid.columns ); var c1 = (columns.getItemAt( 0 ) as DataGridColumn).width;... ...and iterate away. Thanks again to everyone for their help. jk --- In flexcoders@yahoogroups.com, shweta_parekh [EMAIL PROTECTED] wrote: Hi, I think if you say dg.getColumnAt(a).width will give the width of the column at index a in the datagrid. dg being the id of the datagrid. Hope this helps. -Shweta --- In flexcoders@yahoogroups.com, jameskeepnews jkeepnews@ wrote: Thanks, Jeremy -- I am aware of DataGridColumns, which is where we're tracking those widths, and I understand what you're describing in principle. It's the practice I'm looking for... :} Could you (or someone) provide me with a snippet of code as an example? Obliged, jk --- In flexcoders@yahoogroups.com, jeremy lu wade.lu@ wrote: So...is there a way to determine the column width of each DataGridColumn (probably on creationComplete) every time new data populates it and send that pixel width somewhere? check out DataGrid.columns, it's an array of all columns so just iterate thru it to get the width of each column. jeremy. -- 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/ * 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/
[flexcoders] Custom component question - f2b2
Need some help I have a flex app started that most everything is working. On the default state, I have a Tree. Then I have multiple states, which one of them loads a custom component. When a Tree node is selected, a function fires, that changes the state to the one with the custom component. This works just fine and the component then gets the select node data via mx.core.Application.application.functionname(). This works on the first node selection. When any other node is select, the custom component does not update. Is there a way to tell the component that the Tree has changed and re-poll to get the new selected node data? I hope this makes sense. Chris -- 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/ * 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] Flex 1.5 :: Button MouseOver Color
Try fill-colors: Example: fill-colors: #00, #ff; You can also check the Style Explorer for more attributes. http://weblogs.macromedia.com/mc/archives/FlexStyleExplorer.html |-+-- | | | | | Pablo Apanasionek | | | [EMAIL PROTECTED]| | | m | | | Sent by:| | | flexcoders@yahoogroups.com | | | 04/04/2006 01:57 PM | | | Please respond to flexcoders| | | | |-+-- -| | | | To: flexcoders@yahoogroups.com | | cc: | | Subject: [flexcoders] Flex 1.5 :: Button MouseOver Color | -| Does anyone have an idea of how i can change the color of a button (Flex 1.5) when i move the mouse on it? Already tried: highlight-color, selected-fill-colors and others without results. Thanks in advance, Pablo Gustavo Apanasionek -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design Computer software Software design and development development development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. --- 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. --- -- 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/ * 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/
[flexcoders] Re: Flex 1.5 :: Button MouseOver Color
Or in mxml, try: mx:Button label=Hover here mouseOver=event.target.setStyle('fillColors', [0xFF, 0xFF]) mouseOut=event.target.setStyle('fillColors', [0xFF, 0xFF])/ --- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote: Try fill-colors: Example: fill-colors: #00, #ff; You can also check the Style Explorer for more attributes. http://weblogs.macromedia.com/mc/archives/FlexStyleExplorer.html |-+-- | | | | | Pablo Apanasionek | | | [EMAIL PROTECTED]| | | m | | | Sent by: | | | flexcoders@yahoogroups.com | | | 04/04/2006 01:57 PM | | | Please respond to flexcoders| | | | |-+-- ---\ --| | | | To: flexcoders@yahoogroups.com | | cc: | | Subject: [flexcoders] Flex 1.5 :: Button MouseOver Color | ---\ --| Does anyone have an idea of how i can change the color of a button (Flex 1.5) when i move the mouse on it? Already tried: highlight-color, selected-fill-colors and others without results. Thanks in advance, Pablo Gustavo Apanasionek -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design Computer software Software design and development development development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. \ --- 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. \ --- -- 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/ * 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/
[flexcoders] Salary Check
With Flex growing an alaming rate,I wanted to a check with the community regarding salary rates (both contract and W-2). I've been coding in Flex 1.5 for over a year and have worked with the Beta for a month or two. I am quite confident in my skills and easily landed a $70/hour gig as a contractor. I also have been a back-end Java developer for the last 5 years. Having said that, job offers are starting to pour in for Flex work and they demand to know a salary rate first. I'm a bit hesitant to scare off employers with lower to mid 6-digit salary requirements so I thought I'd ping the community first. I'm based on the US east coast. Anyone have any thoughts? I apologize to the community if they don't like this question in the technical forum...I just thought it would help since there isn't any really anywhere else to go for help on this. Thanks. -- 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/ * 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/
[flexcoders] Re: Salary Check
Maybe if it involves a J2EE backend, charge as per J2EE developer If you know Flash Authoring + a Designer as well add more? btw, is Flex growing at an alarming rate??, doesn't seem like it at the moment to be honest --- In flexcoders@yahoogroups.com, Kevin Ewok [EMAIL PROTECTED] wrote: With Flex growing an alaming rate,I wanted to a check with the community regarding salary rates (both contract and W-2). I've been coding in Flex 1.5 for over a year and have worked with the Beta for a month or two. I am quite confident in my skills and easily landed a $70/hour gig as a contractor. I also have been a back-end Java developer for the last 5 years. Having said that, job offers are starting to pour in for Flex work and they demand to know a salary rate first. I'm a bit hesitant to scare off employers with lower to mid 6-digit salary requirements so I thought I'd ping the community first. I'm based on the US east coast. Anyone have any thoughts? I apologize to the community if they don't like this question in the technical forum...I just thought it would help since there isn't any really anywhere else to go for help on this. Thanks. -- 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/ * 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] cloning was: in operator (F2B2)
There is no easy way in Flex 2 to clone an arbitrary type of. Can you explain why you need to? - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Moylan Sent: Tuesday, April 04, 2006 11:03 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] cloning was: in operator (F2B2) Found out why this won't work, but is there still an easy way to clone an object? The FlexBuilder docs say to use describeType() and then use E4X to parse the XML to find object properties but that seems overly complicated when I just want a copy of an object. Dave David Moylan wrote: I want to clone an mx:Label object. I thought I should be able to use for (var i: String in label){ trace(i); } to test cycling through the properties of my label, but no luck. There's no compile error, but it also doesn't loop. I've tried this directly on the label object and inside a function where the label would be cast as an Object. Shouldn't I be able to treat any object as an associative array? Dave -- 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 * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/. -- 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 -- 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/ * 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/
[flexcoders] Flex 2: popupMenuButton bug
Run the code below, click on the arrow for the PopupMenuButton, click on foo in the menu. The menu doesn't disappear, then when you move the mouse, the ComboBox appears in front of the menu. I've seen similar behavior without having to click an item in the menu but I haven't come up with a way to reproduce it every time. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=* layout=absolute creationComplete=initApp() mx:Script ![CDATA[ import mx.collections.*; [Bindable] public var history:ArrayCollection; private function initApp():void { history = new ArrayCollection( [{label:foo},{label:bar},{label:foobar}] ); } ]] /mx:Script mx:VBox width=100% height=100% verticalGap=0 mx:PopUpMenuButton id=pb dataProvider={history} width=100 labelField=label/ mx:ComboBox id=historyList dataProvider={history} width=100/ /mx:VBox /mx:Application -- 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/ * 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/
[flexcoders] Large XML Dataset?
I've been searching and searching, but haven't been able to find the answer, so I'm posting here as a last resort. I am working on a Flex application that must read in a fairly large XML file (1.5 to 3 megs depending).If I were to base my application off of the flexstore example, I'd just open up the XML file and try to read in everything. This works fine for 500- 1000 records, but, unfortunately, has some pretty nasty effects when dealing with about 12000 thumbnails. When it comes to reading XML I'm not sure of e4x, object, or XML is the most efficent result set. Regardless...is there a way to open the XML file, but not read from it until a user enters a search and then only return nodes from the XML which match the search? Basically, I want to use the XML file as sort of a virtual database. The reason I have to go this route is that the application will be delivered via CD and is meant to run as a desktop application. Thanks! Wayne -- 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/ * 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/
[flexcoders] Does Flex have drawing components?
Hi... Newbie to Flex here...I'm evaluating it for use in a graphical tasking application...here is what I am trying to do with flex... I have a palette that contains components which represent individuals. Each person has a specific task s/he has to perform. The user needs to be able to drag a components/persons to a canvas and define what s/he has to do. Next, once at least two components are defined in the canvas, the user needs to be able to draw a line between components then define this relationship (the line represents a relationship)...for example, if person A has to write chapter 1 of a book, but person B has to write chapter 2 based on what chapter 1 has, this line would indicate this. I've been tweaking the flexstore 1.5 application and have the drag and drop stuff running but am not sure if flex has a component to allow a user to freehand draw a line and attach properties to that line. Any ideas on how to do this if at all possible? thanks! Christine -- 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/ * 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/
[flexcoders] Re: rowCount and PrintDataGrid
I just realized I should show the print view code as well. Here it is: ?xml version="1.0" encoding="utf-8"?mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" xmlns:wtrfrd="customComponents.*" paddingBottom="10" paddingTop="10" paddingLeft="10" paddingRight="10" mx:Script![CDATA[[Bindable] public var results:Object = new Object(); public var headerHeight:Number; public var footerHeight:Number; public function showPage(page:String):void { if(page == "middle" || page == "last") { // header and charts turned off topContainer.visible = false; headerHeight = topContainer.height; topContainer.height = 0; } }]]/mx:Scriptmx:VBox id="topContainer" width="100%" height="100%"mx:Spacer height="1"/!-- show the Header --wtrfrd:PrintHeaderEMS id="header" logoSrc="assets/WEMSlogo.png" results="{results}" / mx:Spacer height="1"/mx:Panel id="panelAverageScores"titleStyleName="panelHeader"verticalScrollPolicy="off"width="100%" height="280" title="Average Score on Activities" paddingRight="5" mx:Spacer height="2"/ mx:HBox id="hBoxAverageScoreActivities" width="100%" height="100%" horizontalGap="8"mx:VBox width="100%" !-- levels activities chart --mx:ColumnChart id="chartAverageScoreActivities" width="100%" height="100%" type="clustered"mx:horizontalAxismx:CategoryAxis id="chartAverageScoreActivitiesAxis"//mx:horizontalAxismx:verticalAxismx:LinearAxis title="Score %" minimum="0" maximum="100" interval="10" //mx:verticalAxismx:series mx:Array mx:ColumnSeries yField="level1" displayName="Level 1" styleName="clrEMS1" / mx:ColumnSeries yField="level2" displayName="Level 2" styleName="clrEMS2"/ mx:ColumnSeries yField="level3" displayName="Level 3" styleName="clrEMS3"/ /mx:Array /mx:series mx:backgroundElements mx:Array mx:GridLines styleName="chartHorizontalAxisReg" mx:horizontalStroke mx:Stroke weight="0" color="0x00" / /mx:horizontalStroke /mx:GridLines mx:GridLines styleName="chartHorizontalAxis80" mx:horizontalStroke mx:Stroke weight="3" color="0x00" / /mx:horizontalStroke /mx:GridLines /mx:Array /mx:backgroundElements /mx:ColumnChartmx:HBox width="100%" height="100%" horizontalAlign="center"mx:Legend dataProvider="{chartAverageScoreActivities}" direction="horizontal"//mx:HBox/mx:VBox/mx:HBox/mx:Panel/mx:VBoxmx:Spacer height="1"/ mx:PrintDataGrid id="classBreakdownGrid" width="100%"dataProvider="{results.student_progress.student}"variableRowHeight="false"styleName="printDataGrid"mx:columnsmx:Arraymx:DataGridColumn textAlign="center" headerWordWrap="true" wordWrap="true" headerText="Name" dataField="name" /mx:DataGridColumn textAlign="center" headerWordWrap="true" wordWrap="true" headerText="Level" dataField="level" /mx:DataGridColumn textAlign="center" headerWordWrap="true" wordWrap="true" headerText="Current Objective" dataField="current_lesson" /mx:DataGridColumn textAlign="center" headerWordWrap="true" wordWrap="true" headerText="Math amp; Science Program Use (hrs:min)" dataField="program_use" /mx:DataGridColumn textAlign="center" headerWordWrap="true" wordWrap="true" headerText="Number Concepts %" dataField="col0"/mx:DataGridColumn textAlign="center" headerWordWrap="true" wordWrap="true" headerText="Abstract Math Concepts %" dataField="col1"/mx:DataGridColumn textAlign="center" headerWordWrap="true" wordWrap="true" headerText="Science %" dataField="col2"//mx:Array/mx:columns/mx:PrintDataGridmx:VBox id="pageFooter" width="100%"mx:Label width="100%" text="{results.class_use.class_type} Average Program Use - {results.class_use.class_avg_use}" styleName="h2" /mx:Label width="100%" text="Target Use by {results.class_use.target_date} - {results.class_use.target_use}" styleName="h2" /mx:Label width="100%" text="* Red shaded rows identify students with a Number Concepts average below 80%." /wtrfrd:PrintFooter id="footer" results="{results}" //mx:VBox/mx:VBox -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Using mxml without flex framework (Flex 2 Beta 1 and 2)
Sven, Been meaning to follow up on this, sorry it took so long - The null has no properties error from a Sprite-based app (with framework.swc visible for resolving imports) is simply a bug, and will be fixed in beta 3. On the larger question of compiling without the framework, just wanted to add a quick bit of detail. As Matt said, weve tabled formal support for this for beta 2, unfortunately. However, in practice the compiler depends on only a fairly well-isolated collection of interfaces and runtime support classes (e.g. for data binding). Officially identifying and repackaging this subset, and supporting a workflow where it exists independently of framework.swc, is essentially the work that weve punted on for now, but the internal groundwork is there, so its very much on our radar. Not much help now, admittedly. Basil From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bussesven Sent: Friday, March 24, 2006 4:15 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Using mxml without flex framework (Flex 2 Beta 1 and 2) Hi, in the alpha version of Flex 2 i was able to remove the framework.swc from a flex project and still use mxml with only my own classes. In beta 1 and beta 2 this doesn't work anymore, because mxmlc by default generates several import statements and other stuff in the generated classes, which leads to errors of course, since i have removed the framework.swc. Even if i leave the framework.swc in, but use only my own classes, it doesn't work, since there is an error with the StyleManager. I made a simple example. I have a very simple class: package com { import flash.util.trace; import flash.display.Sprite; public class Sample extends Sprite { public var myvalue:String; public function Sample() { trace(Hello World!); } } } And a very simple mxml: ?xml version=1.0 encoding=utf-8? sb:Sample xmlns:sb=com.* myvalue=Test / It doesn't work, i get the error: TypeError: Error #1009: null has no properties. at mx.styles::StyleManager$/http://www.adobe.com/2006/flex/mx/internal::i nitProtoChainRoots()[C:\dev\beta2 \sdk\frameworks\mx\styles\StyleManager.as:240] at MyTest/http://www.adobe.com/2006/flex/mx/internal::_MyTest_StylesInit () at MyTest$iinit() What is going wrong here? How can i use mxml with just my own classes without the flex framework? Thanx and cheers. -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Using mxml without flex framework (Flex 2 Beta 1 and 2)
Brendan, Sorry for the delayed response but yes, would you please post code (or better, file a bug and LMK the number)? Svens instance of the error has been fixed, but as you say the circumstances here are clearly different. Chances are good that this is a separate bug, still unfixed. Thanks, Basil From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brendan Meutzner Sent: Saturday, March 25, 2006 1:16 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Using mxml without flex framework (Flex 2 Beta 1 and 2) I'm getting an almost identical error. I can't even figure out how to begin to track this... I've tried removing the suspect component all together, but still receive the error. Based on the fact my error description almost matches bussesven's, and my situation is not even similar, could this be a bug? [SWF] C:\Inetpub\wwwroot\BestBuy\bin\BestBuy-debug.swf - 1,191,862 bytes after decompression TypeError: Error #1009: null has no properties. at mx.styles::StyleManager$/http://www.adobe.com/2006/flex/mx/internal::initProtoChainRoots()[C:\dev\beta2\sdk\frameworks\mx\styles\StyleManager.as:240] at products.layout::MainGameLayout/http://www.adobe.com/2006/flex/mx/internal::_MainGameLayout_StylesInit() at products.layout::MainGameLayout$iinit()[C:\dev\beta2\sdk\frameworks\mx\core\UIComponentDescriptor.as:5] at containers::ContentContainer$cinit() at global$init()[C:\Inetpub\wwwroot\BestBuy\containers\ContentContainer.mxml:15] at _containers_ContentContainerWatcherSetupUtil$/init() at mx.managers::SystemManager/mx.managers:SystemManager::frameEndHandler()[C:\dev\beta2\sdk\frameworks\mx\managers\SystemManager.as:1830] I can post code if need be... Thanks, Brendan On 3/24/06, bussesven [EMAIL PROTECTED] wrote: Hi, in the alpha version of Flex 2 i was able to remove the framework.swc from a flex project and still use mxml with only my own classes. In beta 1 and beta 2 this doesn't work anymore, because mxmlc by default generates several import statements and other stuff in the generated classes, which leads to errors of course, since i have removed the framework.swc . Even if i leave the framework.swc in, but use only my own classes, it doesn't work, since there is an error with the StyleManager. I made a simple example. I have a very simple class: package com { import flash.util.trace; import flash.display.Sprite; public class Sample extends Sprite { public var myvalue:String; public function Sample() { trace(Hello World!); } } } And a very simple mxml: ?xml version=1.0 encoding=utf-8? sb:Sample xmlns:sb=com.* myvalue=Test / It doesn't work, i get the error: TypeError: Error #1009: null has no properties. at mx.styles::StyleManager$/http://www.adobe.com/2006/flex/mx/internal::i nitProtoChainRoots()[C:\dev\beta2 \sdk\frameworks\mx\styles\StyleManager.as:240] at MyTest/http://www.adobe.com/2006/flex/mx/internal::_MyTest_StylesInit () at MyTest$iinit() What is going wrong here? How can i use mxml with just my own classes without the flex framework? Thanx and cheers. -- 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/ * 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/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Scrapblog Builder - New Flex 1.5 Application
We just launched a beta of the Scrapblog Builder last week. Scrapblog is the world's first online scrapbooking service. The Scrapblog Builder is a flex 1.5 application for publishing content from the Web to the Web. Our goal was to enhance photo sharing by combining the storytelling aspect of scrapbooking with the sharing power of blogs. Please, check out the application and give us your comments. You do not need to register to take a test drive. Just go to www.scrapblog.com and go to "create a scrapblog". Registration is free in case you decide to register and test the full version. You can also view a detailed demo of the Scrapblog Builder at http://www.scrapblog.com/demo. We are just getting started and we will be rolling out new features and enhancements constantly. Thanks to all! Carlos Garcia -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Large XML Dataset?
I had some of the same issues reading XML over HTTP. If your XML is dynamically generated by a server (via JSP, CF, ASP, etc.), you can do what I did, which is to essentially pass your search values as parameters within your HTTP request and have the server pass back only the data that match those criteria. Hope that helps, Doug --- In flexcoders@yahoogroups.com, wayneposner [EMAIL PROTECTED] wrote: I've been searching and searching, but haven't been able to find the answer, so I'm posting here as a last resort. I am working on a Flex application that must read in a fairly large XML file (1.5 to 3 megs depending).If I were to base my application off of the flexstore example, I'd just open up the XML file and try to read in everything. This works fine for 500- 1000 records, but, unfortunately, has some pretty nasty effects when dealing with about 12000 thumbnails. When it comes to reading XML I'm not sure of e4x, object, or XML is the most efficent result set. Regardless...is there a way to open the XML file, but not read from it until a user enters a search and then only return nodes from the XML which match the search? Basically, I want to use the XML file as sort of a virtual database. The reason I have to go this route is that the application will be delivered via CD and is meant to run as a desktop application. Thanks! Wayne -- 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/ * 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] Does Flex have drawing components?
Its quite possible to implement this sort of thing via the lower level flash.graphics.* Actionscript API, but we do not currently provide any prebuilt drawing components usable via declarative MXML elements. Once you write the components, I bet lots of people in the community here would love to use them, though! :-) -rg -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tinkiknit Sent: Tuesday, April 04, 2006 2:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Does Flex have drawing components? Hi... Newbie to Flex here...I'm evaluating it for use in a graphical tasking application...here is what I am trying to do with flex... I have a palette that contains components which represent individuals. Each person has a specific task s/he has to perform. The user needs to be able to drag a components/persons to a canvas and define what s/he has to do. Next, once at least two components are defined in the canvas, the user needs to be able to draw a line between components then define this relationship (the line represents a relationship)...for example, if person A has to write chapter 1 of a book, but person B has to write chapter 2 based on what chapter 1 has, this line would indicate this. I've been tweaking the flexstore 1.5 application and have the drag and drop stuff running but am not sure if flex has a component to allow a user to freehand draw a line and attach properties to that line. Any ideas on how to do this if at all possible? thanks! Christine -- 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 -- 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/ * 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] cloning was: in operator (F2B2)
Gordon Smith wrote: There is no easy way in Flex 2 to clone an arbitrary type of. Can you explain why you need to? Peter posted a neat approach here: http://www.peterjoel.com/blog/index.php?archive=2006_02_01_archive.xml#114064012876401732 package com.peterjoel.util { import flash.util.ByteArray;{ public function cloneObject(o:Object):Object{ var bytes:ByteArray = new ByteArray(); bytes.writeObject(o); bytes.position = 0; return bytes.readObject(); } } -d -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] cloning was: in operator (F2B2)
Darren, yep, we use this approach ourselves internally. I would like to clarify that ByteArray readObject and writeObject do retain object references between instances within the graph being cloned... just not to any other object outside of the graph. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Darron J. SchallSent: Tuesday, April 04, 2006 6:31 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] cloning was: in operator (F2B2) Gordon Smith wrote: There is no easy way in Flex 2 to clone an arbitrary type of. Can you explain why you need to?Peter posted a neat approach here: http://www.peterjoel.com/blog/index.php?archive=2006_02_01_archive.xml#114064012876401732 package com.peterjoel.util {import flash.util.ByteArray;{public function cloneObject(o:Object):Object{var bytes:ByteArray = new ByteArray();bytes.writeObject(o);bytes.position = 0;return bytes.readObject();}}-d -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Large XML Dataset?
Is there any chance you can split up the xml in multiple categories. Or maybe with a 'global xml index' of some kind? Evert wayneposner wrote: I've been searching and searching, but haven't been able to find the answer, so I'm posting here as a last resort. I am working on a Flex application that must read in a fairly large XML file (1.5 to 3 megs depending).If I were to base my application off of the flexstore example, I'd just open up the XML file and try to read in everything. This works fine for 500- 1000 records, but, unfortunately, has some pretty nasty effects when dealing with about 12000 thumbnails. When it comes to reading XML I'm not sure of e4x, object, or XML is the most efficent result set. Regardless...is there a way to open the XML file, but not read from it until a user enters a search and then only return nodes from the XML which match the search? Basically, I want to use the XML file as sort of a virtual database. The reason I have to go this route is that the application will be delivered via CD and is meant to run as a desktop application. Thanks! Wayne -- 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 -- 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/ * 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/
[flexcoders] DOT NET 2.0
We are building a web application using dot net 2.0. I saw the demo of FLEX 2.0 [Rich Internet Application] and was really impressed with its UI. I would like have similar user interface for my dot net application. I believe we can integrate FLEX 2.0 with dot net thru web services. Please correct it if I am wrong. But it seems I need to run JAVA web server in my web server. Is it true? Or shall I get FLEX 1.5 and FLEX 1.5 REMOTING and integrate it with my dot net assemblies. Please let me know if it is possible to have FLEX 2.0 or any previous version integrated with my dot net 2.0 application? Is there any example out there? I would love to have a better UI for my application. Please help me and provide more detail information. Thanks in advance! -- 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/ * 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] DOT NET 2.0
We develop Flex 1.0 application using ASP.NET 1.0 and 2.0 Web Services. This works extremely well. Flex 1.0 requires a java server to serve the Flex application itself. While I haven't used 2.0 yet, what I have read indicates that you do not need a java server. The 2.0 development tools can compile the application directly into a SWF file that can be served just like any normal Flash file. So with Flex 2.0, you should should be able to use ASP.NET 2.0 Web Services without the need for a Java server. -- Matthew On 4/4/06, sakgroups [EMAIL PROTECTED] wrote: We are building a web application using dot net 2.0. I saw the demo of FLEX 2.0 [Rich Internet Application] and was really impressed with its UI. I would like have similar user interface for my dot net application. I believe we can integrate FLEX 2.0 with dot net thru web services. Please correct it if I am wrong. But it seems I need to run JAVA web server in my web server. Is it true? Or shall I get FLEX 1.5 and FLEX 1.5 REMOTING and integrate it with my dot net assemblies. Please let me know if it is possible to have FLEX 2.0 or any previous version integrated with my dot net 2.0 application? Is there any example out there? I would love to have a better UI for my application. Please help me and provide more detail information. Thanks in advance! -- 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 -- 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/ * 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/
[flexcoders] Re: What is Incompatible override??
Ah, I understand a message of Incompatible override. It works. Thank you for your replay!! --- In flexcoders@yahoogroups.com, Jason Y. Kwong [EMAIL PROTECTED] wrote: The function signatures have changed. eg: callProperty(name:Object, ... args):* has changed to: callProperty(name:*, ... args):* On 4/4/06, sn197412 [EMAIL PROTECTED] wrote: Hi. I'm trying to compile a [EMAIL PROTECTED] But I got errors every override lines. What is Incompatible override?? package { import flash.util.Proxy; import flash.util.flash_proxy; import flash.util.trace; use namespace flash_proxy; public dynamic class Person extends Proxy { protected var name:String; protected var age:uint; public function Person( name:String, age:uint ) { this.name = name; this.age = age; } flash_proxy override function callProperty(name:Object, ... args):* { trace(callProperty: + name); return super[name].apply(null,args); } flash_proxy override function setProperty(name:Object, value:Object):void { trace(setProperty: + name); super.setProperty(name, value); } flash_proxy override function deleteProperty(name:Object):void { trace(deleteProperty: + name); super.deleteProperty(name); } flash_proxy override function hasProperty(name:Object):Boolean { trace(hasProperty: + name); return super.hasProperty( name ); } } } -- 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 -- 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/ * 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] cloning was: in operator (F2B2)
hi Peter, last time when I making a copy of arrayCollection of VO's, turned out the copied arrayCollection won't keep VO's type, all the vos are turned into plain Object. any reason for this ? thanks.On 4/5/06, Peter Farland [EMAIL PROTECTED] wrote: Darren, yep, we use this approach ourselves internally. I would like to clarify that ByteArray readObject and writeObject do retain object references between instances within the graph being cloned... just not to any other object outside of the graph. -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: Finding Width of a DataGrid Column Dynamically / Super Header Text
datagrid.getItemAt() is gone, use following: for(ver i:int=0;idg.columns.length;i++){ trace(dg.columns[i].width); } you will get each column's width (and lot of other properties). note: what dg.columns[i] returns is of DataGridColumn type, check it in the manual for other props/methods. jeremy.On 4/5/06, jameskeepnews [EMAIL PROTECTED] wrote: And thank you, Shweta -- I saw the Macromedia sample on their sitethat return ciolumn width, with this syntax you suggest below. However, when I try to utilize it, I get this compile error inEclipse (running Flex 2.0 Beta 2):Call to a possibly undefined method 'getColumnAt' through areference with static type 'mx.controls:DataGrid 'Macro-Adobe folks: is this syntax no longer useable within 2.0?I have since tracked down part of my solution. A script gathers thewidth info like so:var columns:ArrayCollection = new ArrayCollection( mygrid.columns );var c1 = (columns.getItemAt( 0 ) as DataGridColumn).width;..and iterate away. Thanks again to everyone for their help. jk--- In flexcoders@yahoogroups.com, shweta_parekh [EMAIL PROTECTED]wrote: Hi, I think if you saydg.getColumnAt(a).width will give the width of the column at index a in the datagrid. dg being the id of the datagrid. Hope this helps. -Shweta --- In flexcoders@yahoogroups.com, jameskeepnews jkeepnews@ wrote: Thanks, Jeremy -- I am aware of DataGridColumns, which is where we're tracking those widths, and I understand what you're describingin principle. It's the practice I'm looking for... :} Could you (or someone) provide me with a snippet of code as an example? Obliged, jk --- In flexcoders@yahoogroups.com, jeremy lu wade.lu@ wrote: So...is there a way to determine the column width of eachDataGridColumn (probably on creationComplete) every time new datapopulates it and send that pixel width somewhere? check out DataGrid.columns, it's an array of all columns sojust iterate thru it to get the width of each column. jeremy. --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* 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/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] cloning was: in operator (F2B2)
jeremy lu wrote: last time when I making a copy of arrayCollection of VO's, turned out the copied arrayCollection won't keep VO's type, all the vos are turned into plain Object. Most likely because the VO's haven't been registered. Do you have [RemoteClass(alias=package.name.ClassName)] metadata above the class defintiion? If not, you'll have to manually register the VO with flash.net.registerClassAlias(): http://livedocs.macromedia.com/labs/1/flex/langref/flash/net/package.html#registerClassAlias() -d -- 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/ * 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] cloning was: in operator (F2B2)
This has various limitations. For example, it won't work on a DisplayObject because they don't serialize everything required to recreate them. - Gordon From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Darron J. Schall Sent: Tuesday, April 04, 2006 3:31 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] cloning was: in operator (F2B2) Gordon Smith wrote: There is no easy way in Flex 2 to clone an arbitrary type of. Can youexplain why you need to? Peter posted a neat approach here: http://www.peterjoel.com/blog/index.php?archive=2006_02_01_archive.xml#114064012876401732 package com.peterjoel.util { import flash.util.ByteArray;{ public function cloneObject(o:Object):Object{ var bytes:ByteArray = new ByteArray(); bytes.writeObject(o); bytes.position = 0; return bytes.readObject(); } } -d -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Salary Check
I meant that Flex's presence was becoming known at an alarming rate. Probably not the best choice of words. A year ago no companies I know had heard of it, now almost every company has at least heard of it and many are researching it to replace their Struts based webapps. --- In flexcoders@yahoogroups.com, pk_wasp [EMAIL PROTECTED] wrote: Maybe if it involves a J2EE backend, charge as per J2EE developer If you know Flash Authoring + a Designer as well add more? btw, is Flex growing at an alarming rate??, doesn't seem like it at the moment to be honest --- In flexcoders@yahoogroups.com, Kevin Ewok suzylawson@ wrote: With Flex growing an alaming rate,I wanted to a check with the community regarding salary rates (both contract and W-2). I've been coding in Flex 1.5 for over a year and have worked with the Beta for a month or two. I am quite confident in my skills and easily landed a $70/hour gig as a contractor. I also have been a back-end Java developer for the last 5 years. Having said that, job offers are starting to pour in for Flex work and they demand to know a salary rate first. I'm a bit hesitant to scare off employers with lower to mid 6-digit salary requirements so I thought I'd ping the community first. I'm based on the US east coast. Anyone have any thoughts? I apologize to the community if they don't like this question in the technical forum...I just thought it would help since there isn't any really anywhere else to go for help on this. Thanks. -- 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/ * 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] Large XML Dataset?
As another alternative, there are "XML servers" out there that support exactly the type of searching you want to do but on the server side - which seems like the proper place for this sort of thing. Just because it needs to be on a desktop, doesn't mean it can't have a tiered structure with a "server" that listens for and processes requests. For example, you can send an XML query to a server via HTTP and get back only the results (or portion thereof) that you can handle. If that's an option, and you have money to spend (i.e. this is a paid/corporate effort), there are at least a few products out there that can do this out of the box. Obviously to deploy it you would have to talk them about some form of an OEM-type relationship. I know of at least one vendor that provides trial versions via download if you are interested. -Mark Evert | Collab wrote: Is there any chance you can split up the xml in multiple categories. Or maybe with a 'global xml index' of some kind? Evert wayneposner wrote: I've been searching and searching, but haven't been able to find the answer, so I'm posting here as a last resort. I am working on a Flex application that must read in a fairly large XML file (1.5 to 3 megs depending).If I were to base my application off of the flexstore example, I'd just open up the XML file and try to read in everything. This works fine for 500- 1000 "records", but, unfortunately, has some pretty nasty effects when dealing with about 12000 thumbnails. When it comes to reading XML I'm not sure of e4x, object, or XML is the most efficent result set. Regardless...is there a way to open the XML file, but not read from it until a user enters a search and then only return nodes from the XML which match the search? Basically, I want to use the XML file as sort of a virtual database. The reason I have to go this route is that the application will be delivered via CD and is meant to run as a desktop application. Thanks! Wayne -- 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 -- 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/ * 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/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Flex 2b2: Double click troubles
I experienced the same problem regarding ItemDoubleClick event in the column chart. I wanted to forward drill down on one click and on double click reverse drill down. Instead, always single click event is getting fired. I tried to set only doubleclick event of the chart but still its not working properly. Its giving serious trouble. Hope you find a fix for it. Sachin On 4/4/06, Tobias Patton [EMAIL PROTECTED] wrote: Hello List; I have a couple questions/problems with double click events. When the user double-clicks an object, two events are fired. The first click fires a Click event. The second click fires a DoubleClick event. This is problematic when a control needs to implement different behaviors for click and double-click. Whenever the user double-clicks, the click handler is invoked before the double-click handler. How can the click handler know it should ignore the event because it's actually part of a double-click event. Label controls don't seem to every get a DoubleClick event. Even when the doubleClickEnabled property is set to "true" for the entire containment hierarchy. Is this a bug? Here's the application I'm using to test click and double click events: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx= http://www.adobe.com/2006/mxml xmlns=* layout=absolute doubleClickEnabled=true creationComplete=OnCreationComplete() mx:Script ![CDATA[ private function OnCreationComplete() : void { trace( Label doubleClickEnabled:, l1.doubleClickEnabled ); trace( Button doubleClickEnabled:, b1.doubleClickEnabled ); } ]] /mx:Script mx:HBox mx:Label id=l1 text=ClickMe doubleClickEnabled=true click=trace( 'Label Click' ) doubleClick=trace( 'Label DoubleClick' )/ mx:Button id=b1 label=ClickMe doubleClickEnabled=true click=trace( 'Button Click' ) doubleClick=trace( 'Button DoubleClick' )/ /mx:HBox /mx:Application Creo Inc., a subsidiary of Kodak Tobias Patton | Software Developer | Tel: +1.604.451.2700 ext: 5148 | mailto:[EMAIL PROTECTED] | http://www.creo.com --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- -Fight back spam! Download the Blue Frog.http://www.bluesecurity.com/register/s?user=c2FjaGluLmRoYXJtYXB1cmlrYXI4NjI%3D -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.