RE: [flexcoders] Flex Efficiency
Right click on the app and show your redraw regions. is there a solid red rectangle around the entire application? If so - the entire stage is getting re-circulated in redraw cycles. If the small swfs/areas are getting hammered then you'll see that as well. Rick Winscot From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh McDonald Sent: Saturday, June 21, 2008 2:51 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex Efficiency It's possible that your background SWFs are doing something that makes the player's filter code nervous, and so either drop shadow, or the blur background filter is having to be re-run every frame, which will own your CPU since it's not accelerated (afaik). Just an idea, but could be somewhere to start your investigations :) -Josh On Sat, Jun 21, 2008 at 3:25 PM, Alex Harui [EMAIL PROTECTED] wrote: The profiler will help you find inefficiencies in your app. Loading lots of SWFs is, of course, going to eat resources. _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kenny14390 Sent: Friday, June 20, 2008 9:44 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex Efficiency I'm making a simple game in Flex and I'm noticing a lot of performance issues. The game is very easy and simple: you have 25 tiles and you need to click them one at a time to reveal the prize (or no prize) behind them - match three like prizes and win. Getting everything on the screen and coding it together wasn't bad, but I'm noticing a considerable lack in performance when the game is running. To be honest, I have a lot of SWF files in there, and I'm making heavy use of the Move transition (usually for each of the 25 tiles to animate them). Some of the SWFs are on an infinite loop and those are probably eating up a good amount of the resources. Another thing that was surprising was the CPU usage eaten up when I added a PopUp to the application. The browser page seems to freeze while it's open and only after I close the PopUp does the page resume its task. I guess I can get away without it, but it was odd how that happened. Is this common to have such monstrous applications, while using the features I mentioned? Is there something wrong with my programming instead? If I run the game in Firefox 3, it is using well over 150M of memory and 50% of my CPU. When the PopUp is open, that spikes to 95%! What can I do to alleviate this stress on the computer? -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
Re: [flexcoders] Flex Efficiency
Yes, I will definitely look into it, but if there is already an article addressing this particular problem it would be better to check that first to see if I can even apply it in this case. Thanks On Mon, Jun 23, 2008 at 9:13 AM, Alex Harui [EMAIL PROTECTED] wrote: I suggest you look at the examples for how modules work. I do not have time to customize examples
Re: [flexcoders] Problem While Downcasting Flex Modules
Alex thanks for your reply, basically my application has total 10 screens and 6 out 10 screens will be used in other flex applcations , so what i have decided is to make all 10 screens as module and 10 presenter classes for each module. (Do you think it is a good approach?). Now as you said use Interface, their is no problem in using interface, but my presenter class needs to know the actual Module name so that i can access the individual components of modules in presenter class. one more thing my Modules are passive view . can you help me how to solve this problem. becuse my presenter classes are totaly dependente view(Module).. - Original Message - From: Alex Harui To: flexcoders@yahoogroups.com Sent: Sunday, June 22, 2008 3:12 AM Subject: RE: [flexcoders] Problem While Downcasting Flex Modules Your example doesn't make sense because if you have the types FlexModule1 and FlexModule2 in the main app, those classes are linked into the main app and you've defeated the whole point of modules. You should be using interfaces instead. However, by default, a module will be compiled without a package (actually package {} so it won't be of type modules.FlexModule1, it will just be FlexModule1 -- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Saturday, June 21, 2008 2:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problem While Downcasting Flex Modules HI everyone, I am facing a problem while down casting the flex module. I have created two flex modules called FlexModule1.mxml and FlexModule2.mxml. These both modules contain the same code. I have placed FlexModule1.mxml under modules folder(modules/FlexModule1.mxml) and FlexModule2.mxlm @ application root. Here is code for FlexModul1.mxlml (and FlexModule2.mxml as both modules have identical code) ?xml version=1.0 encoding=utf-8? mx:Module xmlns:mx=http://www.adobe.com/2006/mxml; width=400 height=300 mx:Script ![CDATA[ public function Foo( pstr:String ):String { trace( In Method Foo ); return Foo + pstr ; } ]] /mx:Script mx:Panel width=100% height=100% mx:Label id=MY_LABEL text=I AM MODULE-1 fontSize=20 color=green/ /mx:Panel /mx:Module And here is Main class code. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical creationComplete={loadModule()} mx:Script ![CDATA[ import mx.modules.ModuleManager; import mx.modules.IModuleInfo; import modules.FlexModule1; import mx.events.FlexEvent; import mx.events.ModuleEvent; import mx.modules.ModuleLoader; public var moduleLoader:ModuleLoader; public var moduleInfo:IModuleInfo; public function loadModule( ):void { moduleLoader = new ModuleLoader(); moduleLoader.addEventListener( ModuleEvent.READY , moduleReadyEventHandler ); //moduleLoader.url = FlexModule2.swf; //This is fine module loaded moduleLoader.url = modules\\FlexModule1.swf; //this fine too moduleLoader.loadModule(); } public function moduleReadyEventHandler( evt:ModuleEvent ):void { trace( Module Ready Event Handler ); this.addChild( moduleLoader ); //(moduleLoader.child as FlexModule2).Foo( '' ) ; // this if fine method Foo() called (moduleLoader.child as FlexModule1).Foo( '' ) ; // Null pointer Exception } ]] /mx:Script /mx:Application Both modules are loading without any problem but the error occurs when I try to downcast FlexModule1.mxml. There is no down casting problem with FLexModule2.mxlm. I think the problem is with different folder i have used for FlexModule1.mxml , may b i am wrong. Please let me know where is the problem.
[flexcoders] What could keep debug mode from working
Last week working in FB3 the debug mode worked as it always had...F11 would switch perspective to Flex Debugging (if not already there) and would stop at breakpoints. Opening it up today I find that none of my projects are hitting any breakpoints. I can manually switch between Dev and Debug perspectives that switch is not automatically happening...breakpoints show as enabled but nothing is getting hit. I can manually clear the debug panel (remove all terminated launches) and upon hitting Debug that panel will display the same thing it typically does when terminating debug mode: terminatedTTSCampus [Flex Application] terminatedfile:/C:/Documents%20and%20Settings/Steve/My%20Documents/Flex%20Builder%203/myProject/bin-debug/myProbject.html terminated, exit value: 0file:/C:/Documents%20and%20Settings/Steve/My%20Documents/Flex%20Builder%203/myProject/bin-debug/myProject.html I'm using FB3 standalone w/ player version 9,0.115.0 debug version being reported by adobe's Version Test page. I've tried multiple projects and workspaces. I've rebooted. I've restored defaults in the settings panel. What could cause this? tx --steve...
[flexcoders] Re: What could keep debug mode from working
Sorry...just found the FF3 thread. - working on removing Greasemonkey now.
[flexcoders] LinkBar - Image instead of text?
Hi, can I put an image, instead of a string, as an item in a linkbar? Thanks, -c.
[flexcoders] Re: LinkBar - Image instead of text?
Already found the answer. mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical verticalAlign=middle backgroundColor=white mx:Array id=arr mx:Object label=Button ico=@Embed('assets/Button.png') / mx:Object label=ButtonBar ico=@Embed('assets/ButtonBar.png') / mx:Object label=CheckBox ico=@Embed('assets/CheckBox.png') / mx:Object label=ColorPicker ico=@Embed('assets/ColorPicker.png') / /mx:Array mx:LinkBar id=linkBar dataProvider={arr} iconField=ico / /mx:Application Sorry, -c. --- In flexcoders@yahoogroups.com, cesarerocchi [EMAIL PROTECTED] wrote: Hi, can I put an image, instead of a string, as an item in a linkbar? Thanks, -c.
[flexcoders] Re: Some interesting flexcoders stats
Sorry, I meant what would the tables look like (model)? --- In flexcoders@yahoogroups.com, Doug McCune [EMAIL PROTECTED] wrote: I'm planning on letting people download the sqlite database file. That's a single file (with the .db extension I think) that you can load into any air app and access. I could also do a CSV, but it's a lot of data (hell, excel can't even load that many rows). Doug On Sun, Jun 22, 2008 at 10:18 PM, arieljake [EMAIL PROTECTED] wrote: What will the data format be so we can plan ahead? --- In flexcoders@yahoogroups.com, Doug McCune doug@ wrote: Within then next week I hope to have a fairly complete dataset of date, subject, and name of who posted for close to all the messages ever posted to flexcoders. I might also do a second pass to get full text of each message too. I say close to all because I'm scraping the mail archive website and that only shows 95,000 message, but in reality I think there are more like 116,000. Plus some of the messages from 2004 seems to have gotten a bit jacked on the mail archive site and don't show up with the proper subjects and senders (there's a block of a few hundred). But once I get that I'm going to post a sqlite DB file that has it all that you can load into an air app to play with. I'll let y'all know when you can start playing with the data. Doug On Sun, Jun 22, 2008 at 5:29 PM, Tim Hoff TimHoff@ wrote: flexCodersStatus = (mostRecentlyPostedThread == The subject that shall not be named! ? Banned : Active); -TH :-) --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote: Hey folks, Given the recent big thread on the subject that shall not be named, my colleague Suchit went ahead and got some interesting membership stats since the beginning of the list. Number of people who: Joined group == 14036 Left group == 3686 Were Banned == 631 Got Removed == 359 I would say losing ~25% over time isn't too bad. That said we haven't done analysis to see if there's a trend in dates or if we're losing more people recently, etc. But interesting info for starters... Matt
[flexcoders] How to Control SWF animation
Hi All, I need to control the SWFs in my application.Stop and Play is enough.In the application i am working is, downloading SWF from a server and the downloaded SWF needs to play in the screen but there is no communication between that SWF and flex.I can play this SWF after downloading, but i could not be able to stop it.If anybody knows about this, reply to this community. -siva
[flexcoders] Getting referer url
How would you do this? It´s possible to do this in actionscript without using javascript?
[flexcoders] Server side sorting and paging while scrolling
Hi, I have a requirement which is as follows: Initially bind first 10 records from 5000 reocrds to the datagrid. On scrolling the scrollbar i need to bind another set of records and so on. Scrolling should be on done both upwards and downwards. i.e. when we go upwards we need to get previous set of records and downwards we need to get next set of records. Another requirement is I need to implement Server-Side Sorting on datagrid. Can anyone help me in doing so?. Thanks in advance...
[flexcoders] AIR/LCDS/EJB Authentication lost when a different RTMP worker thread is used
Hi! I am setting up the security for Flex to work together with the EJB 3 Container security. The user should login within the AIR application via a custom login screen and the authentication should be verified against the configured JBoss login module. For all further ds requests the authorization check should be done for every EJB method by the EJB container. All EJB methods have a @javax.annotation.security.RolesAllowed(...) anotation. The EJBs are called within an assembler. In principle the process works until the EJB is called by a new RTMP worker thread. Within the new RTMP thread the principal is null and the authorization fails. I have setup the security as follows: * The custom security and tomcat valve have been setup as described in the lcds docu (copy jars, copy context.xml) * The services-config.xml contains the following part: ... security login-command class=flex.messaging.security.TomcatLoginCommand server=all / security-constraint id=basic-read-access auth-methodCustom/auth-method roles roleFLEX/role /roles /security-constraint /security ... * The data-management-config.xml contains the following part: destination id=id security security-constraint ref=basic-read-access/ /security adapter ref=java-dao / ... * The login is performed within the mxml as follows: var token:AsyncToken = ds.connect(); token.addResponder( new AsyncResponder( function():void { if (ds.connected) { var channelSet : ChannelSet = ds.channelSet; var token : AsyncToken = channelSet.login(user, pwd); token.addResponder(new AsyncResponder ( function(event:ResultEvent, token:Object=null):void { switch(event.result) { case success: Alert.show(Login success); ... I get the success result and when the first ejb calls are performed from the data service assembler the prinicipal is set and the authorization works. But if the EJB is called within another RTMP worker thread no principal is set and the authorization fails. How can I share the security login context over more than one worker thread? Thanks in advance, taze
[flexcoders] Change the header color of the clicked column
Hi, Can anyone help me in changing the header color of the clicked column on implementing sorting? Please help me in solving this. Thanks in advance.
[flexcoders] Automatic programatically controls binding (i18n)
Hello, recently i could make my app in two langs, but i have one problem, i wrote a class I18n with one static method called getLanguageSelector who gives me a Label and a ComboBox in a container. In the combobox the user can change his language. When the user changes his language, the app changes the localchain property of resourceManager. My problem is, all the controls in the mxml app changes his labels automatically, but the labels, like the label i return in the method getLanguageSelector does not change. I tried to make the label [Bindable] but it does not work. If you have some ideas, please tell me. Thanks. The I18n Class looks like this: public class I18n { public static const locales:Array = [en_US, es_ES]; [Bindable] private static var _container:HBox; public static function getLanguageSelector():DisplayObject { if(_container == null) { _container = new HBox(); var _combo:ComboBox = new ComboBox(); var _label:Label = new Label(); //display items var languages:Array = [English, Espanol]; _label.name = lblLang; _combo.name = cmbLang; _combo.dataProvider = languages; //select default language _combo.selectedIndex = 0; ResourceManager.getInstance().localeChain = [locales[_combo.selectedIndex]]; _label.text = ResourceManager.getInstance().getString('general', 'change_language'); _label.includeInLayout = true; _combo.addEventListener(Event.CHANGE, I18n.onSelectionChange); _container.addChild(_label); _container.addChild(_combo); } return _container; } public static function onSelectionChange(e:Event):void { ResourceManager.getInstance().localeChain = [locales[(_container.getChildByName(cmbLang) as ComboBox).selectedIndex]]; } } Best Regards. -- Matías Nicolás Sommi
Re: [flexcoders] Re: Return data to FileReference
Worked as expected. Thanks to all of you. On Sun, Jun 22, 2008 at 7:34 PM, Rich Tretola [EMAIL PROTECTED] wrote: I will try this Monday morning and let you all know how it works out. Thanks Rich On Fri, Jun 20, 2008 at 8:35 PM, Tracy Spratt [EMAIL PROTECTED] wrote: Yeah, I should be using DataEvent.UPLOAD_COMPLETE_DATA, but I am not, I am using Event.COMPLETE, but I am still getting access to the .data Property and am seeing my XML status returned correctly. As Doug pointed out, this may just be a lucky coincidence. At any rate, I think Rich's problem is solved, and I will correct my code to use the the correct event. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Santiago Gonzales Sent: Friday, June 20, 2008 7:24 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Return data to FileReference I think he is referring to the two different types of events that you can listen for on a FileReference. 1) Event.COMPLETE which does not have a data property (Event Class) and 2) DataEvent.UPLOAD_COMPLETE_DATA which does have the property (DataEvent Class) Both are in the docs for file reference. --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Are you saying, complete event is of type flash.events.Event and does not have a data property... because of the docs? (which do not list a data property) Because I am not proposing a theoretical solution, this is operating code. I am a bit confused, though about the event datatypes. While I am listening for flash.events.Event from Filereference, my listener is typing the argument as DataEvent, and no exception is thrown, and I can access the .data property. Per the docs, flash.events.DataEvent.UPLOAD_COMPLETE_DATA http://127.0.0.1:54009/help/nftopic/com.adobe.flexbuilder.help/langref/ flash/events/DataEvent.html#UPLOAD_COMPLETE_DATA is the correct event to use. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rich Tretola Sent: Friday, June 20, 2008 2:41 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Return data to FileReference OK, the problem with your solution is that the FileReference complete event is of type flash.events.Event and does not have a data property and the target is the FileReference. On Fri, Jun 20, 2008 at 2:11 PM, Tracy Spratt [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I just verified it, my handler is working as expected and I can access the xml status node I am having the server return. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Tracy Spratt Sent: Friday, June 20, 2008 1:58 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Return data to FileReference Hmm, looks like I am just using the Event.COMPLETE event. Its been awhile since I ran this code, let me double check it. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Tracy Spratt Sent: Friday, June 20, 2008 1:55 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Return data to FileReference The event.result should contain whatever your server sends back, just like with a normal httpservice request. Below is the code I am using. I send back an xml status node, but you could send anything: Tracy // Called on upload complete private function onUploadComplete(event:DataEvent):void { var sData:String = event.data; var xmlStatus:XML = XML(sData); if ([EMAIL PROTECTED] == error) { this.height = 200; lbStatus.setStyle(color,red); lbStatus.text = Error Uploading File:; txtError.text = [EMAIL PROTECTED]; sCloseMode = ioerror //_timerStatus.delay = 6000; //_timerStatus.start() } else { _numCurrentUpload++; if (_numCurrentUpload _aUploadFiles.length) { startUpload(false); } else { lbStatus.text = Upload successful; sCloseMode = success _timerStatus.start() } saveProjDoc(); } }//onUploadComplete From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Rich Tretola Sent: Friday, June 20, 2008 1:16 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Return data to FileReference Yes, but that file name is the name that was selected by the user, not the one that the file was actually renamed to by the servlet. On Fri, Jun 20, 2008 at 1:18 PM, Tracy Spratt [EMAIL PROTECTED]
[flexcoders] Database Changes not recognized
I added two field to the Mamp database (local) then did a create app from database and it did not include them. I quit out, restarted, rebooted the machine, etc etc. This is insane. What is going on here, why does the app have the memory of an elephant for the original data structure and refuse to adapt to any changes no matter what I do? Thanks Dan Pride
RES: [flexcoders] Getting referer url
Hi, you can do that with application.url: import mx.core.Application; Application.application.url De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de luis_roman_am Enviada em: segunda-feira, 23 de junho de 2008 05:20 Para: flexcoders@yahoogroups.com Assunto: [flexcoders] Getting referer url How would you do this? It´s possible to do this in actionscript without using javascript?
RE: [flexcoders] Server side sorting and paging while scrolling
Follow the examples Matt Chotin gave on large data sets (yes they are very old but they still work!). We based our solution on these posts. http://weblogs.macromedia.com/mchotin/archives/2004/03/large_data_sets.h tml http://weblogs.macromedia.com/mchotin/archives/2004/04/large_data_sets_1 .html Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact [EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of vinitha pascal Sent: 23 June 2008 07:26 To: flexcoders@yahoogroups.com Subject: [flexcoders] Server side sorting and paging while scrolling Hi, I have a requirement which is as follows: Initially bind first 10 records from 5000 reocrds to the datagrid. On scrolling the scrollbar i need to bind another set of records and so on. Scrolling should be on done both upwards and downwards. i.e. when we go upwards we need to get previous set of records and downwards we need to get next set of records. Another requirement is I need to implement Server-Side Sorting on datagrid. Can anyone help me in doing so?. Thanks in advance...
[flexcoders] Re: warning: multiple describeType entries for 'selectedItem'
I'm running into the same warning, the binding works though. Anybody able to figure out why this is happening?
Re: [flexcoders] Re: What could keep debug mode from working
You mean is not possible debug flex and use Grasemonkey??? = VELO On Mon, Jun 23, 2008 at 7:14 AM, justSteve [EMAIL PROTECTED] wrote: Sorry...just found the FF3 thread. - working on removing Greasemonkey now.
[flexcoders] Re: Change cell's background
O, that number was just for testing. I was hoping I would be able to achieve that without going into custom design. --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: 1000 isn't a valid color uint, try 0x00 or #00. Setting the background color of an itemRenderer in this way, will probably not give you the desired result; since the itemRenderers are recycled. You're better off over-riding the set data or updataDisplayList functions, in the itemRenderer itself. Here's an article by Peter Ent http://weblogs.macromedia.com/pent/archives/2007/02/coloring_the_ba.h tm\ l , that has a lot of DataGrid background color info. -TH --- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2000@ wrote: Here is my context menu handler: private function contextMenuHandler(e:ContextMenuEvent):void { DataGridItemRenderer(e.mouseTarget).setStyle(backgroundColor, 1000); } But I dont see any changes on the screen. What am I doing wrong? Thanks
[flexcoders] SLIGHTLY OT: Problems Generating PDF from Flex using CFDOCUMENT
I'm taking a image snapshot of some report output and sending it back to the server as a bytearray (encoded for JPEG), writing it to disk and then creating a PDF using CFDOCUMENT. The Flex portion seems to work fine - the image is successfully written to disk, looks fine but I can't seem to get the the content into my CFDOCUMENT using img src=my_generated_image_file.jpg/. The content area is blank. I've tried CFLOCK, no dice. I've had no problems embedding other, smaller images. Is there a size (in pixels) limitation on embedded images or something? Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] (609) 520-5637 (p) (484) 477-9900 (c)
[flexcoders] Flex server push solutions?
Hi, I need server push feature in my application,I know LCDS and BlazeDS can do that. I also try Lightstreamer and it also can do that. But they are very expensive,do you know other Flex open source project that also provide push feature and it is easy to use. Thanks a lot Mark
[flexcoders] Re: What could keep debug mode from working
Please see this bug: http://bugs.adobe.com/jira/browse/FB-13064 It seems that when you are running Firefox 3 along with just about any Firefox extension (not just Greasemonkey), Flex Builder debugging doesn't work. Don't worry, we're working to figure out exactly where the problem is and how to fix it. The short-term workaround, until we can get a fix done, is either to disable your Firefox extensions or to debug with a different browser. - Mike Morearty, Flex Builder team --- In flexcoders@yahoogroups.com, Marvin Froeder [EMAIL PROTECTED] wrote: You mean is not possible debug flex and use Grasemonkey??? = VELO On Mon, Jun 23, 2008 at 7:14 AM, justSteve [EMAIL PROTECTED] wrote: Sorry...just found the FF3 thread. - working on removing Greasemonkey now.
RE: [flexcoders] Flex server push solutions?
BlazeDS is open source and free. Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact [EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markflex2007 Sent: 23 June 2008 14:55 To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex server push solutions? Hi, I need server push feature in my application,I know LCDS and BlazeDS can do that. I also try Lightstreamer and it also can do that. But they are very expensive,do you know other Flex open source project that also provide push feature and it is easy to use. Thanks a lot Mark
[flexcoders] DateFormatter gives weird results
So I have some code which formats milliseconds (for a video player) in to NN:SS format. When I try to add the hours (JJ:NN:SS), DateFormatter adds 19 hours to the result. WTF? Code Below: private function formatTime(item:Date):String { return dateFormatter.format(item); } private function videoDisplay_playheadUpdate():void { /* If playhead time is 0, set to 100ms so the DateFormatter doesnt return an empty string. */ var pT:Number = videoDisplay.playheadTime || 0.1; var tT:Number = videoDisplay.totalTime; /* Convert playheadTime and totalTime from seconds to milliseconds and create new Date objects. */ var pTimeMS:Date = new Date(pT * 1000); var tTimeMS:Date = new Date(tT * 1000); vidCurrentTime.text = formatTime(pTimeMS); vidTotalTime.text = formatTime(tTimeMS); } mx:DateFormatter id=dateFormatter formatString=JJ:NN:SS / Any help is appreciated. Thanks. -Christopher Keeler
[flexcoders] Re: Flex Efficiency
I know that if you try to add the same component to one container after another, it will remove it from the previous container and add it to the next. To achieve what you're looking for, you need to clone it then add it. You might have already known this, but that sounds like the problem to me. --- In flexcoders@yahoogroups.com, Alen Balja [EMAIL PROTECTED] wrote: Thanks, Alex. Unfortunately that is the main problem as I let users add graphics on the fly to create their artwork. And graphics are small swf animations, really simple ones. How is adding swf's different in this regard than adding jpegs, gifs or png's on the fly? Also is there a limit set? Because after adding lots of them, some of them just start to disappear and all I do is stack them with addChild(). Can we expect same performance issues when adding lots of visual objects such as buttons, canvases, etc...? If I add 100 simple swfs and 100 button controls, will it behave the same? On Sun, Jun 22, 2008 at 3:37 AM, Alex Harui [EMAIL PROTECTED] wrote: There are no workarounds. Good design for Flash minimizes use of resources. The profiler can help you tune things, but if you use lots of SWFs you're going to pay a price. However, that may not be your main problem, and the profiler can help you determine that. -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Alen Balja *Sent:* Saturday, June 21, 2008 3:57 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Flex Efficiency Alex, do you have any more info on the subject, especially what are the workarounds? I too am using lots of really tiny and simple external swf animations and performance is really really bad. If I remember correctly it's much worse than Flash Player 7. The profiler will help you find inefficiencies in your app. Loading lots of SWFs is, of course, going to eat resources.
Re: [flexcoders] Is an event dispatched when an AIR app is closing?
I love the easy ones. Look into the Closing and Close events. http://livedocs.adobe.com/flex/3/langref/mx/core/WindowedApplication.html Daniel Gold wrote: I'm working on an online/offline AIR app and was wondering if there was any way to detect that an AIR app is closing so I can cache my data models? If the user closes the app while online and then opens it later offline, I'd like them to have access to the last data set. I could achieve this by constantly mirroring the remote data but was hoping to avoid that since the majority of the time the users will be online and it won't be necessary. -- Jeffry Houser Flex, ColdFusion, AIR AIM: Reboog711 | Phone: 1-203-379-0773 -- Adobe Community Expert http://www.adobe.com/communities/experts/members/JeffryHouser.html My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com
[flexcoders] Re: Flex Efficiency
Yes, I see a lot of red. What does this mean? How can it be fixed? --- In flexcoders@yahoogroups.com, Rick Winscot [EMAIL PROTECTED] wrote: Right click on the app and show your redraw regions. is there a solid red rectangle around the entire application? If so - the entire stage is getting re-circulated in redraw cycles. If the small swfs/areas are getting hammered then you'll see that as well. Rick Winscot From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh McDonald Sent: Saturday, June 21, 2008 2:51 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex Efficiency It's possible that your background SWFs are doing something that makes the player's filter code nervous, and so either drop shadow, or the blur background filter is having to be re-run every frame, which will own your CPU since it's not accelerated (afaik). Just an idea, but could be somewhere to start your investigations :) -Josh On Sat, Jun 21, 2008 at 3:25 PM, Alex Harui [EMAIL PROTECTED] wrote: The profiler will help you find inefficiencies in your app. Loading lots of SWFs is, of course, going to eat resources. _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kenny14390 Sent: Friday, June 20, 2008 9:44 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex Efficiency I'm making a simple game in Flex and I'm noticing a lot of performance issues. The game is very easy and simple: you have 25 tiles and you need to click them one at a time to reveal the prize (or no prize) behind them - match three like prizes and win. Getting everything on the screen and coding it together wasn't bad, but I'm noticing a considerable lack in performance when the game is running. To be honest, I have a lot of SWF files in there, and I'm making heavy use of the Move transition (usually for each of the 25 tiles to animate them). Some of the SWFs are on an infinite loop and those are probably eating up a good amount of the resources. Another thing that was surprising was the CPU usage eaten up when I added a PopUp to the application. The browser page seems to freeze while it's open and only after I close the PopUp does the page resume its task. I guess I can get away without it, but it was odd how that happened. Is this common to have such monstrous applications, while using the features I mentioned? Is there something wrong with my programming instead? If I run the game in Firefox 3, it is using well over 150M of memory and 50% of my CPU. When the PopUp is open, that spikes to 95%! What can I do to alleviate this stress on the computer? -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
Re: [flexcoders] Re: Context menu
You can't get rid of those two (limitation of the player). - Daniel Freiman On Sat, Jun 21, 2008 at 8:01 PM, markgoldin_2000 [EMAIL PROTECTED] wrote: I am using this: var menu:ContextMenu = new ContextMenu(); menu.hideBuiltInItems(); but when I run my program and click on a cell with the right mouse I have my items alone with standard Settings, About ... items. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: hideBuiltInItems From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of markgoldin_2000 Sent: Saturday, June 21, 2008 1:08 PM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Context menu How can I remove all builtin items? Thanks
[flexcoders] Re: Flex server push solutions?
Hi Mark, You can try WebORB as well. It is free, but not open source. http://www.themidnightcoders.com/weborb/dotnet/ Cheers, Mark --- In flexcoders@yahoogroups.com, markflex2007 [EMAIL PROTECTED] wrote: Hi, I need server push feature in my application,I know LCDS and BlazeDS can do that. I also try Lightstreamer and it also can do that. But they are very expensive,do you know other Flex open source project that also provide push feature and it is easy to use. Thanks a lot Mark
RE: [flexcoders] SLIGHTLY OT: Problems Generating PDF from Flex using CFDOCUMENT
For the edification of others it was a keystore issue. CF needs to trust a certificate before it can get content using SSL. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff Sent: Monday, June 23, 2008 9:51 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] SLIGHTLY OT: Problems Generating PDF from Flex using CFDOCUMENT I'm taking a image snapshot of some report output and sending it back to the server as a bytearray (encoded for JPEG), writing it to disk and then creating a PDF using CFDOCUMENT. The Flex portion seems to work fine - the image is successfully written to disk, looks fine but I can't seem to get the the content into my CFDOCUMENT using img src=my_generated_image_file.jpg/. The content area is blank. I've tried CFLOCK, no dice. I've had no problems embedding other, smaller images. Is there a size (in pixels) limitation on embedded images or something? Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] (609) 520-5637 (p) (484) 477-9900 (c) -- 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
Re: [flexcoders] Scrolling - Firefox 2/3 vs IE
The flex framework shouldn't care about the browser, so in some way this will probably be traced back to the player (Stage, Application, SystemManager or their events?). In all cases where I have seen things like this, the previous statement has turned out to be true. - Daniel Freiman On Sun, Jun 22, 2008 at 11:43 PM, Richard Rodseth [EMAIL PROTECTED] wrote: I don't have a simple test case to share yet, but we are seeing scrollbars (not at the application level) which appear as desired on Firefox 2, but not on Firefox 3 or IE. Anyone else run into any such anomalies? - Richard
Re: [flexcoders] Re: Some interesting flexcoders stats
Ah, at first I'm just going to have one big table, with columns for date, subject (normalized to removed string like RE: and [flexcoders] I think), and sender (name of sender, not email address). On the first pass I'm only going to get the date, not the full timestamp of each message, but I might make a second pass and get the full timestamp (either a new column or filling out the same date column) and maybe even the full message body (although that will increase the size of the DB substantially). Doug On Mon, Jun 23, 2008 at 4:05 AM, arieljake [EMAIL PROTECTED] wrote: Sorry, I meant what would the tables look like (model)? --- In flexcoders@yahoogroups.com, Doug McCune [EMAIL PROTECTED] wrote: I'm planning on letting people download the sqlite database file. That's a single file (with the .db extension I think) that you can load into any air app and access. I could also do a CSV, but it's a lot of data (hell, excel can't even load that many rows). Doug On Sun, Jun 22, 2008 at 10:18 PM, arieljake [EMAIL PROTECTED] wrote: What will the data format be so we can plan ahead? --- In flexcoders@yahoogroups.com, Doug McCune doug@ wrote: Within then next week I hope to have a fairly complete dataset of date, subject, and name of who posted for close to all the messages ever posted to flexcoders. I might also do a second pass to get full text of each message too. I say close to all because I'm scraping the mail archive website and that only shows 95,000 message, but in reality I think there are more like 116,000. Plus some of the messages from 2004 seems to have gotten a bit jacked on the mail archive site and don't show up with the proper subjects and senders (there's a block of a few hundred). But once I get that I'm going to post a sqlite DB file that has it all that you can load into an air app to play with. I'll let y'all know when you can start playing with the data. Doug On Sun, Jun 22, 2008 at 5:29 PM, Tim Hoff TimHoff@ wrote: flexCodersStatus = (mostRecentlyPostedThread == The subject that shall not be named! ? Banned : Active); -TH :-) --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote: Hey folks, Given the recent big thread on the subject that shall not be named, my colleague Suchit went ahead and got some interesting membership stats since the beginning of the list. Number of people who: Joined group == 14036 Left group == 3686 Were Banned == 631 Got Removed == 359 I would say losing ~25% over time isn't too bad. That said we haven't done analysis to see if there's a trend in dates or if we're losing more people recently, etc. But interesting info for starters... Matt
RE: [flexcoders] How to Control SWF animation
If the SWFs are not published for player 9, then you need to communicate with them via localconnection or externalinterface. http://www.gskinner.com/blog/archives/2007/07/swfbridge_easie.html http://www.gskinner.com/blog/archives/2007/07/swfbridge_easie.html http://tracethis.com/archives/2006/07/13/swf9-to-swf8-communication-ei-n ot-lc-part-1/ http://tracethis.com/archives/2006/07/13/swf9-to-swf8-communication-ei-n ot-lc-part-2/ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tech.sivakami Sent: Monday, June 23, 2008 4:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to Control SWF animation Hi All, I need to control the SWFs in my application.Stop and Play is enough.In the application i am working is, downloading SWF from a server and the downloaded SWF needs to play in the screen but there is no communication between that SWF and flex.I can play this SWF after downloading, but i could not be able to stop it.If anybody knows about this, reply to this community. -siva
Re: [flexcoders] Some interesting flexcoders stats
Matt, Any chance to find out how many out of 10K get daily mails, digest or just web access? Thank you, Anatole On Sun, Jun 22, 2008 at 7:51 PM, Matt Chotin [EMAIL PROTECTED] wrote: Hey folks, Given the recent big thread on the subject that shall not be named, my colleague Suchit went ahead and got some interesting membership stats since the beginning of the list. Number of people who: Joined group == 14036 Left group == 3686 Were Banned == 631 Got Removed == 359 I would say losing ~25% over time isn't too bad. That said we haven't done analysis to see if there's a trend in dates or if we're losing more people recently, etc. But interesting info for starters... Matt
RE: [flexcoders] Problem While Downcasting Flex Modules
Good design involves modularity and abstraction. Your modules should be thought of as abstractions otherwise they probably aren't good modules. In cases where you need to know more, you can define an interface that allows you to query a modules for what is in it. More commonly, folks have a central data model in the main app, and the view modules pull data from the model. That helps the abstraction because then the main app doesn't really need to know what is in the module. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Parkash Sent: Monday, June 23, 2008 1:26 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Problem While Downcasting Flex Modules Alex thanks for your reply, basically my application has total 10 screens and 6 out 10 screens will be used in other flex applcations , so what i have decided is to make all 10 screens as module and 10 presenter classes for each module. (Do you think it is a good approach?). Now as you said use Interface, their is no problem in using interface, but my presenter class needs to know the actual Module name so that i can access the individual components of modules in presenter class. one more thing my Modules are passive view . can you help me how to solve this problem. becuse my presenter classes are totaly dependente view(Module).. - Original Message - From: Alex Harui mailto:[EMAIL PROTECTED] To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Sent: Sunday, June 22, 2008 3:12 AM Subject: RE: [flexcoders] Problem While Downcasting Flex Modules Your example doesn't make sense because if you have the types FlexModule1 and FlexModule2 in the main app, those classes are linked into the main app and you've defeated the whole point of modules. You should be using interfaces instead. However, by default, a module will be compiled without a package (actually package {} so it won't be of type modules.FlexModule1, it will just be FlexModule1 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Saturday, June 21, 2008 2:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problem While Downcasting Flex Modules HI everyone, I am facing a problem while down casting the flex module. I have created two flex modules called FlexModule1.mxml and FlexModule2.mxml. These both modules contain the same code. I have placed FlexModule1.mxml under modules folder(modules/FlexModule1.mxml) and FlexModule2.mxlm @ application root. Here is code for FlexModul1.mxlml (and FlexModule2.mxml as both modules have identical code) ?xml version=1.0 encoding=utf-8? mx:Module xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml width=400 height=300 mx:Script ![CDATA[ public function Foo( pstr:String ):String { trace( In Method Foo ); return Foo + pstr ; } ]] /mx:Script mx:Panel width=100% height=100% mx:Label id=MY_LABEL text=I AM MODULE-1 fontSize=20 color=green/ /mx:Panel /mx:Module And here is Main class code. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=vertical creationComplete={loadModule()} mx:Script ![CDATA[ import mx.modules.ModuleManager; import mx.modules.IModuleInfo; import modules.FlexModule1; import mx.events.FlexEvent; import mx.events.ModuleEvent; import mx.modules.ModuleLoader; public var moduleLoader:ModuleLoader; public var moduleInfo:IModuleInfo; public function loadModule( ):void { moduleLoader = new ModuleLoader(); moduleLoader.addEventListener( ModuleEvent.READY , moduleReadyEventHandler ); //moduleLoader.url = FlexModule2.swf; //This is fine module loaded moduleLoader.url = modules\\FlexModule1.swf; //this fine too moduleLoader.loadModule(); } public function moduleReadyEventHandler( evt:ModuleEvent ):void { trace( Module Ready Event Handler ); this.addChild( moduleLoader ); //(moduleLoader.child as FlexModule2).Foo( '' ) ; // this if fine method Foo() called (moduleLoader.child as FlexModule1).Foo( '' ) ; // Null pointer Exception } ]] /mx:Script /mx:Application Both modules are loading without any problem but the error occurs when I try to downcast FlexModule1.mxml. There is no down casting
[flexcoders] Re: Test contro height question
Thanks Paddy. I'm not sure it is the same problem. I removed the runtime css but I'm still getting the same auto sizing problem (i.e., the height of the text is not wrapping and there is only a single line). --- In flexcoders@yahoogroups.com, Paddy Keane [EMAIL PROTECTED] wrote: it could be 'cos of the same prob we had? https://bugs.adobe.com/jira/browse/SDK-15485 https://bugs.adobe.com/jira/browse/SDK-15485 if it is please vote for the bug! ;) ta paddy ;) From: flexcoders@yahoogroups.com on behalf of I am Peter, not Lena Sent: Sun 22/06/2008 05:09 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Test contro height question Hi Paddy, Thanks for the reply. I'm not using TextArea because I don't need editing functionality but I suppose it's an alternative. I am choosing the option to compile my .css file into a swf in FlexBuilder (for compilation and efficiency reasons with embedded fonts). Does that affect how Flex measures items? Thanks, Peter --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Paddy Keane paddy.keane@ wrote: you could always try using a TextArea component instead of a Text component. BTW are you using runtime css? (i.e a swf you load containing css styles for your app) paddy;) From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com on behalf of I am Peter, not Lena Sent: Sat 21/06/2008 10:23 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Test contro height question Hi All, I'm still trying to learn the intricacies of Flex and the auto sizing of Text control's height (and the related word wrapping) is still one area that really confuses me. For example, I have a text control: mx:Text id=nameText width=250 text={transaction.name}/ When the transaction object is set for the first time, and transaction.name is longer than 250, only the first line is shown. There is no wrapping. I would think that the explicit width 250 would force word wrapping but this is not the case. If I select another transaction in the UI, and then re-select the original transaction, then the text control is correctly resized with word wrapping. Why is this happening? What causes this strange behavior? And the only way I can get word wrapping to work is to bind the text control's width to it's parent's width: mx:Text id=nameText width={this.width-200} text={transaction.name}/ This isn't really desirable though, because if the text is inside a form item, then it is quite difficult to figure out what correct width of the text should be (because the width is determined by the longest label of all the form items, I believe). Sometimes, though, I can get the text control to resize correctly by calling validateNow(). But this doesn't always work. Why is that? Anyways, any insights on these perplexing questions would be much appreciated. Thanks, Peter
RE: [flexcoders] Automatic programatically controls binding (i18n)
In MXML components you can simply use databinding expressions like Button label={resourceManager.getString(...)}/ but in AS3 components you need to override resourcesChanged() -- which gets called when the ResourceManager's localeChain changes -- and reset the label. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matias Nicolas Sommi Sent: Sunday, June 22, 2008 9:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Automatic programatically controls binding (i18n) Hello, recently i could make my app in two langs, but i have one problem, i wrote a class I18n with one static method called getLanguageSelector who gives me a Label and a ComboBox in a container. In the combobox the user can change his language. When the user changes his language, the app changes the localchain property of resourceManager. My problem is, all the controls in the mxml app changes his labels automatically, but the labels, like the label i return in the method getLanguageSelector does not change. I tried to make the label [Bindable] but it does not work. If you have some ideas, please tell me. Thanks. The I18n Class looks like this: public class I18n { public static const locales:Array = [en_US, es_ES]; [Bindable] private static var _container:HBox; public static function getLanguageSelector():DisplayObject { if(_container == null) { _container = new HBox(); var _combo:ComboBox = new ComboBox(); var _label:Label = new Label(); //display items var languages:Array = [English, Espanol]; _label.name = lblLang; _combo.name = cmbLang; _combo.dataProvider = languages; //select default language _combo.selectedIndex = 0; ResourceManager.getInstance().localeChain = [locales[_combo.selectedIndex]]; _label.text = ResourceManager.getInstance().getString('general', 'change_language'); _label.includeInLayout = true; _combo.addEventListener(Event.CHANGE, I18n.onSelectionChange); _container.addChild(_label); _container.addChild(_combo); } return _container; } public static function onSelectionChange(e:Event):void { ResourceManager.getInstance().localeChain = [locales[(_container.getChildByName(cmbLang) as ComboBox).selectedIndex]]; } } Best Regards. -- Matías Nicolás Sommi
RE: [flexcoders] Re: Test contro height question
Please file a new bug then. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of I am Peter, not Lena Sent: Monday, June 23, 2008 10:43 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Test contro height question Thanks Paddy. I'm not sure it is the same problem. I removed the runtime css but I'm still getting the same auto sizing problem (i.e., the height of the text is not wrapping and there is only a single line). --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Paddy Keane [EMAIL PROTECTED] wrote: it could be 'cos of the same prob we had? https://bugs.adobe.com/jira/browse/SDK-15485 https://bugs.adobe.com/jira/browse/SDK-15485 https://bugs.adobe.com/jira/browse/SDK-15485 https://bugs.adobe.com/jira/browse/SDK-15485 if it is please vote for the bug! ;) ta paddy ;) From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com on behalf of I am Peter, not Lena Sent: Sun 22/06/2008 05:09 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Test contro height question Hi Paddy, Thanks for the reply. I'm not using TextArea because I don't need editing functionality but I suppose it's an alternative. I am choosing the option to compile my .css file into a swf in FlexBuilder (for compilation and efficiency reasons with embedded fonts). Does that affect how Flex measures items? Thanks, Peter --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Paddy Keane paddy.keane@ wrote: you could always try using a TextArea component instead of a Text component. BTW are you using runtime css? (i.e a swf you load containing css styles for your app) paddy;) From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com on behalf of I am Peter, not Lena Sent: Sat 21/06/2008 10:23 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Test contro height question Hi All, I'm still trying to learn the intricacies of Flex and the auto sizing of Text control's height (and the related word wrapping) is still one area that really confuses me. For example, I have a text control: mx:Text id=nameText width=250 text={transaction.name}/ When the transaction object is set for the first time, and transaction.name is longer than 250, only the first line is shown. There is no wrapping. I would think that the explicit width 250 would force word wrapping but this is not the case. If I select another transaction in the UI, and then re-select the original transaction, then the text control is correctly resized with word wrapping. Why is this happening? What causes this strange behavior? And the only way I can get word wrapping to work is to bind the text control's width to it's parent's width: mx:Text id=nameText width={this.width-200} text={transaction.name}/ This isn't really desirable though, because if the text is inside a form item, then it is quite difficult to figure out what correct width of the text should be (because the width is determined by the longest label of all the form items, I believe). Sometimes, though, I can get the text control to resize correctly by calling validateNow(). But this doesn't always work. Why is that? Anyways, any insights on these perplexing questions would be much appreciated. Thanks, Peter
[flexcoders] accessing MXML components
Hi folks, I have a simple 'paging' button bar like this: mx:ButtonBar xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ static public function addNextBtnListener(listener:Function):void { } ]] /mx:Script mx:Button label=Help / mx:Button label=Back id=backBtn / mx:Button label=Next id=nextBtn / /mx:ButtonBar Is it possible to attach a button click listener to click method from the static function I provided above? I know I could detect 'click' on button and then call all of the listeners, but I was curious if I can attach directly to the button's listener?
Re: [flexcoders] Some interesting flexcoders stats
Digest 1867 Individual 3756 None 3588 Special notices 791 On 6/23/08 9:31 AM, Anatole Tartakovsky [EMAIL PROTECTED] wrote: Matt, Any chance to find out how many out of 10K get daily mails, digest or just web access? Thank you, Anatole On Sun, Jun 22, 2008 at 7:51 PM, Matt Chotin [EMAIL PROTECTED] wrote: Hey folks, Given the recent big thread on the subject that shall not be named, my colleague Suchit went ahead and got some interesting membership stats since the beginning of the list. Number of people who: Joined group == 14036 Left group == 3686 Were Banned == 631 Got Removed == 359 I would say losing ~25% over time isn't too bad. That said we haven't done analysis to see if there's a trend in dates or if we're losing more people recently, etc. But interesting info for starters... Matt
[flexcoders] AIR Gmail rss reader
Has anyone managed to successfully connect an AIR app to a label in the Gmail rss feed. Say the unread messages feed for example: http://mail.google.com/mail/feed/atom/unread The main problem is that it requires both http authentication, and SSL. Since you can't use setCredentials() on a standard HTTPService, I went with a raw socket approach. That falls over when Gmail responds with the SSL redirect. I'm sure somebody has already figured this out. Anyone here know how to get around it? Spike -- Stephen Milligan YellowBadger - Developing smarter solutions http://www.yellowbadger.com
Re: [flexcoders] Some interesting flexcoders stats
Matt, I believe it starts with individual as default - is there way to find out dynamics on turning off individual email and retention numbers on None? Thank you, Anatole On Mon, Jun 23, 2008 at 2:09 PM, Matt Chotin [EMAIL PROTECTED] wrote: Digest 1867 Individual 3756 None 3588 Special notices 791 On 6/23/08 9:31 AM, Anatole Tartakovsky [EMAIL PROTECTED]anatole.tartakovsky%40gmail.com wrote: Matt, Any chance to find out how many out of 10K get daily mails, digest or just web access? Thank you, Anatole On Sun, Jun 22, 2008 at 7:51 PM, Matt Chotin [EMAIL PROTECTED]mchotin%40adobe.com wrote: Hey folks, Given the recent big thread on the subject that shall not be named, my colleague Suchit went ahead and got some interesting membership stats since the beginning of the list. Number of people who: Joined group == 14036 Left group == 3686 Were Banned == 631 Got Removed == 359 I would say losing ~25% over time isn't too bad. That said we haven't done analysis to see if there's a trend in dates or if we're losing more people recently, etc. But interesting info for starters... Matt
[flexcoders] callLater() question about next screen refresh
The Flex documentation says this about callLater(): The callLater() method queues an operation to be performed for the next screen refresh What does next screen refresh mean? What if I invoke a callLater right before an accordion starts its tween effects? Does the next screen refresh happen when the accordion is done sliding to it's resting position or is the next screen refresh when the accordion has completed the first of many tweenUpdates?
Re: [flexcoders] Some interesting flexcoders stats
I'm sure we could figure it out by doing some big correlation of the data, but I don't think it's worth it at this point and I don't have the time. Create your list, mail it out, move on. Matt On 6/23/08 11:16 AM, Anatole Tartakovsky [EMAIL PROTECTED] wrote: Matt, I believe it starts with individual as default - is there way to find out dynamics on turning off individual email and retention numbers on None? Thank you, Anatole On Mon, Jun 23, 2008 at 2:09 PM, Matt Chotin [EMAIL PROTECTED] wrote: Digest 1867 Individual 3756 None 3588 Special notices 791 On 6/23/08 9:31 AM, Anatole Tartakovsky [EMAIL PROTECTED] mailto:anatole.tartakovsky%40gmail.commailto:anatole.tartakovsky%40gmail.com wrote: Matt, Any chance to find out how many out of 10K get daily mails, digest or just web access? Thank you, Anatole On Sun, Jun 22, 2008 at 7:51 PM, Matt Chotin [EMAIL PROTECTED] mailto:mchotin%40adobe.commailto:mchotin%40adobe.com wrote: Hey folks, Given the recent big thread on the subject that shall not be named, my colleague Suchit went ahead and got some interesting membership stats since the beginning of the list. Number of people who: Joined group == 14036 Left group == 3686 Were Banned == 631 Got Removed == 359 I would say losing ~25% over time isn't too bad. That said we haven't done analysis to see if there's a trend in dates or if we're losing more people recently, etc. But interesting info for starters... Matt
[flexcoders] Re: AIR Gmail rss reader
Oh, I meant to say, I got this working fine with the regular feed URL below, but the mail for domains feed is failing: http://mail.google.com/a/spike.org.uk/feed/atom/unread Obviously you'll need a google apps account to test this. Spike On Mon, Jun 23, 2008 at 11:14 AM, Spike [EMAIL PROTECTED] wrote: Has anyone managed to successfully connect an AIR app to a label in the Gmail rss feed. Say the unread messages feed for example: http://mail.google.com/mail/feed/atom/unread The main problem is that it requires both http authentication, and SSL. Since you can't use setCredentials() on a standard HTTPService, I went with a raw socket approach. That falls over when Gmail responds with the SSL redirect. I'm sure somebody has already figured this out. Anyone here know how to get around it? Spike -- Stephen Milligan YellowBadger - Developing smarter solutions http://www.yellowbadger.com -- Stephen Milligan YellowBadger - Developing smarter solutions http://www.yellowbadger.com
[flexcoders] Server to client calls
Hi there, It is possible with LCDS, BlazeDS or some similar DS to call flex client methods from the server? If not, this is only possible with FMS? Thanks in advance.
RES: [flexcoders] callLater() question about next screen refresh
Hi, the next screen refresh will be the next frame that flash player renders it. If you work at 12fps (frames per second), the callLater method will be executed 83ms after the call. De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de wwwpl Enviada em: segunda-feira, 23 de junho de 2008 15:21 Para: flexcoders@yahoogroups.com Assunto: [flexcoders] callLater() question about next screen refresh The Flex documentation says this about callLater(): The callLater() method queues an operation to be performed for the next screen refresh What does next screen refresh mean? What if I invoke a callLater right before an accordion starts its tween effects? Does the next screen refresh happen when the accordion is done sliding to it's resting position or is the next screen refresh when the accordion has completed the first of many tweenUpdates?
[flexcoders] Re: AIR Gmail rss reader
I should probably also mention that the reason I decided to try this in AIR is because neither FeedDemon, nor FeedReader are able to do it either, and I got tired of missing important emails because my browser wasn't open. Strangely though, Firefox has no trouble opening the feed. Spike On Mon, Jun 23, 2008 at 11:30 AM, Spike [EMAIL PROTECTED] wrote: Oh, I meant to say, I got this working fine with the regular feed URL below, but the mail for domains feed is failing: http://mail.google.com/a/spike.org.uk/feed/atom/unread Obviously you'll need a google apps account to test this. Spike On Mon, Jun 23, 2008 at 11:14 AM, Spike [EMAIL PROTECTED] wrote: Has anyone managed to successfully connect an AIR app to a label in the Gmail rss feed. Say the unread messages feed for example: http://mail.google.com/mail/feed/atom/unread The main problem is that it requires both http authentication, and SSL. Since you can't use setCredentials() on a standard HTTPService, I went with a raw socket approach. That falls over when Gmail responds with the SSL redirect. I'm sure somebody has already figured this out. Anyone here know how to get around it? Spike -- Stephen Milligan YellowBadger - Developing smarter solutions http://www.yellowbadger.com -- Stephen Milligan YellowBadger - Developing smarter solutions http://www.yellowbadger.com -- Stephen Milligan YellowBadger - Developing smarter solutions http://www.yellowbadger.com
[flexcoders] Here's a great idea for flex 4 - simple color pallette utility
How about a simple color browser, say if you have a hex color in your code and you want to see the value, you can highlight the color and then a little window you show you the color, without having to switch to design view. I have used flex for 2 years now, and don't really use the need for design view on complicated projects, things don't display correctly anyway. I always have to leave flash open and continuously paste color values in just to see their values. Thanks for your time, Patrick
[flexcoders] Abstract type and cannot be instantiated.
Hi, Is there a way around this? Is it true that AS 3 does *not* support abstract classes (classes that cannot be instantiated, only extended)? I'm getting this error from my flex application: org.xml.sax.SAXException: {urn:core_2008_1.platform.webservices.netsuite.com}Record is an abstract type and cannot be instantiated TIA. Clem
RE: [flexcoders] Here's a great idea for flex 4 - simple color pallette utility
great idea ;) From: flexcoders@yahoogroups.com on behalf of djhatrick Sent: Mon 23/06/2008 19:44 To: flexcoders@yahoogroups.com Subject: [flexcoders] Here's a great idea for flex 4 - simple color pallette utility How about a simple color browser, say if you have a hex color in your code and you want to see the value, you can highlight the color and then a little window you show you the color, without having to switch to design view. I have used flex for 2 years now, and don't really use the need for design view on complicated projects, things don't display correctly anyway. I always have to leave flash open and continuously paste color values in just to see their values. Thanks for your time, Patrick winmail.dat
Re: [flexcoders] Abstract type and cannot be instantiated.
AS3 doesn't support abstract classes, but sometimes libaries will get around this by creating a class that functions like an abstract class and have each function throw a custom error unless the function is overridden. So it looks like something in the sax library is throwing that. - Daniel Freiman On Mon, Jun 23, 2008 at 2:47 PM, gnu wolf [EMAIL PROTECTED] wrote: Hi, Is there a way around this? Is it true that AS 3 does *not* support abstract classes (classes that cannot be instantiated, only extended)? I'm getting this error from my flex application: org.xml.sax.SAXException: {urn: core_2008_1.platform.webservices.netsuite.com}Record is an abstract type and cannot be instantiated TIA. Clem
RES: [flexcoders] Server to client calls
Hi, i've just seen the way with Producer/Consumer, but, its just too much automated. Is there an way that i may dispatch a consumer event to flex within Java? I need to dispatch an event, to some clients, without any user interaction. In FMS, there is a collection of the current clients, and i may interact with that to call some methods. De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de Luciano Manerich Junior Enviada em: segunda-feira, 23 de junho de 2008 15:32 Para: flexcoders@yahoogroups.com Assunto: [flexcoders] Server to client calls Hi there, It is possible with LCDS, BlazeDS or some similar DS to call flex client methods from the server? If not, this is only possible with FMS? Thanks in advance.
Re: [flexcoders] Here's a great idea for flex 4 - simple color pallette utility
I'd vote for this too, especially if it was something that came up in the IDE as part of the code hinting for color style tags. On Mon, Jun 23, 2008 at 11:51 AM, Paddy Keane [EMAIL PROTECTED] wrote: great idea ;) From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com on behalf of djhatrick Sent: Mon 23/06/2008 19:44 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Here's a great idea for flex 4 - simple color pallette utility How about a simple color browser, say if you have a hex color in your code and you want to see the value, you can highlight the color and then a little window you show you the color, without having to switch to design view. I have used flex for 2 years now, and don't really use the need for design view on complicated projects, things don't display correctly anyway. I always have to leave flash open and continuously paste color values in just to see their values. Thanks for your time, Patrick
[flexcoders] Re: Flex server push solutions?
BlazeDS is an open source project (i.e. free) and it provides a good number of data push options (polling, long-polling, streaming). -Mete --- In flexcoders@yahoogroups.com, Mark Piller [EMAIL PROTECTED] wrote: Hi Mark, You can try WebORB as well. It is free, but not open source. http://www.themidnightcoders.com/weborb/dotnet/ Cheers, Mark --- In flexcoders@yahoogroups.com, markflex2007 markflex2007@ wrote: Hi, I need server push feature in my application,I know LCDS and BlazeDS can do that. I also try Lightstreamer and it also can do that. But they are very expensive,do you know other Flex open source project that also provide push feature and it is easy to use. Thanks a lot Mark
[flexcoders] Re: FlexBook - a couple of questions
Hi Steve Thanks for your reply - you got me going in the right direction so I got it solved - Thanks :-D Best regards, Mark --- In flexcoders@yahoogroups.com, valdhor [EMAIL PROTECTED] wrote: Go to http://demo.quietlyscheming.com/book/app.html and download the source. The demo allows you to jump to any page you wish. The function you are probably looking for is turnToPage. From what I can see _turnDuration is the property that sets the page turn speed. It does not appear to be exposed so you may want to add the following function to qs.controls.FlexBook.as so you can set the page turn speed. public function set turnDuration(newTurnDuration:Number):void { _turnDuration = newTurnDuration; } There appears to be a click event exposed in the FlexBook custom component - just add an event listener to do what you want. You may have to inhibit the current event listener to stop the pages turning.
Re: [flexcoders] Here's a great idea for flex 4 - simple color pallette utility
Have you filed a feature request for this, Patrick? It'll get my vote. On Mon, Jun 23, 2008 at 3:31 PM, Doug McCune [EMAIL PROTECTED] wrote: I'd vote for this too, especially if it was something that came up in the IDE as part of the code hinting for color style tags. On Mon, Jun 23, 2008 at 11:51 AM, Paddy Keane [EMAIL PROTECTED] wrote: great idea ;) From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com on behalf of djhatrick Sent: Mon 23/06/2008 19:44 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Here's a great idea for flex 4 - simple color pallette utility How about a simple color browser, say if you have a hex color in your code and you want to see the value, you can highlight the color and then a little window you show you the color, without having to switch to design view. I have used flex for 2 years now, and don't really use the need for design view on complicated projects, things don't display correctly anyway. I always have to leave flash open and continuously paste color values in just to see their values. Thanks for your time, Patrick
Re: RES: [flexcoders] Server to client calls
BlazeDS has some examples of dispatching events from Java but in your Flex application you will have to set up consumer to listen(pole) for messages. Sample in BlazeDS: http://localhost:8400/samples/#traderdesktop Start the feed triggers a JSP with code like this... Feed feed = new Feed(); feed.start(); Then inside Feed.java AsyncMessage msg = new AsyncMessage(); msg.setDestination(feed); msg.setClientId(clientID); msg.setMessageId(UUIDUtils.createUUID()); msg.setTimestamp(System.currentTimeMillis()); msg.setBody(new Double(currentValue)); msgBroker.routeMessageToService(msg, null); Hope this helps.
[flexcoders] Can no longer quit my AIR app
AIR updated itself this morning, and now it seems I can no longer quit an app I'm developing using Apple-Q on my Mac or by choosing Quit from the Dock/Menu bar. It is quite possible something in my code broke this but I haven't found any likely culprits yet. Has anyone seen an issue like this in AIR? Choosing quit will close one of my growl-like notification windows if they're up, but my main window and toolbar just sit there, I have to force quit the app.
[flexcoders] Looking for a top-notch Flex/AIR developer
My apologies if this does not belong here or if it's breaking any rules. I am a flex developer with a lot of experience, limited time, and several projects in development. I'm looking to recruit someone to help out with the projects in exchange for partial ownership. If you or anyone you know would be interested in more information, drop me a line and I'll be happy to discuss with you/them. Thanks, and again, sorry if this post violates any rules!
Re: [flexcoders] Server to client calls
Luciano, You need about 1 week of development. In steps : 1. Pick up eIther LCDS with RTMP, BlazeDS with long request or LCDS 2.6 - any technology that supports Subscription object 2. Modifty client-side end-point for Subscription object to scan for particular type of the object you will use to push RPC from server - containing destination, method and params. Make singleton entry to register your destinations on the client. Check apply method to simulate invoke. 3. Adopt sample code on the server that sends messages to pass RPC calls. HTH, Anatole Tartakovsky, Farata Systems On Mon, Jun 23, 2008 at 2:31 PM, Luciano Manerich Junior [EMAIL PROTECTED] wrote: Hi there, It is possible with LCDS, BlazeDS or some similar DS to call flex client methods from the server? If not, this is only possible with FMS? Thanks in advance.
Re: [flexcoders] Scrolling - Firefox 2/3 vs IE
I spoke too soon. Firefox 3 on Mac is OK. Firefox 2 on WIndows is OK. Firefox 3 and IE on Windows are not. We're using SWFObject 2. I don't believe I'm doing anything funky with Stage, Application or SystemManager. Portions of the layout are created at runtime, and I naturally suspect my somewhat-cobbled-together custom component for tiled layout, even though it's hard for me to imagine how a platform difference could creep in there. On Mon, Jun 23, 2008 at 8:27 AM, Daniel Freiman [EMAIL PROTECTED] wrote: The flex framework shouldn't care about the browser, so in some way this will probably be traced back to the player (Stage, Application, SystemManager or their events?). In all cases where I have seen things like this, the previous statement has turned out to be true. - Daniel Freiman On Sun, Jun 22, 2008 at 11:43 PM, Richard Rodseth [EMAIL PROTECTED] wrote: I don't have a simple test case to share yet, but we are seeing scrollbars (not at the application level) which appear as desired on Firefox 2, but not on Firefox 3 or IE. Anyone else run into any such anomalies? - Richard
[flexcoders] Setting width doesn't resize component immediately
I have a custom component I will call the parent with 2 side by side children. The left child has a width of 200 and the right child has a width of 800 and parent width == 1000. On a mouse click event I change the width of the left child to 980. I then start an animation of the right child that moves from width of 800 to 20 (moves to the right). Sometimes the animation of the right child finishes before the width of the left child executes. How do I force the left child resize to happen first? I do a callLater to start the animation of the right child after setting the width of the left child like this: leftChild.width = 980; callLater(rightChild.startAnimation); I have tried calling leftChild.invalidateDisplayList() but it doesn't help.
[flexcoders] Populating Multiple Arrays in Flex using e4x
Hello All, I'm having trouble figuring out how to populate two arrays in flex. Currently I have XML output that describes Subversion log information. So there are multiple logs and within those logs there are multiple files that have changed. My current (and wrong) approach is to run a for each loop find each svnlog and adding it to a value object I have. Inside each for each loop I run another loop over the paths to fill in the path's array inside my svnlog value object. The problem is that the second for loop picks up all the paths in the entire XML file or from all the log entries which is not what I want it to do. My XML looks like: model entry stringrevisionlog/string linked-list svnlog author/author date/date message/message revision/revision fileList class=linked-list svnpath myPath/myPath myType/myType myCopyRevision/myCopyRevision /svnpath /fileList /svnlog /linked-list /entry /model NOTE: there are multiple svnlog entries and each one has multiple svnpath's My code to transverse this (which is wrong) looks like: for each (var x:XML in evt.result..svnlog) { fill in some values for each (var p:XML in evt.result..svnpath) { fill in the path values } } Has anyone run into this before and can offer some help or point me in the right direction? Thanks, Patrick
RE: [flexcoders] Setting width doesn't resize component immediately
Try calling validateNow() on the parent after changing the width of the left child. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wwwpl Sent: Monday, June 23, 2008 2:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Setting width doesn't resize component immediately I have a custom component I will call the parent with 2 side by side children. The left child has a width of 200 and the right child has a width of 800 and parent width == 1000. On a mouse click event I change the width of the left child to 980. I then start an animation of the right child that moves from width of 800 to 20 (moves to the right). Sometimes the animation of the right child finishes before the width of the left child executes. How do I force the left child resize to happen first? I do a callLater to start the animation of the right child after setting the width of the left child like this: leftChild.width = 980; callLater(rightChild.startAnimation); I have tried calling leftChild.invalidateDisplayList() but it doesn't help.
RE: [flexcoders] Re: Flex Efficiency
The 'red' is a region that is getting updated. big regions means that you are triggering large scale displaylist operations which can slow an app down. If the regions are small - then the performance is more than likely related to resource allocation. Without some code to see - it is difficult to tell exactly how to fix it. Rick Winscot From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kenny14390 Sent: Monday, June 23, 2008 10:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex Efficiency Yes, I see a lot of red. What does this mean? How can it be fixed? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Rick Winscot [EMAIL PROTECTED] wrote: Right click on the app and show your redraw regions. is there a solid red rectangle around the entire application? If so - the entire stage is getting re-circulated in redraw cycles. If the small swfs/areas are getting hammered then you'll see that as well. Rick Winscot From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Josh McDonald Sent: Saturday, June 21, 2008 2:51 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Flex Efficiency It's possible that your background SWFs are doing something that makes the player's filter code nervous, and so either drop shadow, or the blur background filter is having to be re-run every frame, which will own your CPU since it's not accelerated (afaik). Just an idea, but could be somewhere to start your investigations :) -Josh On Sat, Jun 21, 2008 at 3:25 PM, Alex Harui [EMAIL PROTECTED] wrote: The profiler will help you find inefficiencies in your app. Loading lots of SWFs is, of course, going to eat resources. _ From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of kenny14390 Sent: Friday, June 20, 2008 9:44 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Flex Efficiency I'm making a simple game in Flex and I'm noticing a lot of performance issues. The game is very easy and simple: you have 25 tiles and you need to click them one at a time to reveal the prize (or no prize) behind them - match three like prizes and win. Getting everything on the screen and coding it together wasn't bad, but I'm noticing a considerable lack in performance when the game is running. To be honest, I have a lot of SWF files in there, and I'm making heavy use of the Move transition (usually for each of the 25 tiles to animate them). Some of the SWFs are on an infinite loop and those are probably eating up a good amount of the resources. Another thing that was surprising was the CPU usage eaten up when I added a PopUp to the application. The browser page seems to freeze while it's open and only after I close the PopUp does the page resume its task. I guess I can get away without it, but it was odd how that happened. Is this common to have such monstrous applications, while using the features I mentioned? Is there something wrong with my programming instead? If I run the game in Firefox 3, it is using well over 150M of memory and 50% of my CPU. When the PopUp is open, that spikes to 95%! What can I do to alleviate this stress on the computer? -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
RE: [flexcoders] Populating Multiple Arrays in Flex using e4x
In you inner loop, use the current node as the starting point for the XMLList expression: for each (var p:XML in x..svnpath) Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Patrick McDaniel Sent: Monday, June 23, 2008 5:09 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Populating Multiple Arrays in Flex using e4x Hello All, I'm having trouble figuring out how to populate two arrays in flex. Currently I have XML output that describes Subversion log information. So there are multiple logs and within those logs there are multiple files that have changed. My current (and wrong) approach is to run a for each loop find each svnlog and adding it to a value object I have. Inside each for each loop I run another loop over the paths to fill in the path's array inside my svnlog value object. The problem is that the second for loop picks up all the paths in the entire XML file or from all the log entries which is not what I want it to do. My XML looks like: model entry stringrevisionlog/string linked-list svnlog author/author date/date message/message revision/revision fileList class=linked-list svnpath myPath/myPath myType/myType myCopyRevision/myCopyRevision /svnpath /fileList /svnlog /linked-list /entry /model NOTE: there are multiple svnlog entries and each one has multiple svnpath's My code to transverse this (which is wrong) looks like: for each (var x:XML in evt.result..svnlog) { fill in some values for each (var p:XML in evt.result..svnpath) { fill in the path values } } Has anyone run into this before and can offer some help or point me in the right direction? Thanks, Patrick
[flexcoders] htmlText - CDATA without the whitespace mangling?
Hey guys, Is it possible to do use htmlText![CDATA![ Without all your spaces being converted to nbsp; and your newlines being converted to br/? Can I pass in an mx:XML tree or something? It's really no solution having to choose between mangled CDATA and using lt; and gt; around all tags, so I assume there is something better I just don't know what it is :) -Josh -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
Re: [flexcoders] accessing MXML components
No, event listeners are attached to instances, the method would have to be non-static. What would happen if you called MyButtonBar.addNextBtnListener when there were no instances of MyButtonBar at all. -Josh On Tue, Jun 24, 2008 at 3:55 AM, Ivan Bojer (ivbojer) [EMAIL PROTECTED] wrote: Hi folks, I have a simple 'paging' button bar like this: mx:ButtonBar xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ static public function addNextBtnListener(listener:Function):void { } ]] /mx:Script mx:Button label=Help / mx:Button label=Back id=backBtn / mx:Button label=Next id=nextBtn / /mx:ButtonBar Is it possible to attach a button click listener to click method from the static function I provided above? I know I could detect 'click' on button and then call all of the listeners, but I was curious if I can attach directly to the button's listener? -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
[flexcoders] Re: Library Project Help
Is there a good resource/tutorial on Library projects. The process for importing and using seperate mxml files seems to be different from a standard Flex project. For example, I have several popup windows. They are in the same sub- folder as the main file of the component. In a standard project, the component and the project can find the popup windows just fine. In the Library Project, those files are not found, generating a could not find source for class... error. I need to resolve the issue, but I also need to understand why and what is the best practice. Thank you. --- In flexcoders@yahoogroups.com, jmfillman [EMAIL PROTECTED] wrote: That resolved that issue, and created another, similar issue :-) I'm using some popUp titleWindows. I import them into the component like this: import myComponents.popUp1; And then I launch the PopUp like this: var popWindow1:popUp1; The Library Project generates the following error: could not find source for class myLibrarySource.myComponents.popUp1.myProject_Library --- In flexcoders@yahoogroups.com, Jeffry Houser jeff@ wrote: For itemRenderers I believe you have to specify the full class name. So, move the files to the subfolder and change the itemRenderer value to MyComponents.itemRenderer1 jmfillman wrote: From my component mxml file in the myComponents sub-folder, I am referencing the itemRendere like this: mx:List left=55 top=40 right=35 height=22 id=all0List textAlign=center visible=false dataProvider={list0Array} backgroundColor=#535353 borderStyle=none themeColor=#535353 itemClick=modifyAD(all0List.selectedItem.index, true) itemRenderer=itemRenderer1 itemRollOver=rollOver(event); contextMenu=cm itemRollOut=contextMenu=null/ If I put the itemRenderer in the same folder as the component, I get a build error that it can't find itemRenderer1. If I put it in the root of the src folder, one level above the component, it works perfectly, but then the Library Project can't find it. --- In flexcoders@yahoogroups.com, Jeffry Houser jeff@ wrote: I'm not sure why that would be. Maybe if you shared some code the problem would be more obvious. jmfillman wrote: Only the itemRenderes are in the root directory. If I put them in the sub-Folder (myComponents), then the components in the sub- Folder cannot find the itemRenders. --- In flexcoders@yahoogroups.com, Jeffry Houser jeff@ wrote: Assuming Flex Builder 3; src shouldn't be included in the path. So your path is just itemRenderer1. I would recommend against putting components in the root directory in this manner. jmfillman wrote: I'm creating a Library Project that is linked to my working project. My Build Path links to the src folder from my working project, and I have selected all the relevant files, including my 2 itemRenderers. Within the src file, I have a folder that contains 3 component mxml files, and the 2 itemRenderers are at the src level. My Library Project returns the following error for the itemRenderers in the Library Project: could not find source for class src.itemRenderer1. src (folder) itemRenderer1.mxml itemRenderer2.mxml myComponents (folder) component1.mxml component2.mxml component3.mxml Why? -- 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 -- Jeffry Houser Flex, ColdFusion, AIR AIM: Reboog711 | Phone: 1-203-379-0773 -- Adobe Community Expert http://www.adobe.com/communities/experts/members/JeffryHouser.html My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.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 -- Jeffry Houser Flex, ColdFusion, AIR AIM: Reboog711 | Phone:
[flexcoders] Flex Builder 3 plugin problems opening perspective
I had some problems with my installation of Flex Builder 3 plugin in Eclipse 3.3.2 in Windows Vista (design view stopped working) so I tried to reinstall Flex Builder. But after reinstallation I am not able to open the Flex Development Perspective - the alert says Problems opening perspective com.adobe.flexbuilder.editors.mxml.ui.perspectives.development. Does anybody know how to fix it? Zdenek M
Re: [flexcoders] Re: Printing full page w/ no margins
I have tried changing margins, even changed printers and I can still not print anything in the bottom 10th or right 10th of the page. I¹ve changed scale-modes and width, heights, percent donkeys Everything I can think of. If I print an image out that is too big for one page and do scaleMode = None then the right and bottom 10th of the page are white and it crops the image there only to continue in on the next two pages. WTF On 6/16/08 8:54 AM, Josh Millstein [EMAIL PROTECTED] wrote: Thanks for the advice, I¹ll check out what my margins are set on in the driver although I still think it would be weird that my margins are 0,0 for top and left, and 100 px 100 px for right and bottom especially because anything else I print off (from another program) has evenly spaced margins. On 6/16/08 4:52 AM, Dmitri Girski [EMAIL PROTECTED] wrote: I think that these are the settings of your printer driver. I am printing with margins 5-10 pixels, but I set the margings to 0 in the Distiller printer drivers. Cheers, Dmitri. http://mitek17.wordpress.com --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Josh Millstein [EMAIL PROTECTED] wrote: Does anybody know why I can't get anything to print in the bottom or right margins of my flexPrintJob? When I preview (and print) any components they end up begin flush with the upper and left sides of the paper with a significant margin on the bottom and right margins. The only think I can do to get the print job to look okay is to pad the top and left equally to what the bottom and right margins are already at, but that really shrink the printable area down. Here is a very basic example of my problem , http://www.wolffebrothers.com/printProblem.jpg -- [EMAIL PROTECTED] 785-832-9154 -- [EMAIL PROTECTED] 785-832-9154
Re: [flexcoders] Scrolling - Firefox 2/3 vs IE
It wouldn't be that you're doing anything strange w/ one of those classes, but you might be hitting a subtle idiosyncrasy of their functionality. But then again, this is only an educated guess, and you know your code better than i do. - Daniel Freiman On Mon, Jun 23, 2008 at 5:29 PM, Richard Rodseth [EMAIL PROTECTED] wrote: I spoke too soon. Firefox 3 on Mac is OK. Firefox 2 on WIndows is OK. Firefox 3 and IE on Windows are not. We're using SWFObject 2. I don't believe I'm doing anything funky with Stage, Application or SystemManager. Portions of the layout are created at runtime, and I naturally suspect my somewhat-cobbled-together custom component for tiled layout, even though it's hard for me to imagine how a platform difference could creep in there. On Mon, Jun 23, 2008 at 8:27 AM, Daniel Freiman [EMAIL PROTECTED]FreimanCQ%40gmail.com wrote: The flex framework shouldn't care about the browser, so in some way this will probably be traced back to the player (Stage, Application, SystemManager or their events?). In all cases where I have seen things like this, the previous statement has turned out to be true. - Daniel Freiman On Sun, Jun 22, 2008 at 11:43 PM, Richard Rodseth [EMAIL PROTECTED]rrodseth%40gmail.com wrote: I don't have a simple test case to share yet, but we are seeing scrollbars (not at the application level) which appear as desired on Firefox 2, but not on Firefox 3 or IE. Anyone else run into any such anomalies? - Richard
[flexcoders] ANYONE? LCDS Bug? Return from overriden ServiceAdapter manage() disregarded
--- In flexcoders@yahoogroups.com, Steven Toth [EMAIL PROTECTED] wrote: I have a custom adapter I'm using for messaging. This code works in BlazeDS, but when I try it in LiveCycle DS it does not work. The return value (a new AckknowledgeMessage I created) from my overriden manage() method never makes it to the client. I see the message from the sysout at the end of the method populated correctly, but whatever is happening after this method is called and before the message is returned to the client overwrites what I returned. Any thoughts? public class MyMessagingAdapter extends ServiceAdapter { public boolean handlesSubscriptions() { return true; } public Object manage(CommandMessage command) { Object ret = null; try { if (command.getOperation() == CommandMessage.SUBSCRIBE_OPERATION) { // Do something custom here... AcknowledgeMessage msg = new AcknowledgeMessage(); ASObject body = (ASObject)msg.getBody (); if (body == null) { body = new ASObject(); msg.setBody(body); } body.put(someValue,abc); body.put(spmeOtherValue, def); ret = msg; } } catch (Throwable t) { System.out.println(manage(), exception caught:\n + t.getMessage()); t.printStackTrace(); } System.out.println(manage(), returning msg:\n + ret); return ret; }
[flexcoders] Re: Flex Builder 3 plugin problems opening perspective
OK, I had to run the eclipse as administrator, then I was able to add the perspective... Zdenek M --- In flexcoders@yahoogroups.com, Zdenek Mikan [EMAIL PROTECTED] wrote: I had some problems with my installation of Flex Builder 3 plugin in Eclipse 3.3.2 in Windows Vista (design view stopped working) so I tried to reinstall Flex Builder. But after reinstallation I am not able to open the Flex Development Perspective - the alert says Problems opening perspective com.adobe.flexbuilder.editors.mxml.ui.perspectives.development. Does anybody know how to fix it? Zdenek M
[flexcoders] Very Strange Behavior
I have a Panel with a Tab Navigator and two Divided Boxes with DataGrids. I am not sure why I can't get dgShorts to load properly... any ideas? It will only load if it's brought to the to front before I bind it to the array collection, whereas the dgResults (first) datagrid will load fine either first or second. CS mx:Panel id=closedOrd label=Closed Orders title=Closed Trades horizontalScrollPolicy=off verticalAlign=left width=30% height=100% borderStyle=none backgroundAlpha=0.32 mx:TabNavigator id=vwResults width=100% height=100% borderStyle=none selectedChild={shResults} mx:VDividedBox id=lgResults label=Long styleName=divBox width=100% height=100% horizontalAlign=left click=rsClick() comp:DgResults id=dgResults width=100% height=40% textAlign=center /comp:DgResults comp:OrdForm id=Order/ /mx:VDividedBox mx:VDividedBox id=shResults label=Short width=100% height=100% styleName=divBox horizontalAlign=left click=shClick() comp:DgShorts id=dgShorts width=100% height=40% textAlign=center /comp:DgShorts comp:ShOrdForm id=shOrder/ /mx:VDividedBox /mx:TabNavigator /mx:Panel
Re: [flexcoders] ANYONE? LCDS Bug? Return from overriden ServiceAdapter manage() disregarded
Hi, A pure 100% guess... Perhaps you need to call super.manage(command). Steven Toth wrote: --- In flexcoders@yahoogroups.com, Steven Toth [EMAIL PROTECTED] wrote: I have a custom adapter I'm using for messaging. This code works in BlazeDS, but when I try it in LiveCycle DS it does not work. The return value (a new AckknowledgeMessage I created) from my overriden manage() method never makes it to the client. I see the message from the sysout at the end of the method populated correctly, but whatever is happening after this method is called and before the message is returned to the client overwrites what I returned. Any thoughts? public class MyMessagingAdapter extends ServiceAdapter { public boolean handlesSubscriptions() { return true; } public Object manage(CommandMessage command) { Object ret = null; try { if (command.getOperation() == CommandMessage.SUBSCRIBE_OPERATION) { // Do something custom here... AcknowledgeMessage msg = new AcknowledgeMessage(); ASObject body = (ASObject)msg.getBody (); if (body == null) { body = new ASObject(); msg.setBody(body); } body.put(someValue,abc); body.put(spmeOtherValue, def); ret = msg; } } catch (Throwable t) { System.out.println(manage(), exception caught:\n + t.getMessage()); t.printStackTrace(); } System.out.println(manage(), returning msg:\n + ret); return ret; }
[flexcoders] Flex Application will not refresh properly
I am having problems viewing the changes in my application on refresh. I have to actually close my browser and open up a new session before my changes will be seen. This is not only a local problem, it also happens when I push out new versions of my application to our servers. It seems as though IIS is not detecting a change in the html or swf. Anyone else ran into this and found a solution? Ryan Schlig
[flexcoders] Re: ANYONE? LCDS Bug? Return from overriden ServiceAdapter manage() disregarded
Thanks, but the manage() method only gets called if you override the handlesSubscriptions() method to return true, and in LCDS if you call the super.manage(command) for a subscribe operation when you indicated you will be handling subscriptions it throws an exception. BlazeDS will allow you to call the super.manage(command) even with handlesSubscriptions() overriden to return true, but it works even if you don't call the super.manage(command). For some reason LCDS 2.51 ignores the value I return from the manage () method. Seems like a bug. I'm trying to recreate it on LCDS 2.6 Beta. If anyone has any suggestions or feedback I'd appreciate it. I tried to file a bug report from the link on the LCDS Beta Download page bug it told me I didn't have the correct permissions. Regards. -Steven --- In flexcoders@yahoogroups.com, shaun [EMAIL PROTECTED] wrote: Hi, A pure 100% guess... Perhaps you need to call super.manage (command). Steven Toth wrote: --- In flexcoders@yahoogroups.com, Steven Toth toth82@ wrote: I have a custom adapter I'm using for messaging. This code works in BlazeDS, but when I try it in LiveCycle DS it does not work. The return value (a new AckknowledgeMessage I created) from my overriden manage() method never makes it to the client. I see the message from the sysout at the end of the method populated correctly, but whatever is happening after this method is called and before the message is returned to the client overwrites what I returned. Any thoughts? public class MyMessagingAdapter extends ServiceAdapter { public boolean handlesSubscriptions() { return true; } public Object manage(CommandMessage command) { Object ret = null; try { if (command.getOperation() == CommandMessage.SUBSCRIBE_OPERATION) { // Do something custom here... AcknowledgeMessage msg = new AcknowledgeMessage(); ASObject body = (ASObject)msg.getBody (); if (body == null) { body = new ASObject(); msg.setBody(body); } body.put(someValue,abc); body.put(spmeOtherValue, def); ret = msg; } } catch (Throwable t) { System.out.println(manage(), exception caught:\n + t.getMessage()); t.printStackTrace(); } System.out.println(manage(), returning msg:\n + ret); return ret; }
[flexcoders] ANN: FlexUS (US Flex group on LinkedIn)
For anyone that is interested / active on LinkedIn - there is a group for Flex coders in the US. http://www.linkedin.com/e/gis/128295/45E3F22E5C9C Rick Winscot
Re: [flexcoders] ANYONE? LCDS Bug? Return from overriden ServiceAdapter manage() disregarded
Another 2 speculations 1. first request has to return 2K of junk as part of typical handshake and no valuable info - it is just to get subscription ID and stuff. It is typical to swallow the first 2K of messages and do not respond to them till the stream goes over 2K. Please use any debugging proxy - I use either Charles or wire debugger depending on protocol - to see if the data is actually going to the client. If it does, I would add 4K string var as a part of the response. 2. Subscription ID is not established yet, so you really need to debug through the client code in order to see if there are any errors in handling the subscription - usually subscriptions are not returning data on the first response and client code might - I did not look in subscription endpoint - ignore everything but the headers. I would create client side endpoint to match ServiceAdapter. HTH, Anatole On Tue, Jun 24, 2008 at 12:45 AM, shaun [EMAIL PROTECTED] wrote: Hi, A pure 100% guess... Perhaps you need to call super.manage(command). Steven Toth wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Steven Toth [EMAIL PROTECTED] wrote: I have a custom adapter I'm using for messaging. This code works in BlazeDS, but when I try it in LiveCycle DS it does not work. The return value (a new AckknowledgeMessage I created) from my overriden manage() method never makes it to the client. I see the message from the sysout at the end of the method populated correctly, but whatever is happening after this method is called and before the message is returned to the client overwrites what I returned. Any thoughts? public class MyMessagingAdapter extends ServiceAdapter { public boolean handlesSubscriptions() { return true; } public Object manage(CommandMessage command) { Object ret = null; try { if (command.getOperation() == CommandMessage.SUBSCRIBE_OPERATION) { // Do something custom here... AcknowledgeMessage msg = new AcknowledgeMessage(); ASObject body = (ASObject)msg.getBody (); if (body == null) { body = new ASObject(); msg.setBody(body); } body.put(someValue,abc); body.put(spmeOtherValue, def); ret = msg; } } catch (Throwable t) { System.out.println(manage(), exception caught:\n + t.getMessage()); t.printStackTrace(); } System.out.println(manage(), returning msg:\n + ret); return ret; }