RE: [flexcoders] The First Flex Open Iteration Meeting
That's a sensible move to be honest. Given the amount of spam that flew through in the last meeting, nothing else would get talked about except that issue! Rule 1 of meetings, make sure the meeting can have an outcome. By banning that, you can now! Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Nate Beck Sent: 05 February 2009 23:39 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] The First Flex Open Iteration Meeting Fx prefix is an ongoing discussion that will NOT be discussed in this meeting Awesome.
Re: [flexcoders] Re: ZendAmf Setup issue 1.7 where gateway filw working ?
Hi Tiendans , Thanks for comemnts , I had zend framework path in both ways but I was stoping echo command so it shud not come up for download I am going to check this again and will let you know Thanks :) From: tiend...@ezweb.ne.jp tienda...@gmail.com To: flexcoders@yahoogroups.com Sent: Thursday, February 5, 2009 2:03:35 AM Subject: [flexcoders] Re: ZendAmf Setup issue 1.7 where gateway filw working ? Hi Sajid Hussain I think you are wrong in setting Gateway file, Do you have set path for Zendamf library, you can setting Zendamf library in php.ini file as below include_path = C:\library or setting in you gateway file as below ? define('APPLICATION _PATH', realpath(dirname( __FILE__) . '/../application/ ')); set_include_ path( get_include_ path() . PATH_SEPARATOR . APPLICATION_ PATH . '/../library/ ' . PATH_SEPARATOR . APPLICATION_ PATH . '/models/' . PATH_SEPARATOR . APPLICATION_ PATH . '/services/com/ ' ); require_once Zend/Loader. php; ? When you browser gateway file (index.php) and it comes up for download . Dont borther it, it right. At time, you can start Flex app and test. Best regard http://blog. flextip.net --- In flexcod...@yahoogro ups.com, Sajid Hussain enchanter_saj@ ... wrote: Hello Gurus , I am facing one issue where i am attempting to use Zend_amf but that code exactly work well with Amfphp, I have seen all internet resources for zend and I am very courios on thier machine same code is working why not at mine :( if I am trying to access gateway(Zend File) it work well but its not working from Flex App . I have follwoing code and structure Gateway File : ?php require_once 'Zend/Amf/Server. php'; require_once 'include/services/ BListsService. php'; require_once 'include/services/ UserService. php'; // Instantiate the server $server = new Zend_Amf_Server( ); $server-setClass( 'BListsSer vice'); $server-setClassMa p( 'BListsVO' , 'BLists'); $server-setClass( 'UserServi ce'); $server-setClassMa p( 'UserVO', 'User'); $server-setProduct ion( false); $server-handle( ); // if I am echoing this its not execute and instead it comes up for download ? Services-xml : ?xml version=1.0 encoding=UTF- 8? services-config services service id=amfphp-flashrem oting-service class=flex. messaging. services. RemotingService messageTypes= flex.messaging. messages. RemotingMessage destination id=zend channels channel ref=my-zend / /channels properties source*/source /properties /destination /service /services channels channel-definition id=my-zend class=mx.messaging .channels. AMFChannel endpoint uri=http:// localhost/ gateway.php class=flex. messaging. endpoints. AMFEndpoint / /channel-definitio n /channels /services-config Remote Services : mx:RemoteObject id=BListsService source=BListsServi ce destination= zend endpoint=http: //localhost/ gateway.php showBusyCursor= true /mx:RemoteObject Please Reple -Saj
[flexcoders] array not being refreshed
hi i have a tilelist and i use the selectedItem to populate an array which i then used as a dataprovider for my displayshelf component to show images. when i click an item in the tilelist, the array is populated and my images show up, but when i select another object in the tilelist the images are not changed more like the array is not being refreshed. any advise. here is my code gallery.mxml ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; width=100% height=100% xmlns:local=com.* mx:Binding source=sel.value destination=shelf.selectedIndex / mx:Binding destination=sel.value source=shelf.selectedIndex / mx:Binding source=angle.value destination=shelf.angle / mx:Binding source=pop.value destination=shelf.popout / mx:Array id=img mx:Stringassets/extra_pics/{parentDocument.tiles.selectedItem.img1}/mx:String mx:Stringassets/extra_pics/{parentDocument.tiles.selectedItem.img2}/mx:String mx:Stringassets/extra_pics/{parentDocument.tiles.selectedItem.img3}/mx:String mx:Stringassets/extra_pics/{parentDocument.tiles.selectedItem.img4}/mx:String /mx:Array local:DisplayShelf id=shelf horizontalCenter=0 verticalCenter=0 borderThickness=5 borderColor=#FF dataProvider={img} enableHistory=false width=100%/ mx:VBox horizontalCenter=0 bottom=10 horizontalAlign=center verticalAlign=middle width=100% mx:HBox width=100% mx:Label text=Angle: width=75/ mx:HSlider liveDragging=true id=angle minimum=5 value=20 maximum=90 snapInterval=.1 width=100% / /mx:HBox mx:HBox width=100% mx:Label text=Selection: width=75/ mx:HSlider liveDragging=true id=sel minimum=0 value=0 maximum={shelf.dataProvider.length} snapInterval=1 width=100% / /mx:HBox mx:HBox width=100% mx:Label text=pop: width=75/ mx:HSlider liveDragging=true id=pop minimum=0 value=.8 maximum=1 snapInterval=.01 width=100% / /mx:HBox /mx:VBox /mx:Canvas
Re: [flexcoders] Re: Detect exeptions - help!!
Thanks Steve, I will give it a go. My problem with the communication was that I didn't know the order of messages between exe and swf and so couldn't fix it. Perhaps I can now. John valdhor wrote: John Yes it does. It acts as a proxy between whatever application you are using and whatever you are trying to contact. It automagically sets up Firefox and Internet Exploiter. For other apps you may need to manually set the proxy to the local machine and port. BTW. My name is Steve - Valdhor was my ADD alias back in my university days ;-} --- In flexcoders@yahoogroups.com, John McCormack j...@... wrote: Thanks valdhor, Does Charles manage to capture the local host traffic? I want to capture the messages between an exe and an Adobe swf file. John valdhor wrote: My favorite (The one I own) is Charles (http://www.charlesproxy.com). The two things that made it my pick is that it is cross platform and that it understands AMF (ie. it will show you the returned objects and what they contain - invaluable for debugging remote objects) --- In flexcoders@yahoogroups.com, oneworld95 oneworld95@ wrote: John -- WireShark (free download from http://www.wireshark.org/) is my current favorite. It shows all the network traffic and can be filtered based on IP, etc. I've blogged about it here with instructions on using it: http://devharbor.blogspot.com/2009/02/using-wireshark-to-sniff-http-packets.html - Alex C --- In flexcoders@yahoogroups.com, oneworld95 oneworld95@ wrote: Thanks, Alex. It's not hanging on the Flex side -- the server response is never received. Using WireShark (http://www.wireshark.org/), I was able to see it's not hanging at all, but continually sending messages to the Java servlet but getting nothing back in reply. That's what led me to investigate the Java code more closely. The BufferedImage object was receiving some JPG images that it couldn't handle; so it spun away for a while before throwing an exception. For whatever reason, the exception never made it back to the Flex side. All is well now: I took out the BufferedImage object and am passing the InputStream directly to the Java Advanced Imaging API code, which resizes the image and writes it to disk. One issue: JPG images with CMYK color spaces come out with their colors mangled; but that's a limitation of the server code and has nothing to do with Flex. - Alex --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: It would be unusual for Flex to hang waiting for the server. Use a network monitor to see what's going on. Is Flex really hung? You can't hit a button or anything? From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of oneworld95 Sent: Tuesday, February 03, 2009 7:25 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Detect exeptions - help!! I've run into a very frustrating situation and need your help: - Flex uploads a file to the server - The server reads it into a Java BufferedImage object. - However, Java sometimes takes 40 seconds or longer to reply - In some cases it has difficulty reading the file. In the cases of problems, Flex just hangs. It doesn't reply with anything. Is it timing out? Any help appreciated. -- 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] One project - Multiple SWFs
Hi, I've a project where I'm creating a lot of content as SWFs which is loaded by the main application. These content SWFs are not modules and will be loaded by SWFLoader. I want to know how can I create these (large number of) content SWFs using flex. The content will be residing in nested folders. As far as I know, we can create SWFs by either compiling flex applications or thru FLAs. Is there a way flex components can be compiled into independent SWFs? I have no functionality inside these SWFs, only graphics. Any help much appreciated. Nishant
Re: [flexcoders] Re: FadeIn Effect not working with custom item renderers in List
I'm hitting the exact same issue.. Any solutions yet ? should I submit that as a bug ? On Wed, Jan 21, 2009 at 4:14 PM, Amy amyblankens...@bellsouth.net wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Josh McDonald dzn...@... wrote: It may be caused by Container not implementing IDropInListItemRenderer or IListItemRenderer. You really don't want to be extending Container for item renderers if you can avoid it, I believe it's a big performance penalty. AFAIK, those interfaces only deal with how data gets passed into the renderer, not how effects are applied.
Re: [flexcoders] Re: FadeIn Effect not working with custom item renderers in List
I have to add, itemsChangeEffect works fine on tileList using itemrenderers (with containers) the problem is strictly related to the itemsChangeEffect addItem effects behaviour on a List only. the effect is playing fine on the removeItem. On Fri, Feb 6, 2009 at 12:41 PM, Thibaud Van Vreckem thibaudm...@gmail.comwrote: I'm hitting the exact same issue.. Any solutions yet ? should I submit that as a bug ? On Wed, Jan 21, 2009 at 4:14 PM, Amy amyblankens...@bellsouth.net wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Josh McDonald dzn...@... wrote: It may be caused by Container not implementing IDropInListItemRenderer or IListItemRenderer. You really don't want to be extending Container for item renderers if you can avoid it, I believe it's a big performance penalty. AFAIK, those interfaces only deal with how data gets passed into the renderer, not how effects are applied.
[flexcoders] Flex Truncating Button Labels
I posted this on StackOverflow.com but thought I'd see if you guys might have any ideas as well: First and foremost, I apologize for any vagueness in this question. At this point, I'm simply trying to get some new ideas of things to try in order to diagnose this bug. Anyway, the problem I'm having is with an application that's using a custom moduleloader. That moduleloader has been compiled into an swc and the moduleloader is being instantiated via its namespace. This all works perfectly fine. The problem I'm encountering is specific to mx:button controls used within modules. For whatever reason, their labels are being truncated so, for example, Sign In is showing up as Sign ... After quite a bit of fooling around I have been able to establish the following: 1. This problem only seems to occur within modules. If a button control is used in the main mxml, the label does not get truncated. 2. The button control whose label is being truncated does not have a width specified (setting its width to 100% or a specific pixel width doesn't fix the issue) 3. The button control is using the default padding (messing with the padding by setting left and right to 5 or any other value doesn't help matters either). 4. We are not using any embedded fonts so I've ruled that out as a possibility as well. 5. mx:CheckBox and mx:LinkButton are equally impacted by this problem although mx:CheckBox also seems to not want to show its checkbox, it just shows the truncated label. A potential side affect of this is that attaching a dataprovider to mx:ComboBox causes the combobox control to throw a drawing error but I'm not entirely certain that it's related to the above problem. One interesting thing I did find while perusing the net for an answer was a mention of fontContext and its relationship to IFlexModuleFactory. There's no specification for fontContext within our implementation of moduleloader so I'm not entirely certain if this could be the issue. In any case, if anyone has any ideas, it would be hugely appreciated. On the other hand, if you know exactly what ails me and can provide me with an answer, I might just wet myself with excitement. It's late. I'm tired. I NEED my Flex app to play nice. Thanks in advance, --Anne Edit: To clarify what I'm looking for with this question, I really just need to know the following: 1. Could this issue be caused by a namespace conflict? 2. What else can potentially override the default behavior of labels if no CSS has been implemented? 3. Has anyone encountered a problem with inheritance being lost while using a custom implementation of moduleloader? 4. Has anyone encountered this problem or a similar problem with or without using moduleloader? I'm not sharing any code with this question simply because I'd have to share the entire application and, unfortunately, I can't do that. Again, I'm not looking for the end all, be all solution, just some suggestions of things to look out for if anyone has any ideas.
[flexcoders] How to import CSS file into another???
Hi, I am trying to import a CSS into another CSS file. I do the same work in simple HTML by using @impot url cssname.css; but it is not implemented in FLEX. So kindly help me out to using CSS file in to another CSS file using FLEX Thnaks Tahniyat Kazmi.
Re: [flexcoders] Tables in Rich Text Editor
I'd definitely be interested in extending TLF when it's released. Is it going to live in Player, or in the Flex framework? If the latter, why would it not be open sourced? Is it going to be part of Builder pro? Am I dreaming hoping for answers to those questions? ;-) -Josh On Fri, Feb 6, 2009 at 3:48 PM, Gordon Smith gosm...@adobe.com wrote: The Halo RichTextEditor component will never support tables; it is based on the Player's TextField, and the Player team has no plans to improve TextField. Instead, the Player team has provided, in Flash Player 10, an entirely new text engine known as FTE (Flash Text Engine) on top of which a Text Layout Framework (TLF) library is being developed. Gumbo components -- including the new FxTextArea -- use TLF to do their text rendering. And we're working on making it possible for Halo components to also get some TLF capabilities. The first version of TLF, which will ship with Gumbo, will support cool stuff like bidirectional text (for right-to-left languages like Arabic and Hebrew mixed together with left-to-right languages), virtualized scrolling (so that you can scroll through large amounts of text without requiring too much memory), multiple columns, vertical Asian text, embedded graphics, superscripts/subscripts, ligatures, a better markup language, and a text object model, but… it will unfortunately not support lists or tables. : ( Lists and tables are scheduled for a future release of TLF, after Flex 4. The good news is that new versions of the TLF library will be able to be released more quickly and easily than new versions of the Player, so you shouldn't have to wait too long for improvements. Discussions are also underway about open-sourcing TLF, or at least making its source available, in which case you could try implementing tables yourself if you are very ambitious. Gordon Smith Adobe Flex SDK Team *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Igor Costa *Sent:* Saturday, January 31, 2009 7:29 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Tables in Rich Text Editor Jeroen Open a feature request at Flex Bug Base. So far doesn't have any. Regards Igor Costa www.igorcosta.org 2008/12/18 Jeroen De Vos jeroen.de...@haven.antwerpen.be Hi, Perhaps one of the most asked questions on the list: when will the Rich Text Editor support tables? I had high hopes with Flash Player 10 and the Text Layout Framework, but alas, no tables. Anyone has any luck extending the RTE to support tables? Thanks, Jeroen. *Jeroen De Vos* *C/ICT - Amaris* * * Deze e-mail en alle gekoppelde bestanden zijn officiele documenten van het Gemeentelijk Havenbedrijf Antwerpen en kunnen vertrouwelijke of persoonlijke informatie bevatten. Gelieve de afzender onmiddellijk via e-mail of telefonisch te verwittigen als u deze e-mail per vergissing heeft ontvangen en verwijder vervolgens de e-mail zonder deze te lezen, te reproduceren, te verspreiden of te ontsluiten naar derden. Het Gemeentelijk Havenbedrijf Antwerpen is op geen enkele manier verantwoordelijk voor fouten of onnauwkeurigheden in de inhoud van deze e-mail. Het Gemeentelijk Havenbedrijf Antwerpen kan niet aansprakelijk gesteld worden voor directe of indirecte schade, verlies of ongemak veroorzaakt als gevolg van een onnauwkeurigheid of fout in deze e-mail. English Translation: This e-mail and all attached files are official documents of Antwerp Port Authority and may contain confidential or personal information. If you have received this e-mail in error, you are asked to inform the sender by e-mail or telephone immediately, and to remove it from your system without reading or reproducing it or passing it on to other parties. Antwerp Port Authority is in no way responsible for any errors or inaccuracies in the contents of this e-mail, nor can it be held liable for any direct or indirect loss, damage or inconvenience arising from any such errors or inaccuracies. -- Igor Costa www.igorcosta.com www.igorcosta.org -- 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] Re: AxisRenderer Embedded Font Bug?
3.2.0.3958 -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Darrell Loverin Sent: Thursday, February 05, 2009 9:16 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: AxisRenderer Embedded Font Bug? What version of dataviz and the framework are you using? -Darrell --- In flexcoders@yahoogroups.com, Battershall, Jeff jeff.battersh...@... wrote: Daniel, OK its an RSL issue. When I have the dataviz and framework merged into code, everything renders correctly. When I'm referencing them as RSL URLs, the fonts don't render properly in the AxisRenderer (for vertical axes). I had run into this previously and the workaround is/was to merge it all into code with the commensurate increase in file size. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Battershall, Jeff Sent: Thursday, February 05, 2009 8:54 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: AxisRenderer Embedded Font Bug? Daniel, It's bizarre - I enumerated the fonts in the document (TitleWindow) and they are there but aren't displaying in the AxisRenderer. The fonts ARE rendering in other parts of the document. I'm wondering whether I have the latest datavis build or something weird like that. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Darrell Loverin Sent: Thursday, February 05, 2009 7:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: AxisRenderer Embedded Font Bug? The problem sounds like it might be this bug https://bugs.adobe.com/jira/browse/FLEXDMV-1883 which was fixed in Flex 3.2. -Darrell --- In flexcoders@yahoogroups.com, Battershall, Jeff jeff.battershall@ wrote: Additional info - the chart is in a TitleWindow. There seems to be a lot of posts about this and similar issues with charts within modules, etc. I just haven't been able to get the magic incantation that will make the fonts render. I could just say f-it and render the labels using device fonts and without rotation, but that kinda runs against the grain, if you know what I mean. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Battershall, Jeff Sent: Thursday, February 05, 2009 2:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] AxisRenderer Embedded Font Bug? I've got a vertical axis with an axisrenderer and I'm trying to rotate the labels 90 degrees. I'm referring to a font embedded in a stylesheet. The labels won't display - it appears that room is being made for the labels to appear, but the labels aren't getting rendered. I'm using MyriadWebPro as the embedded font and I've also tried this with Arial with the same results. I've also tried this with no label rotation at all - but no dice. If I stipulate a font family including device fonts, the labels will render, but no rotation is available. Has anyone seen this? Jeff Battershall Application Architect Dow Jones Indexes jeff.battershall@ (609) 520-5637 (p) (484) 477-9900 (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 -- 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-b4c f- 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-b4c f- 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: ColorPicker - without the picker!
Yes! That is exactly what I am looking for!
Re: [flexcoders] Re: ColorPicker - without the picker!
I do not think there is any code, in the previous link... On Fri, Feb 6, 2009 at 5:02 PM, tchredeemed apth...@liberty.edu wrote: Yes! That is exactly what I am looking for! -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
[flexcoders] Re: ColorPicker - without the picker!
Yeah, I was under the impression he was waiting to see if that's what I was looking for... Hopefully he won't mind sharing his code :)
Re: [flexcoders] ColorPicker - without the picker!
I have an implementation for the same. Find here http://blog.flexgeek.in/?page_id=109 Let me know if thats what u are looking at. On Thu, Feb 5, 2009 at 10:26 AM, tchredeemed apth...@liberty.edu wrote: I was wondering if I could build a flex app that has the SwatchPanel by default, instead of having to click on the icon to have it drop down. Yes/No?
[flexcoders] Look for a tool to test remoteobject(AMF) format functions?
Hi, I am look for a tool to take remoteobject(AMF) format functions before I do Flex coding. The third party company provide me the functions and I need make sure they works fine before coding. I use xmlspy to test web service functions before and I am looking for a tool to test AMF format functions. Thanks for your advice Mark
Re: [flexcoders] Look for a tool to test remoteobject(AMF) format functions?
markflex2007 wrote: Hi, I am look for a tool to take remoteobject(AMF) format functions before I do Flex coding. The third party company provide me the functions and I need make sure they works fine before coding. I use xmlspy to test web service functions before and I am looking for a tool to test AMF format functions. Thanks for your advice Mark If the 3rd party you are using - uses amfphp, you can use the service browser (if they allow access). You just submit data in JSON format, etc. I know it is probably a long shot, but just throwing it out there. d
[flexcoders] Save Configuration
Hi, suppose that i have a main application and here i can create three differents type of panels (mypanel extend Panel)... then i have a button that permits to save the current pèanel inside the app and its position into the screen..this is made by getting parameters for each panel...for example their position on the main app... the panel name and his parameters are saved into a shared object... the shared object is an array collection of objects, for example mx:Object id=panel1 x=3 y=5 / so when i open the second time my application, i read the shared object i would retrieve the panel that i saved in the same position. in this case panel1 in the position 3-5. note the panel is created at startup for each time i launch the application. i don't want to save the entire panel object into the shared object. how can i do this? Thanks in advance Regards Lorenzo
Re: [flexcoders] Re: services-config.xml question
On Wednesday 04 Feb 2009, tchredeemed wrote: bump! Services-config has examples in it, that show how to use {server.name} etc. -- Tom Chiverton Helping to heterogeneously create mission-critical second-generation experiences This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Re: ColorPicker - without the picker!
http://andrewthorp.com/flex/colorpicker.png That is a picture of what I am looking for... Somehow where I can get the swatch panel without going through the click on the top piece. Any ideas?
Re: [flexcoders] Accordion click event issue
try giving it a backround color? On Fri, Feb 6, 2009 at 9:52 AM, Vik vik@gmail.com wrote: Hie I am using an accordion with three vbox inside it. The problem is when i click on any of the accordion it does not invoke the click event. My code is like: mx:accordion id=myAcc mx:VBox label=Today /mx:VBox mx:VBox label=Last 2 Days click=headCountAccordion.selectedIndex=0; mx:Button label=hi/ /mx:VBox mx:VBox label=Last 1 Week /mx:VBox /mx:Accordion the click event does not work on the VBox with lable last 2 days. However, it works if i copy the click stuff to the button inside it. Any idea why? and how to fix Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
[flexcoders] Re: LCDS : Managed associations - creating/deleting new Items
Bart I'm also getting the 'undefined - CommitResponder' error. I start wondering why someone would go with the data management services... I've been using the RemoteObject stuff for 2 years now and I've never had any problems. This data management services stuff seems to be pretty fragile to say the least. You save a bit of code on the server side but you open up a whole can of worms... Grtz from Brussels :)
RE: [flexcoders] Re: Problem in Streaming Live data using Flash Media Server
It depends on how you have FMS setup... if you are using the default setup, you probably connect to your app instance with something like rtmp://server/yourAppName. I think the default setup expects streams in a streams folder. On the FMS, try putting your flv file in %FMS-Root%/applications/yourAppName/streams HTH, Ryan From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of akila_ksri Sent: Thursday, February 05, 2009 9:40 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Problem in Streaming Live data using Flash Media Server Yes, you are right it resides in the same directory as my application --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Nate Beck n...@... wrote: When you say... present in the same directory.. which directory are you referring to? The FLV file resides in the same directory as your application? It's been a while since I've used FMS... but in Wowza Media Server there is an audio folder where all of the stream FLV files are located. On Thu, Feb 5, 2009 at 4:47 AM, akila_ksri akila_k...@... wrote: I have the client application and the FMS running on the same machine, the client app connects to the server successfully but fails to play any content(Pre-recorded flv/swf) which is also present in the same directory using NetStream.play(contentPath); and i always get NetStream.Play.StreamNotFound Could anyone tell me if i am doing anything wrong? Any help would be greatly appreciated. Thanks in advance, Akila -- Cheers, Nate http://blog.natebeck.net This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system.
Re: [flexcoders] Look for a tool to test remoteobject(AMF) format functions?
I don't know of one specifically. What are you looking for this to test specifically? The type of data that gets sent and/or returned? I suspect you could write a tool to pass data to the web service and verify its results relatively easily in Flex. markflex2007 wrote: Hi, I am look for a tool to take remoteobject(AMF) format functions before I do Flex coding. The third party company provide me the functions and I need make sure they works fine before coding. I use xmlspy to test web service functions before and I am looking for a tool to test AMF format functions. Thanks for your advice Mark -- 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 -- 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.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
[flexcoders] Getting at variables inside a function that accepts a function
How would I go about getting at variables of a function when I send in an anonymous function so... public function acceptingFunction (func1:Function=null, func2:Function=null):void{ var a:Number; var b:String; if(func1 func2){ func1; anotherAcceptFunction(func2); } } public function anotherAcceptFunction(func:Function=null){ var c:Number; var d:String; if(func){ func } } acceptFunction(function():void{get at vars a,b,c,d from here}); I really don't want to extend the orig. function if I can help it, in this case extend the acceptingFunction, as its from some other library.
[flexcoders] Re: ColorPicker - without the picker!
I wonder whether the Yahoo Astra Flex Components may be useful: http://developer.yahoo.com/flash/astra-flex/ Especially the ColorPlaneAndSliderPicker. --- In flexcoders@yahoogroups.com, tchredeemed apth...@... wrote: http://andrewthorp.com/flex/colorpicker.png That is a picture of what I am looking for... Somehow where I can get the swatch panel without going through the click on the top piece. Any ideas?
[flexcoders] Re: Look for a tool to test remoteobject(AMF) format functions?
Hi, My case are: 1. all AMF functions developed with Java. 2. A lot of functions and I want to make sure they works fine before flex coding. I know webOrb have a test tool but I do not use weborb for this. Thanks Mark
[flexcoders] Re: One project - Multiple SWFs
You could always compile the code into separate Flex applications. Then load their SWFs in the main app and let them interact. You might even just be able to compile them into SWC libraries, which might be the better choice. --- In flexcoders@yahoogroups.com, nishantkyal nishantk...@... wrote: Hi, I've a project where I'm creating a lot of content as SWFs which is loaded by the main application. These content SWFs are not modules and will be loaded by SWFLoader. I want to know how can I create these (large number of) content SWFs using flex. The content will be residing in nested folders. As far as I know, we can create SWFs by either compiling flex applications or thru FLAs. Is there a way flex components can be compiled into independent SWFs? I have no functionality inside these SWFs, only graphics. Any help much appreciated. Nishant
[flexcoders] Re: array not being refreshed
You may want to use an ArrayCollection instead of an Array. Also, are you taking advantage of Flex binding? --- In flexcoders@yahoogroups.com, stinasius stinas...@... wrote: hi i have a tilelist and i use the selectedItem to populate an array which i then used as a dataprovider for my displayshelf component to show images. when i click an item in the tilelist, the array is populated and my images show up, but when i select another object in the tilelist the images are not changed more like the array is not being refreshed. any advise. here is my code gallery.mxml ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; width=100% height=100% xmlns:local=com.* mx:Binding source=sel.value destination=shelf.selectedIndex / mx:Binding destination=sel.value source=shelf.selectedIndex / mx:Binding source=angle.value destination=shelf.angle / mx:Binding source=pop.value destination=shelf.popout / mx:Array id=img mx:Stringassets/extra_pics/ {parentDocument.tiles.selectedItem.img1}/mx:String mx:Stringassets/extra_pics/ {parentDocument.tiles.selectedItem.img2}/mx:String mx:Stringassets/extra_pics/ {parentDocument.tiles.selectedItem.img3}/mx:String mx:Stringassets/extra_pics/ {parentDocument.tiles.selectedItem.img4}/mx:String /mx:Array local:DisplayShelf id=shelf horizontalCenter=0 verticalCenter=0borderThickness=5 borderColor=#FF dataProvider={img} enableHistory=false width=100%/ mx:VBox horizontalCenter=0 bottom=10 horizontalAlign=center verticalAlign=middle width=100% mx:HBox width=100% mx:Label text=Angle: width=75/ mx:HSlider liveDragging=true id=angle minimum=5 value=20 maximum=90 snapInterval=.1 width=100% / /mx:HBox mx:HBox width=100% mx:Label text=Selection: width=75/ mx:HSlider liveDragging=true id=sel minimum=0 value=0 maximum={shelf.dataProvider.length} snapInterval=1 width=100% / /mx:HBox mx:HBox width=100% mx:Label text=pop: width=75/ mx:HSlider liveDragging=true id=pop minimum=0 value=.8 maximum=1 snapInterval=.01 width=100% / /mx:HBox /mx:VBox /mx:Canvas
[flexcoders] Re: Save Configuration
You could read the SharedObject during the application initialize event, and then apply its data to the Panel during the application creationComplete event. --- In flexcoders@yahoogroups.com, thelordsince1984 lore...@... wrote: Hi, suppose that i have a main application and here i can create three differents type of panels (mypanel extend Panel)... then i have a button that permits to save the current pèanel inside the app and its position into the screen..this is made by getting parameters for each panel...for example their position on the main app... the panel name and his parameters are saved into a shared object... the shared object is an array collection of objects, for example mx:Object id=panel1 x=3 y=5 / so when i open the second time my application, i read the shared object i would retrieve the panel that i saved in the same position. in this case panel1 in the position 3-5. note the panel is created at startup for each time i launch the application. i don't want to save the entire panel object into the shared object. how can i do this? Thanks in advance Regards Lorenzo
Re: [flexcoders] DataGrid mouseover
Thanks. I don't understand why it would be disabled because of itemrenderer though. My item renderer looks like - mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; verticalAlign=middle height=33 mx:Script ![CDATA[ override public function set data(val:Object):void { myLabel.text = val.Location; } ]] /mx:Script mx:Label id=myLabel /mx:Label /mx:VBox On Tue, Feb 3, 2009 at 7:24 AM, Alex Harui aha...@adobe.com wrote: Debug into mouseEventToItemRenderer and see why it doesn't return the correct renderer *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Mike Chang *Sent:* Monday, February 02, 2009 12:47 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] DataGrid mouseover I have a data grid, and one of the columns I used ItemRenderer to have a vbox and an image inside as a button. Everything looks good except the entire column where that ItemRenderer is used does not invoke the same mouseover events as the other columns. The mouseover event I was looking for is highlighting the row on mouseover and selection (with a darker hue). How do I get the column to do mouseover again for the whole row? Thanks in advance.
[flexcoders] Re: Look for a tool to test remoteobject(AMF) format functions?
I have not seen a tool that you could use to test this. If I were doing this, I would write a tool in Flex and use Charles to make sure the response is correct. There would be no need to have any result code as Charles would show the object(s) being returned including the data. The following Application code will invoke the remote service. You can use it to test the response from the server: ?xml version=1.0 encoding=utf-8? mx:Application pageTitle=Remote Object Test xmlns:mx=http://www.adobe.com/2006/mxml; width=100% height=100% layout=vertical horizontalAlign=center creationComplete=onComplete() mx:Script ![CDATA[ import mx.messaging.channels.AMFChannel; import mx.messaging.ChannelSet; import mx.controls.Alert; import mx.rpc.events.ResultEvent; import mx.rpc.events.FaultEvent; import mx.rpc.remoting.RemoteObject; private var TestService:RemoteObject; private var TestChannelSet:ChannelSet; private var TestAmfChannel:AMFChannel; public function onComplete():void { TestChannelSet = new ChannelSet(); TestAmfChannel = new AMFChannel(my-amf, http://theserver.com/path/to/gateway;); TestChannelSet.addChannel(TestAmfChannel); TestService = new RemoteObject(); TestService.channelSet = TestChannelSet; TestService.destination = ActionV2.TestService; TestService.addEventListener(ResultEvent.RESULT, getTestObjectHandler); TestService.addEventListener(FaultEvent.FAULT, faultHandler); } private function getTestObjectHandler(event:ResultEvent):void { } private function faultHandler(fault:FaultEvent):void { Alert.show(fault.fault.faultString, fault.fault.faultCode.toString()); } ]] /mx:Script mx:Button label=Get Test Object click=TestService.getTestObject()/ /mx:Application All you need to do is change the location of the remote server and change the method called in the click event of the button to the method you want to test. When you click the button, monitor the result returned in Charles (http://www.charlesproxy.com) --- In flexcoders@yahoogroups.com, markflex2007 markflex2...@... wrote: Hi, My case are: 1. all AMF functions developed with Java. 2. A lot of functions and I want to make sure they works fine before flex coding. I know webOrb have a test tool but I do not use weborb for this. Thanks Mark
[flexcoders] ACCORDION - How can I switch my cursor to a pointer?
Hi everyone, how can I switch my cursor to a hand pointer when it goes over the accordion header? Thanks. -David.
[flexcoders] Re: Look for a tool to test remoteobject(AMF) format functions?
I have not seen a tool that you could use to test this. If I were doing this, I would write a tool in Flex and use Charles to make sure the response is correct. There would be no need to have any result code as Charles would show the object(s) being returned including the data. The following Application code will invoke the remote service. You can use it to test the response from the server: ?xml version=1.0 encoding=utf-8? mx:Application pageTitle=Remote Object Test xmlns:mx=http://www.adobe.com/2006/mxml; width=100% height=100% layout=vertical horizontalAlign=center creationComplete=onComplete() mx:Script ![CDATA[ import mx.messaging.channels.AMFChannel; import mx.messaging.ChannelSet; import mx.controls.Alert; import mx.rpc.events.ResultEvent; import mx.rpc.events.FaultEvent; import mx.rpc.remoting.RemoteObject; private var TestService:RemoteObject; private var TestChannelSet:ChannelSet; private var TestAmfChannel:AMFChannel; public function onComplete():void { TestChannelSet = new ChannelSet(); TestAmfChannel = new AMFChannel(my-amf, http://theserver.com/path/to/gateway;); TestChannelSet.addChannel(TestAmfChannel); TestService = new RemoteObject(); TestService.channelSet = TestChannelSet; TestService.destination = ServiceDirectory.TestService; TestService.addEventListener(ResultEvent.RESULT, getTestObjectHandler); TestService.addEventListener(FaultEvent.FAULT, faultHandler); } private function getTestObjectHandler(event:ResultEvent):void { } private function faultHandler(fault:FaultEvent):void { Alert.show(fault.fault.faultString, fault.fault.faultCode.toString()); } ]] /mx:Script mx:Button label=Get Test Object click=TestService.getTestObject()/ /mx:Application All you need to do is: Change the location of the remote server. Change the destination to the location of your service. Change the method called in the click event of the button to the method you want to test. When you click the button, monitor the result returned in Charles (http://www.charlesproxy.com) --- In flexcoders@yahoogroups.com, markflex2007 markflex2...@... wrote: Hi, My case are: 1. all AMF functions developed with Java. 2. A lot of functions and I want to make sure they works fine before flex coding. I know webOrb have a test tool but I do not use weborb for this. Thanks Mark
RE: [flexcoders] ACCORDION - How can I switch my cursor to a pointer?
See the archives for how to use useHandCursor 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 sailorsea21 Sent: Friday, February 06, 2009 10:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ACCORDION - How can I switch my cursor to a pointer? Hi everyone, how can I switch my cursor to a hand pointer when it goes over the accordion header? Thanks. -David.
RE: [flexcoders] DataGrid mouseover
Not sure until you debug into it. FWIW, you itemrenderer should be unnecessary as written. By setting the DG column's dataField to Location (you can set the headerText to something more readable) and setting the DG's rowHeight to 33, you should see the same visuals and with better performance and less memory. Using a container as a renderer is pretty heavy. But if you do go with a custom renderer like this, you should pass data to super.data in the setter or customize a getter. 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 Mike Chang Sent: Friday, February 06, 2009 10:01 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] DataGrid mouseover Thanks. I don't understand why it would be disabled because of itemrenderer though. My item renderer looks like - mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; verticalAlign=middle height=33 mx:Script ![CDATA[ override public function set data(val:Object):void { myLabel.text = val.Location; } ]] /mx:Script mx:Label id=myLabel /mx:Label /mx:VBox On Tue, Feb 3, 2009 at 7:24 AM, Alex Harui aha...@adobe.commailto:aha...@adobe.com wrote: Debug into mouseEventToItemRenderer and see why it doesn't return the correct renderer From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On Behalf Of Mike Chang Sent: Monday, February 02, 2009 12:47 PM To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com Subject: [flexcoders] DataGrid mouseover I have a data grid, and one of the columns I used ItemRenderer to have a vbox and an image inside as a button. Everything looks good except the entire column where that ItemRenderer is used does not invoke the same mouseover events as the other columns. The mouseover event I was looking for is highlighting the row on mouseover and selection (with a darker hue). How do I get the column to do mouseover again for the whole row? Thanks in advance.
[flexcoders] Re: ColorPicker - without the picker!
I'd rather just know how to implement that SwatchPanel component if that is possible... :)
RE: [flexcoders] Flex Truncating Button Labels
fontContext should only matter for embeddedfonts. Compare the working example with the failed example closely. You only have to be off by a pixel to cause truncation. If the layout rules of the containers around the module cause it to be a different size that could be a problem. Also note that any existing classes and styles in the mainapp supercede classes and styles in a module and could cause the widget in the module to think it has different metrics than you intended. 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 goddess12206942 Sent: Thursday, February 05, 2009 9:53 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex Truncating Button Labels I posted this on StackOverflow.com but thought I'd see if you guys might have any ideas as well: First and foremost, I apologize for any vagueness in this question. At this point, I'm simply trying to get some new ideas of things to try in order to diagnose this bug. Anyway, the problem I'm having is with an application that's using a custom moduleloader. That moduleloader has been compiled into an swc and the moduleloader is being instantiated via its namespace. This all works perfectly fine. The problem I'm encountering is specific to mx:button controls used within modules. For whatever reason, their labels are being truncated so, for example, Sign In is showing up as Sign ... After quite a bit of fooling around I have been able to establish the following: 1. This problem only seems to occur within modules. If a button control is used in the main mxml, the label does not get truncated. 2. The button control whose label is being truncated does not have a width specified (setting its width to 100% or a specific pixel width doesn't fix the issue) 3. The button control is using the default padding (messing with the padding by setting left and right to 5 or any other value doesn't help matters either). 4. We are not using any embedded fonts so I've ruled that out as a possibility as well. 5. mx:CheckBox and mx:LinkButton are equally impacted by this problem although mx:CheckBox also seems to not want to show its checkbox, it just shows the truncated label. A potential side affect of this is that attaching a dataprovider to mx:ComboBox causes the combobox control to throw a drawing error but I'm not entirely certain that it's related to the above problem. One interesting thing I did find while perusing the net for an answer was a mention of fontContext and its relationship to IFlexModuleFactory. There's no specification for fontContext within our implementation of moduleloader so I'm not entirely certain if this could be the issue. In any case, if anyone has any ideas, it would be hugely appreciated. On the other hand, if you know exactly what ails me and can provide me with an answer, I might just wet myself with excitement. It's late. I'm tired. I NEED my Flex app to play nice. Thanks in advance, --Anne Edit: To clarify what I'm looking for with this question, I really just need to know the following: 1. Could this issue be caused by a namespace conflict? 2. What else can potentially override the default behavior of labels if no CSS has been implemented? 3. Has anyone encountered a problem with inheritance being lost while using a custom implementation of moduleloader? 4. Has anyone encountered this problem or a similar problem with or without using moduleloader? I'm not sharing any code with this question simply because I'd have to share the entire application and, unfortunately, I can't do that. Again, I'm not looking for the end all, be all solution, just some suggestions of things to look out for if anyone has any ideas.
RE: [flexcoders] Getting at variables inside a function that accepts a function
I assume just using a,b,c,d didn't work? 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: Friday, February 06, 2009 8:55 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Getting at variables inside a function that accepts a function How would I go about getting at variables of a function when I send in an anonymous function so... public function acceptingFunction (func1:Function=null, func2:Function=null):void{ var a:Number; var b:String; if(func1 func2){ func1; anotherAcceptFunction(func2); } } public function anotherAcceptFunction(func:Function=null){ var c:Number; var d:String; if(func){ func } } acceptFunction(function():void{get at vars a,b,c,d from here}); I really don't want to extend the orig. function if I can help it, in this case extend the acceptingFunction, as its from some other library.
Re: [flexcoders] Re: File download from server
I had the same problem with my app. Once we shifted to flash player 10 my downloads would keep giving the error. I¹d generate a file on the user click and then automatically start the download. From what I learnt it was a security thing added in, to start the download event it requires user interaction. I fixed it by added a message after the file gets created, once the user selects ok, the download starts. Its not the prettiest solution, but it works. -Paul On 1/26/09 6:47 AM, Mika Kiljunen mkintens...@gmail.com wrote: Yep I have the same problem and get the same error. But funny enough, my app works perfectly with Flash Player 9, but fails with Flash Player 10 throwing Error: Error #2176: Certain actions, such as those that display a pop-up window, may only be invoked upon user interaction, for example by a mouse click or button press. -Mika On Wed, Jan 21, 2009 at 6:51 PM, valdhor valdhorli...@embarqmail.com wrote: Once you create the zip file you need to return the correct headers to the browser so that the browser will pop up the dialog box asking the user what to do. I don't use Java - I use PHP. When the user clicks a button in Flex I create a new URLRequest and then navigateToURL. The PHP script creates the file and when done sends the following headers: Header(Content-type: application/octet-stream); Header(Content-disposition: attachment; filename=zipTest.zip); The script then streams the file to the browser. The headers sent back to the browser cause the browser to pop up the save file window just as if the user clicked a file link on an HTML page. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , oneworld95 oneworl...@... wrote: I've run into an interesting situation with Flex: I've got a Java servlet that will generate a Zip file when the user clicks a button in Flex. But the file download dialog after the server action requires the user to click a button. It throws this error: Error: Error #2176: Certain actions, such as those that display a pop-up window, may only be invoked upon user interaction, for example by a mouse click or button press. So how do you handle these situations? After the server responds successfully, do you display a second button to do the actual Flex file download? - Alex
[flexcoders] Re: File download from server
Same solution: Ended up adding a button dynamically on the successful response from the server that the file was ready. Then the user clicks the just added [Download Zip] button to fetch the file. - Alex C --- In flexcoders@yahoogroups.com, Paul DSa dsapaul2...@... wrote: I had the same problem with my app. Once we shifted to flash player 10 my downloads would keep giving the error. I¹d generate a file on the user click and then automatically start the download. From what I learnt it was a security thing added in, to start the download event it requires user interaction. I fixed it by added a message after the file gets created, once the user selects ok, the download starts. Its not the prettiest solution, but it works. -Paul On 1/26/09 6:47 AM, Mika Kiljunen mkintens...@... wrote: Yep I have the same problem and get the same error. But funny enough, my app works perfectly with Flash Player 9, but fails with Flash Player 10 throwing Error: Error #2176: Certain actions, such as those that display a pop-up window, may only be invoked upon user interaction, for example by a mouse click or button press. -Mika On Wed, Jan 21, 2009 at 6:51 PM, valdhor valdhorli...@... wrote: Once you create the zip file you need to return the correct headers to the browser so that the browser will pop up the dialog box asking the user what to do. I don't use Java - I use PHP. When the user clicks a button in Flex I create a new URLRequest and then navigateToURL. The PHP script creates the file and when done sends the following headers: Header(Content-type: application/octet-stream); Header(Content-disposition: attachment; filename=zipTest.zip); The script then streams the file to the browser. The headers sent back to the browser cause the browser to pop up the save file window just as if the user clicked a file link on an HTML page. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , oneworld95 oneworld95@ wrote: I've run into an interesting situation with Flex: I've got a Java servlet that will generate a Zip file when the user clicks a button in Flex. But the file download dialog after the server action requires the user to click a button. It throws this error: Error: Error #2176: Certain actions, such as those that display a pop-up window, may only be invoked upon user interaction, for example by a mouse click or button press. So how do you handle these situations? After the server responds successfully, do you display a second button to do the actual Flex file download? - Alex
[flexcoders] Re: ACCORDION - How can I switch my cursor to a pointer?
Kind of a hack, but this works on creationComplete: private function onCreationComplete():void { for ( var i:int = 0; i myAccordion.numChildren; i++ ) { Button(myAccordion.getHeaderAt(i)).buttonMode = true; Button(myAccordion.getHeaderAt(i)).useHandCursor = true; } } -TH --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: See the archives for how to use useHandCursor 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 sailorsea21 Sent: Friday, February 06, 2009 10:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ACCORDION - How can I switch my cursor to a pointer? Hi everyone, how can I switch my cursor to a hand pointer when it goes over the accordion header? Thanks. -David.
[flexcoders] Re: Getting at variables inside a function that accepts a function
No as the functions are in separate classes and the var a, b, c, d are private so in my class that calls the remote function I get Undefined property a. What about putting the vars in as params? Then I think there is a way to access the params by order, correct? So something like this to get at a in this example public function acceptingFunction (func1:Function=null, func2:Function=null):void{ var a:Number; var b:String; if(func1 func2){ if(func1(a=43))return true; --- inserting local param anotherAcceptFunction(func2); } } Then do this... acceptFunction(function():void{ whatever code is to get at params by order params[0]?}); --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: I assume just using a,b,c,d didn't work? 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: Friday, February 06, 2009 8:55 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Getting at variables inside a function that accepts a function How would I go about getting at variables of a function when I send in an anonymous function so... public function acceptingFunction (func1:Function=null, func2:Function=null):void{ var a:Number; var b:String; if(func1 func2){ func1; anotherAcceptFunction(func2); } } public function anotherAcceptFunction(func:Function=null){ var c:Number; var d:String; if(func){ func } } acceptFunction(function():void{get at vars a,b,c,d from here}); I really don't want to extend the orig. function if I can help it, in this case extend the acceptingFunction, as its from some other library.
[flexcoders] Re: Look for a tool to test remoteobject(AMF) format functions?
But I have about 100 functions and some of them need pass different objects. WebOrb have test tool but only for weborb. I need a common tool. Thanks Mark
[flexcoders] How to implement right click drill down for either PieChart or ColumnChart
Hi, When a user **right-click on a wedge in a PieChart or a column in a ColumnChart control, I need to drill down into the data for that wedge or column and display new charts based on the selected menu item on the right-click menu. This should work similar to a normal left-click drill down available in Flex Chart using HitData. I have two problems: Problem#1: I know how to create right-click menu using ContextMenu and ContextMenuItem. However, I do not know how to make the right-click menu to show up **if and only if** a user clicks on a wedge of a PieChart or a column of a ColumnChart, not anywhere else. Problem#2: I cannot use the rightClick event available in ColumnChart API because the event is only available in AIR runtime. Also, rightClick event is not associated with ChartItemEvent as itemClick event does and therefore, no hitData is available for me to figure what data was underneath the mouse when the right-click event was triggered. Any help or suggestion is greatly appreciated. Thank you Tung Chau
RE: [flexcoders] Tables in Rich Text Editor
FTE is a set of native classes (flash.text.engine.*) inside Flash Player. It is already in FP10 and will get some improvements in future releases. TLF is a set of AS classes (flashx.textLayout.*) currently available as a set of 4 SWCs in the Gumbo SDK (libs/textLayout_core.swc, libs/textLayout_conversion.swc, libs/textLayout_edit.swc, and libs/textLayout_textField.swc). The source code is not currently provided, but the APIs are documented. Decisions about the availability of TLF source code involves a variety of factors. That issue is above my pay grade and I'll let Matt deal with it. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Josh McDonald Sent: Thursday, February 05, 2009 9:55 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Tables in Rich Text Editor I'd definitely be interested in extending TLF when it's released. Is it going to live in Player, or in the Flex framework? If the latter, why would it not be open sourced? Is it going to be part of Builder pro? Am I dreaming hoping for answers to those questions? ;-) -Josh On Fri, Feb 6, 2009 at 3:48 PM, Gordon Smith gosm...@adobe.commailto:gosm...@adobe.com wrote: The Halo RichTextEditor component will never support tables; it is based on the Player's TextField, and the Player team has no plans to improve TextField. Instead, the Player team has provided, in Flash Player 10, an entirely new text engine known as FTE (Flash Text Engine) on top of which a Text Layout Framework (TLF) library is being developed. Gumbo components -- including the new FxTextArea -- use TLF to do their text rendering. And we're working on making it possible for Halo components to also get some TLF capabilities. The first version of TLF, which will ship with Gumbo, will support cool stuff like bidirectional text (for right-to-left languages like Arabic and Hebrew mixed together with left-to-right languages), virtualized scrolling (so that you can scroll through large amounts of text without requiring too much memory), multiple columns, vertical Asian text, embedded graphics, superscripts/subscripts, ligatures, a better markup language, and a text object model, but... it will unfortunately not support lists or tables. : ( Lists and tables are scheduled for a future release of TLF, after Flex 4. The good news is that new versions of the TLF library will be able to be released more quickly and easily than new versions of the Player, so you shouldn't have to wait too long for improvements. Discussions are also underway about open-sourcing TLF, or at least making its source available, in which case you could try implementing tables yourself if you are very ambitious. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On Behalf Of Igor Costa Sent: Saturday, January 31, 2009 7:29 AM To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] Tables in Rich Text Editor Jeroen Open a feature request at Flex Bug Base. So far doesn't have any. Regards Igor Costa www.igorcosta.orghttp://www.igorcosta.org 2008/12/18 Jeroen De Vos jeroen.de...@haven.antwerpen.bemailto:jeroen.de...@haven.antwerpen.be Hi, Perhaps one of the most asked questions on the list: when will the Rich Text Editor support tables? I had high hopes with Flash Player 10 and the Text Layout Framework, but alas, no tables. Anyone has any luck extending the RTE to support tables? Thanks, Jeroen. Jeroen De Vos C/ICT - Amaris Deze e-mail en alle gekoppelde bestanden zijn officiele documenten van het Gemeentelijk Havenbedrijf Antwerpen en kunnen vertrouwelijke of persoonlijke informatie bevatten. Gelieve de afzender onmiddellijk via e-mail of telefonisch te verwittigen als u deze e-mail per vergissing heeft ontvangen en verwijder vervolgens de e-mail zonder deze te lezen, te reproduceren, te verspreiden of te ontsluiten naar derden. Het Gemeentelijk Havenbedrijf Antwerpen is op geen enkele manier verantwoordelijk voor fouten of onnauwkeurigheden in de inhoud van deze e-mail. Het Gemeentelijk Havenbedrijf Antwerpen kan niet aansprakelijk gesteld worden voor directe of indirecte schade, verlies of ongemak veroorzaakt als gevolg van een onnauwkeurigheid of fout in deze e-mail. English Translation: This e-mail and all attached files are official documents of Antwerp Port Authority and may contain confidential or personal information. If you have received this e-mail in error, you are asked to inform the sender by e-mail or telephone immediately, and to remove it from your system without reading or reproducing it or passing it on to other parties. Antwerp Port Authority is in no way responsible for any errors or inaccuracies in the contents of this e-mail, nor can it be held
RE: [flexcoders] Re: Getting at variables inside a function that accepts a function
I thought you said they were anonymous functions. Post a test case. I'm not sure what you want to do is possible. 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: Friday, February 06, 2009 12:04 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Getting at variables inside a function that accepts a function No as the functions are in separate classes and the var a, b, c, d are private so in my class that calls the remote function I get Undefined property a. What about putting the vars in as params? Then I think there is a way to access the params by order, correct? So something like this to get at a in this example public function acceptingFunction (func1:Function=null, func2:Function=null):void{ var a:Number; var b:String; if(func1 func2){ if(func1(a=43))return true; --- inserting local param anotherAcceptFunction(func2); } } Then do this... acceptFunction(function():void{ whatever code is to get at params by order params[0]?}); --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aha...@... wrote: I assume just using a,b,c,d didn't work? Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of flexaustin Sent: Friday, February 06, 2009 8:55 AM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Getting at variables inside a function that accepts a function How would I go about getting at variables of a function when I send in an anonymous function so... public function acceptingFunction (func1:Function=null, func2:Function=null):void{ var a:Number; var b:String; if(func1 func2){ func1; anotherAcceptFunction(func2); } } public function anotherAcceptFunction(func:Function=null){ var c:Number; var d:String; if(func){ func } } acceptFunction(function():void{get at vars a,b,c,d from here}); I really don't want to extend the orig. function if I can help it, in this case extend the acceptingFunction, as its from some other library.
RE: [flexcoders] Re: ColorPicker - without the picker!
The source code is out there. SwatchPanel.as 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 tchredeemed Sent: Friday, February 06, 2009 11:15 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: ColorPicker - without the picker! I'd rather just know how to implement that SwatchPanel component if that is possible... :)
Re: [flexcoders] Re: Look for a tool to test remoteobject(AMF) format functions?
On 6-Feb-09, at 1:08 PM, markflex2007 wrote: But I have about 100 functions and some of them need pass different objects. WebOrb have test tool but only for weborb. I need a common tool. Thanks Mark Pretty sure there is no such tool (as I am sure it would have been mentioned on this list). I know the amfphp browser source is (or was available) - so I am sure some code could be scavenged from there to make a tool. I know that is more work, but if this is a situation you see yourself in often... might not be a bad idea. But then again, I am sure the gateways themselves differ between remoting solutions, so a one shoe fits all might not be possible. d
Re: [flexcoders] Menu icons not displayedMore info
Replace the Main.mxml file with http://www.nabble.com/file/p21879941/Main.mxml this new Main.mxml . Note the addition of the embedded resource definitions at the top. These are duplicated from where they are originally declared. It seems ridiculous to have to duplicate every resource definition at the Application level, as well as where they are really needed to compile. Now I need to understand why this works. Is there a scoping bug in Flex with respect to menu icons? As demonstrated, the embedded resources work perfectly for images... -- View this message in context: http://www.nabble.com/Menu-icons-not-displayed-tp15214090p21879941.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] Menu icons not displayedMore info
D Unit wrote: So after playing around with this mxml, I've found that if I place the mxml for the menubar within the main application mxml tag, then everything works. However, if I put the menubar mxml in a separate file and include it within the application mxml, then the sub-menu icons are not displayed. Is this a Flex bug, or am I missing something? I've encountered a similar problem. I've uploaded some sample code : http://www.nabble.com/file/p21876377/TestMenuIcons.zip TestMenuIcons.zip Basically, I'm embedding some icon resources to use them in popup menus. I have an ActionScript file that embeds the resources and assigns them to a classname - the usual technique. I then wish to populate a menu using some XML as a dataprovider, with the icons being declared appropriately. In the Main.mxml, you can see three approaches to popping up a menu. They all use similarly-formatted XML, yet they differ in the manner in which they access the embedded resources. Only the third approach works, when it would seem reasonable that they all should work. -- View this message in context: http://www.nabble.com/Menu-icons-not-displayed-tp15214090p21876377.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] The First Flex Open Iteration Meeting
I got the Fx prefix discussion going on the forums. The discussion begins! http://www.adobeforums.com/webx?128@@.59b7cdf0 Matt On 2/6/09 12:07 AM, Gregor Kiddie gkid...@inpses.co.uk wrote: That's a sensible move to be honest. Given the amount of spam that flew through in the last meeting, nothing else would get talked about except that issue! Rule 1 of meetings, make sure the meeting can have an outcome. By banning that, you can now! Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Nate Beck Sent: 05 February 2009 23:39 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] The First Flex Open Iteration Meeting Fx prefix is an ongoing discussion that will NOT be discussed in this meeting Awesome.
[flexcoders] Re: Silent Print from Flex on Kiosk
If anyone else comes across this need, here's how I solved it for my particular setup. My Flex app is the client on the Kiosk that connects via RPC back to a PHP backend. So when I need to print, I call a service on my backend which generates a PDF and returns a URL. Flex then calls a Java Print Server that I wrote that sits and listens for incoming URLs to print. When it gets one, it prints to the default printer. Javascript was just too inconsistent for this. Thanks all. --- In flexcoders@yahoogroups.com, Gregor Kiddie gkid...@... wrote: I agree, more than anything Adobe could do, being over zealous on the security front could inhibit Flash as a platform taking off (yes I'm still annoyed about not getting to load remote modules in AIR). It wasn't exactly a winner for Vista! If they can work out a comfortable security model that... 1.Stops drive by swfs owning your machine and, 2.allows trusted applications to do more with less security, they will be onto a winner. The Flash Player is maturing into number 1 nicely, but AIR has still a ways to go to meet number 2. Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@... From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jeremi Bergman Sent: 30 January 2009 20:51 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Silent Print from Flex on Kiosk Thanks for the info. It would be nice to be able to add an app as a Trusted application, so that the application would have the option to print silently.
[flexcoders] Odd behaviour with scaleX/scaleY when only minWidth/minHeight is set
Consider this VBox: mx:VBox id=mybox borderStyle=solid minWidth=400 minHeight=300/ There's no explicit width or height, only the minimums are set. When the app runs, we get a 400x300 box. All good. However, if we try to scale this box: mybox.scaleX = mybox.scaleY = 0.5; I would think that we would get a box that's 200x150. Instead, I got a box that's 100x75. The scaling had been set to 0.25. I've tried this for different values and it appears that the value is being squared, eg. 0.5*0.5 = 0.25. If I try 0.6, I get 0.36, etc. If I set explicit dimensions of 400x300, then the scaling works fine. Am I missing something? I assume that this is not intended behaviour? Anybody else experience this?
RE: [flexcoders] Flex Truncating Button Labels
Alex, I think you may be on to something. I started messing around with the resolution on my laptop and noticed that the labels and such look perfectly fine if I'm running 1024x768 or even 1280x768. However, the labels started to fall apart again as soon as I reset my resolution back to 1600x900. Little strange but makes me wonder if the metrics are getting out of whack with higher resolutions. --Anne On Fri, 6 Feb 2009 11:15:29 -0800, Alex Harui aha...@adobe.com wrote: fontContext should only matter for embeddedfonts. Compare the working example with the failed example closely. You only have to be off by a pixel to cause truncation. If the layout rules of the containers around the module cause it to be a different size that could be a problem. Also note that any existing classes and styles in the mainapp supercede classes and styles in a module and could cause the widget in the module to think it has different metrics than you intended. 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 goddess12206942 Sent: Thursday, February 05, 2009 9:53 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex Truncating Button Labels I posted this on StackOverflow.com but thought I'd see if you guys might have any ideas as well: First and foremost, I apologize for any vagueness in this question. At this point, I'm simply trying to get some new ideas of things to try in order to diagnose this bug. Anyway, the problem I'm having is with an application that's using a custom moduleloader. That moduleloader has been compiled into an swc and the moduleloader is being instantiated via its namespace. This all works perfectly fine. The problem I'm encountering is specific to mx:button controls used within modules. For whatever reason, their labels are being truncated so, for example, Sign In is showing up as Sign ... After quite a bit of fooling around I have been able to establish the following: 1. This problem only seems to occur within modules. If a button control is used in the main mxml, the label does not get truncated. 2. The button control whose label is being truncated does not have a width specified (setting its width to 100% or a specific pixel width doesn't fix the issue) 3. The button control is using the default padding (messing with the padding by setting left and right to 5 or any other value doesn't help matters either). 4. We are not using any embedded fonts so I've ruled that out as a possibility as well. 5. mx:CheckBox and mx:LinkButton are equally impacted by this problem although mx:CheckBox also seems to not want to show its checkbox, it just shows the truncated label. A potential side affect of this is that attaching a dataprovider to mx:ComboBox causes the combobox control to throw a drawing error but I'm not entirely certain that it's related to the above problem. One interesting thing I did find while perusing the net for an answer was a mention of fontContext and its relationship to IFlexModuleFactory. There's no specification for fontContext within our implementation of moduleloader so I'm not entirely certain if this could be the issue. In any case, if anyone has any ideas, it would be hugely appreciated. On the other hand, if you know exactly what ails me and can provide me with an answer, I might just wet myself with excitement. It's late. I'm tired. I NEED my Flex app to play nice. Thanks in advance, --Anne Edit: To clarify what I'm looking for with this question, I really just need to know the following: 1. Could this issue be caused by a namespace conflict? 2. What else can potentially override the default behavior of labels if no CSS has been implemented? 3. Has anyone encountered a problem with inheritance being lost while using a custom implementation of moduleloader? 4. Has anyone encountered this problem or a similar problem with or without using moduleloader? I'm not sharing any code with this question simply because I'd have to share the entire application and, unfortunately, I can't do that. Again, I'm not looking for the end all, be all solution, just some suggestions of things to look out for if anyone has any ideas.
[flexcoders] Rotating Image with Matrix Transform
hi, Im working on rotating an image simulating the Free Transform tool in Flash. I got it to rotate to 180 but then the image will not rotate further. so basically it gets upside down and then fights me and doesnt move. I have the source viewable on the example. the method is in the WidgetEditor.as class -- rotate image and calls the Rotate.as class to rotate it. http://www.coreysmaller.com/test/ExchangeASClasses.html any help would be muy appreciated! thanks Corey
Re: [flexcoders] Re: Getting at variables inside a function that accepts a function
It's not possible, any closure only has access to the variables in scope when it is defined. function foo(a,b,c,f) { var bar = function() {//has access to everything in foo} function baz() {//Same as above} } var bash = function() { //Does not have access to what's in foo() at any time} foo(1,2,3,bash) //Doesn't suddenly give access to foo's locals. Think of it this way - if what you wanted were possible, then what would happen if I just invoked bash() instead of passing it to foo()? There are tricks to achieve something similar to what you want, but they require changing foo(), in which case you only need to pass arguments to the f() function. -Josh On Sat, Feb 7, 2009 at 6:45 AM, Alex Harui aha...@adobe.com wrote: I thought you said they were anonymous functions. Post a test case. I'm not sure what you want to do is possible. 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:* Friday, February 06, 2009 12:04 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: Getting at variables inside a function that accepts a function No as the functions are in separate classes and the var a, b, c, d are private so in my class that calls the remote function I get Undefined property a. What about putting the vars in as params? Then I think there is a way to access the params by order, correct? So something like this to get at a in this example public function acceptingFunction (func1:Function=null, func2:Function=null):void{ var a:Number; var b:String; if(func1 func2){ if(func1(a=43))return true; --- inserting local param anotherAcceptFunction(func2); } } Then do this... acceptFunction(function():void{ whatever code is to get at params by order params[0]?}); --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alex Harui aha...@... wrote: I assume just using a,b,c,d didn't work? Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of flexaustin Sent: Friday, February 06, 2009 8:55 AM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Getting at variables inside a function that accepts a function How would I go about getting at variables of a function when I send in an anonymous function so... public function acceptingFunction (func1:Function=null, func2:Function=null):void{ var a:Number; var b:String; if(func1 func2){ func1; anotherAcceptFunction(func2); } } public function anotherAcceptFunction(func:Function=null){ var c:Number; var d:String; if(func){ func } } acceptFunction(function():void{get at vars a,b,c,d from here}); I really don't want to extend the orig. function if I can help it, in this case extend the acceptingFunction, as its from some other library. -- 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/
[flexcoders] Re: array not being refreshed
even when i use an array collection there is no change. even the displayshelf component has a mechanism of turn an array into arraycollection. i don't know if its possible to have new images loaded in the component dynamically. i have only tried using this component with static images but now my images are a database. any one with an idea?