[flexcoders] Re: WebService, destination, Basic Auth
Does anybody have any example for that ? {Maz} I've been struggling for hours to understand what is said in the livedoc but I do not manage to figure out how to do that !!! Adobe surely have to improve their data acess and interconnectivity help part ! So, I want to access a WebService which requires to be authentified by a Basic Anthentication process. How would you that ? Apparently I have to define a so-called destination, in config files... here's what i dended up with (not working obviously) : -- services-config.xml -- ?xml version=1.0 encoding=UTF-8? services-config services !-- PROXY SERVICE -- service-include file-path=proxy-config.xml/ /services /services-config -- proxy-config.xml -- ?xml version=1.0 encoding=UTF-8? destination id=bmDestination adapter ref=soap-proxy / properties wsdlhttp://localhost:/BubbleMindServer/services/bubblemind?wsdl/wsdl soaphttp://localhost:/BubbleMindServer/services/bubblemind/soap /properties /destination -- and in my mxml -- mx:WebService id=bmSoapService destination=bmDestination useProxy=true showBusyCursor=false / Any help please ? {Maz}
[flexcoders] Re: Error: Only one root tag is allowed.
Hi Dave. you have to open the xml whit a root tag, the xml parser think it is more than one root here because you dident create the root, you went straight to the nodes, then each node becomes a root ;) mx:XML root your nodes here. /root /mx:XML here is a working sample for you. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Panel height=100% title=My Links fontSize=18 mx:Tree x=76 y=102 width=343 showRoot=false id=treLinks labelField=@label fontSize=10 mx:dataProvider mx:XML root label=My Url's id=0 node label=Folder1 node label=Leaf1 nodeURL=http://www.qa.com/ /node node label=Folder2 node label=Leaf2 nodeURL=http://www.yahoo.com; / /node /root /mx:XML /mx:dataProvider /mx:Tree /mx:Panel /mx:Application one tip don't use the name root. use insted myRoot or something, I have runned into som bugs when using root. Cato Paus --- In flexcoders@yahoogroups.com, Dave [EMAIL PROTECTED] wrote: Newbie question here. Got the error: Only one root tag is allowed. The error appears on the mx:XML line. Is an XML tree in dataProvider not allowed? Thanks anyone. Dave The application is: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Panel height=100% title=My Links fontSize=18 mx:Tree x=76 y=102 width=343 id=treLinks fontSize=10 mx:dataProvider mx:XML node label=Folder1 node label=Leaf1 nodeURL=http://www.qa.com/ /node node label=Folder2 node label=Leaf2 nodeURL=http://www.yahoo.com; / /node /mx:XML /mx:dataProvider /mx:Tree /mx:Panel /mx:Application
[flexcoders] addChild doesn't work as dynamic, why?
Hi there Folks While trying to create a dynamic component into flex application then trying to include others, why such thing doesn't work. In the example bellow I create an PopUp titleWindow with children TextArea Component. But when I create again the same titleWindow, the last TextArea who is children of titleWindow is removed. ?xml version=1.0 encoding=utf-8? mx:Application creationComplete=createTextArea(); xmlns:mx= http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.events.ChildExistenceChangedEvent; import mx.states.AddChild; import mx.controls.TextArea; import mx.managers.PopUpManager; import mx.containers.TitleWindow; import mx.core.IFlexDisplayObject; public var titleWindows:TitleWindow; public var MyTextArea:TextArea; public var i:Number = Math.random() *50; private function createTitleWindow():void { titleWindows = new TitleWindow(); titleWindows.title = Basic; titleWindows.width = 330; titleWindows.height = 200; titleWindows.showCloseButton = true; titleWindows.addChild(MyTextArea); mx.managers.PopUpManager.addPopUp (titleWindows,this,false,null); titleWindows.creationPolicy =all; titleWindows.createReferenceOnParentDocument(MyTextArea); } private function createTextArea():void { MyTextArea = new TextArea(); MyTextArea.uid = 'textA'; MyTextArea.width = 330; MyTextArea.height = 200; MyTextArea.text = Example of Dynamic Text Content; MyTextArea.cacheAsBitmap = true; addChild(titleWindows); } ]] /mx:Script mx:Button mouseDown=createTitleWindow() label=Add dynamic Title Window with content/ /mx:Application Regards. -- Igor Costa www.igorcosta.org www.igorcosta.com skype: igorpcosta
Re: [flexcoders] Flash 9 - Flex 2 interface (previously): Can't we access MovieClips contained in embedded SWF's?
I'm sure that there will be more resources from Adobe as the Flash 9 IDE is released. That said, I suggest reading through this document: http://sdc.shockwave.com/devnet/flex/quickstart/embedding_assets/#EmbeddingSwfFiles . At 11:05 PM 2/16/2007, you wrote: Any Adobe or other people who have some resources out there for interfacing Flash 9 - Flex 2 apps? This seems to be a critical area, as Flash 9 IDE release looms.. Here's some interesting info on using Flash 9, but still not a solution to the Flex interface. http://www.adobe.com/devnet/flash/articles/flash9_as3_preview.htmlhttp://www.adobe.com/devnet/flash/articles/flash9_as3_preview.html -Scott On 2/16/07, slangeberg mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Mike, I tried setting up a document class for Flash 9, but when you place named items on stage, you get this error: ReferenceError: Error #1056: Cannot create property square_mc on com.cpile.flextoflash.FlexToFlashMain . at flash.display::Sprite/flash.display:Sprite::constructChildren() at flash.display::Sprite$iinit() at flash.display::MovieClip$iinit() at com.cpile.flextoflash::FlexToFlashMain$iinit() Adobe guys, is this correct? My understanding from looking around is that with the document class in Flash 9, you can only add items to the stage through code. That seems to negate a lot of the advantage of using a graphical interface... ok, so you could have a clip in your library that has the stage set up... hmmm that may do it! I'll write back when I have something. Otherwise, what i have sent is an effective way to access items on the stage. -Scott On 2/16/07, slangeberg mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Yeah, sorry. I'm not 100%, but you should be able to reference your loaded movie by that class type (your document class), from within Flex. I believe another gentleman referred to that, in this thread. Hold on, I did it, with a loader... I'll try to attach code. The proxy is just a design idea, meaning you define an interface to your movie in your class, instead of referencing elements within the movie from Flex. Then, the only thing that will break your flash / flex connection is to break that interface. For instance, your map(?) class could have functions like: showPlat( id:Object ); where the class implementation can decide what to do with the call, instead of having your flex app nose through the contents. That's a good design practice to get into: 'Always code to interfaces, not implementations.' Ok, so here's one of those do as I say, deals.. Also, my implementation may be a bit different here, than what we were talking about. This was a quick fix to enable custom loading logic, for the default Flex 2 application loading bar. In this case, I'm actually assigning the class under the 'linkage' option of my library clip (progress bar) to point to: com.tc.view.preload.ProgressBarSymbol, and publishing in Flash 9. Then, when you instantiate the class in Flex 2, you'll get a direct link. In your case, i would suggest a document class, for the entire movie. //I just used this class to enable me to access a loading bar quick. If this was going to //scale / change, I would have defined public methods to update this view. //I swear!! package com.tc.view.preload { import flash.display.*; import flash.text.TextField; [Embed(source=/library.swf, symbol=com.tc.view.preload.ProgressBarSymbol)] public class ProgressBarSymbol extends Sprite { public var progress_bar:MovieClip; public var loading_text:TextField; } } //And instantiated in Flex 2 by using: var bar:ProgressBarSymbol = new ProgressBarSymbol(); this.addChild( bar ); Hope this gives ideas, not confusion! -Scott On 2/16/07, Mike Anderson mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello Scott (in particular) :) You mentioned a Proxy - what you do mean by this exactly? Is this supposed to be some custom class that I write? If so, what is supposed to be contained within it? I did read up on the Document Object, and I am now doing my Flash 9 FLA files with a custom Document Class, representing the Root Timeline. I am pretty sure I did it right, since I am getting no compile errors. But my question is, is the AS3 Class File I used for the Document Object, strictly used for the FLA file? Or is this also used inside of Flex Builder, after I bring the external SWF file in? This is where I am getting a little confused. All the articles I find on this topic, covers the Flash side of things - and they never take that next step, and tell you how to reference it inside of Flex. If you have anything else on this topic, I'd really be grateful for your help. Thanks, Mike -- From: [EMAIL PROTECTED]http://ups.comups.com [mailto:flexcoders@ yahoogroups.com] On Behalf Of slangeberg Sent: Wednesday, February 14, 2007 10:53 AM To: [EMAIL
Re: [flexcoders] Re: Error: Only one root tag is allowed.
Cato, Right! I tested it out. You can even declare the root as a node - as long as you only have one. But I suppose there are other attributes that may differ between root and node. Thanks so much for your thoughtful reply. Thank you, Dave Cato Paus [EMAIL PROTECTED] wrote: Hi Dave. you have to open the xml whit a root tag, the xml parser think it is more than one root here because you dident create the root, you went straight to the nodes, then each node becomes a root ;) mx:XML root your nodes here. /root /mx:XML here is a working sample for you. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Panel height=100% title=My Links fontSize=18 mx:Tree x=76 y=102 width=343 showRoot=false id=treLinks labelField=@label fontSize=10 mx:dataProvider mx:XML root label=My Url's id=0 node label=Folder1 node label=Leaf1 nodeURL=http://www.qa.com/ /node node label=Folder2 node label=Leaf2 nodeURL=http://www.yahoo.com; / /node /root /mx:XML /mx:dataProvider /mx:Tree /mx:Panel /mx:Application one tip don't use the name root. use insted myRoot or something, I have runned into som bugs when using root. Cato Paus --- In flexcoders@yahoogroups.com, Dave [EMAIL PROTECTED] wrote: Newbie question here. Got the error: Only one root tag is allowed. The error appears on the mx:XML line. Is an XML tree in dataProvider not allowed? Thanks anyone. Dave The application is: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Panel height=100% title=My Links fontSize=18 mx:Tree x=76 y=102 width=343 id=treLinks fontSize=10 mx:dataProvider mx:XML node label=Folder1 node label=Leaf1 nodeURL=http://www.qa.com/ /node node label=Folder2 node label=Leaf2 nodeURL=http://www.yahoo.com; / /node /mx:XML /mx:dataProvider /mx:Tree /mx:Panel /mx:Application
Re: [flexcoders] no code completion with cairngorm
Code completion doesn't work with SWCs I don't think. To solve your problem, you might just set up a second project in Flex Builder called Cairngorm 2.1 and then edit the Project References by selecting the Cairngorm project in the Properties of the project that uses it. This way, you don't have to copy all the CG framework code across your projects -- it's managed from one central project. Regards, Dave. Cynergy Systems, Inc. On 2/17/07, Grant Davies [EMAIL PROTECTED] wrote: Do I need something special to get code completion with cairngorm swc? I'm getting a lot of typos, but when I do com.adobe. and wait, I never get the code completion... is there something I need to setup ? Grant ... *› b l u e t u b e i n t e r a c t i v e.* .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) › [EMAIL PROTECTED] › http://www.bluetube.com/bti › A Tribal Chicken Designs Affiliate http://www.tribalchicken.com/ attachment: small.jpg
[flexcoders] Re: Windows Vista Flex
My collegue tried to install eclipse and the flexbuilder plugin on a vista machine and recieived an error. When looking into the error log we found that a library couldn´t be found. The error log looked like something we found described by Michael Simpson (2007-01-16 12:29:11), at this page: http://www.easyeclipse.org/site/distributions/cplusplus.html. It has nothing (?) to do with Flex, but seems more like a eclipse/java problemwhen trying to collaborate with vista. Regards, /Fredrik Sandberg --- In flexcoders@yahoogroups.com, Mike Morearty [EMAIL PROTECTED] wrote: Hi Bryan, I'm not sure if this will help me, but I would be interested to see the Eclipse log file. The log is workspacedir\.metadata\.log.
RE: [flexcoders] addChild doesn't work as dynamic, why?
I see three problems: 1. This code gives an RTE when I run it. When the Application's creationComplete handler calls createTextArea(), and this method executes addChild(titleWindows), titleWindows is null. You can't add a null child to a parent. 2. If you are using the PopUpManager to pop up TitleWindows on top of the Application, you don't want to be adding a TitleWindow as a child of the Application. 3. You create a single TextArea and then add it to multiple TitleWindows. When you add it to the second one, it gets automatically removed from the first one. A DisplayObject can only be parented by a single DisplayObjectContainer. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Igor Costa Sent: Saturday, February 17, 2007 8:32 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] addChild doesn't work as dynamic, why? Hi there Folks While trying to create a dynamic component into flex application then trying to include others, why such thing doesn't work. In the example bellow I create an PopUp titleWindow with children TextArea Component. But when I create again the same titleWindow, the last TextArea who is children of titleWindow is removed. ?xml version=1.0 encoding=utf-8? mx:Application creationComplete=createTextArea(); xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute mx:Script ![CDATA[ import mx.events.ChildExistenceChangedEvent; import mx.states.AddChild; import mx.controls.TextArea ; import mx.managers.PopUpManager; import mx.containers.TitleWindow; import mx.core.IFlexDisplayObject; public var titleWindows:TitleWindow; public var MyTextArea:TextArea; public var i:Number = Math.random() *50; private function createTitleWindow():void { titleWindows = new TitleWindow(); titleWindows.title = Basic; titleWindows.width = 330; titleWindows.height = 200; titleWindows.showCloseButton = true; titleWindows.addChild(MyTextArea); mx.managers.PopUpManager.addPopUp(titleWindows,this,false,null); titleWindows.creationPolicy =all; titleWindows.createReferenceOnParentDocument (MyTextArea); } private function createTextArea():void { MyTextArea = new TextArea(); MyTextArea.uid = 'textA'; MyTextArea.width = 330; MyTextArea.height = 200; MyTextArea.text = Example of Dynamic Text Content; MyTextArea.cacheAsBitmap = true; addChild(titleWindows); } ]] /mx:Script mx:Button mouseDown=createTitleWindow() label=Add dynamic Title Window with content/ /mx:Application Regards. -- Igor Costa www.igorcosta.org http://www.igorcosta.org www.igorcosta.com http://www.igorcosta.com skype: igorpcosta
Re: [flexcoders] Flex 2 XML manipulation question
this isnt exactly a clean and optimized code, but it works. just tweak it according to your needs. It accepts both xml and xmllist. heck it will even accept any object so long as there is a length() method in it, however in that case, it will just return the original object. let me know if it helped.. or if you encounter any problems. Cheers! :) public function deleteDescendantsByName(a:*,nodeName:String):*{ var r:XMLList=null; if (a.length()=1){ r = new XMLList(); for (var i:int=0;ia.length(); i++){ if (a[i].name().localName!=nodeName){ if (a[i].descendants(nodeName).length()==0){ r+=a[i]; }else{ var t:XMLList=deleteDescendantsByName(a[i].children(),nodeName); a[i].setChildren(t); r+=a[i]; } } } } return r; } --- iondisc [EMAIL PROTECTED] wrote: Does anyone know a way to suppress/remove specific nodes from an XML/XMLList or XMLCollection? I have say this XML: root level detail /detail /level level detail /detail /level /root I want to make a copy of this XML (could be either of the three types of XML objects) and remove the detail nodes from every node no matter what hiarchy they are in. Thanks in advance, Dustyn Eskelson Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com
Re: [flexcoders] Flex 2 XML manipulation question
a little revision to my previous post. you can also modify this to delete 'nodes' according to supplied attribute or index. this time it will certainly throw null when parameter is not XMl and XMllist; returns XMLlist if successful. I must warn you, this uses recursion tho. Some developers feel it's not a good practice to do so. beats me, i just need it to work :P And oh of course this only works on the as3 xml . not on the legacy XMLNode from as2. PLease let me know if you have optimized/clean up the code and the logic itself. Ill certainly be using it in a project im working in. thnx! public function deleteDescendantsByName(a:*,nodeName:String):XMLList{ var r:XMLList=null; if (a.length()=1((a is XML)||(a is XMLList))){ r = new XMLList(); for (var i:int=0;ia.length(); i++){ if (a[i].name().localName!=nodeName){ if (a[i].descendants(nodeName).length()==0){ r+=a[i]; }else{ var t:XMLList=deleteDescendantsByName(a[i].children(),nodeName); a[i].setChildren(t); r+=a[i]; } } } } return r; } Food fight? Enjoy some healthy debate in the Yahoo! Answers Food Drink QA. http://answers.yahoo.com/dir/?link=listsid=396545367
[flexcoders] DISREGARD....FW: ListRowInfo...
Please disregard. I found the solution shortly after pressing SEND. Sorry for the noise. Steve From: Steve Kellogg Sent: Saturday, February 17, 2007 11:25 AM To: 'flexcoders@yahoogroups.com' Subject: ListRowInfo... Hello, I'm needing to access the information in ListRowInfo elements (in the 'rowInfo' array) for a LIST. Since the rowInfo is Protected, I'm extending List into my own class, but when I try to import mx.comtrols.listClasses, FlexBuilder is telling me that Definition mx.Controls.listClasses could not be found. Can anyone point me towards a solution? Thanks in Advance, Steve
[flexcoders] Re: Flickr and Flash Player Sandbox
--- In flexcoders@yahoogroups.com, Webdevotion [EMAIL PROTECTED] wrote: Hello List, Is there anyone who can shed a light on how to deploy a Flex / Flickr mashup without those domain security errors ? Hope this solves your problem: http://flexwinds.wordpress.com/2007/02/17/fixing-the-security-sandbox-errors-with-as3-flickr-api/ Pavan
[flexcoders] ListRowInfo...
Hello, I'm needing to access the information in ListRowInfo elements (in the 'rowInfo' array) for a LIST. Since the rowInfo is Protected, I'm extending List into my own class, but when I try to import mx.comtrols.listClasses, FlexBuilder is telling me that Definition mx.Controls.listClasses could not be found. Can anyone point me towards a solution? Thanks in Advance, Steve
[flexcoders] observing a model change in cairngorm
Hi guys, I've got my view, model, commands and delegate all running and my view contains a chart. When the model changes for my chart data I need to work the data a little and can't just directly use the binding. do I 1) change my command to fire an event when the model has been updated 2) Is there some way I can observe a model change and then kick of my data work a little and not directly bind the chart to the model ? Grant ... b l u e t u b e i n t e r a c t i v e. .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) [EMAIL PROTECTED] http://www.bluetube.com/bti http://www.bluetube.com/bti A Tribal Chicken Designs Affiliate http://www.tribalchicken.com/ attachment: small.jpg
RE: [flexcoders] observing a model change in cairngorm
Thanks gareth.. the model is used by multiple views, a grid and a chart, the chart needs the xml from the model manipulated a little differently than the grid does... grant ... b l u e t u b e i n t e r a c t i v e. .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) [EMAIL PROTECTED] http://www.bluetube.com/bti http://www.bluetube.com/bti A Tribal Chicken Designs Affiliate http://www.tribalchicken.com/ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gareth Edwards Sent: Saturday, February 17, 2007 4:32 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] observing a model change in cairngorm Why not use a setter in your model and do the work there? public function set jobs (data:ArrayCollection data:ArrayCollection ) : void { // Custom logic here? _jobs = data; } Cheers Gareth. Grant Davies wrote: Hi guys, I've got my view, model, commands and delegate all running and my view contains a chart. When the model changes for my chart data I need to work the data a little and can't just directly use the binding. do I 1) change my command to fire an event when the model has been updated 2) Is there some way I can observe a model change and then kick of my data work a little and not directly bind the chart to the model ? Grant ... b l u e t u b e i n t e r a c t i v e. .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://www.bluetube.com/bti http://www.bluetube.com/bti A Tribal Chicken Designs Affiliate http://www.tribalchicken.com/ attachment: small.jpg attachment: ATT13003169.jpg
Re: [flexcoders] Re: Included SWC dependency problem with Cairngorm - anyone else?
I had the same problem. It seems like the Cairngorm project source has something inside the files that FB does not like. It would be great that Adobe put some new package that fixes this issue. I finaly use the SWC and can't create a Flex Library Project. Really weird... On 2/14/07, Dustin [EMAIL PROTECTED] wrote: I had a similar problem where I was using cairngorm without including the swc and I got an error from IServiceLocator because it couldn't find the mx.data.DataService class. So I imported the cairngorm swc into the library path and everything was kosher. I'm still using flex 2.0. Is it suppose to be that way? -Dustin --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Oliver Tupman [EMAIL PROTECTED] wrote: Okay, I've had a bit more of a play and I have appeared to narrow it down on this: I can't seem to be able to use the Cairngorm from a Flex Library project. It doesn't work if it's included as an SWC or as a project link. If anyone from Adobe's listening, the exception that FB bombs out on is this: !ENTRY org.eclipse.ui 4 4 2007-02-14 17:19:07.937 !MESSAGE Unhandled event loop exception !ENTRY org.eclipse.ui 4 0 2007-02-14 17:19:07.953 !MESSAGE java.lang.StackOverflowError !STACK 0 java.lang.StackOverflowError at org.eclipse.core.internal.filesystem.local.LocalFileNatives.internalGetF\ ileInfoW(Native Method) at org.eclipse.core.internal.filesystem.local.LocalFileNatives.fetchFileInf\ o( LocalFileNatives.java:60) at org.eclipse.core.internal.filesystem.local.LocalFile.fetchInfo( LocalFile.java:119) at org.eclipse.core.filesystem.provider.FileStore.fetchInfo( FileStore.java:253) at org.eclipse.core.internal.localstore.FileSystemResourceManager.fastIsSyn\ chronized (FileSystemResourceManager.java:295) at org.eclipse.core.internal.resources.File.refreshLocal(File.java:333) at com.adobe.flexbuilder.project.persist.PersistableSettings.readPersistenc\ eFile(Unknown Source) at com.adobe.flexbuilder.project.actionscript.internal.ActionScriptProjectS\ ettings.init(Unknown Source) at com.adobe.flexbuilder.project.internal.FlexLibraryProjectSettings.init\ (Unknown Source) at com.adobe.flexbuilder.project.internal.FlexLibraryProject.createDescript\ ion(Unknown Source) at com.adobe.flexbuilder.project.actionscript.internal.ActionScriptProject.\ loadDescription(Unknown Source) at com.adobe.flexbuilder.project.actionscript.internal.ActionScriptProject.\ init(Unknown Source) at com.adobe.flexbuilder.project.internal.FlexBasedProject.init(Unknown Source) at com.adobe.flexbuilder.project.internal.FlexLibraryProject.init(Unknown Source) at com.adobe.flexbuilder.project.actionscript.ActionScriptCore$3.doCreate(U\ nknown Source) at com.adobe.flexbuilder.project.actionscript.ActionScriptCore$ProjectCreat\ or.run(Unknown Source) --- This portion repeats until Eclipse dies at org.eclipse.core.internal.resources.Workspace.run(Workspace.java :1737) at com.adobe.flexbuilder.project.FlexWorkspaceRunner.run(Unknown Source) at com.adobe.flexbuilder.project.actionscript.ActionScriptCore$ProjectCreat\ or.safeGetOrCreate(Unknown Source) at com.adobe.flexbuilder.project.actionscript.ActionScriptCore.getProject(U\ nknown Source) at com.adobe.flexbuilder.project.internal.FlexLibraryCore.getProject(Unknow\ n Source) at com.adobe.flexbuilder.project.ClassPathEntryFactory$LibraryFilePath.getP\ roject(Unknown Source) at com.adobe.flexbuilder.project.ClassPathEntryFactory$LibraryFilePath.ini\ t(Unknown Source) at com.adobe.flexbuilder.project.ClassPathEntryFactory.newEntry(Unknown Source) at com.adobe.flexbuilder.project.persist.ClassPathSetting.read(Unknown Source) at com.adobe.flexbuilder.project.persist.ContainerTag.read(Unknown Source) at com.adobe.flexbuilder.project.persist.ContainerTag.read(Unknown Source) at com.adobe.flexbuilder.project.persist.PersistableSettings.readPersistenc\ eFile(Unknown Source) at com.adobe.flexbuilder.project.actionscript.internal.ActionScriptProjectS\ ettings.init(Unknown Source) at com.adobe.flexbuilder.project.internal.FlexLibraryProjectSettings.init\ (Unknown Source) at com.adobe.flexbuilder.project.internal.FlexLibraryProject.createDescript\ ion(Unknown Source) at com.adobe.flexbuilder.project.actionscript.internal.ActionScriptProject.\ loadDescription(Unknown Source) at com.adobe.flexbuilder.project.actionscript.internal.ActionScriptProject.\ init(Unknown Source) at com.adobe.flexbuilder.project.internal.FlexBasedProject.init(Unknown Source) at com.adobe.flexbuilder.project.internal.FlexLibraryProject.init(Unknown Source) at com.adobe.flexbuilder.project.actionscript.ActionScriptCore$3.doCreate(U\ nknown Source) at com.adobe.flexbuilder.project.actionscript.ActionScriptCore$ProjectCreat\ or.run(Unknown Source) --- This portion repeats until Eclipse dies On 14/02/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hmm, I'm doing the same thing and it's working fine.
Re: [flexcoders] observing a model change in cairngorm
Hi Grant Can't you use a binding function? dataProvider={ massageData( ModelLocator.getInstance().myData ) } Cheers Ralf. On 2/17/07, Gareth Edwards [EMAIL PROTECTED] wrote: Why not define an as class for your model (if you aren't already), and define a separate variable that you can populate on the other data being set? The snippet I posted is from something I've done that looks like this public function set jobs (data:ArrayCollection) : void { _jobs = data; buildJobsTree(_jobs); } Not sure if its the best option.. but it certainly works for me. Either that, or there are some observer classes from Adobe Consulting that allow you to watch changes to your model from the UI. Cheers Gareth. Grant Davies wrote: Thanks gareth.. the model is used by multiple views, a grid and a chart, the chart needs the xml from the model manipulated a little differently than the grid does... grant ... *› b l u e t u b e i n t e r a c t i v e.* .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) › [EMAIL PROTECTED] › http://www.bluetube.com/bti › A Tribal Chicken Designs Affiliate http://www.tribalchicken.com/ -- *From:* flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.comflexcoders@yahoogroups.com] *On Behalf Of *Gareth Edwards *Sent:* Saturday, February 17, 2007 4:32 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] observing a model change in cairngorm Why not use a setter in your model and do the work there? public function set jobs (data:ArrayCollection) : void { // Custom logic here? _jobs = data; } Cheers Gareth. Grant Davies wrote: Hi guys, I've got my view, model, commands and delegate all running and my view contains a chart. When the model changes for my chart data I need to work the data a little and can't just directly use the binding. do I 1) change my command to fire an event when the model has been updated 2) Is there some way I can observe a model change and then kick of my data work a little and not directly bind the chart to the model ? Grant ... *› b l u e t u b e i n t e r a c t i v e.* .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) › [EMAIL PROTECTED] › http://www.bluetube.com/bti › A Tribal Chicken Designs Affiliate http://www.tribalchicken.com/ -- Ralf Bokelberg [EMAIL PROTECTED] Flex Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35
RE: [flexcoders] observing a model change in cairngorm
gareth, thanks for the response... I think my concern is poluting the model with view specific data... The results of a command is xml and this is set in the model which is an as class (VisitorModel) , the chart bound to the model via its data provider. when the app first starts up, I don't have any xml, a user picks a date range, I hit a web service and get valid xml back, then the chart has to has create a column series based on some labels in the xml, so I need to know when the xml has changed so that the column series can be created and the chart updated. In your example below, does the buildJobsTree just manipulate the data or does it actually do something to the view ? Grant ... b l u e t u b e i n t e r a c t i v e. .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) [EMAIL PROTECTED] http://www.bluetube.com/bti http://www.bluetube.com/bti A Tribal Chicken Designs Affiliate http://www.tribalchicken.com/ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gareth Edwards Sent: Saturday, February 17, 2007 5:43 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] observing a model change in cairngorm Why not define an as class for your model (if you aren't already), and define a separate variable that you can populate on the other data being set? The snippet I posted is from something I've done that looks like this public function set jobs (data:ArrayCollection data:ArrayCollection ) : void { _jobs = data; buildJobsTree(_jobs); } Not sure if its the best option.. but it certainly works for me. Either that, or there are some observer classes from Adobe Consulting that allow you to watch changes to your model from the UI. Cheers Gareth. Grant Davies wrote: Thanks gareth.. the model is used by multiple views, a grid and a chart, the chart needs the xml from the model manipulated a little differently than the grid does... grant ... b l u e t u b e i n t e r a c t i v e. .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://www.bluetube.com/bti http://www.bluetube.com/bti A Tribal Chicken Designs Affiliate http://www.tribalchicken.com/ From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Gareth Edwards Sent: Saturday, February 17, 2007 4:32 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] observing a model change in cairngorm Why not use a setter in your model and do the work there? public function set jobs (data:ArrayCollection data:ArrayCollection ) : void { // Custom logic here? _jobs = data; } Cheers Gareth. Grant Davies wrote: Hi guys, I've got my view, model, commands and delegate all running and my view contains a chart. When the model changes for my chart data I need to work the data a little and can't just directly use the binding. do I 1) change my command to fire an event when the model has been updated 2) Is there some way I can observe a model change and then kick of my data work a little and not directly bind the chart to the model ? Grant ... b l u e t u b e i n t e r a c t i v e. .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://www.bluetube.com/bti http://www.bluetube.com/bti A Tribal Chicken Designs Affiliate http://www.tribalchicken.com/ attachment: small.jpg attachment: ATT13006568.jpg attachment: ATT13006569.jpg
[flexcoders] ArrayCollection contains not working
Hi, I've been trying to filter an ArrayCollection with the objects that not exist in another ArrayCollection. I use the contains method, but it seems that does not work. In the following thread seems that others are having the same problem with XMLListCollectionView: http://www.mail-archive.com/flexcoders@yahoogroups.com/msg55025.html Someone knows if contains method really works? maybe we are using in a wrong way? Here is my filter: private function myFilter(item:Object):Boolean { if(model.myac.contains(item)) return false; else return true; } And I use the following implementation of ICollectionView mx:ListCollectionView id=mylcv list={model.myac2} filterFunction=myFilter/ Something wrong here? Thanks. -- ::| Carlos Rovira ::| http://www.carlosrovira.com ::| http://www.madeinflex.com
RE: [flexcoders] observing a model change in cairngorm
I tried that and its only called ONCE as you're binding to a function that manipulates the data. when the data in - ModelLocator.getInstance().myData changes there is nothing bound to it, since you bound to the function massage data and not the actual data in the model... does that make any sense ? Grant ... b l u e t u b e i n t e r a c t i v e. .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) [EMAIL PROTECTED] http://www.bluetube.com/bti http://www.bluetube.com/bti A Tribal Chicken Designs Affiliate http://www.tribalchicken.com/ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ralf Bokelberg Sent: Saturday, February 17, 2007 5:54 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] observing a model change in cairngorm Hi Grant Can't you use a binding function? dataProvider={ massageData( ModelLocator.getInstance().myData ) } Cheers Ralf. On 2/17/07, Gareth Edwards [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Why not define an as class for your model (if you aren't already), and define a separate variable that you can populate on the other data being set? The snippet I posted is from something I've done that looks like this public function set jobs (data:ArrayCollection) : void { _jobs = data; buildJobsTree(_jobs); } Not sure if its the best option.. but it certainly works for me. Either that, or there are some observer classes from Adobe Consulting that allow you to watch changes to your model from the UI. Cheers Gareth. Grant Davies wrote: Thanks gareth.. the model is used by multiple views, a grid and a chart, the chart needs the xml from the model manipulated a little differently than the grid does... grant ... b l u e t u b e i n t e r a c t i v e. .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://www.bluetube.com/bti http://www.bluetube.com/bti A Tribal Chicken Designs Affiliate http://www.tribalchicken.com/ From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [ mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Gareth Edwards Sent: Saturday, February 17, 2007 4:32 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] observing a model change in cairngorm Why not use a setter in your model and do the work there? public function set jobs (data:ArrayCollection) : void { // Custom logic here? _jobs = data; } Cheers Gareth. Grant Davies wrote: Hi guys, I've got my view, model, commands and delegate all running and my view contains a chart. When the model changes for my chart data I need to work the data a little and can't just directly use the binding. do I 1) change my command to fire an event when the model has been updated 2) Is there some way I can observe a model change and then kick of my data work a little and not directly bind the chart to the model ? Grant ... b l u e t u b e i n t e r a c t i v e. .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://www.bluetube.com/bti http://www.bluetube.com/bti A Tribal Chicken Designs Affiliate http://www.tribalchicken.com/ -- Ralf Bokelberg [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Flex Flash Consultant based in
[flexcoders] Re: Determining Drop Index in a List
For pete's sake, i hope someone answers this. I need to determine in if the drop is before the selected index... and if it is, (i'm using allowMultipleSelection) I need to determine the length of the drag source, and add that number to the selectedIndex... Axel
[flexcoders] Re: Determining Drop Index in a List
Paul, I think I found a good source to look at for the answer, use a function called calculateDropIndex(event) I don't know enough about it yet, but here is a page to look at, just right-click to view the source, and copy and paste it into your own new flex project... Hope you can dissect it and understand it and put it to use like i did... anyway... later if anything just do some research on calculateDropIndex Here is the link where the project and source is: http://thanksmister.com/dnddatagrid/index.html
[flexcoders] Re: Can't we access MovieClips contained in embedded SWF's?
If you place an instance on stage when a document class is in use, you must declare that instance in the document class as well. In your case below, you need to declare square_mc in your document class FlexToFlashMain: public var square_mc:SquareMC; /* or whatever type it is */ It must be public. When the class is instantiated, the Flash Player creates any movie clip instances laid out on the current timeline frame. For each of those instances, it tries to set the corresponding member variable in the document class. The member variable name is the movie clip's instance name, in this case square_mc. Adobe guys, is this correct? My understanding from looking around is that with the document class in Flash 9, you can only add items to the stage through code. So the answer here is... You can add items to the stage graphically. But you need to also add them in your document class code, if you're not letting the tool generate the document class automatically for you (which is what happens when you don't specify a document class) In a future version of Flash, it'd be nice if there was a code behind feature that automatically added the member variable for you. But that's not currently available. One alternate way to do it (kind of a cop-out but it'll work) is to declare your document class dynamic. Then the Flash Player will succeed when it tries to set the square_mc member variable even if the square_mc variable has not been declared in the class definition. Gary --- In flexcoders@yahoogroups.com, slangeberg [EMAIL PROTECTED] wrote: Mike, I tried setting up a document class for Flash 9, but when you place named items on stage, you get this error: ReferenceError: Error #1056: Cannot create property square_mc on com.cpile.flextoflash.FlexToFlashMain. at flash.display::Sprite/flash.display:Sprite::constructChildren() at flash.display::Sprite$iinit() at flash.display::MovieClip$iinit() at com.cpile.flextoflash::FlexToFlashMain$iinit() Adobe guys, is this correct? My understanding from looking around is that with the document class in Flash 9, you can only add items to the stage through code. That seems to negate a lot of the advantage of using a graphical interface... ok, so you could have a clip in your library that has the stage set up... hmmm that may do it! I'll write back when I have something. Otherwise, what i have sent is an effective way to access items on the stage. -Scott On 2/16/07, slangeberg [EMAIL PROTECTED] wrote: Yeah, sorry. I'm not 100%, but you should be able to reference your loaded movie by that class type (your document class), from within Flex. I believe another gentleman referred to that, in this thread. Hold on, I did it, with a loader... I'll try to attach code. The proxy is just a design idea, meaning you define an interface to your movie in your class, instead of referencing elements within the movie from Flex. Then, the only thing that will break your flash / flex connection is to break that interface. For instance, your map(?) class could have functions like: showPlat( id:Object ); where the class implementation can decide what to do with the call, instead of having your flex app nose through the contents. That's a good design practice to get into: 'Always code to interfaces, not implementations.' Ok, so here's one of those do as I say, deals.. Also, my implementation may be a bit different here, than what we were talking about. This was a quick fix to enable custom loading logic, for the default Flex 2 application loading bar. In this case, I'm actually assigning the class under the 'linkage' option of my library clip (progress bar) to point to: com.tc.view.preload.ProgressBarSymbol, and publishing in Flash 9. Then, when you instantiate the class in Flex 2, you'll get a direct link. In your case, i would suggest a document class, for the entire movie. //I just used this class to enable me to access a loading bar quick. If this was going to //scale / change, I would have defined public methods to update this view. //I swear!! package com.tc.view.preload { import flash.display.*; import flash.text.TextField; [Embed(source=/library.swf, symbol= com.tc.view.preload.ProgressBarSymbol)] public class ProgressBarSymbol extends Sprite { public var progress_bar:MovieClip; public var loading_text:TextField; } } //And instantiated in Flex 2 by using: var bar:ProgressBarSymbol = new ProgressBarSymbol(); this.addChild( bar ); Hope this gives ideas, not confusion! -Scott On 2/16/07, Mike Anderson [EMAIL PROTECTED] wrote: Hello Scott (in particular) :) You mentioned a Proxy - what you do mean by this exactly? Is this supposed to be some custom class that I write? If so, what is supposed to be contained within it? I did read up on the Document
[flexcoders] Re: Cairngorm 2.1 AMFPHP 1.9
Another gotcha that comes up is the destination names are case sensitive. Confirm they are the same case in the MXML code and the services config. You say, posted earlier has services-config.xml calling amfphp19- services-config.xml... Try using a services-config.xml file that defines all the endpoints, destinations, and channels in one file and see if that helps. An example application connecting to multiple backend's (AMFPHP 1.2 and AMFPHP 1.9) can be found here: http://api.renaun.com/flex2/posts/CairngormStoreMultipleBackend/CairngormStoreMultipleBackend.zip Renaun --- In flexcoders@yahoogroups.com, roadchief [EMAIL PROTECTED] wrote: I don't know if this is related or not - but if you are using the services-config.xml file (as defined in your response below) to define the channels and endpoints, etc., then you need to have '-services services-config.xml' in the Flex compiler additional compiler arguments. Just a thought - Chief --- In flexcoders@yahoogroups.com, mapper2255 mapper2255@ wrote: --- In flexcoders@yahoogroups.com, ericbichara ericbichara@ wrote: Hi, your config script looks fine to me, give us an example of your service.mxlm file, maybe youre calling the service inccorectly? Here is an example of mine: ?xml version=1.0 encoding=utf-8? cairngorm:ServiceLocator xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:cairngorm=com.adobe.cairngorm.business.* mx:RemoteObject id=LoginService destination=amfphp source=Login showBusyCursor=true/ /cairngorm:ServiceLocator and script: ?xml version=1.0 encoding=UTF-8? services-config services service id=amfphp-flashremoting-service class=flex.messaging.services.RemotingService messageTypes=flex.messaging.messages.RemotingMessage destination id=amfphp channels channel ref=my-amfphp/ /channels properties source*/source /properties /destination /service /services channels channel-definition id=my-amfphp class=mx.messaging.channels.AMFChannel endpoint uri=http://localhost/amfphp/gateway.php; class=flex.messaging.endpoints.AMFEndpoint/ /channel-definition /channels /services-config --- In flexcoders@yahoogroups.com, mapper2255 mapper2255@ wrote: Hello, Have been trying all day to get CairngromStore running and keep getting this error: theMessagingError message='Unknown destination 'AMFPHP1_9'.' Using xampp/php 5. Have searched a long time for the answer with no help. Ran across this thread: http://www.mail- archive.com/flexcoders@yahoogroups.com/msg49480.html. So I am using: ?xml version=1.0 encoding=UTF-8? services-config services service id=amfphp-flashremoting-service class=flex.messaging.services.RemotingService messageTypes=flex.messaging.messages.RemotingMessage destination id=AMFPHP1_9 channels channel ref=my-amfphp19/ /channels properties source*/source /properties /destination /service /services channels channel-definition id=my-amfphp19 class=mx.messaging.channels.AMFChannel endpoint uri=http://localhost/amfphp1_9/gateway.php; class=flex.messaging.endpoints.AMFEndpoint/ /channel-definition /channels /services-config Have set up and have running amfphp 1.9. Any suggestions? I know it is something simple. Thanks. This the main.mxml. Just trying to duplicate work so I have less to concern myself with as I get this up for the first time: ?xml version=1.0 encoding=utf-8? !-- Copyright 2006 Renaun Erickson (http://renaun.com) Add this to the compiler arguments list: -services amfphp19-services-config.xml -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical creationComplete=doLogin() viewSourceURL=amfphp1_9 !-- mx:RemoteObject id=myservice source=tutorials.PersonService destination=amfphp fault=faultHandler(event) showBusyCursor=true mx:method name=getList result=getListHandler(event) fault=faultHandler(event) / /mx:RemoteObject -- mx:RemoteObject id=roTestService destination=amfphp1_9 source=amfphp1_9ServiceClases.MyTestService result=Alert.show( event.result + '', 'Result'
[flexcoders] Re: AMFPHP explicitType error
I have an example of a Cairngorm Store Flex application connects to multiple backends. You can find it here: http://api.renaun.com/flex2/posts/CairngormStoreMultipleBackend/ Two of the backends are AMFPHP 1.2 (AMF0 using RemoteObjectAMF0) and AMFPHP 1.9 (AMF3). Both examples returned typed ProductVO objects. As for the nested VO's... I can't remember how AMFPHP handles it. If the objects are mapped correctly I believe AMFPHP will type them correctly. Something I might have to look into... Renaun Source for the above link can be found at: http://api.renaun.com/flex2/posts/CairngormStoreMultipleBackend/CairngormStoreMultipleBackend.zip --- In flexcoders@yahoogroups.com, Mike Crowe [EMAIL PROTECTED] wrote: Interesting. I'm also using the renaun AMF0 templates. I wonder if that could be the problem. Have you moved to any AMF3 setups? --- In flexcoders@yahoogroups.com, Kevin lists@ wrote: wow. this seems like a lot of work to just map a VO object. Makes me wonder if it is worth it. What's the point of mapping the objects if you have to do the conversion manually anyway? What is weird is that in another command, I have an array of VO's being returned from PHP which all map correctly using the $_explicitType variable. However, when i simply return only one VO object from PHP, then I get the error. I'll keep looking into this... Thanks, Kevin On Feb 10, 2007, at 8:15 AM, Mike Crowe wrote: Kevin, I'm in the same boat. I had to initialize my VO object in the constructor. So, in your getUserInfo(), you would do (using my VO): var teamData:TeamVO = new TeamVO(data.result); and in your VO: public function TeamVO(toSet:Object=null) { registerClassAlias(com.mikecrowe.all.vo.TeamVO, TeamVO); _uuid = UIDUtil.createUID(); if ( toSet ) { try { uuid = toSet.uuid; } catch ( e:Error ) { trace(Error setting uuid: +e); } try { id = toSet.id; } catch ( e:Error ) { trace(Error setting id: +e); } try { created_by = toSet.created_by; } catch ( e:Error ) { trace(Error setting created_by: +e); } try { created_on = parseDate(toSet.created_on); } catch ( e:Error ) { trace(Error setting created_on: +e); } try { updated_by = toSet.updated_by; } catch ( e:Error ) { trace(Error setting updated_by: +e); } try { updated_on = parseDate(toSet.updated_on); } catch ( e:Error ) { trace(Error setting updated_on: +e); } try { parent_id = toSet.parent_id; } catch ( e:Error ) { trace(Error setting parent_id: +e); } try { contact_id = toSet.contact_id; } catch ( e:Error ) { trace(Error setting contact_id: +e); } try { cat_id = toSet.cat_id; } catch ( e:Error ) { trace(Error setting cat_id: +e); } try { team_is_global = toSet.team_is_global; } catch ( e:Error ) { trace(Error setting team_is_global: +e); } try { team_organizat_personal = toSet.team_organizat_personal; } catch ( e:Error ) { trace(Error setting team_organizat_personal: +e); } try { team_abbreviation = toSet.team_abbreviation; } catch ( e:Error ) { trace(Error setting team_abbreviation: +e); } try { team_name = toSet.team_name; } catch ( e:Error ) { trace(Error setting team_name: +e); } try { team_emails = toSet.team_emails; } catch ( e:Error ) { trace(Error setting team_emails: +e); } } } Note: The individual try{} statements are important. I had it around all the assignments before, and it ends up not initializing. Additionally, I'm working on a templating system that creates all the VO objects, PHP objects, and a basic CRUD interface. It's crude now, but working for me. If you want to chat about it, IM me at mikecrowe (yahoo) or mike(a)mikeandkellycrowe(d)com (msn). Mike --- In flexcoders@yahoogroups.com, Kevin lists@ wrote: I am still having some problems using explicitType with PHP Flex. I am trying to send a basic Object back from PHP to flex and have it map to a VO. I think I have it all set up correctly, but I continue to get an error: IN FLEX VO UserDataVO.as [RemoteClass(com.onefoot.dbocl.services.vo.users.UserDataVO)] IN PHP VO UserDataVO.php var $_explicitType = com.onefoot.dbocl.services.vo.users.UserDataVO; SEND FROM PHP public function getUserInfo(){ /* retrieve session variables from server */ $User = new UserDataVO(); $User-fullName = Test User; $User-firstName = Test; $User-lastName = User; return $User; } RECEIVE IN FLEX from getUserInfo() call public function result(data:Object):void { var userData:UserDataVO = data.result; } ERROR Type Coercion failed: cannot convert mx.utils::[EMAIL PROTECTED] to com.onefoot.dbocl.vo.users.UserDataVO. Thanks for the help! - Kevin
[flexcoders] Re: amfphp + codeigniter
In regards to the Flickr question. You can go Flex straight to Flickr. I did a quick mashup a while back, its up on the flex cookbook site. You can find it here: http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetailspostId=1441productId=2 Renaun --- In flexcoders@yahoogroups.com, joshua gatcke [EMAIL PROTECTED] wrote: Has anyone ever created a Flex + PHP project using AMFPHP + Codeigniter? I have been trying to integrate the two with no luck. Or maybe I shouldn't integrate the two, the question then becomes: does anyone know how to consume webservices from external sources with amfphp? what I mean is, right now, with amfphp I have to point my remoteobject tag to amfphp/gateway.php sending the method I want to use etc. What if I wanted to use the remote object tag to access flickr? would I have to call the flickr webservice from an amfphp service and return the results to flex with amfphp, or is there a way to go from flex - flickr using amfphp? If the latter is possible, then I can just create xml-rpc web services in CI and serve them to flex. I am trying to create a flex application that people can download and install on their servers / host. That is why we are using PHP. I find it incredibly limiting to use mx:httpservices with rest style data exchange for my entire application, that is why I am trying to use amfphp. Do a lot of you guys use flex + php? if so, what sort of development approach do you take? THanks in advance for any help suggestions.
[flexcoders] Re: AS2 to AS3 - looping over loaded SWF
Hi, I have looked at Alex's distortion effects and it is quite impressive. However, I am not sure it does what I need, perhaps I am overlooking a method? What I am infact flipping are home floor plans... showing the reverse of the floor plan.(no animation ness.) This object is created dynamically, the user adds elements to it (other loaded swf's layered on top). So, a further explanation of what needs to be done is: to flip each mc of each loaded swf. I can just flip the whole Display Object Container however, there is text in these swf's. By flipping each mc of each swf the text reads properly. I have it working in Flash 8, which I am much better at, but in AS 3 in Flex.. another story..I just cannot figure out the new structure in AS3.. So, unless I missed something in Alex's distortion effects, I am back to looping thru my loaded swf's mc's...Could anyone point me in the right direction? Much appreciated, thank-you --- In flexcoders@yahoogroups.com, leds usop [EMAIL PROTECTED] wrote: have you tried alex's distortion effects? there are a lot of great flips you can implement from the samples alone. although im not sure if you will run into performance issues once you deal with several movieclips. Any insight on that guys? --- thibs73 [EMAIL PROTECTED] wrote: Hi there, I am trying to convert some AS2 code to AS3 with some difficulty... What I am trying to do is flip all nested MovieClips in a loaded SWF . I loaded a swf with SwfLoader, casted it as a MovieClip. I am now trying to loop thru the loaded SWF to flip all movie clips I've done this before in AS2 like this: for (var i in targetClip) { if (typeof targetClip[i] == movieclip){ targetClip[i].scaleX = targetClip[i].scaleX * -1 } } What properties of the SWF or MovieClip Object should I target for my loop. Or am I way off base? Any help, would be appreciated. Thanks in advance. __ __ Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. http://tools.search.yahoo.com/toolbar/features/mail/
[flexcoders] cairngorm event that will affect all models, where to put the logic.
Hey guys, have a cairngorm architecture question. I have a dashboard where various charts are based on a global date. I have my datemodel and commands etc that update the datemodel based on the date event being fired. What I also need to happen is if the date changes, I need to get fresh data for the charts, the charts are attached to models for their specific type of data. so when a date change occurs, i need to go and get the relevant data for the charts , which updates their models, I'm not sure where i should subscribe to this change of date since I don't want to make it chart specific. Should it be in the overall application controller, in the main.mxml file or what ? this event is more like a if the date changes referesh all the data for all the models Grant ... b l u e t u b e i n t e r a c t i v e. .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) [EMAIL PROTECTED] http://www.bluetube.com/bti http://www.bluetube.com/bti A Tribal Chicken Designs Affiliate http://www.tribalchicken.com/ attachment: small.jpg
[flexcoders] Re: observing a model change in cairngorm
Looks like you need to define a custom 'DataChange' event on your data model, and then listen for this event in your view classes and once event received redraw view based on new data. (something similar to ArrayCollection/DataGrid behavior - you can check ListCollectionView, see 'CollectionChange' event and then check DataGrid/ListBase.collectionChangeHandler() in Flex source code) regards, rd --- In flexcoders@yahoogroups.com, Grant Davies [EMAIL PROTECTED] wrote: Hi guys, I've got my view, model, commands and delegate all running and my view contains a chart. When the model changes for my chart data I need to work the data a little and can't just directly use the binding. do I 1) change my command to fire an event when the model has been updated 2) Is there some way I can observe a model change and then kick of my data work a little and not directly bind the chart to the model ? Grant ... b l u e t u b e i n t e r a c t i v e. .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) [EMAIL PROTECTED] http://www.bluetube.com/bti http://www.bluetube.com/bti A Tribal Chicken Designs Affiliate http://www.tribalchicken.com/