RE: [flexcoders] Image Marquee
Kenny - your image marquee awaits. http://www.quilix.com/node/19 Rick Winscot From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kenny14390 Sent: Tuesday, July 08, 2008 3:46 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Image Marquee Does anyone know how to create an image marquee in Flex? See http://fishbowl.com for an example.
[flexcoders] Pass parameters to module
I use a moduleloader and need to pass parameters to module. How can I do it? Thanks Giro.
[flexcoders] Re: TextInputs - no cursor
Well, without seeing more code, I don't think I can say any more than I already have. As a sidenote, having proved myself capable of idiocy in infinite ways when coding, I would advise against ever seriously saying something like, I cannot imagine that there is an error in this code. --- In flexcoders@yahoogroups.com, markgoldin_2000 [EMAIL PROTECTED] wrote: Yes, running it as a stand alone app. works fine, but in the way I am using this code it does not work properly. I have a cursor for the SKU field only. I cannot imagine that there is an error in this code. All text fields are declared in exactly same way. Strange.
[flexcoders] Tile Transitions
Does anyone have a url which demonstrates the different transitions available for a tile list or similar? Google isn't coming up with anything, Thanks for anyone that can help :) -- http://danny-t.co.uk
[flexcoders] Caching problem with HttpSevice
Hi, I am trying to call a url by using HTTPService. Hitting this url passing two parameters, starts/stops a service. This is working fine when I try to do it locally. But when I put it on the server it does not work at all. It worked yesterday 1-2 times but after that it does not work. I have to embed the .swf file in a object tag and provide the name of .swf file in param name tag. Would this be a proxy caching problem? I have used POST method and also set some dummyparameter in the url to be dummyPara=+new Date().time, but still does not work. Also as shown below the header has Cache-Control:no-cache set. But still does not work. Can somebody suggest me how to solve this? The header returned by the url is : HTTP/1.1 200 OK Date: Fri, 11 Jul 2008 10:32:59 GMT Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET X-AspNet-Version: 2.0.50727 Cache-Control: no-cache Pragma: no-cache Expires: -1 Content-Type: text/html; charset=utf-8 Content-Length: 261
[flexcoders] exe of flex project
i want to create the exe of my flex project and it uses php to interact with the database. How do i do that -- View this message in context: http://www.nabble.com/exe-of-flex-project-tp18401633p18401633.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] HorizontaList - variable column width
Is it possible to have variable column width in HorizontaList (similar to variableRowHeight for List)? Zdenek M
Re: [flexcoders] Pass parameters to module
Hi Giro, I'd recommend to use ModuleManager - it gives you much more control over workflow. And in that case you may use interfaces: protected var info: IModuleInfo; protected function loadModule ( moduleUrl: String ): void { info = ModuleManager.getModule ( moduleUrl ); info.addEventListener ( ModuleEvent.READY, moduleReadyHandler ); info.addEventListener( ModuleEvent.ERROR, errorHandler ); } protected function moduleReadyHandler ( event: ModuleEvent ): void { var module: IMySuperCustomModule = info.factory.create() as IMySuperCustomModule; module.dataProvider = someSuperImportantData; addChild ( module as DisplayObject ); } Cheers, Oleg 2008/7/11 David Gironella [EMAIL PROTECTED]: I use a moduleloader and need to pass parameters to module. How can I do it? Thanks Giro. -- Best regards, Oleg Filipchuk
[flexcoders] combobox fills in with blank element
I have an ArrayCollection which is the dataProvider for a combobox in a custom component. However the ArrayCollection is located in the application so I assign it to the custom component via actionscript in the component. When I call addItem on the ArrayCollection the items go into the combobox, however the first element is always blank. How can I can get rid of this and get the combobox to add only the items I am adding to the ArrayCollection?
[flexcoders] Fast String concatenation
Hi there I wanted to check if there are any tricks one can do to improve the speed on concatenating strings. I know in Java there is a StringBuilder class which is faster than the '+' operator. I havent seen an equivallent for Actionscript, so is var mystring:String = 'string1' + 'string2' the fastest way to concatenate strings? CHeers tracy
Re: [flexcoders] Fast String concatenation
Try the much faster appendText() method :) Cheers, Simon On 11 Jul 2008, at 13:53, polestar11 wrote: Hi there I wanted to check if there are any tricks one can do to improve the speed on concatenating strings. I know in Java there is a StringBuilder class which is faster than the '+' operator. I havent seen an equivallent for Actionscript, so is var mystring:String = 'string1' + 'string2' the fastest way to concatenate strings? CHeers tracy
[flexcoders] States
Can states be managed independently in components? In other words, can I have unique and active states in each of my components or can I only have one state for the whole application? Thanks!
[flexcoders] stops ignored in ambeded MovieClip
Hi, i'm convinced that this topic have been already adressed before but, i have not found it. When i embed a movieClip into my flex application, all the controls like stop located in my MovieClip (created in flash IDE) are ignored in flex. I can control the embedded movieClip from flex but it's not the solution with a complex animation. here is the way i have done it [Embed(source=assets/assets.swf, symbol=PresenceSymbol)] public class PresenceSymbol extends MovieClipAsset{...} the movieclip loop without control. Any help ? Thanks in advance. feel free to redirect me.
[flexcoders] Passing Dates to DateChooser via XML Problem
Hi guys, The problem I'm having is as follows : I have a combobox that holds information on different countries and when this is updated by the user (ie they pick a new country) a region combo box is then automatically updated. The countries XML file holds information for the combobox with the country and the location of a new XML file which holds all the information on its regions as follows : ?xml version=1.0 encoding=utf-8? item labelSpain/label dataxml/spain.xml/data /item A similar XML file has the regions of Spain with certain available dates of staying and this is linked to a DateChooser control and this is where I'm running into difficulties. ?xml version=1.0 encoding=utf-8? item labelSomewhere in Spain/label datanew Date(2008,7,17)/data /item When this date is passed into the ArrayCollection it doesn't seem to be associated with the data value in the comboBox yet it seems to work fine when the new XML file is referenced? Any comments or thoughts are appreciated. Cheers David
Re: [flexcoders] Logging best practice
On Wednesday 09 Jul 2008, Richard Rodseth wrote: My understanding is that it's OK to include trace() statements in a release build. Please set me straight if that's not the case. Anyone can see the output of them, iirc, with the debug player. It's up to you, but I'd want them stripped out. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] RegEx help please
On Wednesday 09 Jul 2008, Greg Hess wrote: - must not start with . ^[^.] - must not contain *?/[EMAIL PROTECTED]: The trick to [*?/[EMAIL PROTECTED]:] is to get the escaping correct. \ has to be, for instance. Try adding additional chars one at a time and resolving as you go. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Fast String concatenation
The only appendText function I found was on a TextField object. I need something for Strings. I tried the string.concat method and got the following for the following tests: test1: 500ms test2: 2200ms private function test1():void { var i:int = -1; var s:String = var app:String = append; var time:int = getTimer(); while(++i 100) { s += A; } val1 = getTimer() - time; callLater(test2); } private function test2():void { var i:int = -1; var s:String = var app:String = append; var time:int = getTimer(); while(++i 100) { s.concat(A); } val2 = getTimer() - time; callLater(showResult); } --- In flexcoders@yahoogroups.com, Simon Bailey [EMAIL PROTECTED] wrote: Try the much faster appendText() method :) Cheers, Simon On 11 Jul 2008, at 13:53, polestar11 wrote: Hi there I wanted to check if there are any tricks one can do to improve the speed on concatenating strings. I know in Java there is a StringBuilder class which is faster than the '+' operator. I havent seen an equivallent for Actionscript, so is var mystring:String = 'string1' + 'string2' the fastest way to concatenate strings? CHeers tracy
Re: [flexcoders] Creating Moving Desktop (AIR)
On Wednesday 09 Jul 2008, armyofnuubs wrote: if there is any way that one can manipulate the desktop using flash? No. Would you want a random web site changing your wall paper to adverts ? Dreamscape(or is it dreamscene) for vista ultimate. This is more of a personal project in which i hope to learn about leaving small memory Certainly on Windows, there is a special file name under c:\windows for the current back ground image iirc, and you can overwrite that from AIR using the file IO. Linux doesn't do anything so silly, and I expect Mac doesn't either. You can request the user sets their back ground picture to a file under your control, but I don't know if any of the three O/S will poll that file for changes consistently, and even if they do you probably can't alter their frequency. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Flex SEO
On Thursday 10 Jul 2008, litesh_b321 wrote: can get index of google for a web site which is developed in adobe flex? Yes. Is there any special technique to optimise the search engine for flex developed web site? No. The Google spider Just Works with your Flex application. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] lockedRowCount won't set
I have an advanceddatagrid that gets created in actionscript. Everything works fine, it comes up with all the properties and data set correctly, however when I try to set the lockedRowCount to anything 0, it doesn't get set. So I have something like... dg.lockedRowCount = 2; and if I set a break point and debug, it has lockedRowCount = 0 Any idea what could be going on here, I even tried setting it in a function that gets called at the very end after everything else is done, and it still doesn't work. I'd really appreciate any help.
Re: [flexcoders] Re: Launching Flex Builder Help
On Friday 11 Jul 2008, Amy wrote: in on what I am looking for. The LiveDocs search searches the world. Have you tried using either Google, or Adobe's Community Search @ http://community.adobe.com/help ? -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Nirvanix API Air examples?
Hi Barry, Thanks for the link, the example doesn't seem to work probably compiled with old air sdk, any other examples as this seems to be a javascript/html example. Can I talk to the Nirvanix API directly through air?. I just wanna get a working example running, before spending any money to possibly get an Air/Flex developer to help me out.
Re: [flexcoders] Re: Air App Install options
On Wednesday 09 Jul 2008, securenetfreedom wrote: Any ideas? If the option isn't listed in the docs, it doesn't exist. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: stops ignored in ambeded MovieClip
gSkinner give us the solution.
RE: [flexcoders] Fast String concatenation
For building up strings out of little pieces, we use fromCharCode From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of polestar11 Sent: Friday, July 11, 2008 5:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Fast String concatenation Hi there I wanted to check if there are any tricks one can do to improve the speed on concatenating strings. I know in Java there is a StringBuilder class which is faster than the '+' operator. I havent seen an equivallent for Actionscript, so is var mystring:String = 'string1' + 'string2' the fastest way to concatenate strings? CHeers tracy
Re: [flexcoders] Issue executing Debug in Flex Builder 3 as Eclipse Plugin with PHP
On Friday 11 Jul 2008, danielholmes85 wrote: Having an issue with Debug for Flex projects in eclipse. When i debug my project I get a popup asking if i want to debug it with one of the ... always debug the flex project as a flex application; but i can't find I just add the debug setting as a favourite from the 'new debug session' dialogue. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] combobox fills in with blank element
Show your code. Last time, someone was inadvertently putting a space into the CB's dataProvider From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of netdeep Sent: Friday, July 11, 2008 5:48 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] combobox fills in with blank element I have an ArrayCollection which is the dataProvider for a combobox in a custom component. However the ArrayCollection is located in the application so I assign it to the custom component via actionscript in the component. When I call addItem on the ArrayCollection the items go into the combobox, however the first element is always blank. How can I can get rid of this and get the combobox to add only the items I am adding to the ArrayCollection?
Re: [flexcoders] Re: HTTP Request Error: Design View in Flex Builder 3?
On Wednesday 09 Jul 2008, cox.blair wrote: I've noticed over the past two days, that files with the Flex Navigator will disappear. I'll have module open and it will only exist FB as an open file, the original file in the Navigator has been removed? Is the workspace on a network drive or something ? Do you have on-access virus scaning running ? -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: combobox fills in with blank element
Here is the relevant code from the component with the combobox: [Bindable] private var signalList:ArrayCollection = new ArrayCollection(); public function setSignals(sig:ArrayCollection):void { signalList = sig; } mx:ComboBox dataProvider={signalList} selectedIndex=0 toolTip={signal.selectedItem.name} change=selectSignal() color=#00 id=signal labelField=name/ And here is my Application actionscript code for populating signalList: var arr:Array = archiveList.selectedItems; for (var i:int=0; iarr.length; i++) { if (!signalList.contains(arr[i].name)) { signalList.addItem(arr[i].name); } } var sort:Sort = new Sort(); // Set the sort field (case-insensitive) sort.fields = [new SortField(null,true)]; // Assign the Sort object to the view. signalList.sort = sort; // Apply the sort to the collection. signalList.refresh(); --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Show your code. Last time, someone was inadvertently putting a space into the CB's dataProvider From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of netdeep Sent: Friday, July 11, 2008 5:48 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] combobox fills in with blank element I have an ArrayCollection which is the dataProvider for a combobox in a custom component. However the ArrayCollection is located in the application so I assign it to the custom component via actionscript in the component. When I call addItem on the ArrayCollection the items go into the combobox, however the first element is always blank. How can I can get rid of this and get the combobox to add only the items I am adding to the ArrayCollection?
RE: [flexcoders] Re: Trick button into rendering mouseover/mouseout states
I think you can set up upSkin or overSkin, instead of just skin, but your PNGs are ok too. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Falling Sent: Thursday, July 10, 2008 10:14 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Trick button into rendering mouseover/mouseout states Do you mean the CSS from the framework? Because the only applicable css I've seen is: LinkButton { /*disabledIcon: null; */ disabledSkin: ClassReference(null); /*downIcon: null; */ downSkin: ClassReference(null); /*overIcon: null; */ overSkin: ClassReference(null); paddingLeft: 7; paddingRight: 7; /*selectedDisabledIcon: null; */ selectedDisabledSkin: ClassReference(null); /*selectedDownIcon: null; */ selectedDownSkin: ClassReference(null); /*selectedOverIcon: null; */ selectedOverSkin: ClassReference(null); /*selectedUpIcon: null; */ selectedUpSkin: ClassReference(null); skin: ClassReference(mx.skins.halo.LinkButtonSkin); /*upIcon: null; */ upSkin: ClassReference(null); } Setting my over skin to ClassReference(null) makes it appear (I think) like a normal button, while using ClassReference(mx.skins.halo.LinkButtonSkin) will make it behave like a typical LinkButton does when moused over. Again though, it currently looks great and behaves the way I want it to. Is there a reason for me to not do it just with an alpha image? Thanks On Thu, Jul 10, 2008 at 7:09 PM, Alex Harui [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Copy the LinkButton CSS and assign whatever was in upSkin to overSkin From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Dennis Falling Sent: Thursday, July 10, 2008 4:13 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Trick button into rendering mouseover/mouseout states So no way that's purely CSS? Is there a reason for me to not use my current hack (invisible PNG skins)? Visually and functionally it's what I want. On Jul 10, 2008, at 5:30 PM, Alex Harui [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Maybe setStyle(overSkin, getStyle(upSkin)) From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Dennis Falling Sent: Thursday, July 10, 2008 12:52 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Trick button into rendering mouseover/mouseout states I don't know of a way to give a link button a transparent mouse over background. On Jul 7, 2008, at 2:11 PM, nathanpdaniel [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I'm not sure but what's the difference between a link button and what you're trying to accomplish? It seems to me what you're looking for would be easily accomplished with a little CSS the LinkButton component rather than reskinning the Button component. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: Interesting. It should work because the icon and text is not a child of the skin. Maybe I don't understand what he wants or what you tried. From: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ups.com mailto:flexcoders%40yahoogroups.com [mailto:[EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Tim Hoff Sent: Monday, July 07, 2008 10:02 AM To: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Trick button into rendering mouseover/mouseout states Doesn't work if you want to keep the button icons visible. Wouldn't this also affect embedded fonts? -TH --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders mailto:flexcoders%
Re: [flexcoders] Re: Fast String concatenation
My bad, sorry quick glance response I see its combining a series of small strings here! On 11 Jul 2008, at 16:17, polestar11 wrote: The only appendText function I found was on a TextField object. I need something for Strings. I tried the string.concat method and got the following for the following tests: test1: 500ms test2: 2200ms private function test1():void { var i:int = -1; var s:String = var app:String = append; var time:int = getTimer(); while(++i 100) { s += A; } val1 = getTimer() - time; callLater(test2); } private function test2():void { var i:int = -1; var s:String = var app:String = append; var time:int = getTimer(); while(++i 100) { s.concat(A); } val2 = getTimer() - time; callLater(showResult); } --- In flexcoders@yahoogroups.com, Simon Bailey [EMAIL PROTECTED] wrote: Try the much faster appendText() method :) Cheers, Simon On 11 Jul 2008, at 13:53, polestar11 wrote: Hi there I wanted to check if there are any tricks one can do to improve the speed on concatenating strings. I know in Java there is a StringBuilder class which is faster than the '+' operator. I havent seen an equivallent for Actionscript, so is var mystring:String = 'string1' + 'string2' the fastest way to concatenate strings? CHeers tracy
Re: [flexcoders] exe of flex project
http://www.google.com/search?client=safarirls=en-usq=convert+flex+to+exeie=UTF-8oe=UTF-8 or just convert and make it an Air app. d On 11-Jul-08, at 4:19 AM, nitishdhar wrote: i want to create the exe of my flex project and it uses php to interact with the database. How do i do that -- View this message in context: http://www.nabble.com/exe-of-flex-project-tp18401633p18401633.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Re: Flex SEO
--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Thursday 10 Jul 2008, litesh_b321 wrote: can get index of google for a web site which is developed in adobe flex? Yes. Is there any special technique to optimise the search engine for flex developed web site? No. The Google spider Just Works with your Flex application. Google is able to get to the content of a swf and spider it? Neat, but at the same time a little scary...
RE: [flexcoders] Re: combobox fills in with blank element
Does signalList have an extra element in it? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of netdeep Sent: Friday, July 11, 2008 11:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: combobox fills in with blank element Here is the relevant code from the component with the combobox: [Bindable] private var signalList:ArrayCollection = new ArrayCollection(); public function setSignals(sig:ArrayCollection):void { signalList = sig; } mx:ComboBox dataProvider={signalList} selectedIndex=0 toolTip={signal.selectedItem.name} change=selectSignal() color=#00 id=signal labelField=name/ And here is my Application actionscript code for populating signalList: var arr:Array = archiveList.selectedItems; for (var i:int=0; iarr.length; i++) { if (!signalList.contains(arr[i].name)) { signalList.addItem(arr[i].name); } } var sort:Sort = new Sort(); // Set the sort field (case-insensitive) sort.fields = [new SortField(null,true)]; // Assign the Sort object to the view. signalList.sort = sort; // Apply the sort to the collection. signalList.refresh(); --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: Show your code. Last time, someone was inadvertently putting a space into the CB's dataProvider From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of netdeep Sent: Friday, July 11, 2008 5:48 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] combobox fills in with blank element I have an ArrayCollection which is the dataProvider for a combobox in a custom component. However the ArrayCollection is located in the application so I assign it to the custom component via actionscript in the component. When I call addItem on the ArrayCollection the items go into the combobox, however the first element is always blank. How can I can get rid of this and get the combobox to add only the items I am adding to the ArrayCollection?
[flexcoders] Re: how can I get the Java Session 's data from Flex cilent side
If your not using RemoteObject (recommended) you could use a httpservice to a Servet that wrapped the session data in xml and return it. Just an idea.
RE: [flexcoders] Passing Dates to DateChooser via XML Problem
What are you expecting out of this node: datanew Date(2008,7,17)/data Looks vewwy suspicious to me. I know of no way to make a string representing a declaration execute under AS. And a text node is a string. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tspyro2002 Sent: Friday, July 11, 2008 10:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Passing Dates to DateChooser via XML Problem Hi guys, The problem I'm having is as follows : I have a combobox that holds information on different countries and when this is updated by the user (ie they pick a new country) a region combo box is then automatically updated. The countries XML file holds information for the combobox with the country and the location of a new XML file which holds all the information on its regions as follows : ?xml version=1.0 encoding=utf-8? item labelSpain/label dataxml/spain.xml/data /item A similar XML file has the regions of Spain with certain available dates of staying and this is linked to a DateChooser control and this is where I'm running into difficulties. ?xml version=1.0 encoding=utf-8? item labelSomewhere in Spain/label datanew Date(2008,7,17)/data /item When this date is passed into the ArrayCollection it doesn't seem to be associated with the data value in the comboBox yet it seems to work fine when the new XML file is referenced? Any comments or thoughts are appreciated. Cheers David
[flexcoders] Re: Launching Flex Builder Help
--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Friday 11 Jul 2008, Amy wrote: in on what I am looking for. The LiveDocs search searches the world. Have you tried using either Google, or Adobe's Community Search @ http://community.adobe.com/help ? I don't think limiting it to adobe.com is very helpful, since depending on what you're asking, you could get FB 1.5, Flash, or even something completely unrelated. My filters in the built in help are VERY specific, and I can put my fingers on what I need in seconds. While I saw Randy's posts on how to limit the search using the google site keywords to get it just down to the LiveDocs for the version of Flex you're interested in, to me that's a bigger PIA than just going through the help. And of course, it doesn't provide the specificity of the search context in the help. My main concern about going through the help is that FB3 running with the help open will use more and more memory until my laptop is burning my legs. If it weren't for that I'd have Flex open all the time and it wouldn't matter. -Amy Thanks, though -Amy
Re: [flexcoders] Re: Flex SEO
Does anyone know the technical limitations for this? Will it only extract the hard coded text, or does it actually know what's going on in the application? I did see the bulletin that Google now crawls flash content, but didn't see many details. I'm just curious how this is going to impact future Flex development. Google friendly design patterns? Any thoughts? Thanks! ~Aaron On Fri, Jul 11, 2008 at 9:15 AM, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Thursday 10 Jul 2008, litesh_b321 wrote: can get index of google for a web site which is developed in adobe flex? Yes. Is there any special technique to optimise the search engine for flex developed web site? No. The Google spider Just Works with your Flex application. Google is able to get to the content of a swf and spider it? Neat, but at the same time a little scary... -- Aaron Miller Chief Technology Officer Open Base Interactive, LLC. [EMAIL PROTECTED] http://www.openbaseinteractive.com
[flexcoders] Re: States
Yes Scott, any Flex component can have multiple states. Very cool, if you ask me; especially because of the effects and transitions that can be applied to state changes. Just search the help docs for view states and/or viewStack and you'll get a ton of info. -TH --- In flexcoders@yahoogroups.com, Scott [EMAIL PROTECTED] wrote: Can states be managed independently in components? In other words, can I have unique and active states in each of my components or can I only have one state for the whole application? Thanks!
[flexcoders] Re: Trick button into rendering mouseover/mouseout states
:-) --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: I think you can set up upSkin or overSkin, instead of just skin, but your PNGs are ok too. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Falling Sent: Thursday, July 10, 2008 10:14 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Trick button into rendering mouseover/mouseout states Do you mean the CSS from the framework? Because the only applicable css I've seen is: LinkButton { /* disabledIcon: null; */ disabledSkin: ClassReference(null); /* downIcon: null; */ downSkin: ClassReference(null); /* overIcon: null; */ overSkin: ClassReference(null); paddingLeft: 7; paddingRight: 7; /* selectedDisabledIcon: null; */ selectedDisabledSkin: ClassReference(null); /* selectedDownIcon: null; */ selectedDownSkin: ClassReference(null); /* selectedOverIcon: null; */ selectedOverSkin: ClassReference(null); /* selectedUpIcon: null; */ selectedUpSkin: ClassReference(null); skin: ClassReference(mx.skins.halo.LinkButtonSkin); /* upIcon: null; */ upSkin: ClassReference(null); } Setting my over skin to ClassReference(null) makes it appear (I think) like a normal button, while using ClassReference(mx.skins.halo.LinkButtonSkin) will make it behave like a typical LinkButton does when moused over. Again though, it currently looks great and behaves the way I want it to. Is there a reason for me to not do it just with an alpha image? Thanks On Thu, Jul 10, 2008 at 7:09 PM, Alex Harui [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Copy the LinkButton CSS and assign whatever was in upSkin to overSkin From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Dennis Falling Sent: Thursday, July 10, 2008 4:13 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Trick button into rendering mouseover/mouseout states So no way that's purely CSS? Is there a reason for me to not use my current hack (invisible PNG skins)? Visually and functionally it's what I want. On Jul 10, 2008, at 5:30 PM, Alex Harui [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Maybe setStyle(overSkin, getStyle(upSkin)) From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Dennis Falling Sent: Thursday, July 10, 2008 12:52 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Trick button into rendering mouseover/mouseout states I don't know of a way to give a link button a transparent mouse over background. On Jul 7, 2008, at 2:11 PM, nathanpdaniel [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I'm not sure but what's the difference between a link button and what you're trying to accomplish? It seems to me what you're looking for would be easily accomplished with a little CSS the LinkButton component rather than reskinning the Button component. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: Interesting. It should work because the icon and text is not a child of the skin. Maybe I don't understand what he wants or what you tried. From: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ups.com mailto:flexcoders%40yahoogroups.com [mailto:[EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Tim Hoff Sent: Monday, July 07, 2008 10:02 AM To: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Trick button into rendering mouseover/mouseout states Doesn't work if you want to keep the button icons visible. Wouldn't this also affect embedded fonts? -TH --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders mailto:flexcoders% 40yahoogroups.com http://40yahoogroups.com , Alex Harui aharui@ wrote: Skin the way you normally do, but set the alpha=0 From: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders mailto:flexcoders% 40yahoogroups.com http://40yahoogroups.com [mailto:[EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ups.com
Re: [flexcoders] Re: combobox fills in with blank element
I had a problem like that, try this: var newList:ArrayCollection(signalList); for (var i:int=0; iarr.length; i++) { if (!newList.contains(arr[i].name)) { newList.addItem(arr[i].name); } signalList = newList; I din´t compile this, no builder available here. Mauricio On Fri, Jul 11, 2008 at 12:45 PM, netdeep [EMAIL PROTECTED] wrote: Here is the relevant code from the component with the combobox: [Bindable] private var signalList:ArrayCollection = new ArrayCollection(); public function setSignals(sig:ArrayCollection):void { signalList = sig; } mx:ComboBox dataProvider={signalList} selectedIndex=0 toolTip={signal.selectedItem.name http://signal.selecteditem.name/} change=selectSignal() color=#00 id=signal labelField=name/ And here is my Application actionscript code for populating signalList: var arr:Array = archiveList.selectedItems; for (var i:int=0; iarr.length; i++) { if (!signalList.contains(arr[i].name)) { signalList.addItem(arr[i].name); } } var sort:Sort = new Sort(); // Set the sort field (case-insensitive) sort.fields = [new SortField(null,true)]; // Assign the Sort object to the view. signalList.sort = sort; // Apply the sort to the collection. signalList.refresh(); --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Show your code. Last time, someone was inadvertently putting a space into the CB's dataProvider From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of netdeep Sent: Friday, July 11, 2008 5:48 AM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] combobox fills in with blank element I have an ArrayCollection which is the dataProvider for a combobox in a custom component. However the ArrayCollection is located in the application so I assign it to the custom component via actionscript in the component. When I call addItem on the ArrayCollection the items go into the combobox, however the first element is always blank. How can I can get rid of this and get the combobox to add only the items I am adding to the ArrayCollection?
Re: [flexcoders] flex components in pure as3 app - possible?
Qi Labs has a good article on using Flex components in Flash ( which is kinda like what you are trying to do ) http://labs.qi-ideas.com/2007/12/25/using-flex-compiled-code-within-flash/ basically you package up all of the Flex framework classes you need and all of their dependancies and turn it into a swc that you can compile your AS3 code against. Unfortunately, Flex components tend to have A LOT of dependancies which makes it hard to keep file size down as Alex mentioned. Jamie On Thu, Jul 10, 2008 at 3:31 PM, Alex Harui [EMAIL PROTECTED] wrote: Flex components must live inside an Application. You can subclass Application and get everything to work via AS3, but it's a lot of work, and you won't save any SWF size From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jack_freud Sent: Thursday, July 10, 2008 10:34 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] flex components in pure as3 app - possible? Is it absurd to try to code a simple app in pure as3 that uses flex components like Button and Scrollbar? I've been trying and ran into problems with a bug in the Flex framework having to do with resources (http://bugs.adobe.com/jira/browse/SDK-12205), used Rob Jellinghaus's workaround, and came up with this simple code, below. The sprite will draw itself, but the button does not show up. Could anyone tell me if there's something basic I'm not understanding, or am I making a simple dumb mistake? Thanks! Jack package { import flash.display.Sprite; import flash.display.StageAlign; import flash.display.StageScaleMode; import flash.system.ApplicationDomain; import mx.containers.Canvas; import mx.controls.Button; import mx.controls.Label; import mx.core.Singleton; public class ShellAS3 extends Sprite { public function ShellAS3() { var resourceManagerImpl:Object = flash.system.ApplicationDomain.currentDomain.getDefinition(mx.resources::ResourceManagerImpl); Singleton.registerClass(mx.resources::IResourceManager,Class(resourceManagerImpl)); init(); } private function init():void{ stage.scaleMode = StageScaleMode.NO_SCALE; stage.align = StageAlign.TOP_LEFT; var ball:Sprite = new Sprite(); addChild(ball); ball.x = 20; ball.y = 100; ball.graphics.beginFill(0xff); ball.graphics.drawCircle(0,0,40); ball.graphics.endFill(); var bt:Button = new Button(); bt.x = 200; bt.y = 200; bt.width=100; bt.height = 20; bt.label = Click; addChild(bt); } } }
Re: [flexcoders] Re: Trick button into rendering mouseover/mouseout states
Right, I dug around for a while in the framework and CSS looking for the actual skin. In LinkButtonSkin.as, it specifies the upskin and overskin, but because this is all inside a single file and it uses the appropriate skin, it seems that I can't tell it to use the upskin for the overskin case overSkin: { drawRoundRect( 0, 0, w, h, cornerRadius, rollOverColor, 1); break; } If I ever run into any issues with my .png I can just copy the skin file and replace rollOverColor, 1 with 0, 0 for every state and I'll get the same effect. Thanks On Fri, Jul 11, 2008 at 10:55 AM, Alex Harui [EMAIL PROTECTED] wrote: I think you can set up upSkin or overSkin, instead of just skin, but your PNGs are ok too. -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Dennis Falling *Sent:* Thursday, July 10, 2008 10:14 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Trick button into rendering mouseover/mouseout states Do you mean the CSS from the framework? Because the only applicable css I've seen is: LinkButton { /*disabledIcon: null; */ disabledSkin: ClassReference(null); /*downIcon: null; */ downSkin: ClassReference(null); /*overIcon: null; */ overSkin: ClassReference(null); paddingLeft: 7; paddingRight: 7; /*selectedDisabledIcon: null; */ selectedDisabledSkin: ClassReference(null); /*selectedDownIcon: null; */ selectedDownSkin: ClassReference(null); /*selectedOverIcon: null; */ selectedOverSkin: ClassReference(null); /*selectedUpIcon: null; */ selectedUpSkin: ClassReference(null); skin: ClassReference(mx.skins.halo.LinkButtonSkin); /*upIcon: null; */ upSkin: ClassReference(null); } Setting my over skin to ClassReference(null) makes it appear (I think) like a normal button, while using ClassReference(mx.skins.halo.LinkButtonSkin) will make it behave like a typical LinkButton does when moused over. Again though, it currently looks great and behaves the way I want it to. Is there a reason for me to not do it just with an alpha image? Thanks On Thu, Jul 10, 2008 at 7:09 PM, Alex Harui [EMAIL PROTECTED] wrote: Copy the LinkButton CSS and assign whatever was in upSkin to overSkin -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Dennis Falling *Sent:* Thursday, July 10, 2008 4:13 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Trick button into rendering mouseover/mouseout states So no way that's purely CSS? Is there a reason for me to not use my current hack (invisible PNG skins)? Visually and functionally it's what I want. On Jul 10, 2008, at 5:30 PM, Alex Harui [EMAIL PROTECTED] wrote: Maybe setStyle(overSkin, getStyle(upSkin)) -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Dennis Falling *Sent:* Thursday, July 10, 2008 12:52 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Trick button into rendering mouseover/mouseout states I don't know of a way to give a link button a transparent mouse over background. On Jul 7, 2008, at 2:11 PM, nathanpdaniel [EMAIL PROTECTED] wrote: I'm not sure but what's the difference between a link button and what you're trying to accomplish? It seems to me what you're looking for would be easily accomplished with a little CSS the LinkButton component rather than reskinning the Button component. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Interesting. It should work because the icon and text is not a child of the skin. Maybe I don't understand what he wants or what you tried. From: [EMAIL PROTECTED] flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com ups.com flexcoders%40yahoogroups.com [mailto:[EMAIL PROTECTED] flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com ups.com flexcoders%40yahoogroups.com] On Behalf Of Tim Hoff Sent: Monday, July 07, 2008 10:02 AM To: [EMAIL PROTECTED] flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com ups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Trick button into rendering mouseover/mouseout states Doesn't work if you want to keep the button icons visible. Wouldn't this also affect embedded fonts? -TH --- In [EMAIL PROTECTED] flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com ups.com flexcoders%40yahoogroups.com flexcodersmailto:flexcodersflexcoders % 40yahoogroups.com , Alex Harui aharui@ wrote: Skin the way you normally do, but set the alpha=0 From: [EMAIL PROTECTED]
[flexcoders] GroupingCollection compile error
Hi I added a mx:GroupingCollection to my mxml. mx:GroupingCollection id=gc source={srv.lastResult.report.row} mx:Grouping mx:GroupingField name=name / /mx:Grouping /mx:GroupingCollection but it gives me a compile error: Component declarations are not allowed here. (Note: visual children must implement mx.core.IUIComponent) what is it? how can i fix it? Thanks! C. -- View this message in context: http://www.nabble.com/GroupingCollection-compile-error-tp18410128p18410128.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Label or Text ,how to control the vertical position of text inside the component
For example I have a Label with height of 14px , the distance of capitalized letter is 6px from top and 3px from bottom how can I move it up or down ? verticalCenter style looks like does not do what I want ( or I'm not using it right..) Thanks.
[flexcoders] Flash Player concurrent instance limitations
Our team began stress testing the server portion of our Flex application. We built our own stress tester that will fire up instances of Firefox on different machines which run a stress tester written in Flex. We were hoping to launch 80 instances per machine, so we could monitor traffic with about 2000 users, but Firefox crashes after about 35 instances, and blames its failure on the shockwave flash player. We've also attempted this test with IE and just like Firefox it crashes at around 35 instances. Is there a known issue with the Flash player that would cause this problem, and is there a version of the Flash player that could help us resolve this problem? We are running our stress tests on Windows XP computers, using Firefox, and the Flash player v. 9. Each request does send cookies back to the server. In fact if we have 35 instances running then each request will send down 35 cookies along with some information to help identify the correct cookie. I don't suspect the cookies are the problem. Any help would be appreciated. We definitely would like to be able to launch more instances of stress tester, so we can get a better picture of where limits are, right now we're just coasting through the stress tests.
[flexcoders] Re: Flex Profiler... what is the method [tincan]?
I see [tincan] taking 50% of time in the performance profile of my app. I'm using Flex Data Services's RemoteObject. However the performance profiling I'm doing is for some client-side interactions/animations long after results have returned from the RemoteObject call to the server. If [tincan] is related to NetConnection, I don't understand why it should figure in the performance after the call to the server is completed. Any pointers would be appreciated. My animation performance is horrendous and I sure would like to dig into the thing that is taking half the overall time. Thanks Vijay --- In flexcoders@yahoogroups.com, Thijs Triemstra | Collab [EMAIL PROTECTED] wrote: Tincan used to be the code name of Flash Communication Server 1.0, now known as Flash Media Server. Perhaps its RTMP related, are you using NetConnection or NetStream in your application? Thijs
[flexcoders] creating a World Clock and need a little help with the time and date
The Web Service I found returns a few key pieces of data but I'm not sure how to convert this in AS. Here's what it's returning: UtcOffsetTicks CurrentTimeTicks IsDaylightSaving I believe the first two are returning the time and/or date in nanoseconds but I'm not 100%, while the 3rd is true/false. Can anyone help with the math/AS here? This is the Service: http://www.quantumsoftware.com.au/WorldTimeWebService/WorldTimeWebServi ce.asmx Thank You, Mark
[flexcoders] Re: RTMP and Spring Security(Acegi) Issues
I've looked around the net and haven't found anything helpful. Any suggestions would be great. Thanks, Geoff --- In flexcoders@yahoogroups.com, Geoffrey [EMAIL PROTECTED] wrote: I'm wondering if anyone out there has implemented LiveCycle Data Services using Spring Security as their security layer? I'm having issues with RTMP communications between server/client, meaning I'm not getting any. I've modified our existing Java delegate to ast as the Assembler for a managed collection. When the Assembler's fill() method gets called, it tries to retrieve the desired information from our Service class. I get an AuthenticationCredentialsNotFoundException as seen below: error snippet org.acegisecurity.AuthenticationCredentialsNotFoundException: An Authentication object was not found in the SecurityContext at org.acegisecurity.intercept.AbstractSecurityInterceptor.credentialsNotFound(AbstractSecuri tyInterceptor.java:339) at org.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityIn terceptor.java:254) at org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodS ecurityInterceptor.java:63) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMetho dInvocation.java:161) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercep t(Cglib2AopProxy.java:630) ... /error snippet I think it's because the HTTPFlexSession is authenticated, but the RTMPFlexSession operates outside the context. I don't know how to make it authenticated, or to authenticate the client so that all sessions have valid credentials. Any suggestions would be appreciated. ~Geoff
Re: [flexcoders] So I guess I don't understand states
Yeah, I didn't understand states. Changing from one state to another always unplays the properties and styles set in the previous state. Not a fan of that at all but that explains all my confusion. On Tue, Jul 8, 2008 at 5:07 PM, dfalling [EMAIL PROTECTED] wrote: I thought I had states down pat until the last few days. **States:** normal state: - change viewstack to show data renderers no data state: - change viewstack to show no data error view fetching data state: - empty **Transitions:** to fetching data state: - display fetching data view from fetching data state: - hide fetching data view My problem is that whenever I went into the fetchingData state, it would properly perform the transitions for that state (showing the fetching data view), but would also incorrectly perform whatever code was inside the no data state. It also performed the code in the fetching data state. I created a function to watch the state changes and the no data state was never being entered, but its properties were definitely being applied. I now have it working by doing everything in transitions, but does anyone know why this problem would happen? I tried to write a small sample app to demo this problem, but of course it worked fine. Thanks
[flexcoders] Fullscreen and sort of maxHaight and maxWidth
IS there a way you can use the hardware scaling, and scale to a certain maxHeight and maxWidth? I'm using an actionscript project, so without the flex-framework So again fullscreen and like video or images, scale to a max height and width
[flexcoders] html component, different profile (means of firefox)
hi all, I'm trying to create test clients for my website using adobe AIR. Since the HTML instances in the application share the data, I cannot login with two users. I tried giving distinct userAgent values but it did not work. In firefox, by giving commandline option -no-remote, I can login to my website using different (firefox)profiles. How can I achieve this using AIR ? thanks.
[flexcoders] Flashplayer version 10/debug version
It seems that a STOMP client isn't constrained by the socket security policy limitation? Or is it that the debug player isn't constrained. My app uses an ActiveMQ message system and the public Stomp client. I know for sure that a Socket Policy server is not running on the box, because I shut it down, yet the messages still come through successfully. And I am connecting AFTER I shut down the policy server. I was expecting a security violation when I shut down the policy server. Can anyone tell me what's going on?
[flexcoders] Flex Text Selection Problem...
Hey, I'm new to the list and was hoping I could get a little help with a problem in flex that is driving me nuts. Here's the problem - when you have a TextInput control whose background color is black and whose text is white, how do you change the color of the selected text so that it's distinguishable from text that is not selected? I have tried changing every color-related property I could find but was not able to change the color of the selection. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=horizontal backgroundColor=#00 mx:Style TextInput { color: #FF; background-color: #00; backgroundAlpha: 0.0; dropShadowEnabled: false; borderThickness: 2; borderStyle: solid; font-size: 18; } /mx:Style mx:TextInput text=Try and Select Me - where is the selection highlighting? color=#FF/ /mx:Application Corey...
[flexcoders] ApplicationDomain.currentDomain.getDefinition
Hi, i'm trying to instantiate an object using: ApplicationDomain.currentDomain.getDefinition from a string passed in an xml file. As in AS2 this only works if you predefine a variable of that same object type. is there a way to get this working without predefining the variable. Thanks, dhimiter
[flexcoders] Parallel requests using RemoteObject with RTMP
Our flex app makes multiple backend calls for loading single webpage. Each call goes to database, that takes some processing time. We were using RemoteObject with my-amf. We could make our app send multiple requests at a time by setting distinct endpoints for each request. But, we found that in IE, we can have only 2 requests at a time. And we don't want to change registry for overriding this. So, we changed to RemoteObject with my-rtmp. But, now it looks like requests are being executed serially. We tried setting concurrency to multiple. Any idea what is happening ? We are using FDS 2.0.1.
[flexcoders] using mx:States, newly displayed fields are not getting tab focus
Oh mighty list, I need some help. I have a Canvas which I am using to layout a bunch of TextInput fields. Using mx:States, I am conditionally displaying other Canvas containers with more TextInput fields on the main canvas. The problem is that when I display the fields on the Canvas containers added with States, the fields are not added to the tab order. I tried calling various Validate() methods on the main Canvas, and have also tried setting the tabEnabled, tabChildren properties of the added Canvas containers. Any suggestions to fixing this? thanks! Dustin
RE: [flexcoders] Flex Text Selection Problem...
Unfortunately, FP9 doesn't support setting the text selection color. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Corey Bray Sent: Friday, July 11, 2008 2:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex Text Selection Problem... Hey, I'm new to the list and was hoping I could get a little help with a problem in flex that is driving me nuts. Here's the problem - when you have a TextInput control whose background color is black and whose text is white, how do you change the color of the selected text so that it's distinguishable from text that is not selected? I have tried changing every color-related property I could find but was not able to change the color of the selection. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=horizontal backgroundColor=#00 mx:Style TextInput { color: #FF; background-color: #00; backgroundAlpha: 0.0; dropShadowEnabled: false; borderThickness: 2; borderStyle: solid; font-size: 18; } /mx:Style mx:TextInput text=Try and Select Me - where is the selection highlighting? color=#FF/ /mx:Application Corey...
RE: [flexcoders] ApplicationDomain.currentDomain.getDefinition
You can load the classes in a separate swf into the same ApplicationDomain. But some SWF will need a variable of that type. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Durres76 Sent: Friday, July 11, 2008 1:56 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] ApplicationDomain.currentDomain.getDefinition Hi, i'm trying to instantiate an object using: ApplicationDomain.currentDomain.getDefinition from a string passed in an xml file. As in AS2 this only works if you predefine a variable of that same object type. is there a way to get this working without predefining the variable. Thanks, dhimiter
[flexcoders] looking for best Data Service
I've got a flex app that needs to update data routinely (about once per minute). The data is stored in a database on my server and there could be several 10's to hundreds of users who are looking at the data simultaneously via the flex app. The data is represented by colored dots on a map. When the data changes, and it does about once per minute, I basically need to update the color of one or potentially several thousand objects on the map. I'd like for the changes to be seen by all users at the same time (data push right?). I've seen a tutorial online (the horse race one) about doing something similar, but it required the Adobe Media Server on the server side. Is there a cheaper and better way to do this using one of the open source AMF's out there? I've played around with AMF::Perl, but it doesn't seem to have the data push capability, only responds to requests as far as I can tell. Has anyone done something like this? If so what did you use? I'm working with Win2k3, IIS6, and SQL Express if that makes a difference. Currently, I have a program running on the server creating an XML file with the color of the objects as one of the attributes. My flex app routinely reloads this file, but this is cumbersome as it has to reload all the objects and all users of the app don't update simultaneously since the timers all start at differnet times. Looking for some good advice and would be willing to pay for expert help. Regards, Cameron
RE: [flexcoders] Flash Player concurrent instance limitations
One browser launching 35 instances? I wouldn't expect it to work. 35 browsers with one instance each? Probably depends on memory From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of justneedauniquename Sent: Friday, July 11, 2008 11:04 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flash Player concurrent instance limitations Our team began stress testing the server portion of our Flex application. We built our own stress tester that will fire up instances of Firefox on different machines which run a stress tester written in Flex. We were hoping to launch 80 instances per machine, so we could monitor traffic with about 2000 users, but Firefox crashes after about 35 instances, and blames its failure on the shockwave flash player. We've also attempted this test with IE and just like Firefox it crashes at around 35 instances. Is there a known issue with the Flash player that would cause this problem, and is there a version of the Flash player that could help us resolve this problem? We are running our stress tests on Windows XP computers, using Firefox, and the Flash player v. 9. Each request does send cookies back to the server. In fact if we have 35 instances running then each request will send down 35 cookies along with some information to help identify the correct cookie. I don't suspect the cookies are the problem. Any help would be appreciated. We definitely would like to be able to launch more instances of stress tester, so we can get a better picture of where limits are, right now we're just coasting through the stress tests.
RE: [flexcoders] Label or Text ,how to control the vertical position of text inside the component
If verticalAlign doesn't work, you'll have to subclass and position the internal textField From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of alex Sent: Friday, July 11, 2008 11:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Label or Text ,how to control the vertical position of text inside the component For example I have a Label with height of 14px , the distance of capitalized letter is 6px from top and 3px from bottom how can I move it up or down ? verticalCenter style looks like does not do what I want ( or I'm not using it right..) Thanks.
RE: [flexcoders] Re: Flex Profiler... what is the method [tincan]?
[tincan] is NetConnection. It is probably doing the deserialization of the server response. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Vijay Ganesan Sent: Friday, July 11, 2008 12:53 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex Profiler... what is the method [tincan]? I see [tincan] taking 50% of time in the performance profile of my app. I'm using Flex Data Services's RemoteObject. However the performance profiling I'm doing is for some client-side interactions/animations long after results have returned from the RemoteObject call to the server. If [tincan] is related to NetConnection, I don't understand why it should figure in the performance after the call to the server is completed. Any pointers would be appreciated. My animation performance is horrendous and I sure would like to dig into the thing that is taking half the overall time. Thanks Vijay --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Thijs Triemstra | Collab [EMAIL PROTECTED] wrote: Tincan used to be the code name of Flash Communication Server 1.0, now known as Flash Media Server. Perhaps its RTMP related, are you using NetConnection or NetStream in your application? Thijs
Re: [flexcoders] Flex Text Selection Problem...
Thanks Gordon...that will save me lots of time. Gordon Smith wrote: Unfortunately, FP9 doesn't support setting the text selection color. Gordon Smith Adobe Flex SDK Team *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Corey Bray *Sent:* Friday, July 11, 2008 2:37 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Flex Text Selection Problem... Hey, I'm new to the list and was hoping I could get a little help with a problem in flex that is driving me nuts. Here's the problem - when you have a TextInput control whose background color is black and whose text is white, how do you change the color of the selected text so that it's distinguishable from text that is not selected? I have tried changing every color-related property I could find but was not able to change the color of the selection. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=horizontal backgroundColor=#00 mx:Style TextInput { color: #FF; background-color: #00; backgroundAlpha: 0.0; dropShadowEnabled: false; borderThickness: 2; borderStyle: solid; font-size: 18; } /mx:Style mx:TextInput text=Try and Select Me - where is the selection highlighting? color=#FF/ /mx:Application Corey...
[flexcoders] Calling AS3 functions
I'm working on a logon class in Flex 3. I've got a login.mxml which controls the overall views (logon/register/logout) all in the same box depending on what state the user is in. In the loginForm.mxml (included in the logon.mxml), I've got a function called protected returnName():String Function I want to call from the loginForm AS3 script: protected function returnName():String (I've also tried public in case it was not available in that area of code) { return this.username.text; } Snippet from my mxml code: Xmlns:login=com.ft.views.login.*; ... mx:State name=loggedIn mx:AddChild position=lastChild mx:Panel width=75% height=50% layout=vertical verticalScrollPolicy=off horizontalScrollPolicy=off mx:VBox width=100% height=100% verticalScrollPolicy=off horizontalScrollPolicy=off mx:Text text={returnEmail()} is logged on; / - line in question login:LogoutForm logoutSuccessful=this.currentState='onLogin()'; / /mx:VBox /mx:Panel /mx:AddChild /mx:State I can't seem to figure out how to reference the method as I get the error: 1180: Call to a possibly undefined method returnName. I've tried: mx:Text text={loginForm.returnEmail()} is logged on; / mx:Text text={login.returnEmail()} is logged on; / Among many others... This is probably pretty simple. I really appreciate your help.
RE: [flexcoders] Label or Text ,how to control the vertical position of text inside the component
Label supports paddingLeft, paddingRight, paddingTop, and paddingBottom. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Friday, July 11, 2008 4:00 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Label or Text ,how to control the vertical position of text inside the component If verticalAlign doesn't work, you'll have to subclass and position the internal textField From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of alex Sent: Friday, July 11, 2008 11:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Label or Text ,how to control the vertical position of text inside the component For example I have a Label with height of 14px , the distance of capitalized letter is 6px from top and 3px from bottom how can I move it up or down ? verticalCenter style looks like does not do what I want ( or I'm not using it right..) Thanks.
Re: [flexcoders] Calling AS3 functions
All AS code needs to be inside the curly braces and you need to concatenate your static string to the string returned from your function mx:Text text={returnEmail() + ' is logged on'} / On Fri, Jul 11, 2008 at 7:06 PM, Scott [EMAIL PROTECTED] wrote: I'm working on a logon class in Flex 3. I've got a login.mxml which controls the overall views (logon/register/logout) all in the same box depending on what state the user is in. In the loginForm.mxml (included in the logon.mxml), I've got a function called protected returnName():String Function I want to call from the loginForm AS3 script: *protected* *function* returnName():String (I've also tried public in case it was not available in that area of code) { *return* *this*.username.text; } Snippet from my mxml code: Xmlns:login=com.ft.views.login.*; ... mx:State name=loggedIn mx:AddChild position=lastChild mx:Panel width=75% height=50% layout=vertical verticalScrollPolicy=off horizontalScrollPolicy=off mx:VBox width=100% height=100% verticalScrollPolicy=off horizontalScrollPolicy=off mx:Text text={returnEmail()} is logged on; / ß--- line in question login:LogoutForm logoutSuccessful=this.currentState='onLogin()'; / /mx:VBox /mx:Panel /mx:AddChild /mx:State I can't seem to figure out how to reference the method as I get the error: 1180: Call to a possibly undefined method returnName. I've tried: mx:Text text={loginForm.returnEmail()} is logged on; / mx:Text text={login.returnEmail()} is logged on; / Among many others… This is probably pretty simple. I really appreciate your help.
RE: [flexcoders] using mx:States, newly displayed fields are not getting tab focus
Can you make a small test case? You should'n't set tabEnabled on a container, and it should already have tabChildren = true. If you can walk downward via tabChildren=troe through the container hierarchy you should be able to tab to the components in the containers. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of icodeflex Sent: Friday, July 11, 2008 1:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] using mx:States, newly displayed fields are not getting tab focus Oh mighty list, I need some help. I have a Canvas which I am using to layout a bunch of TextInput fields. Using mx:States, I am conditionally displaying other Canvas containers with more TextInput fields on the main canvas. The problem is that when I display the fields on the Canvas containers added with States, the fields are not added to the tab order. I tried calling various Validate() methods on the main Canvas, and have also tried setting the tabEnabled, tabChildren properties of the added Canvas containers. Any suggestions to fixing this? thanks! Dustin
RE: [flexcoders] So I guess I don't understand states
I don't use states much, but aren't there derived states so it will only unplay to a certain point? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Falling Sent: Friday, July 11, 2008 1:46 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] So I guess I don't understand states Yeah, I didn't understand states. Changing from one state to another always unplays the properties and styles set in the previous state. Not a fan of that at all but that explains all my confusion. On Tue, Jul 8, 2008 at 5:07 PM, dfalling [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I thought I had states down pat until the last few days. **States:** normal state: - change viewstack to show data renderers no data state: - change viewstack to show no data error view fetching data state: - empty **Transitions:** to fetching data state: - display fetching data view from fetching data state: - hide fetching data view My problem is that whenever I went into the fetchingData state, it would properly perform the transitions for that state (showing the fetching data view), but would also incorrectly perform whatever code was inside the no data state. It also performed the code in the fetching data state. I created a function to watch the state changes and the no data state was never being entered, but its properties were definitely being applied. I now have it working by doing everything in transitions, but does anyone know why this problem would happen? I tried to write a small sample app to demo this problem, but of course it worked fine. Thanks
Re: [flexcoders] Calling AS3 functions
I'm still getting the same error... The class exists in the loginForm.mxml but the mxml code exists in the login.mxml file. Is there something special I have to do to use the functions that exist in the other mxml file? Better yet, is there a way to access variables other than setting up a function in the active script? Thanks much. --- All AS code needs to be inside the curly braces and you need to concatenate your static string to the string returned from your function mx:Text text={returnEmail() + ' is logged on'} / -- I'm working on a logon class in Flex 3. I've got a login.mxml which controls the overall views (logon/register/logout) all in the same box depending on what state the user is in. In the loginForm.mxml (included in the logon.mxml), I've got a function called protected returnName():String Function I want to call from the loginForm AS3 script: protected function returnName():String (I've also tried public in case it was not available in that area of code) { return this.username.text; } Snippet from my mxml code: Xmlns:login=com.ft.views.login.*; ... mx:State name=loggedIn mx:AddChild position=lastChild mx:Panel width=75% height=50% layout=vertical verticalScrollPolicy=off horizontalScrollPolicy=off mx:VBox width=100% height=100% verticalScrollPolicy=off horizontalScrollPolicy=off mx:Text text={returnEmail()} is logged on; / - line in question login:LogoutForm logoutSuccessful=this.currentState='onLogin()'; / /mx:VBox /mx:Panel /mx:AddChild /mx:State I can't seem to figure out how to reference the method as I get the error: 1180: Call to a possibly undefined method returnName. I've tried: mx:Text text={loginForm.returnEmail()} is logged on; / mx:Text text={login.returnEmail()} is logged on; / Among many others... This is probably pretty simple. I really appreciate your help. -- This message has been scanned for viruses and dangerous content by MailScanner http://www.mailscanner.info/ , and is believed to be clean.
Re: [flexcoders] So I guess I don't understand states
Not sure what you mean...I didn't research it beyond figuring out my problem... I had a viewstack with normal and no data views and wanted it to stay the same (either in no data or normal) when going to the updating/downloading state. Was frustrated when my normal state was inexplicably showing the no data view when it went to the updating state. I finally figured out it was undoing the current state (normal) and reverting back to the previous values, which incidentally were applied by the no data state. Once I moved all the code to transitions which are not undone, it worked fine. My current understanding is that anything you wish to be undone after you move to another state should be done in states. Any effect or permanent change should be done in transitions. On Fri, Jul 11, 2008 at 8:11 PM, Alex Harui [EMAIL PROTECTED] wrote: I don't use states much, but aren't there derived states so it will only unplay to a certain point? -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Dennis Falling *Sent:* Friday, July 11, 2008 1:46 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] So I guess I don't understand states Yeah, I didn't understand states. Changing from one state to another always unplays the properties and styles set in the previous state. Not a fan of that at all but that explains all my confusion. On Tue, Jul 8, 2008 at 5:07 PM, dfalling [EMAIL PROTECTED] wrote: I thought I had states down pat until the last few days. **States:** normal state: - change viewstack to show data renderers no data state: - change viewstack to show no data error view fetching data state: - empty **Transitions:** to fetching data state: - display fetching data view from fetching data state: - hide fetching data view My problem is that whenever I went into the fetchingData state, it would properly perform the transitions for that state (showing the fetching data view), but would also incorrectly perform whatever code was inside the no data state. It also performed the code in the fetching data state. I created a function to watch the state changes and the no data state was never being entered, but its properties were definitely being applied. I now have it working by doing everything in transitions, but does anyone know why this problem would happen? I tried to write a small sample app to demo this problem, but of course it worked fine. Thanks
RE: [flexcoders] So I guess I don't understand states
There's a basedOn property. I think it means that a state, when un-done, will only rollback to the basedOn state. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Falling Sent: Friday, July 11, 2008 10:13 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] So I guess I don't understand states Not sure what you mean...I didn't research it beyond figuring out my problem... I had a viewstack with normal and no data views and wanted it to stay the same (either in no data or normal) when going to the updating/downloading state. Was frustrated when my normal state was inexplicably showing the no data view when it went to the updating state. I finally figured out it was undoing the current state (normal) and reverting back to the previous values, which incidentally were applied by the no data state. Once I moved all the code to transitions which are not undone, it worked fine. My current understanding is that anything you wish to be undone after you move to another state should be done in states. Any effect or permanent change should be done in transitions. On Fri, Jul 11, 2008 at 8:11 PM, Alex Harui [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I don't use states much, but aren't there derived states so it will only unplay to a certain point? From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Dennis Falling Sent: Friday, July 11, 2008 1:46 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] So I guess I don't understand states Yeah, I didn't understand states. Changing from one state to another always unplays the properties and styles set in the previous state. Not a fan of that at all but that explains all my confusion. On Tue, Jul 8, 2008 at 5:07 PM, dfalling [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I thought I had states down pat until the last few days. **States:** normal state: - change viewstack to show data renderers no data state: - change viewstack to show no data error view fetching data state: - empty **Transitions:** to fetching data state: - display fetching data view from fetching data state: - hide fetching data view My problem is that whenever I went into the fetchingData state, it would properly perform the transitions for that state (showing the fetching data view), but would also incorrectly perform whatever code was inside the no data state. It also performed the code in the fetching data state. I created a function to watch the state changes and the no data state was never being entered, but its properties were definitely being applied. I now have it working by doing everything in transitions, but does anyone know why this problem would happen? I tried to write a small sample app to demo this problem, but of course it worked fine. Thanks
RE: [flexcoders] Calling AS3 functions
Each mxml has its own (document) scope. It essentially defines a class. A method must be public in order to be accessed from outside the class, you cannot access protected from outside the class. Your snippet doesn't have id's or show the relationship between the two classes so it is hard to say why it isn't working. Also, you appear to be trying to call returnEmail when the snippet only showed a returnName method. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Scott Sent: Friday, July 11, 2008 8:30 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Calling AS3 functions I'm still getting the same error... The class exists in the loginForm.mxml but the mxml code exists in the login.mxml file. Is there something special I have to do to use the functions that exist in the other mxml file? Better yet, is there a way to access variables other than setting up a function in the active script? Thanks much. --- All AS code needs to be inside the curly braces and you need to concatenate your static string to the string returned from your function mx:Text text={returnEmail() + ' is logged on'} / -- I'm working on a logon class in Flex 3. I've got a login.mxml which controls the overall views (logon/register/logout) all in the same box depending on what state the user is in. In the loginForm.mxml (included in the logon.mxml), I've got a function called protected returnName():String Function I want to call from the loginForm AS3 script: protected function returnName():String (I've also tried public in case it was not available in that area of code) { return this.username.text; } Snippet from my mxml code: Xmlns:login=com.ft.views.login.*; ... mx:State name=loggedIn mx:AddChild position=lastChild mx:Panel width=75% height=50% layout=vertical verticalScrollPolicy=off horizontalScrollPolicy=off mx:VBox width=100% height=100% verticalScrollPolicy=off horizontalScrollPolicy=off mx:Text text={returnEmail()} is logged on; / - line in question login:LogoutForm logoutSuccessful=this.currentState='onLogin()'; / /mx:VBox /mx:Panel /mx:AddChild /mx:State I can't seem to figure out how to reference the method as I get the error: 1180: Call to a possibly undefined method returnName. I've tried: mx:Text text={loginForm.returnEmail()} is logged on; / mx:Text text={login.returnEmail()} is logged on; / Among many others... This is probably pretty simple. I really appreciate your help. -- This message has been scanned for viruses and dangerous content by MailScanner http://www.mailscanner.info/ , and is believed to be clean.