Re: [flexcoders] Re: Flex Component Kit still needed for CS4?
I think the question.. is the Flex component kit already installed in CS4? To that, I don't know that answer right off the bat. Flash and Flex workflows are quite confusing. Someone from Adobe needs to write an updated article on DevNet explaining the preferred way of working with Flash and Flex. On Sun, Apr 5, 2009 at 8:21 PM, Amy amyblankens...@bellsouth.net wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, brad.bueche b...@... wrote: I know CS3 needed the flex component kit. Does CS4 need it as well? Its confusing because this page: http://help.adobe.com/en_US/Flash/10.0_UsingFlash/WSFD77A256-0DE1-46c7-86FB-CC4A8AE2EAA6.html which is for CS4, sends you to the component page, but the component page only mentions CS3. What do you mean by needed? The component kit is kind of a convenience for wrapping a flash MC or Sprite so it looks just like a component to Flex, but you've always had the option of loading an ordinary swf into a swfloader. -- Cheers, Nate http://blog.natebeck.net
Re: [flexcoders] Eclipse Ganymede
I use ganymede for quite a while now and haven't ran into any issues... C From: Tim Rowe tim.r...@carsales.com.au To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Sent: Monday, April 6, 2009 3:42:19 AM Subject: RE: [flexcoders] Eclipse Ganymede I recently installed Builder on a fresh system with Eclipse(Ganymede) , and had to do two things: 1. Install the old Builder Plug-in to my Ganymede install. You have to insist yes, this is an eclipse dir 2. Get the absolute latest version of builder standalone, and then copy over the newer jars from that install to my plug-in environment. Supposedly the plug-in version is available as the same version, but I couldn't find it. Alternatively, try this: http://www.tekool. net/blog/ 2008/06/28/ flex-builder- 3-plugin- dont-work- with-eclipse- 34/ Tim Rowe Software Engineer carsales.com Ltd From: flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Albert Waltner Sent: Monday, 6 April 2009 10:30 AM To: flexcod...@yahoogro ups.com Subject: [flexcoders] Eclipse Ganymede Still using Windows XP and trying Eclipse Ganymede with Flex 3. The messages going back to 9/08 discuss Ganymede problems but without a clear explanation. I have installed Eclipse 3.2.2 and Flex3 and that works but when installing Eclipse current version (Ganymede) it does not. On Adobe.com an example posted says it uses Eclipse Ganymede so, it would seem, the poster had NO problems with Ganymede. Why not? Everyone OK with Ganymede? Or not using it? Thanks.
[flexcoders] Iframe in RichTextEditor(flex 3)
hi i need to implement iframe in RichTextEditor in flex application.
[flexcoders] Re: Remote Object call - Server Response code
Hi Matt Chotin, So is there any official guide for this? Integrading Flex,LCDS and Siteminder. Coz I am facing a similar issue... Thanks. Dan --- In flexcoders@yahoogroups.com, Matt Chotin mcho...@... wrote: We're investigating this further and will work with Sridhar offline... Matt From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Boddula, Sridhar Sent: Thursday, November 10, 2005 7:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Remote Object call - Server Response code We use AMF Remote Object calls to get data from server. Our server is protected by siteminder. Due to multiple logins sever is sending response code 302 for RO call. But client side RO is not able interpret any response codes other than 200. RO call is just clocking. Does any one know how to read server response codes when we use AMF RO calls? Thanks, Sridhar Boddula, EIS - New Tech. Development 617-664-8566(Work) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: flexcoders-unsubscr...@yahoogroups.com mailto:flexcoders-unsubscr...@yahoogroups.com?subject=unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ .
[flexcoders] Re: Bizarre browser inconsistencies...?
this may be happening because www.domain.com and domain.com are considered different domains in some browsers and others no. try to set the crossdomain to allow both, or redirect trough server always for only one domain.
[flexcoders] Vidoe Tutorials Needed
Dear Friends, I am fresher in Flex Builder 3 and i want to learn Flex. Can any buddy help me in getting best explinatory video tutorials for that. I hope some buddy will definatley help me. With High Regards Shabir Ahmad Gilkar From Kashmir the Heaven! Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/
[flexcoders] Re: Trying to dynamically populate checkboxes via array binding
Thanks! It is the exact thing I needed to understand. Chears, Benoit
[flexcoders] issues with printing on mac and linux
HI there, I'm trying to print out a sprite called 'plan', but its not appearing on Mac and Linux. Here I draw my plan sprite into a bitmap, add that bitmap to a sprite and try and print that. I get blanks on Mac and Linux. Any ideas really appreciated! var pj:PrintJob = new PrintJob(); if( pj.start()) { var planh:Number = plan.height; var planw:Number = plan.width; var ph:Number = pj.pageHeight; var pw:Number = pj.pageWidth; var bd:BitmapData = new BitmapData(planw, planh, false ); var bmp:Bitmap; var s:Sprite= new Sprite(); // figure out a scale that will suit the print var rw:Number = planw/pw; var rh:Number = planh/ph; bd.draw(plan, null,null,null,null, true); bmp = new Bitmap(bd); if(rw 1 || rh1) { var scale:Number = rw rh ? 1/rw : 1/rh; bmp.scaleX = scale; bmp.scaleY = scale; } s.addChild(bmp); pj.addPage(s); pj.send(); }
Re: [flexcoders] Vidoe Tutorials Needed
Adobe's Learn Flex in a Week: http://www.adobe.com/devnet/flex/videotraining/ The Flex Show Podcast ScreenShots: http://www.theflexshow.com/blog/index.cfm/Fifteen-Minutes-With-Flex Shabir Gilkar wrote: Dear Friends, I am fresher in Flex Builder 3 and i want to learn Flex. Can any buddy help me in getting best explinatory video tutorials for that. I hope some buddy will definatley help me. *With High Regards Shabir Ahmad Gilkar* ** *From Kashmir the Heaven!* Add more friends to your messenger and enjoy! Invite them now. http://in.rd.yahoo.com/tagline_messenger_6/*http://messenger.yahoo.com/invite/ -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
[flexcoders] Re: When is Gumbo expiration date?
Matt, How do we keep Gumbo running? the 'old set the date on the computer back' trick??? P --- In flexcoders@yahoogroups.com, Matt Chotin mcho...@... wrote: Hi, March 31 I believe. We are not going to have the new beta out by then either. Matt On 2/27/09 2:46 PM, djhatrick djhatr...@... wrote: Hope it's not March 1? Just checking... In case. Thanks, Patrick
[flexcoders] Flex Modules and external sources
Hi, a little question for you.. i've a module that could load some images from an external directory. The structure i use is: projectname ---some sources classes ---imagedir firstimage.jpg secondimage.jpg ---modules mymodule So i create an mx:image tag into the module and i set the source property equal to the image file path (for example firstimage.jpg).. this solution doesn't work..why? any solutions? thanks in advance regards Lorenzo
Re: [flexcoders] Flex Modules and external sources
Lorenzo, mx:Image source=@Embed('/imagedir/firstimage.jpg') / Use this it would work -- Regards, Paresh M. More Senior Software Engineer Nashik/Pune, Maharashtra, India. Email - pareshm...@gmail.com On Mon, Apr 6, 2009 at 7:07 PM, thelordsince1984 lore...@katamail.comwrote: Hi, a little question for you.. i've a module that could load some images from an external directory. The structure i use is: projectname ---some sources classes ---imagedir firstimage.jpg secondimage.jpg ---modules mymodule So i create an mx:image tag into the module and i set the source property equal to the image file path (for example firstimage.jpg).. this solution doesn't work..why? any solutions? thanks in advance regards Lorenzo
[flexcoders] Re: Bizarre browser inconsistencies...?
Thanks for your response. I had already got the crossdomain.xml set to allow both options... Anyway, strangely this morning it is working. Which is even stranger, since I haven't changed anything - but makes me concerned since if it is a sporadic fault, it will be difficult to know whether the viewer is able to see my whole showreel or not. I will try your re-routing solution.--- In flexcoders@yahoogroups.com, carloscarvalhar carloscarval...@... wrote: this may be happening because www.domain.com and domain.com are considered different domains in some browsers and others no. try to set the crossdomain to allow both, or redirect trough server always for only one domain.
[flexcoders] APE physics engine
I was wondering if anyone can point me to a tutorial or example of how to apply gravity to a displayobject in Flex? Like this http://www.zoomorama.com/2477f0e8b447bb6570493cdac464c41f (if you zoom in and then drag or throw the map it decelerates as it reaches its destination). I know of APE but not sure if that is overkill? I have an object like the web trends map that is flat (think board game not a scene) so no top and bottom, but an aerial view, that people can drag but I want to add gravity to it. TIA, J
[flexcoders] Re: maven compile flex project
Hi, I've used flexmojos on the Jspresso Java/Flex/Ajax framework. The integration was really painless and the plugin coverage is impressive. It sometimes lacks detailed documentation, but this is something Sonatype and VELO are improving. It really stands out. promo By the way, if you are working with a Java backend and are fed-up with model-view synchronization and value-objects, you should give a try to the latest release of the Jspresso RIA framework (LGPL). /promo Regards, Vincent --- In flexcoders@yahoogroups.com, Marvin Froeder velo...@... wrote: You can use flexmojos for that:http://flexmojos.sonatype.org/ VELO On Thu, Apr 2, 2009 at 5:18 PM, Fernando Wermus fernando.wer...@...wrote: Hi Folks, I am looking for a maven plugin and a pom.xml example for compiling and for generating a swf. Which is the best plugin you have tested it? Do you have an example which compile, generate swf and copy to another project the swf file generated? I am needing to integrate with several projects in the same workspace too. Thanks in advance! -- Fernando Wermus. www.linkedin.com/in/fernandowermus http://mientretiempo.blogspot.com/
[flexcoders] Re: Access active column header (DataGrid)
I tried to do something like that override protected function validateProperties() { super.validateProperties(); setStyle('backgroundColor',0xFF); } it doesn't work --- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: How are you setting backgroundColor? Show some code. Tracy Spratt, Lariat Services, development services available
[flexcoders] Re: Flex Modules and external sources
Hi, thanks for the reply.. in this manner i would embed the image into the swf module file, is it true? is there a mechanism to avoid this? infact i would access an external directory without embed images into the swf module file. Thanks again Regards Lorenzo --- In flexcoders@yahoogroups.com, Paresh M More pareshm...@... wrote: Lorenzo, mx:Image source=@Embed('/imagedir/firstimage.jpg') / Use this it would work -- Regards, Paresh M. More Senior Software Engineer Nashik/Pune, Maharashtra, India. Email - pareshm...@... On Mon, Apr 6, 2009 at 7:07 PM, thelordsince1984 lore...@...wrote: Hi, a little question for you.. i've a module that could load some images from an external directory. The structure i use is: projectname ---some sources classes ---imagedir firstimage.jpg secondimage.jpg ---modules mymodule So i create an mx:image tag into the module and i set the source property equal to the image file path (for example firstimage.jpg).. this solution doesn't work..why? any solutions? thanks in advance regards Lorenzo
Re: [flexcoders] Re: When is Gumbo expiration date?
You probably shouldn't programming anything critical in Gumbo in the first place. There are many things that are changing since the Flex Builder Gumbo preview came out, particularly the FxPrefix. That being said, you can still go and grab that latest version of the Flex SDK from opensource.adobe.com, and use mxmlc to compile your code. I believe some people have been using Flex Builder 3 to compile Flex SDK 4 code as well, although I haven't personally done it. For what it's worth, even if you went and got the nightly build of Flex SDK Gumbo, your code probably won't work with all the recent changes made to Gumbo. HTH, Nate On Mon, Apr 6, 2009 at 6:34 AM, djhatrick djhatr...@yahoo.com wrote: Matt, How do we keep Gumbo running? the 'old set the date on the computer back' trick??? P --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Matt Chotin mcho...@... wrote: Hi, March 31 I believe. We are not going to have the new beta out by then either. Matt On 2/27/09 2:46 PM, djhatrick djhatr...@... wrote: Hope it's not March 1? Just checking... In case. Thanks, Patrick -- Cheers, Nate http://blog.natebeck.net
[flexcoders] reading a simple array dump?
this is my first array dump and i was wondering how to show an item in an alert box I have an httpservice with resultformat to array now how do i alert the first name in the list? Alert.show(myhttpservice.lastResult.DATARESULTS.info.NAME); Doesn't work (mx.collections::ArrayCollection)#0 filterFunction = (null) length = 1 list = (mx.collections::ArrayList)#1 length = 1 source = (Array)#2 [0] (Object)#3 DATARESULTS = (Object)#4 info = (mx.collections::ArrayCollection)#5 filterFunction = (null) length = 4 list = (mx.collections::ArrayList)#6 length = 4 source = (Array)#7 [0] (Object)#8 NAME = (null) [1] (Object)#9 NAME = Dory, Jason [2] (Object)#10 NAME = Doe, Jason [3] (Object)#11 NAME = Daniel, Jason uid = EA885A5B-71B3-346D-2A21-7BC841863233 sort = (null) source = (Array)#7 uid = C9FAD864-FEE7-6523-6EEF-7BC84187A68B sort = (null) source = (Array)#2
Re: [flexcoders] Re: Bizarre browser inconsistencies...?
Carlos is correct, sub-domains are considered different websites when it comes to cross-domains. You could of course add a wild-card entry (*. domain.com) into your cross-domain file if you wish, that way any sub-domain you have will be able to access www and every other and sub-domain. On Mon, Apr 6, 2009 at 2:20 AM, carloscarvalhar carloscarval...@ig.com.brwrote: this may be happening because www.domain.com and domain.com are considered different domains in some browsers and others no. try to set the crossdomain to allow both, or redirect trough server always for only one domain. -- Cheers, Nate http://blog.natebeck.net
[flexcoders] Question about accessing Flex from Java
Hi, I have a question about accessing Flex from Java. Some context: I am writing automated JUnit integration tests that will call the remote objects in the Flex application that is under test. We also have Junit unit tests and will have automated Flex GUI tests ... but this question is specifically about the integration tests that I want to write in Java with JUnit to call the remote objects. I have a simple integration test that accesses the application: AMFConnection myamfConnection = new AMFConnection(); And I *think* it will be easy enough to call the remote objects. But first, I need to login or authenticate ...and I am puzzled. The Flex application under test uses ChannelSets ... and this is specifically where I am puzzled. I am having trouble figuring out how to login, authenticate, or otherwise create the ChannelSet from a Java client. So this is my question how to access and authenicate with a Flex application from a Java client? Any advice or code snippets is much appreciated. Thanks! Michael Foley
[flexcoders] Re: Eclipse Ganymede
Would people mind sharing their eclipse.ini files for ganymede? I am having issues up-ing the max memory usage: -showsplash org.eclipse.platform -framework plugins\org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar -vmargs -Xms512m -Xmx650m -XX:+UseParallelGC -XX:PermSize=256m If I change it Xmx to 660 or more, the program throws an error on startup. What do others use? --- In flexcoders@yahoogroups.com, claudiu ursica the_bran...@... wrote: I use ganymede for quite a while now and haven't ran into any issues... C From: Tim Rowe tim.r...@... To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Sent: Monday, April 6, 2009 3:42:19 AM Subject: RE: [flexcoders] Eclipse Ganymede I recently installed Builder on a fresh system with Eclipse(Ganymede) , and had to do two things: 1. Install the old Builder Plug-in to my Ganymede install. You have to insist yes, this is an eclipse dir 2. Get the absolute latest version of builder standalone, and then copy over the newer jars from that install to my plug-in environment. Supposedly the plug-in version is available as the same version, but I couldn't find it. Alternatively, try this: http://www.tekool. net/blog/ 2008/06/28/ flex-builder- 3-plugin- dont-work- with-eclipse- 34/ Tim Rowe Software Engineer carsales.com Ltd From: flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Albert Waltner Sent: Monday, 6 April 2009 10:30 AM To: flexcod...@yahoogro ups.com Subject: [flexcoders] Eclipse Ganymede Still using Windows XP and trying Eclipse Ganymede with Flex 3. The messages going back to 9/08 discuss Ganymede problems but without a clear explanation. I have installed Eclipse 3.2.2 and Flex3 and that works but when installing Eclipse current version (Ganymede) it does not. On Adobe.com an example posted says it uses Eclipse Ganymede so, it would seem, the poster had NO problems with Ganymede. Why not? Everyone OK with Ganymede? Or not using it? Thanks.
Re: [flexcoders] Re: When is Gumbo expiration date?
Yep, there have been so many changes since this preview came out that I really wouldn't recommend coding against it. Code against a more recent nightly build of the SDK. Matt On 4/6/09 7:32 AM, Nate Beck n...@tldstudio.com wrote: You probably shouldn't programming anything critical in Gumbo in the first place. There are many things that are changing since the Flex Builder Gumbo preview came out, particularly the FxPrefix. That being said, you can still go and grab that latest version of the Flex SDK from opensource.adobe.com http://opensource.adobe.com , and use mxmlc to compile your code. I believe some people have been using Flex Builder 3 to compile Flex SDK 4 code as well, although I haven't personally done it. For what it's worth, even if you went and got the nightly build of Flex SDK Gumbo, your code probably won't work with all the recent changes made to Gumbo. HTH, Nate On Mon, Apr 6, 2009 at 6:34 AM, djhatrick djhatr...@yahoo.com wrote: Matt, How do we keep Gumbo running? the 'old set the date on the computer back' trick??? P --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Matt Chotin mcho...@... wrote: Hi, March 31 I believe. We are not going to have the new beta out by then either. Matt On 2/27/09 2:46 PM, djhatrick djhatr...@... wrote: Hope it's not March 1? Just checking... In case. Thanks, Patrick
RE: [flexcoders] Flex Modules and external sources
Relative paths in modules are relative to the Application not the Module. Make sure you're using the right path. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of thelordsince1984 Sent: Monday, April 06, 2009 6:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex Modules and external sources Hi, a little question for you.. i've a module that could load some images from an external directory. The structure i use is: projectname ---some sources classes ---imagedir firstimage.jpg secondimage.jpg ---modules mymodule So i create an mx:image tag into the module and i set the source property equal to the image file path (for example firstimage.jpg).. this solution doesn't work..why? any solutions? thanks in advance regards Lorenzo
[flexcoders] Dynamic Flex Stacked Column Chart
I'd like to create a dynamic Flex Stacked Column Chart at runtime, based on values out of a database. The following are the steps that I currently follow (without success): 1. Query the database and populate chartIemArrayColl with ChartItem objects 2. Iterate through chartIemArrayColl and only create a a new columnseries object if there does not already exist on for that 'selection'. Add this columnseries to the columnset 3. Apply this to the chart Note: I used secondSeries instead of series because of a known defect in Flex that makes the charts off center if series is used. Problems: 1. The chartIemArrayColl contains items that contain the same 'name' but different 'value' and different 'selection'. However, in this case that particular 'name' is printed on the x-axis multiple times (not correct) 2. The 'selection' should be the legend, but when it is graphed it does not seem as though it is connected to the items actually charted What I'd like to achieve: 1. Column chart with a legend that contains only values of the 'selection' 2. Stacked Column chart that contains values where I can chart the following example: item1 (name=myName, selection=sel1, value=4) item2 (name=myName, selection=sel2, value=6) item3 (name=name3, selection=sel1, value=8) I expect a chart that has myName and name3 across the x-axis (myName should only appear once). A column should appear at myName that has one color/selection (value 4) stacked on top of another (value 6). A column should be at name3 with the same color/selection as item1 (value 8). Can you please help me with this? Thanks so much in advance ChartItem.as --- package com.dashboard.teamtrack.util { public class ChartItem { public var name:String; public var selection:String; public var value:int; public function ChartItem() { } } } Main.mxml --- for each(var currChartItem:ChartItem in chartIemArrayColl ) { if(!selectionArr.contains(currChartItem.selection)) { selectionArr.addItem(currChartItem.selection); var columnSeries:ColumnSeries = new ColumnSeries(); columnSeries.setStyle(itemRenderer, new ClassFactory(com.dashboard.itemrenderers.TriDiRenderer)); columnSeries.displayName = currChartItem.selection; columnSeries.yField = 'value'; columnSeries.xField = 'name'; columnSeries.dataProvider = chartIemArrayColl ; columnSet.series.push(columnSeries); } } columnSet.type = stacked; chart.secondSeries.push(columnSet); chart.invalidateSeriesStyles(); chart.secondSeries = chart.secondSeries; //More code here mx:ColumnChart id=chart height=100% width=100% fontSize=9 fontWeight=bold color=#01 showDataTips=true clipContent=false x=0 y=27 mx:verticalAxis mx:LinearAxis title=Open Count Total / /mx:verticalAxis mx:horizontalAxisRenderers itemrenderers:TriDiAxisRenderer axis={myHorizontalAxis} placement=bottom/ /mx:horizontalAxisRenderers mx:horizontalAxis mx:CategoryAxis id=myHorizontalAxis dataProvider={chartIemArrayColl} categoryField=name/ /mx:horizontalAxis /mx:ColumnChart mx:Legend id=openDefectChartLegend dataProvider={chart} fontSize=9 fontWeight=bold color=#01 width=100% height=64/
[flexcoders] CairngormEvent dispatch question
What is the difference between: CairngormEvent.getInstance().dispatchEvent(myEvent); and myEvent.dispatch(); where myEvent extends the CairngormEvent class? I've been using the 1st code to dispatch my events but, saw in a post the 2nd. All my event classes extend the CairngormEvent class so, what exactly is the difference between the two? Thanks!
Re: [flexcoders] undefined SampleDataEvent
Have you changed the project properties to target FP10? -Original Message- From: Florian Heft mailingli...@fam-heft.de Reply-to: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] undefined SampleDataEvent Date: Sun, 05 Apr 2009 17:02:31 +0200 Hello everybody, I'm playing around with the new sound capabilities of Flash10 and wanted to try out an example I found on the internet. Basically, I ported the DynamicSoundSample1 from http://www.adobe.com/devnet/flash/articles/dynamic_sound_generation/ to Flex 3. But I keep getting the error Flex error: type was not found or was not a compile-time constant: SampleDataEvent. Indeed, Flex Builder also doesn't show SampleDataEvent in the code completition of import flash.events.. According to the LiveDocs, SampleDataEvents should be available in Flex 3.3 (and I recently updated the SDK to 3.3 and updated the project options): http://livedocs.adobe.com/flex/3/langref/flash/events/SampleDataEvent.html What am I doing wrong? Simplest reproducable code: --- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import flash.events.SampleDataEvent; function sampleDataHandler(event:SampleDataEvent):void { } ]] /mx:Script /mx:Application --- Best regards, florian heft -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Re: Bizarre browser inconsistencies...?
This could be due to browser caching--it could be that you made the change, but the browser cached the old .swf, so you never actually tested that change. Some people append the current time to the .swf request to get around this issue. -Maciek -Original Message- From: one_rabbit_one sinewa...@btinternet.com Reply-to: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Bizarre browser inconsistencies...? Date: Mon, 06 Apr 2009 13:54:49 - Thanks for your response. I had already got the crossdomain.xml set to allow both options... Anyway, strangely this morning it is working. Which is even stranger, since I haven't changed anything - but makes me concerned since if it is a sporadic fault, it will be difficult to know whether the viewer is able to see my whole showreel or not. I will try your re-routing solution.--- In flexcoders@yahoogroups.com, carloscarvalhar carloscarval...@... wrote: this may be happening because www.domain.com and domain.com are considered different domains in some browsers and others no. try to set the crossdomain to allow both, or redirect trough server always for only one domain.
[flexcoders] Re: Iframe in RichTextEditor(flex 3)
Hmm . . . IFRAME is an HTML element, not a Flex (MXML) one. Please clarify what you are trying to accomplish--are you trying to display HTML content? Regards, Jim --- In flexcoders@yahoogroups.com, senthilkumarirtt senthilkumari...@... wrote: hi i need to implement iframe in RichTextEditor in flex application.
Re: [flexcoders] CairngormEvent dispatch question
it is one and the same, the cairngormevent class has been modified to implement a dispatch() method which does exactly what your code doesCairngormEvent. getInstance( ).dispatchEvent( myEvent); so you can use any of the 2 forms you like ... C From: nathanpdaniel ndan...@bsi-scs.com To: flexcoders@yahoogroups.com Sent: Monday, April 6, 2009 7:21:32 PM Subject: [flexcoders] CairngormEvent dispatch question What is the difference between: CairngormEvent. getInstance( ).dispatchEvent( myEvent); and myEvent.dispatch( ); where myEvent extends the CairngormEvent class? I've been using the 1st code to dispatch my events but, saw in a post the 2nd. All my event classes extend the CairngormEvent class so, what exactly is the difference between the two? Thanks!
[flexcoders] DataGrid Column Sort Prevents Drag From Updating DataProvider
Hi I think I've seen this commented on before on flexcoders so sorry for the duplication. In the reply the person who asked the question was told to turn off the Column Sort and that would do it but won't this reset the sort order back to default before allowing the drag ? I want to cater for the situation where the user might want to sort the DataGrid into reverse alphabetical order and then just drag the resulting first row to be the second one. Maybe I'm using the wrong method of turning off the column sort - I set the sort property of the ListColection DataProvider for the DataGrid to null and then refresh ? Any sugegstions please ? Thanks Chris
Re: [flexcoders] Re: Eclipse Ganymede
What JVM are you using ? On which platform ? Can you catch the error message ? Mine is using : -startup plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar But if it's a VM startup error, the problem isn't there... JVMs have max heap limitations but 660m is a little bit too low. -- Vincent Vandenschrick Jspresso Framework http://www.jspresso.org Would people mind sharing their eclipse.ini files for ganymede? I am having issues up-ing the max memory usage: -showsplash org.eclipse.platform -framework plugins\org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar -vmargs -Xms512m -Xmx650m -XX:+UseParallelGC -XX:PermSize=256m If I change it Xmx to 660 or more, the program throws an error on startup. What do others use? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, claudiu ursica the_bran...@... wrote: I use ganymede for quite a while now and haven't ran into any issues... C From: Tim Rowe tim.r...@... To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Monday, April 6, 2009 3:42:19 AM Subject: RE: [flexcoders] Eclipse Ganymede I recently installed Builder on a fresh system with Eclipse(Ganymede) , and had to do two things: 1. Install the old Builder Plug-in to my Ganymede install. You have to insist yes, this is an eclipse dir 2. Get the absolute latest version of builder standalone, and then copy over the newer jars from that install to my plug-in environment. Supposedly the plug-in version is available as the same version, but I couldn't find it. Alternatively, try this: http://www.tekool. net/blog/ 2008/06/28/ flex-builder- 3-plugin- dont-work- with-eclipse- 34/ Tim Rowe Software Engineer carsales.com Ltd From: flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Albert Waltner Sent: Monday, 6 April 2009 10:30 AM To: flexcod...@yahoogro ups.com Subject: [flexcoders] Eclipse Ganymede Still using Windows XP and trying Eclipse Ganymede with Flex 3. The messages going back to 9/08 discuss Ganymede problems but without a clear explanation. I have installed Eclipse 3.2.2 and Flex3 and that works but when installing Eclipse current version (Ganymede) it does not. On Adobe.com an example posted says it uses Eclipse Ganymede so, it would seem, the poster had NO problems with Ganymede. Why not? Everyone OK with Ganymede? Or not using it? Thanks.
Re: [flexcoders] Re: BlazeDS or JSON
We are using remoting with Blaze. Now, keep in mind that if you do go JSON route you'll be able to use different UIs (like build small factor device UI in JS). With remoting you are 'locked in the solution' (but we like it :) ). On Sat, Apr 4, 2009 at 3:41 PM, max.nachlinger max.nachlin...@gmail.com wrote: I'd personally go with Remoting via BlazeDS. With remoting you can: 1. Map your AS DTOs to Java DTOs, meaning when data arrives from the middle-tier, you get it automatically typed as your AS classes. (e.g. a remote call to searchUsers() will return an Array of your native User objects). 2. You can send an AS DTO at the middle tier and it will arrive as its Java DTO counterpart. 3. Remoting talks via AMF, which, being a binary format, is far less bloated than JSON. 4. You are not tied to DTOs, you can still send standard objects and primitives across the wire. The down-side to the DTO approach outlined above is that you have to maintain 2 sets of these objects. Code generation helps here and its arguably a small price to pay for what remoting brings to the table. JSON is a pain as you'll have to do a fair amount of de-serializing and casting, but it you want to go that dark-route, as3corelib has great JSON support. I'm still waiting for someone to (fully) implement Google's badass Protocol Buffers (http://code.google.com/apis/protocolbuffers/), which would be a great binary alternative to remoting. Hope this rambling answer helps. --- In flexcoders@yahoogroups.com, oneworld95 oneworl...@... wrote: Which tech do you recommend for simply reading data from the database via Java? BlazeDS or JSON? I'm thinking of keeping things simple and efficient. Thanks. - Alex C -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Re: maven compile flex project
I am just curious on what is that is bothering you with syncing model-views? It is pretty straightforward MVC pattern? I am just curious really! On Mon, Apr 6, 2009 at 6:37 AM, vvandens vvand...@gmail.com wrote: Hi, I've used flexmojos on the Jspresso Java/Flex/Ajax framework. The integration was really painless and the plugin coverage is impressive. It sometimes lacks detailed documentation, but this is something Sonatype and VELO are improving. It really stands out. promo By the way, if you are working with a Java backend and are fed-up with model-view synchronization and value-objects, you should give a try to the latest release of the Jspresso RIA framework (LGPL). /promo Regards, Vincent --- In flexcoders@yahoogroups.com, Marvin Froeder velo...@... wrote: You can use flexmojos for that:http://flexmojos.sonatype.org/ VELO On Thu, Apr 2, 2009 at 5:18 PM, Fernando Wermus fernando.wer...@...wrote: Hi Folks, I am looking for a maven plugin and a pom.xml example for compiling and for generating a swf. Which is the best plugin you have tested it? Do you have an example which compile, generate swf and copy to another project the swf file generated? I am needing to integrate with several projects in the same workspace too. Thanks in advance! -- Fernando Wermus. www.linkedin.com/in/fernandowermus http://mientretiempo.blogspot.com/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: Problems opening window from AIR system tray app
I just found a reference that is doing something very similar (see below); but somehow I still have problems with mine. http://www.adobe.com/devnet/air/flex/quickstart/creating_non-rectangular_windows.html Thanks again, Mitch. --- In flexcoders@yahoogroups.com, michob mic...@... wrote: Hi folks, I'm working on an AIR app that lives in the system tray / dock. It should not have a visible window at startup, only a system tray icon. After some event, I would like to create one of two windows (depending on the event). I've got the system tray part working, but can't get the window to open... TrayApp.as: class TrayApp extends Sprite { // etc function processEvent() { var wnd:Window = new MyWindow(); mywindow.open(); } // etc } MyWindow.mxml: mx:Window xmlns:mx=http://www.adobe.com/2006/mxml; width=400 height=300 mx:Label text=hello, world/ /mx:Window When I run this, I get an exception deep in UIComponent: TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::updateC\ allbacks()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\\ UIComponent.as:5124] I suspect that maybe I can't call the open() of Window from my app that extends Sprite because some of the application framework is missing (like layout managers, etc..). Maybe it has to extend Application/NativeApplication instead? I tried that, but got another odd exception. Anyone know how to do this? Thanks, Mitch.
Re: [flexcoders] How can I call a function from a class?
Thanks everyone for the great help! I got it working :) -David From: Paul Andrews p...@ipauland.com To: flexcoders@yahoogroups.com Sent: Monday, April 6, 2009 1:52:17 PM Subject: Re: [flexcoders] How can I call a function from a class? Declare a class instance, or make the function static. It's customary to name classes with a capital letter at the start, instances with a lower case. private function callClassFunction( ):void { var test:Layout = new Layout(); test.traceTest( ); } Paul - Original Message - From: sailorsea21 sailorsea21@ yahoo.com To: flexcod...@yahoogro ups.com Sent: Monday, April 06, 2009 6:36 PM Subject: [flexcoders] How can I call a function from a class? Hi everyone, How can I call a function from a class? // MAIN FILE import test.layout; private function callClassFunction( ):void { test.layout_ QT.traceTest( ); } // CLASS FILE layout.as package test { public class layout { public function traceTest(): void { trace(This is a test.); } } } Thanks. - - -- -- Flexcoders Mailing List FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt Alternative FAQ location: https://share. acrobat.com/ adc/document. do?docid= 942dbdc8- e469-446f- b4cf-1e62079f684 7 Search Archives: http://www.mail- archive.com/ flexcoders% 40yahoogroups. comYahoo! Groups Links
[flexcoders] Re: How can I call a function from a class?
Too funny Paul. Sorry mate. -TH --- In flexcoders@yahoogroups.com, Paul Andrews p...@... wrote: LOL Tim got there first! - Original Message - From: Paul Andrews p...@... To: flexcoders@yahoogroups.com Sent: Monday, April 06, 2009 6:52 PM Subject: Re: [flexcoders] How can I call a function from a class? Declare a class instance, or make the function static. It's customary to name classes with a capital letter at the start, instances with a lower case. private function callClassFunction():void { var test:Layout = new Layout(); test.traceTest(); } Paul - Original Message - From: sailorsea21 sailorse...@... To: flexcoders@yahoogroups.com Sent: Monday, April 06, 2009 6:36 PM Subject: [flexcoders] How can I call a function from a class? Hi everyone, How can I call a function from a class? // MAIN FILE import test.layout; private function callClassFunction():void { test.layout_QT.traceTest(); } // CLASS FILE layout.as package test { public class layout { public function traceTest():void { trace(This is a test.); } } } Thanks. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-\ 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-\ 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: Sharing objects (BitmapData) between 2 loaded swfs
Hi Tracy, I noticed LocalConnection through the documentation. Although people have mentioned that it shares the connection even across multiple pages in the same browser, you would end up getting collisions, which is silly. Have you had experience working around that problem? When you have a very large project consisting of many complex elements and states, and A LOT of resources, it makes sense to have one swf that has ownership of all resources loaded. Then each satellite swf can reference the resource repository and thus minimize loading times considerably. Mark --- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: Local connection is probably a better option. Do you have a compelling use-case for having two swfs? That complicates issues considerably. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of p0lish_sausage Sent: Sunday, April 05, 2009 9:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Sharing objects (BitmapData) between 2 loaded swfs Hello everyone, I'm wondering if Flex has the capability of having 2 loaded swfs on a webpage that share the same complex objects, in memory. What I want to do load a bitmapdata in A.swf, and then reference use it both in A.swf and B.swf at the same time. I'd like when the bitmap in A.swf gets updated the B.swf is updated automatically, because it's pointing to the same object. I've found documentation for SharedObjects, however the amount of data I'll be storing is in the megabytes and speed is at the utmost importance, so it shouldn't be hitting the users local disk, so that won't work. Any suggestions for the above mentioned would be much appreciated. Mark
[flexcoders] How can I call a function from a class?
Hi everyone, How can I call a function from a class? // MAIN FILE import test.layout; private function callClassFunction():void { test.layout_QT.traceTest(); } // CLASS FILE layout.as package test { public class layout { public function traceTest():void { trace(This is a test.); } } } Thanks.
Re: [flexcoders] How can I call a function from a class?
Declare a class instance, or make the function static. It's customary to name classes with a capital letter at the start, instances with a lower case. private function callClassFunction():void { var test:Layout = new Layout(); test.traceTest(); } Paul - Original Message - From: sailorsea21 sailorse...@yahoo.com To: flexcoders@yahoogroups.com Sent: Monday, April 06, 2009 6:36 PM Subject: [flexcoders] How can I call a function from a class? Hi everyone, How can I call a function from a class? // MAIN FILE import test.layout; private function callClassFunction():void { test.layout_QT.traceTest(); } // CLASS FILE layout.as package test { public class layout { public function traceTest():void { trace(This is a test.); } } } Thanks. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] How can I call a function from a class?
LOL Tim got there first! - Original Message - From: Paul Andrews p...@ipauland.com To: flexcoders@yahoogroups.com Sent: Monday, April 06, 2009 6:52 PM Subject: Re: [flexcoders] How can I call a function from a class? Declare a class instance, or make the function static. It's customary to name classes with a capital letter at the start, instances with a lower case. private function callClassFunction():void { var test:Layout = new Layout(); test.traceTest(); } Paul - Original Message - From: sailorsea21 sailorse...@yahoo.com To: flexcoders@yahoogroups.com Sent: Monday, April 06, 2009 6:36 PM Subject: [flexcoders] How can I call a function from a class? Hi everyone, How can I call a function from a class? // MAIN FILE import test.layout; private function callClassFunction():void { test.layout_QT.traceTest(); } // CLASS FILE layout.as package test { public class layout { public function traceTest():void { trace(This is a test.); } } } Thanks. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Problems opening window from AIR system tray app
Hi folks, I'm working on an AIR app that lives in the system tray / dock. It should not have a visible window at startup, only a system tray icon. After some event, I would like to create one of two windows (depending on the event). I've got the system tray part working, but can't get the window to open... TrayApp.as: class TrayApp extends Sprite { // etc function processEvent() { var wnd:Window = new MyWindow(); mywindow.open(); } // etc } MyWindow.mxml: mx:Window xmlns:mx=http://www.adobe.com/2006/mxml; width=400 height=300 mx:Label text=hello, world/ /mx:Window When I run this, I get an exception deep in UIComponent: TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::updateC\ allbacks()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\\ UIComponent.as:5124] I suspect that maybe I can't call the open() of Window from my app that extends Sprite because some of the application framework is missing (like layout managers, etc..). Maybe it has to extend Application/NativeApplication instead? I tried that, but got another odd exception. Anyone know how to do this? Thanks, Mitch.
[flexcoders] Re: How can I call a function from a class?
There's a couple of ways. If your class and function are static, like a utility class that doesn't persist any data, just call Layout.traceTest(); Note: Classes should be capitalized, in order to differentiate them from variables. Another way is to instantiate the class as a variable: private function callClassFunction():void { var layout:Layout = new Layout(); layout.traceTest(); } -TH --- In flexcoders@yahoogroups.com, sailorsea21 sailorse...@... wrote: Hi everyone, How can I call a function from a class? // MAIN FILE import test.layout; private function callClassFunction():void { test.layout_QT.traceTest(); } // CLASS FILE layout.as package test { public class layout { public function traceTest():void { trace(This is a test.); } } } Thanks.
Re: [flexcoders] Re: Eclipse Ganymede
-Xms40m -Xmx512m -XX:MaxPermSize=256m -Dosgi.requiredJavaVersion=1.5 -XstartOnFirstThread -Xms40m -Xmx256m -XX:MaxPermSize=256m Work like charm! You have to get the most current build which fixes some issues with FBPro and Ganymede (not that you can not hack it on your own). On Mon, Apr 6, 2009 at 8:38 AM, arieljake arielj...@yahoo.com wrote: Would people mind sharing their eclipse.ini files for ganymede? I am having issues up-ing the max memory usage: -showsplash org.eclipse.platform -framework plugins\org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar -vmargs -Xms512m -Xmx650m -XX:+UseParallelGC -XX:PermSize=256m If I change it Xmx to 660 or more, the program throws an error on startup. What do others use? --- In flexcoders@yahoogroups.com, claudiu ursica the_bran...@... wrote: I use ganymede for quite a while now and haven't ran into any issues... C From: Tim Rowe tim.r...@... To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Sent: Monday, April 6, 2009 3:42:19 AM Subject: RE: [flexcoders] Eclipse Ganymede I recently installed Builder on a fresh system with Eclipse(Ganymede) , and had to do two things: 1. Install the old Builder Plug-in to my Ganymede install. You have to insist yes, this is an eclipse dir 2. Get the absolute latest version of builder standalone, and then copy over the newer jars from that install to my plug-in environment. Supposedly the plug-in version is available as the same version, but I couldn't find it. Alternatively, try this: http://www.tekool. net/blog/ 2008/06/28/ flex-builder- 3-plugin- dont-work- with-eclipse- 34/ Tim Rowe Software Engineer carsales.com Ltd From: flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Albert Waltner Sent: Monday, 6 April 2009 10:30 AM To: flexcod...@yahoogro ups.com Subject: [flexcoders] Eclipse Ganymede Still using Windows XP and trying Eclipse Ganymede with Flex 3. The messages going back to 9/08 discuss Ganymede problems but without a clear explanation. I have installed Eclipse 3.2.2 and Flex3 and that works but when installing Eclipse current version (Ganymede) it does not. On Adobe.com an example posted says it uses Eclipse Ganymede so, it would seem, the poster had NO problems with Ganymede. Why not? Everyone OK with Ganymede? Or not using it? Thanks. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Debugger can't find source for Slider class
Hey flexers, In my project I'm using a VSlider in one of my components. In my component's actionscript, I set the VSlider's value. I wanted to track that value going through the VSlider class but FlexBuilder's debugger can't seem to find the source for Slider (the base class for VSlider). I can open the Slider class in Flex builder just fine and set a break point in the value setter, but it never stops there in the debugger. Instead, it ends up stopping at what I assume is the next line of code it can find source for, which is the FlexEvent constructor. In the thread stack, it shows: mx.event::FlexEvent mx.controls.sliderClasses::Slider/set value [no source] ...my component stuff. I tried editing the source lookup path. Currently it's looking for source inside: C:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0\frameworks\projects\framework\src. This should be right and when I attempt to be more specific by adding another source lookup path like C:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0\frameworks\projects\framework\src\mx\controls it doesn't seem to make any difference. I haven't seen any problems with the debugger finding source for other framework classes. I am pulling in SWCs into my project that may have been built with other sdks. I doubt any of them use the Slider class themselves but I wouldn't rule it out. Anyone have any ideas? Thanks a lot! Aaron
[flexcoders] Re: Access active column header (DataGrid)
As I understand it, there is no backgroundColor style. What I did was use a graphic fill: override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); var g:Graphics = graphics; g.clear(); g.beginFill(0xBB); g.drawRect(0, -2, unscaledWidth, unscaledHeight + 4); g.endFill(); } --- In flexcoders@yahoogroups.com, vitaly.nikolenko v...@... wrote: I tried to do something like that override protected function validateProperties() { super.validateProperties(); setStyle('backgroundColor',0xFF); } it doesn't work --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: How are you setting backgroundColor? Show some code. Tracy Spratt, Lariat Services, development services available
Re: [flexcoders] Re: How can I call a function from a class?
How about the other way around, how can I access a variable in my main mxml from my class package? Thanks! From: Tim Hoff timh...@aol.com To: flexcoders@yahoogroups.com Sent: Monday, April 6, 2009 1:50:24 PM Subject: [flexcoders] Re: How can I call a function from a class? There's a couple of ways. If your class and function are static, like a utility class that doesn't persist any data, just call Layout.traceTest( ); Note: Classes should be capitalized, in order to differentiate them from variables. Another way is to instantiate the class as a variable: private function callClassFunction( ):void { var layout:Layout = new Layout(); layout.traceTest( ); } -TH --- In flexcod...@yahoogro ups.com, sailorsea21 sailorsea21@ ... wrote: Hi everyone, How can I call a function from a class? // MAIN FILE import test.layout; private function callClassFunction( ):void { test.layout_ QT.traceTest( ); } // CLASS FILE layout.as package test { public class layout { public function traceTest(): void { trace(This is a test.); } } } Thanks.
[flexcoders] Bar Chart Label - probably easy for most to resolve!!
Hi all, I am wondering if it is possible to use a different field for the label than the one used in the axis category in a bar chart. To expand... mx:verticalAxis mx:CategoryAxis categoryField=displayName /mx:verticalAxis mx:series mx:BarSeries yField=ip xField=errorIndex displayName=Error Index styleName={barColor()}/ /mx:series I am trying to show a bar chart that shows a list of services delivered by their respect delivery %. I want the label field on the vertical axis to show the display name of the service but I want the bar series to be based on the IP of the service. If I try to use the display name of the service it backfires because sometimes there are duplicate services with the same name, then the bar chart just wigs out and draws those bars on top of each other. But there are never duplicate IP's so I'd be safe there. I just need clean labels. Obviously the above code doesn't work but that is where my brain is right now. Could anyone point me in the right direction. regards
Re: [flexcoders] Re: Flex Component Kit still needed for CS4?
Nate, Exactly. This is my question. The adobe website seems to be inadvertently linking a CS4 website to a CS3 page because they never specifically state Yes, we are sending you from a CS4 page to a CS3 page, but you are still required to install this on CS4 as well if you want to use this particular package as it does not ship as part of CS4. brad On Mon, Apr 6, 2009 at 2:01 AM, Nate Beck n...@tldstudio.com wrote: I think the question.. is the Flex component kit already installed in CS4? To that, I don't know that answer right off the bat. Flash and Flex workflows are quite confusing. Someone from Adobe needs to write an updated article on DevNet explaining the preferred way of working with Flash and Flex. On Sun, Apr 5, 2009 at 8:21 PM, Amy amyblankens...@bellsouth.net wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, brad.bueche b...@... wrote: I know CS3 needed the flex component kit. Does CS4 need it as well? Its confusing because this page: http://help.adobe.com/en_US/Flash/10.0_UsingFlash/WSFD77A256-0DE1-46c7-86FB-CC4A8AE2EAA6.html which is for CS4, sends you to the component page, but the component page only mentions CS3. What do you mean by needed? The component kit is kind of a convenience for wrapping a flash MC or Sprite so it looks just like a component to Flex, but you've always had the option of loading an ordinary swf into a swfloader. -- Cheers, Nate http://blog.natebeck.net
[flexcoders] Re: How can I call a function from a class?
:: waits for Paul :: :) -TH --- In flexcoders@yahoogroups.com, - - sailorse...@... wrote: How about the other way around, how can I access a variable in my main mxml from my class package? Thanks! From: Tim Hoff timh...@... To: flexcoders@yahoogroups.com Sent: Monday, April 6, 2009 1:50:24 PM Subject: [flexcoders] Re: How can I call a function from a class? There's a couple of ways. If your class and function are static, like a utility class that doesn't persist any data, just call Layout.traceTest( ); Note: Classes should be capitalized, in order to differentiate them from variables. Another way is to instantiate the class as a variable: private function callClassFunction( ):void { var layout:Layout = new Layout(); layout.traceTest( ); } -TH --- In flexcod...@yahoogro ups.com, sailorsea21 sailorsea21@ ... wrote: Hi everyone, How can I call a function from a class? // MAIN FILE import test.layout; private function callClassFunction( ):void { test.layout_ QT.traceTest( ); } // CLASS FILE layout.as package test { public class layout { public function traceTest(): void { trace(This is a test.); } } } Thanks.
[flexcoders] ListCollectionView w/ a filterFunction as a dataProvider - Flex 2
Hi all, I've been having weird problems involving Lists, dataProviders, ListCollectionViews with and ArrayCollections. I was able to reproduce one of my problems below. I have a ListCollectionView (filtered_stuff) that's viewing an ArrayCollection (stuff). stuff initially just has one element. filtered_stuff has a filterFunction that filters out this element. Here's the weird part. Clicking on Add item once does not show the added item in the List. Clicking on Add item again will result in TWO items showing up in the list. After that, clicking Add item behaves as you might expect. Why is it behaving this way? Thanks, Ben Code: ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Panel title=List dataProvider test creationComplete=onCreate() paddingTop=10 paddingBottom=10 paddingLeft=10 paddingRight=10 mx:List id=list width=100% dataProvider={filtered_stuff}/ mx:Button click=addItem() label=Add item/ /mx:Panel mx:Script ![CDATA[ import mx.collections.ListCollectionView; import mx.collections.ArrayCollection; [Bindable] public var stuff:ArrayCollection; [Bindable] public var filtered_stuff:ListCollectionView; public function addItem():void { trace(adding item, stuff.length); stuff.addItem({label: stuff.length}); } public function onCreate():void { stuff = new ArrayCollection([{label: 0}]); filtered_stuff = new ListCollectionView(stuff); filtered_stuff.filterFunction = function(item:Object):Boolean { return item.label 0; } filtered_stuff.refresh(); } ]] /mx:Script /mx:Application
[flexcoders] A better RichTextEditor
Anyone know of any components for a better RichTextEditor than that which comes stock with Flex 3? My clients are coming from FCKEditor and would like something a little more friendly. Thanks.
[flexcoders] Re: ListCollectionView w/ a filterFunction as a dataProvider - Flex 2
Hmm, ran your code and it worked fine. Clicked the add item button the first time and 1 showerd up. Maybe try adding filtered_stuff.refresh(); to the addItem function. -TH --- In flexcoders@yahoogroups.com, bnjmnhggns bhigg...@... wrote: Hi all, I've been having weird problems involving Lists, dataProviders, ListCollectionViews with and ArrayCollections. I was able to reproduce one of my problems below. I have a ListCollectionView (filtered_stuff) that's viewing an ArrayCollection (stuff). stuff initially just has one element. filtered_stuff has a filterFunction that filters out this element. Here's the weird part. Clicking on Add item once does not show the added item in the List. Clicking on Add item again will result in TWO items showing up in the list. After that, clicking Add item behaves as you might expect. Why is it behaving this way? Thanks, Ben Code: ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Panel title=List dataProvider test creationComplete=onCreate() paddingTop=10 paddingBottom=10 paddingLeft=10 paddingRight=10 mx:List id=list width=100% dataProvider={filtered_stuff}/ mx:Button click=addItem() label=Add item/ /mx:Panel mx:Script ![CDATA[ import mx.collections.ListCollectionView; import mx.collections.ArrayCollection; [Bindable] public var stuff:ArrayCollection; [Bindable] public var filtered_stuff:ListCollectionView; public function addItem():void { trace(adding item, stuff.length); stuff.addItem({label: stuff.length}); } public function onCreate():void { stuff = new ArrayCollection([{label: 0}]); filtered_stuff = new ListCollectionView(stuff); filtered_stuff.filterFunction = function(item:Object):Boolean { return item.label 0; } filtered_stuff.refresh(); } ]] /mx:Script /mx:Application
RE: [flexcoders] Re: ListCollectionView w/ a filterFunction as a dataProvider - Flex 2
Tim, did you try that in Flex 2? I seem to recall it being a bug. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tim Hoff Sent: Monday, April 06, 2009 12:17 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: ListCollectionView w/ a filterFunction as a dataProvider - Flex 2 Hmm, ran your code and it worked fine. Clicked the add item button the first time and 1 showerd up. Maybe try adding filtered_stuff.refresh(); to the addItem function. -TH --- In flexcoders@yahoogroups.com, bnjmnhggns bhigg...@... wrote: Hi all, I've been having weird problems involving Lists, dataProviders, ListCollectionViews with and ArrayCollections. I was able to reproduce one of my problems below. I have a ListCollectionView (filtered_stuff) that's viewing an ArrayCollection (stuff). stuff initially just has one element. filtered_stuff has a filterFunction that filters out this element. Here's the weird part. Clicking on Add item once does not show the added item in the List. Clicking on Add item again will result in TWO items showing up in the list. After that, clicking Add item behaves as you might expect. Why is it behaving this way? Thanks, Ben Code: ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; ! mx:Panel title=List dataProvider test creationComplete=onCreate() paddingTop=10 paddingBottom=10 paddingLeft=10 paddingRight=10 mx:List id=list width=100% dataProvider={filtered_stuff}/ mx:Button click=addItem() label=Add item/ /mx:Panel mx:Script ![CDATA[ import mx.collections.ListCollectionView; import mx.collections.ArrayCollection; [Bindable] public var stuff:ArrayCollection; [Bindable] public var filtered_stuff:ListCollectionView; public function addItem():void { trace(adding item, stuff.length); stuff.addItem({label: stuff.length}); } public function onCreate():void { stuff = new ArrayCollection([{label: 0}]); filtered_stuff! = new ListCollectionView(stuff); filtered_stuff.! fil terFunction = function(item:Object):Boolean { return item.label 0; } filtered_stuff.refresh(); } ]] /mx:Script /mx:Application
RE: [flexcoders] DataGrid Column Sort Prevents Drag From Updating DataProvider
A collection is either sorted or not, and if there is a sort, it won't let you re-order. One way to allow re-ordering is, after a Sort (and the CollectionEvent.REFRESH event), copy the sorted results into an unsorted collection using toArray on the sorted collection. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of chris.cobb40 Sent: Monday, April 06, 2009 10:23 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] DataGrid Column Sort Prevents Drag From Updating DataProvider Hi I think I've seen this commented on before on flexcoders so sorry for the duplication. In the reply the person who asked the question was told to turn off the Column Sort and that would do it but won't this reset the sort order back to default before allowing the drag ? I want to cater for the situation where the user might want to sort the DataGrid into reverse alphabetical order and then just drag the resulting first row to be the second one. Maybe I'm using the wrong method of turning off the column sort - I set the sort property of the ListColection DataProvider for the DataGrid to null and then refresh ? Any sugegstions please ? Thanks Chris
[flexcoders] Re: ListCollectionView w/ a filterFunction as a dataProvider - Flex 2
No, I'm using Flex 3; maybe time to upgade Ben. -TH --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Tim, did you try that in Flex 2? I seem to recall it being a bug. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tim Hoff Sent: Monday, April 06, 2009 12:17 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: ListCollectionView w/ a filterFunction as a dataProvider - Flex 2 Hmm, ran your code and it worked fine. Clicked the add item button the first time and 1 showerd up. Maybe try adding filtered_stuff.refresh(); to the addItem function. -TH --- In flexcoders@yahoogroups.com, bnjmnhggns bhiggins@ wrote: Hi all, I've been having weird problems involving Lists, dataProviders, ListCollectionViews with and ArrayCollections. I was able to reproduce one of my problems below. I have a ListCollectionView (filtered_stuff) that's viewing an ArrayCollection (stuff). stuff initially just has one element. filtered_stuff has a filterFunction that filters out this element. Here's the weird part. Clicking on Add item once does not show the added item in the List. Clicking on Add item again will result in TWO items showing up in the list. After that, clicking Add item behaves as you might expect. Why is it behaving this way? Thanks, Ben Code: ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; ! mx:Panel title=List dataProvider test creationComplete=onCreate() paddingTop=10 paddingBottom=10 paddingLeft=10 paddingRight=10 mx:List id=list width=100% dataProvider={filtered_stuff}/ mx:Button click=addItem() label=Add item/ /mx:Panel mx:Script ![CDATA[ import mx.collections.ListCollectionView; import mx.collections.ArrayCollection; [Bindable] public var stuff:ArrayCollection; [Bindable] public var filtered_stuff:ListCollectionView; public function addItem():void { trace(adding item, stuff.length); stuff.addItem({label: stuff.length}); } public function onCreate():void { stuff = new ArrayCollection([{label: 0}]); filtered_stuff! = new ListCollectionView(stuff); filtered_stuff.! fil terFunction = function(item:Object):Boolean { return item.label 0; } filtered_stuff.refresh(); } ]] /mx:Script /mx:Application
Re: [flexcoders] Bar Chart Label - probably easy for most to resolve!!
CategoryAxis.labelFunction, and use IP for the categoryField. -Original Message- From: flexnewbie06 flexnewbi...@yahoo.ca Reply-to: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Bar Chart Label - probably easy for most to resolve!! Date: Mon, 06 Apr 2009 18:54:24 - Hi all, I am wondering if it is possible to use a different field for the label than the one used in the axis category in a bar chart. To expand... mx:verticalAxis mx:CategoryAxis categoryField=displayName /mx:verticalAxis mx:series mx:BarSeries yField=ip xField=errorIndex displayName=Error Index styleName={barColor()}/ /mx:series I am trying to show a bar chart that shows a list of services delivered by their respect delivery %. I want the label field on the vertical axis to show the display name of the service but I want the bar series to be based on the IP of the service. If I try to use the display name of the service it backfires because sometimes there are duplicate services with the same name, then the bar chart just wigs out and draws those bars on top of each other. But there are never duplicate IP's so I'd be safe there. I just need clean labels. Obviously the above code doesn't work but that is where my brain is right now. Could anyone point me in the right direction. regards
[flexcoders] Re: ListCollectionView w/ a filterFunction as a dataProvider - Flex 2
Did you try it with Flex 2? Sorry if I didn't make that clear. --- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote: Hmm, ran your code and it worked fine. Clicked the add item button the first time and 1 showerd up. Maybe try adding filtered_stuff.refresh(); to the addItem function. -TH --- In flexcoders@yahoogroups.com, bnjmnhggns bhiggins@ wrote: Hi all, I've been having weird problems involving Lists, dataProviders, ListCollectionViews with and ArrayCollections. I was able to reproduce one of my problems below. I have a ListCollectionView (filtered_stuff) that's viewing an ArrayCollection (stuff). stuff initially just has one element. filtered_stuff has a filterFunction that filters out this element. Here's the weird part. Clicking on Add item once does not show the added item in the List. Clicking on Add item again will result in TWO items showing up in the list. After that, clicking Add item behaves as you might expect. Why is it behaving this way? Thanks, Ben Code: ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Panel title=List dataProvider test creationComplete=onCreate() paddingTop=10 paddingBottom=10 paddingLeft=10 paddingRight=10 mx:List id=list width=100% dataProvider={filtered_stuff}/ mx:Button click=addItem() label=Add item/ /mx:Panel mx:Script ![CDATA[ import mx.collections.ListCollectionView; import mx.collections.ArrayCollection; [Bindable] public var stuff:ArrayCollection; [Bindable] public var filtered_stuff:ListCollectionView; public function addItem():void { trace(adding item, stuff.length); stuff.addItem({label: stuff.length}); } public function onCreate():void { stuff = new ArrayCollection([{label: 0}]); filtered_stuff = new ListCollectionView(stuff); filtered_stuff.filterFunction = function(item:Object):Boolean { return item.label 0; } filtered_stuff.refresh(); } ]] /mx:Script /mx:Application
[flexcoders] Re: ListCollectionView w/ a filterFunction as a dataProvider - Flex 2
No Ben, sorry I didn't read the subject line all the way. It works with Flex 3. I don't know the specific bug, but sometimes you can work around the timing issues, by using callLater(). -TH --- In flexcoders@yahoogroups.com, bnjmnhggns bhigg...@... wrote: Did you try it with Flex 2? Sorry if I didn't make that clear. --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Hmm, ran your code and it worked fine. Clicked the add item button the first time and 1 showerd up. Maybe try adding filtered_stuff.refresh(); to the addItem function. -TH --- In flexcoders@yahoogroups.com, bnjmnhggns bhiggins@ wrote: Hi all, I've been having weird problems involving Lists, dataProviders, ListCollectionViews with and ArrayCollections. I was able to reproduce one of my problems below. I have a ListCollectionView (filtered_stuff) that's viewing an ArrayCollection (stuff). stuff initially just has one element. filtered_stuff has a filterFunction that filters out this element. Here's the weird part. Clicking on Add item once does not show the added item in the List. Clicking on Add item again will result in TWO items showing up in the list. After that, clicking Add item behaves as you might expect. Why is it behaving this way? Thanks, Ben Code: ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Panel title=List dataProvider test creationComplete=onCreate() paddingTop=10 paddingBottom=10 paddingLeft=10 paddingRight=10 mx:List id=list width=100% dataProvider={filtered_stuff}/ mx:Button click=addItem() label=Add item/ /mx:Panel mx:Script ![CDATA[ import mx.collections.ListCollectionView; import mx.collections.ArrayCollection; [Bindable] public var stuff:ArrayCollection; [Bindable] public var filtered_stuff:ListCollectionView; public function addItem():void { trace(adding item, stuff.length); stuff.addItem({label: stuff.length}); } public function onCreate():void { stuff = new ArrayCollection([{label: 0}]); filtered_stuff = new ListCollectionView(stuff); filtered_stuff.filterFunction = function(item:Object):Boolean { return item.label 0; } filtered_stuff.refresh(); } ]] /mx:Script /mx:Application
[flexcoders] select non-top level items in a hierarchical menu
I need the ability to select non-leaf items in a hierarchical menu--is this doable? Basically, suppose I have a dataProvider like this: [ { label: 'a' }, { label: 'b', children: [ { label: '1' }, { label: '2' } ] } ] I want to be able to select a, b, 1, or 2. I can do exactly what I want with a Tree, but I was hoping for something more compact. It seems that selecting a node that has children does not dispatch an ITEM_CLICK event: it just automatically opens the submenu. I'd like to open/close the submenu on rollOver/rollOut, and dispatch a normal ITEM_CLICK for that item on a click. -Maciek
[flexcoders] goal: copy-flex-resources to webapp/myFolder
Hi all! I need to achieve the goal to copy my swf file to my webapp project. But Flexnojo copies to webapp folder, instead webapp/myFolder... I couldn't find enough info to get this work. Any help? This is the plugin I am trying to set up. plugin groupIdorg.sonatype.flexmojos/groupId artifactIdflexmojos-maven-plugin/artifactId version3.1.0/version configuration buildOutputDirectory/flex/buildOutputDirectory /configuration executions execution goals goalcopy-flex-resources/goal /goals /execution /executions /plugin Thanks in advance. -- Fernando Wermus. www.linkedin.com/in/fernandowermus http://mientretiempo.blogspot.com/
[flexcoders] Re: Problems opening window from AIR system tray app
I think your guess to the problem is right on, your main application extends Sprite, not NativeApplication. What was the exception you got when the app extended NativeApplication? Regards, Sunil --- In flexcoders@yahoogroups.com, michob mic...@... wrote: I just found a reference that is doing something very similar (see below); but somehow I still have problems with mine. http://www.adobe.com/devnet/air/flex/quickstart/creating_non-rectangular_windows.html Thanks again, Mitch. --- In flexcoders@yahoogroups.com, michob michob@ wrote: Hi folks, I'm working on an AIR app that lives in the system tray / dock. It should not have a visible window at startup, only a system tray icon. After some event, I would like to create one of two windows (depending on the event). I've got the system tray part working, but can't get the window to open... TrayApp.as: class TrayApp extends Sprite { // etc function processEvent() { var wnd:Window = new MyWindow(); mywindow.open(); } // etc } MyWindow.mxml: mx:Window xmlns:mx=http://www.adobe.com/2006/mxml; width=400 height=300 mx:Label text=hello, world/ /mx:Window When I run this, I get an exception deep in UIComponent: TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::updateC\ allbacks()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\\ UIComponent.as:5124] I suspect that maybe I can't call the open() of Window from my app that extends Sprite because some of the application framework is missing (like layout managers, etc..). Maybe it has to extend Application/NativeApplication instead? I tried that, but got another odd exception. Anyone know how to do this? Thanks, Mitch.
[flexcoders] Re: ListCollectionView w/ a filterFunction as a dataProvider - Flex 2
I'm trying to find the bug and there's some that are close, like this one: https://bugs.adobe.com/jira/browse/SDK-11852 Do you know if there's a workaround for Flex 2? Thanks, Ben --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Tim, did you try that in Flex 2? I seem to recall it being a bug. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tim Hoff Sent: Monday, April 06, 2009 12:17 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: ListCollectionView w/ a filterFunction as a dataProvider - Flex 2 Hmm, ran your code and it worked fine. Clicked the add item button the first time and 1 showerd up. Maybe try adding filtered_stuff.refresh(); to the addItem function. -TH --- In flexcoders@yahoogroups.com, bnjmnhggns bhiggins@ wrote: Hi all, I've been having weird problems involving Lists, dataProviders, ListCollectionViews with and ArrayCollections. I was able to reproduce one of my problems below. I have a ListCollectionView (filtered_stuff) that's viewing an ArrayCollection (stuff). stuff initially just has one element. filtered_stuff has a filterFunction that filters out this element. Here's the weird part. Clicking on Add item once does not show the added item in the List. Clicking on Add item again will result in TWO items showing up in the list. After that, clicking Add item behaves as you might expect. Why is it behaving this way? Thanks, Ben Code: ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; ! mx:Panel title=List dataProvider test creationComplete=onCreate() paddingTop=10 paddingBottom=10 paddingLeft=10 paddingRight=10 mx:List id=list width=100% dataProvider={filtered_stuff}/ mx:Button click=addItem() label=Add item/ /mx:Panel mx:Script ![CDATA[ import mx.collections.ListCollectionView; import mx.collections.ArrayCollection; [Bindable] public var stuff:ArrayCollection; [Bindable] public var filtered_stuff:ListCollectionView; public function addItem():void { trace(adding item, stuff.length); stuff.addItem({label: stuff.length}); } public function onCreate():void { stuff = new ArrayCollection([{label: 0}]); filtered_stuff! = new ListCollectionView(stuff); filtered_stuff.! fil terFunction = function(item:Object):Boolean { return item.label 0; } filtered_stuff.refresh(); } ]] /mx:Script /mx:Application
[flexcoders] Flex Gumbo profiler: Path 1, Path2, etc..
So I am trying to profile my application for memory leaks. I create a memory snapshot and when i look at the Object References, expand the reference I don't see objects, functions, mx., etc... holding a reference. I only see 7 items that say Path 1, Path 2...Path 7. Is this something wrong with me or Gumbo? I can't find the references, thus fix my memory leak. TIA, J
[flexcoders] Re: ListCollectionView w/ a filterFunction as a dataProvider - Flex 2
Ran your code with Flex 2.0.1 Hotfix 3 and was able to reproduce. The first suggestion worked. Fixed it with: public function addItem():void { trace(adding item, stuff.length); stuff.addItem({label: stuff.length}); filtered_stuff.refresh(); } -TH --- In flexcoders@yahoogroups.com, bnjmnhggns bhigg...@... wrote: I'm trying to find the bug and there's some that are close, like this one: https://bugs.adobe.com/jira/browse/SDK-11852 Do you know if there's a workaround for Flex 2? Thanks, Ben --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: Tim, did you try that in Flex 2? I seem to recall it being a bug. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tim Hoff Sent: Monday, April 06, 2009 12:17 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: ListCollectionView w/ a filterFunction as a dataProvider - Flex 2 Hmm, ran your code and it worked fine. Clicked the add item button the first time and 1 showerd up. Maybe try adding filtered_stuff.refresh(); to the addItem function. -TH --- In flexcoders@yahoogroups.com, bnjmnhggns bhiggins@ wrote: Hi all, I've been having weird problems involving Lists, dataProviders, ListCollectionViews with and ArrayCollections. I was able to reproduce one of my problems below. I have a ListCollectionView (filtered_stuff) that's viewing an ArrayCollection (stuff). stuff initially just has one element. filtered_stuff has a filterFunction that filters out this element. Here's the weird part. Clicking on Add item once does not show the added item in the List. Clicking on Add item again will result in TWO items showing up in the list. After that, clicking Add item behaves as you might expect. Why is it behaving this way? Thanks, Ben Code: ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; ! mx:Panel title=List dataProvider test creationComplete=onCreate() paddingTop=10 paddingBottom=10 paddingLeft=10 paddingRight=10 mx:List id=list width=100% dataProvider={filtered_stuff}/ mx:Button click=addItem() label=Add item/ /mx:Panel mx:Script ![CDATA[ import mx.collections.ListCollectionView; import mx.collections.ArrayCollection; [Bindable] public var stuff:ArrayCollection; [Bindable] public var filtered_stuff:ListCollectionView; public function addItem():void { trace(adding item, stuff.length); stuff.addItem({label: stuff.length}); } public function onCreate():void { stuff = new ArrayCollection([{label: 0}]); filtered_stuff! = new ListCollectionView(stuff); filtered_stuff.! fil terFunction = function(item:Object):Boolean { return item.label 0; } filtered_stuff.refresh(); } ]] /mx:Script /mx:Application
[flexcoders] Re: maven compile flex project
Hi Jonas, It's always good to talk about design ;-) So let me clarify (hopefuly) my thoughts. When we talk about MVC, I think that there are actually 2 different patterns. Look at Swing or Flex for instance. They both implement the MVC pattern (maybe more MV with a tiny c), right? Their architecture is strongly related to the Observer/Observed pattern where the model (Swing model / flex dataprovider) notifies its listeners (the gui components) about its changes. Then, the view just adapt itself based on the notification it recieves (e.g. an element added in a collection). This allows to build rich domain models where the OO principles (mainly encapsulation here) are strongly enforced. Your business objects live on their own, have their business rules and preserve their integrity. For instance, a table cell editing will set the underlying property of the object that may in turn update some other part of the model under its responsibility, that will in turn notify some different part of the GUI and everything is in sync without anyone having to know the dependency graph. So far so good. But all this is fine and easily implemented in a single memory space (the java VM or the Flash one). Now comes the the client/server distribution. One /old but still useful/ kind of approach is to have a pixel-based distribution (X, VNC, Citrix metaframe). The application actually runs on the server (with all the GUI stuff minus some optimizations) and notifications occur based on painting changes. Sync is perfect (actually synchronized) but it is server-resources and bandwith killing (minus some optimizations). Encapsulation is respected. Now comes the /2nd/ MVC pattern introduced with webapps (mainly Struts in the Java world ?), where the model is not responsible of notifying the view anymore and everything is based on the following scheme : request - controller - service (action) - model - and... something has to know exactly *what* has been modified on the model and *what* part of the view has to change based on these modifications. This somehow breaks the OO encapsulation and the nice Observer/Observed pattern. It then leads to thin, not to say anorexic, domain models where your domain objects become more or less value objects (because you don't want them to update something that you won't transparently be notified of) and all the intelligence is on the controller part (service included). But the good news is that such an architecture is scalable without over-killing infrastructure. With rich clients (i.e. Flex and Swing) comes the extra burden of transfering the state back and forth (the value objects). It may be fine with a simple (thin, anorexic) model since you can generate your VOs based on your /real/ business objects that actually live on the server. But now, your client *has to know what* to send to the server on the next round-trip and *when*. Moreover, notifications of problems (or updates) issued from server-side computations are delayed until the service request comes back. This is much how the Web (and the classic webapps) actually work, no ? The request-response scheme on a service basis. The idea I would like to submit is the following : Is there a design in between that : 1/ allows me to keep a rich, encapsulated, service aware, domain model; so that I can reuse it across different frontends (even faceless ones), different applications and all that without re-coding rules that are business domain scoped. 2/ is scalable (at least no actual GUI code running on the server) 3/ garantees synchronization with the view whithout having to break encapsulation and let me develop as if I were in a single VM (the Swing or Flex MVC). In that case, the client-server distribution (and GUI deployment) remains an implementation detail instead of being a first citizen of the architecture. In other words, I'm looking for a seamlessly distributed Observer/Observed pattern. At least in Java, there are a bunch of library projects that implements this kind of server-centric, event-driven, GUI development - Canoo ULC , WingS (Ajax), Eclipse RAP. They are great but they still consume quite some memory on the server since they mimic the complete UI library with faceless objects (that have a size, colors, event listeners, ...). What I've done in Jspresso is keeping a minimalistic UI state on the server that is able to comunicate seamlessly with a flex generic UI engine. All they exchange are technology agnostic commands (generic framework-scoped events). The caveats : - minimize the network round-trips - keep a request-response scheme (avoid server push of notifications) but on an event basis. Both are avoided by buffering the server-generated events and send them back with the response. On the server-side, all you need is a single BlazeDS RemoteObject endpoint that is your event dispatcher. Sorry for the (very) long answer. Any thoughts, remarks ? Did I loose my
[flexcoders] Re: ListCollectionView w/ a filterFunction as a dataProvider - Flex 2
That's a good suggestion. Unfortunately I can't directly keep track of the ListCollectionViews unlike in the example. I have a function that returns these views with different filtering functions. I might be able to listen for COLLECTION_CHANGED on the ArrayCollection and call refresh then. Unfortunately I have another problem, but I'm unable to distill it into a small example, which is that when the list has one item in it, and another is added, it appears that a duplicate of the first item was made. I am going to put off what I'm working on for now and see if we can switch to Flex 3 later. Thanks for your help. Ben --- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote: Ran your code with Flex 2.0.1 Hotfix 3 and was able to reproduce. The first suggestion worked. Fixed it with: public function addItem():void { trace(adding item, stuff.length); stuff.addItem({label: stuff.length}); filtered_stuff.refresh(); } -TH --- In flexcoders@yahoogroups.com, bnjmnhggns bhiggins@ wrote: I'm trying to find the bug and there's some that are close, like this one: https://bugs.adobe.com/jira/browse/SDK-11852 Do you know if there's a workaround for Flex 2? Thanks, Ben --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: Tim, did you try that in Flex 2? I seem to recall it being a bug. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tim Hoff Sent: Monday, April 06, 2009 12:17 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: ListCollectionView w/ a filterFunction as a dataProvider - Flex 2 Hmm, ran your code and it worked fine. Clicked the add item button the first time and 1 showerd up. Maybe try adding filtered_stuff.refresh(); to the addItem function. -TH --- In flexcoders@yahoogroups.com, bnjmnhggns bhiggins@ wrote: Hi all, I've been having weird problems involving Lists, dataProviders, ListCollectionViews with and ArrayCollections. I was able to reproduce one of my problems below. I have a ListCollectionView (filtered_stuff) that's viewing an ArrayCollection (stuff). stuff initially just has one element. filtered_stuff has a filterFunction that filters out this element. Here's the weird part. Clicking on Add item once does not show the added item in the List. Clicking on Add item again will result in TWO items showing up in the list. After that, clicking Add item behaves as you might expect. Why is it behaving this way? Thanks, Ben Code: ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; ! mx:Panel title=List dataProvider test creationComplete=onCreate() paddingTop=10 paddingBottom=10 paddingLeft=10 paddingRight=10 mx:List id=list width=100% dataProvider={filtered_stuff}/ mx:Button click=addItem() label=Add item/ /mx:Panel mx:Script ![CDATA[ import mx.collections.ListCollectionView; import mx.collections.ArrayCollection; [Bindable] public var stuff:ArrayCollection; [Bindable] public var filtered_stuff:ListCollectionView; public function addItem():void { trace(adding item, stuff.length); stuff.addItem({label: stuff.length}); } public function onCreate():void { stuff = new ArrayCollection([{label: 0}]); filtered_stuff! = new ListCollectionView(stuff); filtered_stuff.! fil terFunction = function(item:Object):Boolean { return item.label 0; } filtered_stuff.refresh(); } ]] /mx:Script /mx:Application
Re: [flexcoders] select non-top level items in a hierarchical menu
So it looks like I can fake this by tracking a stack of open menus and dynamically adding / removing MOUSE_DOWN listeners to the last menu opened / closed. This seems... ahem... less than ideal. Anyone have a better suggestion? -Maciek -Original Message- From: Maciek Sakrejda msakre...@truviso.com Reply-to: flexcoders@yahoogroups.com To: flexcoders flexcoders@yahoogroups.com Subject: [flexcoders] select non-top level items in a hierarchical menu Date: Mon, 06 Apr 2009 13:07:37 -0700 I need the ability to select non-leaf items in a hierarchical menu--is this doable? Basically, suppose I have a dataProvider like this: [ { label: 'a' }, { label: 'b', children: [ { label: '1' }, { label: '2' } ] } ] I want to be able to select a, b, 1, or 2. I can do exactly what I want with a Tree, but I was hoping for something more compact. It seems that selecting a node that has children does not dispatch an ITEM_CLICK event: it just automatically opens the submenu. I'd like to open/close the submenu on rollOver/rollOut, and dispatch a normal ITEM_CLICK for that item on a click. -Maciek
[flexcoders] Re: How can I call a function from a class?
Ok, if your class is a component, and has been added to the display list (as a child of the main class), you can reference a public variable in the parent class with either outerDocument.myVariable or parentDocument.myVariable. Personally, I don't like this kind of dependency, and recommend creating a getter/setter variable in the class and set it after the class is instantiated and, if needed, when the main variable is changed. A getter/setter is recommended for the top level variable as well. This way your class can initialize it's own state, if desired have it's state changed by the parent, and become re-usable; without depending on the parent. -TH --- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote: :: waits for Paul :: :) -TH --- In flexcoders@yahoogroups.com, - - sailorsea21@ wrote: How about the other way around, how can I access a variable in my main mxml from my class package? Thanks! From: Tim Hoff TimHoff@ To: flexcoders@yahoogroups.com Sent: Monday, April 6, 2009 1:50:24 PM Subject: [flexcoders] Re: How can I call a function from a class? There's a couple of ways. If your class and function are static, like a utility class that doesn't persist any data, just call Layout.traceTest( ); Note: Classes should be capitalized, in order to differentiate them from variables. Another way is to instantiate the class as a variable: private function callClassFunction( ):void { var layout:Layout = new Layout(); layout.traceTest( ); } -TH --- In flexcod...@yahoogro ups.com, sailorsea21 sailorsea21@ ... wrote: Hi everyone, How can I call a function from a class? // MAIN FILE import test.layout; private function callClassFunction( ):void { test.layout_ QT.traceTest( ); } // CLASS FILE layout.as package test { public class layout { public function traceTest(): void { trace(This is a test.); } } } Thanks.
Re: [flexcoders] Re: How can I call a function from a class?
LOL. How about the other way around, how can I access a variable in my main mxml from my class package? Well, the real answer is you shouldn't do it. You really don't want to build dependencies between your classes (unless there's a really good reason) or between a class and your application. A really bad way to do what you're asking: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=doIt() mx:Script ![CDATA[ var s:String=ABC; function doIt():void { Application.application.s+=..DEF; txtFld.text=s; } ]] /mx:Script mx:Text id=txtFld text=UNSET / /mx:Application The Application class has a static attribute application that refers to the application scope. Please don't use it without a really good reason. Really speaking most people issue events inter-class communication (without building inter-dependencies), or would pass the variable as a parameter. If the variable being passed is an object reference, you can still update the value when it's passed as a parameter. Other techniques people use - static class variables - accessible without instance declaration. I think there's something else I've forgotten. It's late! Paul - Original Message - From: Tim Hoff timh...@aol.com To: flexcoders@yahoogroups.com Sent: Monday, April 06, 2009 8:08 PM Subject: [flexcoders] Re: How can I call a function from a class? :: waits for Paul :: :) -TH --- In flexcoders@yahoogroups.com, - - sailorse...@... wrote: How about the other way around, how can I access a variable in my main mxml from my class package? Thanks! From: Tim Hoff timh...@... To: flexcoders@yahoogroups.com Sent: Monday, April 6, 2009 1:50:24 PM Subject: [flexcoders] Re: How can I call a function from a class? There's a couple of ways. If your class and function are static, like a utility class that doesn't persist any data, just call Layout.traceTest( ); Note: Classes should be capitalized, in order to differentiate them from variables. Another way is to instantiate the class as a variable: private function callClassFunction( ):void { var layout:Layout = new Layout(); layout.traceTest( ); } -TH --- In flexcod...@yahoogro ups.com, sailorsea21 sailorsea21@ ... wrote: Hi everyone, How can I call a function from a class? // MAIN FILE import test.layout; private function callClassFunction( ):void { test.layout_ QT.traceTest( ); } // CLASS FILE layout.as package test { public class layout { public function traceTest(): void { trace(This is a test.); } } } Thanks. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Pros and Cons of Writing Air UI's in Pure Flash
I have a question for the list. We are currently doing rapid UI changes to our Air application. Our UI designers that have experience with Flash have not been happy with the iteration turn around time of skinning our UI's. Complains range from issues with compilation time to being able to easily preview changes. They have proposed that we develop our UI's in pure Flash with only Flash level UI controls. We'd then embed these UI's as swfs in our Flex/Actionscript code. I can see doing this for some UI components. However, I must admit I'm very hesitant to implement the entire UI this way since it becomes one big passive view black box. Would anyone else have pro's or con's to such an approach? Scott
Re: [flexcoders] Pros and Cons of Writing Air UI's in Pure Flash
Personally, I'd think long and hard before doing something like this. It really depends on how much of the actual work is in the very top layer of frosting, how much work is done in the meat of the AIR app, and what kind of feedback you need to have going between these layers. Perhaps you can get the designers to build simpler components (buttons, window decorations, etc) in Flash using the FCK, and lay them out with MXML and Builder. If they're building SWCs with the FCK at least they can expose [Event] metadata and such, which will make life easier for whoever needs to tie things together in Builder for the AIR side of things. I'd be very loath to make SWFs part of my app for anything more complex than image resources. If it generates Events and exposes an API, I need to interact with it without regard for its internal timeline, the possibility of memory leaks caused by loading SWFs (mainly in Player 9), etc. I agree with them 100% that compile-time is horrible for Builder. Adobe knows this, and they're working on it. Building from Ant using MXMLC rather than Builder is apparently faster as-is, and I believe you can get a signifigant speedup using the compiler from Flex 4 but building against Flex 3 libraries. This opens you up to issues as Fx4 is still in early development, but most of the changes these days appear to be happening in Spark and the new MXML stuff, so building against the old namespace using the Halo components could be a helper. Also, recently on the FlexShow podcast they interviewed a guy (sorry, name escapes me) who's been backporting some of the speedups from Fx4 into Flex 3. They're not part of the official download, but I believe you can patch the compiler source, recompile with Java, and reap the benefits of his hard work without the technical risk inherent in building using the WIP Gumbo toolchain. Enough ranting and suggestions from me, I think - time to yield the floor! :) -Josh 2009/4/7 Scott Delap scott-li...@richclientsolutions.com I have a question for the list. We are currently doing rapid UI changes to our Air application. Our UI designers that have experience with Flash have not been happy with the iteration turn around time of skinning our UI's. Complains range from issues with compilation time to being able to easily preview changes. They have proposed that we develop our UI's in pure Flash with only Flash level UI controls. We'd then embed these UI's as swfs in our Flex/Actionscript code. I can see doing this for some UI components. However, I must admit I'm very hesitant to implement the entire UI this way since it becomes one big passive view black box. Would anyone else have pro's or con's to such an approach? Scott -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Josh 'G-Funk' McDonald - j...@joshmcdonald.info - http://twitter.com/sophistifunk - http://flex.joshmcdonald.info/
Re: [flexcoders] Vidoe Tutorials Needed
Thanks You very much Mr Jeffry Houser. I hope the links provided by you may help me. Currently i am learning flash cs3 and after that i would like to take ADOBE FLEX 3 and that is why i am collecting materials for that. Thanks for being there! With High Regards Shabir Ahmad Gilkar --- On Mon, 6/4/09, Jeffry Houser j...@farcryfly.com wrote: From: Jeffry Houser j...@farcryfly.com Subject: Re: [flexcoders] Vidoe Tutorials Needed To: flexcoders@yahoogroups.com Date: Monday, 6 April, 2009, 5:57 PM Adobe's Learn Flex in a Week: http://www.adobe. com/devnet/ flex/videotraini ng/ The Flex Show Podcast ScreenShots: http://www.theflexs how.com/blog/ index.cfm/ Fifteen-Minutes- With-Flex Shabir Gilkar wrote: Dear Friends, I am fresher in Flex Builder 3 and i want to learn Flex. Can any buddy help me in getting best explinatory video tutorials for that. I hope some buddy will definatley help me. With High Regards Shabir Ahmad Gilkar From Kashmir the Heaven! Add more friends to your messenger and enjoy! Invite them now. -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl. com/684b5h http://www.twitter. com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras .com?c=104 -- http://www.theflexs how.com http://www.jeffryho user.com -- Part of the DotComIt Brain Trust Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/
RE: [flexcoders] select non-top level items in a hierarchical menu
The Menu will dispatch a plain click event for the parent nodes. Since menu options also dispatch click, you need to check for tht in the handler. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Maciek Sakrejda Sent: Monday, April 06, 2009 6:07 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] select non-top level items in a hierarchical menu So it looks like I can fake this by tracking a stack of open menus and dynamically adding / removing MOUSE_DOWN listeners to the last menu opened / closed. This seems... ahem... less than ideal. Anyone have a better suggestion? -Maciek -Original Message- From: Maciek Sakrejda msakre...@truviso. mailto:msakrejda%40truviso.com com Reply-to: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com To: flexcoders flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com Subject: [flexcoders] select non-top level items in a hierarchical menu Date: Mon, 06 Apr 2009 13:07:37 -0700 I need the ability to select non-leaf items in a hierarchical menu--is this doable? Basically, suppose I have a dataProvider like this: [ { label: 'a' }, { label: 'b', children: [ { label: '1' }, { label: '2' } ] } ] I want to be able to select a, b, 1, or 2. I can do exactly what I want with a Tree, but I was hoping for something more compact. It seems that selecting a node that has children does not dispatch an ITEM_CLICK event: it just automatically opens the submenu. I'd like to open/close the submenu on rollOver/rollOut, and dispatch a normal ITEM_CLICK for that item on a click. -Maciek
RE: [flexcoders] Flex Gumbo profiler: Path 1, Path2, etc..
In Gumbo Flex Builder it tries to pre-filter the references to get rid of cycles and tries only to show paths from what we call gcroots, which are the places the mark algorithm walks in from. In theory, the paths should have expand icons so you can see what the paths are back to the gcroots which should be a stack of one or more objects Of course, Gumbo is pre-release and there might still be bugs in the filtering. Post a snapshot of what you're seeing. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of flexaustin Sent: Monday, April 06, 2009 1:49 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex Gumbo profiler: Path 1, Path2, etc.. So I am trying to profile my application for memory leaks. I create a memory snapshot and when i look at the Object References, expand the reference I don't see objects, functions, mx., etc... holding a reference. I only see 7 items that say Path 1, Path 2...Path 7. Is this something wrong with me or Gumbo? I can't find the references, thus fix my memory leak. TIA, J
RE: [flexcoders] Re: Sharing objects (BitmapData) between 2 loaded swfs
Yse, but it is not necessary to implement that using separate Flash Player instances. Investigate some other architectures before going down that path. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of p0lish_sausage Sent: Monday, April 06, 2009 12:17 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Sharing objects (BitmapData) between 2 loaded swfs Hi Tracy, I noticed LocalConnection through the documentation. Although people have mentioned that it shares the connection even across multiple pages in the same browser, you would end up getting collisions, which is silly. Have you had experience working around that problem? When you have a very large project consisting of many complex elements and states, and A LOT of resources, it makes sense to have one swf that has ownership of all resources loaded. Then each satellite swf can reference the resource repository and thus minimize loading times considerably. Mark --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, Tracy Spratt tspr...@... wrote: Local connection is probably a better option. Do you have a compelling use-case for having two swfs? That complicates issues considerably. Tracy Spratt, Lariat Services, development services available _ From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com [mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com] On Behalf Of p0lish_sausage Sent: Sunday, April 05, 2009 9:18 PM To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com Subject: [flexcoders] Sharing objects (BitmapData) between 2 loaded swfs Hello everyone, I'm wondering if Flex has the capability of having 2 loaded swfs on a webpage that share the same complex objects, in memory. What I want to do load a bitmapdata in A.swf, and then reference use it both in A.swf and B.swf at the same time. I'd like when the bitmap in A.swf gets updated the B.swf is updated automatically, because it's pointing to the same object. I've found documentation for SharedObjects, however the amount of data I'll be storing is in the megabytes and speed is at the utmost importance, so it shouldn't be hitting the users local disk, so that won't work. Any suggestions for the above mentioned would be much appreciated. Mark
RE: [flexcoders] reading a simple array dump?
First, use a result handler, and do not use lastResult. Then go one step at a time. Examine event.result by itself first, then work your way into the object. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jason B Sent: Monday, April 06, 2009 10:35 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] reading a simple array dump? this is my first array dump and i was wondering how to show an item in an alert box I have an httpservice with resultformat to array now how do i alert the first name in the list? Alert.show(myhttpservice.lastResult.DATARESULTS.info.NAME); Doesn't work (mx.collections::ArrayCollection)#0 filterFunction = (null) length = 1 list = (mx.collections::ArrayList)#1 length = 1 source = (Array)#2 [0] (Object)#3 DATARESULTS = (Object)#4 info = (mx.collections::ArrayCollection)#5 filterFunction = (null) length = 4 list = (mx.collections::ArrayList)#6 length = 4 source = (Array)#7 [0] (Object)#8 NAME = (null) [1] (Object)#9 NAME = Dory, Jason [2] (Object)#10 NAME = Doe, Jason [3] (Object)#11 NAME = Daniel, Jason uid = EA885A5B-71B3-346D-2A21-7BC841863233 sort = (null) source = (Array)#7 uid = C9FAD864-FEE7-6523-6EEF-7BC84187A68B sort = (null) source = (Array)#2
[flexcoders] flexiBoard - Crafty chess frontend
I've developed a frontend to the Crafty chess engine. A win32 alpha version is available for download at: http://flexiboard.riaforge.org/ The zip contains everything you need to play chess. Check the INSTALL.TXT file for instructions. The source code is also available via subversion at riaforge. I'd appreciate any comments, bug reports etc. The app is playable but still under development. I can use some help to port to linux and mac and to wrap it up if anyone is interested.