[flexcoders] Re: How can detect Flash setting manager popup?
Awesome Kaspar, that's really help me. Thanks. --- In flexcoders@yahoogroups.com, kaspar.luethi kas...@... wrote: the sad truth is: you can't, except when using a workaround. register and vote: http://bugs.adobe.com/jira/browse/FP-41 trick is to try to write bitmap data to the stage, which is forbidden when security dialog is open. you cannot detect when and what was changed, though. in my case it did not help, since in some cases i have a video shown, where i do not have bitmap access - so access to stage is forbidden then to. maybe there is another workaround for this? there is also the microphone.muted property you can check if access to mic is allowed. k. p.s. public class SettingsWatcher extends Sprite { private var dummyBitmap:BitmapData = new BitmapData(1, 1); private var drawObject:IBitmapDrawable; private var open:Boolean = false; private var triggered:Boolean = false; public function SettingsWatcher(stage:IBitmapDrawable):void { drawObject = stage; var timer:Timer = new Timer(500); timer.addEventListener(timer, onTimer); timer.start(); } public function isOpen():Boolean { return open; } public function isTriggered():Boolean { return triggered; } public function setTriggered(value:Boolean):void { triggered = value; } public function onTimer(event:TimerEvent):void { try { dummyBitmap.draw(drawObject); if(open) { dispatchEvent(new Event(SecurityDialogClosed)); } open = false; } catch (error:Error) { open = true; } } } --- In flexcoders@yahoogroups.com, wjacker2 wjacker2@ wrote: Hi All, I write a flex application embed to our website,in the flex application will used microphone.this flex will be show on the web when the flash setting manager displayed,in the other time it will be hide out.but i can not find a way for detect flash setting manager popup from search on google.i write a flag for mark when i used microphone first time, it looks fine until user select the Rember checkBox in the flash setting manager panel.In that case next time for visit the website the flash setting manager not display anymore because flash player already rember user's selection. very appreciate any feedback. Thanks, Jack
Re: [flexcoders] setStyle not valid
small mistake use fontSize styleLabel.setStyle(fontSize, 72); With Regards, Niamath Basha www.niamathbasha.wordpress.com 2009/7/8 j2me_soul j2me_s...@163.com I try to change the style at runtime mx:Button x=38 y=44 label=为中国喝彩 click=butClickHandler(event)/ mx:Label id=styleLabel text=I'm Label/ private function butClickHandler(event:MouseEvent):void { /* it doesn't work */ styleLabel.setStyle(font-size, 72); } -- 200万种商品,最低价格,疯狂诱惑你http://count.mail.163.com/redirect/footer.htm?f=http://gouwu.youdao.com
Re:Re: [flexcoders] setStyle not valid
I try to change the backgroundImage of a canvas ?private function butClickHandler(event:MouseEvent):void ?{ ??? /* invalidly */ ??styleCanvas.setStyl e(backgroundImage, @Embed('bird.png')); ? //? styleCanvas.setStyle(backgroundImage, Embed('bird.png')); ? //? styleCanvas.setStyle(background-Image, @Embed('bird.png')); ?? //? styleCanvas.setStyle(background-Image, @Embed(source='bird.png')); ??? /* normally */ ??styleCanvas.setStyl e(backgroundColor, #77); ??Button(event.target ).setStyle(fontSize, 22); ?} ??? mx:Button x=38 y=44 label=为中国喝彩 click=butClickHandler(event)/ ?mx:Canvas id=styleCanvas width=80 height=80 ??mx:Label text=I'm Label/ ?/mx:Canvas 在2009-07-09,niamath basha niamathba...@gmail.com 写道: small mistake use fontSize styleLabel.setStyle(fontSize, 72); With Regards, Niamath Basha www.niamathbasha.wordpress.com 2009/7/8 j2me_soul j2me_s...@163.com I try to change the style at runtime mx:Button x=38 y=44 label=为中国喝彩 click=butClickHandler(event)/ mx:Label id=styleLabel text=I'm Label/ private function butClickHandler(event:MouseEvent):void { /* it doesn't work */ styleLabel.setStyle(font-size, 72); } 200万种商品,最低价格,疯狂诱惑你
[flexcoders] Streaming in LCDS
Hi all, I have a problem with streaming in LCDS. while running the sample using streaming channel it works fine when run it as 'localhost'. but when I tried to run it through IP address its not working. I tried to change the endpoint url by giveing ip address. but its not working. plese help me out. With Regards, Niamath Basha www.niamathbasha.wordpress.com
Re: [flexcoders] undefined in stack trace (Console), stack overflow
I would say the undefined trace matches a simple trace(one_var); in a file which is particular to your offline project (not in shared libs). To talk again about events based stack overflow, I would put two surrounding trace in event handlers to see stacked functions : function handlerFunction(e:event):void { trace('handlerFunction for', e.type); // code goes here trace('/handlerFunction for',e.type); } thomas --- http://www.web-attitude.fr/ msn : thomas.parqu...@web-attitude.fr softphone : sip:webattit...@ekiga.net sip%3awebattit...@ekiga.net téléphone portable : +33601 822 056 2009/7/8 Erik de Bruin erikdebr...@gmail.com Hi, Thanks for your swift reply. I did a check to see if what you suggest might be the case, by inserting a trace() in all the event dispatch and handler functions, but nowhere in the chain does this type of recursion occur. I do however see that the entire chain is run dozens of times, while the data structure is build from the data in the database. But this is expected behavior, and the case remains that this code functions flawlessly in the online version (again, build from the same codebase). Any suggestions on how to proceed with debugging, as well as why the stack trace shows a single final line with only the word undefined in it, are much apreciated. Regards, EdB On Wed, Jul 8, 2009 at 5:44 PM, thomas parquiermailingli...@web-attitude.fr mailinglists%40web-attitude.fr wrote: You may have one type of event (A) handled in a function which dispatches another type of event (B) handled in a function which dispatches an event of type A. If dispatching occurs before handler functions return you may get a stack overflow. thomas --- http://www.web-attitude.fr/ msn : thomas.parqu...@web-attitude.frthomas.parquier%40web-attitude.fr softphone : sip:webattit...@ekiga.net webattitude%40ekiga.net téléphone portable : +33601 822 056 2009/7/8 erikdebruin_nl erikdebruin+flexcod...@gmail.comerikdebruin%2Bflexcoders%40gmail.com Hi, I've Googled me senseless, but I can't find a clue to my latest problem: When I run my application in the browser, all is fine. When the same app in AIR (we've build it so the same codebase is shared between on- and offline versions), I get an exception and the last line in the stack trace (as shown in the Console) reads undefined. The error dialog the player throws up (after clicking on the Resume (F8) button in the debug perspective) tells me a stack overflow happened. The funny thing is, when I disable the code that seems to be the cause (taking my clues from the stack trace), the problem remains, but the stack trace tells me another line is the problem... and so on and on. Google tells me that a stack overflow mostly has to do with rampant recursion, but my app doesn't use recursion anywhere. It does however use a lot of event chains. Do these count as recursion? What does it mean that the last line of the stack trace reads undefined? Any suggestions about further debugging my problem are very welcome! Thanks in advance, EdB -- Ix Multimedia Software Jan Luykenstraat 27 3521 VB Utrecht T. 06-51952295 I. www.ixsoftware.nl
Re: [flexcoders] Re: dynamic image gallery
Hi, I think addImg() in imageListHandler should be in concernOriginalReceived. And I'm not sure source strings in addImg() are expanded (such as assets/homeprofile_pics/extra_pics/{homeImages.img1}), I think expansion of vars in {} only occurs in tags not in as. But your code is much complicated, to simplify a little I would - add a public data array in imgGallery, bound to photoList 's dataprovider - add an id to imgGallery - set gallery's data directly in concernOriginalReceived thomas --- http://www.web-attitude.fr/ msn : thomas.parqu...@web-attitude.fr softphone : sip:webattit...@ekiga.net sip%3awebattit...@ekiga.net téléphone portable : +33601 822 056 2009/7/9 stinasius stinas...@yahoo.com hi i have changed the dataprovider of the gallery from an array to an arraycollection, what an trying to archive is that when someone clicks on the list a different set of images is loaded in the gallery, that mean i would like to update the arraycollection with a new set of images when an item in the list is clicked. i still have failed to get the images to load dynamically but when i hard-code the image path in the collection the images loaded. but i think am making progress but i need help on what to do to update the collection with dynamic image paths. here is my new code. gallery.mxml ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:ns1=components.* mx:Script ![CDATA[ import mx.rpc.events.ResultEvent; import mx.controls.Alert; import mx.managers.CursorManager; import mx.collections.ArrayCollection; [Bindable] private var dataAr1:ArrayCollection; private function concernOriginalReceived(event:ResultEvent):void { dataAr1 = event.result as ArrayCollection; } private function imageListHandler(event:Event):void{ trace(Someone clicked on the Large Green Button!); remoteObj.gallery.send(); addimg(); } [Bindable] public var home_img1:ArrayCollection = new ArrayCollection([ {source:assets/homeprofile_pics/extra_pics/bedroom-decorations.jpg},{source:assets/homeprofile_pics/extra_pics/Interior_Classical_bedroom_interior_005016_.jpg}, {source:assets/homeprofile_pics/extra_pics/clean-livingroom.jpg},{source:assets/homeprofile_pics/extra_pics/regreen-interior-design-ideas-remodeling-green-kitchen.jpg}]); public function addimg():void { if (home_tiles.selectedItem !== null) { home_img1.setItemAt({source:assets/homeprofile_pics/extra_pics/{homeImages.img1}},0); home_img1.setItemAt({source:assets/homeprofile_pics/extra_pics/{homeImages.img2}},1); home_img1.setItemAt({source:assets/homeprofile_pics/extra_pics/{homeImages.img3}},2); home_img1.setItemAt({source:assets/homeprofile_pics/extra_pics/{homeImages.img4}},3); } } ]] /mx:Script mx:RemoteObject id=remoteObj destination=ColdFusion source=gallery.cfcs.gallery mx:method name=gallery result=concernOriginalReceived(event) fault=Alert.show(event.fault.faultString,'Error'); mx:arguments imgid_home{imgid_home.text}/imgid_home /mx:arguments /mx:method /mx:RemoteObject mx:Model id=homeImages images img1{dataAr1.getItemAt(0).img1}/img1 img2{dataAr1.getItemAt(0).img2}/img2 img3{dataAr1.getItemAt(0).img3}/img3 img4{dataAr1.getItemAt(0).img4}/img4 /images /mx:Model ns1:imageName id=home_tiles x=0 y=140 addImageEvent=imageListHandler(event)/ ns1:imgGallery x=170 y=140/ mx:Text id=imgid_home text={home_tiles.selectedItem.imgid_home}/ mx:Label id=img1 x=254 y=0 text={dataAr1.getItemAt(0).img1}/ mx:Image x=499 y=0 mx:sourceassets/homeprofile_pics/extra_pics/{homeImages.img4}/mx:source /mx:Image /mx:Application imageName.mxml ?xml version=1.0 encoding=utf-8? mx:List xmlns:mx=http://www.adobe.com/2006/mxml; dataProvider={dataAr} labelField=location creationComplete=Init() change=ClickEventHandler() selectedIndex=0 mx:Script ![CDATA[ import mx.rpc.events.ResultEvent; import mx.controls.Alert; import mx.managers.CursorManager; import mx.collections.ArrayCollection; public function Init():void{ homeSvc.load(); } [Bindable] private var dataAr:ArrayCollection = new ArrayCollection; public function displayResult(event:ResultEvent):void{ dataAr = new ArrayCollection( (event.result as ArrayCollection).source); } private function ClickEventHandler():void{ trace(Ouch! I got clicked! Let me tell this to the world.); dispatchEvent(new Event(addImageEvent, true));// bubble to parent } ]] /mx:Script mx:RemoteObject id=homeSvc destination=ColdFusion source=gallery.cfcs.homes1 showBusyCursor=true fault=CursorManager.removeBusyCursor();Alert.show(event.fault.message) mx:method name=load result=displayResult(event) / /mx:RemoteObject mx:Metadata [Event(name=addImageEvent, type=flash.events.Event)] /mx:Metadata /mx:List imgGallery.mxml ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; width=100% height=100% !--mx:Array id=home_img mx:Object label=img1
[flexcoders] Make label of LegendItem selectable
Hi, I try to make the text of the LegendItem label selectable, unfortunately with no luck. I thought this approach woud do the trick: 1.) Extend LegendItem 2.) override the set label and get label methods 3.) override the createChildren method In the createChildren() method I try to add a Label (made it selectable) to the LegendItem, with the text which is set by the setter for the label. Unfortunately the Label never shows up - anybody knows how to do this right? Thank's rico
Re: [flexcoders] Actionscript on JSR223
On Wednesday 08 Jul 2009, Tim Rowe wrote: Does anyone happen to know of any JSR223 (Java platform scripting) implementation(s) of ActionScript for dynamic use? I'm currently looking through a lot of our business data validation logic which is implemented in two places arguably unnecessarily - both on the front-end in AS and then again on the back-end in Java. Isn't that a good idea ? In theory anyone could write a replacement front-end and call your services, so you should validate the business rules there. At the same time, you don't want to round-trip to provide feedback to the user, so the rules have to be in the front end too. I would argue the front end rules would be more relaxed, and probably not aware of the full security context, however. -- Helping to assertively cultivate high-end wireless intuitive models as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] Re: why does my MXML act differently than my AS?
On Wednesday 08 Jul 2009, Pan Troglodytes wrote: For those interested: https://bugs.adobe.com/jira/browse/FB-21363 Have you used '--keep-source' from the MXML version and compared to your AS class ? -- Helping to widespreadedly market supply-chains as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] Performing a Trace with SDK Compiler Only
On Tuesday 07 Jul 2009, Angelo Anolin wrote: Care to show some examples of performing a trace using the SDK compiler only? Put calls to 'trace(stringhere)' in your code. Build your code, making sure it's debug enabled. Start fdb Type 'run' Load your .swf file -- Helping to centrally administrate fine-grained sexy dynamic e-business as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] 3 questions
Hello, I have 3 questions - How to initialize a DateField with the date of the day ? - How to add a skin for the buttons of a buttonbar ? - How to display in red a given row of a DataGrid ? Thank you, Christophe
[flexcoders] Re: dynamic image gallery
hi, care to show how to do that, kinda confused
Re: [flexcoders] Flex 4 System Manager idle threshold
Ok. Anyway this can be made an enhancement for the Flex 4 SDK? It should be relatively easy to modify the System Manager to accept the threshold as a user epecified value, no? ( I believe NativeApplication in AIR allows for this) - superabe On Thu, Jul 9, 2009 at 1:13 AM, Alex Harui aha...@adobe.com wrote: I don’t see an easy way to change it. Probably have to monkey-patch it Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *superabe superabe *Sent:* Wednesday, July 08, 2009 5:18 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Flex 4 System Manager idle threshold Is there a way to change the idle time threshold for the Flex 4 SystemManager. ? I'd like to change the idle time to be 2 seconds but the value seems to be read from a private static const in SystemManager and set to a default of 1 second? TIA, superabe
[flexcoders] Re: undefined in stack trace (Console), stack overflow
--- In flexcoders@yahoogroups.com, Erik de Bruin erikdebr...@... wrote: Hi, Thanks for your swift reply. I did a check to see if what you suggest might be the case, by inserting a trace() in all the event dispatch and handler functions, but nowhere in the chain does this type of recursion occur. I do however see that the entire chain is run dozens of times, while the data structure is build from the data in the database. But this is expected behavior, and the case remains that this code functions flawlessly in the online version (again, build from the same codebase). Any suggestions on how to proceed with debugging, as well as why the stack trace shows a single final line with only the word undefined in it, are much apreciated. Hey, Erik; You might want to call disableAutoUpdate on the collection, so you just get one event at the end (when you call enableAutoUpdate). If that doesn't help, I'm not sure what else to suggest without looking at your code. HTH; Amy
[flexcoders] Re: Nested Objects with webORB PHP
channel disconnect error generally means there is something wrong with your PHP code. Charles is a commercial product. It does have a time limited demo (ie. it will work for some small period of time and then quit). I still recommend Charles. If you are doing any serious work with AMF then it is invaluable and will pay for itself very quickly. --- In flexcoders@yahoogroups.com, raja_s_patil kpr.rspa...@... wrote: thanks valdhor Just treat them as you normally would. WebORB's serialization/deserialization should take care of everything for you. I have used nested objects (Or objects containing other objects) when sending from PHP to Flex. I have not done it the other way but would expect it to work the same. Well i tried PHP to Flex successfully works nicely. but Flex to PHP receives Object as VOPurchase order but following code causes some problem $arr = array(); foreach($voPO as $key = $val) { $arr[$key] = $val; } return $arr; I suspect that object sent and received from flex is not exactly same as object voPO created natively in PHP. B'coz same code works fine if i create it just above the $arr statement and returns array to flex nicely. But when I try to do with parameter received from flex channel disconnect error is reported. If you are having problems try seeing exactly what you are sending/receiving with Charles (http://www.charlesproxy.com). Thanks for the link. But its a commercial project any free or open source utility (win/lin) such as charles ? Thanks and best regards Raja
Re: [flexcoders] Re: dynamic image gallery
Sorry didnt mean to be offensive, but the difficulty to read the code is probably also the problem : the array of paths to images is build three times item by item and mx:Model may not dispatch event on item update. In dataAr1, homeImages and home_img. dataAr1 is bindable so you could build the dataprovider here, in concernOriginalReceived : public var dataAr:ArrayCollection = new ArrayCollection; private function concernOriginalReceived(event:ResultEvent):void { dataAr1 = new ArrayCollection( [ {label:img1, fullImage:assets/homeprofile_pics/extra_pics/+lastResult[0].img1}, {label:img2, fullImage:assets/homeprofile_pics/extra_pics/+lastResult[0].img2}, {label:img3, fullImage:assets/homeprofile_pics/extra_pics/+lastResult[0].img3}, {label:img4, fullImage:assets/homeprofile_pics/extra_pics/+lastResult[0].img4} ] ); } you could either push dataAr1 here into imgGallery (assuming below imgGallery's id is gallery ) (so bindable would not be usefull for imageGallery) : gallery.home_img = dataAr1; or modify imgGallery's horizontalList to use dataAr1 (which has to be public) as dataProvider : mx:HorizontalList id=photoList dataProvider={parentDocument.dataAr1} itemRenderer=components.Thumbnail columnCount=4 width=98%/ thomas --- http://www.web-attitude.fr/ msn : thomas.parqu...@web-attitude.fr softphone : sip:webattit...@ekiga.net sip%3awebattit...@ekiga.net téléphone portable : +33601 822 056 2009/7/9 stinasius stinas...@yahoo.com hi, care to show how to do that, kinda confused
RE: [flexcoders] 3.3 API confusion
Hi, That was a mistake in the doc. The addAll() method should not have been documented, and the same is true for the addAllAt() method. They will be available in a future release. Stephen From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Brian Sterling Sent: Wednesday, July 08, 2009 8:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] 3.3 API confusion I'm confused. The livedocs show a new addAll() method in ListCollectionView: http://livedocs.adobe.com/flex/3/langref/mx/collections/ListCollectionView.html#addAll() However, even after installing SDK 3.3 from http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex3sdk , I was unable to to use it. Also, the source in the 3.3 SDK does not show it. So I decided to download the latest documentation from the Complete Flex 3 documentation section on http://www.adobe.com/support/documentation/en/flex/ to compare. The language reference in the download does NOT have the addAll() method, and in addition, it is marked as version 3.2! Is there some place to find the documentation corresponding to the last stable release, which is 3.3? Or am I missing something? Thanks, Brian PS: To add to my list of problems, the Yahoo Group search is only showing results up through mid-March. inline: image001.jpginline: image002.jpg
Re: [flexcoders] Re: why does my MXML act differently than my AS?
Yes, that's what I was referring to in the first post about digging through the generated source. On Thu, Jul 9, 2009 at 5:42 AM, Tom Chiverton tom.chiver...@halliwells.comwrote: On Wednesday 08 Jul 2009, Pan Troglodytes wrote: For those interested: https://bugs.adobe.com/jira/browse/FB-21363 Have you used '--keep-source' from the MXML version and compared to your AS class ? -- Helping to widespreadedly market supply-chains as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.Halliwells.com. -- Jason
RE: [flexcoders] How to link effects so that one starts after one finishes?
There are a couple of ways you could make this work: 1) Simplest: make your triggered effects do the right thing (the appearing one waits for the disappearing one to finish, via a startDelay): mx:WipeDown id=wipeDown duration=700 / mx:WipeUp id=wipeUp duration=700 startDelay=700/ This would ensure that the wipeUp effect (which always runs on the component coming into view, in your example) will not run until the duration of the wipeDown (used for the disappearing component) is finished. 2) More involved: Use transitions Instead of triggers for these one-off effects, you could set up your application to use states for your components. in one state, the DataGrid would be there anre the List would not, in the other state the List would be there and the DataGrid would not. Then you could set up transitions for these states. It's a bit more involved, but might scale better than just running individual effects on the components. Chet. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of gmoniey22 Sent: Wednesday, July 08, 2009 6:29 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to link effects so that one starts after one finishes? I have two components, and I want to swap between them using wipe down/up. i.e. click a button, the visible panel slides down, and after that panel is no longer visible, the other panel slides up and takes its place. I have tried something like the following (please excuse the crude example), but the effects occur at the same time, and it doesn't look that good. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.binding.utils.BindingUtils; [Bindable] private var _show:Boolean = true; private function swapShow(event:MouseEvent):void { _show = !_show; } ]] /mx:Script mx:WipeDown id=wipeDown duration=700 / mx:WipeUp id=wipeUp duration=700 / mx:VBox mx:DataGrid visible={_show} includeInLayout={_show} showEffect=wipeUp hideEffect=wipeDown / mx:List visible={!_show} includeInLayout={!_show} showEffect=wipeUp hideEffect=wipeDown/ mx:Button label=Swap click=swapShow(event) / /mx:VBox /mx:Application
Re: [flexcoders] How to link effects so that one starts after one finishes?
You can play the first effect and listen to the effectEnd event ant in the handler start the second effect or you can go with putting the effects inside a Sequence. C From: Chet Haase cha...@adobe.com To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Sent: Thursday, July 9, 2009 5:50:27 PM Subject: RE: [flexcoders] How to link effects so that one starts after one finishes? There are a couple of ways you could make this work: 1) Simplest: make your triggered effects do the right thing (the appearing one waits for the disappearing one to finish, via a startDelay): mx:WipeDown id=wipeDown duration=700 / mx:WipeUp id=wipeUp duration=700 startDelay=”700”/ This would ensure that the wipeUp effect (which always runs on the component coming into view, in your example) will not run until the duration of the wipeDown (used for the disappearing component) is finished. 2) More involved: Use transitions Instead of triggers for these one-off effects, you could set up your application to use states for your components. in one state, the DataGrid would be there anre the List would not, in the other state the List would be there and the DataGrid would not. Then you could set up transitions for these states. It’s a bit more involved, but might scale better than just running individual effects on the components. Chet. From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of gmoniey22 Sent: Wednesday, July 08, 2009 6:29 PM To: flexcod...@yahoogro ups.com Subject: [flexcoders] How to link effects so that one starts after one finishes? I have two components, and I want to swap between them using wipe down/up. i.e. click a button, the visible panel slides down, and after that panel is no longer visible, the other panel slides up and takes its place. I have tried something like the following (please excuse the crude example), but the effects occur at the same time, and it doesn't look that good. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe. com/2006/ mxml layout=absolute mx:Script ![CDATA[ import mx.binding.utils. BindingUtils; [Bindable] private var _show:Boolean = true; private function swapShow(event: MouseEvent) :void { _show = !_show; } ]] /mx:Script mx:WipeDown id=wipeDown duration=700 / mx:WipeUp id=wipeUp duration=700 / mx:VBox mx:DataGrid visible={_show} includeInLayout={_show} showEffect=wipeUp hideEffect=wipeDown / mx:List visible={!_show} includeInLayout={!_show} showEffect=wipeUp hideEffect=wipeDown/ mx:Button label=Swap click=swapShow(event) / /mx:VBox /mx:Application
[flexcoders] Custom DataGrid with Form for itemeditor (any examples)???
Wondering if anyone has ever seen and example of a custom DataGrid component where you click a row in the DataGrid to edit it and instead of showing a combobox or textfield as an itemeditor you replace the entire row with a form. So any row or columns lines would be removed or the form would be positioned overtop of the row. TIA
[flexcoders] Listen for event of unknown type?
Hi, I'm using swfloader to load a swf and want to listen for all events, but I don't know the event types or names, Is this possible?? thanks,
RE: [flexcoders] Listen for event of unknown type?
Yes, listed for Event (all events extend this class) Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of luvfotography Sent: Thursday, July 09, 2009 12:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Listen for event of unknown type? Hi, I'm using swfloader to load a swf and want to listen for all events, but I don't know the event types or names, Is this possible?? thanks,
[flexcoders] Re: Streaming in LCDS
--- In flexcoders@yahoogroups.com, niamath basha niamathba...@... wrote: Hi all, I have a problem with streaming in LCDS. while running the sample using streaming channel it works fine when run it as 'localhost'. but when I tried to run it through IP address its not working. I tried to change the endpoint url by giveing ip address. but its not working. plese help me out. With Regards, Niamath Basha www.niamathbasha.wordpress.com
[flexcoders] Re: Possible to change the Fill Color for ColumnSeries on itemRollOver?
Here's a slightly different approach: Chart Labeled Renderer Roll-Over Sample http://www.timothyhoff.com/projects/ChartLabeledRendererSample/ChartLab\ eledRendererSample.html -TH --- In flexcoders@yahoogroups.com, gmoniey22 gmonie...@... wrote: Is it possible to change the fill color of 1 column when the mouse is over it? I can't seem to figure it out I have something along these lines: mx:SolidColor id=barColor color=0x00FF00/ mx:SolidColor id=hoverBarColor color=0xFF/ mx:ColumnChart id=chart type=overlaid itemRollOver=updateHoverColor(event) itemRollOut=updateColor(event) mx:horizontalAxis mx:CategoryAxis categoryField=range/ /mx:horizontalAxis mx:series mx:ColumnSeries id=series xField=range yField=value fill={barColor}/ /mx:series /mx:ColumnChart And my hover function looks like: private function updateHoverColor(event:ChartItemEvent):void { var col:ColumnSeriesItem = ColumnSeriesItem(event.hitData.chartItem); col.fill = hoverBarColor; } Unfortunately, nothing happens. No errors are thrown, but the color of the column which is being hovered over is not changed. I also tried adding the mouseOver/rollOver callbacks to the ColumnSeries, and used a function as such: private function updateHoverColor(event:ChartItemEvent):void { event.target.setStyle(fill, hoverBarColor); } but that resulted in the color of all of the columns to change. Anyone have any ideas? Thanks!
Re: [flexcoders] Listen for event of unknown type?
Yes, but addEventListener takes a type parameter (not a class), so I don't think this will help the poster. On Thu, Jul 9, 2009 at 11:54 AM, Jake Churchill j...@cfwebtools.com wrote: Yes, listed for Event (all events extend this class) Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *luvfotography *Sent:* Thursday, July 09, 2009 12:34 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Listen for event of unknown type? Hi, I'm using swfloader to load a swf and want to listen for all events, but I don't know the event types or names, Is this possible?? thanks,
[flexcoders] Next Question: digital pen ink?
This is something that I would expect Adobe to do, but can't find any clues. I may be looking for the wrong thing. Has anyone worked with digital scribblings using Flex? A. Resa Jones
[flexcoders] Re: Flex Browse File Video
Thanks Jeff Gilbert. I think that my only solution is to upload the video in order to preview it if I can't access the path. This is not an ideal solution! A. Resa Jones --- In flexcoders@yahoogroups.com, gilbert_mizrahi mizr...@... wrote: In AIR loading a video works fine. In Flex (FP10) I was able to load the file as a ByteArray, but I don't know how to process it to view it on a VideoDisplay or FLVPlayback component. I asked that question in another thread, but got no answers. --- In flexcoders@yahoogroups.com, Battershall, Jeff jeff.battershall@ wrote: I've done similar things with AIR and images but not with video. Seems to me you might be able to do it with FileReference.load(), which gives you access to the btyearray of the uploaded file. Requires FP10. -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Adrian Resa Jones Sent: Tuesday, July 07, 2009 2:19 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex Browse File Video Maybe I'm missing somethingCan you use the flex file browse as a source so that users can preview video before uploading it? Do I need to know where the file comes from? I saw another question about this here and did not see an answer. --- In flexcoders@yahoogroups.com, Adrian Resa Jones noregrets62@ wrote: I want to provide a preview function prior to uploading a file. Well, what's your use case ? Why do you care where the file comes from ? -- 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] Image Loader COMPLETE event wont fire for some images
I am seeing cases when the image loader COMPLETE event will not fire. Does anyone know why this is the case? I wonder if there is something wrong with some of my images that causes a bug in FLEX. Here is an example: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute applicationComplete=init() mx:Script ![CDATA[ private function init():void { myImage.addEventListener(ProgressEvent.PROGRESS, progressEventHandler); myImage.addEventListener(Event.COMPLETE, completeEventHandler); myImage.addEventListener(Event.UNLOAD, unloadEventHandler); reload(); } private function reload():void { // myImage.load(http://www.google.com/intl/en_ALL/images/logo.gif;); myImage.load(http://www.mangumfamily.org/bar.jpg;); } private function progressEventHandler(evt:ProgressEvent):void { trace(PROGRESS: bytesLoaded=+evt.bytesLoaded+, bytesTotal=+evt.bytesTotal); } private function completeEventHandler(evt:Event):void { trace(COMPLETE); } private function unloadEventHandler(evt:Event):void { trace(UNLOAD); } ]] /mx:Script mx:Image id=myImage/ mx:Button label=Reload Image y=308 click=reload()/ /mx:Application Notice that COMPLETE never gets called. If you copy the URL into a web browser it loads fine. If you change the url in the code to the Google one, it loads fine. What is wrong with my image? Maybe I need to log a bug to FLEX. Thanks for your help! Gary
[flexcoders] Re: Image Loader COMPLETE event wont fire for some images
Hi Gary, There is a 2880 pixel limit for images. Your image is too wide. -TH --- In flexcoders@yahoogroups.com, toofah_gm ga...@... wrote: I am seeing cases when the image loader COMPLETE event will not fire. Does anyone know why this is the case? I wonder if there is something wrong with some of my images that causes a bug in FLEX. Here is an example: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute applicationComplete=init() mx:Script ![CDATA[ private function init():void { myImage.addEventListener(ProgressEvent.PROGRESS, progressEventHandler); myImage.addEventListener(Event.COMPLETE, completeEventHandler); myImage.addEventListener(Event.UNLOAD, unloadEventHandler); reload(); } private function reload():void { // myImage.load(http://www.google.com/intl/en_ALL/images/logo.gif;); myImage.load(http://www.mangumfamily.org/bar.jpg;); } private function progressEventHandler(evt:ProgressEvent):void { trace(PROGRESS: bytesLoaded=+evt.bytesLoaded+, bytesTotal=+evt.bytesTotal); } private function completeEventHandler(evt:Event):void { trace(COMPLETE); } private function unloadEventHandler(evt:Event):void { trace(UNLOAD); } ]] /mx:Script mx:Image id=myImage/ mx:Button label=Reload Image y=308 click=reload()/ /mx:Application Notice that COMPLETE never gets called. If you copy the URL into a web browser it loads fine. If you change the url in the code to the Google one, it loads fine. What is wrong with my image? Maybe I need to log a bug to FLEX. Thanks for your help! Gary
[flexcoders] Re: Image Loader COMPLETE event wont fire for some images
TH, Thanks for the quick response. If the image is too wide, why does http://www.mangumfamily.org/bar3.jpg; work? It has the same dimensions, just no transparency. Gary --- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote: Hi Gary, There is a 2880 pixel limit for images. Your image is too wide. -TH --- In flexcoders@yahoogroups.com, toofah_gm garym@ wrote: I am seeing cases when the image loader COMPLETE event will not fire. Does anyone know why this is the case? I wonder if there is something wrong with some of my images that causes a bug in FLEX. Here is an example: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute applicationComplete=init() mx:Script ![CDATA[ private function init():void { myImage.addEventListener(ProgressEvent.PROGRESS, progressEventHandler); myImage.addEventListener(Event.COMPLETE, completeEventHandler); myImage.addEventListener(Event.UNLOAD, unloadEventHandler); reload(); } private function reload():void { // myImage.load(http://www.google.com/intl/en_ALL/images/logo.gif;); myImage.load(http://www.mangumfamily.org/bar.jpg;); } private function progressEventHandler(evt:ProgressEvent):void { trace(PROGRESS: bytesLoaded=+evt.bytesLoaded+, bytesTotal=+evt.bytesTotal); } private function completeEventHandler(evt:Event):void { trace(COMPLETE); } private function unloadEventHandler(evt:Event):void { trace(UNLOAD); } ]] /mx:Script mx:Image id=myImage/ mx:Button label=Reload Image y=308 click=reload()/ /mx:Application Notice that COMPLETE never gets called. If you copy the URL into a web browser it loads fine. If you change the url in the code to the Google one, it loads fine. What is wrong with my image? Maybe I need to log a bug to FLEX. Thanks for your help! Gary
[flexcoders] Re: Image Loader COMPLETE event wont fire for some images
What happens if you convert the jpg to a png with transparency? I seem to remember a problem with the alphas for a jpg. -TH --- In flexcoders@yahoogroups.com, toofah_gm ga...@... wrote: TH, Thanks for the quick response. If the image is too wide, why does http://www.mangumfamily.org/bar3.jpg; work? It has the same dimensions, just no transparency. Gary --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Hi Gary, There is a 2880 pixel limit for images. Your image is too wide. -TH --- In flexcoders@yahoogroups.com, toofah_gm garym@ wrote: I am seeing cases when the image loader COMPLETE event will not fire. Does anyone know why this is the case? I wonder if there is something wrong with some of my images that causes a bug in FLEX. Here is an example: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute applicationComplete=init() mx:Script ![CDATA[ private function init():void { myImage.addEventListener(ProgressEvent.PROGRESS, progressEventHandler); myImage.addEventListener(Event.COMPLETE, completeEventHandler); myImage.addEventListener(Event.UNLOAD, unloadEventHandler); reload(); } private function reload():void { // myImage.load(http://www.google.com/intl/en_ALL/images/logo.gif;); myImage.load(http://www.mangumfamily.org/bar.jpg;); } private function progressEventHandler(evt:ProgressEvent):void { trace(PROGRESS: bytesLoaded=+evt.bytesLoaded+, bytesTotal=+evt.bytesTotal); } private function completeEventHandler(evt:Event):void { trace(COMPLETE); } private function unloadEventHandler(evt:Event):void { trace(UNLOAD); } ]] /mx:Script mx:Image id=myImage/ mx:Button label=Reload Image y=308 click=reload()/ /mx:Application Notice that COMPLETE never gets called. If you copy the URL into a web browser it loads fine. If you change the url in the code to the Google one, it loads fine. What is wrong with my image? Maybe I need to log a bug to FLEX. Thanks for your help! Gary
[flexcoders] Re: Image Loader COMPLETE event wont fire for some images
I tried this as well...I think that the original file is actually a PNG and not a JPG...unfortunately, this does not make a difference either. Gary --- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote: What happens if you convert the jpg to a png with transparency? I seem to remember a problem with the alphas for a jpg. -TH --- In flexcoders@yahoogroups.com, toofah_gm garym@ wrote: TH, Thanks for the quick response. If the image is too wide, why does http://www.mangumfamily.org/bar3.jpg; work? It has the same dimensions, just no transparency. Gary --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Hi Gary, There is a 2880 pixel limit for images. Your image is too wide. -TH --- In flexcoders@yahoogroups.com, toofah_gm garym@ wrote: I am seeing cases when the image loader COMPLETE event will not fire. Does anyone know why this is the case? I wonder if there is something wrong with some of my images that causes a bug in FLEX. Here is an example: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute applicationComplete=init() mx:Script ![CDATA[ private function init():void { myImage.addEventListener(ProgressEvent.PROGRESS, progressEventHandler); myImage.addEventListener(Event.COMPLETE, completeEventHandler); myImage.addEventListener(Event.UNLOAD, unloadEventHandler); reload(); } private function reload():void { // myImage.load(http://www.google.com/intl/en_ALL/images/logo.gif;); myImage.load(http://www.mangumfamily.org/bar.jpg;); } private function progressEventHandler(evt:ProgressEvent):void { trace(PROGRESS: bytesLoaded=+evt.bytesLoaded+, bytesTotal=+evt.bytesTotal); } private function completeEventHandler(evt:Event):void { trace(COMPLETE); } private function unloadEventHandler(evt:Event):void { trace(UNLOAD); } ]] /mx:Script mx:Image id=myImage/ mx:Button label=Reload Image y=308 click=reload()/ /mx:Application Notice that COMPLETE never gets called. If you copy the URL into a web browser it loads fine. If you change the url in the code to the Google one, it loads fine. What is wrong with my image? Maybe I need to log a bug to FLEX. Thanks for your help! Gary
[flexcoders] Re: Image Loader COMPLETE event wont fire for some images
Well, probably a question better answered by Alex. I suspect that the transparency is adding to the file size and hitting the size limit. But, at this point, it's just a guess. Try cropping the image down to see if you get to a point that it works. -TH --- In flexcoders@yahoogroups.com, toofah_gm ga...@... wrote: I tried this as well...I think that the original file is actually a PNG and not a JPG...unfortunately, this does not make a difference either. Gary --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: What happens if you convert the jpg to a png with transparency? I seem to remember a problem with the alphas for a jpg. -TH --- In flexcoders@yahoogroups.com, toofah_gm garym@ wrote: TH, Thanks for the quick response. If the image is too wide, why does http://www.mangumfamily.org/bar3.jpg; work? It has the same dimensions, just no transparency. Gary --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Hi Gary, There is a 2880 pixel limit for images. Your image is too wide. -TH --- In flexcoders@yahoogroups.com, toofah_gm garym@ wrote: I am seeing cases when the image loader COMPLETE event will not fire. Does anyone know why this is the case? I wonder if there is something wrong with some of my images that causes a bug in FLEX. Here is an example: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute applicationComplete=init() mx:Script ![CDATA[ private function init():void { myImage.addEventListener(ProgressEvent.PROGRESS, progressEventHandler); myImage.addEventListener(Event.COMPLETE, completeEventHandler); myImage.addEventListener(Event.UNLOAD, unloadEventHandler); reload(); } private function reload():void { // myImage.load(http://www.google.com/intl/en_ALL/images/logo.gif;); myImage.load(http://www.mangumfamily.org/bar.jpg;); } private function progressEventHandler(evt:ProgressEvent):void { trace(PROGRESS: bytesLoaded=+evt.bytesLoaded+, bytesTotal=+evt.bytesTotal); } private function completeEventHandler(evt:Event):void { trace(COMPLETE); } private function unloadEventHandler(evt:Event):void { trace(UNLOAD); } ]] /mx:Script mx:Image id=myImage/ mx:Button label=Reload Image y=308 click=reload()/ /mx:Application Notice that COMPLETE never gets called. If you copy the URL into a web browser it loads fine. If you change the url in the code to the Google one, it loads fine. What is wrong with my image? Maybe I need to log a bug to FLEX. Thanks for your help! Gary
[flexcoders] Re: How to link effects so that one starts after one finishes?
Thanks...I went with states transitions. Seemed a bit cleaner. --- In flexcoders@yahoogroups.com, Chet Haase cha...@... wrote: There are a couple of ways you could make this work: 1) Simplest: make your triggered effects do the right thing (the appearing one waits for the disappearing one to finish, via a startDelay): mx:WipeDown id=wipeDown duration=700 / mx:WipeUp id=wipeUp duration=700 startDelay=700/ This would ensure that the wipeUp effect (which always runs on the component coming into view, in your example) will not run until the duration of the wipeDown (used for the disappearing component) is finished. 2) More involved: Use transitions Instead of triggers for these one-off effects, you could set up your application to use states for your components. in one state, the DataGrid would be there anre the List would not, in the other state the List would be there and the DataGrid would not. Then you could set up transitions for these states. It's a bit more involved, but might scale better than just running individual effects on the components. Chet. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of gmoniey22 Sent: Wednesday, July 08, 2009 6:29 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to link effects so that one starts after one finishes? I have two components, and I want to swap between them using wipe down/up. i.e. click a button, the visible panel slides down, and after that panel is no longer visible, the other panel slides up and takes its place. I have tried something like the following (please excuse the crude example), but the effects occur at the same time, and it doesn't look that good. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.binding.utils.BindingUtils; [Bindable] private var _show:Boolean = true; private function swapShow(event:MouseEvent):void { _show = !_show; } ]] /mx:Script mx:WipeDown id=wipeDown duration=700 / mx:WipeUp id=wipeUp duration=700 / mx:VBox mx:DataGrid visible={_show} includeInLayout={_show} showEffect=wipeUp hideEffect=wipeDown / mx:List visible={!_show} includeInLayout={!_show} showEffect=wipeUp hideEffect=wipeDown/ mx:Button label=Swap click=swapShow(event) / /mx:VBox /mx:Application
[flexcoders] Re: Possible to change the Fill Color for ColumnSeries on itemRollOver?
I wasn't aware that you could do it through css. I like that solution better than mine (particularly because it works). --- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote: Here's a slightly different approach: Chart Labeled Renderer Roll-Over Sample http://www.timothyhoff.com/projects/ChartLabeledRendererSample/ChartLab\ eledRendererSample.html -TH --- In flexcoders@yahoogroups.com, gmoniey22 gmoniey22@ wrote: Is it possible to change the fill color of 1 column when the mouse is over it? I can't seem to figure it out I have something along these lines: mx:SolidColor id=barColor color=0x00FF00/ mx:SolidColor id=hoverBarColor color=0xFF/ mx:ColumnChart id=chart type=overlaid itemRollOver=updateHoverColor(event) itemRollOut=updateColor(event) mx:horizontalAxis mx:CategoryAxis categoryField=range/ /mx:horizontalAxis mx:series mx:ColumnSeries id=series xField=range yField=value fill={barColor}/ /mx:series /mx:ColumnChart And my hover function looks like: private function updateHoverColor(event:ChartItemEvent):void { var col:ColumnSeriesItem = ColumnSeriesItem(event.hitData.chartItem); col.fill = hoverBarColor; } Unfortunately, nothing happens. No errors are thrown, but the color of the column which is being hovered over is not changed. I also tried adding the mouseOver/rollOver callbacks to the ColumnSeries, and used a function as such: private function updateHoverColor(event:ChartItemEvent):void { event.target.setStyle(fill, hoverBarColor); } but that resulted in the color of all of the columns to change. Anyone have any ideas? Thanks!
[flexcoders] Re: Possible to change the Fill Color for ColumnSeries on itemRollOver?
Ha, yeah if it works you get extra points. :) I tried using the chart's itemRollOver event, but ran into a snafu trying to drill down and change the fill of the BoxItemRenderer. It seems to have a getStyle method, but no setStyle(). Got past that, but the stroke style got me. Would probably be best to extend the Chart and handle the item roll-over there; with styles. Someone else can do that though. -TH --- In flexcoders@yahoogroups.com, gmoniey22 gmonie...@... wrote: I wasn't aware that you could do it through css. I like that solution better than mine (particularly because it works). --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Here's a slightly different approach: Chart Labeled Renderer Roll-Over Sample http://www.timothyhoff.com/projects/ChartLabeledRendererSample/ChartLab\ \ eledRendererSample.html -TH --- In flexcoders@yahoogroups.com, gmoniey22 gmoniey22@ wrote: Is it possible to change the fill color of 1 column when the mouse is over it? I can't seem to figure it out I have something along these lines: mx:SolidColor id=barColor color=0x00FF00/ mx:SolidColor id=hoverBarColor color=0xFF/ mx:ColumnChart id=chart type=overlaid itemRollOver=updateHoverColor(event) itemRollOut=updateColor(event) mx:horizontalAxis mx:CategoryAxis categoryField=range/ /mx:horizontalAxis mx:series mx:ColumnSeries id=series xField=range yField=value fill={barColor}/ /mx:series /mx:ColumnChart And my hover function looks like: private function updateHoverColor(event:ChartItemEvent):void { var col:ColumnSeriesItem = ColumnSeriesItem(event.hitData.chartItem); col.fill = hoverBarColor; } Unfortunately, nothing happens. No errors are thrown, but the color of the column which is being hovered over is not changed. I also tried adding the mouseOver/rollOver callbacks to the ColumnSeries, and used a function as such: private function updateHoverColor(event:ChartItemEvent):void { event.target.setStyle(fill, hoverBarColor); } but that resulted in the color of all of the columns to change. Anyone have any ideas? Thanks!
[flexcoders] Trying to make SoundManager class using getDefinitionByName
I am trying to make a sound manager class that will simplify playing a sound by using an id string. I have embedded the sound files, but am havign trouble getting the Sound object initialized. I get an error, Variable beep1 is not defined though cllearly it is. I suspect I am misusing getDefinitionByName. If there is an easier/better way, I am open to that as well. The full class code is below. Tracy package assets.sounds { import flash.utils.getDefinitionByName; import flash.media.Sound; public class SoundManager { [Embed(source=beep-1.mp3)]private var beep1:Class; [Embed(source=beep-2.mp3)]private var beep2:Class; [Embed(source=beep-3.mp3)]private var beep3:Class; public function playSound(sSoundName:String):void { var classRef:Class = getDefinitionByName(sSoundName) as Class; //Variable beep1 is not defined. var s:Sound = new classRef as Sound; s.play(); }//playSound }//class SoundManager }//package assets.sounds
[flexcoders] How to make a project to a .swc file
I want to add a instance of a class or a component which is an old project to my new project. Is there any way to make this simply ?
[flexcoders] java data send to flex issue
This is my data structure at back-end using java, ArrayList HashTable(keys, values); HashTable(keys, values); ... ... but the problem is when push the data to flex this data structure will be coverd to a instance of ArrayCollection and the HashTable covered to a Object. HashTable is out-of-order so the order of my data in flex is different every time . I use the ArrayCollection bind to the DataList component directly, and I don't want to indicate the order of each columns of each DataList Component.How can I fix this ? var dataSource:ArrayCollection = from Java back-end; mx:DataList dataProvider={dataSource} / I don't want to indicate each columns like this, because I have a lot of different structure tables in SQL. mx:DataList dataProvider={dataSource} mx:DataListColumns dataField=ID / mx:DataListColumns dataField=Name / mx:DataListColumns dataField=Age / mx:DataListColumns dataField=Address / /mx:DataList
Re: [flexcoders] Actionscript on JSR223
Doesn't GWT do something similar, converting the necessary Java code to Javascript? Maybe that part can be reused as AS code. Granted, you will lose the typing in the validation code, but I would presume that GWT would've thought about that and mitigated the security issues there? P.S. Silverlight can do this, for obvious reasons. 2009/7/9 Tom Chiverton tom.chiver...@halliwells.com: On Wednesday 08 Jul 2009, Tim Rowe wrote: Does anyone happen to know of any JSR223 (Java platform scripting) implementation(s) of ActionScript for dynamic use? I'm currently looking through a lot of our business data validation logic which is implemented in two places arguably unnecessarily - both on the front-end in AS and then again on the back-end in Java. Isn't that a good idea ? In theory anyone could write a replacement front-end and call your services, so you should validate the business rules there. At the same time, you don't want to round-trip to provide feedback to the user, so the rules have to be in the front end too. I would argue the front end rules would be more relaxed, and probably not aware of the full security context, however. -- Helping to assertively cultivate high-end wireless intuitive models as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.Halliwells.com.
Re: [flexcoders] Actionscript on JSR223
A hack would be to use the GWT code and Flash's ExternalInterface to validate via the Javascript produced by GWT and loaded in the browser. I don't know how much you have to commit to GWT before you can use it though; haven't used it before. 2009/7/10 Sam Lai samuel@gmail.com: Doesn't GWT do something similar, converting the necessary Java code to Javascript? Maybe that part can be reused as AS code. Granted, you will lose the typing in the validation code, but I would presume that GWT would've thought about that and mitigated the security issues there? P.S. Silverlight can do this, for obvious reasons. 2009/7/9 Tom Chiverton tom.chiver...@halliwells.com: On Wednesday 08 Jul 2009, Tim Rowe wrote: Does anyone happen to know of any JSR223 (Java platform scripting) implementation(s) of ActionScript for dynamic use? I'm currently looking through a lot of our business data validation logic which is implemented in two places arguably unnecessarily - both on the front-end in AS and then again on the back-end in Java. Isn't that a good idea ? In theory anyone could write a replacement front-end and call your services, so you should validate the business rules there. At the same time, you don't want to round-trip to provide feedback to the user, so the rules have to be in the front end too. I would argue the front end rules would be more relaxed, and probably not aware of the full security context, however. -- Helping to assertively cultivate high-end wireless intuitive models as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.Halliwells.com.
RE: [flexcoders] tree not expanding with expandItem()
When you assign a dataProvider programmatically, you need to wait for the control to update before attempting to interact with the visual elements, like node expanding. Use callLater to delay the expand code. I have an example on www.cflex.net http://www.cflex.net/ if you need it. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Mic Sent: Wednesday, July 08, 2009 12:53 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] tree not expanding with expandItem() collSearchHierarchy = new XMLListCollection(procXML); treeSrchHrchy.expandItem(collSearchHierarchy.getItemAt(0), true); Tree is staying collapsed and not expanding. Interesting that stepping through above, treeSrchHrchy.openItems is null before the .expandItem() and does show the top node in the openItems array after setting expandItem(). Which would suggest that expandItem is working but the display is not displaying it? Adding a treeSrchHrchy.invalidateDisplayList(); does not help. TIA, Mic.
RE: [flexcoders] Problem with calling customcomponent second time.
Also, when upi update the ComboBox's dataProvider, you should use the collection API to ensure that the necessary events are dispatched to ensure the visual component is updated. Don't use Array or XMLList as a dataProvider. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of niamath basha Sent: Wednesday, July 08, 2009 5:43 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Problem with calling customcomponent second time. don't call it on creationComplete instead call it on 'show' event. With Regards, Niamath Basha www.niamathbasha. http://www.niamathbasha.wordpress.com wordpress.com On Wed, Jul 8, 2009 at 12:55 PM, Ganesh Suyampirakasam ganesh.suyampirakas mailto:ganesh.suyampiraka...@yahoo.co.in a...@yahoo.co.in wrote: Hi I have two Link button, First button contain canvas with more fields,similar way second also contain few fields One field is Customcomponent,ie combox. In 1st link button the combo will load with creation complete. in second link button i can have the option to add few moreentries to the combo which is in 1st link button. Once i click 1st link button it will get loaded and when i try to come to 2nd button and i add one more name at that time combo is not getting refreshed with the new data. Problem is i am calling customcomponnt in creationcomplete.so for the second time when i click on 1st link button how to reload that combo. Thanks Ganesh _ See the Web's breaking stories, chosen by people like you. Check out Yahoo! Buzz http://in.rd.yahoo.com/tagline_buzz_1/*http:/in.buzz.yahoo.com/ .
[flexcoders] Re: dynamic image gallery
Hi you were not being offensive, sorry if i gave you the idea you were, as a matter of fact you are trying to help and i am grateful for it. now i cant use lastResult because i am using a remote object and there is no resultFormat property on RemoteObject methods. so am still stuck, plus where you suggesting i do away with the mx:Model completely?