Re: [flexcoders] Odd text rendering issue
Something like the issues described here: http://code.google.com/p/chromium/issues/detail?id=140415 ? On 23 Aug, 2012, at 8:00 AM, Tom McNeer wrote: I'm looking into a very weird problem on a pre-existing application, which occurs only when using Chrome on Windows. The only specific instance I have access to is Flash Player 11.3.31.227, Chrome 21.0.1180.79, Windows Vista SP 2; but the same problem has been reported on other OS versions. When the SWF loads, all text is rendered correctly. But immediately thereafter, much of the text re-renders illegibly. I'll try to provide more details later. But I'd just be interested to know if anyone has ever seen a text rendering issue like this, which was platform/browser-specific. -- Thanks, Tom Tom McNeer MediumCool http://www.mediumcool.com 1735 Johnson Road NE Atlanta, GA 30306 404.589.0560
Re: [flexcoders] Charles Proxy, Flex, and ColdFusion 9
Hi Bill, I didn't see a reply on the list but the developer of Charles Proxy is pretty responsive. Maybe record a session and send it to him? Michael *From:* BillF bill.frank...@bayer.com *Date:* April 24, 2012 12:47 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Charles Proxy, Flex, and ColdFusion 9 Just wondering if anyone has had any luck with getting the SQLQuery information in AMF response header with Charles Proxy after upgrading to ColdFusion 9. It works correctly on ColdFusion 8, with the exact same debugging settings, but although the header comes shows up, it does not have any of the child objects in it. I had thought that the JSON Serialization issue, that was fixed in ColdFusion 9.0.1 Hot Fix 2, would fix it...but alas, it did not.
[flexcoders] image is caching
Working on a home owners association site. I am uploading a pet picture, it is getting to the server, being processed, I am changing the name to reference the residence and the pet. In the tab for pets I have a spark image and I use the source property and relative paths to the image. Once an image is uploaded, if someone would want to change it in the same session the picture uploads and changes on the server but the image does not change particularly if you use IE. After a successful upload I have tried setting the source to null, to a default blank image until the user picks a pet in a datagrid. If I clear the browser cache in IE it will change but that is about it. Firefox works well - change the image and it will show the new image. Most of the residents will probably have IE, I am hosted on a ColdFusion server and have added cfheader tags on my local box but that makes no difference either. Any suggestions are welcome. Thanks, Mike
[flexcoders] adding and managing children dynamically - accordion
I was trying to build a component that would dynamically add NavigatorContent as children to an Accordion based on how many items were in an ArrayCollection. That worked I got the expected number of accordion tabs labeled correctly. I now want to add a DataGrid to each NavigatorContent. When I set a break point I do not see a reference to the NavigatorContent by the id that I set when they were added to the Accordion or anywhere in the component. How can I work with the DataGrid and set its DataProvider, etc? I will want to work with data in the DataGrid - crud I was trying to mimic what I had done using JQueryMobile with header tag and queries return to the cfm page. They have a collapsible content block that worked well on the small screen, but I need to be able to do more when a larger screen is available. Any suggestion?
[flexcoders] maya to flash 10
Hi, Is there a tutorial that shows a good workflow for exporting a maya model and importing it as a 3d movie clip in flash 10? thanks, Michael
[flexcoders] Re: maya to flash 10
This is for papervison3d. As far as I can tell I should not need that. Flash 10 has 3d built in. Is there a process that mimics the papervision3d process but for flash 10? --- In flexcoders@yahoogroups.com, cuttenv cutt...@... wrote: Blender to flash! http://gotoandlearn.com/play?id=106 --- In flexcoders@yahoogroups.com, MIchael madmik3@ wrote: Hi, Is there a tutorial that shows a good workflow for exporting a maya model and importing it as a 3d movie clip in flash 10? thanks, Michael
[flexcoders] Re: maya to flash 10
I don't want to use papervision. I want to use the 3d engine built into flash 10. --- In flexcoders@yahoogroups.com, Paul Andrews p...@... wrote: On 06/04/2010 21:23, MIchael wrote: Hi, Is there a tutorial that shows a good workflow for exporting a maya model and importing it as a 3d movie clip in flash 10? thanks, Michael I'm not sure your question has any relevance to Flex at all. You'd be better off asking on a papervision forum - you'll probably find a collada workflow for Maya that you can use. Paul
[flexcoders] Re: maya to flash 10
My understanding is that is exactly what papervision3d does as well. How does papervision3d differ? --- In flexcoders@yahoogroups.com, Paul Andrews p...@... wrote: On 06/04/2010 22:51, MIchael wrote: I don't want to use papervision. I want to use the 3d engine built into flash 10. You misunderstand. Flash 10 doesn't have a built in 3D engine. It supports 3D manipulation of planes - that's all. Paul --- In flexcoders@yahoogroups.com, Paul Andrewspaul@ wrote: On 06/04/2010 21:23, MIchael wrote: Hi, Is there a tutorial that shows a good workflow for exporting a maya model and importing it as a 3d movie clip in flash 10? thanks, Michael I'm not sure your question has any relevance to Flex at all. You'd be better off asking on a papervision forum - you'll probably find a collada workflow for Maya that you can use. Paul
[flexcoders] Re: FlexUnit + Ant + Continuos Integration
You might try looking at: http://www.insideria.com/2008/04/unit-testing-with-flexunit-1.html for a good getting started article with FlexUnit. Regards, Michael Portuesi --- In flexcoders@yahoogroups.com, Nahla Laribi nahloulaha...@... wrote: Hello :) Did you find good site which explains step by step how to use Flex Unit please ?? Thanks To: flexcoders@yahoogroups.com From: mportu...@... Date: Sun, 7 Mar 2010 19:44:12 + Subject: [flexcoders] Re: FlexUnit + Ant + Continuos Integration Hey there, I've successfully integrated FlexUnit tests into my continuous integration environment (in my case, CruiseControl.rb). I did things a little differently than most people: 1) I don't use Ant to drive the tests. We have our own build scripts in Ruby, and don't make much use of Ant. 2) The test runner in my case is an AIR application. This sidesteps several problems inherent with FlexUnit, one of them (as you noted) the need to open a web browser. I wrote this all up on my blog: http://digitaldumptruck.jotabout.com/?p=26 Hope you find some of this useful. Regards, Michael Portuesi --- In flexcoders@yahoogroups.com, M. Fernanda Gioiosa fgioiosa@ wrote: Hello, I'm working in a project with FlexUnit, Ant and Bamboo as continuos integration tool, have you ever try to do this? How is the ant tasks that you need to Run? How the FlexUnitTestRunner works in the servers (because always open the browser for running the tests)? Do you have any example of this working? I would appreciate any information about this, there isn't much information about this in the websites! Thanks a lot, Fer this is the part that runs the test in the ant file. !-- Run unit test -- target name=unit-tests depends=init description=Compiles and runs the tests mxmlc file=${flex.unit.runner} output=${flex.unit.swf} actionscript-file-encoding=${ENCODING} keep-generated-actionscript=false incremental=false load-config filename=${FLEX_HOME}/frameworks/flex-config.xml / source-path path-element=${FLEX_HOME}/frameworks / compiler.source-path path-element=${src.dir} / compiler.include-libraries dir=${lib.dir} append=true include name=**/*.swc / /compiler.include-libraries /mxmlc echoRunning Test Runner SWF/echo flexunit swf=${flex.unit.swf} toDir=${report.dir} haltonfailure=false verbose=true localTrusted=true timeout=9/ echoRan Test Runner SWF/echo echoGenerate Readable Tests/echo junitreport todir=${report.dir} fileset dir=${report.dir} include name=Test-*.xml/ /fileset report format=frames todir=${report.dir}/html/ /junitreport echoGenerated Readable Tests/echo /target _ Hotmail arrive sur votre téléphone ! Compatible Iphone, Windows Phone, Blackberry, http://www.messengersurvotremobile.com/?d=Hotmail
[flexcoders] Re: FlexUnit + Ant + Continuos Integration
Hey there, I've successfully integrated FlexUnit tests into my continuous integration environment (in my case, CruiseControl.rb). I did things a little differently than most people: 1) I don't use Ant to drive the tests. We have our own build scripts in Ruby, and don't make much use of Ant. 2) The test runner in my case is an AIR application. This sidesteps several problems inherent with FlexUnit, one of them (as you noted) the need to open a web browser. I wrote this all up on my blog: http://digitaldumptruck.jotabout.com/?p=26 Hope you find some of this useful. Regards, Michael Portuesi --- In flexcoders@yahoogroups.com, M. Fernanda Gioiosa fgioi...@... wrote: Hello, I'm working in a project with FlexUnit, Ant and Bamboo as continuos integration tool, have you ever try to do this? How is the ant tasks that you need to Run? How the FlexUnitTestRunner works in the servers (because always open the browser for running the tests)? Do you have any example of this working? I would appreciate any information about this, there isn't much information about this in the websites! Thanks a lot, Fer this is the part that runs the test in the ant file. !-- Run unit test -- target name=unit-tests depends=init description=Compiles and runs the tests mxmlc file=${flex.unit.runner} output=${flex.unit.swf} actionscript-file-encoding=${ENCODING} keep-generated-actionscript=false incremental=false load-config filename=${FLEX_HOME}/frameworks/flex-config.xml / source-path path-element=${FLEX_HOME}/frameworks / compiler.source-path path-element=${src.dir} / compiler.include-libraries dir=${lib.dir} append=true include name=**/*.swc / /compiler.include-libraries /mxmlc echoRunning Test Runner SWF/echo flexunit swf=${flex.unit.swf} toDir=${report.dir} haltonfailure=false verbose=true localTrusted=true timeout=9/ echoRan Test Runner SWF/echo echoGenerate Readable Tests/echo junitreport todir=${report.dir} fileset dir=${report.dir} include name=Test-*.xml/ /fileset report format=frames todir=${report.dir}/html/ /junitreport echoGenerated Readable Tests/echo /target
[flexcoders] Re: Capturing and Saving an image in Flex (BitmapData)
In order to save the image file to disk, you need to use the AIR File API, which is available only to AIR applications. You can capture the image, encode it as PNG or JPEG using mx.graphics.codec.JPEGEncoder or mx.graphics.codec.PNGEncoder, then upload the resulting byte to a server. Then your server application can save the file to disk on the server. I found these two links helpful: http://stackoverflow.com/questions/780018/in-flex-how-do-i-create-populate-and-display-a-bitmap http://blog.everythingflex.com/2008/02/25/create-images-with-air-and-jpegencoder/ Hope this helps, Michael Portuesi --- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote: Can someone point me to an example of using the BitmapData.draw() to capture an image of a container on the screen and save it to the harddisk of the server. I see some that show me how to capture and process the image, but the saving it to the server is a mystery. I want my kids to be able to save their drawings/colorings to the web site art gallery. Thanks!
[flexcoders] Re: Changing the background of an AS3 project in Flex
In your top-level application MXML file, try adding this attribute to your mx:Application tag: mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; backgroundColor=#ff --- In flexcoders@yahoogroups.com, Calbeans jwrigh...@... wrote: Hi All, I'm working on an AS3 project using Flex and I'm trying to figure out how to change the background from that default light off blueish color to something different. I looked at the index.template.html file and figured that I can do it in there, but it appears that I can't. Anyone have an idea on how to do this?? Thanks in advance.
[flexcoders] Top 10 things new Flex developers should know
I hope this article on my blog is useful for those who are newcomers to Flex. http://digitaldumptruck.jotabout.com/?p=39 Michael Portuesi
[flexcoders] Re:Flex Builder 3 for Linux updated
Life is short. Microsoft is aggressive, and HTML5 looms. Without cross-platform support for developers and users Flex and the Flash Platform can't compete. Flex had a decent chance to become more than a promising product, but the end of that opportunity is in sight. Without strong Linux support, Flex will be a casualty of the RIA war; the question has become when Flex will cease to be a viable business decision. This loss was preventable. I say this in the past tense, because dithering only begets more dithering. Borland's JBuilder died because of dithering, and Borland died in large part because they did not respond appropriately to Microsoft and Eclipse. Big Bill is likely to win again, using the same tried-and-true script, while playing clean. Mike
[flexcoders] Re: Developing Flash/Flex on Linux
IntelliJ IDEA for Flex, even v9M1 (Maia), doesn't quite work properly :( You can see for yourself: http://www.jetbrains.com/idea/nextversion/ It's been a while, but the issues remain. Maia seems stalled. A free policy for open source projects would speed adoption of any IDE; also a free student policy, but this issue is not related to the choice of O/S. Here is the Flex Builder student policy: https://freeriatools.adobe.com/flex/ Another idea for speeding adoption would be to get FDT placed into the Ubuntu commercial source repositories, like {feisty,gutsy,hardy,intrepid,jaunty,karmic,lucid}-commercial. See https://help.ubuntu.com/community/Repositories/Ubuntu $700 is fairly steep for individuals and small businesses, which is why the competition (Flex Builder) has an intermediate price point. FDT would need to carve out features differently, however. The marketing story for IDEs is always productivity. $700 would be perceived to be good value by enterprises and hard-core Flex developers if productivity gains justified the expense. If your bill rate is third-world ($15/hr) then productivity is not an issue. If your bill rate is enterprise level ($125-200/hr) then productivity is very important. The developers of successful open source products are very good, and they are often/usually employed by large companies. A product offering that addressed open source projects would allow these star developers to become familiar with FDT, and if they liked the IDE they would spread adoption throughout their (wide) circle of influence. I hope that a 64 bit version of FDT for Linux would be the goal. A visual design surface is not important, just the basics of an IDE: edit, compile, debug, unit test. Strong refactoring features could be restricted to the higher price point of a tiered product offering. Mike
Re: [flexcoders] Re: Training Courses
I'm an Adobe Certified Instructor and I can tell you that the instructor makes all of the difference. I'm not sure where you took your class but my former employer Fig Leaf Software is one of the best providers of onsite and hands-on training. I think self paced training is good, but it lacks the interaction with an instructor. If you can afford training I suggest something like lynda.com to augment the class. You should read and watch videos so you can challenge your instructor... Just my two cents. -Jason On Oct 9, 2009, at 1:31 PM, valdhor wrote: Just as an aside, I don't think much of the Adobe Certified Training companies. Our company purchased training for ten people here and I sat in on it (I had about six months of self taught Flex at the time). Basically the course consisted of running through the Flex 3 Training from the Source book. You could have gotten just as much at a lot less cost by reading that book. As far as the trainer; I knew way more than he did. The online video's and reference are a much better learning material than any other I have seen. --- In flexcoders@yahoogroups.com, Dan Pride danielpr...@... wrote: The Lynda.com courses are basic but quite good. There is also a wealth of free video training on adobe such as http://www.adobe.com/devnet/flex/videotraining/ If your department needs some on line help getting started there are a number of people up here who would be interested (including me :)) Dan Pride http://www.danielpride.com --- On Fri, 10/9/09, Wesley Acheson wesley.ache...@... wrote: From: Wesley Acheson wesley.ache...@... Subject: [flexcoders] Training Courses To: flexcoders flexcoders@yahoogroups.com Date: Friday, October 9, 2009, 1:43 PM Hi, My boss was wondering if there are any recommended training courses for flex. We are based in Gibraltar but I don't think traveling is an issue. Personally I'd like to see some kind of certification out of it. Any recommended courses? I know its vague because I haven't specified a level however the flex abilities of my department are very mixed. Regards, Wes __ Jason Michael Perry ja...@jasonmperry.com www.jasonmperry.com tel: 504-383-FLEX
[flexcoders] Re:Need good links for learning LCDS
This book has a lot of useful information for people who want to learn LCDS. Of course, I may be biased ;-) http://slinnbooks.com Mike
[flexcoders] Re: AIR from a Flex ActionScript Project?
John, Though your code is in ActionScript, you should just be able to use the MXML WindowedApplication tag just at the very top-level, and initialize your main ActionScript UI within an mx:Script tag. Something like: mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; applicationComplete=init(); mx:Script ![CDATA[ private function init():void { // Fire up all your AS stuff here } ]] /mx:Script /mx:WindowedApplication Finally, I left out a step (4) in my previous message. Steps 1-3 are sufficient to run your AIR app in the debugger, but to distribute your AIR application you typically need to generate and sign a .air file. Flex Builder can do that; from the raw SDK, you should check out the adt tool. Hope this helps, Michael Portuesi --- In flexcoders@yahoogroups.com, John McCormack j...@... wrote: Thanks Michael, I will give this a try. Currently, within FB3 I can create an AIR project and it does these things for me but the output is structured similarly to a Flex project but my projects are ActionScript projects built within FB3 and so the conversion isn't quite the same. Perhaps I should be looking to convert from AcitionScript to Flex as an intermediate step: by minimizing the mxml and calling my main Document Class from the main mxml class and then modify that for AIR. It's annoying because from within Flash Prof. I can publish as AIR, but that's a conversion step backwards. John Michael wrote: John, You can convert your Flex project to an AIR application pretty easily. There's three basic steps involved: 1) Your application should be declared as inheriting from WindowedApplication, rather than Application in your main myapp.mxml file. mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=* !-- declaration of your app top-level fixtures goes here -- /mx:WindowedApplication 2) Create an AIR app descriptor file. Here's an example. Name it myapp-app.xml and place in the same folder as your main myapp.mxml file. ?xml version=1.0 encoding=UTF-8? application xmlns=http://ns.adobe.com/air/application/1.5.1; idcom.myapp.tester/id version0.1/version filenametester/filename nameFlexUnit Test Runner/name initialWindow contenttester.swf/content visibletrue/visible systemChromestandard/systemChrome transparentfalse/transparent width1024/width height768/height /initialWindow /application There is detailed documentation on the AIR app descriptor format on the Adobe site: http://help.adobe.com/en_US/AIR/1.5/devappsflex/WS5b3ccc516d4fbf351e63e3d118666ade46-7ff1.html 3) Use the AIR MXML compiler (amxmlc rather than mxmlc) in your build scripts. If you're using Flex Builder, you can add an AIR Project Builder to your in the Project Properties Builders pane. That should be enough to get you started. Good luck. Michael Portuesi --- In flexcoders@yahoogroups.com, John McCormack john@ wrote: Is there any easy way to publish a Flex ActionScript Project as an AIR file. This project, by its nature, has no mxml tags. John -- 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: AIR from a Flex ActionScript Project?
John, You can convert your Flex project to an AIR application pretty easily. There's three basic steps involved: 1) Your application should be declared as inheriting from WindowedApplication, rather than Application in your main myapp.mxml file. mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=* !-- declaration of your app top-level fixtures goes here -- /mx:WindowedApplication 2) Create an AIR app descriptor file. Here's an example. Name it myapp-app.xml and place in the same folder as your main myapp.mxml file. ?xml version=1.0 encoding=UTF-8? application xmlns=http://ns.adobe.com/air/application/1.5.1; idcom.myapp.tester/id version0.1/version filenametester/filename nameFlexUnit Test Runner/name initialWindow contenttester.swf/content visibletrue/visible systemChromestandard/systemChrome transparentfalse/transparent width1024/width height768/height /initialWindow /application There is detailed documentation on the AIR app descriptor format on the Adobe site: http://help.adobe.com/en_US/AIR/1.5/devappsflex/WS5b3ccc516d4fbf351e63e3d118666ade46-7ff1.html 3) Use the AIR MXML compiler (amxmlc rather than mxmlc) in your build scripts. If you're using Flex Builder, you can add an AIR Project Builder to your in the Project Properties Builders pane. That should be enough to get you started. Good luck. Michael Portuesi --- In flexcoders@yahoogroups.com, John McCormack j...@... wrote: Is there any easy way to publish a Flex ActionScript Project as an AIR file. This project, by its nature, has no mxml tags. John
[flexcoders] Implement Multiple Interfaces in a MXML component
Hi I want to be able to implement multiple interfaces in a MXML Component. But I get this error, 'Attribute implements was already specified for element mx:Canvas.'. Thanks in Advance. Michael
Re: [flexcoders] Implement Multiple Interfaces in a MXML component
Thanks.. I didnt think this question needed sample code. Here is a sample... mx:Canvas xmlns=* xmlns:mx=http://www.adobe.com/2006/mxml; implements=lib.ISurfaceObject implements=lib.ISurfaceObject2 verticalScrollPolicy=off /mx:Canvas On Tue, Sep 8, 2009 at 8:04 PM, Fidel Viegas fidel.vie...@gmail.com wrote: Hi Michael, On Tue, Sep 8, 2009 at 10:48 AM, Michael Ridlandrid...@gmail.comrid00z%40gmail.com wrote: Hi I want to be able to implement multiple interfaces in a MXML Component. But I get this error, 'Attribute implements was already specified for element mx:Canvas.'. Without the sample code, it is really difficult for people help you. Regards, Fidel.
[flexcoders] Dynamically Created Components Added to Custom Components
Hi I am created a dynamically adding a VBox, that contains two images. Into a Custom Component that is derived from UIComponent. The problem is the Vbox that contains the two image is only a really tiny size. I would like the VBox stretch to the size of the two images. This is how I am creating the Vbox var open:Image = new Image(); open.source = 'assets/icons/open.png'; var save:Image = new Image(); save.source = 'assets/icons/save.png'; var box:VBox = new VBox(); box.addChild(open); box.addChild(save); The component is like this public class MyComponent extends UIComponent I assign the VBox to the component like this(this is after the creationComplete event) public function set VBoxOptions(value:UIComponent) : void { if(_vBoxOptions){ removeChild(_vBoxOptions); } _vBoxOptions = value; addChild(_vBoxOptions); invalidateSize(); } In the update display list I do this.. override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { if(_hoverOptions) { _hoverOptions.move(unscaledWidth+2,2); //please note this is not the problem, } } Thanks for help in Advance...
Re: [flexcoders] Implement Multiple Interfaces in a MXML component
Thanks, I should of thought about that. On Tue, Sep 8, 2009 at 7:54 PM, Johannes Nel johannes@gmail.com wrote: only one attribute, but comma deliminated interface paths in that attributes text On Tue, Sep 8, 2009 at 11:48 AM, Michael Ridland rid...@gmail.com wrote: Hi I want to be able to implement multiple interfaces in a MXML Component. But I get this error, 'Attribute implements was already specified for element mx:Canvas.'. Thanks in Advance. Michael -- j:pn \\no comment
[flexcoders] Adobe Air Screenshot
Hi I have looked around the internet for how I can do a screen grab with Adobe Air. I have found this. http://blog.everythingflex.com/2008/04/24/do-a-screen-capture-with-adobe-air/ Has anyone used this method in a commercial app? Is it stable? Does it work? Across all platforms? Can anyone recommend any other methods? Thanks in Advance Michael
[flexcoders] Flex Builder 3 - Conditional Debugging
Hi Is is possible to have conditional breakpoints in Flex Builder 3? Either via the editor or action script. It would be cool if I could go if(ShouldBreak()) Debugger.Break(); Is there anything like this? or hacks? Thanks in Advance.
[flexcoders] Re: What is the best material to learn Flex 3 and AS3?
Adobe also offers another video tutorial series, hosted by Doug Winnie: http://www.adobe.dougwinnie.com/actionscript-11/ This series provides an introduction to ActionScript, and Doug is an excellent teacher. Episode 13 covers all the addlistener stuff. Michael Portuesi --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: Start with the Adobe Flex in a Week video training at http://www.adobe.com/devnet/flex/videotraining/ --- In flexcoders@yahoogroups.com, fred44455 fred44455@ wrote: I got 2 books , one Flex 3 cookbook and it seems to difficult to follow. I purchased Actionscript 3(Lynda.com) video with Joel Lott and that seems hard to follow as well.All that addlistener dispatcher seems pure Hebrew to me. I only did a little bit of html in my life so maybe Flex 3 is too much for me? Any suggestions that you may have that could help me learn Flex 3?
[flexcoders] Re: Send an automatic Password
I recently set up an IPN responder with PayPal so I can email people download instructions who buy my book. I blogged about this last week: http://www.insideria.com/2009/08/certified-adobe-flex-3-with-ai.html It only took a day and a half to get the proof of concept working, but another 7 days to make it industrial strength. BTW, the book is called *Flex Data Services, Eclipse and Hibernate* and it is available now from http://slinnbooks.com Mike -- *Michael Slinn* +1-415-367-3789 Independent full-service software contractor and author Certified Adobe Flex 3 with AIR ACE
[flexcoders] Re: how to search a file in directory using flex
You can use AIR functionality in your Flex application. However, when you incorporate the AIR API into your Flex application, it no longer runs inside a web browser. It is converted into a desktop-based AIR application. Michael Portuesi --- In flexcoders@yahoogroups.com, Adarsh Agrawal agrawal_ada...@... wrote: Thank you so much for your prompt reply.. so can i use air functionality in flex?? --- On Thu, 6/8/09, Tom Chiverton tom.chiver...@... wrote: From: Tom Chiverton tom.chiver...@... Subject: Re: [flexcoders] how to search a file in directory using flex To: flexcoders@yahoogroups.com Date: Thursday, 6 August, 2009, 3:59 PM On Thursday 06 Aug 2009, Adarsh Agrawal wrote: can any one help me regarding how to search a required file name in a directory using flex..and as3...whether it is possible? You can't do this without AIR - Flex (in a web page) can only ask a user to select a file.
[flexcoders] unsubscribe
[flexcoders] error message
Is anyone familiar with this error message. I think I have a problem in my services-config file. Channel definition, mx.messaging.channels.RTMPChannel, cannot be found. I am using the default WEB-INF folder, and have a mapping to it as I have it at c:\InetPub\wwwroot\ I would appreciate any insight. Michael Sumner Nations Best Sports
RE: [flexcoders] Re: error message
}{context.root}/flex2gateway/http; class=flex.messaging.endpoints.HTTPEndpoint/ /channel-definition channel-definition id=java-secure-http class=mx.messaging.channels.SecureHTTPChannel endpoint uri=https://{server.name}:{server.port}{context.root}/flex2gateway/httpsecu re class=flex.messaging.endpoints.SecureHTTPEndpoint/ /channel-definition /channels logging target class=flex.messaging.log.ConsoleTarget level=Error properties prefix[Flex] /prefix includeDatefalse/includeDate includeTimefalse/includeTime includeLevelfalse/includeLevel includeCategoryfalse/includeCategory /properties filters patternEndpoint.*/pattern patternService.*/pattern patternConfiguration/pattern patternMessage.*/pattern /filters /target /logging system manageablefalse/manageable !-- redeploy enabledtrue/enabled watch-interval20/watch-interval watch-file{context.root}/WEB-INF/flex/services-config.xml/watch-file watch-file{context.root}/WEB-INF/flex/proxy-config.xml/watch-file watch-file{context.root}/WEB-INF/flex/remoting-config.xml/watch-file watch-file{context.root}/WEB-INF/flex/messaging-config.xml/watch-file watch-file{context.root}/WEB-INF/flex/data-management-config.xml/watch-fi le touch-file{context.root}/WEB-INF/web.xml/touch-file /redeploy -- /system /services-config Michael Sumner Nations Best Sports 817-788-0034 ext 244 817-788-8542 fax From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of valdhor Sent: Thursday, July 16, 2009 10:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: error message What code generates the error? Can you post your services-config file? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Michael Sumner msum...@... wrote: Is anyone familiar with this error message. I think I have a problem in my services-config file. Channel definition, mx.messaging.channels.RTMPChannel, cannot be found. I am using the default WEB-INF folder, and have a mapping to it as I have it at c:\InetPub\wwwroot\ I would appreciate any insight. Michael Sumner Nations Best Sports
[flexcoders] Re: Programmaticly created Consumer does not find endpoint
No-one replied to my earlier post, is an Adobean available to look at this? The testdrive-datapush sample program uses AMF as the primary channel,so AMFStreaming was probably never used. I should have previously mentioned that I had changedmessaging-config.xml as follows so streaming is used exclusively for messaging: default-channels channel ref=my-streaming-amf/ /default-channels I modified services-config.xml so my-streaming-amf is now defined as follows: channel-definition id=my-streaming-amf class=mx.messaging.channels.StreamingAMFChannel endpoint url=http://{server.name}:{server.port}/{context.root}/messagebroker/str\ eamingamf class=flex.messaging.endpoints.StreamingAMFEndpoint properties idle-timeout-minutes0/idle-timeout-minutes max-streaming-clients10/max-streaming-clients server-to-client-heartbeat-millis5000/server-to-client-heartbeat-mill\ is user-agent-settings !-- MSIE 5, 6, 7 limit is 2. -- user-agent match-on=MSIE max-streaming-connections-per-session=1 kickstart-bytes=2048/ !-- MSIE 8 limit is 6. -- user-agent match-on=MSIE 8 max-streaming-connections-per-session=5 kickstart-bytes=2048/ !-- Firefox 1, 2 limit is 2. -- user-agent match-on=Firefox max-streaming-connections-per-session=1/ !-- Firefox 3 limit is 6. -- user-agent match-on=Firefox/3 max-streaming-connections-per-session=5/ !-- Safari 3, 4 limit is 4. -- user-agent match-on=Safari max-streaming-connections-per-session=3/ !-- Chrome 0, 1, 2 limit is 6. -- user-agent match-on=Chrome max-streaming-connections-per-session=5/ !-- Opera 7, 9 limit is 4.-- user-agent match-on=Opera max-streaming-connections-per-session=3/ !-- Opera 8 limit is 8. -- user-agent match-on=Opera 8 max-streaming-connections-per-session=7/ !-- Opera 10 limit is 8. -- user-agent match-on=Opera 10 max-streaming-connections-per-session=7 / /user-agent-settings /properties /endpoint /channel-definitionThe log messages have now changed to: my-streaming-amf' channel endpoint set to http://localhost:8400/samples/messagebroker/amfstreaming 'B48F00D0-58FC-D64F-8F15-7F561D53C000' consumer set destination to 'feed'. 'B48F00D0-58FC-D64F-8F15-7F561D53C000' consumer subscribe. 'my-streaming-amf' pinging endpoint. 'my-streaming-amf' channel got status. (Object)#0 code = NetConnection.Call.Failed description = HTTP: Failed details = http://localhost:8400/samples/messagebroker/amfstreaming; level = error 'my-streaming-amf' channel polling stopped. 'my-streaming-amf' channel connect failed. 'B48F00D0-58FC-D64F-8F15-7F561D53C000' consumer channel faulted with Channel.Connect.Failed NetConnection.Call.Failed: HTTP: Failed: url: 'http://localhost:8400/samples/messagebroker/amfstreaming' Suggestions? Mike --- In flexcoders@yahoogroups.com, Michael Slinn msl...@... wrote: I am able to programmatically create a RemoteObject to call RPCs against, and now I am trying to programmatically create a messaging Consumer that listens on a streaming AMF channel. I have cranked up logging verbosity. I note the 404 (not found) message: [SWF] /samples/testdrive-datapush/ProgMsg.swf - 883,736 bytes after decompression 'my-streaming-amf' channel endpoint set to http://localhost:8400/samples/messagebroker/amfstreaming 'A9D9B478-E4BB-6C26-196F-7B082707F804' consumer set destination to 'feed'. 'A9D9B478-E4BB-6C26-196F-7B082707F804' consumer subscribe. 'my-streaming-amf' pinging endpoint. 'my-streaming-amf' channel got status. (Object)#0 code = NetConnection.Call.Failed description = HTTP: Status 404 details = http://localhost:8400/samples/messagebroker/amfstreaming; level = error 'my-streaming-amf' channel polling stopped. 'my-streaming-amf' channel connect failed. The streaming AMF endpoint looks right to me. What am I missing? Here is the (small) test project source code: http://www.mslinn.com/sites/flex/progMsg.zip For convenience, the SWF and HTML files built by this test project drop into the {BlazeDsTurnkey}/tomcat/webapps/samples/testdrive-datapush directory and the project can be run from http://localhost:8400/samples/testdrive-datapush/ProgMsg.html
[flexcoders] Programmaticly created Consumer does not find endpoint
I am able to programmatically create a RemoteObject to call RPCs against, and now I am trying to programmatically create a messaging Consumer that listens on a streaming AMF channel. I have cranked up logging verbosity. I note the 404 (not found) message: [SWF] /samples/testdrive-datapush/ProgMsg.swf - 883,736 bytes after decompression 'my-streaming-amf' channel endpoint set to http://localhost:8400/samples/messagebroker/amfstreaming 'A9D9B478-E4BB-6C26-196F-7B082707F804' consumer set destination to 'feed'. 'A9D9B478-E4BB-6C26-196F-7B082707F804' consumer subscribe. 'my-streaming-amf' pinging endpoint. 'my-streaming-amf' channel got status. (Object)#0 code = NetConnection.Call.Failed description = HTTP: Status 404 details = http://localhost:8400/samples/messagebroker/amfstreaming; level = error 'my-streaming-amf' channel polling stopped. 'my-streaming-amf' channel connect failed. The streaming AMF endpoint looks right to me. What am I missing? Here is the (small) test project source code: http://www.mslinn.com/sites/flex/progMsg.zip For convenience, the SWF and HTML files built by this test project drop into the {BlazeDsTurnkey}/tomcat/webapps/samples/testdrive-datapush directory and the project can be run from http://localhost:8400/samples/testdrive-datapush/ProgMsg.html
[flexcoders] Re: mx:VideoDisplay does not return QuickTime metadata
Thank you for the information. It is helpful to understand. Because I want to size the player at the start of loading the file, and I do not want to have to rearrange the contents of every file that is uploaded, I think a server-side Java program that reads the metadata and sends it to a custom player via RPC or POST is the best way for me to go. Here is a first attempt at such a program: import javax.media.CannotRealizeException; import javax.media.MediaLocator; import javax.media.NoPlayerException; import javax.media.Player; import javax.media.Manager; import java.awt.Component; import java.awt.Dimension; import java.io.IOException; import java.net.URL; public class MediaMetadataReader { public MediaMetadataReader(URL mediaLocator) throws NoPlayerException, IOException, CannotRealizeException { Player player = Manager.createPlayer(mediaLocator); Component mediaViewer = player.getVisualComponent(); Dimension mediaDimension = mediaViewer.getPreferredSize(); double width = mediaDimension.getWidth(); double height = mediaDimension.getHeight(); System.out.println(width= + width + , height= + height); } public static void main(String[] args) throws NoPlayerException, IOException, CannotRealizeException { if (args.length==0) { System.out.println(Usage: MediaMetadataReader fileToRead); System.exit(-1); } MediaMetadataReader metaReader = new MediaMetadataReader(new URL(args[0])); } } If anyone has a finished version of something similar, I'd like to hear about it.
[flexcoders] mx:VideoDisplay does not return QuickTime metadata
The docs say that mx:VideoDisplay should play MOV files with Flash Player 10. I created a file with QuickTime Pro 7. I can see that the MOV file loads, but the metatdata property is null, and videoHeight and videoWidth are zero. Not only that, but onMetaDataReceived(event) is never invoked: mx:VideoDisplay metadataReceived=onMetaDataReceived(event) ready=onVideoReady() source=yourFile.mov / Any suggestions?
RE: [flexcoders] CRUD generator...
Take a look at this http://cfcgenerator.riaforge.org/ Illudiim PU-36 Code Generator http://cfcgenerator.riaforge.org Project Home . http://cfcgenerator.riaforge.org/index.cfm?event=page.forums Forums . http://code.google.com/p/cfcgenerator/issues/list Known Issues . http://cfcgenerator.riaforge.org/index.cfm?event=page.projectscreenshots Screenshots . http://code.google.com/p/cfcgenerator/ External Project Link . http://cfcgenerator.riaforge.org/index.cfm?event=page.projectcontact Contact Project Author: http://www.remotesynthesis.com/blog Brian Rinaldi ( http://cfcgenerator.riaforge.org/index.cfm?event=page.myprojectsid=8 All RIAForge projects by this author) Last Updated: December 2, 2008 6:19 PM Version: 1.0 Beta (Build 13) Views: 20158 Downloads: 3203 License: http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2 Michael Sumner Nations Best Sports 817-788-0034 ext 244 817-788-8542 fax From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Marvin Froeder Sent: Monday, May 25, 2009 5:54 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] CRUD generator... Hi, Does someone know any CRUD generator tool? I would like to generate CRUDs based on my VOs. VELO
[flexcoders] e4x challenge
I would like to filter out all elements with type=file from the following XML. That turns out to be rather difficult because node/ elements are nested. Any suggestions? ?xml version=1.0 encoding=UTF-8? node name=classes type=dir uri=file:/classes/ node name=spring-beans-2.0.dtd type=file uri=file:/classes/spring-beans-2.0.dtd /node name=.svn type=dir uri=file:/classes/.svn/node name=props type=dir uri=file:/classes/.svn/props/ /node name=text-base type=dir uri=file:/classes/.svn/text-base/node name=sample.log4j.xml.svn-base type=file uri=file:/classes/.svn/text-base/sample.log4j.xml.svn-base //nodenode name=format type=file uri=file:/classes/.svn/format /node name=prop-base type=dir uri=file:/classes/.svn/prop-base/node name=sample.log4j.xml.svn-base type=file uri=file:/classes/.svn/prop-base/sample.log4j.xml.svn-base //nodenode name=entries type=file uri=file:/classes/.svn/entries /node name=tmp type=dir uri=file:/classes/.svn/tmp/node name=props type=dir uri=file:/classes/.svn/tmp/props/ /node name=text-base type=dir uri=file:/classes/.svn/tmp/text-base/ /node name=prop-base type=dir uri=file:/classes/.svn/tmp/prop-base/ //node/nodenode name=com type=dir uri=file:/classes/com/node name=.svn type=dir uri=file:/classes/com/.svn/node name=props type=dir uri=file:/classes/com/.svn/props/ /node name=text-base type=dir uri=file:/classes/com/.svn/text-base/ /node name=format type=file uri=file:/classes/com/.svn/format /node name=prop-base type=dir uri=file:/classes/com/.svn/prop-base/ /node name=entries type=file uri=file:/classes/com/.svn/entries /node name=tmp type=dir uri=file:/classes/com/.svn/tmp/node name=props type=dir uri=file:/classes/com/.svn/tmp/props/ /node name=text-base type=dir uri=file:/classes/com/.svn/tmp/text-base/ /node name=prop-base type=dir uri=file:/classes/com/.svn/tmp/prop-base/ //node/nodenode name=kahootz type=dir uri=file:/classes/com/kahootz/node name=activemq.xml type=file uri=file:/classes/com/kahootz/activemq.xml /node name=context type=dir uri=file:/classes/com/kahootz/context/node name=remote-jms-context.xml type=file uri=file:/classes/com/kahootz/context/remote-jms-context.xml /node name=.svn type=dir uri=file:/classes/com/kahootz/context/.svn/node name=props type=dir uri=file:/classes/com/kahootz/context/.svn/props/ /node name=text-base type=dir uri=file:/classes/com/kahootz/context/.svn/text-base/node name=jms-context.xml.svn-base type=file uri=file:/classes/com/kahootz/context/.svn/text-base/jms-context.xml.svn-base /node name=remote-jms-context.xml.svn-base type=file uri=file:/classes/com/kahootz/context/.svn/text-base/remote-jms-context.xml.svn-base //nodenode name=format type=file uri=file:/classes/com/kahootz/context/.svn/format /node name=prop-base type=dir uri=file:/classes/com/kahootz/context/.svn/prop-base/node name=jms-context.xml.svn-base type=file uri=file:/classes/com/kahootz/context/.svn/prop-base/jms-context.xml.svn-base /node name=remote-jms-context.xml.svn-base type=file uri=file:/classes/com/kahootz/context/.svn/prop-base/remote-jms-context.xml.svn-base //nodenode name=entries type=file uri=file:/classes/com/kahootz/context/.svn/entries /node name=tmp type=dir uri=file:/classes/com/kahootz/context/.svn/tmp/node name=props type=dir uri=file:/classes/com/kahootz/context/.svn/tmp/props/ /node name=text-base type=dir uri=file:/classes/com/kahootz/context/.svn/tmp/text-base/ /node name=prop-base type=dir uri=file:/classes/com/kahootz/context/.svn/tmp/prop-base/ //node/nodenode name=server-context.xml type=file uri=file:/classes/com/kahootz/context/server-context.xml /node name=jms-context.xml type=file uri=file:/classes/com/kahootz/context/jms-context.xml //nodenode name=space type=dir uri=file:/classes/com/kahootz/space/node name=context type=dir uri=file:/classes/com/kahootz/space/context/node name=remote-space-context.xml type=file uri=file:/classes/com/kahootz/space/context/remote-space-context.xml /node name=.svn type=dir uri=file:/classes/com/kahootz/space/context/.svn/node name=props type=dir uri=file:/classes/com/kahootz/space/context/.svn/props/ /node name=text-base type=dir uri=file:/classes/com/kahootz/space/context/.svn/text-base/node name=space-context.xml.svn-base type=file uri=file:/classes/com/kahootz/space/context/.svn/text-base/space-context.xml.svn-base /node name=local-space-context.xml.svn-base type=file uri=file:/classes/com/kahootz/space/context/.svn/text-base/local-space-context.xml.svn-base /node name=remote-space-context.xml.svn-base type=file uri=file:/classes/com/kahootz/space/context/.svn/text-base/remote-space-context.xml.svn-base //nodenode name=format type=file uri=file:/classes/com/kahootz/space/context/.svn/format /node name=prop-base type=dir uri=file:/classes/com/kahootz/space/context/.svn/prop-base/node name=space-context.xml.svn-base type=file uri=file:/classes/com/kahootz/space/context/.svn/prop-base/space-context.xml.svn-base /node
[flexcoders] Re: Increasing the Panel scroll speed?
Hi, You can use these two properties to control scroll speed; container.verticalLineScrollSize container.verticalPageScrollSize Mike --- In flexcoders@yahoogroups.com, Sascha sbal...@... wrote: In Flex if you wrap a component into a Panel (or Canvas) which is larger than the Panel, by default the Panel will show scroll bars and can be scrolled. However the default speed for this scrolling is very slow so I'm wondering if there is any known workaround to make them faster? There seems to be no property or style which could control the speed. Sascha
[flexcoders] Re: Accessing the border of a container
Hi, using mx_internal you could; import mx.core.mx_internal; myInstance.tk_internal::background or; rawChildren.getChildByName(border); Mike --- In flexcoders@yahoogroups.com, florian.salihovic florian.saliho...@... wrote: I don't know if i'm just blind atm or if it's indded hard to access the border of a Container. I can access the rawChildren. That's good since i could introspect the children's class name and search for the classname of the asset. But my problem ist, that the border get's compiled and the classname might change. As far as i see, the original name will bechanged to something like: suprise__embed_cssflash_PlaylistAssets_swf_some_name_for the asset_1052501028 Is there a chance to simply get access to the border? Best regards!
[flexcoders] Re: Creating a SWc without the Flex classes?
Hi, I use this in my build file; !-- Include the necessary framework libraries as external libraries -- arg line=-external-library-path '${flexsdk.libs.player.dir}'/ arg line=-external-library-path '${flexsdk.libs.dir}'/ This uses those swcs to compile against but bot include the byte code in your swc. Mike --- In flexcoders@yahoogroups.com, Sascha sbal...@... wrote: Hi List, I'm trying to compile a SWC with compc (Flex 3.3) from my source code library but the compiler always includes all the default Flex classes which makes the SWC quite large. Is there a way to exlude all the Flex classes from being in the resulting SWC or is this a necessity? Sascha
RE: [flexcoders] Newbie SOA question (maintaining login state)
I'd be interested in hearing more about this. Isn't there a 'normal' way to do this with flex? Maintaining login state would seem to be a basic requirement for web apps. Just curious. Tracy Spratt wrote: I have a lot to learn about security, and had difficulty wading through all of the levels and options, so I devised my own programmatic solution. When a user logs in from the Flex app (md5 hash on the password), I create a sessionId, store it in a hashtable in the .net app, and pass it back to the Flex app. The Flex app sends this token with each call. The server checks the passed in session id and compares the timestamp to the current time. If it is within the timeout period specified, it updates the timestamp and authorizes the call. If authorization fails, the user must log in again. I am certainly open to a better approach. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of variableop Sent: Friday, April 03, 2009 4:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Newbie SOA question I would like to provide a solution to maintaining login state over multiple calls to my .NET web service layer. So basically, the user logs in, then stores a login token internally on the Flex side so that each web service call can be authenticated as being made by someone who has already logged in to the system. Does anyone have any ideas on how to approach this? My initial approach was to cache the user's username/password and authenticate on each web service call (Direct Authentication). I was told, for obvious reasons, that this is insecure method and requires database hit each call. I am trying to implement WSE 3.0 enabled web services on the .NET side. Is this an SSO problem, or should I be using STS/Brokered Authentication approach? We just started our upgrade to VS2008, so maybe I should just pursue WCF methods instead? Any experiences with this would be greatly appreciated. TIA, variable -- View this message in context: http://www.nabble.com/Newbie-SOA-question-tp22875841p22962243.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] Negative Mask
Is the mask you want an image or going to be drawn dynamically? Do you have a movieclip or some other graphic that will be the mask and you want to invert its masking effect so it cuts out instead? Also, related to what Kenneth posted, which Flash player are you targeting? 9 or 10? Michael app.developer wrote: If I wanted to have an image, would someone point me to a negative or reverse mask tutorial. I'm having a dickens of a time locating a current AS 3.0 or Flex 3 or 4 example. TIA, P
[flexcoders] Flex 2 Store That Works In Flex 3?
When I import the Flex Store that was created in version 2, I run the application but it loads about 75% and then stops. I know Adobe noted that some changes might be necessary for the Flex 2 store to run properly in Flex 3. Does anyone have those changes that must be made or a source link of the store running in 3?
[flexcoders] Re: problem with XML in flex
Type adobe flex cms into youtube and you will find a member mikenku who created a cms in flex but as an air. That air program then creates an xml file and uploads it. Hope some code there helps.
Re: [flexcoders] Convert Air app. to Flex
change: mx:WindowedApplication to mx:Application and remove any AIR dependent code Michael D. Corbridge . . . . . . . . . . . . . . . . . . . . . . . . . i b m i n t e r a c t i v e One Rogers St. Cambridge, MA 02154 617.693.7150 office 617.964.4529 cell 617.693.7072 fax mdcor...@us.ibm.com markgoldin_2000 markgoldin_2...@yahoo.com Sent by: flexcoders@yahoogroups.com 03/19/2009 10:32 AM Please respond to flexcoders@yahoogroups.com To flexcoders@yahoogroups.com cc Subject [flexcoders] Convert Air app. to Flex Is there a way of converting an Air app. into Flex? Thanks image/gifimage/gif
[flexcoders] Re: Flex 3.3 SDK and AdvancedDataGrid
The online docs and the previous posting suffer from invalid characters. Also, the path needs to be in quotes. Try this: java -jar DMV-source.jar C:\Documents and Settings\All Users\Application Data\Adobe\Flex
[flexcoders] Flex ajax bridge in IE without document.write()
Hi, I'm trying to embed a flex swf into my app without using document.write(). Instead I want to use the standard Ajax technique of setting the innerHTML property on a div object, like so: varflexObjTag =AC_FL_RunContent(...args...); $('flexDiv').innerHTML = flashObjTag; To do this, I modified these functions from AC_OETags.js like so: function AC_Generateobj(objAttrs, params, embedAttrs) { var str = ''; if (isIE isWin !isOpera) { str +='object '; for (var i in objAttrs) str += i + '=' + objAttrs[i] + ' '; str += ''; for (var i in params) str +='param name='+i +' value='+params[i]+' / '; str +='/object'; } else { str += 'embed '; for (var i in embedAttrs) str += i + '=' + embedAttrs[i] + ' '; str +=' /embed'; } return str; } function AC_FL_RunContent(){ var ret = AC_GetArgs ( arguments,.swf,movie,clsid:d27cdb6e-ae6d-11cf-96b8-44455354 ,application/x-shockwave-flash ); return AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs); } This works fine in Firefox and Safari, but not in IE7. I'm getting the following error: try { document.getElementById(graph_div).SetReturnValue(__flash__toXML(FABridge__bridgeInitialized([flash])) ); } catch (e) { document.getElementById(graph_div).SetReturnValue(undefined/); } Any advice would be greatly appreciated! - Michael
[flexcoders] archived Flash players - why so huge?
I found this page today while searching for a way to downgrade to an earlier version of Flash: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14266 Can anyone explain why the installer files are so huge? - Michael
Re: [flexcoders] archived Flash players - why so huge?
Um... never mind: I didn't realize that these files contained archives of multiple version for multiple platforms! Suggestion for Adobe: how 'bout making the individual files available for download as well? Some of us aren't blessed with infinite bandwidth. Thanks! :-) From: Michael Pelz-Sherman mpelzsher...@gmail.com To: flexcoders@yahoogroups.com Sent: Tuesday, March 10, 2009 2:31:47 PM Subject: [flexcoders] archived Flash players - why so huge? I found this page today while searching for a way to downgrade to an earlier version of Flash: http://kb.adobe. com/selfservice/ viewContent. do?externalId= tn_14266 Can anyone explain why the installer files are so huge? - Michael
Re: [flexcoders] Moving a viewStack through actionscript
Hey there Wally, You can get access to the currently selected viewstack, and also set it, through selectedIndex. So your initial declaration would be like mx:ViewStack id=questionVS etc... selectedIndex=0 click=nextQuestion() and in your function nextQuestion you can increment the selectedIndex. I'd have to check but I think you can find the number of items in your viewStack with numChildren. That would give you your max value to finish your quiz or handle the end how you would like. You can find more about what you can do with viewstacks in the docs: http://livedocs.adobe.com/flex/3/langref/mx/containers/ViewStack.html Hope that helps! Michael Wally Kolcz wrote: I have a test that I want to walk through the questions using a function. How can I set the inital value of the ViewStack (questionsVS) to 0 and then increment it by one each time someone clicks a button? mx:ViewStack id=questionsVS width=98% height=100% paddingLeft=10 questions:question1 / questions:question2 / questions:question3 / questions:question4 / /mx:ViewStack
Re: [flexcoders] Moving a viewStack through actionscript
If I am understanding your code correctly, you actually want to call test1(parent).checkSingle instead of testMod. The reason is because you are instantiating a brand new, and unrelated, test1 component with public var testMod:test1 = new test1(); You might be able to do public var testMod:test1 = test1(parent); casting the variable to the type test1. If it's a simple app you are working on, you can do this kind of tightly coupled design. By that I mean, your question1 component knows about your test1 component. If it's a more complex app though, you may want to look at decoupling your app. Otherwise this app will quickly become inflexible and harder to maintain as it grows. In this case, you could set up your question components to dispatch an event that your test1 then listens to. That way question1 doesn't have to be directly connected to parent. I hope that makes sense! Michael Wally Kolcz wrote: When I added the click=nextQuestion() it was triggered off the selecting of a radio button and not the button. Here all the code I have. It is telling me that the viewStack doesn't exist when I believe it should. test1.mxml ?xml version=1.0 encoding=utf-8? mx:Module xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical width=100% height=98% xmlns:questions=com.ipexpert.questions.q1.* creationComplete=initApp() mx:Script ![CDATA[ import mx.core.Application; public var testID:int = 1; public var currentQuestion:int = 0; public function initApp():void { } public function checkSingle(answer:Object):void { if (answer !=0) { Application.application.score += 1; } currentQuestion += 1; nextQuestionPlease(); } public function nextQuestionPlease():void { } ]] /mx:Script mx:ViewStack id=questionsVS width=98% height=100% paddingLeft=10 questions:question1 / questions:question2 / questions:question3 / questions:question4 / /mx:ViewStack /mx:Module question1.mxml ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; width=98% height=98% mx:Script ![CDATA[ import com.ipexpert.tests.test1; public var testMod:test1 = new test1(); ]] /mx:Script mx:Label fontWeight=bold text=1. Which layer(s) of the OSI Reference Model provide(s) for internetwork connectivity? / mx:RadioButtonGroup id=group1 / mx:RadioButton paddingLeft=10 groupName=group1 label=Data Link value=0 selected=true / mx:RadioButton paddingLeft=10 groupName=group1 label=Physical value=0 / mx:RadioButton paddingLeft=10 groupName=group1 label=Session value=0 / mx:RadioButton paddingLeft=10 groupName=group1 label=Network value=1 / mx:RadioButton paddingLeft=10 groupName=group1 label=Presentation value=0 / mx:Button label=Next click=testMod.checkSingle(group1.selectedValue) / /mx:VBox *From*: Michael Wills mich...@mawills.com *Sent*: Monday, March 09, 2009 10:55 AM *To*: flexcoders@yahoogroups.com *Subject*: Re: [flexcoders] Moving a viewStack through actionscript Hey there Wally, You can get access to the currently selected viewstack, and also set it, through selectedIndex. So your initial declaration would be like mx:ViewStack id=questionVS etc... selectedIndex=0 click=nextQuestion() and in your function nextQuestion you can increment the selectedIndex. I'd have to check but I think you can find the number of items in your viewStack with numChildren. That would give you your max value to finish your quiz or handle the end how you would like. You can find more about what you can do with viewstacks in the docs: http://livedocs.adobe.com/flex/3/langref/mx/containers/ViewStack.html http://livedocs.adobe.com/flex/3/langref/mx/containers/ViewStack.html Hope that helps! Michael Wally Kolcz wrote: I have a test that I want to walk through the questions using a function. How can I set the inital value of the ViewStack (questionsVS) to 0 and then increment it by one each time someone clicks a button? mx:ViewStack id=questionsVS width=98% height=100% paddingLeft=10 questions:question1 / questions:question2 / questions:question3 / questions:question4 / /mx:ViewStack
Re: [flexcoders] Moving a viewStack through actionscript
Hi Wally, sorry I missed the hierarchy there. You have checkSingle on the module and not the Viewstack. In that case, you should be able to do parent.parent.checkSingle and leave out the cast as test1. So public var testMod:Object = parent.parent; The last one failed because it was trying to convert a viewstack into a test1 which of course isn't a viewstack. But I'm not sure about this one because the parent.parent is a module. You could also forgo using the testMod variable and in your click declaration instead of click=testMod.checkSingle(group1.selectedValue) use click=parent.parent.checkSingle(group1.selectedValue) / Hopefully that'll work for you. If you have a little time to invest, and if you may be doing more Flex apps in the future, even though this one is not going to be a full-on huge app, I'd learn about dispatching custom events. It's not that complicated but it takes some time to understand. It would save some of the hassle you're trying to do of course at the expense of a new and different kind of hassle. :-) Michael Wally Kolcz wrote: Wow...its a 'simple' one time create app. All I want to do is when the user selects an answer on the question1.mxml component, they can click a button, pass the value of the radio button to the test1 module's checkSingle() method and then move to the next question in the test1 module's stack. When I changed the function call on the button of question1.mxml to test1(parent).checkSingle(group1.selectedValue); mx:Button label=Next click=test1(parent).checkSingle(group1.selectedValue) / I get this error: TypeError: Error #1034: Type Coercion failed: cannot convert mx.containers::viewst...@6563ae1 to com.ipexpert.tests.test1. at com.ipexpert.questions.q1::question1/___question1_Button1_click()[D:\wkolcz\My Documents\Flex Builder 3\IPExpertBrainBuster\src\com\ipexpert\questions\q1\question1.mxml:21] Here is checkSingle() and nextQuestionPlease() public function checkSingle(answer:Object):void { if (answer !=0) { Application.application.score += 1; } currentQuestion += 1; nextQuestionPlease(); } public function nextQuestionPlease():void { questionsVS.selectedIndex=currentQuestion; } *From*: Michael Wills mich...@mawills.com *Sent*: Monday, March 09, 2009 11:44 AM *To*: flexcoders@yahoogroups.com *Subject*: Re: [flexcoders] Moving a viewStack through actionscript If I am understanding your code correctly, you actually want to call test1(parent).checkSingle instead of testMod. The reason is because you are instantiating a brand new, and unrelated, test1 component with public var testMod:test1 = new test1(); You might be able to do public var testMod:test1 = test1(parent); casting the variable to the type test1. If it's a simple app you are working on, you can do this kind of tightly coupled design. By that I mean, your question1 component knows about your test1 component. If it's a more complex app though, you may want to look at decoupling your app. Otherwise this app will quickly become inflexible and harder to maintain as it grows. In this case, you could set up your question components to dispatch an event that your test1 then listens to. That way question1 doesn't have to be directly connected to parent. I hope that makes sense! Michael Wally Kolcz wrote: When I added the click=nextQuestion() it was triggered off the selecting of a radio button and not the button. Here all the code I have. It is telling me that the viewStack doesn't exist when I believe it should. test1.mxml ?xml version=1.0 encoding=utf-8? mx:Module xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=vertical width=100% height=98% xmlns:questions=com.ipexpert.questions.q1.* creationComplete=initApp() mx:Script ![CDATA[ import mx.core.Application; public var testID:int = 1; public var currentQuestion:int = 0; public function initApp():void { } public function checkSingle(answer:Object):void { if (answer !=0) { Application.application.score += 1; } currentQuestion += 1; nextQuestionPlease(); } public function nextQuestionPlease():void { } ]] /mx:Script mx:ViewStack id=questionsVS width=98% height=100% paddingLeft=10 questions:question1 / questions:question2 / questions:question3 / questions:question4 / /mx:ViewStack /mx:Module question1.mxml ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml width=98% height=98% mx:Script ![CDATA[ import com.ipexpert.tests.test1; public var testMod:test1 = new test1(); ]] /mx:Script mx:Label fontWeight=bold text=1. Which layer(s) of the OSI Reference Model provide(s) for internetwork connectivity? / mx:RadioButtonGroup id=group1
Re: [flexcoders] Architecture / Design question...
Wow yeah that would depend on a lot of things. Some thoughts that help me narrow down prospects like that: Am I doing all of the subcomponents in MXML? If so I could manage it with States perhaps using addChild. Pass the state in on instantiation/show/creationComplete, etc. Am I doing all of the subcomponents in AS3? Then I can dynamically instantiate things on the fly depending on those requirements. Whether or not I actually use the states tags, are their actual states with shared components? If so I might make a set of flags. If flag x is present, add component x, or if y is present, add y. But it depends on how detailed it needs to be, and how convoluted the solution might be. It might be better not to put it ALL in one component, but have one component that loads subsections as well. It all depends on what you need. And, just a caveat, I am not a Flex guru. They might pine in with much better solutions. Michael tchredeemed wrote: I have a situation in which I am currently using a very ugly set up to get the job done, but I want to change this (will explain) and I am looking for some insight. The process is this. A user gets to a piece of our app and they are presented with some options. The options are very different depending on which route they take to get there. For instance, they might see a checkbox about saving a piece of their file as a note. They might see a set of radio buttons to order different quantities (in this case the price can change depending on which radio button is selected [the price is on the same screen]). They might see a mailing address or an email address, depending on the medium of the item they are purchasing. Basically, the options vary greatly, so I currently have a different custom component depending on which they are using. I want to be able to use one component and have different options on that component, but I am not sure of an efficient way to do it. I know this is random and probably not easily answered without a specific understanding of the system, but I thought I would ask :)
Re: [flexcoders] jQuery for Flex - a Behavior Injection Framework
Heh yeah just a play on the names you mentioned in your blog, i.e. decaf, cola, bif(ff?), etc. I am only just getting started with Mate but have appreciated the injection concept. My first hands on dose of that was with PureMVC's ViewMediators. Mate and your framework is simpler for folks to understand though. The setup and usage is quite clear just looking at the code. I actually hadn't even seen or used the Contents or Swap tags before. I still have to go look those up in the related docs. :-) Michael Sean Clark Hess wrote: @Sam, Thanks for adding that link. Guess I shouldn't try to do fancy html emails for the first time when making important announcements :) @Michael - Thanks! I wouldn't say it would be a decaf *version* of anything :) It's supposed to play friendly with application frameworks. On Mon, Mar 2, 2009 at 3:00 PM, Michael Wills mich...@mawills.com mailto:mich...@mawills.com wrote: I like the possibility of using it with Mate/Cairngorm. So then it would be the decaf versions of mate/cairngorm? :-) Seriously though this is quite cool. Sam Lai wrote: I think you forgot the link (or my phone's playing tricks with me). http://code.seanhess.net/?p=156 http://code.seanhess.net/?p=156 Nice work btw. I'm going to have to think about how it fits in with Flex and my current workflow, but I'll give it a shot in my new project :) On 3/3/09, Sean Clark Hess seanh...@gmail.com mailto:seanh...@gmail.com wrote: jQuery for Flex - a Behavior Injection Frameworkhttp://code.seanhess.net/?p=156 http://code.seanhess.net/?p=156 [...] I’ve just finished my pre-alpha version of a Behavior Injection framework for Flex. It adds support for functionality similar to jQuery for flex, along with support for a more complete CSS syntax. The approach is slightly different than jQuery, and hopes to play along with Flex’s strengths as well. [...] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 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 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:flexcoders-dig...@yahoogroups.com mailto:flexcoders-fullfeatu...@yahoogroups.com * To unsubscribe from this group, send an email to: flexcoders-unsubscr...@yahoogroups.com * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] jQuery for Flex - a Behavior Injection Framework
I like the possibility of using it with Mate/Cairngorm. So then it would be the decaf versions of mate/cairngorm? :-) Seriously though this is quite cool. Sam Lai wrote: I think you forgot the link (or my phone's playing tricks with me). http://code.seanhess.net/?p=156 Nice work btw. I'm going to have to think about how it fits in with Flex and my current workflow, but I'll give it a shot in my new project :) On 3/3/09, Sean Clark Hess seanh...@gmail.com wrote: jQuery for Flex - a Behavior Injection Frameworkhttp://code.seanhess.net/?p=156 [...] I’ve just finished my pre-alpha version of a Behavior Injection framework for Flex. It adds support for functionality similar to jQuery for flex, along with support for a more complete CSS syntax. The approach is slightly different than jQuery, and hopes to play along with Flex’s strengths as well. [...] -- 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: Can't seem to get Myriad Pro to encode in Flex
Hi Adrian, Did this ever get worked out? And by any chance did you publish your swf font to Flash 8? I seem to remember the docs saying Flex uses Flash 8 for swf fonts. I'll have to look that up to be sure if that's a requirement though. Oh and Flex can only transcode TTF files so yeah, OTF files are out. Michael Adrian Gillette wrote: By the way, I used Flash CS4 to create my font swf. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Adrian Gillette gille...@... wrote: I'm trying to embed couple versions of Myriad Pro into my Flex project: Myriad Pro Semibold Condensed Myriad Pro Semibold Condensed Italic Myriad Pro Condensed I've tried two different methods to embed the fonts using CSS: 1. Using an OTF file. 2. Using a fla file with embedded fonts using dynamic text boxes. I can embed fonts that has any combination of these styles: bold, italic, or normal. But it does not seem to allow me to transcode fonts that have anything outside of those styles, such as semibold, condensed, etc. Has anyone successfully dealt with this problem or knows how to? Thanks, Adrian
[flexcoders] single double click event handling on same component
I need to handle both single double clicks on a UIComponent. Unfortunately my single click handler is preventing the double click handler from executing. I found a nice blog post that explains a workaround for this: http://blogs.sophiacom.fr/flex/2008/08/double-click.html Before I implement this workaround, is there a better way? - Michael
[flexcoders] Re: How to set the endpoint address in Coldfusion side?
The flex2gateway is defined in the services-config.xml file found in your_cf_install_path/wwwroot/WEB_INF/flex/ Depending on how you set up your flex project, this file will be used during compilation so your remote objects will know what 'destination=ColdFusion' actually means. After you edit this file, you'll need to restart ColdFusion for the changes to taken effect. --- In flexcoders@yahoogroups.com, markflex2007 markflex2...@... wrote: How do you know flex2gateway here.do I set it in somewhere? Thanks Mark
Re: [flexcoders]Architect an image gallery transition effect - design suggestions
Why not have two Image components, one on top of the other? As the user brings up on image you can fade one out and fade the other in. --- In flexcoders@yahoogroups.com, dorkie dork from dorktown dorkiedorkfromdorkt...@... wrote: I'm trying to create an image gallery component and I need some help. I have an Image component working. It has next and previous buttons that change the source of the Image component when they are clicked. This works fine so far. The problem is it looks like crap when it changes. How would you architect a source change effect so there would be a nice transition between the current image and the next or previous image? For example, I want it to handle a crossfade where one image fades out and the next fades in or a move in effect where one image moves off the screen (and fades out) and another image fades in and moves in to the current image location. I know there is a showEffect and hideEffect but I need something like a sourceChangeNextEffect and a sourceChangePreviousEffect.
[flexcoders] flex app making undefined http requests
My flex app is making http requests to a url with the string undefined. These requests are showing up as 404 errors in the web browser. I have no idea where these requests are coming from. Any suggestions on how to debug this? Thanks! - Michael
Re: [flexcoders] dynamic context menu problem
Thanks Gregor! This is slightly more elegant than the solution I've come up with. I *think* I follow you up to the last sentence. How do you force the UI component to display its context menu? The display() method is AIR-only... right? Is this an actual ContextMenu instance or a UI component masquerading as a ContextMenu? - Michael From: Gregor Kiddie gkid...@inpses.co.uk To: flexcoders@yahoogroups.com Sent: Friday, January 30, 2009 5:22:20 AM Subject: RE: [flexcoders] dynamic context menu problem The solution I put in place for a similar problem… Add some javascript to eat the right click event (so the default menu isn’t shown), and have it dispatch an event to the application. The application then dispatches a “RIGHT_CLICK” event having it bubble. Any UI component listening for that event captures is and prevents it from bubbling further (You want to let it get to the topmost point in the display list, and catch it on the way back down). That UI component opens up the menu you’ve set up for it. Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, LondonSW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at 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.helpdesk@ inps.co.uk From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Michael Pelz-Sherman Sent: 29 January 2009 19:53 To: flexcod...@yahoogro ups.com Subject: [flexcoders] dynamic context menu problem I'm struggling to find an elegant solution to this problem: I have a Flex app that has a dynamic context (right-click) menu. The menu contains different items depending on whether various objects are selected. Ideally, I'd like to re-generate the menu options right when the user right-clicks, but I haven't found a reasonable way to do this. So instead I'm re-generating the menus every time the user (left) clicks, which is kind of expensive and is having unwanted side-effects. Unfortunately, MouseEvent.RIGHT_ CLICK is AIR-only. Any suggestions would be most appreciated! - Michael
Re: [flexcoders] dynamic context menu problem
Ah, got it. Thanks, I wish I had taken this approach from the start! From: Gregor Kiddie gkid...@inpses.co.uk To: flexcoders@yahoogroups.com Sent: Friday, January 30, 2009 11:15:54 AM Subject: RE: [flexcoders] dynamic context menu problem I wrote a routine that all my UIComponents can link into which uses the standard Flex Menu in place of throwing up the context menu. Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, LondonSW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at 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.helpdesk@ inps.co.uk From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Michael Pelz-Sherman Sent: 30 January 2009 15:44 To: flexcod...@yahoogro ups.com Subject: Re: [flexcoders] dynamic context menu problem Thanks Gregor! This is slightly more elegant than the solution I've come up with. I *think* I follow you up to the last sentence. How do you force the UI component to display its context menu? The display() method is AIR-only... right? Is this an actual ContextMenu instance or a UI component masquerading as a ContextMenu? - Michael From:Gregor Kiddie gkid...@inpses. co.uk To: flexcod...@yahoogro ups.com Sent: Friday, January 30, 2009 5:22:20 AM Subject: RE: [flexcoders] dynamic context menu problem The solution I put in place for a similar problem… Add some javascript to eat the right click event (so the default menu isn’t shown), and have it dispatch an event to the application. The application then dispatches a “RIGHT_CLICK” event having it bubble. Any UI component listening for that event captures is and prevents it from bubbling further (You want to let it get to the topmost point in the display list, and catch it on the way back down). That UI component opens up the menu you’ve set up for it. 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 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.helpdesk@ inps.co.uk From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Michael Pelz-Sherman Sent: 29 January 2009 19:53 To: flexcod...@yahoogro ups.com Subject: [flexcoders] dynamic context menu problem I'm struggling to find an elegant solution to this problem: I have a Flex app that has a dynamic context (right-click) menu. The menu contains different items depending on whether various objects are selected. Ideally, I'd like to re-generate the menu options right when the user right-clicks, but I haven't found a reasonable way to do this. So instead I'm re-generating the menus every time the user (left) clicks, which is kind of expensive and is having unwanted side-effects. Unfortunately, MouseEvent.RIGHT_ CLICK is AIR-only. Any suggestions would be most appreciated! - Michael
[flexcoders] dynamic context menu problem
I'm struggling to find an elegant solution to this problem: I have a Flex app that has a dynamic context (right-click) menu. The menu contains different items depending on whether various objects are selected. Ideally, I'd like to re-generate the menu options right when the user right-clicks, but I haven't found a reasonable way to do this. So instead I'm re-generating the menus every time the user (left) clicks, which is kind of expensive and is having unwanted side-effects. Unfortunately, MouseEvent.RIGHT_CLICK is AIR-only. Any suggestions would be most appreciated! - Michael
Re: [flexcoders] ContextMenuItem with a checkbox ?
Hi again, I thought I'd try extending the ContextMenuItem class to provide this behavior, but according to the compiler, the ContextMenuItem class is declared final in the Gumbo Flex SDK. I found a post from 2006 that shows ContextMenuItem being extended: http://www.bigroom.co.uk/blog/custom-context-menu-with-keyboard-shortcuts-in-flash Did this change recently? If so, why? Thanks, - Michael From: Michael Pelz-Sherman mpelzsher...@gmail.com To: flexcoders@yahoogroups.com Sent: Monday, January 19, 2009 2:15:33 PM Subject: [flexcoders] ContextMenuItem with a checkbox ? Hi, I'd like to create a ContextMenuItem with a checkbox that toggles some behavior. Is this possible? Thanks! - Michael
[flexcoders] ContextMenuItem with a checkbox ?
Hi, I'd like to create a ContextMenuItem with a checkbox that toggles some behavior. Is this possible? Thanks! - Michael
[flexcoders] Re: How to test flash apps in the normal (non-debug) player with the debug player in installed?
Check out the Flash Switcher Firefox extension. --- In flexcoders@yahoogroups.com, tom s tcs2...@... wrote: Hi All, I have the flash debug player installed for FireFox and IE. What is the best way to test flash apps in the normal (non-debug) player on the *same machine*? (I don't have access to a spare machine right now). I want to do this test because I have read that the error thrown by ExternalInterface.call is different in the normal player than the debug player, but that was written many months ago, so I don't know if it is still true (e.g. in version 10.x) thanks tom
[flexcoders] Re: Best practices for using custom service type with Cairngorm ServiceLocator
Frankly, using the ServiceLocator in the first place is far from a best practice. In the past, I've done this to initialize my remote objects: var ro:RemoteObject = RemoteObject(ServiceLocator.getInstance().getRemoteObject(ro)); ro.endpoint = myEndpoint; ro.source = mySource; You can do something similar for your HTTPServices when you know what properties you want to set on them. --- In flexcoders@yahoogroups.com, adamratcliffe2002 a...@... wrote: I have an AIR application which uses the Merapi bridge to communicate with a local Java application. My service class wraps the bridge and I would like to initialize this service alongside the HTTPService I have defined in the ServiceLocator mxml. Should I extend the Cairngorm ServiceLocator to support my own service interface as an additional type or is there some better way of doing this? Cheers Adam
[flexcoders] Re: How does Flex Builder validate a BlazeDS/LCDS J2EE project?
Filed as http://bugs.adobe.com/jira/browse/FB-16422
[flexcoders] Re: Programmatically managing BlazeDS ServerConfig
Cornel, You are doing the opposite of what I am doing. Instead of letting the compiler generate the code to read the XML configuration files, and then examining the variables, I am attempting to set the XML directly and configure BlazeDS that way, without using data files bound into the SWF. The following comment in the ServerConfig source code led me to believe that this should be possible: The XML source is provided during the compilation process. However, there is currently no internal restriction preventing the acquisition of this XML data by other means, such as network, local file system, or shared object at runtime. (Second paragraph of http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/config/ServerConfig.as) Here is a related bug: http://bugs.adobe.com/jira/browse/SDK-16073
Re: [flexcoders] Re: Rendering Problem
That's interesting that Steve mentioned autoLayout. We had a similar problem with a bunch of image rollovers that were all flickering as a group, and it turned out to be that because we hadn't told them their height or width, they were having to lay themselves out to find out - hence the flicker while it figured all that out. But your problem is so broad that I encourage you not to apply possible cures until you understand it better. A basic plan is to cut stuff out until you don't see the problem any more. Michael On Sun, Dec 21, 2008 at 6:01 PM, Rafael Faria rafaelfaria.gru...@gmail.comwrote: Any other idea why the rendering problem is happening? I have heaps of components running at the same time and i have no clue how to debug what could be wrong that makes the screen flicks. anyone had problems like that and found a workaround!? thanks rafael --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, valdhor steved...@... wrote: Check out this video from Chet Haase: http://graphics-geek.blogspot.com/2008/09/video-sorted-details.html He talks about turning off autoLayout which can cause flickering. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Rafael Faria rafaelfaria.grupos@ wrote: Hello All, I have a very important question. What could be causing problems with rendering?! I have this application that every now and than flicks, the background goes white for a second than get back to normal. Its not really something in particular because that happens in a couple of components i create. One in particular that do pretty much the same as the date, opening a popup on the side, but everytime i open that i get this flickering problem. Any clue what could be causing that? i know its a very empty qustion but maybe someone might give me an idea what often causes flex to flick. thanks raf
[flexcoders] Channel documentation errors?
The documentation for Channel.applySettings() says: Subclasses should override this method to apply any settings that may be necessary for an individual channel. Make sure to call super.applySettings() to apply common settings for the channel. Parameters settings:XML XML fragment of the services-config.xml file for this channel. The following fragement includes the channel tag with all of its configuration settings: channel id=my-amf type=mx.messaging.channels.AMFChannel endpoint uri=/dev/messagebroker/amf type=flex.messaging.endpoints.AmfEndpoint/ properties polling-enabledfalse/polling-enabled /properties /channel Ignoring the spelling error (fragement), the documentation appears to be quite incorrect, if I read the source code correctly. I'm looking at flex_sdk_3.0.0.477\frameworks\projects\rpc\src\mx\messaging\Channel.as, and I see code that references the following properties: connect-timeout-seconds record-message-times record-message-sizes serialization enable-small-messages The polling-enabled property is not mentioned in the Channel code. PollingChannel extends Channel, and it references the following config file properties: polling-enabled polling-interval-millis polling-interval-seconds piggybacking-enabled login-after-disconnect None of the above properties are mentioned in the PollingChannel docs. The polling-enabled property mentioned in the Channel docs is actually handled by the PollingChannel subclass. NetConnection extends PollingChannel, and does not reference any new properties. AMFChannel extends NetConnection. The AMFChannel docs say that the config file's property called polling-interval-seconds is read into the AMFChannel.pollingInterval property. Also, the docs say that the polling-enabled property in the config file sets the AMFChannel.pollingEnabled property. As I discovered, PollingChannel handles these properties, not AMFChannel. Should I log a bug?
[flexcoders] Re: How does Flex Builder validate a BlazeDS/LCDS J2EE project?
Cornel, Thanks for confirming my suspicions. I realized I was checking the wrong directory for disk activity. Flex Builder does not probe the Root Folder that Flex Builder presents in Project Properties / Flex Server, it probes the deployment folder, which resides in the workspace. My test setup is: Root folder: C:\sites\slinnbooks.com\www\production\webapps\ROOT\books\serverSide\examples\blazeDS\echoTest\echoServer\WebContent Root URL: http://localhost:8080/echoServer/ (this works ... serves up content properly) Context Root: /echoServer The server project folder is of course: C:\sites\slinnbooks.com\www\production\webapps\ROOT\books\serverSide\examples\blazeDS\echoTest\echoServer The BlazeDS client folder is C:\sites\slinnbooks.com\www\production\webapps\ROOT\books\serverSide\examples\blazeDS\echoTest\echoClient The Eclipse workspace is: C:\work\eclipseWorkspaces\Europa2 This directory is the deployment folder, and has the necessary Flex xml files in it: C:\work\eclipseWorkspaces\Europa2\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\echoServer\WEB-INF\flex Pressing the Validate Location button generates this error message: Cannot access the web server. The server may not be running, or the web root folder or root URL may be invalid. FileMon shows a hundreds of disk accesses after I click on Validate Location. Here is some of the activity: 10:02:39 AMexplorer.exe:3864OPEN C:\work\eclipseWorkspaces\Europa2\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\echoServer\WEB-INF\flex\:{4c8cc155-6c1e-11d1-8e41-00c04fb9386d}:$DATA NOT FOUNDOptions: Open Access: Read 10:02:39 AMexplorer.exe:3864OPEN C:\work\eclipseWorkspaces\Europa2\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\echoServer\WEB-INF\flex\:SummaryInformation:$DATA NOT FOUNDOptions: Open Access: Read 10:02:46 AMexplorer.exe:3864DIRECTORY C:\work\eclipseWorkspaces\Europa2\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\echoServer\WEB-INF\flex\ SUCCESSFileBothDirectoryInformation: services-config.xml 10:02:46 AMexplorer.exe:3864OPEN C:\work\eclipseWorkspaces\Europa2\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\echoServer\WEB-INF\flex\services-config.xml SUCCESSOptions: Open Access: Read 10:02:46 AMexplorer.exe:3864OPEN C:\work\eclipseWorkspaces\Europa2\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\echoServer\WEB-INF\flex\services-config.xml:Raec25ph4sudbf0hAaq5ehw3Nf:$DATA NOT FOUNDOptions: Open Access: Read 10:02:46 AMexplorer.exe:3864OPEN C:\work\eclipseWorkspaces\Europa2\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\echoServer\WEB-INF\flex\services-config.xml\:Docf_SummaryInformation:$DATA NOT FOUNDOptions: Open Access: Read 10:02:47 AMexplorer.exe:3864QUERY INFORMATION C:\work\eclipseWorkspaces\Europa2\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\echoServer\WEB-INF\flex\services-config.xml SUCCESSAttributes: A 10:02:47 AMexplorer.exe:3864CLOSE 10:02:46 AMexplorer.exe:3864OPEN C:\work\eclipseWorkspaces\Europa2\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\echoServer\WEB-INF\flex\services-config.xml\:Docf_SummaryInformation:$DATA NOT FOUNDOptions: Open Access: Read C:\work\eclipseWorkspaces\Europa2\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\echoServer\WEB-INF\flex\services-config.xml SUCCESS The attempts to write random data to the $DATA forks all fail, yet the necessary files are all there. I'm running Windows XP SP3. Is this a bug? I can reproduce this problem on several Windows systems. Mike
[flexcoders] Re: Programmatically managing BlazeDS ServerConfig
That produces a null result, as it should. The problem seems to be with the call to ServerConfig.getChannel(channelName). As I trace through the call, I see a call to ServerConfig.createChannel('my-amf'). It evaluates xml.channels.channel.(@id == channelId); which of course returns nothing because the appropriate E4X expression for the supplied data should be xml.channels.elements(channel-definition).(@id == channelId). The only way I could imagine this working is if the XML were rewritten, converting all 'channel-definition' elements to 'channel' elements - or perhaps something along the call chain discards the remainder of the element name when it encounters a dash. I tested this out by renaming the channel-definition elements to channel, and modifying the E4X expression to suit, but createChannel() fails due to an empty string returned from the call to channelConfig.attribute(CLASS_ATTR).toString(). CLASS_ATTR is defined as type, and an attribute with that name is optional. What's the secret?
[flexcoders] Auto-scrolling of selectable Text controls
If you have a Text field with selectable text, it's possible to scroll the content by clicking on the text and dragging downwards. This leaves (in one simple case I've made) the top line of text obscured, and an apparent blank line at the bottom. Is there any way to prevent this without making the text non-selectable? Michael
[flexcoders] Re: Auto-scrolling of selectable Text controls
I've run into this before. It appears to be a bug with leading. If you set it to zero, this won't happen, but the lines of text will be a little too close together. You can probably monkey patch it. --- In flexcoders@yahoogroups.com, Michael Prescott michael.r.presc...@... wrote: If you have a Text field with selectable text, it's possible to scroll the content by clicking on the text and dragging downwards. This leaves (in one simple case I've made) the top line of text obscured, and an apparent blank line at the bottom. Is there any way to prevent this without making the text non-selectable? Michael
[flexcoders] How does Flex Builder validate a BlazeDS/LCDS J2EE project?
I imagined that Flex Builder validates a J2EE project by writing a file into the root folder, and reading it back via the root URL, but when I used SysInternals FileMon and a TCP monitor to check, I did not see any such activity. Exactly how does the Validate Configuration button perform validation?
[flexcoders] Programmatically managing BlazeDS ServerConfig
ServerConfig has static methods and properties that I would like to invoke. Seems that setting the xml property is a way to configure BlazeDS. Pardon the length of this bit of code - it's an interleaving of flex/services-config.xml and flex/remoting-config.xml: ServerConfig.xml = services-config services service id=remoting-service class=flex.messaging.services.RemotingService adapters adapter-definition id=java-object class=flex.messaging.services.remoting.adapters.JavaAdapter default=true/ /adapters default-channels channel ref=my-amf/ /default-channels destination id=echoDestination channels=my-amf properties sourcecom.mslinn.echo.Echo/source /properties /destination /service !--service-include file-path=proxy-config.xml / service-include file-path=messaging-config.xml /-- /services security login-command class=flex.messaging.security.TomcatLoginCommand server=Tomcat/ /security channels channel-definition id=my-amf class=mx.messaging.channels.AMFChannel endpoint url=http://localhost:8080/unboundConfig/messagebroker/amf; class=flex.messaging.endpoints.AMFEndpoint/ /channel-definition channel-definition id=my-secure-amf class=mx.messaging.channels.SecureAMFChannel endpoint url=https://localhost:8080/unboundConfig/messagebroker/amfsecure; class=flex.messaging.endpoints.SecureAMFEndpoint/ properties add-no-cache-headersfalse/add-no-cache-headers /properties /channel-definition channel-definition id=my-polling-amf class=mx.messaging.channels.AMFChannel endpoint url=http://localhost:8080/unboundConfig/messagebroker/amfpolling; class=flex.messaging.endpoints.AMFEndpoint/ properties polling-enabledtrue/polling-enabled polling-interval-seconds4/polling-interval-seconds /properties /channel-definition channel-definition id=my-longpolling-amf class=mx.messaging.channels.AMFChannel endpoint url=http://localhost:8080/unboundConfig/messagebroker/amflongpolling; class=flex.messaging.endpoints.AMFEndpoint/ properties polling-enabledtrue/polling-enabled polling-interval-seconds3/polling-interval-seconds wait-interval-millis6/wait-interval-millis client-wait-interval-millis1/client-wait-interval-millis max-waiting-poll-requests200/max-waiting-poll-requests /properties /channel-definition /channels logging target class=flex.messaging.log.ConsoleTarget level=Error properties prefix[BlazeDS] /prefix includeDatefalse/includeDate includeTimefalse/includeTime includeLevelfalse/includeLevel includeCategoryfalse/includeCategory /properties filters patternEndpoint.*/pattern patternService.*/pattern patternConfiguration/pattern /filters /target /logging system redeploy enabledfalse/enabled /redeploy /system /services-config; I can get the names of all the defined channels using E4X: ServerConfig.serverConfigData.channels.elements(channel-definition)@[id]) Now for my question. I want to get the channel objects, not just their names. A big fat nothing gets printed out from this: for each (var channelName:String in ServerConfig.serverConfigData.channels.elements(channel-definition)@[id]) trace(ServerConfig.getChannel(channelName)); What is the correct way to retrieve channel objects from ServerConfig?
[flexcoders] Restrictions on non-visual component placement
*Short version:* I have a non-visual component that I'm trying to declare in a repeater, but it seems that MXML doesn't allow this. Is this true? How do you get around this, create a visual component to wrap the non-visual component? *Long version:* I have an ActionScript non-visual component whose declaration looks like this: public class DetailPopup extends EventDispatcher implements IMXMLObject I've used this successfully inside an inline, MXML item renderer, like this: mx:DataGridColumn mx:itemRenderer mx:Component mx:VBox !-- a bunch of other stuff, and then my: -- my:DetailPopUp/ mx:VBox /mx:Component /mx:itemRenderer /mx:DataGridColumn Now that I'm switching from a DataGrid to a Grid, the code ought to look like this: mx:GridItem mx:VBox !-- a bunch of other stuff, and then my: -- (X) my:DetailPopUp/ mx:VBox /mx:GridItem ..except that I'm getting an error, Component declarations are not allowed here. (Note: visual children must implement IUIComponent.) After trying out a bunch of scenarios, it looks like non-visual components can only be declared in the outermost scope of a component or application. Is this true? This is rather awkward, as I need a DetailPopUp for each griditem. Any tips would be very helpful! Michael
Re: [flexcoders] Restrictions on non-visual component placement
I think that might be a distraction, I was asking a question about the rules of MXML, rather than asking for debugging help for my non-visual component. But just for fun, I'll explain! I was looking for a way to reuse the nice way that PopUpButton manages its pop-up, so I created a non-visual component that you could use to orchestrate popping up on rollover or on focus. mx:Label id=info text=Roll over me for more information/ mx:VBox id=moreInfo includeInLayout=false visible=false mx:Label text=Hi, I'm more information! / /mx:Vbox my:DetailPopup target={info} popUp={moreInfo}/ This works really well, and we use it in a few places so we can use ad hoc detail pop-ups. We've even used it inside a datagrid item renderer: mx:DataGridColumn mx:itemRenderermx:Component mx:Label id=info text=Roll over me for more information/ mx:VBox id=moreInfo includeInLayout=false visible=false mx:Label text=Hi, I'm more information! / /mx:Vbox my:DetailPopup target={info} popUp={moreInfo}/ /mx:Component/mx:itemRenderer /mx:DataGridColumn When we switched to a grid with a repeater, I discovered the prohibition on nonvisual components that weren't parent of the root tag. mx:GridItem mx:Label id=info text=Roll over me for more information/ mx:VBox id=moreInfo includeInLayout=false visible=false mx:Label text=Hi, I'm more information! / /mx:Vbox (x) my:DetailPopup target={info} popUp={moreInfo}/ /mx:GridItem So the solution appears to be to take the guts and put it in its own component definition, and then do this: mx:GridItem my:WholeChunkaStuff/ /mx:GridItem Michael On Fri, Dec 12, 2008 at 1:25 PM, Rick Winscot rick.wins...@zyche.comwrote: It's difficult to determine what your problem is without knowing a little more about what your DetailPopUp does/is. If you post some code it would be far easier to determine why one context works and another doesn't. Generally... I wouldn't recommend mingling non-visual and visual components in mxml. Your error basically says that your non-visual component doesn't have an appropriate interface for the context you are placing it in. e.g. It should be a IUIComponent. http://livedocs.adobe.com/flex/201/langref/mx/core/IUIComponent.html Rick Winscot On 12/12/08 12:49 PM, Michael Prescott michael.r.presc...@gmail.com wrote: *Short version: * I have a non-visual component that I'm trying to declare in a repeater, but it seems that MXML doesn't allow this. Is this true? How do you get around this, create a visual component to wrap the non-visual component? *Long version: * I have an ActionScript non-visual component whose declaration looks like this: public class DetailPopup extends EventDispatcher implements IMXMLObject I've used this successfully inside an inline, MXML item renderer, like this: mx:DataGridColumn mx:itemRenderer mx:Component mx:VBox !-- a bunch of other stuff, and then my: -- my:DetailPopUp/ mx:VBox /mx:Component /mx:itemRenderer /mx:DataGridColumn Now that I'm switching from a DataGrid to a Grid, the code ought to look like this: mx:GridItem mx:VBox !-- a bunch of other stuff, and then my: -- (X) my:DetailPopUp/ mx:VBox /mx:GridItem ..except that I'm getting an error, Component declarations are not allowed here. (Note: visual children must implement IUIComponent.) After trying out a bunch of scenarios, it looks like non-visual components can only be declared in the outermost scope of a component or application. Is this true? This is rather awkward, as I need a DetailPopUp for each griditem. Any tips would be very helpful! Michael
Re: [flexcoders] Restrictions on non-visual component placement
It still seems to be true. Yes, I can see that before repeaters are involved, but the detail popup creates a relationship between a pair of components - so once I get to an array of such pairs, it seemed like I'd need a detail popup for each pair. It's stateful, and it would get muddled up if one detail popup was trying to coordinate multiple pairs of controls. (Basically, I wanted the repeater to manage instances of the detail popup as well.) Michael On Fri, Dec 12, 2008 at 2:18 PM, Tracy Spratt tspr...@lariatinc.com wrote: It IS, or at least was, the case that non-visual components must be at the root mxml scope. I will try to find it documented. If the component is non-visual, then it does not matter, functionally speaking, where in the DOM it goes. Tracy -- *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Rick Winscot *Sent:* Friday, December 12, 2008 1:25 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Restrictions on non-visual component placement It's difficult to determine what your problem is without knowing a little more about what your DetailPopUp does/is. If you post some code it would be far easier to determine why one context works and another doesn't. Generally... I wouldn't recommend mingling non-visual and visual components in mxml. Your error basically says that your non-visual component doesn't have an appropriate interface for the context you are placing it in. e.g. It should be a IUIComponent. http://livedocs.adobe.com/flex/201/langref/mx/core/IUIComponent.html Rick Winscot On 12/12/08 12:49 PM, Michael Prescott michael.r.presc...@gmail.com wrote: *Short version: * I have a non-visual component that I'm trying to declare in a repeater, but it seems that MXML doesn't allow this. Is this true? How do you get around this, create a visual component to wrap the non-visual component? *Long version: * I have an ActionScript non-visual component whose declaration looks like this: public class DetailPopup extends EventDispatcher implements IMXMLObject I've used this successfully inside an inline, MXML item renderer, like this: mx:DataGridColumn mx:itemRenderer mx:Component mx:VBox !-- a bunch of other stuff, and then my: -- my:DetailPopUp/ mx:VBox /mx:Component /mx:itemRenderer /mx:DataGridColumn Now that I'm switching from a DataGrid to a Grid, the code ought to look like this: mx:GridItem mx:VBox !-- a bunch of other stuff, and then my: -- (X) my:DetailPopUp/ mx:VBox /mx:GridItem ..except that I'm getting an error, Component declarations are not allowed here. (Note: visual children must implement IUIComponent.) After trying out a bunch of scenarios, it looks like non-visual components can only be declared in the outermost scope of a component or application. Is this true? This is rather awkward, as I need a DetailPopUp for each griditem. Any tips would be very helpful! Michael
Re: [flexcoders] Restrictions on non-visual component placement
Yes, that's what we did! Thanks, team! On Fri, Dec 12, 2008 at 2:55 PM, Alex Harui aha...@adobe.com wrote: In theory, if you take the VBox and its innards and put them in their own MXML file it should work. *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Michael Prescott *Sent:* Friday, December 12, 2008 11:17 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Restrictions on non-visual component placement It still seems to be true. Yes, I can see that before repeaters are involved, but the detail popup creates a relationship between a pair of components - so once I get to an array of such pairs, it seemed like I'd need a detail popup for each pair. It's stateful, and it would get muddled up if one detail popup was trying to coordinate multiple pairs of controls. (Basically, I wanted the repeater to manage instances of the detail popup as well.) Michael On Fri, Dec 12, 2008 at 2:18 PM, Tracy Spratt tspr...@lariatinc.com wrote: It IS, or at least was, the case that non-visual components must be at the root mxml scope. I will try to find it documented. If the component is non-visual, then it does not matter, functionally speaking, where in the DOM it goes. Tracy -- *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Rick Winscot *Sent:* Friday, December 12, 2008 1:25 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Restrictions on non-visual component placement It's difficult to determine what your problem is without knowing a little more about what your DetailPopUp does/is. If you post some code it would be far easier to determine why one context works and another doesn't. Generally... I wouldn't recommend mingling non-visual and visual components in mxml. Your error basically says that your non-visual component doesn't have an appropriate interface for the context you are placing it in. e.g. It should be a IUIComponent. http://livedocs.adobe.com/flex/201/langref/mx/core/IUIComponent.html Rick Winscot On 12/12/08 12:49 PM, Michael Prescott michael.r.presc...@gmail.com wrote: *Short version: * I have a non-visual component that I'm trying to declare in a repeater, but it seems that MXML doesn't allow this. Is this true? How do you get around this, create a visual component to wrap the non-visual component? *Long version: * I have an ActionScript non-visual component whose declaration looks like this: public class DetailPopup extends EventDispatcher implements IMXMLObject I've used this successfully inside an inline, MXML item renderer, like this: mx:DataGridColumn mx:itemRenderer mx:Component mx:VBox !-- a bunch of other stuff, and then my: -- my:DetailPopUp/ mx:VBox /mx:Component /mx:itemRenderer /mx:DataGridColumn Now that I'm switching from a DataGrid to a Grid, the code ought to look like this: mx:GridItem mx:VBox !-- a bunch of other stuff, and then my: -- (X) my:DetailPopUp/ mx:VBox /mx:GridItem ..except that I'm getting an error, Component declarations are not allowed here. (Note: visual children must implement IUIComponent.) After trying out a bunch of scenarios, it looks like non-visual components can only be declared in the outermost scope of a component or application. Is this true? This is rather awkward, as I need a DetailPopUp for each griditem. Any tips would be very helpful! Michael
[flexcoders] MXML Components and measure()
When is it that you have to implement measure()? If you're building components in MXML, purely out of other standard Flex components, do you ever need to bother with measure()? I'm making an MXML item renderer, and I'm running into some trouble with the DataGrid handling the variable row height - particularly once I put this into my renderer: mx:Text htmlText={*some HTML from somewhere*}/ Coming at this rather naively, it seems that the VBox that the Text each ought to have appropriate measure() implementations already, but clearly something's gone wrong. Any tips would be helpful. Regards, Michael
Re: [flexcoders] Defining, but not adding to parent in MXML
That's it exactly. Basically, we have a number of situations where we need to add pop-up details to elements in our application, so I thought I'm trying to make reusable non-visual component that orchestrates that, like this: mx:Whatever id=summary/ mx:Canvas id=myPopUp mx:Label text=All sorts of useful information/ /mx:Canvas *my:PopUpDetail target={summary} popUp={myPopUp} popUpOnRollover=true popUpOnFocus=true /* So I've dug around in PopUpButton to see how it manages its pop-up, and that looks simple enough. But PopUpButton uses the existence of popUp.parent to determine whether it is managing the pop up yet (no parent, and it assumes that it isn't) - so it seemed that, along with my not knowing about includeInLayout=false, creating the popup control in some sort of parentless way was important. Michael On Tue, Dec 9, 2008 at 1:33 AM, Josh McDonald [EMAIL PROTECTED] wrote: I think he's intending to use PopupManager, but wants to define it in the same file as its container? On Tue, Dec 9, 2008 at 4:30 PM, Alex Harui [EMAIL PROTECTED] wrote: Why not use tooltip or popup manager to float that thing? Then it won't be clipped and what not *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Josh McDonald *Sent:* Monday, December 08, 2008 5:04 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Defining, but not adding to parent in MXML That's not exactly what you're after, in this case the object will be added to the list of children, it's just not positioned on parent.updateDisplayList() or counted during parent.measure(). The only way I can think of off the top of my head to do what you're after is wrap it in mx:Array. Here's a quick example: http://pastie.textmate.org/private/hjd33kkztkuojpzltd2ylw You can use mx:component to do thins kind of like this, but mx:component defines classes, not interfaces, and IIRC, mxmlc is kinda picky as to where it'll let you do it. -Josh On Tue, Dec 9, 2008 at 10:53 AM, Michael Prescott [EMAIL PROTECTED] wrote: Sweet! Nice that there's an easy answer. On Mon, Dec 8, 2008 at 4:47 PM, Tracy Spratt [EMAIL PROTECTED] wrote: includeInLayout=false (also visible=false, of course) Tracy -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Michael Prescott *Sent:* Monday, December 08, 2008 4:28 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Defining, but not adding to parent in MXML Is it possible to define a component but somehow cause it to be omitted from the enclosing component's list of children? Essentially: mx:VBox mx:Label text=This is added as a child of the vbox, as normal./ mx:Label visible=false text=This is invisible.. but is there some way to not have it be a child of the vbox at all?/ /mx:VBox An obvious question is, Why are you defining the component there if it's not supposed to be a child? I've got a datagrid inline item renderer that always shows a (summary) piece of information, but I want a pop-up to appear on rollover of the summary. The problem I'm having is that the detail is (of course) added to the container that holds the summary, which causes the datagrid cell to blow open too big. mx:itemRenderer mx:Component mx:Box !-- This always shows up, which is fine and dandy -- mx:MySummary data={data} popUp={detail} / * !-- It would be nice if this was never added to the parent box, so that it's free to be used as a popup -- mx:MyDetail id=detail data={data}/* /mx:Box /mx:Component /mx:itemRenderer Defining the detail outside the itemrenderer entirely seems one way to go, except that this would mean there's only one pop up for all of the rows of the data grid. Can you do this sort of thing with a nested component? mx:itemRenderer mx:Component mx:Box !-- This always shows up, which is fine and dandy -- mx:MySummary data={data} mx:popUp * mx:Component mx:MyDetail id=detail data={data}/ /mx:Component* /mx:popUp /mx:MySummary /mx:Box /mx:Component /mx:itemRenderer Any tips would be appreciated! Michael -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/ :: http://twitter.com/sophistifunk -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/ :: http://twitter.com/sophistifunk
[flexcoders] Defining, but not adding to parent in MXML
Is it possible to define a component but somehow cause it to be omitted from the enclosing component's list of children? Essentially: mx:VBox mx:Label text=This is added as a child of the vbox, as normal./ mx:Label visible=false text=This is invisible.. but is there some way to not have it be a child of the vbox at all?/ /mx:VBox An obvious question is, Why are you defining the component there if it's not supposed to be a child? I've got a datagrid inline item renderer that always shows a (summary) piece of information, but I want a pop-up to appear on rollover of the summary. The problem I'm having is that the detail is (of course) added to the container that holds the summary, which causes the datagrid cell to blow open too big. mx:itemRenderer mx:Component mx:Box !-- This always shows up, which is fine and dandy -- mx:MySummary data={data} popUp={detail} / * !-- It would be nice if this was never added to the parent box, so that it's free to be used as a popup -- mx:MyDetail id=detail data={data}/* /mx:Box /mx:Component /mx:itemRenderer Defining the detail outside the itemrenderer entirely seems one way to go, except that this would mean there's only one pop up for all of the rows of the data grid. Can you do this sort of thing with a nested component? mx:itemRenderer mx:Component mx:Box !-- This always shows up, which is fine and dandy -- mx:MySummary data={data} mx:popUp * mx:Component mx:MyDetail id=detail data={data}/ /mx:Component* /mx:popUp /mx:MySummary /mx:Box /mx:Component /mx:itemRenderer Any tips would be appreciated! Michael
Re: [flexcoders] Defining, but not adding to parent in MXML
Sweet! Nice that there's an easy answer. On Mon, Dec 8, 2008 at 4:47 PM, Tracy Spratt [EMAIL PROTECTED] wrote: includeInLayout=false (also visible=false, of course) Tracy -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Michael Prescott *Sent:* Monday, December 08, 2008 4:28 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Defining, but not adding to parent in MXML Is it possible to define a component but somehow cause it to be omitted from the enclosing component's list of children? Essentially: mx:VBox mx:Label text=This is added as a child of the vbox, as normal./ mx:Label visible=false text=This is invisible.. but is there some way to not have it be a child of the vbox at all?/ /mx:VBox An obvious question is, Why are you defining the component there if it's not supposed to be a child? I've got a datagrid inline item renderer that always shows a (summary) piece of information, but I want a pop-up to appear on rollover of the summary. The problem I'm having is that the detail is (of course) added to the container that holds the summary, which causes the datagrid cell to blow open too big. mx:itemRenderer mx:Component mx:Box !-- This always shows up, which is fine and dandy -- mx:MySummary data={data} popUp={detail} / * !-- It would be nice if this was never added to the parent box, so that it's free to be used as a popup -- mx:MyDetail id=detail data={data}/* /mx:Box /mx:Component /mx:itemRenderer Defining the detail outside the itemrenderer entirely seems one way to go, except that this would mean there's only one pop up for all of the rows of the data grid. Can you do this sort of thing with a nested component? mx:itemRenderer mx:Component mx:Box !-- This always shows up, which is fine and dandy -- mx:MySummary data={data} mx:popUp * mx:Component mx:MyDetail id=detail data={data}/ /mx:Component* /mx:popUp /mx:MySummary /mx:Box /mx:Component /mx:itemRenderer Any tips would be appreciated! Michael
Re: [flexcoders] Method variable scoping problem with Flex compiler
*Why* it's different I can't tell you, but if you're being regularly surprised, it sounds like you might benefit from skimming through the language reference. This behavior is described on the Variableshttp://livedocs.adobe.com/flex/3/html/help.html?content=03_Language_and_Syntax_07.html#118946page of help resource center, under 'Understanding variable scope'. From there (this may scare you even more!): *ActionScript variables, unlike variables in C++ and Java, do not have block-level scope. ... An interesting implication of the lack of block-level scope is that you can read or write to a variable before it is declared, as long as it is declared before the function ends. This is because of a technique called hoisting, which means that the compiler moves all variable declarations to the top of the function.* On Thu, Dec 4, 2008 at 5:31 PM, toofah_gm [EMAIL PROTECTED] wrote: I came across another scoping issue today that scared me. I sure wish that the scoping in the ActionScript language worked the same way C++, C#, Java, and others work! Here's the code: for each (var o:Object in myArray) { var myProblemObject:ProblemObject; if (some condition) { myProblemObject = new ProblemObject(); ... more code here ... } ... still more code here... if (myProblemObject) { ... do some stuff ... } } In this code myProblemObject is NULL when things start out...great! The problem comes after an instance of myProblemObject gets created. Every time through the loop after this myProblemObject is no longer NULL. This is not consistent with any other language that I have worked with and is therefore not obvious to the developer working with the code. Why is myProblemObject not reset each time through the loop? It is a variable declaration. Gary --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, toofah_gm [EMAIL PROTECTED] wrote: It seems to me and my co-workers that the Flex compiler is broken when it comes to local variable scoping within methods. For example: for (var i:int=0; icount; i++) { // do something } for (var i:int=0; icount; i++) { // do something else } This gives a compiler warning stating that 'i' is already defined. But in every other language that I have used, this is completely valid. Yes 'i' was defined above, but 'i' should only be scoped within the 'for' loop and should be invalid outside of it. Another example: if (x) { var myArray:Array = new Array(); // do more stuff } myArray.push(some data); This one compiles, when I believe that it shouldn't. myArray should only be defined within the 'if' statement. If you don't go into the 'if' statement you have a problem here. Does anyone understand why the Flex compiler allows this? Is this just a BUG with the compiler? Anyway, this is just driving me a little crazy. ;) Gary
[flexcoders] Re: Why no initial FlexEvent.SHOW event dispatched?
When a UIComponent is set to visible for the first time by the LayoutManager, the SHOW event is suppressed. The CREATION_COMPLETE event fired immediately after that call to setVisible, so you should be able to achieve whatever effect you're going for by registering the same function to listen for both the SHOW and CREATION_COMPLETE events. --- In flexcoders@yahoogroups.com, per.olesen [EMAIL PROTECTED] wrote: I was wondering why a flex control or container does not dispatch a FlexEvent.SHOW when showing the first time? Given this code: mx:Panel id=panel show=Alert.show('I am showing') creationComplete=Alert.show('I was created')/ mx:Button click=panel.visible = !panel.visible label=Show/Hide/ When the panel Panel is constructed, the creationComplete is fired and I see my Alert I was created. But I DO NOT get the Alert I am showing. If I then click the button to hide it and click it again to show it, I am getting the show event. Why no show event initially? This applies equally well to TitleWindow, Button, Box, ...
Re: [flexcoders] Nulls in data binding chains
Thanks, Dave. My only concern was that it would turn out not to be supported behavior and might stop working in certain circumstances - before I plough ahead and rely on it. :-) Regards, Michael On Sun, Nov 30, 2008 at 11:33 AM, Dave Kong [EMAIL PROTECTED] wrote: I dont know any docs, but I think it happened to me a couple of times and the result is that the databinding simply does not fire for any changes after the null in the chain. Do a simple test app and try it out. it will be faster than you looking for the doc. On Fri, Nov 28, 2008 at 12:01 PM, Michael Prescott [EMAIL PROTECTED] wrote: Is there any reference material that describes how Flex behaves when it encounters a null part way along a data binding chain? Michael
[flexcoders] Nulls in data binding chains
Is there any reference material that describes how Flex behaves when it encounters a null part way along a data binding chain? Michael
Re: [flexcoders] Re: Newbie binding question
Oh sorry, I omitted the the getter from my example - but yes, I have getters. (The IDE warns you that [Bindable] doesn't do anything when you omit the getter.) I'm wondering if data binding requires the event to be a PropertyChangeEvent for data binding to work? Michael On Mon, Nov 24, 2008 at 11:12 PM, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Michael Prescott [EMAIL PROTECTED] wrote: I'm having some troubles with data binding and a named event generated by a custom non-visual component. What I'm trying to do is have a property (say, 'data') which, when it changes, triggers the usual data-binding updates, but also fires an event that can be listened to in the MXML. For example: foo:MyClass id=thingy dataChanged=Alert.show('hi mom');/ mx:Label text={thingy.data}/ I can't seem to meet both of these requirements without throwing two separate events. Is this what I should expect? When I do this: [Event(name=dataChanged)] public class MyClass { [Bindable(name=dataChanged)] public function set data(data:Object):void { this._data = data; dispatchEvent( new Event(dataChanged) ); ..then the data binding doesn't work. (The label text doesn't get updated.) It seems I have to resort to vanilla data binding (with no event name), and in addition throw a 'dataChanged' event of my own. [Event(name=dataChanged)] public class MyClass { [Bindable] public function set data(data:Object):void { this._data = data; dispatchEvent( new Event(dataChanged) ); Am I missing something? When Flex comes back to look at your data because you fired the event, it can't get it because you made it write only by only providing a setter and not a getter. HTH; Amy
Re: [flexcoders] Flexbuilder is getting on my last nerve
I haven't come across this, but I heartily recommend upgrading to 3.0.2 if you haven't already. On Tue, Nov 25, 2008 at 3:21 PM, wkolcz [EMAIL PROTECTED] wrote: I like to start my AS files by adding all the import statement of all the items I know I am going to need. However, if I forget one and FB is nice enough to add it form me, it tends to delete a couple of mine (seemingly randomly, except for Alert...It hates that one). Is this a 'feature'? Is it a bug? Can it be stopped. I appreciate adding ones on the fly for me, but my apps are striking errors since it deletes them for me.
[flexcoders] Newbie binding question
I'm having some troubles with data binding and a named event generated by a custom non-visual component. What I'm trying to do is have a property (say, 'data') which, when it changes, triggers the usual data-binding updates, but also fires an event that can be listened to in the MXML. For example: foo:MyClass id=thingy dataChanged=Alert.show('hi mom');/ mx:Label text={thingy.data}/ I can't seem to meet both of these requirements without throwing two separate events. Is this what I should expect? When I do this: [Event(name=dataChanged)] public class MyClass { [Bindable(name=dataChanged)] public function set data(data:Object):void { this._data = data; dispatchEvent( new Event(dataChanged) ); ..then the data binding doesn't work. (The label text doesn't get updated.) It seems I have to resort to vanilla data binding (with no event name), and in addition throw a 'dataChanged' event of my own. [Event(name=dataChanged)] public class MyClass { [Bindable] public function set data(data:Object):void { this._data = data; dispatchEvent( new Event(dataChanged) ); Am I missing something? Michael
[flexcoders] Re: check compiler configurations in runtime
The stack trace trick works well. I've written a little class that automates the check. http://michaelvandaniker.com/blog/2008/11/25/how-to-check-debug-swf/ --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: If the app has debug info in it, the text in an Error().getStackTrace() will be different. I don't think there's a test to see if you're hooked to a debugger. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andres Serral Sent: Wednesday, November 19, 2008 10:40 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] check compiler configurations in runtime Hello. I´ve a simple question. Can I access to compiler configurations in runtime? Basically I need check if the app is in debugmode Thanks
[flexcoders] Re: extends, 2 questions
Just create the package structure for mx.core in your source folder and copy UIComponent to that directory. The compiler will use that UIComponent instead of the one in the SDK, so if you change the base class there everything should work as you expect. You'll need to grab Version.as as well because UIComponent.as includes it. --- In flexcoders@yahoogroups.com, bmilesp [EMAIL PROTECTED] wrote: Hello, i want to extend the core FlexSprite class AND have all the subclasses (eg. UIComponent) in the flex framework use the modified FlexSprite class. so i would make a packager and the class would extend FlexSprite: class ModFlexSprite extends FlexSprite{ //more properties here... } so i did this, and my idea was to just change the core UIComponent.as class to extend ModFlexSprite instead of FlexSprite. So this leads to question one: Is this the easiest way to achieve this? If so, the i guess i have to recompile the framework somehow, since building and running my app alone doesn't work. Question 2: how do i recompile the Flex Framework? thanks in advance! -b
[flexcoders] Re: May I save BitmapAsset instance to database?
I've never tried to extract and save the contents of an audio or video file to a database, so I'm not sure what the procedure would be. When I had to do something like this in the past I just saved the file to the server and stored the URL in the database. Like Jim suggested, Peter Elst's blog may be a good place to look if you want to go that route. --- In flexcoders@yahoogroups.com, markflex2007 [EMAIL PROTECTED] wrote: Hi Michael, Thanks. Would you please give me an idea how to save Video or Audio data to database like saving image with ByteArray. Thanks Mark --- In flexcoders@yahoogroups.com, Michael VanDaniker michael@ wrote: Your question is a bit vague, but I'll try and be of some help. You can use the ImageSnapshot class to get the ByteArray the backs your image. Then you can store those bytes in a database and pull them up later. If you're building an AIR application and saving the image to a local database you'll want to read up on the SQL utilities available to you here: http://livedocs.adobe.com/flex/3/langref/localDatabaseSQLSupport.html If you're building a browser app you can pass the ByteArray to a webservices or a remote object that will store the image in a database. http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_4.html If you can be more specific about your problem, we can provide more help.
[flexcoders] Re: May I save BitmapAsset instance to database?
Your question is a bit vague, but I'll try and be of some help. You can use the ImageSnapshot class to get the ByteArray the backs your image. Then you can store those bytes in a database and pull them up later. If you're building an AIR application and saving the image to a local database you'll want to read up on the SQL utilities available to you here: http://livedocs.adobe.com/flex/3/langref/localDatabaseSQLSupport.html If you're building a browser app you can pass the ByteArray to a webservices or a remote object that will store the image in a database. http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_4.html If you can be more specific about your problem, we can provide more help. --- In flexcoders@yahoogroups.com, markflex2007 [EMAIL PROTECTED] wrote: Hi, I create a BitmapAsset instance from image class and I want to save it to database and other people can see the image when he read out BitmapAsset instance from database. Do you think if it is possible? and how to save and read from database? Thanks Mark
[flexcoders] Re: creating a class - question extending
Image, like all UIComponents, has a zero argument constructor. Unless your imageWithData knows what its username is going to be without any outside info, it wouldn't make sense to do much of anything with the username in the constructor. If you're going to be instantiating your images in Actionscript you can just assign the username after the object is created. --- In flexcoders@yahoogroups.com, luvfotography [EMAIL PROTECTED] wrote: Hi, I'm trying to create a class that extends the image class, I need to associate a username with the image, Here is what I have: package { import mx.controls.Image; public class imageWithData extends Image { private var _username:String; public function imageWithData() { super(); // _username = ??? } public function set username(value:String):void { _username = value; } public function get username():String { return _username; } } } I am unclear as to what goes after the 'super()' do I need a _username = something? thanks,
[flexcoders] Re: Use the Hslider to control the image
displayObjectA can by masked by displayObjectB with the assignment displayObjectA.mask = displayObjectB; This will cause only the portions of displayObjectA that are under displayObjectB to show through. Also, you won't actually see any of displayObjectB. There is an example in the docs that demonstrate this. It shouldn't be difficult to apply a similar solution to your problem. http://livedocs.adobe.com/flex/3/langref/flash/display/DisplayObject.html#mask For your particular problem can control the width of the masked DisplayObject with your slider. --- In flexcoders@yahoogroups.com, ashlytu [EMAIL PROTECTED] wrote: I have asked this question before,but i might not make it clear enough. I need to use the hslider to control how many percent of the image will be shown in a panel,when I trag the slider to the zero, none of the picture shows ,and when I drag it to the right edge, and the whole picture is shown.Tim Hoff have told me a method ,but I guess I have to use mask, cause the image cannot move, but I have to be controlled by the Hslider. I don't know how to use the mask ,Would you please help me?Thanks!! Ashly
[flexcoders] Re: sortCompareFunction - First the number's then the null's
Use this as the sortCompareFunction on your column: public function compareValues(a:Object, b:Object):int { if(a == null b == null) return 0; if(a == null) return 1; if(b == null) return -1; if(a b) return -1; if(a == b) return 0; return 1; } --- In flexcoders@yahoogroups.com, hugocorept [EMAIL PROTECTED] wrote: Hi all, In my App I need a custom sortCompareFunction to resove my problem. My problem is, if I have a column with 1, 2, 1, 3, null, 2, null', by default flex sort like this null, null, 1, 1, 2, 2, 3 or 3, 2, 2, 1, 1, null, null. It means, first cames the null then the values. I need 1, 1, 2, 2, 3, null, null How can I have the reverse, first the values ASC, then the nulls. Thank you so much. Core Reagards
[flexcoders] Re: UM Extension
All you have to do is extend the right classes :) Your event class should extend UMEvent. UMEvent has a callbacks property, and within that Callbacks object you'll specify the functions you want called when your delegate finishes (successfully or otherwise). Like so: private function submit():void { var callbacks:Callbacks = new Callbacks(r); var myEvent:MyEvent = new MyEvent(MyEvent.MY_EVENT,callbacks); submitEvent.dispatch(); } private function r(o:Object):void { trace(o); } You should make the base class for your command com.universalmind.cairngorm.commands.Command. You need to call the super method within execute to set up view notification. When you call super in result or fault, the respective methods you specified in your Callbacks object will be called. --- In flexcoders@yahoogroups.com, Darrin Kay [EMAIL PROTECTED] wrote: I am trying to learn the UM extensions within Cairngorm, but there are no good examples of how this is done. Here is what I am trying to do, I have a view and when a user clicks a button an event is called. Then off to the command, and if the execute passes, I go to the result function in the command file. In the result function I load the data into the model, and change my view. On the new view I need to call a function after I know I have the data back. That is what I can not figure out. Please help.