[flexcoders] Progressbar on NetConnection (FMS)
Hi all, In case of images and other data , u can use them as source property of mx:Progress bar, but how to use progress bar to show a connection to FMS server. Images and other data loads but fms connection just returns status event. How to do this? -- Regards, Yogesh
[flexcoders] preserving views on page refresh using SO
Hi All, I am trying to save view stack's current view using shared object so that it remains selected on page refresh. I am also planning to push some global data( very small and primitive) accessed and modified by all components. But that doesn't seem to work. Whats wrong ? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:ns1=* creationComplete=isReloaded(); mx:ViewStack x=10 y=10 id=viewstack1 width=100% height=100% childIndexChange=saveIndex(); ns1:FirstView id=two/ ns1:SecondView id=one/ /mx:ViewStack mx:Script ![CDATA[ public var mySO:SharedObject = SharedObject.getLocal (userDetails); private function isReloaded():void { if( mySO.data.viewIndex != null ) viewstack1.selectedIndex = mySO.data.viewIndex; } private function saveIndex():void { mySO.data.viewIndex = viewstack1.selectedIndex; mySO.flush(); } ]] /mx:Script /mx:Application -- Regards, Yogesh
Re: [flexcoders] Digital Clock
ya if u want to blink colon u have use separate labels, otherwise this code will be sufficient ( not mine ) ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute width=196 height=84 backgroundGradientAlphas=[1.0, 1.0] alpha=1.0 mx:Script ![CDATA[ import flash.utils.Timer; import flash.events.TimerEvent; private var timer:Timer; private function init():void { this.timer = new Timer(1000); this.timer.addEventListener(TimerEvent.TIMER, this.resetNow); this.timer.start(); } private function resetNow(event:TimerEvent):void { this.clock.text = new Date().toLocaleTimeString(); } ]] /mx:Script mx:Text id =clock x=10 y=19 fontSize=17 fontWeight=bold width=152 creationComplete=this.init(); textAlign=center/ /mx:Application On Wed, Mar 5, 2008 at 4:17 PM, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 05 Mar 2008, Vivian Richard wrote: If you are using LED characters for the clock display then how do you make the : between the hour and minute characters blink to indicate that a second has passed? Replace the colon with a space if the seconds in the Date are even. -- Tom Chiverton Helping to adaptively engineer seamless segments on: http://thefalken.livejournal.com 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. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. 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 Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Regards, Yogesh
[flexcoders] How to change viewStack.selectedChild from canvas component.
Hi all, I have viewStack and custom canvas based components ( mxml ) as views. My problem is that when i change my view inside function of one of custom views, i get error. How to access parent.viewStack.selectedChild = nextComponent ? mx:ViewStack id=viewstack1 width=100% height=100% my:fistView/ my:secondView/ my:thirdView/ /mx:ViewStack This is my custom view mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; width=100% height=100% Validattors ... Images.. Panels... Etc.. mx:Script ![CDATA[ blah blah private function gotoNext():void { this.parentApplication.viewStack1.selectChild = this.parent.viewStack1.secondView ; } I know that syntax is wrong, but u can get idea what i wanna do . Thanx in advance -- -- Regards, Yogesh
[flexcoders] how to do this
?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:ns1=* mx:ViewStack x=10 y=10 id=viewstack1 width=100% height=100% ns1:FirstView id=two/ ns1:SecondView id=one/ /mx:ViewStack /mx:Application ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; width=100% height=100% mx:Button x=167 y=186 label=GoToFirst click=go();/ mx:Script ![CDATA[ public function go():void { //viewstack1.selectedChild = second; //this.parentApplication.viewstack1.selectedChild = this.parentApplication.second; } ]] /mx:Script /mx:Canvas ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; width=100% height=100% mx:Button x=167 y=186 label=GotoSecond/ /mx:Canvas Is there any simple solution ( other than firing custom event )? Sorry for reposting, but this may be more clear than earlier one. -- Regards, Yogesh
Re: [flexcoders] how to do this
hi sherif, Thanx for replying , i dont know what mistake i did, but parentApplication was not working. I got it working by importing mx.core.Application ( virat on flex india list helped me ). i.e. var vs:ViewStack = Application.application.viewstack1 as ViewStack; vs.selectedIndex = 1; On Thu, Mar 6, 2008 at 11:15 AM, Sherif Abdou [EMAIL PROTECTED] wrote: why access parentApplication?? just do this.parent.selectedIndex=whatever - Original Message From: YOGESH JADHAV [EMAIL PROTECTED] To: [EMAIL PROTECTED]; flexcoders@yahoogroups.com Sent: Wednesday, March 5, 2008 11:06:58 PM Subject: [flexcoders] how to do this ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe. com/2006/ mxmlhttp://www.adobe.com/2006/mxml layout=absolute xmlns:ns1=* mx:ViewStack x=10 y=10 id=viewstack1 width=100% height=100% ns1:FirstView id=two/ ns1:SecondView id=one/ /mx:ViewStack /mx:Application ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe. com/2006/ mxmlhttp://www.adobe.com/2006/mxml width=100% height=100% mx:Button x=167 y=186 label=GoToFirst click=go();/ mx:Script ![CDATA[ public function go():void { //viewstack1.selected Child = second; //this.parentApplicat ion.viewstack1. selectedChild = this.parentApplicat ion.second; } ]] /mx:Script /mx:Canvas ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe. com/2006/ mxmlhttp://www.adobe.com/2006/mxml width=100% height=100% mx:Button x=167 y=186 label=GotoSecond/ /mx:Canvas Is there any simple solution ( other than firing custom event )? Sorry for reposting, but this may be more clear than earlier one. -- Regards, Yogesh -- Never miss a thing. Make Yahoo your homepage.http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs -- Regards, Yogesh
Re: [flexcoders] Digital Clock
just assigning a label date.toString may result in descent digital clock. On Tue, Mar 4, 2008 at 10:37 PM, Fidel Viegas [EMAIL PROTECTED] wrote: On Tue, Mar 4, 2008 at 5:30 PM, Tom Chiverton [EMAIL PROTECTED] tom.chiverton%40halliwells.com wrote: On Tuesday 04 Mar 2008, Fidel Viegas wrote: Does anyone have a sample digital clock I can have a look at? Or give me a pointer? Would this not just be a suitable font and mx:Text ? Yes. Sometimes your brains are so tired that you miss the most obvious things. The timer object didn't even come to my mind. :D Thanks! -- Regards, Yogesh
[flexcoders] How to apply resize effect to children
Hi all, I am trying to get some sliding canvas. I am using canvas and resize effects to change it's width. It look ok , but if i put something ( textInput , button etc) on it, those things obviously don't get resize, and give scroll bars while resizing. How to resize including it's children? If i try to resize in % it gives error, how to pass % width height in resize effect ? -- Regards, Yogesh
Re: [flexcoders] How to apply resize effect to children
thnx peeyush , i'll try that. On Feb 19, 2008 3:00 PM, Peeyush Tuli [EMAIL PROTECTED] wrote: I did some work earlier on switching between two fixed resolutions. I may not be totally correct but based on my observations, If you change the scaleX property of the parent layout component, it more or less resizes the child component accurately. (although I had to resize down and up on a button click, rather than on resize event and my child components were simple controls like TextInput etc. ) You can calculate the scaleX dynamically in the resize effect handler. ~Peeyush On Feb 19, 2008 2:41 PM, YOGESH JADHAV [EMAIL PROTECTED] wrote: Hi all, I am trying to get some sliding canvas. I am using canvas and resize effects to change it's width. It look ok , but if i put something ( textInput , button etc) on it, those things obviously don't get resize, and give scroll bars while resizing. How to resize including it's children? If i try to resize in % it gives error, how to pass % width height in resize effect ? -- Regards, Yogesh -- Regards, Yogesh
Re: [flexcoders] How to apply resize effect to children
Hi Peeyush, Actually I was not restricting expansions and contracting , so it was looking too wierd. I'll go for simple resize whith scroll policies off and and % size of child component. That looks good if the duration is not too large. On Feb 19, 2008 5:52 PM, Peeyush Tuli [EMAIL PROTECTED] wrote: I havent tride anything else because it worked well for my case. What exactly goes wrong in your app? do components go totally out of their normal size ratio?(can you post a screen shot ) There is a post on application level resizing here http://blogs.adobe.com/aharui/ On Feb 19, 2008 4:57 PM, YOGESH JADHAV [EMAIL PROTECTED] wrote: HI Peeyush I tried that, it works , but doesn't look good. Most irritating is that everything, including blue border which appears on selection is also enlarged. Is there some other way to achieve cool n smooth sliding ? On Feb 19, 2008 3:00 PM, Peeyush Tuli [EMAIL PROTECTED] wrote: I did some work earlier on switching between two fixed resolutions. I may not be totally correct but based on my observations, If you change the scaleX property of the parent layout component, it more or less resizes the child component accurately. (although I had to resize down and up on a button click, rather than on resize event and my child components were simple controls like TextInput etc. ) You can calculate the scaleX dynamically in the resize effect handler. ~Peeyush On Feb 19, 2008 2:41 PM, YOGESH JADHAV [EMAIL PROTECTED] wrote: Hi all, I am trying to get some sliding canvas. I am using canvas and resize effects to change it's width. It look ok , but if i put something ( textInput , button etc) on it, those things obviously don't get resize, and give scroll bars while resizing. How to resize including it's children? If i try to resize in % it gives error, how to pass % width height in resize effect ? -- Regards, Yogesh -- Regards, Yogesh -- Regards, Yogesh
Re: [flexcoders] How to apply resize effect to children
HI Peeyush I tried that, it works , but doesn't look good. Most irritating is that everything, including blue border which appears on selection is also enlarged. Is there some other way to achieve cool n smooth sliding ? On Feb 19, 2008 3:00 PM, Peeyush Tuli [EMAIL PROTECTED] wrote: I did some work earlier on switching between two fixed resolutions. I may not be totally correct but based on my observations, If you change the scaleX property of the parent layout component, it more or less resizes the child component accurately. (although I had to resize down and up on a button click, rather than on resize event and my child components were simple controls like TextInput etc. ) You can calculate the scaleX dynamically in the resize effect handler. ~Peeyush On Feb 19, 2008 2:41 PM, YOGESH JADHAV [EMAIL PROTECTED] wrote: Hi all, I am trying to get some sliding canvas. I am using canvas and resize effects to change it's width. It look ok , but if i put something ( textInput , button etc) on it, those things obviously don't get resize, and give scroll bars while resizing. How to resize including it's children? If i try to resize in % it gives error, how to pass % width height in resize effect ? -- Regards, Yogesh -- Regards, Yogesh
[flexcoders] How to Use Flex's Default Icons
Hi all, I would like to know how to use flex's default / internal icons/gifs in my custom components. ( irrespective of imports). thanx in advance -- Regards, Yogesh
Re: [flexcoders] do you need CS Degree to get a job?
Hi Sherif, In my opinion degree is important only if you are looking for big break. By education i am an electronics guy. When i decided to switch the field, i first enrolled a part time CS PG course teaching only pure CS basics. When My course was completed, i left that job n got into software.when i got into software, i did a proper ( 3years ) bachelors degree in IT by correspondence . In long run what matters is your problem solving capacity , adaptability and speed. On Feb 20, 2008 5:42 AM, Sherif Abdou [EMAIL PROTECTED] wrote: A bit off-topic but I was just wondering since i have no reminescense of this and their seems to be a lot of programmers on here I thought I would ask this question. Do you actually need some sort of CS degree or Computer Related degree to get a job say in programming Web Applications or getting a Job at Adobe or MSFT or Google. I have a degree in Molecular Biology with a Chem Minor. I am Self-Taught so let me here some stories. Thanks. -- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ -- Regards, Yogesh
Re: [flexcoders] Clear validation
when to do textfield.text = also make textField.errorString = ; On Fri, Feb 15, 2008 at 3:22 PM, Giles Roadnight [EMAIL PROTECTED] wrote: Hi All I am using validators on my form and all is workign well. I have a problem when I clear the form and set all of the text fields back to . All of the form items go red. Is there a way of resetting the validator / form item to get rid of this until it is next edited? Thanks -- Regards, Yogesh
Re: [flexcoders] Is the TextArea / TextField TEXT_INPUT event firing correctly?
Haven't tested the code but i think it should be mx:TextArea textInput={trace('textInput fired');} / On Thu, Feb 14, 2008 at 4:31 PM, marty.pitt [EMAIL PROTECTED] wrote: Hi Can someone please verify my understanding of this correctly. I believe that the event is not firing on the deletion of text, as the docs suggest it will. According to the docs this event is supposed to fire: when the user types, deletes, or pastes text into the control. But, running the following simple chunk'o'code, and deleting text, shows the event doesn't fire on either backspace or delete: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:TextArea textInput=trace('textInput fired') / /mx:Application I had a look at the code, and TextArea is simply rebroadcasting the event from textField, which we can't see as it's source is not available. If someone can confirm that this is a bug, I'll post it in the bug forums. (I don't suppose that it'll be fixed before release now though?) Cheers Marty -- Regards, Yogesh
Re: [flexcoders] Re: Is the TextArea / TextField TEXT_INPUT event firing correctly?
thanx marty, i was unware of that. On Thu, Feb 14, 2008 at 4:43 PM, marty.pitt [EMAIL PROTECTED] wrote: Hi Yogesh You don't need to use binding syntax in an event listener, as their expected type is Function(). In property getters setters it's a little different. Using the binding syntax still works though, but it's not required. Cheers Marty --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, YOGESH JADHAV [EMAIL PROTECTED] wrote: Haven't tested the code but i think it should be mx:TextArea textInput={trace('textInput fired');} / On Thu, Feb 14, 2008 at 4:31 PM, marty.pitt [EMAIL PROTECTED] wrote: Hi Can someone please verify my understanding of this correctly. I believe that the event is not firing on the deletion of text, as the docs suggest it will. According to the docs this event is supposed to fire: when the user types, deletes, or pastes text into the control. But, running the following simple chunk'o'code, and deleting text, shows the event doesn't fire on either backspace or delete: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:TextArea textInput=trace('textInput fired') / /mx:Application I had a look at the code, and TextArea is simply rebroadcasting the event from textField, which we can't see as it's source is not available. If someone can confirm that this is a bug, I'll post it in the bug forums. (I don't suppose that it'll be fixed before release now though?) Cheers Marty -- Regards, Yogesh -- Regards, Yogesh
[flexcoders] Strange error trace
Hi all, I am having trouble with some null object reference somewhere in my flex app, beacuse of which it is bombarding errors. But in trace it is showing some E:\dev\flex_201_borneo path which does not exist. ( E: is my DVD rom ). Then why it is showing this path ? here is one of them TypeError: Error #2007: Parameter source must be non-null. at flash.accessibility::Accessibility$/sendEvent() at mx.accessibility::AlertAccImpl/eventHandler ()[E:\dev\flex_201_borneo\sdk\frameworks\mx\accessibility\AlertAccImpl.as:243] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent ()[E:\dev\flex_201_borneo\sdk\frameworks\mx\core\UIComponent.as:8389] at mx.core::UIComponent/setinitialized()[E:\dev\flex_201_borneo\sdk\frameworks\mx\core\UIComponent.as:1096] at mx.managers::LayoutManager/doPhasedInstantiation ()[E:\dev\flex_201_borneo\sdk\frameworks\mx\managers\LayoutManager.as:696] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2 ()[E:\dev\flex_201_borneo\sdk\frameworks\mx\core\UIComponent.as:7975] at mx.core::UIComponent/callLaterDispatcher ()[E:\dev\flex_201_borneo\sdk\frameworks\mx\core\UIComponent.as:7918] -- Regards, Yogesh
Re: [flexcoders] Flex Feedback for the Future
does it have a design view ? Does it work the exactly same way as fb3 on windows ? On Feb 13, 2008 3:12 PM, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 13 Feb 2008, YOGESH JADHAV wrote: An IDE which looks and runs in same way on all platforms ( atleast linux). Well, Builder for Linux is up on Labs... -- Tom Chiverton Helping to confidentially reintermediate enterprise-class communities on: http://thefalken.livejournal.com 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. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. 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 Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Regards, Yogesh
Re: [flexcoders] Strange error trace
Hi Alex, Thanx for replying. Ya, I am using an alert which does not have any button. I am using *Alert.mx_internal::alertForm.removeChild( Alert.mx_internal::alertForm.mx_internal::buttons[0]))* for that. But I dont think it is causing the error. The error is thrown long after time after that alert is removed. Most Important thing is it appears ONLY IN FIREFOX, IE is running smoothly w/o any issue. ( strange enough, as generally IE crashes on first error thrown , debug-player is almost useless ). On Feb 14, 2008 3:06 AM, Alex Harui [EMAIL PROTECTED] wrote: Because you're in the framework code. That's just the internal drive we used to build it, but it should map to the source you have. Somehow, this alert doesn't have any buttons. Is that possible? -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *YOGESH JADHAV *Sent:* Wednesday, February 13, 2008 12:59 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Strange error trace Hi all, I am having trouble with some null object reference somewhere in my flex app, beacuse of which it is bombarding errors. But in trace it is showing some E:\dev\flex_201_borneo path which does not exist. ( E: is my DVD rom ). Then why it is showing this path ? here is one of them TypeError: Error #2007: Parameter source must be non-null. at flash.accessibility::Accessibility$/sendEvent() at mx.accessibility::AlertAccImpl/eventHandler ()[E:\dev\flex_201_borneo\sdk\frameworks\mx\accessibility\AlertAccImpl.as:243] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent ()[E:\dev\flex_201_borneo\sdk\frameworks\mx\core\UIComponent.as:8389] at mx.core::UIComponent/setinitialized()[E:\dev\flex_201_borneo\sdk\frameworks\mx\core\UIComponent.as:1096] at mx.managers::LayoutManager/doPhasedInstantiation ()[E:\dev\flex_201_borneo\sdk\frameworks\mx\managers\LayoutManager.as:696] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2 ()[E:\dev\flex_201_borneo\sdk\frameworks\mx\core\UIComponent.as:7975] at mx.core::UIComponent/callLaterDispatcher ()[E:\dev\flex_201_borneo\sdk\frameworks\mx\core\UIComponent.as:7918] -- Regards, Yogesh -- Regards, Yogesh
Re: [flexcoders] Flex Feedback for the Future
I would like to see a descent RTE which retains it's style and has emoticons . A videoDisplay which provides controls to programmer and has some fms3 support. An IDE which looks and runs in same way on all platforms ( atleast linux). On Feb 11, 2008 11:20 PM, Joan Lafferty [EMAIL PROTECTED] wrote: As we close up Flex 3 development, the team is evaluating existing Flex feedback to figure out what bugs to fix and features to add for the future. If you could briefly list some of the key enhancements or bug fixes that you would like in the future, please send them along. Also, be sure to vote on deferred bugs and feature requests in the public bugbase as we will be evaluating those too. http://bugs.adobe.com/flex Thanks, Joan Lafferty Flex SDK QA -- Regards, Yogesh
Re: [flexcoders] Re: Accordion customization
thanx dude, i'll have detailed look at that, seems to be the solution. On Feb 11, 2008 11:37 PM, jer_ela [EMAIL PROTECTED] wrote: Take a look at the windowshade component on FlexLib http://code.google.com/p/flexlib/wiki/ComponentList --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, YOGESH JADHAV [EMAIL PROTECTED] wrote: ya, exactly . Initially i was totally unaware that that flex3 now comes with accordian source. I searched net and used a swc created by someone. Now looking thru mailing list's logs i got know about this, now looking into the accordion source ( though my as3 knowledge is almost zero ). Earlier i tried to set accordian's image width = 0 on rollOut, which gave an error. ( and simillar try n error things ). On Feb 11, 2008 7:55 PM, Tom Chiverton [EMAIL PROTECTED] wrote: On Monday 11 Feb 2008, YOGESH JADHAV wrote: i mean to say , by default the selected item is 'expanded' . My item renderer is consisting of two parts, image and product description. I don't want image to be displayed unless user clicks on it. So entire list/panel remains in collapsed state, only click / mouse over expands the respective item. So the Accordion would have to change height ? Because it starts off as just the height of the two labels ? -- Tom Chiverton Helping to quickly lead front-end users on: http://thefalken.livejournal.com 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. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. 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 Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Regards, Yogesh -- Regards, Yogesh
Re: [flexcoders] Accordion customization
ya, exactly . Initially i was totally unaware that that flex3 now comes with accordian source. I searched net and used a swc created by someone. Now looking thru mailing list's logs i got know about this, now looking into the accordion source ( though my as3 knowledge is almost zero ). Earlier i tried to set accordian's image width = 0 on rollOut, which gave an error. ( and simillar try n error things ). On Feb 11, 2008 7:55 PM, Tom Chiverton [EMAIL PROTECTED] wrote: On Monday 11 Feb 2008, YOGESH JADHAV wrote: i mean to say , by default the selected item is 'expanded' . My item renderer is consisting of two parts, image and product description. I don't want image to be displayed unless user clicks on it. So entire list/panel remains in collapsed state, only click / mouse over expands the respective item. So the Accordion would have to change height ? Because it starts off as just the height of the two labels ? -- Tom Chiverton Helping to quickly lead front-end users on: http://thefalken.livejournal.com 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. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. 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 Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Regards, Yogesh
Re: [flexcoders] Accordion customization
Hi Tom, i mean to say , by default the selected item is 'expanded' . My item renderer is consisting of two parts, image and product description. I don't want image to be displayed unless user clicks on it. So entire list/panel remains in collapsed state, only click / mouse over expands the respective item. sorry for my English, i hope u will get this. On Feb 11, 2008 7:19 PM, Tom Chiverton [EMAIL PROTECTED] wrote: On Monday 11 Feb 2008, YOGESH JADHAV wrote: I want to customize Accordion component such that by default no image is displayed, otherwise the behavior should be same. Any idea how to do that? So what would it show instead ? -- Tom Chiverton Helping to adaptively morph value-added features on: http://thefalken.livejournal.com 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. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. 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 Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Regards, Yogesh
[flexcoders] Accordion customization
Hi all, I want to customize Accordion component such that by default no image is displayed, otherwise the behavior should be same. Any idea how to do that? -- Regards, Yogesh
Re: [flexcoders] Accordion customization
Hi tom , tried that but it doesn't seem to work. On Feb 11, 2008 8:47 PM, Tom Chiverton [EMAIL PROTECTED] wrote: On Monday 11 Feb 2008, YOGESH JADHAV wrote: ya, exactly . You could try setting height=60 when it's created, then set percentHeight=100 in the click handler. -- Tom Chiverton Helping to ambassadorially synergize end-to-end clusters on: http://thefalken.livejournal.com 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. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. 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 Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Regards, Yogesh
Re: [flexcoders] Re: Need help creating a custom rich text editor using flexmdi
thanx a lot Ben On Feb 8, 2008 8:07 PM, ben.clinkinbeard [EMAIL PROTECTED] wrote: Well, I have good news and bad news and then a little bit more good news. Good news: There is a workaround. The problem happens when the window's style gets changed, as happens when focus switches. As a result, setting the focusStyleName and noFocusStyleName to the same value will prevent the loss of formatting. Can be done by adding these attributes to each window: focusStyleName=foo noFocusStyleName=foo Bad news (besides the fact that having windows that look the same regardless of focus kind of sucks): This behavior is inherited from Panel (MDIWindow's super class). If you create a Panel with a RTE inside it and then set the Panel's styleName property you will see the same issue. This happens even if the style contains nothing but a background color so it doesn't seem like the text field's style is getting overridden, which makes this a bit stranger. (Kinda) good news part 2: There is an update release of flexmdi coming early next week that will make it easier to implement the workaround. Your windows would still not have focus-specific styles though. Hopefully this workaround is enough to keep you afloat. I am going to see if I can dig a bit deeper on why this happens in the first place and will likely post to the group with what I found out... or to report my futility and ask for help. Thanks, Ben --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Max Frigge [EMAIL PROTECTED] wrote: You are a lifesaver!! Thanks a lot. If there's anything I can to to support your investigation... just let me know. Thanks, Max - Original Message From: ben.clinkinbeard [EMAIL PROTECTED] To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Sent: Saturday, February 9, 2008 12:58:32 AM Subject: [flexcoders] Re: Need help creating a custom rich text editor using flexmdi Hi Max, Thanks for pointing this out. To be honest I've never used the RTE component so I don't have much of an idea how it works or why this would be happening. I should be able to investigate later today though and will follow up with anything I figure out. Thanks, Ben --- In [EMAIL PROTECTED] ups.com, Max Frigge m.frigge@ . wrote: Mh.. I just noticed that the problem occurs with RichText editor within a flexmdi Panel in general. So i narrowed it down and created a little example.. source view enabled. Just format the text in one window and then focus the other one. The text format disappears right away. I also tried the same just using the PopUp manager (on which the flexmdi is based on) but there it works. So I assume that it must be a problem of the flexmdi. Is someone of the developers online maybe, who could have a look pleease? ? http://www.osfeelin g.com/rte_ test/main. html Thanks, Max - Original Message From: Max Frigge m.frigge@ . To: Flexcoders [EMAIL PROTECTED] ups.com Sent: Friday, February 8, 2008 9:40:24 PM Subject: [flexcoders] Need help creating a custom rich text editor using flexmdi Hi there, I am trying to separate the rich text controls from the rich text editor, so that I can have the controls at a different place instead of inside the rich text editor. I am using flexmdi (a window component) to create a window based UI. I have one window that carries the textArea and another one that carries all the rich text controls (font, fonsize, alignment, ...). I use it exactly the same way it is done in the flex rich text editor, but instead of referencing to a textArea inside the component I have a reference to it, which is set when i create the text format window. I can format the text in my external format window, but as soon as I click back on the text area (in another window) I loose all the text format and it goes back to standard format. I have no clue how to fix this. Can anyone please give me some advise on how to either fix it or search for reason why it acts like that? Best Regards, Max Looking for last minute shopping deals? Find them fast with Yahoo! Search. !-- #ygrp-mkp{ border:1px solid #d8d8d8;font- family:Arial; margin:14px 0px;padding: 0px 14px;} #ygrp-mkp hr{ border:1px solid #d8d8d8;} #ygrp-mkp #hd{ color:#628c2a; font-size: 85%;font- weight:bold; line-height: 122%;margin: 10px 0px;} #ygrp-mkp #ads{ margin-bottom: 10px;} #ygrp-mkp .ad{ padding:0 0;} #ygrp-mkp .ad a{ color:#ff; text-decoration: none;} --
[flexcoders] Image Source is not assigned
Hi all, I am assigning an Image's source dynamically, but i don't see any image, whta wrong ? both my_image.source = http://myserver/images_dir +changing_variable+.jpg; and my_image.load(http://myserver/images_dir+changing_vaiable+.jpg;); are not working. I have checked that all paths are correct and images do exist. I even tried fixed path, it not working. The image is displayed only when i assign a fixed path thru flex builder properties ( n not programitacally ) and turn autoload ON. What to do ? -- Regards, Yogesh
Re: [flexcoders] Image Source is not assigned
sorry i was little bit late, actually i was assigning an integer value, which was used up somewhere in the code to create one of the parameters of string path. After applying toString method, it was working. On Feb 7, 2008 6:16 PM, Sherif Abdou [EMAIL PROTECTED] wrote: http://myserver/images_dir/{changing_variable}.jpghttp://myserver/images_dir/%7Bchanging_variable%7D.jpg - Original Message From: YOGESH JADHAV [EMAIL PROTECTED] To: flexcoders@yahoogroups.com; [EMAIL PROTECTED] Sent: Thursday, February 7, 2008 3:43:27 AM Subject: [flexcoders] Image Source is not assigned Hi all, I am assigning an Image's source dynamically, but i don't see any image, whta wrong ? both my_image.source = http://myserver/ images_dirhttp://myserver/images_dir +changing_variable+.jpg; and my_image.load(http://myserver/ images_dirhttp://myserver/images_dir +changing_vaiable+.jpg); are not working. I have checked that all paths are correct and images do exist. I even tried fixed path, it not working. The image is displayed only when i assign a fixed path thru flex builder properties ( n not programitacally ) and turn autoload ON. What to do ? -- Regards, Yogesh -- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ -- Regards, Yogesh
Re: [flexcoders] Some Advises.
ya lot of errors like paul menstioned also debuger is still on if u zoom any panel ( like contact us ) move it, the background also moves. On Feb 6, 2008 2:05 PM, Paul Andrews [EMAIL PROTECTED] wrote: - Original Message - *From:* NileAge, Mail [EMAIL PROTECTED] *To:* [EMAIL PROTECTED] ; 'Flex Components'[EMAIL PROTECTED]; [EMAIL PROTECTED] ; flexcoders@yahoogroups.com ; [EMAIL PROTECTED] *Sent:* Wednesday, February 06, 2008 8:08 AM *Subject:* [flexcoders] Some Advises. Hello All, We are develop the flex website (http://www.nileage.org/IndexHome.html ) and uploaded it. I want you to view it and tell me some advises to increase the website performance. And too, I want the solution for resolution problem. The site at resolution 1024X768 is work good but problem when change to 1152X864 or more. And I need to make preloader for each part in site because the site is loading for long period of time then appear all items in same time. Plz tell me what are the solutions for all these problems. And we are using this tools to build the site: 1- Flex Builder 2 2- ASP.NET 2 Webservice ( C# ) 3- SQL Server 2000 Thanks Abdullah Abdelhay Here's one of the many errors I saw.. TypeError: Error #1009: Cannot access a property or method of a null object reference. at Comp::Home/creationCompleteHandler() at Comp::Home/___Operation1_result() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction () at flash.events::EventDispatcher/dispatchEvent() at mx.rpc::AbstractOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent () at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler () at mx.rpc::Responder/result() at mx.rpc::AsyncRequest/acknowledge() at ::DirectHTTPMessageResponder/completeHandler() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction () at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/flash.net:URLLoader::onComplete() and ArgumentError: Undefined state 'Welcom'. at mx.core::UIComponent/::getState() at mx.core::UIComponent/::findCommonBaseState() at mx.core::UIComponent/::commitCurrentState() at mx.core::UIComponent/setCurrentState() at mx.core::UIComponent/set currentState() at Comp::Home/__LBWelcom_click() BTW Welcome is missing an 'e'. The site has a lot of problems with null references, so presumably this is because components are being referenced before they have been created. I'm rather surprised the site has so many problems that haven't been solved along the way before it grew so big. Paul -- Regards, Yogesh
Re: [flexcoders] Date variable
try in CAPS On Feb 7, 2008 9:52 AM, JRBower [EMAIL PROTECTED] wrote: I'm trying to create a date variable that returns the date as 02062008. (mmdd) In ColdFusion I can do it like this LSDateFormat(Now(),'MMDDYY'). When I try: var myDate:Date = new Date(); myDate = myDate.formatString(mmdd); but no joy... -- View this message in context: http://www.nabble.com/Date-variable-tp15327188p15327188.html Sent from the FlexCoders mailing list archive at Nabble.com. -- Regards, Yogesh
[flexcoders] DateValidator daysource issue - nothing visible
Hi all, Whenever i assign day / month or year sources of datevalidator, all UI is invisible when run, screen is filled with default background. Sometimes/cases u can see the thing in design mode , but out put is same. This is cut down version of the code ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:DateValidator id=m daySource=dob_date/ mx:NumericStepper id=dob_date minimum=1 maximum=31 width=40 stepSize=1 x=88 y=162/ mx:NumericStepper id=dob_month minimum=1 maximum=12 width=40 stepSize=1 x=152 y=162/ mx:NumericStepper id=dob_year width=64 stepSize=1 minimum=1950 maximum=1990 x=219 y=162/ mx:Image x=202 y=33 width=195 height=98 id=test/ /mx:Application -- Regards, Yogesh
Re: [flexcoders] Combox box selected Index
set the prompt property to something like this prompt=Select On Feb 2, 2008 2:31 PM, jitendra jain [EMAIL PROTECTED] wrote: Hi guys, I have a combo box whose data provider is an array collection. I don't want any of the items in the selected index at the time of load. How can I do this. Thanks, with regards, JJain -- Looking for last minute shopping deals? Find them fast with Yahoo! Search.http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping -- Regards, Yogesh
[flexcoders] Validation approach
Hi all, Currently i am validating my form ( having 10-12 fields ) by using adobe's article. http://www.adobe.com/devnet/flex/quickstart/validating_data/ The form contains texInputs, comboboxes, numeric steppers etc. For small no of items, the above approach works, but as no of items n types of items increase, it becomes mess. The main issue i am facing that other than this is i have two password( one for confirmation) fields. I have separate validators for each of them. Plus i have additional function which validates if both are equal. My question is , is it possible to create validator which can validate two other validator? Or can we have validator having two sources ? Is there any other good example of complex validations? Regards, Yogesh
Re: [flexcoders] Re: Streaming Video in Flex using Windows 2003 Server
ya u can use video display , but if your using fms/rtmp combination it is better to use Video object then attach netstream to it. It will give more control to functionality / interactivity and offcourse errors. It is good idea to control the played video form FMS server side using streams instead of using client side logic. For streams part u can refer to this http://www.adobe.com/devnet/flashmediaserver/articles/learning_fms2_excerpt/learning_fms2_ch09.pdf On Feb 1, 2008 1:17 PM, greg h [EMAIL PROTECTED] wrote: Hi Don, In a Flex/AIR app, the simplest way to do load video is using the component mx:VideoDisplay You can just copy the example in the docs here: http://livedocs.adobe.com/labs/flex3/langref/mx/controls/VideoDisplay.html#includeExamplesSummary Note that as written, the doc example is for a progressive download via http. Specifically note the value being passed on the source= property: source=assets/phone.flv Since no protocol is specified in this example, http is implied by the relative reference to the flv file. (This same, simple component also supports streaming. If the flv was being streamed the protocol RMTP would need to be included in the URI passed to the source= property.) If you copy the example in the docs into your project, you will need the absolute path to the example flv file. So just replace the URI passed to the source= property to the following: source= http://examples.adobe.com/flex2/inproduct/sdk/explorer/controls/assets/phone.flv Of course, you can also specify any valid URI to any valid flv (including your own ;-) Please post back if you have any follow-up questions. hth, g -- Regards, Yogesh
Re: [flexcoders] VideoDisplay over RTMP - Not possible?
U don't need to start from scrath , i hv once seen such component developed on net. Google may help. On Feb 1, 2008 3:59 PM, YOGESH JADHAV [EMAIL PROTECTED] wrote: exactly, VideoDisplay Sucks, use Video Object and add it to panel ( if u want same looks of videodisplay ) On Feb 1, 2008 3:13 PM, polestar11 [EMAIL PROTECTED] wrote: Hi I've run into a seemingly common problem of setting videoDisplay source to an rtmp stream. I get the following exception as soon as the video-display's play is triggered: ArgumentError: Error #2126: NetConnection object must be connected. at flash.net::NetStream/construct() at flash.net::NetStream() at VideoPlayerNetStream()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src\mx\controls\videoClasses\VideoPlayer.as:2882] I found the following URL that refers to a race condition: http://www.jlacivita.com/2007/11/14/race-conditions-in-flex-videodisplay/ I tried their monkey patch, but was still not able to get around the problem. Tracing through the Flex code I found a very interesting snippet of code in NCManagerConnectClient.onBWDone which invokes an onConnected method passing a net-connection object that is not actually connected. This continues to the VideoPlayer.ncConnected method which tries to connect the stream on the net-connection object that is not actually connected. Possible Solution: Dont use VideoDisplay for RTMP, build your own? Cheers tracy -- Regards, Yogesh -- Regards, Yogesh
Re: [flexcoders] VideoDisplay over RTMP - Not possible?
exactly, VideoDisplay Sucks, use Video Object and add it to panel ( if u want same looks of videodisplay ) On Feb 1, 2008 3:13 PM, polestar11 [EMAIL PROTECTED] wrote: Hi I've run into a seemingly common problem of setting videoDisplay source to an rtmp stream. I get the following exception as soon as the video-display's play is triggered: ArgumentError: Error #2126: NetConnection object must be connected. at flash.net::NetStream/construct() at flash.net::NetStream() at VideoPlayerNetStream()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src\mx\controls\videoClasses\VideoPlayer.as:2882] I found the following URL that refers to a race condition: http://www.jlacivita.com/2007/11/14/race-conditions-in-flex-videodisplay/ I tried their monkey patch, but was still not able to get around the problem. Tracing through the Flex code I found a very interesting snippet of code in NCManagerConnectClient.onBWDone which invokes an onConnected method passing a net-connection object that is not actually connected. This continues to the VideoPlayer.ncConnected method which tries to connect the stream on the net-connection object that is not actually connected. Possible Solution: Dont use VideoDisplay for RTMP, build your own? Cheers tracy -- Regards, Yogesh
[flexcoders] AMFPHP n security sandbox violation
Hi all, I am using amfphp 1.9 to retrieve/send data from a database for my flex app. It was working ok in LAN, but when i hosted it on server , whenever i call amfphp service it gives me error Error #2044: Unhandled SecurityErrorEvent:. text=Error #2048: Security sandbox violation: i did necessary port forwarding , url changes , checked security settings on my wamp server but cant find anything. Any pointers ? -- Regards, Yogesh
Re: [flexcoders] Adding Video Object on Stage By Using addchild() With Sound ONLY ( No Video )
this.rawchildren.addChild(video); i think you have to use raw child methods for non UI components ( like this video ). On Feb 1, 2008 12:07 AM, flexawesome [EMAIL PROTECTED] wrote: Hey there, I am using as3 to add my video object on Stage, I can hear the sound but not video shows up.. anything wrong? Thank you = private function connectStream():void { //var videoHolder:UIComponent = new UIComponent(); stream = new NetStream(connection); //stream.client = new Object(); //stream.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler); video = new Video(); video.attachNetStream(stream); video.x = 0; video.y = 0; stream.play(videoUrl); //videoHolder.addChild(video); addChild(video); } -- Regards, Yogesh
Re: [flexcoders] Adding Video Object on Stage By Using addchild() With Sound ONLY ( No Video )
this.rawChildren.addChild(video); In case you are copy pasting. On Feb 1, 2008 11:16 AM, YOGESH JADHAV [EMAIL PROTECTED] wrote: this.rawchildren.addChild(video); i think you have to use raw child methods for non UI components ( like this video ). On Feb 1, 2008 12:07 AM, flexawesome [EMAIL PROTECTED] wrote: Hey there, I am using as3 to add my video object on Stage, I can hear the sound but not video shows up.. anything wrong? Thank you = private function connectStream():void { //var videoHolder:UIComponent = new UIComponent(); stream = new NetStream(connection); //stream.client = new Object(); //stream.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler); video = new Video(); video.attachNetStream(stream); video.x = 0; video.y = 0; stream.play(videoUrl); //videoHolder.addChild(video); addChild(video); } -- Regards, Yogesh -- Regards, Yogesh
[flexcoders] Image list using Tilelist
Hi all, I want to create for image list.The list will be initially empty. On an event -button click, I am creating new Image having source path given in texinput. After that i am pushing that Image to array. I am using Tilelist for that. This is my first encounter with tileList and images, so i may be missing many obvious things. Is ItemRenderer must for every tilelist ? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:TileList x=195 y=10 width=113 dataProvider={TileListdp} height=292 id=myList rowCount=1/mx:TileList mx:Button x=52 y=170 label=Button click=dodo();/ mx:TextInput x=32 y=122 width=85 id=test_txt/ mx:Script ![CDATA[ import mx.controls.Image; import mx.collections.ArrayCollection; [Bindable] public var TileListdp:ArrayCollection; private var myArray:Array = new Array; public function dodo():void { var image1:Image = new Image; image1.source = test_txt.text; myArray.push(image1); } private function initData():void { TileListdp = new ArrayCollection(myArray); } ]] /mx:Script /mx:Application -- Regards, Yogesh
Re: [flexcoders] RichTextEditor - format preservation
I think yahoo's web messenger is using flex's RTE it is working. Hope anybody from that team is seeing this thread. On Jan 29, 2008 11:02 AM, Sherif Abdou [EMAIL PROTECTED] wrote: prob means will be in Flex 4 and not flex 3 - Original Message From: YOGESH JADHAV [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, January 28, 2008 11:26:34 PM Subject: Re: [flexcoders] RichTextEditor - format preservation Sorry my english ( or jargon about software testing ) is not that good. When I googled i got this * Deferred*: If the *bug* is not related to current build or can not be fixed in this release or *bug* is not important to fix immediately What does it exactly mean in this context? Is that the intented behaviour to lose style ? Or they dont wanna fix it ? On Jan 29, 2008 1:14 AM, Richard Rodseth [EMAIL PROTECTED] com[EMAIL PROTECTED] wrote: I see the bug was deferred without comment. If anyone has a workaround, I'd appreciate it. On Jan 24, 2008 8:30 AM, Richard Rodseth [EMAIL PROTECTED] comrrodseth%40gmail.com wrote: Since I don't yet have a workaround for this issue, I wrote up a bug, in case something can be done: http://bugs. adobe.com/ jira/browse/ SDK-14438http://bugs.adobe.com/jira/browse/SDK-14438 On Jan 9, 2008 12:27 AM, YOGESH JADHAV [EMAIL PROTECTED] comyjadhav%40gmail.com wrote: I have posted same issue few weeks ago. If anybody knows the solution please reply. I am also interested in adding support for smiley/emoticons in RTE. I have found some workarounds on net but still think that there should be inbuilt support for that. On Jan 9, 2008 12:57 AM, Richard Rodseth [EMAIL PROTECTED] comrrodseth%40gmail.com wrote: I have a RichTextEditor with htmlText bound to a property in a model. I update the model property on change events. The problem is that if I type to replace text, the formatting is not preserved. i.e. set font to 48, start typing, and the first character is in 48, the next one isn't. Or if I have 48 point text selected and type to replace, the new text is not in 48pt. Any ideas? -- There is no point in knocking the closed Windows when the door is Open. Open your eyes, use open source software. Regards, Yogesh -- Regards, Yogesh -- Never miss a thing. Make Yahoo your homepage.http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs -- Regards, Yogesh
Re: [flexcoders] RichTextEditor - format preservation
Sorry my english ( or jargon about software testing ) is not that good. When I googled i got this * Deferred*: If the *bug* is not related to current build or can not be fixed in this release or *bug* is not important to fix immediately What does it exactly mean in this context? Is that the intented behaviour to lose style ? Or they dont wanna fix it ? On Jan 29, 2008 1:14 AM, Richard Rodseth [EMAIL PROTECTED] wrote: I see the bug was deferred without comment. If anyone has a workaround, I'd appreciate it. On Jan 24, 2008 8:30 AM, Richard Rodseth [EMAIL PROTECTED]rrodseth%40gmail.com wrote: Since I don't yet have a workaround for this issue, I wrote up a bug, in case something can be done: http://bugs.adobe.com/jira/browse/SDK-14438 On Jan 9, 2008 12:27 AM, YOGESH JADHAV [EMAIL PROTECTED]yjadhav%40gmail.com wrote: I have posted same issue few weeks ago. If anybody knows the solution please reply. I am also interested in adding support for smiley/emoticons in RTE. I have found some workarounds on net but still think that there should be inbuilt support for that. On Jan 9, 2008 12:57 AM, Richard Rodseth [EMAIL PROTECTED]rrodseth%40gmail.com wrote: I have a RichTextEditor with htmlText bound to a property in a model. I update the model property on change events. The problem is that if I type to replace text, the formatting is not preserved. i.e. set font to 48, start typing, and the first character is in 48, the next one isn't. Or if I have 48 point text selected and type to replace, the new text is not in 48pt. Any ideas? -- There is no point in knocking the closed Windows when the door is Open. Open your eyes, use open source software. Regards, Yogesh -- Regards, Yogesh
[flexcoders] How to turn off camera ?
Hi all, How to turn off/on webcam in flex? I tried assignining my camera variable null value which doesn't work. CurrentFPS property is read only , so i can not assign it a 0. I was unable to find any property or event in camera object which turns the camera ON/OFF. Most of the applications give this user option to turn on/off the cam at any time. How to implement that ? -- Regards, Yogesh
Re: [flexcoders] How to turn off camera ?
By any method which works :) On Jan 24, 2008 7:35 PM, Tom Chiverton [EMAIL PROTECTED] wrote: On Thursday 24 Jan 2008, YOGESH JADHAV wrote: Hi all, How to turn off/on webcam in flex? Do you mean start/stop capture, or actually turn the privacy setting (right click a Flash app) on or off ? You can't do the latter... -- Tom Chiverton Helping to evangelistically expedite impactful IPOs on: http://thefalken.livejournal.com 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. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. 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 Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Regards, Yogesh
Re: [flexcoders] How to turn off camera ?
i mean how to stop capture On Jan 24, 2008 7:50 PM, YOGESH JADHAV [EMAIL PROTECTED] wrote: By any method which works :) On Jan 24, 2008 7:35 PM, Tom Chiverton [EMAIL PROTECTED] wrote: On Thursday 24 Jan 2008, YOGESH JADHAV wrote: Hi all, How to turn off/on webcam in flex? Do you mean start/stop capture, or actually turn the privacy setting (right click a Flash app) on or off ? You can't do the latter... -- Tom Chiverton Helping to evangelistically expedite impactful IPOs on: http://thefalken.livejournal.com 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. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. 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 Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Regards, Yogesh -- Regards, Yogesh
Re: [flexcoders] How to turn off camera ?
I don't want to attach my Camera to video, but to netstream. The aim is to detect video presence on netstream. For that i have to do camera on/off Actually I am publishing my camera live on netstream to FMS server. Even if i do my_video.visible = false, the video will keep publishing as long camera is on( capturing ). I cant touch the netstream as i am using same stream for other things ( text, arrays, objects, audio etc). Using separate streams for separate things is costly affair. I think logically also that I should actually stop camera/video capturing when users says so instead of toggling the visibility of UI. Here is my toy code, though its not commented properly, i think it is easy to understand. I am detecting video presence by watching currentFPS of netstream. *?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=connect(); mx:Script ![CDATA[ import mx.controls.Alert; import flash.net.NetConnection; import flash.net.ObjectEncoding; import flash.events.AsyncErrorEvent; import flash.events.NetStatusEvent; import flash.net.NetStream; import flash.media.Camera; private var nc:NetConnection; private var RTMP:String = rtmp://localhost/testNet; private var out_ns:NetStream; private var in_ns:NetStream; private var my_cam:Camera; private var my_video:Video; private function connect():void { nc = new NetConnection(); nc.objectEncoding = ObjectEncoding.AMF0; nc.client = this; nc.addEventListener( NetStatusEvent.NET_STATUS, netStatusHandler ); nc.connect( RTMP ); } private function netStatusHandler( event:NetStatusEvent ):void { switch( event.info.code ) { case NetConnection.Connect.Success: buildComponents(); break; default: Alert.show(event.info.code.toString()); trace(event.info.code); } } private function createNetStream():void { out_ns = new NetStream( nc ); out_ns.client = this; in_ns = new NetStream( nc ); in_ns.client = this; } public function initMyVideo():void { my_video = new Video(230,160); my_video.x = 10; my_video.width = 230; my_video.height = 160; my_video.y = 30; this.rawChildren.addChild(my_video); } private function publishIt():void { my_cam = Camera.getCamera(); out_ns.attachCamera(my_cam); out_ns.publish(mycam,live); } private function playIt():void { my_video.attachNetStream(in_ns); in_ns.play(mycam); } private function showIt():void { Alert.show( video in: + in_ns.currentFPS + out: + out_ns.currentFPS); } private function buildComponents():void { createNetStream(); initMyVideo(); publishIt(); playIt(); } private function cameraOn():void { my_cam = Camera.getCamera(); } private function cameraOff():void { my_cam = null; } ]] /mx:Script mx:Button x=277 y=62 label=ShowCurrentFPS click=showIt();/ mx:Button x=277 y=92 label=Camera ON click=cameraOn();/ mx:Button x=277 y=122 label=Camera OFF click=cameraOff();/ /mx:Application* On Jan 24, 2008 8:48 PM, Sherif Abdou [EMAIL PROTECTED] wrote: just pass a null parameter, i think but i never use a camera class before myVideo.attatchCamera(null); - Original Message From: Tom Chiverton [EMAIL PROTECTED]tom.chiverton%40halliwells.com To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Sent: Thursday, January 24, 2008 8:48:23 AM Subject: Re: [flexcoders] How to turn off camera ? On Thursday 24 Jan 2008, YOGESH JADHAV wrote: i mean how to stop capture Would your application just stop showing the 'I'm watching you' GUI ? -- Tom Chiverton, who's never done anything with Camera 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. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use
[flexcoders] How to auto indenting
Hi all, Anybody knows how to do vim like autoindenting in flex2/3. In flex 3 i cant even find source shift to lfet/right options. -- Regards, Yogesh
[flexcoders] Re: How to auto indenting
sorry , I really need good nap :), i was in other perspective , now i can see source options( in flex development ), but still don't know how to auto indent? On Jan 18, 2008 1:37 PM, YOGESH JADHAV [EMAIL PROTECTED] wrote: Hi all, Anybody knows how to do vim like autoindenting in flex2/3. In flex 3 i cant even find source shift to lfet/right options. -- Regards, Yogesh -- Regards, Yogesh
Re: [flexcoders] How to auto indenting
Hi Tom, That's not working, it just shifts the whole selected block to right. On Jan 18, 2008 4:44 PM, Tom Chiverton [EMAIL PROTECTED] wrote: On Friday 18 Jan 2008, YOGESH JADHAV wrote: Anybody knows how to do vim like autoindenting in flex2/3. In flex 3 i cant even find source shift to lfet/right options. High light the text and press tab. -- Tom Chiverton Helping to appropriately exploit eligible solutions on: http://thefalken.livejournal.com 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. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. 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 Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Regards, Yogesh
[flexcoders] How to acess any component's properties?
Hi all, I want to make my textInput editable only on doubleclick. I am trying to avoid separate action script function. I was trying following code mx:TextInput x=414 y=25 editable=false borderStyle=none color=#3B5598 text=yogi4yu doubleClick={this.editable=true ;this.borderStyle=inset;}/ I think this refers to main application class, n not that texInput. How to refer to component in current focus ? -- Regards, Yogesh
Re: [flexcoders] How to acess any component's properties?
thanx mate ! On Jan 16, 2008 5:51 PM, Jim Hayes [EMAIL PROTECTED] wrote: Giving it an id and then refering to it by that id should do what you want. mx:TextInput id=doubleClickText x=414 y=25 editable=false borderStyle=none color=#3B5598 text=yogi4yu doubleClick={ this.doubleClickText .editable=true;this.doubleClickText .borderStyle=inset;}/ -Original Message- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *YOGESH JADHAV *Sent:* 16 January 2008 12:17 *To:* [EMAIL PROTECTED]; flexcoders@yahoogroups.com *Subject:* [flexcoders] How to acess any component's properties? Hi all, I want to make my textInput editable only on doubleclick. I am trying to avoid separate action script function. I was trying following code mx:TextInput x=414 y=25 editable=false borderStyle=none color=#3B5598 text=yogi4yu doubleClick={ this.editable=true ;this.borderStyle=inset;}/ I think this refers to main application class, n not that texInput. How to refer to component in current focus ? -- Regards, Yogesh __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __ -- Regards, Yogesh
[flexcoders] Re: displaying XML in datagrid
Hi all, Got it working by using the result format of http service to e4x and modifying the datagrid like this *mx:DataGrid id=dgUserRequest x=22 y=128 dataProvider={ userRequest.lastResult.user} mx:columns mx:DataGridColumn headerText=User ID dataField=userid / mx:DataGridColumn headerText=User Name dataField=username/ /mx:columns /mx:DataGrid* Thanks On Jan 9, 2008 6:45 PM, YOGESH JADHAV [EMAIL PROTECTED] wrote: Hi all, I trying out the tutorial at http://devzone.zend.com/article/11-Integrating-Adobe-Flex-and-PHP It is working half way but, i.e. values are submitted properly to database. But Manipulating data is creating problem. Here is the original code for displaying data. *mx:DataGrid id=dgUserRequest x=22 y=128 dataProvider={userRequest.result.users.user} mx:columns mx:DataGridColumn headerText=User ID columnName=userid/ mx:DataGridColumn headerText=User Name columnName=username/ /mx:columns /mx:DataGrid mx:TextInput x=22 y=292 id=selectedemailaddress text={dgUserRequest.selectedItem.emailaddress}/ /mx:Application* But it was giving error for columnName, as i changed it id, i started complaining as another textinput was having same name as userName, i changed it userName1 and added result and fault properties to my HTTPService *mx:HTTPService id=userRequest url=http://nikhil/request.php; useProxy=false result=handlePlain(event); fault=handleFault(event); resultFormat=text method=POST private function handlePlain(event:ResultEvent):void { dgUserRequest.dataProvider = event.result; //userid.dataField = event.result.users.userid; //username1.dataField = event.result.users.username; } private function handleFault(event:FaultEvent):void { Alert.show(event.fault.toString(),Error); } *Now it gives me error that it cant find 'users' in string , i tried by changing the result format from text to xml and e4x, but it is of no use. assigning each field to each column doesn't make sense. Any kinda help will be appreciated. Regards, Yogesh -- Regards, Yogesh
Re: [flexcoders] XML List problems
I think you shoud specify the method of php( GET or POST). using result event handler is most preferd way but u can directly assign dataprovider = {tempXML.lastResult.asset} and provide datafield=fleet. On Jan 11, 2008 3:10 AM, markcavins [EMAIL PROTECTED] wrote: I have had some help from some others on this issue but the battle continues and I am perplexed as to why this might be happening. I am grabbing a HTTPService from my site mx:HTTPService id=tempXML url= https://mysite.net/interface.php?action=showopenamp;operation=showassetsamp;format=xmlamp;opstatus=crithttps://mysite.net/interface.php?action=showopenoperation=showassetsformat=xmlopstatus=crit / and displaying it in a TileList mx:TileList dataProvider={tempXML.lastResult.asset.fleet} width=344 backgroundColor=#00 color=#ff fontSize=27 borderColor=#00 columnWidth=300 rowHeight=50 themeColor=#808080 fontWeight=bold allowMultipleSelection=true id=TileList1 height=0 y=202 x=178/ and then refreshing the data every 5 minutes or when a user pushes a button. before I was trying to call the data with a mx:XML and the data was displaying but the data would not refresh. Looking through the docs it seems that that is the expected response. changing to the Service request I can look through firebug and see that the request is being made and that the server is returning the proper xml but now the TileList is not displaying any information. I have tried to look through the docs to see what might be the cause but not solution has presented itself. -- Regards, Yogesh
Re: [flexcoders] RichTextEditor - format preservation
I have posted same issue few weeks ago. If anybody knows the solution please reply. I am also interested in adding support for smiley/emoticons in RTE. I have found some workarounds on net but still think that there should be inbuilt support for that. On Jan 9, 2008 12:57 AM, Richard Rodseth [EMAIL PROTECTED] wrote: I have a RichTextEditor with htmlText bound to a property in a model. I update the model property on change events. The problem is that if I type to replace text, the formatting is not preserved. i.e. set font to 48, start typing, and the first character is in 48, the next one isn't. Or if I have 48 point text selected and type to replace, the new text is not in 48pt. Any ideas? -- There is no point in knocking the closed Windows when the door is Open. Open your eyes, use open source software. Regards, Yogesh
[flexcoders] Re: [flex_india:5620] Re: Php-flex communication pointers
Thanks all of u who took time to read and reply back. People like you are angels for newbies and dumbos (like me) :) ! On Jan 9, 2008 1:17 PM, Anish Kumar [EMAIL PROTECTED] wrote: Flex for PHP Developers http://flex.org/php/ A nice article on Integrating Adobe Flex and PHP by Mike http://devzone.zend.com/article/11-Integrating-Adobe-Flex-and-PHP -Anish On Jan 9, 11:41 am, kumar [EMAIL PROTECTED] wrote: hi use this blog,it contains good code examples of flex and php. http://flexonblog.wordpress.com/ On Jan 9, 11:31 am, Vinod M Jacob [EMAIL PROTECTED] wrote: Hi- Look at these sample projects http://learn.adobe.com/wiki/display/Flex/Download+Projects YOGESH JADHAV wrote: Hi all, I am looking for some help/ tutorial/ sample-code which can guide a flex newbie on how to communicate to remote database. I want to display, say an image username taken from a serverdatabase( say msql) , setup a http service using php, display it in flex( say tile list), reflect the changes made in list to database at runtime. I know little bit of php, mysql. So i can convert data to xml format. But I confused about E4x and how to set up httpservice, how to use it. are there any security issue? Is there any alternate way? if yes which one is better? I have googled a bit for this, but most of the good examples are using coldfusion, json, asp etc. Thanks in advance Regards, Yogesh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Flex India Community group. To post to this group, send email to [EMAIL PROTECTED] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~--~~~~--~~--~--~--- -- There is no point in knocking the closed Windows when the door is Open. Open your eyes, use open source software. Regards, Yogesh
[flexcoders] displaying XML in datagrid
Hi all, I trying out the tutorial at http://devzone.zend.com/article/11-Integrating-Adobe-Flex-and-PHP It is working half way but, i.e. values are submitted properly to database. But Manipulating data is creating problem. Here is the original code for displaying data. *mx:DataGrid id=dgUserRequest x=22 y=128 dataProvider={userRequest.result.users.user} mx:columns mx:DataGridColumn headerText=User ID columnName=userid/ mx:DataGridColumn headerText=User Name columnName=username/ /mx:columns /mx:DataGrid mx:TextInput x=22 y=292 id=selectedemailaddress text={dgUserRequest.selectedItem.emailaddress}/ /mx:Application* But it was giving error for columnName, as i changed it id, i started complaining as another textinput was having same name as userName, i changed it userName1 and added result and fault properties to my HTTPService *mx:HTTPService id=userRequest url=http://nikhil/request.php; useProxy=false result=handlePlain(event); fault=handleFault(event); resultFormat=text method=POST private function handlePlain(event:ResultEvent):void { dgUserRequest.dataProvider = event.result; //userid.dataField = event.result.users.userid; //username1.dataField = event.result.users.username; } private function handleFault(event:FaultEvent):void { Alert.show(event.fault.toString(),Error); } *Now it gives me error that it cant find 'users' in string , i tried by changing the result format from text to xml and e4x, but it is of no use. assigning each field to each column doesn't make sense. Any kinda help will be appreciated. Regards, Yogesh
Re: [flexcoders] displaying XML in datagrid
Hi Tracy, Thanx for that, i followed that and now i am getting long xml in ( which is same in both column ) inside my datagrid. I was getting same result when result format was text previously. My problem is how to break up that xml data, map it to respective coloums and show it row by row. Earlier i was thinking of using XML decoder, and ther write a function to chop n display those objects , but thought there must be a simpler and smarter way to do that automatically. On Jan 10, 2008 11:10 AM, Tracy Spratt [EMAIL PROTECTED] wrote: You do not have XML in your result and dataProvider, you have a nested object structure which is the default. Set resultFormat=e4x, then cast/convert event.result to XML, then view it using toXMLString(). Then go from there. Tracy -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *YOGESH JADHAV *Sent:* Wednesday, January 09, 2008 8:15 AM *To:* [EMAIL PROTECTED]; flexcoders@yahoogroups.com *Subject:* [flexcoders] displaying XML in datagrid Hi all, I trying out the tutorial at http://devzone.zend.com/article/11-Integrating-Adobe-Flex-and-PHP It is working half way but, i.e. values are submitted properly to database. But Manipulating data is creating problem. Here is the original code for displaying data. *mx:DataGrid id=dgUserRequest x=22 y=128 dataProvider={* *userRequest.result.users.user} mx:columns mx:DataGridColumn headerText=User ID columnName=userid/ mx:DataGridColumn headerText=User Name columnName=username/* * /mx:columns /mx:DataGrid mx:TextInput x=22 y=292 id=selectedemailaddress text={dgUserRequest.selectedItem.emailaddress}/ /mx:Application* But it was giving error for columnName, as i changed it id, i started complaining as another textinput was having same name as userName, i changed it userName1 and added result and fault properties to my HTTPService *mx:HTTPService id=userRequest url=http://nikhil/request.php; useProxy=false result=handlePlain(event); fault=handleFault(event); resultFormat=text method=POST private function handlePlain(event:ResultEvent):void { dgUserRequest.dataProvider = event.result; //userid.dataField = event.result.users.userid; //username1.dataField = event.result.users.username; } private function handleFault(event:FaultEvent):void { Alert.show(event.fault.toString(),Error); } *Now it gives me error that it cant find 'users' in string , i tried by changing the result format from text to xml and e4x, but it is of no use. assigning each field to each column doesn't make sense. Any kinda help will be appreciated. Regards, Yogesh -- Regards, Yogesh
[flexcoders] Php-flex communication pointers
Hi all, I am looking for some help/ tutorial/ sample-code which can guide a flex newbie on how to communicate to remote database. I want to display, say an image username taken from a serverdatabase( say msql) , setup a http service using php, display it in flex( say tile list), reflect the changes made in list to database at runtime. I know little bit of php, mysql. So i can convert data to xml format. But I confused about E4x and how to set up httpservice, how to use it. are there any security issue? Is there any alternate way? if yes which one is better? I have googled a bit for this, but most of the good examples are using coldfusion, json, asp etc. Thanks in advance Regards, Yogesh
Re: [flexcoders] Reliable timer technique
Hi Frederico, The Alert is pop uped after some time interval. For first time it is ok, i.e. 3 seconds, but after that it vanishes much before 3 seconds, many times less than 1 second and sometimes it just flashes, can't be seen. My concept of timer is not that clear, It will be great if u provide some timing snipeet using On Enter Frame. On Jan 7, 2008 3:19 PM, Frederico Garcia [EMAIL PROTECTED] wrote: YOGESH JADHAV escreveu: Hi all, I want a reliable timer in my app to remove a alert after say 3 seconds. Earlier I tried the normal setTimeOut but it is not reliable and gives error in firefox. So i tried with onEnterFrame technique, but it is also not working properly. I also tried by setting application frame rate to some value ( like 99, 70 etc). I have seen many application which are having perfect and reliable timing events. Can anybody guide me to achieve perfect timing event. Code snippets will be more than appreciated. Here is my code private function showMyAlert():void { alert = Alert.show( Test, shud be gone in 3 seconds); //setTimeout(hideAlert, 3000); onCreationComplete(); } private function hideAlert():void { PopUpManager.removePopUp(alert); } private function alertCloseHnadler(event:CloseEvent):void { if (event.detail == Alert.YES) Alert.show(Yes); } private function onCreationComplete() : void { timer = new Timer(3000); timer.addEventListener( TimerEvent.TIMER, onTimerEvent ); timer.start (); fps = 0; this.addEventListener(Event.ENTER_FRAME, onFrameEnter); } private function onFrameEnter( event : Event ) : void { fps++; trace(enterframe); } private function onTimerEvent( event : Event ) : void { hideAlert(); } -- There is no point in knocking the closed Windows when the door is Open. Open your eyes, use open source software. Regards, Yogesh __ NOD32 2760 (20080102) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com Hi, The code for Timer should work. Not advisable to use at the same time as onEnterFrame. Either Timer or onEnterFrame are susceptible to CPU usage. But with such an interval (3secs) you should have no problem. I've used Timer to make a clock (www.kemelyon.com) and it's exact in seconds. How big is the error for Timer (and it takes longer or less than expected)? Regards, Frederico Garcia -- There is no point in knocking the closed Windows when the door is Open. Open your eyes, use open source software. Regards, Yogesh
Re: [flexcoders] Reliable timer technique
thanx a lot dude :) ! On Jan 7, 2008 5:07 PM, Frederico Garcia [EMAIL PROTECTED] wrote: YOGESH JADHAV escreveu: Hi Frederico, The Alert is pop uped after some time interval. For first time it is ok, i.e. 3 seconds, but after that it vanishes much before 3 seconds, many times less than 1 second and sometimes it just flashes, can't be seen. My concept of timer is not that clear, It will be great if u provide some timing snipeet using On Enter Frame. On Jan 7, 2008 3:19 PM, Frederico Garcia [EMAIL PROTECTED]fmotagarcia%40kemelyon.com mailto:[EMAIL PROTECTED] fmotagarcia%40kemelyon.com wrote: YOGESH JADHAV escreveu: Hi all, I want a reliable timer in my app to remove a alert after say 3 seconds. Earlier I tried the normal setTimeOut but it is not reliable and gives error in firefox. So i tried with onEnterFrame technique, but it is also not working properly. I also tried by setting application frame rate to some value ( like 99, 70 etc). I have seen many application which are having perfect and reliable timing events. Can anybody guide me to achieve perfect timing event. Code snippets will be more than appreciated. Here is my code private function showMyAlert():void { alert = Alert.show( Test, shud be gone in 3 seconds); //setTimeout(hideAlert, 3000); onCreationComplete(); } private function hideAlert():void { PopUpManager.removePopUp(alert); } private function alertCloseHnadler(event:CloseEvent):void { if (event.detail == Alert.YES) Alert.show(Yes); } private function onCreationComplete() : void { timer = new Timer(3000); timer.addEventListener( TimerEvent.TIMER, onTimerEvent ); timer.start (); fps = 0; this.addEventListener(Event.ENTER_FRAME, onFrameEnter); } private function onFrameEnter( event : Event ) : void { fps++; trace(enterframe); } private function onTimerEvent( event : Event ) : void { hideAlert(); } -- There is no point in knocking the closed Windows when the door is Open. Open your eyes, use open source software. Regards, Yogesh __ NOD32 2760 (20080102) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com Hi, The code for Timer should work. Not advisable to use at the same time as onEnterFrame. Either Timer or onEnterFrame are susceptible to CPU usage. But with such an interval (3secs) you should have no problem. I've used Timer to make a clock (www.kemelyon.com http://www.kemelyon.com) and it's exact in seconds. How big is the error for Timer (and it takes longer or less than expected)? Regards, Frederico Garcia -- There is no point in knocking the closed Windows when the door is Open. Open your eyes, use open source software. Regards, Yogesh __ NOD32 2769 (20080107) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com Hi, You got me in good mood so here's an example covering both the Timer and onEnterFrame timing techniques: http://www.kemelyon.com/timing_example/ (right click to view source). Near the end of making you the example I figured out what was wrong in your code. Really simple, so simple I often forget it. STOPPING THE TIMER! :) imagine you set the timer to trigger every 3 seconds; after one second you close the alert; after half a second you open the alert again. After half a second the Timer would trigger and your new born alert would be closed. Tell me if this helped, Frederico Garcia -- There is no point in knocking the closed Windows when the door is Open. Open your eyes, use open source software. Regards, Yogesh
Re: [flexcoders] Reliable timer technique
Hi Frederico, Thanks once more for that great code sample. My mistake was not resetting the counter on Alert close event on timer complete. Here is my code which is running perfectly ( taken from adobe docs). Though it is working , please tell me if i am still doing something silly. private var minuteTimer:Timer; public function showAlert():void { alert = Alert.show( This shud be gone in 3 sec., test, Alert.YES | Alert.NO, null,alertCloseHandler ); ShortTimer(); } public function ShortTimer():void { minuteTimer = new Timer(1000,3); minuteTimer.addEventListener(TimerEvent.TIMER_COMPLETE ,onTimerComplete); minuteTimer.start(); } public function onTimerComplete(evt:TimerEvent):void { PopUpManager.removePopUp(alert); minuteTimer.reset(); } private function alertCloseHandler(event:CloseEvent):void { if (event.detail == Alert.YES) { Alert.show(Yes); } //minuteTimer.stop(); minuteTimer.reset(); } On Jan 7, 2008 5:39 PM, YOGESH JADHAV [EMAIL PROTECTED] wrote: thanx a lot dude :) ! On Jan 7, 2008 5:07 PM, Frederico Garcia [EMAIL PROTECTED] wrote: YOGESH JADHAV escreveu: Hi Frederico, The Alert is pop uped after some time interval. For first time it is ok, i.e. 3 seconds, but after that it vanishes much before 3 seconds, many times less than 1 second and sometimes it just flashes, can't be seen. My concept of timer is not that clear, It will be great if u provide some timing snipeet using On Enter Frame. On Jan 7, 2008 3:19 PM, Frederico Garcia [EMAIL PROTECTED]fmotagarcia%40kemelyon.com mailto:[EMAIL PROTECTED] fmotagarcia%40kemelyon.com wrote: YOGESH JADHAV escreveu: Hi all, I want a reliable timer in my app to remove a alert after say 3 seconds. Earlier I tried the normal setTimeOut but it is not reliable and gives error in firefox. So i tried with onEnterFrame technique, but it is also not working properly. I also tried by setting application frame rate to some value ( like 99, 70 etc). I have seen many application which are having perfect and reliable timing events. Can anybody guide me to achieve perfect timing event. Code snippets will be more than appreciated. Here is my code private function showMyAlert():void { alert = Alert.show( Test, shud be gone in 3 seconds); //setTimeout(hideAlert, 3000); onCreationComplete(); } private function hideAlert():void { PopUpManager.removePopUp(alert); } private function alertCloseHnadler(event:CloseEvent):void { if (event.detail == Alert.YES) Alert.show(Yes); } private function onCreationComplete() : void { timer = new Timer(3000); timer.addEventListener( TimerEvent.TIMER, onTimerEvent ); timer.start (); fps = 0; this.addEventListener(Event.ENTER_FRAME, onFrameEnter); } private function onFrameEnter( event : Event ) : void { fps++; trace(enterframe); } private function onTimerEvent( event : Event ) : void { hideAlert(); } -- There is no point in knocking the closed Windows when the door is Open. Open your eyes, use open source software. Regards, Yogesh __ NOD32 2760 (20080102) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com Hi, The code for Timer should work. Not advisable to use at the same time as onEnterFrame. Either Timer or onEnterFrame are susceptible to CPU usage. But with such an interval (3secs) you should have no problem. I've used Timer to make a clock (www.kemelyon.com http://www.kemelyon.com) and it's exact in seconds. How big is the error for Timer (and it takes longer or less than expected)? Regards, Frederico Garcia -- There is no point in knocking the closed Windows when the door is Open. Open your eyes, use open source software. Regards, Yogesh __ NOD32 2769 (20080107) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com Hi, You got me in good mood so here's an example covering both the Timer and onEnterFrame timing techniques: http://www.kemelyon.com/timing_example/ (right click to view source). Near the end of making you the example I figured out what was wrong in your code. Really simple, so simple I often forget it. STOPPING THE TIMER! :) imagine you set the timer to trigger every 3 seconds; after one second you close the alert; after half a second you open the alert again. After half a second the Timer would trigger
[flexcoders] Reliable timer technique
Hi all, I want a reliable timer in my app to remove a alert after say 3 seconds. Earlier I tried the normal setTimeOut but it is not reliable and gives error in firefox. So i tried with onEnterFrame technique, but it is also not working properly. I also tried by setting application frame rate to some value ( like 99, 70 etc). I have seen many application which are having perfect and reliable timing events. Can anybody guide me to achieve perfect timing event. Code snippets will be more than appreciated. Here is my code private function showMyAlert():void { alert = Alert.show( Test, shud be gone in 3 seconds); //setTimeout(hideAlert, 3000); onCreationComplete(); } private function hideAlert():void { PopUpManager.removePopUp(alert); } private function alertCloseHnadler(event:CloseEvent):void { if (event.detail == Alert.YES) Alert.show(Yes); } private function onCreationComplete() : void { timer = new Timer(3000); timer.addEventListener( TimerEvent.TIMER, onTimerEvent ); timer.start(); fps = 0; this.addEventListener(Event.ENTER_FRAME, onFrameEnter); } private function onFrameEnter( event : Event ) : void { fps++; trace(enterframe); } private function onTimerEvent( event : Event ) : void { hideAlert(); } -- There is no point in knocking the closed Windows when the door is Open. Open your eyes, use open source software. Regards, Yogesh
[flexcoders] Detecting Video presence on NetStream
Hi all, I want to know how to detect if there is video coming from ( FMS) server attached to a netstream? Is there somethin like Buffer.Empty? Is that of use if i am using same stream for multiple things like video, sound, text etc? -- There is no point in knocking the closed Windows when the door is Open. Open your eyes, use open source software. Regards, Yogesh
[flexcoders] PopUpMenuButton Problem
Hi all, In a form , I am using PopUpMenu button for selecting user gender/sex. I am using PopUpmenu button instead of Radiobutton because Intitally there should not be any sex selected , there will be just SELECT, so this not biased to any gender and i also want to force the user to select one of them. But when i apply my Popup menu button Label =Select i cant see the options if if idon't set any label , i am able to select options , but the aption is not really selected, the sex.selectedField is empty. here is my code. mx:PopUpMenuButton x=229 y=68 id=sex visible=true label=Select mx:dataProvider mx:StringMALE/mx:String mx:StringFEMALE/mx:String /mx:dataProvider /mx:PopUpMenuButton private var userSex:String = sex.selectedField; -- There is no point in knocking the closed Windows when the door is Open. Open your eyes, use open source software. Regards, Yogesh
[flexcoders] Retaining RTE text style
Hi all, I am using flex's default Rich Text Editor. Problem is that when u select some perticular style ( say cloer red bold ), it is reset when user press enter, the text now is normal again. Now I either have to select and format that text, or use formatted text after selecting option till next enter. How to retain one perticular text format/style till user changes it ? -- There is no point in knocking the closed Windows when the door is Open. Open your eyes, use open source software. Regards, Yogesh
[flexcoders] VideoDisplay.addChild(Video) how to do that
Hi all, I want to display live video from FMS server. Because of some unknown reason , my VideoDisplay( which is on top of a panel ) doesn't play rtmp source ( i plays http source happily). So I am now creating Video object ,attaching a NetStream to it, adding as a child to an UIComponent, and then 'addChilding' that UIComponnet to stage does my job. But if i do remote_display.addChild(my_video_object) it does not show up. How to display that video inside a panel/ or VideoDisplay ? Why flex dont provide a attachNetstream to VideoDisplay? Source is ok but changing uri dynamically is a bit problem. -- There is no point in knocking the closed Windows when the door is Open. Open your eyes, use open source software. Regards, Yogesh
[flexcoders] Re: VideoDisplay.addChild(Video) how to do that
Many people had this issue before http://www.flashcomguru.com/index.cfm/2007/1/17/Playing-a-live-FMS-stream-using-VideoDisplay-in-Flex2#comments Does flex3 give access to internal video object/netstream of VideoDisplay ? On Dec 13, 2007 10:55 AM, YOGESH JADHAV [EMAIL PROTECTED] wrote: Hi all, I want to display live video from FMS server. Because of some unknown reason , my VideoDisplay( which is on top of a panel ) doesn't play rtmp source ( i plays http source happily). So I am now creating Video object ,attaching a NetStream to it, adding as a child to an UIComponent, and then 'addChilding' that UIComponnet to stage does my job. But if i do remote_display.addChild(my_video_object) it does not show up. How to display that video inside a panel/ or VideoDisplay ? Why flex dont provide a attachNetstream to VideoDisplay? Source is ok but changing uri dynamically is a bit problem. -- There is no point in knocking the closed Windows when the door is Open. Open your eyes, use open source software. Regards, Yogesh -- There is no point in knocking the closed Windows when the door is Open. Open your eyes, use open source software. Regards, Yogesh
[flexcoders] Re: VideoDisplay.addChild(Video) how to do that
even this technique is not working http://www.restlessthinker.com/blog/?p=59 by the way every time i post here , i am getting this mail (BRMA) Mensagem não autorizada Reply to all Forward Reply by chat Filter messages like this Print Add to Contacts list Delete this message Report phishing Report not phishing Show original Show in fixed width font Show in variable width font Message text garbled? Why is this spam/nonspam? [EMAIL PROTECTED] to me show details 11:31 AM (10 minutes ago) Reply Mensagem não autorizada Palavra (video) proibida no campo Subject Para: [EMAIL PROTECTED], flexcoders@yahoogroups.com Assunto: [flexcoders] Re: VideoDisplay.addChild(Video) how to do that On Dec 13, 2007 11:31 AM, YOGESH JADHAV [EMAIL PROTECTED] wrote: Many people had this issue before http://www.flashcomguru.com/index.cfm/2007/1/17/Playing-a-live-FMS-stream-using-VideoDisplay-in-Flex2#comments Does flex3 give access to internal video object/netstream of VideoDisplay ? On Dec 13, 2007 10:55 AM, YOGESH JADHAV [EMAIL PROTECTED] wrote: Hi all, I want to display live video from FMS server. Because of some unknown reason , my VideoDisplay( which is on top of a panel ) doesn't play rtmp source ( i plays http source happily). So I am now creating Video object ,attaching a NetStream to it, adding as a child to an UIComponent, and then 'addChilding' that UIComponnet to stage does my job. But if i do remote_display.addChild(my_video_object) it does not show up. How to display that video inside a panel/ or VideoDisplay ? Why flex dont provide a attachNetstream to VideoDisplay? Source is ok but changing uri dynamically is a bit problem. -- There is no point in knocking the closed Windows when the door is Open. Open your eyes, use open source software. Regards, Yogesh -- There is no point in knocking the closed Windows when the door is Open. Open your eyes, use open source software. Regards, Yogesh -- There is no point in knocking the closed Windows when the door is Open. Open your eyes, use open source software. Regards, Yogesh
Re: [flexcoders] Extending the RichTextEditor
If ur intension is to add smiley/ emoticons , this may help http://www.hrundik.ru/smiley/ On Dec 8, 2007 11:17 PM, Dave [EMAIL PROTECTED] wrote: I was just wondering if anyone had a sample of extending the RichTextEditor to support inserting images? I am looking at it and it seems you have to insert the html img tag into the HTML and you can figure out where by the selection property, but I also want to just add a button to the tool bar for images and I am getting stumped. Thanks for any and all help. Dave Finnerty