[flexcoders] Is there anywway i can get the axis labels?
Hi all, Is there anywway i can get the axis labels seprately. i tried with getLabelEstimate() but it gives me all the labels where as in the chart it shows only few labels. i want the labels that are shown in the chart. I have to show them seprately . Looking for earth-friendly autos? Browse Top Cars by Green Rating at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/
Re: [flexcoders] Need primer on Events, from the List Gurus -
Hi Mike, one point of MVC is, that the model is not aware of any views. If you want to trigger some view function from the Model, you have to set some property of the model and bind the view to it. One nice way to do this, is AC's Observe tag. See http://weblogs.macromedia.com/auhlmann/archives/2006/09/using_binding_s.cfm#more for the details. Cheers, Ralf. On 1/13/07, Mike Anderson [EMAIL PROTECTED] wrote: With what you said, it pretty much backs up what I already knew to be true. When it comes to the basics, I am pretty well-versed with Data Binding - and of course, writing some pretty extensive Cairngorm-based RIA, I have a pretty good handle on the flow of things. I guess what is making me second guess what I know about Events, is the fact that I can't get this damn thing to work. I am scratching my head on this, and can't figure out what I am missing. Take this simple example: Main Application View1 View2 In View1, I have a basic Panel with a DataGrid. I have a Bindable public var (myArrayCollection), and assigned it as the dataSource for my Grid. In my AS Code, I created a var referencing my ModelLocater. Then I set local myArrayCollection var equal to model.myArrayCollection. This takes care of all the var declarations, as well as properly dataBinding it to the Model. Everything is great - data updates perfect, yada yada yada... Now I want to add 1 more piece of functionality - broadcast an event, to make my Grid scroll to the top, after a new record is added. Sounds easy enough... Here is what I added to make this happen: 1) Added an eventListener to View1, that listens for scrollGrid - which gets attached to the appropriate function (scrolling the Grid to the very top). 2) Added extra logic to my Cairngorm getDataCommand Command - which I put in the onResult Event Function. The code to call the function (because the function resides in my ModelLocater) is model.fireOffScrollEvent. The function simply dispatches a generic Event (with the Event String being scrollGrid). Now here is where I get confused: Other than the simple variable reference in View1 to ModelLocater, there is nothing else tying these 2 Classes together. I say Classes, because Controls in essence are simply Classes, in addition to the fact that ModelLocater really doesn't extend anything. So now, when I dispatch the scrollGrid Event from inside of ModelLocater, nothing happens on View1. See, this is where my understanding of Events, falls terribly short. See, in the times like this, I am not sure how the Application propagates these Events. When an Event gets dispatched, does Flex systematically broadcast it to each and every component?? What confuses me too, is all the scoping stuff - which was a really big deal in Flash. In Flex, you don't use any dot-notation to specify where the Event should go (like Application.application.View1.myDataGrid) - it just goes somewhere out there - like a black hole some place. When they mention bubbling, I thought this meant just that - Since this isn't working for me, I am obviously doing something wrong. So the question is, what extra code must I add, to make the ModelLocater aware of View1 and vice versa? Thanks in advance for your time on this - Mike -Original Message- From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of Brian Sent: Friday, January 12, 2007 11:10 PM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Need primer on Events, from the List Gurus - Maybe the following will help. Data Binding is really just a short hand version of an event broadcast, and listener and function to be executed. Take the example: [Bindable] private var lastname:String; mx:Text text={lastname}/ mx:Button click=lastname='My last Name'/ -- When the button is click the variable lastname value is updated to 'my last name'. Since lastname is Bindable, it dispatches an event (broadcaster) that the value has changed. Any control listening to the change event, receives the event and runs a function to updates the property text to the new value. This of course, invalidates the display which then the display gets updated. The Bindable metatag creates a dispatch change event (Broadcaster) The {lastname} creates a listener for the text control to listen to the lastname change event A function is created that updates the property, text in this case, to the new value of last name. I am sure it is more complicated than this (A function can also be Bindable, how does the function know when it changes value?). You can implement data binding using the event model. It might be a good exercise, but you would not want to do it this way in an application. I know the above helped me greatly in understanding the events model. I hope it helps. To answer your question But what about the times, where I won't know for sure beforehand, which component I will be
Re: [flexcoders] Todays date without the Time
I would simply set it to zero using the setters for hour, minute, second, millisecond Cheers, Ralf. On 1/12/07, boy_trike [EMAIL PROTECTED] wrote: using: var X : Date = new Date(); returns the current date and time. What is the easiest way to just get the date (with the time set to midnight). thanks Bruce -- Ralf Bokelberg [EMAIL PROTECTED] Flex Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35
Re: [flexcoders] Todays date without the Time
see setHours method of a date object. It should be something link that date.setHours(0,0,0,0); regards, valy - Original Message From: Ralf Bokelberg [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, January 13, 2007 6:21:22 AM Subject: Re: [flexcoders] Todays date without the Time I would simply set it to zero using the setters for hour, minute, second, millisecond Cheers, Ralf. On 1/12/07, boy_trike [EMAIL PROTECTED] com wrote: using: var X : Date = new Date(); returns the current date and time. What is the easiest way to just get the date (with the time set to midnight). thanks Bruce -- Ralf Bokelberg ralf.bokelberg@ gmail.com Flex Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35 !-- #ygrp-mlmsg {font-size:13px;font-family:arial,helvetica,clean,sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial,helvetica,clean,sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family:Georgia; } #ygrp-text p{ margin:0 0 1em 0; } #ygrp-tpmsgs{ font-family:Arial; clear:both; } #ygrp-vitnav{ padding-top:10px; font-family:Verdana; font-size:77%; margin:0; } #ygrp-vitnav a{ padding:0 1px; } #ygrp-actbar{ clear:both; margin:25px 0; white-space:nowrap; color:#666; text-align:right; } #ygrp-actbar .left{ float:left; white-space:nowrap; } .bld{font-weight:bold;} #ygrp-grft{ font-family:Verdana; font-size:77%; padding:15px 0; } #ygrp-ft{ font-family:verdana; font-size:77%; border-top:1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom:10px; } #ygrp-vital{ background-color:#e0ecee; margin-bottom:20px; padding:2px 0 8px 8px; } #ygrp-vital #vithd{ font-size:77%; font-family:Verdana; font-weight:bold; color:#333; text-transform:uppercase; } #ygrp-vital ul{ padding:0; margin:2px 0; } #ygrp-vital ul li{ list-style-type:none; clear:both; border:1px solid #e0ecee; } #ygrp-vital ul li .ct{ font-weight:bold; color:#ff7900; float:right; width:2em; text-align:right; padding-right:.5em; } #ygrp-vital ul li .cat{ font-weight:bold; } #ygrp-vital a { text-decoration:none; } #ygrp-vital a:hover{ text-decoration:underline; } #ygrp-sponsor #hd{ color:#999; font-size:77%; } #ygrp-sponsor #ov{ padding:6px 13px; background-color:#e0ecee; margin-bottom:20px; } #ygrp-sponsor #ov ul{ padding:0 0 0 8px; margin:0; } #ygrp-sponsor #ov li{ list-style-type:square; padding:6px 0; font-size:77%; } #ygrp-sponsor #ov li a{ text-decoration:none; font-size:130%; } #ygrp-sponsor #nc { background-color:#eee; margin-bottom:20px; padding:0 8px; } #ygrp-sponsor .ad{ padding:8px 0; } #ygrp-sponsor .ad #hd1{ font-family:Arial; font-weight:bold; color:#628c2a; font-size:100%; line-height:122%; } #ygrp-sponsor .ad a{ text-decoration:none; } #ygrp-sponsor .ad a:hover{ text-decoration:underline; } #ygrp-sponsor .ad p{ margin:0; } o {font-size:0;} .MsoNormal { margin:0 0 0 0; } #ygrp-text tt{ font-size:120%; } blockquote{margin:0 0 0 4px;} .replbq {margin:4;} -- Need Mail bonding? Go to the Yahoo! Mail QA for great tips from Yahoo! Answers users. http://answers.yahoo.com/dir/?link=listsid=396546091
[flexcoders] More classes mean bigger SWF file ?
Hi All, I am learning flex and was trying the RemoteObject to interact with backend Java layer. I am creating ActionScript counterparts for all my (DAO)Java Beans and letting the flex do the serialization/deserialization. The objects being returned are all typed. Now as I understand, if I don't have typed return types from my methods in the backend java layer and I get Object as Associate Arrays in the client (flex) side. Since I can access the fields of this object using the associative array syntax object.fieldname which is the same if I have had an actually Typed object. WHat is the advantage does returning typed objects give ? One I can think of is knowing any invalid field access at compile time. Is there any other advantage? Isn't adding many DAOs in flex side would mean increase in SWF file size ? Thanks
Re: [flexcoders] Webservices request serialization issues.
What java webservice technology are you using? We've had issues with weblogic webservices not serializing or deserializing base class proprerties on the java side, we've also had some fun with apache's axis, have you confirmed the java side is well tested before trying to consume those services from flex ? Grant - Original Message - From: Dima Gutzeit [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: 1/12/07 10:01 PM Subject: [flexcoders] Webservices request serialization issues. Hi, I am using Flex 2.0.1 based application to communicate with web services written in Java (JAXWS). System should send requests using complex objects with nested structure and it does it ok. The problem appears when I have inheritance in the object graph. I have base class X , two derived classes, Y and Z, and two more YA and ZA. x - y - ya x - z - za X contains common fields such as ID and NAME. Object that I send contains reference to the base class X, but the instance of the objects is YA or ZA. When the request is being sent, I can see only the common properties taken from X, and none of the impl specific fields, although wsdl/schema defines those. When I change the reference type to Y or Z I get the same behavior, so the only way is to define reference to YA and ZA directly, which is not a nice way to go. Now the funny part that the situation is being solved if I move the common fields from x to y and z (duplicate the fields), and leave the X class empty !!! But this approach stops working if I use array of objects, and not only one. Can anyone shed some light of the serialization logic in case of inheritance? One more thing, what is the way Flex deals with inheritance when reference is not the final impl, but to the base class ??? Other WS entities would use techniques such as xsi:type definitions in the dispatched XML ... For now I am solving it by adding field to each derived class, with the actual class name, catch it on the server side, and add xsi:type manually, but this way is not the one I would like to stick with Thanks in advance. Regards, Dima Gutzeit.
[flexcoders] Adding Dynamic Gifs
Hi All, I am implementing an application in which I have a requirement to dynamically add animated gif in the Panel. I read about the IFrame approach but in my case the number of animated gif is only known at runtime once a selection is made. What is the best way to achieve this ? Thanks
[flexcoders] Re: Filters with DataGrid - Excel
Sanjay To get at the authorsDataProvider - use parentDocument.authorsDataProvider Martin --- In flexcoders@yahoogroups.com, phipzkillah [EMAIL PROTECTED] wrote: Sanjay, Did you have any luck converting the DG Header Filter cell renderer to Flex 2.0? These are the cons that were posted with the code snippet: CONS 1) you must maintain the same dataProvider. 2) sorting is no good. you might want to re-sort after a filter is done (but providing events and what not are still something I need to provide, probable a modelChanged event utilizing the eventName 'filter' There is still a lot to do for this renderer to make it more usable, but I figure I've gotten everyone to a dropping off point it shouldn't be too hard. As I progress with this I'll post more to this thread # I'm not sure exactly what you are trying to do. Do you just simply want a combo-box that you select a field in the list and have it sort the datagrid? If so I believe you need to use an ArrayList collection for your dataprovider. The link that I gave you earlier seems like it would be the best for filtering a datagrid as you would be able to filter on each field/column by clicking on the header and selecting an item - which is exactly what Excel does. If you were able to convert that datagrid header filter cell renderer to Flex 2.0 can you please post the source up here? -Phil --- In flexcoders@yahoogroups.com, sanjaypmg sanjaypmg@ wrote: Hi, I have tried it but facing a problem when I try to access DataCollection from another MXML testCombo.mxml. Please Suggest::: See the following Code: filterTest.mxml ?xml version=1.0 ? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=../* mx:Script ![CDATA[ import mx.collections.ArrayCollection; import mx.core.ClassFactory; public var object2:Object = new Object(); public var object:Object = new Object(); [Bindable] [Bindable] public var authorsDataProvider : ArrayCollection = new ArrayCollection( [ { Country: USA, Gold: 35, Status:Active, URL:http://www.google.com; }, { Country: China, Gold: 32, Status:Deactive,URL:http://www.yahoo.com}, { Country: Russia, Gold: 27,Status:Deactive, URL:http://www.hotmail.com; }, { Country: India, Gold: 12, Status:Active,URL:http://www.gmail.com}, {Country: Russia, Gold: 27, Status:Deleted,URL:http://www.hotmail.com; }, {Country: Russia, Gold: 27, Status:Deleted,URL:http://www.hotmail.com; } ]); ]] /mx:Script mx:Panel title=Header Filter width=100% height=100% mx:DataGrid id=grid dataProvider={authorsDataProvider} width=100% height=100% sortableColumns=false mx:columns mx:Array mx:DataGridColumn width=300 headerText=Country dataField=Country / mx:DataGridColumn width=300 headerText=Value dataField=Gold/ mx:DataGridColumn width=300 headerText=Status dataField=Status headerRenderer=testCombo/ mx:DataGridColumn width=300 headerText=URL dataField=URL/ /mx:Array /mx:columns /mx:DataGrid /mx:Panel /mx:Application testCombo.mxml: ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; mx:Label text=Sale Price!/ mx:ComboBox id=cboAuthorsStatusFilter dataProvider={authorsStatusArray} change=filterAuthorsGrid(); !-- dataProvider={_parent._parent.gridData}-- mx:Script ![CDATA[ import mx.controls.Alert; import mx.collections.*; [Bindable] public var authorsArray:Array = [All, Active, Deactive, Deleted]; [Bindable] public var authorsStatusArray : Array = populateAuthorsStatusArray(authorsArray); public function populateAuthorsStatusArray (authorsArray:Array):Array { //Alert.show (authorsArray: +authorsArray.toString()) var statusArrayHashMap : Object = new Object(); var statusArray : Array = new Array; var n:int = authorsArray.length; for (var i:int = 0; i n; i++) { if (statusArrayHashMap [authorsArray] == undefined) { statusArrayHashMap
[flexcoders] Re: Export FLEX page to PDF
Hi Grant, What you can do is use the BitMapData class to capture an image of any part of a Flex application and encode into a PNG. Then send that data to your server and write it to PDF. Simon --- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have a requirement right now to generate flex charting components to a pdf file, it looks like I'm going to have to use one of the tools that can hit a url and then write a image file from the browser and then convert that to a pdf (all server side) which is a bit of a pain. let me know what you find, I'd love to see something from mm. Grant - Original Message - From: Kevin [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: 1/12/07 8:47 PM Subject: Re: [flexcoders] Export FLEX page to PDF I struggled (and am still struggling) with this very topic while designing Flash applications and ultimately bought a component for Flash called blazepdf (http://blazepdf.com). It can't do everything, but it allowed me to dynamically create reports which could be printed or sent as PDF data to wherever you desire (attach to email or stream to desktop) There are many limitation to this, some of which come from the limitations within Flash, but I was able to use it pretty successfully to get what I needed AND have created thousands of pages of reports with this. (If you need help using it, let me know.) You could also use a scripting language like PHP to construct pdf's very easily however, the advantage to blazepdf if that it allows the user to preview what you build and can act as a print preview and PDF creator all-in-one (thank you greg!) My biggest questions which I have posted to the list (but not gotten any answer to) is whether it is possible to use Flash to design a mini SWF Print Module AND then load it into Flex when I need it to handle my printing PDF creation. I am going to be trying this soon, so I will let you know if I can get it to work. I am pretty sure the blazepdf component uses AS2 so I don't know if that will pose problems?? I have also approached greg (the creator of blazepdf) a number of times to see if I could help build his component into a Flex component. I wouldn't be too hard to replicate the interface in Flex, and then port the AS2 to AS3, but I haven't seen the code so I don't know for certain the level of difficulty. Unfortunately, I haven't heard from greg either. If FlexPaper could output to PDF that could be a great solutions as well. I know you can go PDF to SWF, but it seems most products don't convert the other way. Ultimately (if anyone at Adobe is listening) my wish list is the following: 1. Create a similar blaze PDF or FlashPaper like component for printing print preview (which can output contents to a printer as well as PDF). AND 2. Create a better print class which can control the user's print window more than is possible now. Flex is great, FlashPaper is great, and PDF's are needed (and the standard in my business) . The same company owns them all. It should be easy right? I would think that printing report creation are of major importance to many RIA developers. I am happy to help with coding a Flex solution - Kevin On Jan 12, 2007, at 1:38 PM, Navert, Bruno ((IT)) wrote: Hi flexcoders, I'm evaluating FLEX as a solution to our reporting needs. One of our requirements is the ability to build static PDF reports. I would like to know whether it is possible to export the contents of a FLEX page into a PDF document ? A quick search yielded no promising results, so that's why I'm asking on this mailing list. If it is possible, can this be done server-side (without user intervention) ? Or must it be in a browser window ? thanks, Bruno NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.
[flexcoders] Tree.getDisplayIndex()
It was very easy to retrieve the location of the of tree displayed index in Flash 8 by using Tree.getDisplayIndex(). I do not find that feature from Flex 2.0.1 where/How could I do it in Flex 2.0.1. any example is welcome. Thanks
[flexcoders] Re: Icons in menu - not working
Just curious if anyone has encountered this problem in the context of a component. In other words doing the @embed in the application works fine (the menuitem displays the icon) but putting the embed in the component causes it to not display an icon. --- In flexcoders@yahoogroups.com, Deepa Subramaniam [EMAIL PROTECTED] wrote: Just to be clear, this is not a bug. This is just a fact of life since we're using some sort of indirection of specifying an icon attribute in the dataProvider and then using an iconField property to look up that reference. So, in cases like that the embedded asset needs to not be a static variable. Other cases without this indirection, like a Button icon, will work correctly. -deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Deepa Subramaniam Sent: Wednesday, June 28, 2006 4:59 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Icons in menu - not working Yup, you are correct. I just talked to Roger about this. What is happening is that MenuBar checks to see if an iconField is set. In your case it is, and the MenuBar looks to see if a Class, exitOn, exists with that name in the application or a property on the document with that same name exists. It does, however you cannot access a static var off an instance, only off the class. So, the lookup in the MenuBar code fails. Your workaround of making the embedded asset var non-staic is correct. HTH, deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kelly Birr Sent: Wednesday, June 28, 2006 4:48 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Icons in menu - not working I found my problem. It appears that the menu cannot bind to static vars for images. I solved the problem by specifying { public const myMenuIcon:Class = GlobalIcons.MyCoolIcon; } where GlobalIcons.MyCoolIcon is declared exactly as below. Then pout the local name myMenuIcon in the @icon field of the xml. - Kelly From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kelly Birr Sent: Wednesday, June 28, 2006 4:26 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Icons in menu - not working I've been racking my brain trying to get icons in the menu bar. I think I'm doing exactly what the docs say but I cannot get any icon to render. The label and actions work perfectly but the icon does not show up. The icon is embedding properly as I can see it in the icon property of a button in the same file. I've also tried putting the path to the icon file in the xml, no joy. My Menu XML Is: menu menuitem label=File menuitem label=Open data=File!Open / menuitem type=separator / menuitem label=Exit data=File!Exit icon=exitOn / /menuitem /menu My MXML is: mx:Script ![CDATA[ [Embed(source=images/icons/iconExitOn.gif)] public static const exitOn:Class; ]] /mx:Script mx:MenuBar id=menu width=100% x=0 y=0 height=27 dataProvider={menuXml} showRoot=false cornerRadius=3 itemClick=menuHandler(event) labelField=@label iconField=@icon / I cannot find any samples anywhere with icons in the menu, Is this still supported? Can anyone tell me what i'm doing wrong? I am using Flex 2.0 RTM - Kelly
[flexcoders] ToggleButtonBar
Hi All: I have a ToggleButtonBar with 8 buttons. I am trying to get the corners of the Bottom Left of the first button Bottom Right of the last button to NOT be rounded. I have tried focusRoundedCorners=tl tr in the MXML code and focusRoundedCorners=tl in the firstButtonStyleName and focusRoundedCorners=tr in the lastButtonStyleName. Nothing works. What am I missing? Or is this bug? Any help will be greatly appreciated. Thanks, Jack
[flexcoders] Re: How do you get the color changed for a Radio Button Label for mouseOnRollOve
Check the help files but I believe it is text-rollover. Derrick
[flexcoders] Re: Dispatch and Listen for events?
Thanks --- In flexcoders@yahoogroups.com, Ralf Bokelberg [EMAIL PROTECTED] wrote: Every event has a type property. You need to set it using super( myType ); Cheers, Ralf. On 1/13/07, malik_robinson [EMAIL PROTECTED] wrote: Hi, I am not using Cairngorm or anything yet, but trying to learn to build some of this on my own through tutorials, books, etc. I am trying to build a basic login and I created a custom component called LoginPanel.mxml, and created a LoginEvent.as. I call LoginPanel.mxml in my Main application file by doing: comps:LoginPanel / My goal is to let the user click the login button, create a loginEvent then dispatch the event, finally have some event listener on the other end receive notification then make a call to my Remote Object in my Services.mxmlfile. I think once I get to the remote Object call I can fiddle my way from there. I am confused on how and where to tie my event listener in and once the listener receives notification, the code that follows. *I have a private function in LoginPanel.mxml (my login form) called doLogin(). Code is shown below:* private function doLogin():void { var loginEvent:LoginEvent = new LoginEvent( username.text, password.text); this.dispatchEvent(loginEvent); } } *My LoginEvent.as code is here:* package com.adobe.events { import flash.events.Event; import flash.events.EventDispatcher; public class LoginEvent extends Event{ public var username : String; public var password : String; // constructor function public function LoginEvent( username:String, password:String ) { this.username = username; this.password = password; } } } Is this correct? Thanks in advance for any assistance... -- Ralf Bokelberg [EMAIL PROTECTED] Flex Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35
Re: [flexcoders] Svn Flex
thanks for the blog tip. QUESTION: how do I unlink my html- templates folder from SVN version control. I acidentally set this up when I originally committed the files to my SVN. Is there a way to unlink a directory from future commits? I can't seem to find where I would do this. thanks, Kevin On Jan 9, 2007, at 12:24 PM, Chris Hill wrote: I just blogged this from our internal wiki: http://ubergeek.tv/article.php?pid=127 Hope this helps, C Lieven Cardoen wrote: Hi, When compiling a Flex project, Flex copies all files to bin folder, including hidden .svn folders. As a result, Tortoise goes crazy… Anyway to resolve this? Thx, Lieven Cardoen *Lieven Cardoen **Application developer ** **indie**group** **interactive digital experience** **engelse wandeling 2 k18 b8500 kortrijk *** -- 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/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] MDI, Cairngorm TitleWindow
I think that singleton models won't work for some forms that user can load n times... I'm not sure that in that instance you need a Singleton, if you want each form to have it's own instance of that object? On 12/01/07, Juan Carlos M. [EMAIL PROTECTED] wrote: Context: I am trying to simulate a MDI application with TitleWindow containers (poor's man MDI :P ) loading diferent forms compiled into modules (flex 2.0.1)... [server side: java, openamf, spring, hibernate] I'am a newbie in flex 2.0.1 and Cairngorm 2.1 ... and have a couple of questions... Questions - How TitleWindow can be extended to support more buttons? (ie. help, minimize, custom tools, ...) (something like this: http://www.flex2components.com/screenshots/taskpanefx/examples/WorkSpaceApplicationExplorer.html ) - Do singleton commands and models in Cairngorm could work in a MDI (multiple document interface)? (I think that singleton models won't work for some forms that user can load n times...) [multiple instances of models and callbacks in events could be a solution?] thanks for your help -- http://danny-t.co.uk
[flexcoders] Custom Control advice
Hi, I want to write a custom control but Im not that familiar with Flex. What I need is a chat area, where I can paint my text, smileys etc. Im a bit confused by Flex's design, and so dont know what controls to inherit from. Im thinking I should derive from UIComponent. But then how to I control the painting of it? It seems to have no event which gets called when Flash wants to repaint the control. I cant simply paint it once and leave it at that, because it will get obscured sometimes, and wont repaint unless I tell it to. Any advice please? Maybe I should be deriving from a different class which exposes a paint event similar to Win32 programming. Thanks
[flexcoders] dragging a repeater item
Dear friends, i am new to Flex, and here is a problem i am struggling with: mx:Canvas id=map_target dragEnter=doDragEnter(event, 'destinations') mx:Repeater dataProvider={destination_coll} id=map_locations mx:Image x={map_locations.currentItem.x_coord} y={map_locations.currentItem.y_coord} width=100 height=100 toolTip={map_locations.currentItem.destination_name} source={map_locations.currentItem.thumbnail} mouseDown=dragIt(currentImageSource,'my data here', event, 'myFormat') / /mx:Repeater /mx:Canvas Only thing i want is to drag an image made by repeater with coordinates driven from service and drop it to some other location on the same canvas. Can anyone help? Thanks in advance, Mickael
Re: [flexcoders] Webservices request serialization issues.
I am using JAXWS webservices framework. I am positive that the java side is ok, since I can see the produced schema and WSDL and I see the contents of the requests Flex is dispatching. Do you know by any chance how Flex SOAP impl. handles inheritance ? (extended types in schema). I do not see it supports the xsi:type approach, and I do not see that it uses any other way, so basically by looking on the SOAP requests produced by Flex you can not tell what the implementation of a class is being sent, if the reference is to a base class. Furthermore I think that Flex has a bug, and it sends the contents of a derived object ONLY if the base class has not properties at all. Regards, Dima Gutzeit. [EMAIL PROTECTED] wrote: What java webservice technology are you using? We've had issues with weblogic webservices not serializing or deserializing base class proprerties on the java side, we've also had some fun with apache's axis, have you confirmed the java side is well tested before trying to consume those services from flex ? Grant - Original Message - From: Dima Gutzeit [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: 1/12/07 10:01 PM Subject: [flexcoders] Webservices request serialization issues. Hi, I am using Flex 2.0.1 based application to communicate with web services written in Java (JAXWS). System should send requests using complex objects with nested structure and it does it ok. The problem appears when I have inheritance in the object graph. I have base class X , two derived classes, Y and Z, and two more YA and ZA. x - y - ya x - z - za X contains common fields such as ID and NAME. Object that I send contains reference to the base class X, but the instance of the objects is YA or ZA. When the request is being sent, I can see only the common properties taken from X, and none of the impl specific fields, although wsdl/schema defines those. When I change the reference type to Y or Z I get the same behavior, so the only way is to define reference to YA and ZA directly, which is not a nice way to go. Now the funny part that the situation is being solved if I move the common fields from x to y and z (duplicate the fields), and leave the X class empty !!! But this approach stops working if I use array of objects, and not only one. Can anyone shed some light of the serialization logic in case of inheritance? One more thing, what is the way Flex deals with inheritance when reference is not the final impl, but to the base class ??? Other WS entities would use techniques such as xsi:type definitions in the dispatched XML ... For now I am solving it by adding field to each derived class, with the actual class name, catch it on the server side, and add xsi:type manually, but this way is not the one I would like to stick with Thanks in advance. Regards, Dima Gutzeit.
[flexcoders] simple ArrayCollection question
I can't seem too create an ArrayCollection from and array. I have data being returned (type object) which I can successfully type into an array, but when I try to then change it to an ArrayCollection it fails with the follow error. What am I doing wrong? public function result(data:Object):void { var myList:ArrayCollection = ArrayCollection(data as Array); } ERROR: TypeError: Type Coercion failed: cannot convert [EMAIL PROTECTED] to mx.collections.ArrayCollection. this works fine, public function result(data:Object):void { var myList:Array = data as Array; } this is what is being sent to result() var sendList: Object = ['test 0','test 1','test 2','test 3','test 4','test 5','test 6']; responder.result( sendList ); . Thanks much, - Kevin
[flexcoders] Re: making an entire hbox item linkable?
yeah, ive seen that -- its not quite what i need...i need to make the entire thing clickableit seems the history manager is just for enabling the browsers back and forward buttons to work...again, i just need to make the entire Hbox clickable am i missing something? --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Thursday 11 January 2007 22:29, kasey.mccurdy wrote: any help is much appreciated Have you seen the HistoryManager ? -- Tom Chiverton Helping to centrally synthesize unique e-tailers This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Cairngorm VO question
I am been trying to create VO's that extends ArrayCollection and then use those in my modelLocator to maintain my VO lists. The reason being that I presume I could add functionality to these extended classes down the road without have to retype variables throughout my application. For example, I would create: BookVO BookListVO BookListVO would just extend the ArrayCollection class and hold the list of BookVO's. And of course in my ModelLocator I would type to BookListVO instead of ArrayCollection: public var bookList: BookListVO; However, I am having problems extending the ArrayCollection class properly which makes me wonder wether this is even a good idea. Is there a secret to extending the Array ArrayCollection classes? OR am I headed down the wrong path with my thinking. I also see many people using ICollectionView instead of ArrayCollection. Should I also implement ICollectionView in the BookListVO? I am little confused as to when to implement ICollectionView and when to just work with the ArrayCollection... the Cairngorm store 2.1 example uses both in the ML? -- public var products : ICollectionView; ... public var paymentValidators : ArrayCollection = new ArrayCollection(); -- thanks, Kevin
[flexcoders] Poker game with FDS
Hi all, What are the steps that come to your mind regarding building a Poker Game in FLEX using FDS? Tips, things to be carefull and consider, ideas, comments etc... Thanks, Alexander
[flexcoders] Getting Error: Event Type 'flash.event:event' is unavailable ?????
Hi, I am getting this error: Event Type 'flash.event:event' is unavailable I have this function in my Services.mxml file: private function loginUser_result( event:ResultEvent ) : void { dispatchEvent( new Event(userAuthenticated) ); } Then in my main MXML file I have: ds:SupportService id=svc userAuthenticated=mx.controls.Alert.show('Your are now Logged In'); / Any idea on why I may get this error? Thanks Malik
[flexcoders] Re: Getting Error: Event Type 'flash.event:event' is unavailable ?????
Hi, I guess a better question is when do I use : [Event(name=eventName)] as opposed to: [Event(name=eventName,type=flash.event.event)] (this gives me that error in my original post ) Thanks --- In flexcoders@yahoogroups.com, malik_robinson [EMAIL PROTECTED] wrote: Hi, I am getting this error: Event Type 'flash.event:event' is unavailable I have this function in my Services.mxml file: private function loginUser_result( event:ResultEvent ) : void { dispatchEvent( new Event(userAuthenticated) ); } Then in my main MXML file I have: ds:SupportService id=svc userAuthenticated=mx.controls.Alert.show('Your are now Logged In'); / Any idea on why I may get this error? Thanks Malik
Re: [flexcoders] simple ArrayCollection question
I solved my own problem! I had forgotten to include the 'new' keyword...it's getting late in NYC! code should read: public function result(data:Object):void { var myList:ArrayCollection = new ArrayCollection(data as Array); } - Kevin On Jan 13, 2007, at 7:15 PM, Kevin wrote: I can't seem too create an ArrayCollection from and array. I have data being returned (type object) which I can successfully type into an array, but when I try to then change it to an ArrayCollection it fails with the follow error. What am I doing wrong? public function result(data:Object):void { var myList:ArrayCollection = ArrayCollection(data as Array); } ERROR: TypeError: Type Coercion failed: cannot convert [EMAIL PROTECTED] to mx.collections.ArrayCollection. this works fine, public function result(data:Object):void { var myList:Array = data as Array; } this is what is being sent to result() var sendList: Object = ['test 0','test 1','test 2','test 3','test 4','test 5','test 6']; responder.result( sendList ); . Thanks much, - Kevin