[flexcoders] NumericStepper events
Hi all,I have a NumericStepper that updates a label whenever it's changed. If the user click at the arrows there's no problem, but if they enter the value manually, the label doesn't get updated until the NumericStepper loses focus, or until the arrows are clicked. I've tried both change and valueCommit but none of them work. What event should I use? Thanks, Oriol. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] dataservice only working localy, not working when trying access from internet
You've already responded yourself: it tries to load it from the local ip address. You have to change the ip to your public one, not the local. Remember that the swf is executed client-side, thus, it tries to find that ip within client's lan. Oriol.2006/9/4, pioplacz [EMAIL PROTECTED]: I don't know what's wrong it worked fine in the flex 1.5. Myhttpservice is placed on the same machine as the application and i'maccessing in by the local ip adress. But when trying to access theapplication from internet nothing is working no data is loaded and it tryes to load it from the local ip adress why's that. I pastehere my source code. can anybody please help me??xml version=1.0 encoding=utf-8?mx:Application xmlns:mx= http://www.adobe.com/2006/mxmllayout=absolutehorizontalAlign=center verticalAlign=middlebackgroundGradientColors=[#00, #00] width=100% height=100%creationComplete=movieService.send()viewSourceURL=srcview/index.html xmlns:ns1=*mx:HTTPService id=movieService url="" href="http://192.168.25.200/PHP/katalog.php">http://192.168.25.200/PHP/katalog.php useProxy=false result=srv_results(event)/mx:Style source= katalog2main.css/mx:Script![CDATA[import mx.rpc.events.ResultEvent;import mx.collections.ArrayCollection;import mx.events.ItemClickEvent ;import mx.controls.Alert;import mx.events.CloseEvent;import flash.events.Event;import flash.net.URLRequest;public function srv_results(event:ResultEvent):void {//Alert.show(ObjectUtil.toString(event.result) );movieCollection =event.result.helakatalog.katalog as ArrayCollection; movieCollection.filterFunction=processFilter;}[Bindable]private var movieCollection:ArrayCollection;[Bindable]public var selectedItem:Object; // Filter functionpublic function processFilter(item:Object):Boolean{var result:Boolean=false;if (!item.title.length || item.title.toUpperCase().indexOf(filterInput.text.toUpperCase()) = 0)if (!item.genres.length|| item.genres.toUpperCase().indexOf(genresInput.text.toUpperCase()) = 0) result=true;return result; }private function textChange():void{movieCollection.refresh ();}public var u:URLRequest;// Event listener to open URL using the navigateToURL()method.private function dgMovieListClick(eventObj:Event):void { u = new URLRequest(http://192.168.25.200/Movies/ + dgMovieList.selectedItem.link);navigateToURL(u); Alert.show(Nerladdnings sidaöppnad..., Nerladdnings sidan, Alert.OK);}// Event listener to open URL using the navigateToURL()method.private function dgTileListClick (eventObj:Event):void {u = new URLRequest(http://192.168.25.200/Movies/ + tilelist1.selectedItem.link);navigateToURL(u); Alert.show(Nerladdnings sidaöppnad..., Nerladdnings sidan, Alert.OK);}]]/mx:Script!-- An ArrayCollection with an array of objects. -- mx:ArrayCollection id=genresmx:Arraymx:Object label= data="">mx:Object label=Action data="" mx:Object label=Animerat data="">mx:Object label=Drama data="">mx:Object label=Komedi data="" mx:Object label=Thriller data="">/mx:Array/mx:ArrayCollectionmx:statesmx:State name=Grid mx:RemoveChild target={tilelist1}/mx:RemoveChild target={dockedBar}/mx:AddChild relativeTo={mainVbox} position=lastChild target={dockedBar}/mx:SetEventHandler target={stchange}name=click handler=currentState=''/ mx:AddChild relativeTo={tilecanvas}position=lastChildmx:DataGrid id=dgMovieListwidth=100% height=100% dataProvider={movieCollection} doubleClickEnabled=true itemDoubleClick=dgMovieListClick(event);editable=false borderStyle=none y=0mx:columns mx:DataGridColumnheaderText=Titel dataField=title/mx:DataGridColumnheaderText=Kategori dataField=genres/ mx:DataGridColumnheaderText=År dataField=year/mx:DataGridColumnheaderText=Utgivare dataField=publisher/ /mx:columns/mx:DataGrid/mx:AddChild/mx:State/mx:states !-- Define the effects for the transitions between states --mx:transitions!-- Define the transition from the base state to the Gridstate.--mx:Transition id=toGrid fromState=* toState=Grid mx:Sequence target={tilecanvas} mx:Parallel target={tilecanvas}mx:Fade alphaFrom=0 alphaTo=1 duration=1500/mx:Move yFrom=1500 yBy=-1500duration=1000/ /mx:Parallel/mx:Sequence /mx:Transition!-- Define the transition from the Grid state to the basestate.--mx:Transition id=toDefault fromState=Grid toState=* mx:Sequence target={tilecanvas} mx:Parallel target={tilecanvas}mx:Fade alphaFrom=0 alphaTo=1 duration=1500/mx:Move yFrom=1500 yBy=-1500duration=1000//mx:Parallel/mx:Sequence /mx:Transition/mx:transitions!-- Transition effects END --mx:VBox width=85% height=100% verticalCenter=20id=mainVbox horizontalCenter=0 horizontalAlign=center verticalAlign=middlemx:Canvas width=100% height=80% id=tilecanvas mx:TileList id=tilelist1 width=100% height=100% itemRenderer=thumbnail dataProvider={movieCollection}horizontalScrollPolicy=off borderStyle=nonetop=19doubleClickEnabled=true itemDoubleClick=dgTileListClick(event);allowMultipleSelection=false horizontalCenter=0//mx:Canvasmx:ApplicationControlBar id=dockedBar dock=true width=100%mx:HBox horizontalAlign=right
Re: [flexcoders] Re: amfphp-AS class mapping issue
Ok then, have you set your return type in your method table? It also has to be the fully qualified name.2006/9/1, joangarnetdotcom [EMAIL PROTECTED] : Hi, thanx for you repy.I did set $gateway-setBaseCustomMappingsPath() to point to the classpath where my PHP classes are.All PHP classes are matching exactly the same package path as my AS classes (just to make things easier). I did not set $incoming nor $outgoing in advancedsettings.php as, if I understood well, this is not necessary if you set $_explicitTtpe with the class' fully qualified name in the PHP class.Please tell me if I'm wrong or if you think there's some more light on this. Cheers!Joan--- In flexcoders@yahoogroups.com, Oriol Gual [EMAIL PROTECTED] wrote: Have you changed your advancedsettings.php to correctly map your classes? 2006/8/31, joangarnetdotcom [EMAIL PROTECTED]: Hi, I'm in a Flex2 app. I can't manage to map a php return value to the right AS type... In my service method I have this return statement: return new Result( true, new Status() ); In Result.php I have public $_explicitType = org.bestiario.website.Result; In Status.php I have public $_explicitType = org.bestiario.website.Status ; I also have the corresponding Result.as and Status.as classes on the Flex side. In my HTTP debugger (Charles) I can see the AMF packet coming with correct types as you can see here: http://www.joangarnet.com/_otras/charles.gif But when the callback executes and I do: public function onResult( event:* = null ):void { var res:Result = Result( event.result); } I get the following exception: TypeError: Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to org.bestiario.website.Result. Any ideas?? Cheers! P.S. I'm using Renaun's RemoteObjectAMF0 class to call amfphp services. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] How to pass value object from Flex to AMFPHP
There has been a lot of talk about this, see: http://www.mail-archive.com/flexcoders@yahoogroups.com/msg35108.html 2006/9/1, junhufr [EMAIL PROTECTED]:I could pass simple data types, like string, from Flex to amfPHP, but want to pass VOs to the AMFPHP.Any help is appreciated.Jun--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] ServiceCapture, Charles opern source equivalent?
Hi,Does any one know an open-source (or at least free) equivalent to ServiceCapture or Charles?Thanks,Oriol. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] [ann] WebORB for PHP (with AMF3 support)
Finally we have something great to use Flex and PHP! I'll give it a try, and I'm sure I won't miss methodtables. Does class mapping works without any problem, or do we have to make some tricks like the $_explicitType with AMFPHP? Oriol.2006/9/1, Marcelo de Moraes Serpa [EMAIL PROTECTED]: That's awesome. Can't wait to see the other FDS features implemented! That is really promising :)Marcelo.On 9/1/06, Mark Piller [EMAIL PROTECTED] wrote: Hi, We just released WebORB for PHP. The product is free and open-source and functions as a remoting gateway for Flex and Flash Remoting clients. Flex clients can use the RemoteObject API (or mx:RemoteObject) to connect to the deployed PHP classes. Check out the product page at: http://www.themidnightcoders.com/weborb/php Cheers, Mark __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] amfphp-AS class mapping issue
Have you changed your advancedsettings.php to correctly map your classes?2006/8/31, joangarnetdotcom [EMAIL PROTECTED]: Hi, I'm in a Flex2 app.I can't manage to map a php return value to the right AS type... In my service method I have this return statement: return new Result( true, new Status() );In Result.php I have public $_explicitType = org.bestiario.website.Result; In Status.php I havepublic $_explicitType = org.bestiario.website.Status; I also have the corresponding Result.as and Status.as classes on the Flex side.In my HTTP debugger (Charles) I can see the AMF packet coming with correct types as you can see here: http://www.joangarnet.com/_otras/charles.gif But when the callback executes and I do: public function onResult( event:* = null ):void{ var res:Result = Result(event.result); }I get the following exception: TypeError: Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to org.bestiario.website.Result. Any ideas??Cheers! P.S. I'm using Renaun's RemoteObjectAMF0 class to call amfphp services. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Re: Best Practice Question/Cairngorm Framework/VOs
HI Kenny,There is a much more easier way. I suppose you have your OptionVO in your model. Then you only have to do this:mx:List id='myList' change={model.optiopnvo = OptionVO(myList.selectedItem)}/ or whatever you want: mx:TextInput id=myText change={model.optionvo.propertie = myText.text}/Remember to import the ModelLocator in your mxml file and get an instance of it.Oriol. 2006/8/27, lostinrecursion [EMAIL PROTECTED]: It's so simple, I can't believe I didn't see it before.One event and One command can do the work of updating the ValueObjectfor my Product. All the event has to carry is the property name itwill update and the value. The format of the value is known to the Model and doesn't need to be known to the View. So, when itdispatches, it just puts things where they go.If you know of a better way, let me know. That sounds like good oldMVC/Cairngorm to me!-Kenny --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Re: AMFPHP: Mapping date objects between PHP and Flex
Hi, I had the same problem, I always got a Coercion error, and my solution was to implement the getter and setter for the date var:private var _date : Date;public function get date():Date{ return _date; }public function set date(value:*):void { _date = new Date(value);}I'm also using unix timestamps to send the values, but I've noticed a weird behaivour: Went sending dates to Flex, I have to multiply the timestampy by 1000, and when receiveing from Flex, divide it also by 1000. If not, the date is not the same. Anyone knows why? Oriol.2006/8/21, Marcelo de Moraes Serpa [EMAIL PROTECTED]: Hmm.. I haven´t ran the login sample app. For dates, I always used unix timestamps and converted the timestamp to string on the server before returning it to flash. For my purposes it always worked well as I never had to do any date math on the client side. Take a look at this page:http://www.amfphp.org/docs/datatypes.html and note the DateWrapper class... maybe it could solve your problem? Marcelo. On 8/21/06, Stefan Schmalhaus [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote: If you´re using RemoteObjectAMF0, just take a look at the samples Renaun provides. Yes, I'm using Renaun's RemoteObjectAMF0. But in the sample he provides the date mapping doesn't work either. The published date column is empty! http://renaun.com/blog/2006/07/26/71/ Take a look at comment #23! __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Re: AMFPHP: Mapping date objects between PHP and Flex
And why dates are multiplied by 1000?2006/8/21, Renaun Erickson [EMAIL PROTECTED]: Oriol,My example is a little misleading, I will have to update it.Theissue at hand is a limitation of PHP.You have to handle the manualconversion your self and your method below is a perfect fit. As far as the 1000 issue it is related to Flash date.Flash dates are mapped to Unix timestamps multiplied by 1000; inaddition, no timezone information is available in these dates, whichcan cause errors especially if you are using the DateChooser component. Renaun--- In flexcoders@yahoogroups.com, Oriol Gual [EMAIL PROTECTED] wrote: Hi, I had the same problem, I always got a Coercion error, and my solution was to implement the getter and setter for the date var: private var _date : Date; public function get date():Date { return _date; } public function set date(value:*):void { _date = new Date(value); } I'm also using unix timestamps to send the values, but I've noticeda weird behaivour: Went sending dates to Flex, I have to multiply the timestampy by 1000, and when receiveing from Flex, divide it also by 1000. If not, the date is not the same. Anyone knows why? Oriol. 2006/8/21, Marcelo de Moraes Serpa [EMAIL PROTECTED]: Hmm.. I haven´t ran the login sample app. For dates, I always used unix timestamps and converted thetimestamp to string on the server before returning it to flash. For my purposes it always worked well as I never had to do any date math on the client side. Take a look at this page: http://www.amfphp.org/docs/datatypes.html and note the DateWrapper class... maybe it could solve your problem? Marcelo. On 8/21/06, Stefan Schmalhaus [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Marcelo de Moraes Serpa celoserpa@ wrote: If you´re using RemoteObjectAMF0, just take a look at the samples Renaunprovides. Yes, I'm using Renaun's RemoteObjectAMF0. But in the sample he provides the date mapping doesn't work either. The published date column is empty! http://renaun.com/blog/2006/07/26/71/ Take a look at comment #23! --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Loading Mouse Icon?
How are you connecting amfphp and Flex? 'ause Renaun's latest version has the busy cursor implemented.2006/8/20, Shannon Hicks [EMAIL PROTECTED]: Check out the CursorManager class, it does what you need. Shan From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of ericbicharaSent: Sunday, August 20, 2006 1:45 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Loading Mouse Icon? hi everyone,Im using flex with amfphp and was wondering how to get the loadingmouse icon (round swirly one) to show up while data is being fetchedfrom the database. is there a way to turn it on and off?Thanks in advance --No virus found in this incoming message.Checked by AVG Free Edition.Version: 7.1.405 / Virus Database: 268.11.3/423 - Release Date: 8/18/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.11.3/423 - Release Date: 8/18/2006 __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Repeater problems with currentIndex
Yup, replace this:click=selectedFrame = frames.getItemAt(r.currentIndex) as Presentationwith this:click=selectedFrame = frames.getItemAt(event.currentTarget.getRepeaterItem ()) as PresentationThe error appears because the repeater itself has stopped creating it's children when you click on a button.Oriol.2006/8/19, dreuimar [EMAIL PROTECTED]:Hey everyone, I am basically trying to do this:mx:Repeater width=100% id=r dataProvider={frames}mx:Button label=Frame {r.currentIndex} click=selectedFrame = frames.getItemAt(r.currentIndex) as Presentation//mx:RepeaterAfter creation, the buttons all reflect Frame 0, Frame 1, etc... yetif I go to execute the click function I get an error about the renderer having been terminated. Is there a way to lock in value forcurrent index so the click event will execute properly?--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] DataGrid ItemRenderer erratic setStyle - Is this a bug?
I'm having the same problem, with a different approach but the result is the same. Any one can help?Thanks,Oriol.2006/8/18, Oscar [EMAIL PROTECTED]:I have a datagrid with an itemRenderer in one of the columns. The text in that column turns red if a condition is met. The examplebelow shows what I mean. However, if you scroll the datagrid orresize the screen so that the DG needs to be redrawn, theitemRenderer applies the setStyle to the rows that now are where the original row was. If you keep scrolling the DG down and up, all therows end up with the style applied to them, wheter or not they meetthe criteris in the Itemrenderer. Is this a bug? or am I missingsomething here? ---?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.adobe.com/2006/mxmllayout=absolute mx:Script![CDATA[[Bindable]public var myArray:Array =[{a:10,b:15, c: 21},{a:5,b:1,c: 4},{a:10,b:15, c: 21},{a:10,b:15, c: 2},{a:10,b:15, c: 2}, {a:10,b:15, c: 2},{a:10,b:15, c: 2},{a:10,b:15, c: 2},{a:10,b:15, c: 2},{a:10,b:15, c: 2},{a:10,b:15, c: 2},{a:10,b:15, c: 2},{a:10,b:15, c: 2},{a:10,b:15, c: 2}, {a:10,b:15, c: 2}];]]/mx:Scriptmx:DataGrid dataProvider={myArray}mx:columns mx:DataGridColumn headerText=AdataField=a/mx:DataGridColumn headerText=BdataField=b/mx:DataGridColumn headerText=C dataField=c itemRenderer=myRenderer//mx:columns/mx:DataGrid/mx:Application-myRenderer.as-- // ActionScript filepackage {import mx.controls.Text;public class myRenderer extends Text{ public function myRenderer() {}override public function set data(value:Object):void { super.data = ""> if (Number(this.text) Number(value.a)*2) this.setStyle(color,red);super.invalidateDisplayList(); }}}--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] DataGrid ItemRenderer erratic setStyle - Is this a bug?
Hi,I've found this example (source view, see AccountBalanceItemRenderer.as) thanks to a prior post and it's working ok. I suppose there's a typo in your code, if not, maybe you should put the overridden function inside your class.Hope it helps,Oriol. 2006/8/18, Oriol Gual [EMAIL PROTECTED]: I'm having the same problem, with a different approach but the result is the same. Any one can help?Thanks,Oriol.2006/8/18, Oscar [EMAIL PROTECTED]: I have a datagrid with an itemRenderer in one of the columns. The text in that column turns red if a condition is met. The examplebelow shows what I mean. However, if you scroll the datagrid orresize the screen so that the DG needs to be redrawn, theitemRenderer applies the setStyle to the rows that now are where the original row was. If you keep scrolling the DG down and up, all therows end up with the style applied to them, wheter or not they meetthe criteris in the Itemrenderer. Is this a bug? or am I missingsomething here? ---?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx= http://www.adobe.com/2006/mxmllayout=absolute mx:Script![CDATA[[Bindable]public var myArray:Array =[{a:10,b:15, c: 21},{a:5,b:1,c: 4},{a:10,b:15, c: 21},{a:10,b:15, c: 2},{a:10,b:15, c: 2}, {a:10,b:15, c: 2},{a:10,b:15, c: 2},{a:10,b:15, c: 2},{a:10,b:15, c: 2},{a:10,b:15, c: 2},{a:10,b:15, c: 2},{a:10,b:15, c: 2},{a:10,b:15, c: 2},{a:10,b:15, c: 2}, {a:10,b:15, c: 2}];]]/mx:Scriptmx:DataGrid dataProvider={myArray}mx:columns mx:DataGridColumn headerText=AdataField=a/mx:DataGridColumn headerText=BdataField=b/mx:DataGridColumn headerText=C dataField=c itemRenderer=myRenderer//mx:columns/mx:DataGrid/mx:Application-myRenderer.as-- // ActionScript filepackage {import mx.controls.Text;public class myRenderer extends Text{ public function myRenderer() {}override public function set data(value:Object):void { super.data = ""> if (Number(this.text) Number(value.a)*2) this.setStyle(color,red);super.invalidateDisplayList(); }}}--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Re: DataGrid ItemRenderer erratic setStyle - Is this a bug?
Yes, is working ok for me, I've tried sorting it on every column an scrolling, and there's no problem. I've only changed a few things, this is my itemRenderer code:package { import mx.controls.Text; public class VariacioItemRenderer extends Text { public function VariacioItemRenderer() { } override public function set data(value:Object):void { super.data = ""> if(value!=null) { if (value.variacio 0) { this.setStyle(color,red); } else { this.setStyle(color,green); } this.text = value.variacio + %; } super.invalidateDisplayList(); } } }2006/8/18, Oscar [EMAIL PROTECTED]: As I said, it also happens if you scroll. My original app isactually calling an HTTP Service, and I am having the same problem.--- In flexcoders@yahoogroups.com , Tim Hoff [EMAIL PROTECTED] wrote: I was wondering how long it would take for someone to notice the querky sort behaviour.The example also acts strange when the StartDate column is sorted.However, when data comes from a backend, instead of hardcoded in the app, these types of problems don't seem to occur. -TH --- In flexcoders@yahoogroups.com , Oscar oscar_cortes@ wrote: Are you sure that is working OK? I had seen the examplebefore, try sorting by the last column. I has the same problem ... --- In flexcoders@yahoogroups.com, Oriol Gual oriol.gual@ wrote: Hi, I've found this examplehttp://www.iepl.net/DataGridItemRendererSample/DataGridItemRe n dererSample.html (source view http://www.iepl.net/DataGridItemRendererSample/srcview/, see AccountBalanceItemRenderer.as ) thanks to a prior post and it's working ok. I suppose there's a typo in your code, if not, maybe you should put the overridden function inside your class. Hope it helps, Oriol. 2006/8/18, Oriol Gual oriol.gual@: I'm having the same problem, with a different approach but the result isthe same. Any one can help? Thanks, Oriol. 2006/8/18, Oscar ocortess@: I have a datagrid with an itemRenderer in one of the columns. The text in that column turns red if a condition is met. The example below shows what I mean. However, if you scroll thedatagrid or resize the screen so that the DG needs to be redrawn, the itemRenderer applies the setStyle to the rows that now are where the original row was. If you keep scrolling the DG down and up, all the rows end up with the style applied to them, wheter or not they meet the criteris in the Itemrenderer. Is this a bug? or am I missing something here? --- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=absolute mx:Script ![CDATA[ [Bindable] public var myArray:Array = [{a:10,b:15, c: 21}, {a:5,b:1,c: 4},{a:10,b:15, c: 21}, {a:10,b:15, c: 2},{a:10,b:15, c: 2}, {a:10,b:15, c: 2}, {a:10,b:15, c: 2},{a:10,b:15, c: 2}, {a:10,b:15, c: 2}, {a:10,b:15, c: 2},{a:10,b:15, c: 2}, {a:10,b:15, c: 2}, {a:10,b:15, c: 2},{a:10,b:15, c: 2}, {a:10,b:15, c: 2} ]; ]] /mx:Script mx:DataGrid dataProvider={myArray} mx:columns mx:DataGridColumn headerText=A dataField=a/ mx:DataGridColumn headerText=B dataField=b/ mx:DataGridColumn headerText=C dataField=c itemRenderer=myRenderer/ /mx:columns /mx:DataGrid /mx:Application --- --myRenderer.as-- // ActionScript file package { import mx.controls.Text; public class myRenderer extends Text {public function myRenderer() { } override public function set data (value:Object):void { super.data = "">if (Number(this.text) Number(value.a)*2) this.setStyle(color,red); super.invalidateDisplayList(); } } } -- 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 --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development
Re: [flexcoders] Duplicate function error using setters
No, I'm using Cairngorm, and it's a ValueObject. What is really freaking me out, is that if I copy the class, and just change the name of it there are no errors! Also, I can't override it because then I have a 1023 error ( Incompatible override), but I haven't declared it before. BTW I came to this because I wanted to declare the setter for a Date var, because I get a Coercion error when using remoting with AMFPHP, whatever I return it fails, milliseconds since 1970 or strings! Oriol.2006/8/14, Hilary Bridel [EMAIL PROTECTED]: Are you extending a Flex component? Maybe you are using avariable name already used by that component? Hilary www.bridel.org On 8/14/06, Oriol Gual [EMAIL PROTECTED] wrote: Hi,I'm getting a 1021 Duplicate function definition. when I declare the setters of to variables, there's no problem with the getters. The class is marked as Bindable, has a remote alias and both vars are private, and I'm using Flex 2 What I'm doing wrong?Thank you,Oriol. -- Hilary-- __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Duplicate function error using setters
I want to point out, that when implementing IUID there's no error with the setter of _uid.2006/8/14, Oriol Gual [EMAIL PROTECTED]: No, I'm using Cairngorm, and it's a ValueObject. What is really freaking me out, is that if I copy the class, and just change the name of it there are no errors! Also, I can't override it because then I have a 1023 error ( Incompatible override), but I haven't declared it before. BTW I came to this because I wanted to declare the setter for a Date var, because I get a Coercion error when using remoting with AMFPHP, whatever I return it fails, milliseconds since 1970 or strings! Oriol.2006/8/14, Hilary Bridel [EMAIL PROTECTED]: Are you extending a Flex component? Maybe you are using avariable name already used by that component? Hilary www.bridel.org On 8/14/06, Oriol Gual [EMAIL PROTECTED] wrote: Hi,I'm getting a 1021 Duplicate function definition. when I declare the setters of to variables, there's no problem with the getters. The class is marked as Bindable, has a remote alias and both vars are private, and I'm using Flex 2 What I'm doing wrong?Thank you,Oriol. -- Hilary-- __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Duplicate function error using setters
I haven't posted it cause it's very simple:package com.example.vo { import com.adobe.cairngorm.vo.ValueObject; [RemoteClass(alias=com.example.vo.TestVO)] [Bindable] public class TestVO implements ValueObject { public var id : int;public function get id():int { return this.id;} public function set id(value:int):void { this.id=value; } } }Wow, while writing the post I've found the error, when I add a var to the model locator, like:public var test:TestVO;the 1021 error appears on the setter!2006/8/14, Tom Chiverton [EMAIL PROTECTED]:On Sunday 13 August 2006 18:22, Oriol Gual wrote: What I'm doing wrong?Not posting your code :-)--Tom ChivertonThis 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 St James's Court Brown Street Manchester M2 2JF.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 Law Society. CONFIDENTIALITYThis 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 8008. For more information about Halliwells LLP visit www.halliwells.com.--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Duplicate function error using setters
public var id : int; is a typo, it should be private var id : int;2006/8/14, Oriol Gual [EMAIL PROTECTED]: I haven't posted it cause it's very simple:package com.example.vo { import com.adobe.cairngorm.vo.ValueObject; [RemoteClass(alias=com.example.vo.TestVO)] [Bindable] public class TestVO implements ValueObject { public var id : int;public function get id():int { return this.id;} public function set id(value:int):void { this.id=value; } } }Wow, while writing the post I've found the error, when I add a var to the model locator, like:public var test:TestVO;the 1021 error appears on the setter!2006/8/14, Tom Chiverton [EMAIL PROTECTED]: On Sunday 13 August 2006 18:22, Oriol Gual wrote: What I'm doing wrong?Not posting your code :-)--Tom ChivertonThis 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 St James's Court Brown Street Manchester M2 2JF.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 Law Society. CONFIDENTIALITYThis 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 8008. For more information about Halliwells LLP visit www.halliwells.com.--Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Duplicate function error using setters
Doing some more testing:- I've created a dummy class to test it, no problem: [RemoteClass(alias=com.example.vo.ProvaVO)] [Bindable] public class ProvaVO implements ValueObject { private var id : Number; public function get id():Number { return id; } public function set id(value:Number):void { id = value; } }- Then an event containing a test var: public class CrearProvaEvent extends CairngormEvent { public function CrearProvaEvent( prova : ProvaVO ) { super( ExampleControl.EVENT_CREAR_PROVA ); this.prova = prova; } public var prova : ProvaVO; } Still, there's no problem.After this I created I command:public class CrearProvaCommand implements Command, Responder { public function execute( event : CairngormEvent ) : void { var delegate : ProvaDelegate = new ProvaDelegate (this); var crearProvaEvent : CrearProvaEvent = CrearProvaEvent( event ); delegate.crearProva(crearProvaEvent.prova); }The bold line makes the 1021 error appear, in fact, any use of the class makes the error appear, anyone has an explanation for this?Any help will be very much appreciated, Oriol.PS: I've omitted the imports to save some space.2006/8/14, Oriol Gual [EMAIL PROTECTED]:I haven't posted it cause it's very simple: package com.example.vo { import com.adobe.cairngorm.vo.ValueObject; [RemoteClass(alias=com.example.vo.TestVO)] [Bindable] public class TestVO implements ValueObject { public var id : int;public function get id():int { return this.id;} public function set id(value:int):void { this.id=value; } } }Wow, while writing the post I've found the error, when I add a var to the model locator, like:public var test:TestVO;the 1021 error appears on the setter!2006/8/14, Tom Chiverton [EMAIL PROTECTED]: On Sunday 13 August 2006 18:22, Oriol Gual wrote: What I'm doing wrong?Not posting your code :-)--Tom ChivertonThis 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 St James's Court Brown Street Manchester M2 2JF.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 Law Society. CONFIDENTIALITYThis 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 8008. For more information about Halliwells LLP visit www.halliwells.com.--Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Duplicate function error using setters
I've found my error thanks to another post, I didn't know that the var should have a different name, like _id.Sorry and thanks :POriol.2006/8/14, Oriol Gual [EMAIL PROTECTED]:Doing some more testing:- I've created a dummy class to test it, no problem: [RemoteClass(alias=com.example.vo.ProvaVO)] [Bindable] public class ProvaVO implements ValueObject { private var id : Number; public function get id():Number { return id; } public function set id(value:Number):void { id = value; } }- Then an event containing a test var: public class CrearProvaEvent extends CairngormEvent { public function CrearProvaEvent( prova : ProvaVO ) { super( ExampleControl.EVENT_CREAR_PROVA ); this.prova = prova; } public var prova : ProvaVO; } Still, there's no problem.After this I created I command:public class CrearProvaCommand implements Command, Responder { public function execute( event : CairngormEvent ) : void { var delegate : ProvaDelegate = new ProvaDelegate (this); var crearProvaEvent : CrearProvaEvent = CrearProvaEvent( event ); delegate.crearProva(crearProvaEvent.prova); }The bold line makes the 1021 error appear, in fact, any use of the class makes the error appear, anyone has an explanation for this?Any help will be very much appreciated, Oriol.PS: I've omitted the imports to save some space. 2006/8/14, Oriol Gual [EMAIL PROTECTED]: I haven't posted it cause it's very simple: package com.example.vo { import com.adobe.cairngorm.vo.ValueObject; [RemoteClass(alias=com.example.vo.TestVO)] [Bindable] public class TestVO implements ValueObject { public var id : int;public function get id():int { return this.id;} public function set id(value:int):void { this.id=value; } } }Wow, while writing the post I've found the error, when I add a var to the model locator, like:public var test:TestVO;the 1021 error appears on the setter!2006/8/14, Tom Chiverton [EMAIL PROTECTED]: On Sunday 13 August 2006 18:22, Oriol Gual wrote: What I'm doing wrong?Not posting your code :-)--Tom ChivertonThis 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 St James's Court Brown Street Manchester M2 2JF.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 Law Society. CONFIDENTIALITYThis 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 8008. For more information about Halliwells LLP visit www.halliwells.com.--Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Type Coercion failed Error when returning date from web service
I finally solve it declaring the var private and creating the getter and setter:private var _date : Date; public function get data_inici():Date{ return _date ;} public function set data_inici(value:*):void { _date = new Date(value); }The * is important in order to create a Date form a string, Number or a Date object.2006/8/13, Oriol Gual [EMAIL PROTECTED]:Hi Daniel, I'm having the same problem but using AMFPhp, did you finally solve it?Thanks,Oriol.2006/6/26, Daniel Tuppeny [EMAIL PROTECTED]: I think this is definately a bug. Attached is a screenshot showing my dates that are strings, and the relevant part of the WSDL (all items with string dates are of one of the types included there). The dates at the top level are fine, but those deeper down have just been changed to strings. I'll keep trying to reproduce it in a small sample I can post, but if anyone has any ideas, they'd be most welcome. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Daniel TuppenySent: 26 June 2006 15:09To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Type Coercion failed Error when returning date from web service I tried to recreate this with a simple example, and it didn't happen. I think the dates might be being changed to strings when passed into my component, like this: mx:Script![CDATA[[Bindable]public var dataProvider:Object;[Bindable]public var displayType:String;]]/mx:Scriptmx:TitleWindow title=Timeline width=100% height=100%link:TimelineBox dataProvider={dataProvider} width=100% displayType={displayType} //mx:TitleWindow I'm in the process of creating a simple version of that too :-( From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Daniel TuppenySent: 26 June 2006 11:15To: flexcoders@yahoogroups.comSubject: [flexcoders] Type Coercion failed Error when returning date from web service More date madness.Some of the dates from our web services come out as dates in Flex. However, now I'm returning a whole tree of objects, I'm having issues. The type in question is defined in the WSDL as this:s:complexType name=Event s:complexContent mixed=false s:extension base=tns:Item s:sequence s:element minOccurs=1 maxOccurs=1 name=StartDate type=s:dateTime / /s:sequence /s:extension /s:complexContent/s:complexTypeWhich correctly has the DateTime type. When I try to access is in Flex, I get this error:TypeError: Error #1034: Type Coercion failed: cannot convert 2006-09-28T11:13:52.2254775+01:00 to Date.at TimelineRow$iinit()If I create a simple web service that directly returns a date, it's fine. I'm not sure why! :-( The information contained in this e-mail and/or any attachments is confidential and intended only for the individual(s) to which it is addressed. If you are not named as an addressee you must not disclose, copy or take any action in reliance of this transmission. This e-mail and its attachments have been scanned for viruses by MessageLabs Ltd. __This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __[Inbound Mail Scanned by MessageLabs]__This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ [Inbound Mail Scanned by MessageLabs] __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Type Coercion failed Error when returning date from web service
Hi Daniel,I'm having the same problem but using AMFPhp, did you finally solve it?Thanks,Oriol.2006/6/26, Daniel Tuppeny [EMAIL PROTECTED]: I think this is definately a bug. Attached is a screenshot showing my dates that are strings, and the relevant part of the WSDL (all items with string dates are of one of the types included there). The dates at the top level are fine, but those deeper down have just been changed to strings. I'll keep trying to reproduce it in a small sample I can post, but if anyone has any ideas, they'd be most welcome. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Daniel TuppenySent: 26 June 2006 15:09To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Type Coercion failed Error when returning date from web service I tried to recreate this with a simple example, and it didn't happen. I think the dates might be being changed to strings when passed into my component, like this: mx:Script![CDATA[[Bindable]public var dataProvider:Object;[Bindable]public var displayType:String;]]/mx:Scriptmx:TitleWindow title=Timeline width=100% height=100%link:TimelineBox dataProvider={dataProvider} width=100% displayType={displayType} //mx:TitleWindow I'm in the process of creating a simple version of that too :-( From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Daniel TuppenySent: 26 June 2006 11:15To: flexcoders@yahoogroups.comSubject: [flexcoders] Type Coercion failed Error when returning date from web service More date madness.Some of the dates from our web services come out as dates in Flex. However, now I'm returning a whole tree of objects, I'm having issues. The type in question is defined in the WSDL as this:s:complexType name=Event s:complexContent mixed=false s:extension base=tns:Item s:sequence s:element minOccurs=1 maxOccurs=1 name=StartDate type=s:dateTime / /s:sequence /s:extension /s:complexContent/s:complexTypeWhich correctly has the DateTime type. When I try to access is in Flex, I get this error:TypeError: Error #1034: Type Coercion failed: cannot convert 2006-09-28T11:13:52.2254775+01:00 to Date.at TimelineRow$iinit()If I create a simple web service that directly returns a date, it's fine. I'm not sure why! :-( The information contained in this e-mail and/or any attachments is confidential and intended only for the individual(s) to which it is addressed. If you are not named as an addressee you must not disclose, copy or take any action in reliance of this transmission. This e-mail and its attachments have been scanned for viruses by MessageLabs Ltd. __This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __[Inbound Mail Scanned by MessageLabs]__This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ [Inbound Mail Scanned by MessageLabs] __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Duplicate function error using setters
Hi,I'm getting a 1021 Duplicate function definition. when I declare the setters of to variables, there's no problem with the getters. The class is marked as Bindable, has a remote alias and both vars are private, and I'm using Flex 2 What I'm doing wrong?Thank you,Oriol. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Using IUID
I didn't know it, thanks for the tip.2006/7/31, Jeremy Lu [EMAIL PROTECTED]: If your VO are bindable, chances are very high that you might not need to implement the IUID interface, it will be automatically done. Jeremy.On 7/31/06, Oriol Gual [EMAIL PROTECTED] wrote: I have done it in a VO using Cairngorm, I suppose it won't be very different to you:package com.example.vo { import mx.core.IUID; import com.adobe.cairngorm.vo.ValueObject ; [RemoteClass(alias=com.example.vo.ExampleVO)] [Bindable] public class ExampleVO implements ValueObject, IUID {public var dummyVar: int;public var anotherDummyVar : String;public var _uid:String; public function get uid():String { return _uid; } public function set uid(value:String):void { _uid = value; } } }Oriol.2006/7/30, pateyog [EMAIL PROTECTED]: I am a newbie and was trying to understand how to use the iuidinterface while using a datagrid that is being populated by aArrayCollection fetching data from an xml using http service.Can any of you point me to an example Thanks-pateyog--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Educational version
Hi,I've been looking at the Adobe site, and I can't find a place to buy the educational version of FB2. I've also called the support center here at Spain, and they've told me that there's no educational version of Flex. Can anyone tell me if there's actually a educational version of FB2, and how or where can I buy it? Thanks!Oriol. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Re: Educational version
Thanks for the info. I've mailed Adobe to know if I can buy it in one of these stores.Oriol.2006/7/31, ben.clinkinbeard [EMAIL PROTECTED] :Looks like only North America, France, Germany and UK right now. http://www.adobe.com/buy/Benhttp://www.returnundefined.com/--- In flexcoders@yahoogroups.com, quetwo [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Oriol Gual oriol.gual@ wrote: Hi, I've been looking at the Adobe site, and I can't find a place to buy the educational version of FB2. I've also called the support center here at Spain, and they've told me that there's no educational version of Flex. Can anyone tell me if there's actually a educational version of FB2, and how or where can I buy it? Thanks! Oriol. The educational version just showed up on Adobe's education store in the past week, for a cost of $99.00.Most distributors, such as Ingram Micro have not received them yet.However, I believe that it is going to be offered for North America only for the time being. http://store.adobe.com/store/products/department.jhtml ? id=deptEducationNR=0keyword=flex_builder_charting -Nick Kwiatkowski--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Using IUID
I have done it in a VO using Cairngorm, I suppose it won't be very different to you:package com.example.vo { import mx.core.IUID; import com.adobe.cairngorm.vo.ValueObject ; [RemoteClass(alias=com.example.vo.ExampleVO)] [Bindable] public class ExampleVO implements ValueObject, IUID {public var dummyVar: int;public var anotherDummyVar : String;public var _uid:String; public function get uid():String { return _uid; } public function set uid(value:String):void { _uid = value; } } }Oriol.2006/7/30, pateyog [EMAIL PROTECTED]: I am a newbie and was trying to understand how to use the iuidinterface while using a datagrid that is being populated by aArrayCollection fetching data from an xml using http service.Can any of you point me to an example Thanks-pateyog--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Re: Flex AMFPHP and VOs
Stefan, make sure you've mapped correctly the base class path in advancedsettings.php. Also, I don't know what Andi's version are you using, but I recommend this one it works perfect (get the source here).See you,Oriol.2006/7/26, Stefan Schmalhaus [EMAIL PROTECTED]:BTW: It works if I send the username and password as single strings. So I must be doing something wrong with the typed object(LoginVO) on the PHP side.--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Flex AMFPHP and VOs
Andi,What version of PHP are you using? Also, are you in windows or linux / unix?This is really driving me crazy!Also, I've uploaded the file so everyone can have it, get it here.Oriol.2006/7/25, Andrea Varga [EMAIL PROTECTED]: Oriol,You must have missed something. It works for me.Take a look at my ServiceCapture screenshot:http://virtualro.cluj.astral.ro/andi/screenshot.jpg Also, both the below expressions havetrue for result.(event.result.users[0] is UserVO)(model.users.getItemAt(0) is UserVO)AndiOriol Gual wrote: Hi Andy, I finally tested your example, but it's still the same, it is receiving simple objects, not UserVO's, can you check this? Also, Robert, could you please provide a working sample? Thank you, Oriol. Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups.See the new email design.http://us.click.yahoo.com/SktRrD/hOaOAA/yQLSAA/nhFolB/TM~- --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to:[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Re: Flex AMFPHP and VOs
First of all, I'd like to thank you all.I tried Renaun's example, and with ServiceCapture, it is returning an array of BookVO. At this point everything seems OK.But when you receive this array, if you do something like this: var testBook : BookVO = new BookVO;testBook = BookVO(ModelLocator.getInstance().books[0]);It will fail, because the objects inside the array collection aren't BookVO's , they are Objects:TypeError: Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to com.renaun.samples.vo.BookVO.And the same happens with your example Andi. Then, my question is, can anyone do this without the coercion error, and, without extra functions to map it?Thanks, Oriol.2006/7/25, Renaun Erickson [EMAIL PROTECTED]:I have updated the RemoteObjectAMF0 with samples of how to do the AMFPHPand VO's.Example Using Cairngorm:http://www.renaun.com/flex2/CairngormAMFPHPExample/CairngormAMFPHPExample2.html Example With Out Using Cairngorm:http://www.renaun.com/flex2/CairngormAMFPHPExample/RemoteObjectAMF0Sample.html You can find the source here:http://www.renaun.com/flex2/CairngormAMFPHPExample/srcview/Thanks Robert for the partial code. Renaun Yahoo! Groups Sponsor ~--Great things are happening at Yahoo! Groups.See the new email design. http://us.click.yahoo.com/SktRrD/hOaOAA/yQLSAA/nhFolB/TM~---Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Re: Flex AMFPHP and VOs
Hi Andi,You're right, it works perfect! Sorry about the other comment.I'm kinda surprised and happy, is this the same that you sent to me?Also, it would be great to know what differences are between yours and Renaun's, because one's working and the other not (at least for me). What changes have you done? Later I'll test it at home and see if it works (I hope so hehe).Well, I just want to thank you Andi, great work!Oriol.PD: thekluito, the best thing is to view the last example by Andi, there you can download the example and test it, you'll only have to change some paths at ApplicationSettings.as and on gateway.php.PD2: thkluito, si quieres puedes enviarme un mail directamente a mi por si necesitas ayuda en algo en concreto. :D2006/7/25, Andrea Varga [EMAIL PROTECTED]:That workstoo http://www.narancs.net/flex/ClassMappingExample/ClassMappingExample.html(view source enabled)AndiOriol Gual wrote: First of all, I'd like to thank you all. I tried Renaun's example, and with ServiceCapture, it is returning an array of BookVO. At this point everything seems OK. But when you receive this array, if you do something like this: var testBook : BookVO = new BookVO; testBook = BookVO(ModelLocator.getInstance().books[0]); It will fail, because the objects inside the array collection aren't BookVO's , they are Objects: TypeError: Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to com.renaun.samples.vo.BookVO. And the same happens with your example Andi. Then, my question is, can anyone do this without the coercion error, and, without extra functions to map it? Thanks, Oriol. Yahoo! Groups Sponsor ~--See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/3EuRwD/bOaOAA/yQLSAA/nhFolB/TM~--- Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to:[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Flex AMFPHP and VOs
Hi Andy,I finally tested your example, but it's still the same, it is receiving simple objects, not UserVO's, can you check this?Also, Robert, could you please provide a working sample? Thank you,Oriol.2006/7/24, Andrea Varga [EMAIL PROTECTED]: Private email is on the way.AndiDima Ulich wrote: could you share the code with me too, I couldn't map vos either thank in advance Dmitriy - Original Message From: Andrea Varga [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, July 23, 2006 9:00:04 PM Subject: Re: [flexcoders] Flex AMFPHP and VOs I just sent a private mail to you with the code. Oriol Gual wrote: I'd love to get some code :D 2006/7/22, Andrea Varga [EMAIL PROTECTED] t.com mailto:andi%40spindevelopment.com mailto:[EMAIL PROTECTED] t.com mailto:andi%40spindevelopment.com: Hi, I've managed to make it work once, in both directions, also with Renaun's RemoteObjectAMF0. As I remember, I had to change something in the AMFPHP code to make it work from PHP to Flex, but maybe I did something wrong, and it should have been worked without those changes. I can send you some code if you still need them. Andi Oriol Gual wrote:Well, it wasn't PHP 4, it was my fault. But, I still receive a plain Object, not an object of my class. I'm using Renaun's solution to connect to amfphp, what are you using? Thanks. --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Flex AMFPHP and VOs
HI,Thank you for the responses. Using the registar class solved the problem form flex to php, I thought classes were automatically registered.On the other hand Robert, I suppose that you are using PHP 5, does it worked also on PHP 4? 2006/7/22, Robert Wąs [EMAIL PROTECTED]: registerClassAlias( vd.vo.ProductVO, ProductVO ) php: class ProductVO{ public $_explicitType=vd.vo.ProductVO; ... works for me in swf to php and reversed direction Robert Was Oriol Gual wrote: Hi, I've been using Flex and AMFPHP for a while, but there's one thing that is driving me nuts: class mapping. Has anyone mapped correctly a VO from Flex to PHP with AMFPHP or viceversa? I've tried several ways, but I all I get are plain objects. Any help would be very much appreciated, especially a working example. Oriol Gual. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Flex AMFPHP and VOs
Well, it wasn't PHP 4, it was my fault. But, I still receive a plain Object, not an object of my class. I'm using Renaun's solution to connect to amfphp, what are you using?Thanks. 2006/7/22, Oriol Gual [EMAIL PROTECTED]: HI,Thank you for the responses. Using the registar class solved the problem form flex to php, I thought classes were automatically registered.On the other hand Robert, I suppose that you are using PHP 5, does it worked also on PHP 4? 2006/7/22, Robert Wąs [EMAIL PROTECTED]: registerClassAlias( vd.vo.ProductVO, ProductVO ) php: class ProductVO{ public $_explicitType=vd.vo.ProductVO; ... works for me in swf to php and reversed direction Robert Was Oriol Gual wrote: Hi, I've been using Flex and AMFPHP for a while, but there's one thing that is driving me nuts: class mapping. Has anyone mapped correctly a VO from Flex to PHP with AMFPHP or viceversa? I've tried several ways, but I all I get are plain objects. Any help would be very much appreciated, especially a working example. Oriol Gual. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Flex AMFPHP and VOs
I'd love to get some code :D2006/7/22, Andrea Varga [EMAIL PROTECTED]: Hi,I'vemanaged to make it work once, in both directions, also withRenaun's RemoteObjectAMF0.As I remember, I had to change something in the AMFPHP code to make itwork from PHP to Flex, but maybe I did something wrong, and it should have been worked without those changes. I can send you some code if youstill need them.AndiOriol Gual wrote: Well, it wasn't PHP 4, it was my fault. But, I still receive a plain Object, not an object of my class. I'm using Renaun's solution to connect to amfphp, what are you using? Thanks.--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Flex AMFPHP and VOs
Hi,I've been using Flex and AMFPHP for a while, but there's one thing that is driving me nuts: class mapping. Has anyone mapped correctly a VO from Flex to PHP with AMFPHP or viceversa? I've tried several ways, but I all I get are plain objects. Any help would be very much appreciated, especially a working example.Oriol Gual. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Is This Accurate Cairngorm architectural framework in a word (well a few words)
You can download 0.99 from here: http://www.iterationtwo.com/open_source_cairngorm.htmlOriol.2006/4/19, Robert Thompson [EMAIL PROTECTED]: Thanks Steve. Thus far, however, I've not found the 0.99 release of Carnigorm for download so I can begin to follow it's architectural framework. Is it primarily for Flex Data Services?Steven Webster [EMAIL PROTECTED] wrote: Works for me :) Steven WebsterPractice Director (Rich Internet Applications)Adobe ConsultingWestpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UKp: +44 (0) 131 338 6108 m: +44 (0)7917 428 947[EMAIL PROTECTED] From: flexcoders@yahoogroups.com[mailto: flexcoders@yahoogroups.com] On Behalf Of RobertThompsonSent: 19 April 2006 18:26 To:flexcoders@yahoogroups.comSubject: [flexcoders] Is This Accurate Cairngorm architectural framework in a word (well a fewwords) Cairngorm is very interesting. I've read the docs andunderstand the purpose.Would it be fair to say that Cairngorm isessentially the following: Anarchitectural framework (not app framework) that serves as sort of a rudder(as you would find on a boat) for standard development patterns that are oftenrepeated over and over again from app to app, but far too often stray intoinconsistent territory. Carnigorm provides a general direction in thesea of architectural possibilities; and thus helps the overall developmentcommunity communicate their solutions better -- and thus have better standardsof practice; especially among B2B, Web Service Persistentsolutions. I'm just trying to make sure my overallbig picture is accurate myself. YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries for just 2¢/min with Yahoo! Messenger with Voice. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: F2B2: Deploying sample apps
You can go to Project-Properties-Flex Build Path and here change the output folder to your local web server folder, and then, Run-Run...-default config(or create another one), uncheck Use defaults button and change the location to http://localhost/whatever/FlexIsCool.html or your location :-D Oriol.2006/4/18, Tom Ortega [EMAIL PROTECTED]: I just copy the .html and .swf files from my /bin directory and post them to the web server.That seems to work for me, minus the sandbox warnings. =)-Tom On 4/18/06, arieltools [EMAIL PROTECTED] wrote: Yes, this is a tipical error out of the security sandbox restrictions. Read more on the livedocs or your help. Also I were wondering HOW can I deploy to the local server and load the server page (i.e: ¡http://localhost/whatever') instead of 'd:\flexAppRoot\etc' Cheers --- In flexcoders@yahoogroups.com, Tom Ortega [EMAIL PROTECTED] wrote: Here's the error I've seen internally, with the site name and domain removed to protect the innocent. =) Error #2044: Unhandled SecurityErrorEvent: text=Error #2047: Security sandbox violation: 'LocalConnection.send': 'corp.domain.com' may not access 'http://site.corp.domain.com/somedir/wgc.swf'. On 4/17/06, Matt Chotin [EMAIL PROTECTED] wrote: What are the errors you see? There shouldn't be much of a trick, I posted those samples to our hosted site without changing any settings. -- *From:* flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] *On Behalf Of *Tom Ortega *Sent:* Monday, April 17, 2006 8:53 AM *To:* flexcoders *Subject:* [flexcoders] F2B2: Deploying sample apps Is there any tricks to deploying FlexBuilder2 Beta2 apps? I've deployed some internally, and I get an error message popup when I deploy the htmal and swf files from the bin directory to an internal web server and try to browse it. I was thinking of putting up some sample stuff in the coming weeks on a personal web server, but will that not work? Most of the examples I see on the web run off the same labs server, so I'm guessing we can't just post our own examples on the web? Hopefully someone can correct me and prove me wrong! =) Thanks, Tom -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com -- YAHOO! GROUPS LINKS - Visit your group flexcodershttp://groups.yahoo.com/group/flexcoders on the web. - To unsubscribe from this group, send an email to: [EMAIL PROTECTED] [EMAIL PROTECTED] - Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/. -- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] List dataProvider bug?
Thanks guys! Now it is all working okay!2006/4/13, jeremy lu [EMAIL PROTECTED]: 1. you should assign ArrayCollection instead of Array as a dataProvider to controls, cuase Array won't broadcast any event hence modelChangedHandler() inside controls will never get triggered. (btw, use this: var arc:ArrayCollection = new ArrayCollecion(array) to turn an Array into ArrayCollection) 2. other questions are related to UID inside the object, each item inside the List control need a unique id (which can be set by UID utility at runtime) to be identified, if you implement IUID interface, every thing gonna be fine. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Oriol Gual Sent: Wednesday, April 12, 2006 4:49 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] List dataProvider bug? Hi all, If I set the dataProvider of a mx:List to an array, the list isn't updated when the array is modified, and also, if there are two or more equal items, only one can be selected (this last one I don't know if it is a bug, because a combobox behaves equally). Another one that I don't know when it's produced, is when the mouse goes over it shows an error such as: null has no properties. Sorry if that was already submitted or if I'm doing something wrong and it's not a bug. Oriol. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] List dataProvider bug?
Hi all,If I set the dataProvider of a mx:List to an array, the list isn't updated when the array is modified, and also, if there are two or more equal items, only one can be selected (this last one I don't know if it is a bug, because a combobox behaves equally). Another one that I don't know when it's produced, is when the mouse goes over it shows an error such as: null has no properties.Sorry if that was already submitted or if I'm doing something wrong and it's not a bug. Oriol. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] List dataProvider bug?
I forgot this one:A comboBox whose dataProvider is an array of Objects.When the mouse goes over each item, it isn't highlighted. Instead, the last is the only one highlighted. But if I click on the item I'm over it gets selected. Oriol. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Maintaining documentation in Flex App in property file / xml file
Hi Shweta, Maybe these links can help you:ResourceBundle class:http://livedocs.macromedia.com/labs/1/flex20beta2/langref//mx/resource/ResourceBundle.html Localizing apps:http://livedocs.macromedia.com/labs/1/flex20beta2/1159.htmlOriol 2006/4/11, shweta_parekh [EMAIL PROTECTED]: Hi,How can I use a resource property file in Flex. I want to store thestatic component labels as well as error messages / alert messages ofthe application in a property file or an xml file. When Flex loads the mxml or application throws error message etc., it should get thedescription of the message dynamically from the property file.Basically, I am looking for a Flex equivalent for aApplicationResources.properties file in Struts. How can I do this? Doesanybody have any sample code for this to try out.Thanks,Shweta--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Preinitialize
Can anyone explain a bit more about the preinitialize event? I've tried to use it and is working the same as creationComplete (at least with the Application tag). I've looked at the documentation but there's no information available. Thanks, Oriol. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Class vars
Hi all,Is there any way to retrieve all the variables names from a custom class?Thanks,Oriol. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Class vars
Hi Manish,Thank you for your answer, here is a function which converts an Object to a ValueObject with the same variables, if anyone else find it useful:public function objectToVO(object : Object) : void {var describeType : XML = flash.util.describeType(this);var variables : XMLList = describeType.child(accessor);for each (var variable:XML in variables) { this[variable.attribute(name)] = object[variable.attribute(name)];} }I've done it because I'm using Flex and AMFPHP and I couldn't do it as object:ValueObject = ValueObject(Object), because I got a conversion error.Oriol.2006/4/9, Manish Jethani [EMAIL PROTECTED]: On 4/9/06, Oriol Gual [EMAIL PROTECTED] wrote: Is there any way to retrieve all the variables names from a custom class? Flex 2.0?describeType + E4X Manish -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: Security sandbox violation using PHP, APACHE MYSQL
Hi Ben, This is quite strange, can you acces your db through php without calling it from Flex? Oriol. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: Security sandbox violation using PHP, APACHE MYSQL
Why have you set the mysql default port to 80? 80 is the port for web servers usually and I wouldn't recommend to have mysql at it. The mysql default port is 3306.Another question, have you tried to access your php script without Flex? Just to make sure it's working properly. Oriol. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] convert string to date -
Just do this:var date:Date = new Date(22/5//2006) or var date:Date = new Date(2006,5,22)Remember that months go from 0 (January) to 11 (December) not 1 to 12.BTW, try to look at the documentation before asking, I think it's all quite good explained: Date doc: http://livedocs.macromedia.com/labs/1/flex20beta2/langref//Date.html Flex 2.0 ActionScript and MXML Reference: http://www.macromedia.com/go/flex2_apirefSee you,Oriol2006/4/5, venkat eswar [EMAIL PROTECTED]: hi,how to convert a string format like 22-4-2006 to date in flex 2.0 ? New Yahoo! Messenger with Voice. Call regular phones from your PC and save big. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] [Q]F2B2: Classes must not be nested??
Have you defined a package before the class?2006/4/5, Clint Willard [EMAIL PROTECTED]: What is this error message mean exactly: Classes must not be nested I've search and found the error code but no discription, reason why, or any solutions. The class is not nested that I know of: class ShoppingCart{ var items : Array; var total : Number = 0; function ShoppingCart() { items=new Array(); } function } Called from a Flex 1.5 coded Flex Store converting to Flex 2.0 b2: mx:Application xmlns:mx= http://www.adobe.com/2006/mxml xmlns=* initialize=initApp() verticalGap=0 pageTitle=FlexStore !-- The ActionScript code for this class is externalized -- mx:Script source=ShoppingCart.as/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: BETA 2: How to validate a form before actually submitting
Hi Alex,Sorry, I hardcoded it while writing the email and I made some mistakes:1. Add this import:import mx.controls.Alert;2 . Change vars decalaration toprivate var stringvalidation : String; private var stringvalidation2 : String;I think it's all correct now.See you, Oriol.2006/4/4, Alex Alex [EMAIL PROTECTED] :Hi Oriol,This *sounds* a lot better though I am getting these errors at compile time.1::Implicit coercion of a value of type 'String' to an unrelatedtype 'mx.events:ValidationResultEvent (this error appears twice)2::Comparison between a value with statictype 'mx.validators:StringValidator ' and a possibly unrelatedtype 'String' (this error appears twice)3::Access of undefined property 'alert'I'm not such of an actionscript guy, but I'll get there sooner orlater. Thanks again. Alex--- In flexcoders@yahoogroups.com, Oriol Gual [EMAIL PROTECTED]wrote: Hi Alexander, Thanks to your observation I've came to a better solution: mx:Script ![CDATA[ import mx.events.ValidationResultEvent; private function checkValidators() : Boolean { stringvalidation= stringvalidator.validate ().type; stringvalidation2 = stringvalidator2.validate().type; if ( (stringvalidator == ValidationResultEvent.VALID) (stringvalidator2 == ValidationResultEvent.VALID) ) { return true; } else { return false; } } private function sendForm() : void { if(checkValidators()) { //do whatever you have to do to send the form } else { alert.show(Form is not valid!,Alert); } } private var stringvalidation : ValidationResultEvent; private var stringvalidation2 : ValidationResultEvent; ]] /mx:Script mx:StringValidator id=stringvalidator source={inputText} property=text minLength=3 maxLength=20trigger={inputText} triggerEvent=change/ mx:StringValidator id=stringvalidator2 source={inputText} property=text minLength=3 maxLength=20trigger={inputText2} triggerEvent=change/ mx:Form mx:FormItem label=Input some text required=truedirection=horizontal fontWeight=bold textAlign=left mx:TextInput id=inputText width=80 maxChars=20//mx:FormItem mx:FormItem label=Input some other text required=true direction=horizontal fontWeight=bold textAlign=left mx:TextInput id=inputText2 width=80 maxChars=20//mx:FormItem /mx:Form mx:Button id=fromButton label=Send form click=sendForm()/ Some explanation and changes: - Removed the valid/invalid properties of the validators. - Added an id for each one. - Instead of doing this: if ( (stringvalidator.validate ().type== ValidationResultEvent.VALID) (stringvalidator2.validate().type== ValidationResultEvent.VALID) ) which is also correct, I think it'sbetter to do it with the variables, and then evaluating them, because you validate all the fields (and the tooltip errors are shown, like you wantedAlexander), the other way if the first fails the other fields won't bevalidated. Hope this helps, Oriol 2006/4/3, Alexander Tsoukias [EMAIL PROTECTED]: While this does the trick, what if I have 3 inputs? While onepasses the validation the sendForm() will be executed while the other 2 inputs are still unvalidated? I want to make sure all of them are validatedbefore executing sendForm(). BTW, cool about the on change validation. One thing though... is there a way to make the error tooltip show up programatically instead ofhaving to hover over my mouse pointer? Thanks, Alexander *Oriol Gual [EMAIL PROTECTED]* wrote: Hi, What I do to validate a form, is somethig like this: mx:Script ![CDATA[ private function handleValid(eventObj:ValidationResultEvent) :void { if(eventObj.type==ValidationResultEvent.VALID ) { formValid = true; } else { formValid = false; } } private function sendForm() : void { if(formValid) { //do whatever you have to do to send the form } else { alert.show(Form is not valid!,Alert); } } private var formValid : Boolean = false; ]] /mx:Script mx:StringValidator source={inputText} property=textminLength=3 maxLength=20 trigger={inputText} triggerEvent=change valid=handleValid(event) invalid=handleValid(event)/ mx:Form mx:FormItem label=Input some text required=true direction=horizontal fontWeight=bold textAlign=left mx:TextInput id=inputText width=80 maxChars=20/ /mx:FormItem /mx:Form mx:Button id=fromButton label=Send form click=sendForm()/ When the user inputs some text in the textinput the validation occurs automatically ( trigger={inputText} triggerEvent=change) andthe function handleValid is called. Then, when clicking the buttonif the variable formValid it's true we can send the form. By the way, I have a question, what is the meaning of the modelswith flex 2 and forms? Because they're declared in the examples but thevalidators don't use them. Hope this helps, Oriol2006/4/2, Dreamer [EMAIL PROTECTED]:Alex Alex, you can put the data be validated in amodel.like this: mx:Model id=order email{ email.text }/email//email is a textInput controller's id /mx:Model then define a validator:mx:EmailValidator field
Re: [flexcoders] Re: BETA 2: How to validate a form before actually submitting
Hi, What I do to validate a form, is somethig like this:mx:Script ![CDATA[ private function handleValid(eventObj:ValidationResultEvent) : void { if(eventObj.type==ValidationResultEvent.VALID ) {formValid = true; } else {formValid = false; } } private function sendForm() : void{ if(formValid) {//do whatever you have to do to send the form} else {alert.show(Form is not valid!,Alert);}}private var formValid : Boolean = false;]] /mx:Scriptmx:StringValidator source={inputText} property=text minLength=3 maxLength=20 trigger={inputText} triggerEvent=change valid=handleValid(event) invalid=handleValid(event)/ mx:Formmx:FormItem label=Input some text required=true direction=horizontal fontWeight=bold textAlign=left mx:TextInput id=inputText width=80 maxChars=20//mx:FormItem/mx:Formmx:Button id=fromButton label=Send form click=sendForm()/ When the user inputs some text in the textinput the validation occurs automatically ( trigger={inputText} triggerEvent=change) and the function handleValid is called. Then, when clicking the button if the variable formValid it's true we can send the form. By the way, I have a question, what is the meaning of the models with flex 2 and forms? Because they're declared in the examples but the validators don't use them.Hope this helps,Oriol 2006/4/2, Dreamer [EMAIL PROTECTED]: Alex Alex, you can put the data be validated in a model.like this:mx:Model id=orderemail{email.text }/email//email is a textInput controller's id/mx:Modelthen define a validator: mx:EmailValidator field=order.email/then write a function in the script tag: function confirmOrder(): Void {if (mx.validators.Validator.isStructureValid(this, 'order')) {mx.controls.Alert.show(Success!!);addMember(); }else {mx.controls.Alert.show(Please enter valid data in the fields with errors and try again., Problem);}} Peace,Dreamerin china [EMAIL PROTECTED]2006-04-02=== 2006-04-02 01:37:17 :===Hi Mike,I understand the login, but how do I reference the validation? I mean what would actually go where you have validation is success.I'm not an actionscrip expert! I'm a cfforever guy ;-).Alexander--- In flexcoders@yahoogroups.com, Dreamer [EMAIL PROTECTED] wrote: Alex Alex,you can write a function,like that.if(validation is success) addMember();elsealert(invalid input!!!);Peace, Dreamer [EMAIL PROTECTED] 2006-04-01 === 2006-04-01 18:32:22 :=== Hello, In a signup form, when I click the submit button I would like for all the validation to happen and then actually hit the addMember() function. But if a form fails the validation how can I prevent theexecution of addMember(). Thanks, Alexander -- 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 = = = = = = = = = = = = = = = = = = = =--Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links= = = = = = = = = = = = = = = = = = = =--Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to:[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: BETA 2: How to validate a form before actually submitting
Hi Alexander,Thanks to your observation I've came to a better solution:mx:Script ![CDATA[ import mx.events.ValidationResultEvent;private function checkValidators() : Boolean {stringvalidation = stringvalidator.validate().type;stringvalidation2 = stringvalidator2.validate().type;if ( (stringvalidator == ValidationResultEvent.VALID) (stringvalidator2 == ValidationResultEvent.VALID) ) {return true;} else {return false;}}private function sendForm() : void{ if(checkValidators()) {//do whatever you have to do to send the form} else {alert.show(Form is not valid!,Alert);}}private var stringvalidation : ValidationResultEvent; private var stringvalidation2 : ValidationResultEvent;]] /mx:Scriptmx:StringValidator id=stringvalidator source={inputText} property=text minLength=3 maxLength=20 trigger={inputText} triggerEvent=change/ mx:StringValidator id=stringvalidator2 source={inputText} property=text minLength=3 maxLength=20 trigger={inputText2} triggerEvent=change/ mx:Formmx:FormItem label=Input some text required=true direction=horizontal fontWeight=bold textAlign=left mx:TextInput id=inputText width=80 maxChars=20//mx:FormItemmx:FormItem label=Input some other text required=true direction=horizontal fontWeight=bold textAlign=left mx:TextInput id=inputText2 width=80 maxChars=20//mx:FormItem/mx:Formmx:Button id=fromButton label=Send form click=sendForm()/ Some explanation and changes:- Removed the valid/invalid properties of the validators.- Added an id for each one.- Instead of doing this: if ( (stringvalidator.validate ().type== ValidationResultEvent.VALID) (stringvalidator2.validate().type== ValidationResultEvent.VALID) ) which is also correct, I think it's better to do it with the variables, and then evaluating them, because you validate all the fields (and the tooltip errors are shown, like you wanted Alexander), the other way if the first fails the other fields won't be validated. Hope this helps,Oriol2006/4/3, Alexander Tsoukias [EMAIL PROTECTED] : While this does the trick, what if I have 3 inputs? While one passes the validation the sendForm() will be executed while the other 2 inputs are still unvalidated? I want to make sure all of them are validated before executing sendForm(). BTW, cool about the on change validation. One thing though... is there a way to make the error tooltip show up programatically instead of having to hover over my mouse pointer? Thanks, AlexanderOriol Gual [EMAIL PROTECTED] wrote: Hi, What I do to validate a form, is somethig like this:mx:Script ![CDATA[ private function handleValid(eventObj:ValidationResultEvent) : void { if(eventObj.type==ValidationResultEvent.VALID ) {formValid = true; } else {formValid = false; } } private function sendForm() : void { if(formValid) {//do whatever you have to do to send the form} else {alert.show(Form is not valid!,Alert);} }private var formValid : Boolean = false;]]/mx:Scriptmx:StringValidator source={inputText} property=text minLength=3 maxLength=20 trigger={inputText} triggerEvent=change valid=handleValid(event) invalid=handleValid(event)/ mx:Formmx:FormItem label=Input some text required=true direction=horizontal fontWeight=bold textAlign=left mx:TextInput id=inputText width=80 maxChars=20//mx:FormItem/mx:Form mx:Button id=fromButton label=Send form click=sendForm()/ When the user inputs some text in the textinput the validation occurs automatically ( trigger={inputText} triggerEvent=change) and the function handleValid is called. Then, when clicking the button if the variable formValid it's true we can send the form. By the way, I have a question, what is the meaning of the models with flex 2 and forms? Because they're declared in the examples but the validators don't use them.Hope this helps,Oriol 2006/4/2, Dreamer [EMAIL PROTECTED]: Alex Alex, you can put the data be validated in a model.like this:mx:Model id=orderemail{ email.text }/email//email is a textInput controller's id/mx:Modelthen define a validator: mx:EmailValidator field=order.email/then write a function in the script tag: function confirmOrder(): Void { if (mx.validators.Validator.isStructureValid(this, 'order')) {mx.controls.Alert.show(Success!!);addMember();}else {mx.controls.Alert.show(Please enter valid data in the fields with errors and try again., Problem);}}Peace,Dreamerin china [EMAIL PROTECTED]2006-04-02=== 2006-04-02 01:37:17 £º===Hi Mike,I understand the login, but how do I reference the validation? I mean what would actually go where you have validation is success.I'm not an actionscrip expert! I'm a cfforever guy ;-).Alexander--- In flexcoders@yahoogroups.com, Dreamer [EMAIL PROTECTED] wrote: Alex Alex,you can write a function,like that.if(validation is success) addMember();elsealert(invalid input!!!); Peace, Dreamer [EMAIL PROTECTED] 2006-04-01 === 2006-04-01 18:32:22 £º=== Hello, In a signup form, when I click the submit button I would like for all the validation to happen
[flexcoders] I'm doing it wrong or are these bugs?
Hi all, I've an accordion, which has 3 canvas as children and I have some problems with the toolTip property. If I bind a var to it (mx:Canvas toolTip={toolTipTextVar} ... /) , it doesn't display the tooltip in the accordion header, it does it in the body of the canvas when the mouse enters, but if I write the text of the tooltip (mx:Canvas toolTip=Some tooltip text... /) it's displayed correctly.The other problem that I have is with combo boxes, and it's prompt property. If I bind the dataProvider (mx:ComboBox dataProvider={myDataProvider} .../), it seems that both selectedIndex=-1 and prompt=Some prompt text are ignored, but if I write the dataProvider manually these properties work ok. As I said in the topic, I'm doing it wrong or are these bugs?Thanks,Oriol. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] I'm doing it wrong or are these bugs?
Something that might cause this behaivour with the Canvas, is that inside the canvas that displays the tooltip wrong, I have a label whose text property is also binded to the the same of the canvas' tooltip var:mx:Canvas toolTip={toolTipTextVar} mx:Label text={toolTipTextVar} //mx:Canvas -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: [Flex 2 beta 2 - Cairngorm 2 - AMFPHP]
Hi Renaun,I've been also trying to make an AMFPHPService, quite different than yours, but after looking at your code I've a doubt:flash_proxy override function callProperty( methodName:*, ...args):* {AppUtil.info(passed callProperty);if( gateway_conn == null )gateway_conn = new RemotingConnection( endpoint );var respond:ResponderAMF0 = new ResponderAMF0( methodName, setQueryResult, setQueryFault ); AppUtil.info( methodName: + methodName + endpoint: + endpoint + source: + source + . + methodName.toString() );gateway_conn.call( source + . + methodName.toString(), respond, args[ 0 ], args[ 1 ], args[ 2 ] ); _methodResponderArray[ methodName ] = respond;return respond.getAsyncToken(); }I'm also using the ..args parameter, but when sending it to the php service they seem to disappear if I pass the args variable itself, without using an index. So my doubt is: using your implementation you can only pass three args, can't you? How would you do it if you want to pass more than three args? Thanks,Oriol2006/3/28, Renaun Erickson [EMAIL PROTECTED] : I have created an example showcasing Flex2 Beta2, Cairngorm2 andAMFPHP.It uses a custom RemoteObjectAMF0 component I created.Thecustom component allows access to AMF0 format services.The accesstries to mimic a subset of what you can do with the Flex 1.5RemoteObject.It does not support all the features of Flex 1.5RemoteObject and is first draft code, but it can work nicely in thecontext of Cairngorm's Service.mxml (ServiceLocater) code structure. The example code is currently in the context of the Cairngorm Loginexample that is found in the Cairngorm 2 download.Please remember that AMF3 is the newer AS3/Flex2 format and thereforethe longevity of the custom RemoteObjectAMF0 is unknown.A few of us are hoping to see a AMF0 supported RemoteObject to be part of theFlex2.But in the end it does not matter once Flex2 is released andAMF3 gets embraced by a wider adapter/connector base.You can find the example (as well as another example I created) located here:http://www.renaun.com/flex2/Renaun--- In flexcoders@yahoogroups.com, William Lambé [EMAIL PROTECTED] wrote: Hello guys, Did someone try to use Cairngom (architectural framework for flex) with AMFPHP ? I ask because I don't see clearly (in the sample Cairngorm Login) how to change LoginDelegate and Services.mxml to use it with AMFPHP… (forexemple where to introduce the RemotingConnection of Tweenpix( http://www.tweenpix.net/blog/index.php?2006/01/03/543-hello-world-en-amfphp -avec-flex20 )) If you tried one time, coud you explain us please. Thank you, William.--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] [Flex 2 beta 2 - Cairngorm 2 - AMFPHP]
Just to make thinks easier to others: PDF chapter: http://www.richinternetapps.com/archives/AS2_DesignPatterns_for_RIA.pdf Code: http://aspatterns.iterationtwo.com/downloads/as2patterns.zipI hope you meant that pdf Steven.Oriol. 2006/3/27, Steven Webster [EMAIL PROTECTED]: Just to back up Alex's excellent email here. When Cairngorm used to be used for Flash-based RIA we would use Flash Remoting, Open AMF, etc with success. If you do a search on www.richinternetapps.com (or search my previous emails on Flexcoders) you'll find a reference to the ActionScript 2.0 Dictionary where Alistair McLeod and I posted an email link to the PDF chapter we wrote about this. Back in those days, the ServiceLocator was an ActionScript class, that handled all the complexities associated with creating NetConnections/etc that you assume responsibility for when descending to the detail of Flash Remoting. When working with Flex-based RIA, it's typical to ascend the foodchain towards RemoteObejct, WebService and HTTPService (though not necessary) and so we made the decision in Cairngorm that the ServiceLocator be an MXML implementation, that could allow Flex to do all the heavy-lifting with the RPC Service tags. That way, we didn't have to worry ourselves anymore with NetConnections, and Java object serialisations/etc. However, if you want to use AMFPHP, you can do what many others have done, you can ensure that your ActionScript service locator is able to return these services. You want to hide all the details of service creation and lookup in the ServiceLocator so that your business delegate is immune to the implementation. I know others have done this already ... but if you can share your solution with us, we can ensure that others can leverage from your findings. If you have any more questions, please don't hesitate to ask. Best, Steven Steven WebsterPractice Director (Rich Internet Applications)Adobe ConsultingWestpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UKp: +44 (0) 131 338 6108 m: +44 (0)7917 428 947 Alex UhlmannSent: 26 March 2006 11:57To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] [Flex 2 beta 2 - Cairngorm 2 - AMFPHP] Hi William, usually, you would define the AMFPHP interface in Services.mxml, retrieve it via ServiceLocator from your Delegate. But ServiceLocator can only return you either mx.rpc.AbstractService or mx.rpc.http.HTTPService (for Flex2 's out of the box RPC services). However you could create the AMFPHP specific details in your Delegate. But better would be to add a method to Cairngorm's ServiceLocator that either returns a generic object oran objectcompatible to AMFPHP (RemotingConnection or NetConnection).Let me know how you get on. Best, Alex Alex UhlmannConsultant (Rich Internet Applications)Adobe ConsultingWestpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UKp: +44 (0) 131 338 6969 m: +44 (0)7917 428 951[EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of William LambéSent: 25 March 2006 22:10To: flexcoders@yahoogroups.comSubject: [flexcoders] [Flex 2 beta 2 - Cairngorm 2 - AMFPHP] Hello guys, Did someone try to use Cairngom (architectural framework for flex) with AMFPHP? I ask because I don't see clearly (in the sample Cairngorm Login) how to change LoginDelegate and Services.mxml to use it with AMFPHP… (for exemple where to introduce the RemotingConnection of Tweenpix ( http://www.tweenpix.net/blog/index.php?2006/01/03/543-hello-world-en-amfphp-avec-flex20 )) If you tried one time, coud you explain us please. Thank you, William. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] [Flex 2 beta 2] Location Problem ? Duplicate Problem ?
I had the same problem, you should import either flash.net.responder or org.nevis.cairngorm.business.Responder. If you want to import both of them, change new Responder(.. to new flash.net.Responder(.. or new org.nevis.cairngorm.business.Responder(.. to let Flex know what Responder are you using. Oriol.2006/3/27, William Lambé [EMAIL PROTECTED]: Hello everybody, I have a little question… how is this error possible?: «Can not resolve a multiname reference unambiguously. flash.net:Responder (from C:\Program Files\Adobe\Flex Builder 2 Beta 2\Flex Framework 2\frameworks\libs\playerglobal.swc(Responder)) and org.nevis.cairngorm.business:Responder (from G:\www\AdminBapp\org\nevis\cairngorm\business\Responder.as) are available.» It is in a line like: gateway.call( adminbapp.getStudents, new Responder(onResultInit, onFaultInit)); But I write before: import flash.net.Responder; to say that I would like this Responder. I probably make a mistake… What must I change? Is is because in my main.mxml I have this line: xmlns:business=net.willdestiny.adminbapp.business.*? Thank you, William, Belgium. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] [Flex 2 beta 2 - Cairngorm 2 - AMFPHP]
I've forgot to say that I import flash.net.Responder instead of org.nevis.cairngorm.Responder2006/3/26, Oriol Gual [EMAIL PROTECTED]: Hi,I've been working also on this, and I couldn't do it with the service locator, cause I didn't know how. I know it's not the best solution but I've defined the gateway in the model locator, and then, on each command I do this: var model:ModelLocator = ModelLocator.getInstance();model.gateway.call( service.method, new Responder(onResult, onFault), args); My problem now is with VO, I always get a badversion error, and I think I've mapped it correctly at advancedsettings.php, any one has had the same problem?Oriol.2006/3/26, Alex Uhlmann [EMAIL PROTECTED]: Hi William, usually, you would define the AMFPHP interface in Services.mxml, retrieve it via ServiceLocator from your Delegate. But ServiceLocator can only return you either mx.rpc.AbstractService or mx.rpc.http.HTTPService (for Flex2 's out of the box RPC services). However you could create the AMFPHP specific details in your Delegate. But better would be to add a method to Cairngorm's ServiceLocator that either returns a generic object oran objectcompatible to AMFPHP (RemotingConnection or NetConnection).Let me know how you get on. Best, Alex Alex UhlmannConsultant (Rich Internet Applications)Adobe ConsultingWestpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UKp: +44 (0) 131 338 6969 m: +44 (0)7917 428 951[EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of William LambéSent: 25 March 2006 22:10To: flexcoders@yahoogroups.comSubject: [flexcoders] [Flex 2 beta 2 - Cairngorm 2 - AMFPHP] Hello guys, Did someone try to use Cairngom (architectural framework for flex) with AMFPHP? I ask because I don't see clearly (in the sample Cairngorm Login) how to change LoginDelegate and Services.mxml to use it with AMFPHP… (for exemple where to introduce the RemotingConnection of Tweenpix ( http://www.tweenpix.net/blog/index.php?2006/01/03/543-hello-world-en-amfphp-avec-flex20 )) If you tried one time, coud you explain us please. Thank you, William. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] [Flex 2 beta 2 - Cairngorm 2 - AMFPHP]
Hi,I've been working also on this, and I couldn't do it with the service locator, cause I didn't know how. I know it's not the best solution but I've defined the gateway in the model locator, and then, on each command I do this: var model:ModelLocator = ModelLocator.getInstance();model.gateway.call( service.method, new Responder(onResult, onFault), args); My problem now is with VO, I always get a badversion error, and I think I've mapped it correctly at advancedsettings.php, any one has had the same problem?Oriol.2006/3/26, Alex Uhlmann [EMAIL PROTECTED]: Hi William, usually, you would define the AMFPHP interface in Services.mxml, retrieve it via ServiceLocator from your Delegate. But ServiceLocator can only return you either mx.rpc.AbstractService or mx.rpc.http.HTTPService (for Flex2 's out of the box RPC services). However you could create the AMFPHP specific details in your Delegate. But better would be to add a method to Cairngorm's ServiceLocator that either returns a generic object oran objectcompatible to AMFPHP (RemotingConnection or NetConnection).Let me know how you get on. Best, Alex Alex UhlmannConsultant (Rich Internet Applications)Adobe ConsultingWestpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UKp: +44 (0) 131 338 6969 m: +44 (0)7917 428 951[EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of William LambéSent: 25 March 2006 22:10To: flexcoders@yahoogroups.comSubject: [flexcoders] [Flex 2 beta 2 - Cairngorm 2 - AMFPHP] Hello guys, Did someone try to use Cairngom (architectural framework for flex) with AMFPHP? I ask because I don't see clearly (in the sample Cairngorm Login) how to change LoginDelegate and Services.mxml to use it with AMFPHP… (for exemple where to introduce the RemotingConnection of Tweenpix ( http://www.tweenpix.net/blog/index.php?2006/01/03/543-hello-world-en-amfphp-avec-flex20 )) If you tried one time, coud you explain us please. Thank you, William. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] CairngormLogin sample on Flex 2.0 beta 2
Hi William, I asked the same thing few posts earlier, just look for Cairngorm beta release? or click hereOriol. 2006/3/23, William Lambé [EMAIL PROTECTED]: Hello everybody, I am trying to use Cairngorm 2.0 with the new Flex 2.0 beta 2. And for that, I am trying to run the CairngormLogin sample. I changed some things that happen between beta 1 and beta 2 of Flex 2.0, but I have still a Problem: To the line «mx:ViewStack id=appView selectedChild={ getView( model.workflowState ) }» in CairngormLogin.mxml, I have this problem: «Implicit coercion of a value with static type 'mx.core:UIComponent' to a possibly unrelated type 'mx.core:Container'» Is someone can explain to me what does it mean? William. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Cairgnorm beta release?
Hello,Now that beta 2 has been released I wonder if there will be also a Cairngorm beta release?Thanks,Oriol. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Cairgnorm beta release?
Ok, good to know that! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Cairgnorm beta release?
Just one more point, I've tried the Cairngorm login example, and after changing the namespaces to http://www.adobe.com/2006/mxml, I can compile but I get this error:Implicit coercion of a value with static type ' mx.core:UIComponent' to a possibly unrelated type 'mx.core:Container' in line 68, which is:mx:ViewStack id=appView selectedChild={ getView( model.workflowState ) }If look at it, and viewstack has no selectedChild propertie, so if I change it to: selectedIndex={ model.workflowState } it works. My question is, how should it be if I want to return a view instead of an int?Thanks,Oriol. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Problem with read permissions and context path
Hello,I'm trying to run a Flex 1.5 application on a Tomcat 4.1.18, but the problem is that I always get this error: Exception java.security.AccessControlException access denied (java.io.FilePermission whatever.mxml read) (View stack trace)I've talked with my hosting provider and he says that the the problem might be with the context path, and after looking at the flex documentation it only shows an example of changing the context-root variable in a JRun server. I've tried to write to full-path to the directory but I don't know if I'm doing it correctly, any hint or tip on this? If someone has had the same problem, how did you solved it? Thank you,Oriol Gual. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Problem with read permissions and paths
Hello,I'm trying to run a Flex 1.5 application on a Tomcat 4.1.18, but the problem is that I always get this error: Exception java.security.AccessControlException access denied (java.io.FilePermission whatever.mxml read) (View stack trace)I've talked with my hosting provider and he says that the the problem might be with the context path, and after looking at the flex documentation it only shows an example of changing the context-root variable in a JRun server. I've tried to write to full-path to the directory but I don't know if I'm doing it correctly, any hint or tip on this? If someone has had the same problem, how did you solved it? Thank you,Oriol Gual. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Problem with read permissions and paths
Hello again,I've searched Macromedia's web and I've found that flex is supported only by Tomcat 4.1.29 or 5.0.18, and I'm trying with Tomcat 4.1.18, can this be the problem?Oriol. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.