RE: [flexcoders] applications that forget variables
Sorry, Im really busy right now and Ive spent way too much time on this one already. I cannot post you the code that had this problem, since you cannot run it anyway without the backend. But Ill try to write a piece of code to demonstrate the problem later after I get through this busy schedule I have right now. (And of course then I cannot reproduce it J ) But I had this problem earlier also (see below) .. Object deletion is just like in Java, we garbage collect once there are no more references to the object. So if the popup window has a reference to another model, deleting the popup window does not delete the model, it only deletes the reference. Now if the source object has also removed its reference, then you've now gotten rid of both references and the object is gone. I'd need to see more of an example to give you a better sense of where things might be going wrong. From your other posts it looks like you've gone down the route of creating copies which may be fine but also may be masking your problem. Matt -Original Message- From: Mika Kiljunen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 08, 2004 8:49 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Objects disappear Hi again J I noticed some weird behaviour with flex yesterday. Let's say I have a Model named myModel. myModel contains 'strings', but is an object array (created from xml). Next I have a popup window that has a model popModel. On creation popModel = myModel. Popup window binds strings from popModel to fields and labels etc. Popup window has 2 buttons, one to Cancel and one to DoOperation. If Cancel is pressed, popup window dies and gets popped up again. Everything works nicely. If DoOperation is pressed, popup window dies and operation is called (remote_object). Everything works nicely. Now: If I press first Cancel and then DoOperation AND DoOperation fails and popupwindow is displayed again ALL the text on the labels are gone. Closer look with the debugger shows that also the objects in the popModel that are binded on the popupwindow are gone (=undefined). Even further, all the objects (strings) on myModel object that are used with popupwindow are gone (all the other ones are there). Now this is weird. I believe that this is caused by the fact that object arrays are passed as a reference and popup window seems to destroy all the references in it when it dies and so it destroys the original objects used by it on the original object array (model). Is this correct and what would be a proper way to deal with this kind of behaviour with the popup windows? -Mika From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin Sent: 13. toukokuuta 2005 7:27 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] applications that forget variables Can I see code that demonstrates this problem? From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mika Kiljunen Sent: Thursday, May 12, 2005 6:50 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] applications that forget variables Hi, you seem to be having the same problem that I had earlier (on popup and binding ) and I faced it again yesterday. I have an array on my main as file that contains Value objects. I launch a popup window and the popup window sets its internal variable like this iMyArray = mx.core.Application.application.getArray(); Now this is used in a popup as a dataprovider for a combobox. Also the popup has a binding on the combobox like somevalue{myCombo.selectedItem.aValueField}/somevalue. These work nicely until I choose a value, close the popup and relaunch the popup to edit some data that was setup earlier. Now the aValueField in the ValueObject that is contained in the array is undefined (destroyed by flex). ValueObject is otherwise ok, only the field that was binded on the popup is undefined. I solved this by creating a copy of the array in the popup and using that (so that it does not reference the array on the main app - hence the original array will stay untouched). This way all works fine, but its a real bummer that I have to make a copy of the array (that is readonly!) so that flex wont destroy the original arrays objects field. I suspect, that the binding a popup seems to behave somewhat weird, because it really should not destroy the field on the object of an array that is defined on the main app when the popup/binding is destroyed. -Mika From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of [EMAIL PROTECTED] Sent: 12. toukokuuta 2005 16:21 To: flexcoders@yahoogroups.com Subject: [flexcoders] applications that forget variables Is there a limit to a scope of a variable if I store it in an array because I have done so in the past declared it public at the top of the mxml file yet at times it seems the computer forgets the value by
[flexcoders] Image auto resize problem
I've got this problem with loading of an image. Situation: - existing empty Image in mxml with height, width en maintainAspectRatio - setting image source in AS of een image bigger than the width and height. But waite it is resizing on screen !!! That's not what I want. I tried hiding image untill complete or resize event has occurred, but no result. Please help me!! haha sooo desperate 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] FAME with Flex ?
Hello, I'm trying to get rid of the crappy FlexBuilder (Indeed it is a good Graphical page editor, but obviously not an IDE), by using the FAME (Flashout + AS2EditorPlugin + MTASC + Eclipse)... Yet I have to configure MTASC classpath to use Macromedia core classes. But don't know what that path should be with Flex... Any idea ? Thanks a lot, r0main 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: Image auto resize problem
--- In flexcoders@yahoogroups.com, rockmoyosa [EMAIL PROTECTED] wrote: I've got this problem with loading of an image. Situation: - existing empty Image in mxml with height, width en maintainAspectRatio - setting image source in AS of een image bigger than the width and height. But waite it is resizing on screen !!! That's not what I want. I tried hiding image untill complete or resize event has occurred, but no result. Please help me!! haha sooo desperate Ok solved my problem by setting source first and delaying to set visibilty true. My image is resizing now but the space that is not used by the image is white, but it is displayed on a canvas with a backgroundImage. Zo while dissolving white space is shown. I know I can set background color it never the same as my backgroundImage. 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] Internal popups
Hello Jeff, Have you thought of using a View Stack with a Title Window? For a project we were working on, we first started with a Popup Window, but found performance to be a problem. We switched to a simulating a popup via a Title Window / View Stack and found it more performant and more usable. HTH, Allen Allen Manning, Technical Director Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff BeemanSent: 12 May 2005 17:56To: flexcoders@yahoogroups.comSubject: [flexcoders] Internal popups Ive been scouring the documentation, but I cant seem to find how to do something that should be quite simple. How do I create a popup window that doesnt reference an external file? All examples point to loading in an external mxml file, but I would like to simply create a panel that is hidden on startup and have it hide / unhide on different events. Is this possible? / Jeff Beeman* Digital Media Instructional Technologies* Arizona State University***/ Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Default Text Color?
We are coding in AS right? var num = 734012;trace(num.toString(16)); Greetz Erik From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of michael keirnanSent: donderdag 12 mei 2005 19:20To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Default Text Color? Matt Chotin wrote: Yep. I just use the calculator in Windows in scientific mode to help me out for stuff like this Jugh, why go through all that trouble?perl -e 'printf("%x\n", "734012")';) /mgk Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Flex Server Specification
Morning all, Could anyone advise on the required (or recommended) server specs for running Flex? There'll be nothing else running on the box and we're looking at a Linux server. I get the feeling that the info here[1] is over-simplifying things a bit... Cheers, Tim. [1] http://www.macromedia.com/software/flex/productinfo/systemreqs/ -- --- Badpen Tech - CF and web-tech: http://tech.badpen.com/ --- RAWNET LTD - independent digital media agency We are big, we are funny and we are clever! New site launched at http://www.rawnet.com/ --- This message may contain information which is legally privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any unauthorised disclosure, copying, distribution or use of this information is strictly prohibited. Such notification notwithstanding, any comments, opinions, information or conclusions expressed in this message are those of the originator, not of rawnet limited, unless otherwise explicitly and independently indicated by an authorised representative of rawnet limited. --- 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: FAME with Flex ?
Found a solution for FAME with Flex, no more FlexBuilder :-) I had to unzip flex/lib/frameworks/mx.swc, which is a zip file, then programmatically restructure 452 .asi files into there respective folders and renamed in a shorter fashion (just class name + .as)... And it works !! :-) Now I'll configure X-Men eclipse plugin and I will edit directly .mxml files from within Eclipse... AS2 Life's going to be lightweight, versionned, and easy ! romain --- In flexcoders@yahoogroups.com, r0main [EMAIL PROTECTED] wrote: Hello, I'm trying to get rid of the crappy FlexBuilder (Indeed it is a good Graphical page editor, but obviously not an IDE), by using the FAME (Flashout + AS2EditorPlugin + MTASC + Eclipse)... Yet I have to configure MTASC classpath to use Macromedia core classes. But don't know what that path should be with Flex... Any idea ? Thanks a lot, r0main 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] MediaDisplay, can it be resized on the fly?
On 5/13/05, temporal_illusion [EMAIL PROTECTED] wrote: I want to programatically resize a video display on the fly (ie have it grow when moused over), but I can't seem to get it to resize at all once it's been set. Set autoSize to true. 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] Image scaleWidth?
I want to know what the image width is after an scaling by setting the maintainAspectRatio = true; I want to resize image afterwards because it is stil occuping the same space. When the image is scaled by class Image 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: Image auto resize problem - premature happiness
--- In flexcoders@yahoogroups.com, rockmoyosa [EMAIL PROTECTED] wrote: I've got this problem with loading of an image. Situation: - existing empty Image in mxml with height, width en maintainAspectRatio - setting image source in AS of een image bigger than the width and height. But waite it is resizing on screen !!! That's not what I want. I tried hiding image untill complete or resize event has occurred, but no result. Please help me!! haha sooo desperate Nope stille got same Problem 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] ThemeColor in CellRenderers
On 5/12/05, JesterXL [EMAIL PROTECTED] wrote: How do I have controls used in a CellRenderer adopt the global themeColor? Do I have to do like: createClassObject(ComboBox, my_cb, getNextHighestDepth(), {styleName: owner}); That should work, although the styleName shouldn't be required. I verified that it works without styleName. Can you post a complete example? 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] Adding icon to panel?
On 5/12/05, Tracy Spratt [EMAIL PROTECTED] wrote: What if you put the Panel on a Canvas at 0,0, then put the image/icon wherever you want on top? Yeah I think that's the easiest, but it introduces a Canvas into the heirarchy. The next easiest it to simply create the icon as a child of the Panel-derived class and place it directly at 0,0. (It's not 0,0 strictly speaking, because you have to take the border and margins into account.) You also run into the issue that the icon covers part of the text, so the perfect solution is to shift the title text a little to the right. 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] Sending email from a Flex application
Title: Sending email from a Flex application Hi all, Is there an easy way to send email from a Flex application? Thanks, Jeroen. Jeroen De Vos Gemeentelijk Havenbedrijf Antwerpen C/ICT - AMARIS Deze e-mail en alle gekoppelde bestanden zijn officiele documenten van het Gemeentelijk Havenbedrijf Antwerpen en kunnen vertrouwelijke of persoonlijke informatie bevatten. Gelieve de afzender onmiddellijk via e-mail of telefonisch te verwittigen als u deze e-mail per vergissing heeft ontvangen en verwijder vervolgens de e-mail zonder deze te lezen, te reproduceren, te verspreiden of te ontsluiten naar derden. Het Gemeentelijk Havenbedrijf Antwerpen is op geen enkele manier verantwoordelijk voor fouten of onnauwkeurigheden in de inhoud van deze e-mail. Het Gemeentelijk Havenbedrijf Antwerpen kan niet aansprakelijk gesteld worden voor directe of indirecte schade, verlies of ongemak veroorzaakt als gevolg van een onnauwkeurigheid of fout in deze e-mail. English Translation: This e-mail and all attached files are official documents of Antwerp Port Authority and may contain confidential or personal information. If you have received this e-mail in error, you are asked to inform the sender by e-mail or telephone immediately, and to remove it from your system without reading or reproducing it or passing it on to other parties. Antwerp Port Authority is in no way responsible for any errors or inaccuracies in the contents of this e-mail, nor can it be held liable for any direct or indirect loss, damage or inconvenience arising from any such errors or inaccuracies.[GHA#Disclaimer] Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] How can I show validation error message with ActionScript progrmming?
On 5/12/05, michael keirnan [EMAIL PROTECTED] wrote: the errorString property of UIComponent causes the red borders and rollover error tip. errorString is set by the default validation listener when it gets errors. You can just bind to errorString. See this example: ?xml version=1.0 encoding=utf-8? !-- Simple example to demonstrate Number validator -- mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; backgroundColor=#FF mx:Model id=CheckModel Age{age.text}/Age /mx:Model mx:Panel title=Number Validator Panel backgroundColor=#0C8BF3 mx:VBox mx:Form mx:FormItem label=Entre Age between 18 and 50: color=#FF mx:TextInput id=age width=200 color=#00/ /mx:FormItem /mx:Form mx:Label text=*press enter to check validation. color=#FF/ /mx:VBox /mx:Panel mx:NumberValidator field=CheckModel.Age integerError=Enter Integer value minValue=18 maxValue=50 domain=int/ mx:Label text={age.errorString} / /mx:Application 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] Image scaleWidth?
On 5/13/05, rockmoyosa [EMAIL PROTECTED] wrote: I want to know what the image width is after an scaling by setting the maintainAspectRatio = true; If I understand correctly, you want to query the width of the image? What does the width property say? 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] Sending email from a Flex application
Is there an easy way to send email from a Flex application? Not yet. :) You'll have to write some email-sending code on the server side and call it from Flex. Writing something like this is fairly easy in Java (search Google for java mail). It seems that this seems to work also (a bit) mx.core.Application.getURL(mailto:...;); Need to add a body though. Jeroen. ___ Deze e-mail en alle gekoppelde bestanden zijn officiele documenten van het Gemeentelijk Havenbedrijf Antwerpen en kunnen vertrouwelijke of persoonlijke informatie bevatten. Gelieve de afzender onmiddellijk via e-mail of telefonisch te verwittigen als u deze e-mail per vergissing heeft ontvangen en verwijder vervolgens de e-mail zonder deze te lezen, te reproduceren, te verspreiden of te ontsluiten naar derden. Het Gemeentelijk Havenbedrijf Antwerpen is op geen enkele manier verantwoordelijk voor fouten of onnauwkeurigheden in de inhoud van deze e-mail. Het Gemeentelijk Havenbedrijf Antwerpen kan niet aansprakelijk gesteld worden voor directe of indirecte schade, verlies of ongemak veroorzaakt als gevolg van een onnauwkeurigheid of fout in deze e-mail. --- English Translation: This e-mail and all attached files are official documents of Antwerp Port Authority and may contain confidential or personal information. If you have received this e-mail in error, you are asked to inform the sender by e-mail or telephone immediately, and to remove it from your system without reading or reproducing it or passing it on to other parties. Antwerp Port Authority is in no way responsible for any errors or inaccuracies in the contents of this e-mail, nor can it be held liable for any direct or indirect loss, damage or inconvenience arising from any such errors or inaccuracies. [GHA#Disclaimer] 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] Default Text Color?
On 5/12/05, michael keirnan [EMAIL PROTECTED] wrote: Matt Chotin wrote: Yep. I just use the calculator in Windows in scientific mode to help me out for stuff like this J ugh, why go through all that trouble? perl -e 'printf(%x\n, 734012)' ;) Oh, no, that is so ugly! python -c 'print %x % 734012' ;) 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] Sending email from a Flex application
What about: getURL(mailto:[EMAIL PROTECTED] textbody=mail content); -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeroen De Vos Sent: Friday, May 13, 2005 3:55 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Sending email from a Flex application Is there an easy way to send email from a Flex application? Not yet. :) You'll have to write some email-sending code on the server side and call it from Flex. Writing something like this is fairly easy in Java (search Google for java mail). It seems that this seems to work also (a bit) mx.core.Application.getURL(mailto:...;); Need to add a body though. Jeroen. ___ Deze e-mail en alle gekoppelde bestanden zijn officiele documenten van het Gemeentelijk Havenbedrijf Antwerpen en kunnen vertrouwelijke of persoonlijke informatie bevatten. Gelieve de afzender onmiddellijk via e-mail of telefonisch te verwittigen als u deze e-mail per vergissing heeft ontvangen en verwijder vervolgens de e-mail zonder deze te lezen, te reproduceren, te verspreiden of te ontsluiten naar derden. Het Gemeentelijk Havenbedrijf Antwerpen is op geen enkele manier verantwoordelijk voor fouten of onnauwkeurigheden in de inhoud van deze e-mail. Het Gemeentelijk Havenbedrijf Antwerpen kan niet aansprakelijk gesteld worden voor directe of indirecte schade, verlies of ongemak veroorzaakt als gevolg van een onnauwkeurigheid of fout in deze e-mail. --- English Translation: This e-mail and all attached files are official documents of Antwerp Port Authority and may contain confidential or personal information. If you have received this e-mail in error, you are asked to inform the sender by e-mail or telephone immediately, and to remove it from your system without reading or reproducing it or passing it on to other parties. Antwerp Port Authority is in no way responsible for any errors or inaccuracies in the contents of this e-mail, nor can it be held liable for any direct or indirect loss, damage or inconvenience arising from any such errors or inaccuracies. [GHA#Disclaimer] Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] how to use a repeater question
THanks Matt, that worked great...and thanks for the answer to the last part about performance...no, thrust data isn't going to change (at least in the near future :-)), but I wanted to be able to use a query to provide the different labels from the DB so that they would be dynamic if needed... --- Matt Chotin [EMAIL PROTECTED] wrote: I think the repeater for this would be: mx:Repeater id=r dataProvider={thrustData} mx:CheckBox label={r.currentItem} / /mx:Repeater So it's pretty easy, though if thrustData isn't going to change I think it's more efficient code-wise to write it out by hand. Matt _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cnewroth55 Sent: Thursday, May 12, 2005 10:57 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] how to use a repeater question is it possible to use a repeater control to 'duplicate' a group of checkboxes? I have this text array i would like to have put into a group of checkboxes; ![CDATA[ var thrustData:Array = [All Reports, ASMT - Affordable Structures Mfg. Tech., ALE - Advanced Lean Efficient, ASC - Advanced Support Concepts, APS - Advanced Platform Systems, NCO - Netcentric Operations ]; ]] and would like for it to be the checkboxes label. is it faster to do a repeater or just make them up normally.. Craig Newroth Structures Technology - STL Executive Computing Support The Boeing Company _ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! http://docs.yahoo.com/info/terms/ Terms of Service. __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail 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] Development of components with AS
Hello, some questions :) 1: _measuredWidth _measuredHeight _measuredPreferredWidth _measuredPreferredHeight __width __height etc. Is there anywhere a list of these kind of properties that can be used with the development of a custom component in actionscript. I would be interested in knowing wich properties are available and what effect they have in the framework. 2: MyCustomComponent mx:TextArea / /MyCustomComponent The above piece of xml creates a child on the MyCustomComponent. Im wondering what code is used to determine wich childs must be created. If u extend container, either the container createChildren function or the View container function takes care of this creation. But how does it work? 3: In (for instance) the accordion class the visibility of childs is explicitly set with setVisible(false, true). This is not documented, but an importend part of the framework. Im wondering how many of these (for component development) usefull functions there exists. 4: mx.effects.EffectManager mx.core.UIObjectDescriptor mx.container.Box; mx.container.VBox; mx.container.HBox; These classes are not included in the FlexForFlash.zip file while they can be valuable to the development of good UI components. Does any1 know why? 5. Does any1 know how a Box determines the size of its children? I mean when u resize a child within a box, the positions of the other childs (and sometimes their sizes) are recalculated. How does this process exactly work. 6. In the documentation of the V2 architecture I miss the overview. I see a lot of examples of parts of the framework, but I don't see a list of goals connected to the theory of its implementation. It seems in the general documentation everything is ordered by feature and in component creation documentation all simple features are included and minimaly explained (think init, createChildren, measure, etc.). Im missing a structured view of how the framework is tied together. From concepts all the way down to parts of implementation code in components. For your information I have the following documents (I may have missed some importend ones): The Version 2 Component Architecture - An Overview http://www.ultrashock.com/tutorials/_sourcefiles/v2a.pdf.zip Flex Components Basics - Part1: Coding an Analog Clock http://www.macromedia.com/devnet/flex/articles/creating_comp_print.html Developing Flex Components and Themes in Flash Authoring http://download.macromedia.com/pub/documentation/en/flex/15/flex_compone nts_themes.pdf Stepping into the New Macromedia Flash MX 2004 Component Structure http://www.macromedia.com/devnet/mx/flash/articles/v2component_migration _print.html Building the FooterNav Component http://www.macromedia.com/devnet/mx/flash/articles/footer_component_prin t.html Building and Testing Components in Macromedia Flash MX 2004 http://www.macromedia.com/devnet/mx/flash/articles/buildtest_comp_print. html Exploring Version 2 of the Macromedia Flash MX 2004 Component Architecture http://www.macromedia.com/devnet/mx/flash/articles/component_architectur e_print.html Creating Components with Flash MX 2004 http://www.person13.com/articles/components/creatingcomponents.html Developing Components in Flash 2004 http://www.ultrashock.com/ff.htm?http://www.ultrashock.com/tutorials/fla shmx2004/components.php Greetz Erik 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] Internal popups
Example code ... You would also be able to dynamically change the content, size, poistion, etc of the popup. By passing a 'placement' value you can decide whether it opens on the right or below. ?xml version="1.0" encoding="utf-8"? mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" width="100%" height="100%" mx:Script ![CDATA[ function openPopup(placement) { popupx.visible = true; if (placement == "right") { popupx.y = caller.y; popupx.x = caller.x+caller.width; } else { popupx.x = caller.x; popupx.y = caller.y+caller.height; } } function closePopup(){ popupx.visible = false; } ]] /mx:Script mx:Canvas id="mainCanvas" width="100%" height="100%" mx:HBox id="main" width="100%" height="100%" mx:TextInput id="caller" text="Mouseover to open Popup" width="250" mouseOver="openPopup('bottom')" mouseOut="closePopup()" / /mx:HBox mx:HBox id="popupx" width="250" height="75" backgroundColor="#FF" visible="false" mx:Text text="Popup" color="#FF" fontWeight="bold" / /mx:HBox /mx:Canvas /mx:Application Jeff Beeman wrote: Thanks, all, for your help! Ill give this a shot and see if it can handle my needs. /** * Jeff Beeman **/ From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matthew Shirey Sent: Thursday, May 12, 2005 12:10 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Internal popups Yeah, you were just a little quicker than me getting that one posted. Mine is pretty much the same solution: ?xml version="1.0" encoding="utf-8"? mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" mx:Script ![CDATA[ function toggleVis(){ tw.visible = !tw.visible; } ]] /mx:Script mx:Canvas width="100%" height="100%" mx:VBox x="0" y="0" width="100%" height="100%" horizontalAlign="center" mx:Button click="toggleVis()" label="click me"/ /mx:VBox mx:TitleWindow x="100" y="0" id="tw" title="Some title" width="300" height="200" visible="false" mx:Label text="hi there"/ /mx:TitleWindow /mx:Canvas /mx:Application -- Matthew On 5/12/05, Sreejith Unnikrishnan [EMAIL PROTECTED] wrote: ok ... thats interesting .. Here's an idea ... you can try it ... mx:Application mx:Canvas mx:HBox // Your entire application goes here // /mx:HBox mx:HBox // The poup you need can go in here preferably in another Hbox hidden initially that takes x and y coordinates that you can pass either by mouse coordinates on Click// mx:HBox x="" y="" /mx:HBox /mx:Hbox /mx:Canvas mx:Application :-) -Original Message- From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Jeff Beeman Sent: Friday, May 13, 2005 12:18 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Internal popups Hmm still not what I'm looking for. I guess what I would like is for something like this (what the previous responder sent) to work: ?xml version="1.0" encoding="utf-8"? mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" mx:Button click="toggleVis()" label="click me"/ mx:TitleWindow id="tw" title="Some title" mx:Label text="hi there"/ /mx:TitleWindow mx:Script ![CDATA[ function toggleVis(){ tw.visible = !tw.visible; } ]] /mx:Script /mx:Application But I need the TitleWindow to behave not like a standard interface element (one that takes up space in the layout), but like a normal popup window, one that appears above the content at a specified location. It looks like using another MXML file is the way to go /** * Jeff Beeman **/ From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Matt Horn Sent: Thursday, May 12, 2005 11:41 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Internal popups Here's an example that uses createPopUp() to create a TextArea popup (no other file required): ?xml version="1.0"? mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml " mx:Script import mx.managers.PopUpManager; var app = mx.core.Application.application; var a = mx.controls.TextArea; var p:MovieClip; function createTextAreaPopup() { p = PopUpManager.createPopUp(app,a,false,{ width:200,height:150,text:'Pop goes the weasel and the weasel goes pop' }); } function destroyPopup() { p.deletePopUp(); } /mx:Script mx:VBox
RE: [flexcoders] Sending email from a Flex application
Works like a blast. Thanks all. Jeroen. -Oorspronkelijk bericht- Van: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Namens Abdul Qabiz Verzonden: vrijdag 13 mei 2005 12:35 Aan: flexcoders@yahoogroups.com Onderwerp: RE: [flexcoders] Sending email from a Flex application What about: getURL(mailto:[EMAIL PROTECTED] textbody=mail content); -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeroen De Vos Sent: Friday, May 13, 2005 3:55 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Sending email from a Flex application Is there an easy way to send email from a Flex application? Not yet. :) You'll have to write some email-sending code on the server side and call it from Flex. Writing something like this is fairly easy in Java (search Google for java mail). It seems that this seems to work also (a bit) mx.core.Application.getURL(mailto:...;); Need to add a body though. Jeroen. ___ Deze e-mail en alle gekoppelde bestanden zijn officiele documenten van het Gemeentelijk Havenbedrijf Antwerpen en kunnen vertrouwelijke of persoonlijke informatie bevatten. Gelieve de afzender onmiddellijk via e-mail of telefonisch te verwittigen als u deze e-mail per vergissing heeft ontvangen en verwijder vervolgens de e-mail zonder deze te lezen, te reproduceren, te verspreiden of te ontsluiten naar derden. Het Gemeentelijk Havenbedrijf Antwerpen is op geen enkele manier verantwoordelijk voor fouten of onnauwkeurigheden in de inhoud van deze e-mail. Het Gemeentelijk Havenbedrijf Antwerpen kan niet aansprakelijk gesteld worden voor directe of indirecte schade, verlies of ongemak veroorzaakt als gevolg van een onnauwkeurigheid of fout in deze e-mail. --- English Translation: This e-mail and all attached files are official documents of Antwerp Port Authority and may contain confidential or personal information. If you have received this e-mail in error, you are asked to inform the sender by e-mail or telephone immediately, and to remove it from your system without reading or reproducing it or passing it on to other parties. Antwerp Port Authority is in no way responsible for any errors or inaccuracies in the contents of this e-mail, nor can it be held liable for any direct or indirect loss, damage or inconvenience arising from any such errors or inaccuracies. [GHA#Disclaimer] Yahoo! Groups Links Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Flex Server Specification
Could anyone advise on the required (or recommended) server specs for running Flex? There'll be nothing else running on the box and we're looking at a Linux server. I get the feeling that the info here[1] is over-simplifying things a bit... [1] http://www.macromedia.com/software/flex/productinfo/systemreqs/ Following up on this: Macromedia specify that RedHat AS 2.1/3.0 must be used for Flex -- would there be any problem installing it on ES 3.0? Cheers, Tim. -- --- Badpen Tech - CF and web-tech: http://tech.badpen.com/ --- RAWNET LTD - independent digital media agency We are big, we are funny and we are clever! New site launched at http://www.rawnet.com/ --- This message may contain information which is legally privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any unauthorised disclosure, copying, distribution or use of this information is strictly prohibited. Such notification notwithstanding, any comments, opinions, information or conclusions expressed in this message are those of the originator, not of rawnet limited, unless otherwise explicitly and independently indicated by an authorised representative of rawnet limited. --- 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] media control question
First what a great forumnow the question, I have a media control to play my flv, but when i click on another 'button' to bring up a different component in my app, the media controller continues to play the flv file. I have tried in my AS code that controls my hide/show functions and I get this error... there is no property with the name 'playing'. and file doesn't even compile and run... Live docs say that 'playing' is indeed a property of MediaPlayback, (http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/js/html/wwhelp.htm?href=part2_de.htm) so why if I try to set that property to 'false' so that when it gets 'hidden' doesn't it shut off? the AS code is: (MediaPlayback is the ID of the component) function triggerHideEffectMediaPlayback() { // this triggers the hideEffect on MediaPlayback. MediaPlayback.visible = false; MediaPlayback.playing = false; } do I need to reference my controller via the componentID then the ID of the controler in the component and then the property? ie MediaPlayback.myMediaPlayBack.playing = 'false'; 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] Date formating application wide
Hi there, Is there a way to set default values other than English formating so each component uses it instead of setting formatters everywhere. Example, If I have several DateFields and DateChoosers I want to be able just to set in the main Application weekday names (or month names) and those components use it as default. If I set mx:DateField automaticly it should use my definitions of dayNames and monthNames without setting it directly in the component. Any Idea how I can achieve this? Thanks, João Fernandes 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] Detecting Browsers codepage and lang
Hi How can we detect users' system language and pass it to flex such that I can display the current language for the user. Wilfred 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: Setting percentage value by setValue: Solved
I have an interesting observation and the solution to the problem ... In the example posted below, I had the actual size of the image to be 1 px x 20 px. In normal circumstances, for eg ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; width=100% height=100% mx:Image width=100% height=100% source=@Embed ('something.gif') / /mx:Application the image would stretch to 100% of the screen (application). On the other hand, if I did the same in the cellRenderer, the 100% would actually mean 100% OF THE IMAGE SIZE - NOT THE CONTAINER. So when, I was passing 98%, the value being set was 98% of 1px and that is .98px (why blame anybody!). Thats the reason it was not working. My workaround is to create the image with atleast 100px width, so that even 1% would translate to 1px. Huh! Sree --- In flexcoders@yahoogroups.com, sreejithunni [EMAIL PROTECTED] wrote: Manish, I did try that ... For example, in the CellRenderer if I use a mx:Text it displays the % value but does not work for anything else such as mx:Image or mx:HBox. ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.macromedia.com/2003/mxml; width=100% xmlns=* mx:Script ![CDATA[ function setValue(str:String,obj:Object) { var theRank = str+%; rankBar.text = theRank; // This does not :-( // colorBar.width = theRank; } ]] /mx:Script mx:Text id=rankBar / mx:Image id=colorBar / /mx:Canvas --- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: On 5/12/05, sreejithunni [EMAIL PROTECTED] wrote: The str is a variable! that gets passed on to the cellRenderer from the dataprovider of the datagrid. If, the value passed on is x, I want to set the width of the image to x%. So why not do the following? colorBar.width = str + %; 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] Detecting Browsers codepage and lang
I can think of: Flash Player ActionScript API: System.capabilities.language:String Usage: mx:Script var lang:String; function detectLanguage() { lang = System.capabilities.language; } /mx:Script Description: Read-only property; indicates the language of the system on which the player is running. This property is specified as a lowercase two-letter language code from ISO 639-1. For Chinese, an additional uppercase two-letter country code subtag from ISO 3166 distinguishes between Simplified and Traditional Chinese. The languages themselves are named with the English tags. For example, fr specifies French. For more see following link: http://livedocs.macromedia.com/flash/mx2004/main_7_2/1737.html Does that help... -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Wilfred LEUNG Sent: Friday, May 13, 2005 5:29 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Detecting Browsers codepage and lang Hi How can we detect users' system language and pass it to flex such that I can display the current language for the user. Wilfred Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Date formating application wide
Here's an example how to achieve this taken from a current project. First, the default formats are setup by using the mx.formatters.DateBase class. Then, they are applied to the DateChooser class (so it works with the DateChooser and the DateField class) Beware, this technique uses the prototype property (AS 1.0 oop-style) of the DateChooser class which may not work in future versions of Flex. You could also assign a default date formatting function by setting DateChooser.prototype.dateFormatter to a function that returns a formatted Srting. import mx.formatters.DateBase; import mx.controls.DateChooser; DateBase.defaultDayNamesLong = [Sonntag, Montag, Dienstag, Mittwoch, Donnerstag, Freitag, Sonnabend]; DateBase.defaultDayNamesShort = [So, Mo, Di, Mi, Do, Fr, Sa]; DateBase.defaultMonthNamesLong = [Januar, Februar, März, April, Mai, Juni, Juli, August, September, Oktober, November, Dezember]; DateBase.defaultMonthNamesShort = [Jan, Feb, Mär, Apr, Mai, Jun, Jul, Aug, Sep, Okt, Nov, Dez]; // assign the above to the DateChooser prototype DateChooser.prototype.monthNames = DateBase.defaultMonthNamesLong; DateChooser.prototype.dayNames = DateBase.defaultDayNamesShort; DateChooser.prototype.firstDayOfWeek = 1; Dirk. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Behalf Of joao_m_fernandes Sent: Friday, May 13, 2005 1:54 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Date formating application wide Hi there, Is there a way to set default values other than English formating so each component uses it instead of setting formatters everywhere. Example, If I have several DateFields and DateChoosers I want to be able just to set in the main Application weekday names (or month names) and those components use it as default. If I set mx:DateField automaticly it should use my definitions of dayNames and monthNames without setting it directly in the component. Any Idea how I can achieve this? Thanks, João Fernandes Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Style Question
This is my css style for the grid which makes the header color and text the way I want it, but it also makes the grid text white, how can I get the actual data text to be another color? I tried using both the DataGridRow and DataGridColumn declarations but it doesn't effect it: DataGrid { alternating-row-colors:#FEFEFE,#EFF3F6; header-colors:#141C5A,#829194; border-style:solid; border-color:#CC; v-grid-line-color:#CC; roll-over-color:#D7E4E9; color:#FF; font-size:10px; font-weight:normal; text-indent:4; } Tried adding the following to my css file. DataGridColumn { color:#00; } DataGridRow { color:#00; } Rich On 5/12/05, Matt Chotin [EMAIL PROTECTED] wrote: headerStyle I think (Available on both DataGrid for all columns and DataGridColumn for individual). From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rich Tretola Sent: Thursday, May 12, 2005 6:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Style Question What is the css property for changing the color of the header text of a datagrid ? When I change the color property, it changes the header text but also changes the grid text color which is not what I need. I need the 2 text colors set differently. Rich Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 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: media control question - fixed THANKS Abdul
yes, that did help alot, and here is what i did...just added your pause() to the function call function triggerHideEffectMediaPlayback() { // this triggers the hideEffect on MediaPlayback. MediaPlayback.visible = false; this.MediaPlayback.myMediaPlayBack.pause(); } Craig --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: Hi playing is a read-only property of MediaPlayback component. You can use, MediaPlayback's play(..), pause() and stop() methods control the playback. I guess, when you bring another component, you can either pause the playback or stop the playback, all depends on your requirement. I also notice, you are using id similar to MediaPlayback, choose a different id for MediaPlayback component instance and refer the component using that id. MediaPlayback is not a static class. function triggerHideEffectMediaPlayback() { MediaPlaybackInstance.visible = false; MediaPlaybackInstance.pause(); //MediaPlaybackInstance.stop(); } Look at following link for MediaPlayback API: http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/MediaPlayback.h tml Does that help.. -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cnewroth55 Sent: Friday, May 13, 2005 5:10 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] media control question First what a great forumnow the question, I have a media control to play my flv, but when i click on another 'button' to bring up a different component in my app, the media controller continues to play the flv file. I have tried in my AS code that controls my hide/show functions and I get this error... there is no property with the name 'playing'. and file doesn't even compile and run... Live docs say that 'playing' is indeed a property of MediaPlayback, (http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/js/html/ wwhelp.htm?href=part2_de.htm) so why if I try to set that property to 'false' so that when it gets 'hidden' doesn't it shut off? the AS code is: (MediaPlayback is the ID of the component) function triggerHideEffectMediaPlayback() { // this triggers the hideEffect on MediaPlayback. MediaPlayback.visible = false; MediaPlayback.playing = false; } do I need to reference my controller via the componentID then the ID of the controler in the component and then the property? ie MediaPlayback.myMediaPlayBack.playing = 'false'; Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Date formating application wide
You can achieve this, if it's not already there. You can subclass DateField and DateChooser component and add this functionality. Following is quick and dirty example to : ##ExtendedDateFieldExample.mxml## mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns:local=* local:DateFieldEx / /mx:Application ##DateFieldEx.as## import mx.controls.DateField; class DateFieldEx extends DateField { //default German month names... private static var defaultMonthNames = [Januar,Februar,März,April,Mai,Juni,Juli,August,September, Oktober,November,Dezember] public function init():Void { super.init(); monthNames = defaultMonthNames; } } On similar lines you can think... Hope that helps.. -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of joao_m_fernandes Sent: Friday, May 13, 2005 5:24 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Date formating application wide Hi there, Is there a way to set default values other than English formating so each component uses it instead of setting formatters everywhere. Example, If I have several DateFields and DateChoosers I want to be able just to set in the main Application weekday names (or month names) and those components use it as default. If I set mx:DateField automaticly it should use my definitions of dayNames and monthNames without setting it directly in the component. Any Idea how I can achieve this? Thanks, João Fernandes Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Date formating application wide
Hi, Though this is the quickest possible way, but this kind of hacks might not be supported in future, as Dirk also said. But this indeed shows the power of prototype :) -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dirk Eismann Sent: Friday, May 13, 2005 6:14 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Date formating application wide Here's an example how to achieve this taken from a current project. First, the default formats are setup by using the mx.formatters.DateBase class. Then, they are applied to the DateChooser class (so it works with the DateChooser and the DateField class) Beware, this technique uses the prototype property (AS 1.0 oop-style) of the DateChooser class which may not work in future versions of Flex. You could also assign a default date formatting function by setting DateChooser.prototype.dateFormatter to a function that returns a formatted Srting. import mx.formatters.DateBase; import mx.controls.DateChooser; DateBase.defaultDayNamesLong = [Sonntag, Montag, Dienstag, Mittwoch, Donnerstag, Freitag, Sonnabend]; DateBase.defaultDayNamesShort = [So, Mo, Di, Mi, Do, Fr, Sa]; DateBase.defaultMonthNamesLong = [Januar, Februar, März, April, Mai, Juni, Juli, August, September, Oktober, November, Dezember]; DateBase.defaultMonthNamesShort = [Jan, Feb, Mär, Apr, Mai, Jun, Jul, Aug, Sep, Okt, Nov, Dez]; // assign the above to the DateChooser prototype DateChooser.prototype.monthNames = DateBase.defaultMonthNamesLong; DateChooser.prototype.dayNames = DateBase.defaultDayNamesShort; DateChooser.prototype.firstDayOfWeek = 1; Dirk. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Behalf Of joao_m_fernandes Sent: Friday, May 13, 2005 1:54 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Date formating application wide Hi there, Is there a way to set default values other than English formating so each component uses it instead of setting formatters everywhere. Example, If I have several DateFields and DateChoosers I want to be able just to set in the main Application weekday names (or month names) and those components use it as default. If I set mx:DateField automaticly it should use my definitions of dayNames and monthNames without setting it directly in the component. Any Idea how I can achieve this? Thanks, João Fernandes Yahoo! Groups Links Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Charting Multiple Selections in dataGrid
Matt, Here is the code for the LineSeries if hard-coded to chart one selectedItem at a time from the dataGrid: mx:LineSeries name={Deposits.selectedItem.CATEGORY} xField=SCHEDDATE yField=TOTALBAL showDataEffect=drillDownEffect *Deposits is the name of the dataGrid When using this code, I attach the event change=webservice1.PulseGraphLoanByCategory.send() to the dataGrid. When trying to use the addSeries function, I remove that event handler and replace with change=addSeries() and place the call to the WS method in the addSeries script. That is one thing I'm not sure about. Here is the addSeries script: function addSeries() { webservice1.PulseGraphShareByCategory.send() linechartDeposits.series.removeAll(); for (var i=0; iDeposits.selectedIndices.length; i++) { var ls=new LineSeries(); ls.yField=Deposits.selectedItems[i].TOTALBAL; ls.xField=Deposits.selectedItems[i].SCHEDDATE; ls.name=Deposits.selectedItems[i].CATEGORY; linechartDeposits.series.addItem(ls); } } ALSO - the name field comes back defined (in the dataTips) but the yField and xField are undefined. Any help would be greatly appreciated! -Dave --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Are you making sure to only add the series after that data has been retrieved from the WS (in the result handler)? _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dave Sent: Thursday, May 12, 2005 10:23 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Charting Multiple Selections in dataGrid I'm stumped. I want my chart to add a series for each row selected from a corresponding dataGrid. I've used the Series Selection example (under Misc Techniques and Examples) here http://flexapps.macromedia.com/flex15/chartexplorer/explorer.mxml http://flexapps.macromedia.com/flex15/chartexplorer/explorer.mxml as the model, but it still doesn't work. The dataGrid is getting data from a WS. When a row is selected, the CATEGORY field is used to retrieve data from a different WS. This works fine when hard-coding the LineSeries (e.g. mx:LineSeries name={Deposits.selectedItem.CATEGORY} xField=SCHEDDATE yField=TOTALBAL showDataEffect=drillDownEffect /) but I can't get it to work using the addSeries function. The different categories will appear in the legend as rows are multi-selected from the dataGrid, but the chart is a simple line across the top and the dataTips are undefined. Any ideas I know I'm close but unable to resolve. Thanks, Dave _ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! http://docs.yahoo.com/info/terms/ Terms of Service. 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: Charting Multiple Selections in dataGrid
Matt, Here is the code for the LineSeries if hard-coded to chart one selectedItem at a time from the dataGrid: mx:LineSeries name={Deposits.selectedItem.CATEGORY} xField=SCHEDDATE yField=TOTALBAL showDataEffect=drillDownEffect *Deposits is the name of the dataGrid When using this code, I attach the event change=webservice1.PulseGraphLoanByCategory.send() to the dataGrid. When trying to use the addSeries function, I remove that event handler and replace with change=addSeries() and place the call to the WS method in the addSeries script. That is one thing I'm not sure about. Here is the addSeries script: function addSeries() { webservice1.PulseGraphShareByCategory.send() linechartDeposits.series.removeAll(); for (var i=0; iDeposits.selectedIndices.length; i++) { var ls=new LineSeries(); ls.yField=Deposits.selectedItems[i].TOTALBAL; ls.xField=Deposits.selectedItems[i].SCHEDDATE; ls.name=Deposits.selectedItems[i].CATEGORY; linechartDeposits.series.addItem(ls); } } ALSO - the name field comes back defined (in the dataTips) but the yField and xField are undefined. Any help would be greatly appreciated! -Dave --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Are you making sure to only add the series after that data has been retrieved from the WS (in the result handler)? _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dave Sent: Thursday, May 12, 2005 10:23 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Charting Multiple Selections in dataGrid I'm stumped. I want my chart to add a series for each row selected from a corresponding dataGrid. I've used the Series Selection example (under Misc Techniques and Examples) here http://flexapps.macromedia.com/flex15/chartexplorer/explorer.mxml http://flexapps.macromedia.com/flex15/chartexplorer/explorer.mxml as the model, but it still doesn't work. The dataGrid is getting data from a WS. When a row is selected, the CATEGORY field is used to retrieve data from a different WS. This works fine when hard-coding the LineSeries (e.g. mx:LineSeries name={Deposits.selectedItem.CATEGORY} xField=SCHEDDATE yField=TOTALBAL showDataEffect=drillDownEffect /) but I can't get it to work using the addSeries function. The different categories will appear in the legend as rows are multi-selected from the dataGrid, but the chart is a simple line across the top and the dataTips are undefined. Any ideas I know I'm close but unable to resolve. Thanks, Dave _ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! http://docs.yahoo.com/info/terms/ Terms of Service. 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: Charting Multiple Selections in dataGrid
CORRECTION: ALTHOUGH MINOR, THE CORRECT EVENT SHOULD BE change=webservice1.PulseGraphShareByCategory.send() JUST PASTED WRONG CODE ON LAST POST. --- In flexcoders@yahoogroups.com, Dave [EMAIL PROTECTED] wrote: Matt, Here is the code for the LineSeries if hard-coded to chart one selectedItem at a time from the dataGrid: mx:LineSeries name={Deposits.selectedItem.CATEGORY} xField=SCHEDDATE yField=TOTALBAL showDataEffect=drillDownEffect *Deposits is the name of the dataGrid When using this code, I attach the event change=webservice1.PulseGraphLoanByCategory.send() to the dataGrid. When trying to use the addSeries function, I remove that event handler and replace with change=addSeries() and place the call to the WS method in the addSeries script. That is one thing I'm not sure about. Here is the addSeries script: function addSeries() { webservice1.PulseGraphShareByCategory.send() linechartDeposits.series.removeAll(); for (var i=0; iDeposits.selectedIndices.length; i++) { var ls=new LineSeries(); ls.yField=Deposits.selectedItems[i].TOTALBAL; ls.xField=Deposits.selectedItems[i].SCHEDDATE; ls.name=Deposits.selectedItems[i].CATEGORY; linechartDeposits.series.addItem(ls); } } ALSO - the name field comes back defined (in the dataTips) but the yField and xField are undefined. Any help would be greatly appreciated! -Dave --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Are you making sure to only add the series after that data has been retrieved from the WS (in the result handler)? _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dave Sent: Thursday, May 12, 2005 10:23 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Charting Multiple Selections in dataGrid I'm stumped. I want my chart to add a series for each row selected from a corresponding dataGrid. I've used the Series Selection example (under Misc Techniques and Examples) here http://flexapps.macromedia.com/flex15/chartexplorer/explorer.mxml http://flexapps.macromedia.com/flex15/chartexplorer/explorer.mxml as the model, but it still doesn't work. The dataGrid is getting data from a WS. When a row is selected, the CATEGORY field is used to retrieve data from a different WS. This works fine when hard-coding the LineSeries (e.g. mx:LineSeries name={Deposits.selectedItem.CATEGORY} xField=SCHEDDATE yField=TOTALBAL showDataEffect=drillDownEffect /) but I can't get it to work using the addSeries function. The different categories will appear in the legend as rows are multi-selected from the dataGrid, but the chart is a simple line across the top and the dataTips are undefined. Any ideas I know I'm close but unable to resolve. Thanks, Dave _ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! http://docs.yahoo.com/info/terms/ Terms of Service. 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 Server Specification
On 5/13/05, Tim Blair [EMAIL PROTECTED] wrote: Could anyone advise on the required (or recommended) server specs for running Flex? There'll be nothing else running on the box and we're looking at a Linux server. I get the feeling that the info here[1] is over-simplifying things a bit... [1] http://www.macromedia.com/software/flex/productinfo/systemreqs/ Following up on this: Macromedia specify that RedHat AS 2.1/3.0 must be used for Flex -- would there be any problem installing it on ES 3.0? Nope, we have it installed internally on ES 3.0, and it works fine. As for RAM usage and stuff, I would give it a minimum of 512 MB, and lean towards 1GB of RAM if nothing else is going to be on it as you say. Even if there will be other apps/instances, I'd keep it at 1 GB and simply add more RAM to the box (it's so cheap nowadays, it's a no-brainer). Regards, Dave. 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] CurrencyFormatter
Thanks very much Matt, that did the trick. On 5/12/05, Matt Chotin [EMAIL PROTECTED] wrote: You also need to set the thousandsSeparator to something other than , so that it doesn't interfere. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jonbez Sent: Thursday, May 12, 2005 8:14 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] CurrencyFormatter Hi Everyone, I need to be able to display an amount in the following format: 15,99$ I use the following currency formatter, but it does not seem to work. mx:CurrencyFormatter id=priceFormat precision=2 rounding=nearest alignSymbol=right decimalSeparatorFrom=. decimalSeparatorTo=,/ (The original amount comes in as 15.99). The above formatter works fine if I change the decimalSeperatorTo to . (which is of course not what I want). Any ideas? Thank you Jonathan Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 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 Server Specification
Thanks Dave, Even if there will be other apps/instances, I'd keep it at 1 GB and simply add more RAM to the box (it's so cheap nowadays, it's a no-brainer). We're actually going for 2Gb -- we will be adding separate instances in the near future and it makes sense to go for this straight away. What CPU setup do you have/recommend? Tim. -- --- Badpen Tech - CF and web-tech: http://tech.badpen.com/ --- RAWNET LTD - independent digital media agency We are big, we are funny and we are clever! New site launched at http://www.rawnet.com/ --- This message may contain information which is legally privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any unauthorised disclosure, copying, distribution or use of this information is strictly prohibited. Such notification notwithstanding, any comments, opinions, information or conclusions expressed in this message are those of the originator, not of rawnet limited, unless otherwise explicitly and independently indicated by an authorised representative of rawnet limited. --- 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 Server Specification
On 5/13/05, Tim Blair [EMAIL PROTECTED] wrote: Thanks Dave, Even if there will be other apps/instances, I'd keep it at 1 GB and simply add more RAM to the box (it's so cheap nowadays, it's a no-brainer). We're actually going for 2Gb -- we will be adding separate instances in the near future and it makes sense to go for this straight away. Makes sense. What CPU setup do you have/recommend? Our internal box is a single Xeon processor at 3.0 GHz with 1 MB cache, and it suits us just fine. I was tempted to go with an Opteron processor, but since JRun doesn't support it (it will actually install and run, but in 32-bit mode, which defeats the purpose of having a 64-bit processor!), I went with the 32-bit Xeon. That being said, we are going to be looking into some new production servers, but I'm waiting for the dual cores to mature a little bit. Since Macromedia's licensing policy is based on the physical number of CPUs, I will be able to essentially get two processors (and twice the processing power) for the price of one, which is a substantial savings for my company. Hope this helps? Regards, Dave. 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: Date formating application wide
Well I know that I can subclass standard components but I was wondering if there was a way to do it with Flex classes. I was wondering if there was a way for Flex to use system locals/user locals/Default and all flex classes that depends on localization would inherit it by default. João Fernandes --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: You can achieve this, if it's not already there. You can subclass DateField and DateChooser component and add this functionality. Following is quick and dirty example to : ##ExtendedDateFieldExample.mxml## mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns:local=* local:DateFieldEx / /mx:Application ##DateFieldEx.as## import mx.controls.DateField; class DateFieldEx extends DateField { //default German month names... private static var defaultMonthNames = [Januar,Februar,März,April,Mai,Juni,Juli,August,September, Oktober,November,Dezember] public function init():Void { super.init(); monthNames = defaultMonthNames; } } On similar lines you can think... Hope that helps.. -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of joao_m_fernandes Sent: Friday, May 13, 2005 5:24 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Date formating application wide Hi there, Is there a way to set default values other than English formating so each component uses it instead of setting formatters everywhere. Example, If I have several DateFields and DateChoosers I want to be able just to set in the main Application weekday names (or month names) and those components use it as default. If I set mx:DateField automaticly it should use my definitions of dayNames and monthNames without setting it directly in the component. Any Idea how I can achieve this? Thanks, João Fernandes Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Style Question
Rich, Specify color="#00" in the MXML code ... either in the mx:Datagrid or in the mx:DataGridColumn (if you want each column to be a different color) It should work ... Sree Rich Tretola wrote: This is my css style for the grid which makes the header color and text the way I want it, but it also makes the grid text white, how can I get the actual data text to be another color? I tried using both the DataGridRow and DataGridColumn declarations but it doesn't effect it: DataGrid { alternating-row-colors:#FEFEFE,#EFF3F6; header-colors:#141C5A,#829194; border-style:solid; border-color:#CC; v-grid-line-color:#CC; roll-over-color:#D7E4E9; color:#FF; font-size:10px; font-weight:normal; text-indent:4; } Tried adding the following to my css file. DataGridColumn { color:#00; } DataGridRow { color:#00; } Rich On 5/12/05, Matt Chotin [EMAIL PROTECTED] wrote: headerStyle I think (Available on both DataGrid for all columns and DataGridColumn for individual). From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Rich Tretola Sent: Thursday, May 12, 2005 6:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Style Question What is the css property for changing the color of the header text of a datagrid ? When I change the color property, it changes the header text but also changes the grid text color which is not what I need. I need the 2 text colors set differently. Rich Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Flex Server Specification
Hi Tim, I would go for at least a dual CPU server as this will spread the load of garbage collections in Jrun. Also, it helps stop the OS and Jrun fighting over CPU resources. Are you going to be running CFMX on that box too or on a separate machine? If you are then I'd definitely stick two CPUs in there, and lots of memory. 2GB seems like a good starting point. Regards Niklas -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tim Blair Sent: Friday, May 13, 2005 2:54 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex Server Specification Thanks Dave, Even if there will be other apps/instances, I'd keep it at 1 GB and simply add more RAM to the box (it's so cheap nowadays, it's a no-brainer). We're actually going for 2Gb -- we will be adding separate instances in the near future and it makes sense to go for this straight away. What CPU setup do you have/recommend? Tim. -- --- Badpen Tech - CF and web-tech: http://tech.badpen.com/ --- RAWNET LTD - independent digital media agency We are big, we are funny and we are clever! New site launched at http://www.rawnet.com/ --- This message may contain information which is legally privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any unauthorised disclosure, copying, distribution or use of this information is strictly prohibited. Such notification notwithstanding, any comments, opinions, information or conclusions expressed in this message are those of the originator, not of rawnet limited, unless otherwise explicitly and independently indicated by an authorised representative of rawnet limited. --- Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Style Question
Nope, that didn't work as it turned all of the text black incluing the header text. Is there no way to have the header text a different color from the grid text ? Rich On 5/13/05, Sreejith Unnikrishnan [EMAIL PROTECTED] wrote: Rich, Specify color=#00 in the MXML code ... either in the mx:Datagrid or in the mx:DataGridColumn (if you want each column to be a different color) It should work ... Sree Rich Tretola wrote: This is my css style for the grid which makes the header color and text the way I want it, but it also makes the grid text white, how can I get the actual data text to be another color? I tried using both the DataGridRow and DataGridColumn declarations but it doesn't effect it: DataGrid { alternating-row-colors:#FEFEFE,#EFF3F6; header-colors:#141C5A,#829194; border-style:solid; border-color:#CC; v-grid-line-color:#CC; roll-over-color:#D7E4E9; color:#FF; font-size:10px; font-weight:normal; text-indent:4; } Tried adding the following to my css file. DataGridColumn { color:#00; } DataGridRow { color:#00; } Rich On 5/12/05, Matt Chotin [EMAIL PROTECTED] wrote: headerStyle I think (Available on both DataGrid for all columns and DataGridColumn for individual). From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rich Tretola Sent: Thursday, May 12, 2005 6:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Style Question What is the css property for changing the color of the header text of a datagrid ? When I change the color property, it changes the header text but also changes the grid text color which is not what I need. I need the 2 text colors set differently. Rich Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 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] updating model.
Hi, Is it possible to update the model declared using mx:Model tag as soon as user changes a corresponding form element? For example: I have a following model mx:Model id=empModel empID/ empName/ empAddress/ empCity/ empState/ empZipCode/ /mx:Model I do have corresponding form elements like this for all the model attributes. mx:FormItem label=Address: mx:TextInput id=address text={ empModel.empAddress} width=120 height=20 change=dataChanged=true/ /mx:FormItem Now what I am trying to do is save the changes made by the user by passing the entire model instead of getting individual controls text attribute and assign them to AS VO object. I am able to pass the model but found old values instead of modified values. I want to update the model with new values entered by the user and then send the model to the POJO. How to do this - updating model with latest values from form elements text. Thanks! Hari 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] Internal popups
Were you able to use the ViewStack to hide / unhide a popup window without the content underneath being hidden? My popup window will be of a smaller size than my application window. /** * Jeff Beeman **/ From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Allen Manning Sent: Friday, May 13, 2005 1:42 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Internal popups Hello Jeff, Have you thought of using a View Stack with a Title Window? For a project we were working on, we first started with a Popup Window, but found performance to be a problem. We switched to a simulating a popup via a Title Window / View Stack and found it more performant and more usable. HTH, Allen Allen Manning, Technical Director Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeff Beeman Sent: 12 May 2005 17:56 To: flexcoders@yahoogroups.com Subject: [flexcoders] Internal popups Ive been scouring the documentation, but I cant seem to find how to do something that should be quite simple. How do I create a popup window that doesnt reference an external file? All examples point to loading in an external mxml file, but I would like to simply create a panel that is hidden on startup and have it hide / unhide on different events. Is this possible? /*** * Jeff Beeman * Digital Media Instructional Technologies * Arizona State University ***/ Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Internal popups
Did you check out the code I posted ... Viewstack can display only one view at a time ... thats why you should use the canvas+hbox Jeff Beeman wrote: Were you able to use the ViewStack to hide / unhide a popup window without the content underneath being hidden? My popup window will be of a smaller size than my application window. /** * Jeff Beeman **/ From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Allen Manning Sent: Friday, May 13, 2005 1:42 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Internal popups Hello Jeff, Have you thought of using a View Stack with a Title Window? For a project we were working on, we first started with a Popup Window, but found performance to be a problem. We switched to a simulating a popup via a Title Window / View Stack and found it more performant and more usable. HTH, Allen Allen Manning, Technical Director Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeff Beeman Sent: 12 May 2005 17:56 To: flexcoders@yahoogroups.com Subject: [flexcoders] Internal popups Ive been scouring the documentation, but I cant seem to find how to do something that should be quite simple. How do I create a popup window that doesnt reference an external file? All examples point to loading in an external mxml file, but I would like to simply create a panel that is hidden on startup and have it hide / unhide on different events. Is this possible? /*** * Jeff Beeman * Digital Media Instructional Technologies * Arizona State University ***/ Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Style Question
You're right ... You can use a cellRenderer ... (tested this time :-) // ColorRenderer.mxml ?xml version="1.0" encoding="utf-8"? mx:Canvas xmlns:mx="http://www.macromedia.com/2003/mxml" width="100%" xmlns="*" mx:Script ![CDATA[ function setValue(str:String,obj:Object) { theCell.text = str; } ]] /mx:Script mx:Text color="#00" / /mx:Canvas In your datagrid column you can specify cellRenderer="ColorRenderer" Rich Tretola wrote: Nope, that didn't work as it turned all of the text black incluing the header text. Is there no way to have the header text a different color from the grid text ? Rich On 5/13/05, Sreejith Unnikrishnan [EMAIL PROTECTED] wrote: Rich, Specify color="#00" in the MXML code ... either in the mx:Datagrid or in the mx:DataGridColumn (if you want each column to be a different color) It should work ... Sree Rich Tretola wrote: This is my css style for the grid which makes the header color and text the way I want it, but it also makes the grid text white, how can I get the actual data text to be another color? I tried using both the DataGridRow and DataGridColumn declarations but it doesn't effect it: DataGrid { alternating-row-colors:#FEFEFE,#EFF3F6; header-colors:#141C5A,#829194; border-style:solid; border-color:#CC; v-grid-line-color:#CC; roll-over-color:#D7E4E9; color:#FF; font-size:10px; font-weight:normal; text-indent:4; } Tried adding the following to my css file. DataGridColumn { color:#00; } DataGridRow { color:#00; } Rich On 5/12/05, Matt Chotin [EMAIL PROTECTED] wrote: headerStyle I think (Available on both DataGrid for all columns and DataGridColumn for individual). From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Rich Tretola Sent: Thursday, May 12, 2005 6:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Style Question What is the css property for changing the color of the header text of a datagrid ? When I change the color property, it changes the header text but also changes the grid text color which is not what I need. I need the 2 text colors set differently. Rich Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Internal popups
Yeah, youre code is what Im looking into right now. Thanks for your help! /** * Jeff Beeman **/ From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Sreejith Unnikrishnan Sent: Friday, May 13, 2005 8:02 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Internal popups Did you check out the code I posted ... Viewstack can display only one view at a time ... thats why you should use the canvas+hbox Jeff Beeman wrote: Were you able to use the ViewStack to hide / unhide a popup window without the content underneath being hidden? My popup window will be of a smaller size than my application window. /** * Jeff Beeman **/ From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Allen Manning Sent: Friday, May 13, 2005 1:42 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Internal popups Hello Jeff, Have you thought of using a View Stack with a Title Window? For a project we were working on, we first started with a Popup Window, but found performance to be a problem. We switched to a simulating a popup via a Title Window / View Stack and found it more performant and more usable. HTH, Allen Allen Manning, Technical Director Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 w: www.prismix.com From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeff Beeman Sent: 12 May 2005 17:56 To: flexcoders@yahoogroups.com Subject: [flexcoders] Internal popups Ive been scouring the documentation, but I cant seem to find how to do something that should be quite simple. How do I create a popup window that doesnt reference an external file? All examples point to loading in an external mxml file, but I would like to simply create a panel that is hidden on startup and have it hide / unhide on different events. Is this possible? /*** * Jeff Beeman * Digital Media Instructional Technologies * Arizona State University ***/ Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Is there any way to override the initializing screen?
Apart from the nice US English Americanisation (:-), is there a way of replacing this with another component? My scenario is this: while the app (a hotel resevation app) is loading, my client wants to use the space to promote special offers. Is this possible? The only thought I've had so far is maybe loading the Flex app into another swf - is this feasible? Many thanks, Rich Monochrome 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] Is there any way to override the initializing screen?
Apart from the nice US English Americanisation (:-), is there a way of replacing this with another component? My scenario is this: while the app (a hotel resevation app) is loading, my client wants to use the space to promote special offers. Is this possible? The only thought I've had so far is maybe loading the Flex app into another swf - is this feasible? Many thanks, Rich Monochrome Yes, see the Using a custom progress bar section in the docs. -Roger Roger Gonzalez mailto:[EMAIL PROTECTED] 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 equivalent to padding in CSS?
Is there a Flex equivalent to the padding attribute in CSS? I have a box and would like to have padding between the inner content and the border that surrounds it. /*** * Jeff Beeman * Digital Media Instructional Technologies * Arizona State University ***/ Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: MediaDisplay, can it be resized on the fly?
On 5/13/05, temporal_illusion [EMAIL PROTECTED] wrote: mx:Button click=display.width=display.width/2;display.height=display.height/2 / Call display.assignPreferredSize() after setting the width/height. 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: Internal popups
Here's some sample code to get started... The TitleWindow component should be defined as its own separate class; for instance, assume this file is named SimpleDialog.mxml: ?xml version=1.0 encoding=utf-8? mx:TitleWindow xmlns:mx=http://www.macromedia.com/2003/mxml; width=400 height=400 title=My Dialog Box !-- Display a simple Label control -- mx:Label text=Welcome to my Dialog Box/ mx:Label text=Try dragging me around the screen/ /mx:TitleWindow To create a Popup Dialog from this class, use this Application code: ?xml version=1.0 encoding=utf-8? !-- Simple application to demonstrate TitleWindow layout -- mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; backgroundColor=#FF mx:Script ![CDATA[ //Import required classes import mx.containers.TitleWindow; import mx.managers.PopUpManager; //Declare dialog box reference variable global to application var dialog:TitleWindow; //Open a dialog box function showWindow() { dialog=TitleWindow(PopUpManager.createPopUp( this, SimpleDialog, false)); dialog.centerPopUp(); closeButton.enabled=true; } //Close a dialog box function closeWindow() { dialog.deletePopUp(); closeButton.enabled=false; } ]] /mx:Script mx:Panel title=Simple Panel mx:Button id=openButton label=Click to view dialog box click=showWindow();/ mx:Button id=closeButton width={openButton.width} label=Click to close dialog box click=closeWindow() enabled=false/ /mx:Panel /mx:Application David Gassner Schooner Technical Media The problem is that the TitleWindow in your example still takes up space in the application window. I need it to behave like a normal popup. /** * Jeff Beeman **/ -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Tapper Sent: Thursday, May 12, 2005 11:27 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Internal popups try this: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Button click=toggleVis() label=click me/ mx:TitleWindow id=tw title=Some title mx:Label text=hi there/ /mx:TitleWindow mx:Script ![CDATA[ function toggleVis(){ tw.visible = !tw.visible; } ]] /mx:Script /mx:Application At 02:21 PM 5/12/2005, you wrote: I can't find an example or description of how to use the TitleWindow component without it being in an external file. Any pointers? /** * Jeff Beeman **/ -- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Thursday, May 12, 2005 10:45 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Internal popups You probably want the TitleWindow component. Tracy -- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Beeman Sent: Thursday, May 12, 2005 12:56 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Internal popups I've been scouring the documentation, but I can't seem to find how to do something that should be quite simple. How do I create a popup window that doesn't reference an external file? All examples point to loading in an external mxml file, but I would like to simply create a panel that is hidden on startup and have it hide / unhide on different events. Is this possible? /*** * Jeff Beeman * Digital Media Instructional Technologies * Arizona State University ***/ -- Yahoo! Groups Links * To visit your group on the web, go to: * http://groups.yahoo.com/group/flexcoders/http://groups.yahoo.com/gr oup /flexcoders/ * * To unsubscribe from this group, send an email to: * mailto:[EMAIL PROTECTED] subject=Unsubscribeflexc [EMAIL PROTECTED] * * Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/Yahoo! Terms of Service. Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Set Drop Down Menu Width wider than actual menu width?
--- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: On 5/12/05, nextadvantage [EMAIL PROTECTED] wrote: Can I set the width of a menu drop down list to fit the drop down text width or force the drop down menu to be wider than the select width? I'm not sure what you mean. You can generally set the width of an UI object if you have a reference to it. uiObject.width = N; Sample here... http://idealer1.com/menu.jpg Notice we have a fixed width menu but we would like the drop down to display the full contents, notice the fields being cut off. 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] Drop down menu width?
Sample here... http://idealer1.com/menu.jpg Notice we have a fixed width menu but we would like the drop down to display the full contents, notice the fields being cut off??? 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: Set Drop Down Menu Width wider than actual menu width?
On 5/14/05, nextadvantage [EMAIL PROTECTED] wrote: Sample here... http://idealer1.com/menu.jpg Notice we have a fixed width menu but we would like the drop down to display the full contents, notice the fields being cut off. You're looking for the dropdownWidth property of ComboBox. 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 Application Preloader Woes
Following the docs, ONLY putting my as file in my personal classpath works. SWC in root, SWC in classpath, SWC in users_classes... none of it works. However, AS file won't work on it's own since I'm using Flash for custom graphics. I haven't changed my flex-config.xml to point anywhere; it's defaulting to the user_classes in tomcat / flex , etc. Any pointers? Why would the AS file work but not the SWC? --JesterXL 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] Synchronous Call
Hi All, I am using Cairngrom 0.9 Framework. I have the need to have the ability of synchronous call to remote objects and methods in a particular sequential flow. I read somewhere that Cairngrom 1.0 going to take care of this synchronize resources issue. Till than if any of you guys have code snippet or any documentation for me to handle this would be really helpful. Thanks, Shahn Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: MediaDisplay, can it be resized on the fly?
Lol, you ARE the man. Now the question is how on earth did you know to do this? :) It's not in the API and not in the Flex documentation. And what is this really doing in the background? Changing the preferred size I guess, but why does it obey that but not an explicit setting of the size using width and height? Jason --- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: On 5/13/05, temporal_illusion [EMAIL PROTECTED] wrote: mx:Button click=display.width=display.width/2;display.height=display.height/2 / Call display.assignPreferredSize() after setting the width/height. 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] editable datagrid
Hi, How do I send the information in an editable datagrid back to the server (I am using a webservice to update and delete). I have only seen examples to make a datagrid editable but what should I do save the edited information. Regards Rajesh J 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] editable datagrid
On 5/14/05, Rajesh Jayabalan [EMAIL PROTECTED] wrote: How do I send the information in an editable datagrid back to the server (I am using a webservice to update and delete). I have only seen examples to make a datagrid editable but what should I do save the edited information. The edited data is saved in the underlying data provider object for the DataGrid. You can send the data to the server for saving when the user clicks the Save button. 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: MediaDisplay, can it be resized on the fly?
On 5/14/05, temporal_illusion [EMAIL PROTECTED] wrote: Now the question is how on earth did you know to do this? :) It's not in the API and not in the Flex documentation. I looked into the source. ;) (Open your FlexforFlash.zip and looking for MediaDisplay.as) And what is this really doing in the background? Changing the preferred size I guess, but why does it obey that but not an explicit setting of the size using width and height? It basically sets the video size to be equal to the preferred size of the component. Normally this was not working for some reason (can't say exactly why without spending some time on this). 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] Looking for a critique
Manish, Would you mind taking a look at something for me and let me know what you think? http://www.flexauthority.com/Test/weather/weather.mxml Thanks, Jeff 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/