Re: [flexcoders] udefined property error without function
- Original Message - From: john fisher [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, November 11, 2008 1:39 AM Subject: [flexcoders] udefined property error without function context: an mxml app, with classes written by me ( Zdemos) and Flare classes. myCanvas is the id of a canvas in the flex part of the file and it works. I don't understand--- this compiles: public var myDemoClass:Zdemos ; public var myDataFilePath:String = http://.realdata2.xml; ; private function init(): void { myDemoClass = new Zdemos(myCanvas,myDataFilePath); myCanvas.addChild(myDemoClass.getUIComponent()); } this doesn't: public var myDemoClass:Zdemos ; public var myDataFilePath:String = http://.realdata2.xml; ; myDemoClass = new Zdemos(myCanvas,myDataFilePath); myCanvas.addChild(myDemoClass.getUIComponent()); Errors: access to undefined property myCanvas/myDemoClass/myDataFilepath You'll notice that in the error there's a mention of myDataFilepath not myDataFilePath in the error, so somewhere you've got the wrong variable name.. Paul thanks for help John -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Flex Book wish :)
Not exactly what you want, but worth a look: http://www.friendsofed.com/book.html?isbn=9781430210276 Actionscript design patterns: http://www.amazon.com/Advanced-ActionScript-3-Design-Patterns/dp/0321426568 , http://www.amazon.com/ActionScript-3-0-Design-Patterns-Programming/dp/0596528469 Paul - Original Message - From: Cato Paus [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, November 11, 2008 10:14 AM Subject: [flexcoders] Flex Book wish :) a wish book, which addresses the disign pattern and flex framework, that I had purchased on spot. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Re: AMFPHP and Value Objects
On 11/11/2008, at 2:03 PM, Amy wrote: --- In flexcoders@yahoogroups.com, Rich Rodecker [EMAIL PROTECTED] wrote: you definitely need the $_explicitType property in the php VOs. Yes, I'm trying to figure out ways to pry verification that that has been done out of the client ;-). That, and that the VO objects are in the services/vo/ folder. There is nothing you can do on the client side to make it return typed objects, so long as you actually have that type compiled into your application. Cheers, Nik
Re: [flexcoders] Problem with Flex form
Bruce, I don't know exactly why the resultHandler function is not called. I will try to call addEventListener before call send method of myContactService in sendMyData. You can get the result of PHP in event.result of resultHandler method. On Tue, Nov 11, 2008 at 2:22 AM, brucewhealton [EMAIL PROTECTED] wrote: Hello all, I have been unable to figure out why something simple is not happening in a form of mine. I have a form that does successfully take the user input and email it to us. However, for some reason, the Alert button that should give the user feedback is not working. It just hangs there when the user clicks on the submit button. I will need to share the code to get help with this. It is very basic and it does send the email message. I'll trim off extraneous appearance code that is not related to the actual logic of the form. So, we have the main application that has a Panel that calls the ContactFormComp (for ContactFormComponent)(leaving off the Application tag, of course: mx:Panel title=Contact Future Wave Designs forms:ContactFormComp id=MyContactForm/ /mx:Panel So, now we have the form component - this will be a bit longer, though still rather simple, but I don't know why it doesn't call the Alert function: ?xml version=1.0 encoding=utf-8? mx:Form xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ import mx.controls.Alert; import mx.rpc.events.FaultEvent; import mx.rpc.events.ResultEvent; private function sendMyData():void { var obj:Object = new Object(); obj.Name = Name.text; obj.email = email.text; obj.phone = phone.text; obj.message = message.text; myContactService.send(obj); myContactService.resultFormat = text; myContactService.addEventListener(ResultEvent.RESULT, resultHandler); myContactService.addEventListener(FaultEvent.FAULT, fault_handler); } private function resetForm(event:MouseEvent):void { Name.text = ; email.text = ; phone.text = ; message.text = ; } private function resultHandler(event:ResultEvent):void { Alert.show(Thank you! Your message has been emailed, Thank you!); } private function fault_handler():void { Alert.show(There was a problem., Problem Encountered); } ]] /mx:Script mx:HTTPService id=myContactService url=mail_sender.php method=POST result=resultHandler(event) resultFormat=text/ mx:Label text=Your Contact Information/ mx:FormItem label=Name: mx:TextInput id=Name width=200 / /mx:FormItem mx:FormItem label=Email: mx:TextInput id=email width=200/ /mx:FormItem mx:FormItem label=Phone Number: mx:TextInput id=phone width=200/ /mx:FormItem mx:FormItem label=Message: mx:TextArea id=message width=200/ /mx:FormItem mx:FormItem mx:Button label=Submit fontSize=16 click=sendMyData()/ /mx:FormItem mx:FormItem mx:Button label=Reset Form fontSize=16 click=resetForm(event)/ /mx:FormItem /mx:Form I don't know if there is a problem with my php code but it does email the form. In order to share that, I have the php code in a text file here: http://futurewavedesigns.com/ContactUs/mail_sender.php.txt You'll see it is basic. Please let me know if you see any error explaining why it doesn't get to the Alert message. thanks, and Here's an additional issue... If anyone knows php how would I send a message from the php form saying Ok or Fault. That is in the code but I am not sure how to send it back to Flex. Thanks Bruce -- Marco Catunda
[flexcoders] Re: AMFPHP and Value Objects
Does Charles (Or another HTTP Proxy) show typed objects being returned? Also, I don't know if there is a rule against extending other classes - I just have never tried it. These are meant to be value objects - ie. just values being passed around. Extending another class creates a completely new type of object that probably doesn't match what's being returned. --- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: Hi, all; I have some VO's that I've created to work with AMFPHP. When I call the service, I'm getting an array of untyped objects. Another developer on the project believes that the reason for the problem is that the objects extend EventDispatcher and because they have additional methods on them to work with the data. Is there a rule against either of these things with AMFPHP? Thanks; Amy
[flexcoders] Re: AdvancedDataGrid grouping name gets cut off if the first column is thin
Do you mean column spanning? If so, according to the docs at http://livedocs.adobe.com/flex/3/html/help.html?content=advdatagrid_10.html you can Span multiple columns with a renderer --- In flexcoders@yahoogroups.com, blc187 [EMAIL PROTECTED] wrote: Does anyone have any experience using AdvancedDataGrids? I would like the row that displays the folder and the grouping name to span the entire datagrid. For example, I have a data set that creates 3 groups titled Group 1, Group 2, Group 3. Each of these nodes has items underneath of it. I've noticed that the columns apply to the row with the folder and the group name, not just the items below each, so that if my group's name is long it gets ellipsed (...) if the first column is short. Is there any way I can extend this across the entire row. Does that make sense? I realize it's a bit of a tricky situation to explain...
[flexcoders] Http Service Issue -Urgent
Hi, Iam new Flex user. I have come across a peculiar problem.. I wanted a flex UI for an already existing java project. So I went about creating the UI in Adobe flex builder and i have servlet deployed on a server to which the front end has http service calls. When i run the mxml file from IDE itself it works just fine i.e http calls work and data from servlet retreieved properly..but when i go to the project forlder and just run the html file created there the http service call fails. Can anybody tell me the solution or may be what Iam doing was wrong. Also help regarding what all files need to be uploaded to my java project is welcome. Thanks in advance...
Re: [flexcoders] invalidateList or itemUpdated?
Ok. I finally solved it by defining a bindable global variable in the application and adding the following to the mxml of the item: borderColor={app.strongNodes.contains(data) ? COLOR_STRONG_NODE : COLOR_DEFAULT_NODE} Cheers, D. olme wrote: Hi, Did this solution work? I have done something similar for changing the border colors of the nodes of a graph but it does not work. I had an array as a globally scoped variable, and in the item renderer, if the item is in the array, then the border should be of one color, otherwise another. I made a local variable in the item bound to the array. However, when I change the array using the methods, it does not seem to trigger a refresh in the item renderers. I also tried to register for the PropertyChange event but it does not seem that it is ever raised. Thank you for the help. Haykel BEN JEMIA wrote: Binding showButton to Application.application.foo in the item renderer should do the trick. On Tue, Sep 23, 2008 at 2:21 AM, david.marr [EMAIL PROTECTED] wrote: Hi, I have an item renderer which checks an application scoped variable to determine whether to show a display object. When that variable changes, I need to make sure all the item renderers for the listbase object (datagrid) i am using are refreshed. What is the best way to do this? the pseudocode for my item renderer would be something like: if (Application.application.foo) { showButton = true; } else { showButton = false; } then in the Application, I need to somehow update the renderers: foo.val = true; what do i do here to get the item renderers to update? thanks! dave -- Haykel Ben Jemia Allmas Web RIA Development http://www.allmas-tn.com -- View this message in context: http://www.nabble.com/invalidateList-or-itemUpdated--tp19619359p20441351.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] Re: AMFPHP and Value Objects
AMFPHP and Zend_Amf are two different code bases. http://wadearnold.com/blog/?p=112 On Nov 11, 2008, at 9:35 AM, valdhor wrote: Are you using AMFPHP 1.9 or the new version included with Zend Framework 1.7?
[flexcoders] Re: AMFPHP and Value Objects
--- In flexcoders@yahoogroups.com, valdhor [EMAIL PROTECTED] wrote: Amy Are you using AMFPHP 1.9 or the new version included with Zend Framework 1.7? I believe they're using Sabre. Not sure if that answers your question.
[flexcoders] Re: AMFPHP and Value Objects
--- In flexcoders@yahoogroups.com, valdhor [EMAIL PROTECTED] wrote: Does Charles (Or another HTTP Proxy) show typed objects being returned? Also, I don't know if there is a rule against extending other classes - I just have never tried it. These are meant to be value objects - ie. just values being passed around. Extending another class creates a completely new type of object that probably doesn't match what's being returned. Hm, IMO an object that can't do any work or dispatch events is not useful. If necessary, I can loop through and copy the properties of the objects I'm getting back to my typed objects, but that kind of defeats the point, doesn't it? It's really frustrating how poorly documented this functionality is. Thanks; Amy
[flexcoders] Accessing properties of Embedded Flash SWFs from Flex 3
Hello All, The Flex docs aren't really clear on this, but I'm wondering if it's possible to EMBED a SWF written for Flash 9 into a Flex 3 application, and then access some properties on it, methods, and click events from it. Right now, I get an error: ReferenceError: Error #1069: Property foo_test not found on embedded_asset_object and there is no default value. I'm using mx:SWFLoader with an id of loadedSWF and some code that looks like: loadedSWFMainTimeline = loadedSWF.content; testProperty = loadedSWFMainTimeline.testProperty; Poof Error! I've also tried casting the loadedSWF.content to Objects and the dataClass (which wasn't right) loadedSWFMainTimeline = (loadedSWF.content as Object).dataClass; testProperty = loadedSWFMainTimeline.testProperty; Any ideas? The Flex documentation alludes that this won't work for SWFs compiled to Flash Player 8 or earlier, but doesn't really mention, nor have samples for FP 9+
[flexcoders] Re: AMFPHP and Value Objects
SabreAMF is a completely different beast to AMFPHP. I have not tried SabreAMF (http://osflash.org/sabreamf). If it was WebORB, AMFPHP or Zend_AMF then I'd be your man ;-} So, what were the results with Charles? --- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, valdhor stevedepp@ wrote: Amy Are you using AMFPHP 1.9 or the new version included with Zend Framework 1.7? I believe they're using Sabre. Not sure if that answers your question.
[flexcoders] Re: Graphical skins and subclasses of UIComponent
--- In flexcoders@yahoogroups.com, Josh Ettwein [EMAIL PROTECTED] wrote: I'll try to keep this as simple of an example as possible. Here's the scenario: I have a Button class that extends UIComponent. If I specify a Button declaration in an external CSS file, and specify the overSkin, upSkin and downSkin for it, the Button will accept that and apply the style. No problem. However, if I create another ui element, PlayPauseButton that extends Button, and attach that to my app, this subclassed component PlayPauseButton does not pick up the style. Also, adding an explicit declaration in the stylesheet for PlayPauseButton does not work. Note that these components do not have any MXML associated with them. They are attached to the base application with actionscript. These classes also have some drawing api stuff in them (but do not extend programmaticskin), and I'd like to make them be able to take graphics as the assets. Any thoughts? I've searched high and low on the web for something useful on this, but all I can find are tutorials that show how to do with with the built-in UI components. Not helpful. Is your PlayPauseButton inside a List-based component?
[flexcoders] Re: Skins and filters
--- In flexcoders@yahoogroups.com, Sceneshift [EMAIL PROTECTED] wrote: I want to apply a filter to the labels on all my buttons. I have a custom programmatic skin setup for my button, is there a way I can access to label attached to the button component in order to apply a skin to it. If you set the blendMode on the label to layer any filters you apply to the component should apply to it as well. HTH; Amy
[flexcoders] Re: AMFPHP and Value Objects
SabreAMF - How to map PHP data to Flash classes http://code.google.com/p/sabreamf/wiki/ClassMapping --- In flexcoders@yahoogroups.com, valdhor [EMAIL PROTECTED] wrote: SabreAMF is a completely different beast to AMFPHP. I have not tried SabreAMF (http://osflash.org/sabreamf). If it was WebORB, AMFPHP or Zend_AMF then I'd be your man ;-} So, what were the results with Charles? --- In flexcoders@yahoogroups.com, Amy amyblankenship@ wrote: --- In flexcoders@yahoogroups.com, valdhor stevedepp@ wrote: Amy Are you using AMFPHP 1.9 or the new version included with Zend Framework 1.7? I believe they're using Sabre. Not sure if that answers your question.
[flexcoders] Re: Accessing properties of Embedded Flash SWFs from Flex 3
I should also say that all works well when the SWF is dynamically loaded at runtime. It's only when embedded into the application that it fails. --- In flexcoders@yahoogroups.com, Todd [EMAIL PROTECTED] wrote: Hello All, The Flex docs aren't really clear on this, but I'm wondering if it's possible to EMBED a SWF written for Flash 9 into a Flex 3 application, and then access some properties on it, methods, and click events from it. Right now, I get an error: ReferenceError: Error #1069: Property foo_test not found on embedded_asset_object and there is no default value. I'm using mx:SWFLoader with an id of loadedSWF and some code that looks like: loadedSWFMainTimeline = loadedSWF.content; testProperty = loadedSWFMainTimeline.testProperty; Poof Error! I've also tried casting the loadedSWF.content to Objects and the dataClass (which wasn't right) loadedSWFMainTimeline = (loadedSWF.content as Object).dataClass; testProperty = loadedSWFMainTimeline.testProperty; Any ideas? The Flex documentation alludes that this won't work for SWFs compiled to Flash Player 8 or earlier, but doesn't really mention, nor have samples for FP 9+
[flexcoders] RemoteObject with synchronous call
Hi friends, I want to make a synchronous call to remote server from ActionAcript using RemoteObject RPC call. Pls help me. Thanks in advance.
[flexcoders] Re: Sorting XMLListCollection based on node value
Thanks! --- In flexcoders@yahoogroups.com, valdhor [EMAIL PROTECTED] wrote: You have to apply the sort to the ListCollection: var s:Sort = new Sort(); s.fields = [new SortField(DisplayName)]; myXMLListCollection.sort = s; myXMLListCollection.refresh(); --- In flexcoders@yahoogroups.com, flexcoder2008 djohnson29@ wrote: I have an XMLListCollection that I want to sort based on a particular node value. All of the examples I have seen show sorting by XML attribute. My xml is in the following format: Employee FirstNameWilliam/FirstName LastNameJackson/LastName DisplayNameBob Jackson/DisplayName /Employee I want to sort items by the DisplayName node, which will show up in a List control. Here's the code I've attempted (not working) var s:Sort = new Sort(); s.fields = [new SortField(DisplayName)]; myXMLListCollection.refresh(); How do I sort based on a particular XML node?
[flexcoders] Re: AMFPHP and Value Objects
--- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: Hi, all; I have some VO's that I've created to work with AMFPHP. When I call the service, I'm getting an array of untyped objects. Another developer on the project believes that the reason for the problem is that the objects extend EventDispatcher and because they have additional methods on them to work with the data. Is there a rule against either of these things with AMFPHP? Just for the record, this is now working, with the additional methods in place. I rechecked the alias and changed it to not extend EventDispatcher, and one or both of these worked. So, yes, you can have additional methods on typed objects that need to originate with a RemoteObject. The jury is still out on EventDispatcher. Thanks to all who contributed to my understanding of what was going on here!!!
[flexcoders] How to mask scrolling errorTips
Hi, I have a screen where I use the ToolTip manager to create error tips that stay on the screen. However, when the screen is scrolled, the error tips scroll on out of the viewing area, while the text input they are next to is masked by something. My question is how can I apply a mask (if that is the right thing), so that the tool tips will be hidden in a smooth way, like the text inputs. I've tried assigning a displayObject to the mask property of the tooltip, but it isn't masking properly. It hides everything on the screen but the tooltip. So, for example, if I have a VBox that contains 10 TextInput fields, if the first one has a manual error tip next to it, when I scroll the text input field goes away, but the error tip just slide up over other things. Thanks, John
[flexcoders] Re: Accessing properties of Embedded Flash SWFs from Flex 3
OK, a little more research tells me that the Flex compiler strips out all timeline code from the embedded Flash timeline. So, now my question becomes: How do I expose a property from FLASH that is accessible from Flex? --- In flexcoders@yahoogroups.com, Todd [EMAIL PROTECTED] wrote: Hello All, The Flex docs aren't really clear on this, but I'm wondering if it's possible to EMBED a SWF written for Flash 9 into a Flex 3 application, and then access some properties on it, methods, and click events from it. Right now, I get an error: ReferenceError: Error #1069: Property foo_test not found on embedded_asset_object and there is no default value. I'm using mx:SWFLoader with an id of loadedSWF and some code that looks like: loadedSWFMainTimeline = loadedSWF.content; testProperty = loadedSWFMainTimeline.testProperty; Poof Error! I've also tried casting the loadedSWF.content to Objects and the dataClass (which wasn't right) loadedSWFMainTimeline = (loadedSWF.content as Object).dataClass; testProperty = loadedSWFMainTimeline.testProperty; Any ideas? The Flex documentation alludes that this won't work for SWFs compiled to Flash Player 8 or earlier, but doesn't really mention, nor have samples for FP 9+
RE: [flexcoders] Re: Accessing properties of Embedded Flash SWFs from Flex 3
Hi, You can use Flex Component Kit to create contents from Flash which can be used as components in Flex Take a look at this link http://blog.flexexamples.com/2007/09/02/installing-the-flex-component-kit-fo r-flash-cs3/ Subeesh From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Todd Sent: Tuesday, November 11, 2008 10:40 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Accessing properties of Embedded Flash SWFs from Flex 3 OK, a little more research tells me that the Flex compiler strips out all timeline code from the embedded Flash timeline. So, now my question becomes: How do I expose a property from FLASH that is accessible from Flex? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Todd [EMAIL PROTECTED] wrote: Hello All, The Flex docs aren't really clear on this, but I'm wondering if it's possible to EMBED a SWF written for Flash 9 into a Flex 3 application, and then access some properties on it, methods, and click events from it. Right now, I get an error: ReferenceError: Error #1069: Property foo_test not found on embedded_asset_object and there is no default value. I'm using mx:SWFLoader with an id of loadedSWF and some code that looks like: loadedSWFMainTimeline = loadedSWF.content; testProperty = loadedSWFMainTimeline.testProperty; Poof Error! I've also tried casting the loadedSWF.content to Objects and the dataClass (which wasn't right) loadedSWFMainTimeline = (loadedSWF.content as Object).dataClass; testProperty = loadedSWFMainTimeline.testProperty; Any ideas? The Flex documentation alludes that this won't work for SWFs compiled to Flash Player 8 or earlier, but doesn't really mention, nor have samples for FP 9+
[flexcoders] Re: Accessing properties of Embedded Flash SWFs from Flex 3
--- In flexcoders@yahoogroups.com, Todd [EMAIL PROTECTED] wrote: OK, a little more research tells me that the Flex compiler strips out all timeline code from the embedded Flash timeline. So, now my question becomes: How do I expose a property from FLASH that is accessible from Flex? I know you've already gotten an answer about the Component Kit, but I think if you're not doing anything complex, you can just embed the symbol from the library. I believe that does respect the timeline code. http://livedocs.adobe.com/flex/3/html/embed_4.html
Re: [flexcoders] Flex3/AIR book recommendation?
Henry, Training From the Source is a good first Flex book for most people. -Mike Chabot On Mon, Nov 10, 2008 at 8:00 PM, henryhokinhang [EMAIL PROTECTED] wrote: Flex3/AIR book recommendation? I searched on amazon but I don't know which one's good.
Re: [flexcoders] udefined property error without function
public var myDemoClass:Zdemos ; public var myDataFilePath:String = http://.realdata2.xml; ; myDemoClass = new Zdemos(myCanvas,myDataFilePath); myCanvas.addChild(myDemoClass.getUIComponent()); Are you trying to call addChild in the class itself? In your first example (that is working) addchild is called inside a method In the second example (not working) the code is in no method... On Tue, Nov 11, 2008 at 7:25 PM, john fisher [EMAIL PROTECTED] wrote: oh %^$ thats what I get for typing anything instead of cutpaste! sorrybut The *actual* error has the capital P so unfortunately its not this simple pilot error, though I am not ruling out some other dumb pilot error any other idea? Paul Andrews wrote: - You'll notice that in the error there's a mention of myDataFilepath not myDataFilePath in the error, so somewhere you've got the wrong variable name.. Paul -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
[flexcoders] Graceful handling of server timeout
I have a flex client that makes service calls to a tomcat server running BlazeDS. I would like to gracefully handle server session timeouts in this environment. I do have security constraints on the service, so the client authenticates against a remote object by initializing a ChannelSet based on the destination, and then logging in using that ChannelSet. After the user is authenticated, if they go get a (long) cup of coffee, their session will inevitably time out. I would like the client to detect the timeout, and return the user back to the login page, with the appropriate informational messages. But I am having difficulty finding the best way to detect this timeout from the client. Is it possible, or must I have the server throw an error when the timeout occurs? Thanks!
[flexcoders] Re: Accessing properties of Embedded Flash SWFs from Flex 3
The symbol that I'm trying to get out of Flash is a global Array defenition, so I'm not sure it's working. I did try embedding the name of the public global array as a seperate embed. I'm not too interested in the Flex Component Kit for Flash, as this component is already written. My main goal is just accessesing the global flash variable from within Flex. --- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Todd tprekaski@ wrote: OK, a little more research tells me that the Flex compiler strips out all timeline code from the embedded Flash timeline. So, now my question becomes: How do I expose a property from FLASH that is accessible from Flex? I know you've already gotten an answer about the Component Kit, but I think if you're not doing anything complex, you can just embed the symbol from the library. I believe that does respect the timeline code. http://livedocs.adobe.com/flex/3/html/embed_4.html
[flexcoders] sailorsea21 - How can I replace certain values in my array with my HTTPService?
Hi everyone, I have 2 HTTPServices that populate my array: [Bindable] public var ArrayStats:ArrayCollection = new ArrayCollection; [Bindable] private var XMLStats:XML; private function get(event:ResultEvent):void { XMLStats = event.result as XML; for each(var ourxml:XML in XMLStats.elements() ) ArrayStats.addItem (ourxml); } mx:HTTPService url=test001.php useProxy=false method=POST id=test001 resultFormat=e4x result=get(event); test002.send()/ mx:HTTPService url=test002.php useProxy=false method=POST id=test002 resultFormat=e4x result=get(event)/ My array is displayed as a Column Chart. How can I simply resend my first HTTPService and update the info that was previously set in the array. I tried an option to remove all the data in my array and resend both my HTTPService. It works but I would rather just update the first HTTPService... I do not want my full graph to be refreshed. I would like to have the columns from the 1st HTTPService updated. Thanks. -David
Re: [flexcoders] udefined property error without function
- Original Message - From: john fisher [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, November 11, 2008 5:25 PM Subject: Re: [flexcoders] udefined property error without function oh %^$ thats what I get for typing anything instead of cutpaste! sorrybut The *actual* error has the capital P so unfortunately its not this simple pilot error, though I am not ruling out some other dumb pilot error any other idea? The problem is that these code snuippets are losing the context in which they sit. What looks reasonable as a snippet may have the wrong context. Does your error have a line number and exactly which line does it refer to? I have a feeling this error may not be to do with these particular snippets. Paul Paul Andrews wrote: - You'll notice that in the error there's a mention of myDataFilepath not myDataFilePath in the error, so somewhere you've got the wrong variable name.. Paul -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] udefined property error without function
I am calling addChild inside the mx script section of a mxml file. If it has to be called inside a method, then I need some instruction. JF Fotis Chatzinikos wrote: public var myDemoClass:Zdemos ; public var myDataFilePath:String = http://.realdata2.xml; ; myDemoClass = new Zdemos(myCanvas,myDataFilePath); myCanvas.addChild(myDemoClass.getUIComponent()); Are you trying to call addChild in the class itself? In your first example (that is working) addchild is called inside a method In the second example (not working) the code is in no method...
Re: [flexcoders] udefined property error without function
- Original Message - From: john fisher [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, November 11, 2008 6:24 PM Subject: Re: [flexcoders] udefined property error without function I am calling addChild inside the mx script section of a mxml file. If it has to be called inside a method, then I need some instruction. in an mxml file all code must be in a method (or an event handler). Basically define a function and use an event to call it. For an application creationComplete should most likely do the trick for you. Check out the docs. Paul JF Fotis Chatzinikos wrote: public var myDemoClass:Zdemos ; public var myDataFilePath:String = http://.realdata2.xml; ; myDemoClass = new Zdemos(myCanvas,myDataFilePath); myCanvas.addChild(myDemoClass.getUIComponent()); Are you trying to call addChild in the class itself? In your first example (that is working) addchild is called inside a method In the second example (not working) the code is in no method... -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] udefined property error without function
oh %^$ thats what I get for typing anything instead of cutpaste! sorrybut The *actual* error has the capital P so unfortunately its not this simple pilot error, though I am not ruling out some other dumb pilot error any other idea? Paul Andrews wrote: - You'll notice that in the error there's a mention of myDataFilepath not myDataFilePath in the error, so somewhere you've got the wrong variable name.. Paul
[flexcoders] Re: AdvancedDataGrid grouping name gets cut off if the first column is thin
I'm afraid I don't have the Pro version of Flex (No Advanced Data Grid and no Data Visualization) so I'll have to leave further discussion to someone who does. Sorry I can't be more help. --- In flexcoders@yahoogroups.com, blc187 [EMAIL PROTECTED] wrote: Yes, I do mean spanning multiple columns. And I am using column renderers and renderer providers. But I'd like to be able to span multiple columns in the row that is the group folder, not just the individual item rows. --- In flexcoders@yahoogroups.com, valdhor stevedepp@ wrote: Do you mean column spanning? If so, according to the docs at http://livedocs.adobe.com/flex/3/html/help.html? content=advdatagrid_10.html you can Span multiple columns with a renderer --- In flexcoders@yahoogroups.com, blc187 blc187@ wrote: Does anyone have any experience using AdvancedDataGrids? I would like the row that displays the folder and the grouping name to span the entire datagrid. For example, I have a data set that creates 3 groups titled Group 1, Group 2, Group 3. Each of these nodes has items underneath of it. I've noticed that the columns apply to the row with the folder and the group name, not just the items below each, so that if my group's name is long it gets ellipsed (...) if the first column is short. Is there any way I can extend this across the entire row. Does that make sense? I realize it's a bit of a tricky situation to explain...
[flexcoders] Re: AMFPHP and Value Objects
--- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, valdhor stevedepp@ wrote: SabreAMF is a completely different beast to AMFPHP. I have not tried SabreAMF (http://osflash.org/sabreamf). If it was WebORB, AMFPHP or Zend_AMF then I'd be your man ;-} Well my husband's name IS Steve LOL ;-). You obviously have great taste then ;-}
Re: [flexcoders] Re: Accessing properties of Embedded Flash SWFs from Flex 3
hm, it seems that when embeded the compiler does not have enough info to see if your variable is there or not (you mention that loading the swf dynamically works)... I remember reading somewhere in this forum that there is a compiler flag that makes things less strict and your error would get away, but... never used it myself cannot remember the setting search the forum or google for it On Tue, Nov 11, 2008 at 8:10 PM, Todd [EMAIL PROTECTED] wrote: The symbol that I'm trying to get out of Flash is a global Array defenition, so I'm not sure it's working. I did try embedding the name of the public global array as a seperate embed. I'm not too interested in the Flex Component Kit for Flash, as this component is already written. My main goal is just accessesing the global flash variable from within Flex. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Todd tprekaski@ wrote: OK, a little more research tells me that the Flex compiler strips out all timeline code from the embedded Flash timeline. So, now my question becomes: How do I expose a property from FLASH that is accessible from Flex? I know you've already gotten an answer about the Component Kit, but I think if you're not doing anything complex, you can just embed the symbol from the library. I believe that does respect the timeline code. http://livedocs.adobe.com/flex/3/html/embed_4.html -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
[flexcoders] bug or feature (or am i doing something wrong)?
Hi, I am using ObjectUtil.copy to deep copy an object. The following code works: (note the call to new) var catTreeLocalToFiltered:CategoryTree = new CategoryTree() ; catTreeLocalToFiltered = ObjectUtil.copy(categoriesTree) as CategoryTree ; The problem is that the following code DOES NOT WORK:(note the absense of new) var catTreeLocalToFiltered:CategoryTree = ObjectUtil.copy(categoriesTree) as CategoryTree ; Actually it semi works. The first time catTreeLocalToFiltered is the same as categoriesTree. The second time catTreeLocalToFiltered does not become equal to categoriesTree but becomes equal to itself as it was after the first call. Are bytes cached for local variables if new is not explicitly used? Anybody from Adobe? PS: All this was checked/found out in the debugger stepping throught the code line by line... Thanks, Fotis
[flexcoders] TreeItemRenderer setting an icon to an embedded image
What is the proper way to set the icon from a TreeItemRenderer when using an embeded graphic file? I don't want to accidentally create hundreds of instances of it in memory. TreeItemRenderer.icon is an instance of IFlexDisplayObject which is implemented by BitmapDataAsset (the embedded graphic class). When I do the following: public class MyTreeItemRenderer extends TreeItemRenderer { [Embed(source=../../assets/test.jpg)] public var testIcon:Class; public function MyTrereItemRenderer() { super(); } // Override the updateDisplayList() method // to set the text for each tree node. override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); this.icon = new studentIcon(); } } I get this RTE: ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller. at flash.display::DisplayObjectContainer/removeChild() at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$remo veChild() at mx.core::UIComponent/removeChild() at mx.controls.treeClasses::TreeItemRenderer/commitProperties() at mx.core::UIComponent/validateProperties() at mx.managers::LayoutManager/validateClient() at mx.controls::List/makeRowsAndColumns() at mx.controls.listClasses::ListBase/makeRowsAndColumnsWithExtraRows() at mx.controls.listClasses::ListBase/updateDisplayList() at mx.controls::List/updateDisplayList() I can't seem to find a good example of a TreeItemRenderer on the web that uses the icon field to control the icon. Dave
[flexcoders] Re: Accessing properties of Embedded Flash SWFs from Flex 3
From my readings around the web, the Flex compiler strips all timeline information from the SWF when embedding. I now have found a suggested workaround over at Grant Skinner's Blog, however, it's dependent upon all the code written on the timeline being put into a Class (this is how I interpreted the workaround). I'm going to look into probably using the Flash Component Tooklkit for Flex and seeing if the dev can wrap up the Flash stuff into a component and seeing where to go from there. --- In flexcoders@yahoogroups.com, Fotis Chatzinikos [EMAIL PROTECTED] wrote: hm, it seems that when embeded the compiler does not have enough info to see if your variable is there or not (you mention that loading the swf dynamically works)... I remember reading somewhere in this forum that there is a compiler flag that makes things less strict and your error would get away, but... never used it myself cannot remember the setting search the forum or google for it On Tue, Nov 11, 2008 at 8:10 PM, Todd [EMAIL PROTECTED] wrote: The symbol that I'm trying to get out of Flash is a global Array defenition, so I'm not sure it's working. I did try embedding the name of the public global array as a seperate embed. I'm not too interested in the Flex Component Kit for Flash, as this component is already written. My main goal is just accessesing the global flash variable from within Flex. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Amy amyblankenship@ wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Todd tprekaski@ wrote: OK, a little more research tells me that the Flex compiler strips out all timeline code from the embedded Flash timeline. So, now my question becomes: How do I expose a property from FLASH that is accessible from Flex? I know you've already gotten an answer about the Component Kit, but I think if you're not doing anything complex, you can just embed the symbol from the library. I believe that does respect the timeline code. http://livedocs.adobe.com/flex/3/html/embed_4.html -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
Re: [flexcoders] Reloading creation complete or another way...
You can use the 'show' event - it is dispatched every time the component becomes visible. It should work for you although I haven't tested it. Sefi On Thu, Nov 6, 2008 at 11:53 PM, wkolcz [EMAIL PROTECTED] wrote: Thanks, already figured it out. -- *From*: Tracy Spratt [EMAIL PROTECTED] *Sent*: Thursday, November 06, 2008 1:49 PM *To*: flexcoders@yahoogroups.com *Subject*: RE: [flexcoders] Reloading creation complete or another way... Implement the public ID property using a setter function. Kick off your initialization from that setter. Tracy -- *From:[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *wkolcz *Sent:* Thursday, November 06, 2008 3:32 PM *To:[EMAIL PROTECTED] *Subject:* [flexcoders] Reloading creation complete or another way... I have a number of pop up windows that take passed ID's to grab information and display it. I am doing it through and initApp() in the creationComplete. However I notices that if you spawn another one, the initApp doesn't load since the component is already loaded into the system. Is there another place to put a initApp function that will reload the info each time the component TitleWindow is loaded or a event that dies when the window closes using PopUpManager.removePopUp(this)
Re: [flexcoders] AMFPHP and Value Objects
Alan, Just to complement... I'm used VO (AMFPHP approach) with a lot of method with no problem. These VOs have the same face as above. On Mon, Nov 10, 2008 at 9:39 PM, Alan [EMAIL PROTECTED] wrote: On my last AMFPHP project my PHP and Flex VOs were: package com.mydomain { [Bindable] [RemoteClass(alias=UserVO)] public class UserVO { public var id :int; public var username :String; public var password :String; public var last_login :String; public var user_id :int; public var usertype_id :int; public var project_id :int; public function UserVO() { } } } PHP /// ?php class UserVO { var $id; var $username; var $password; var $last_login; var $user_id; var $usertype_id; var $project_id; // explicit actionscript package var $_explicitType = UserVO; } ? On Nov 10, 2008, at 6:07 PM, Fotis Chatzinikos wrote: Might be completly irrelevant (have not used AMFPHP) but are you using Remote class Metas? -- Marco Catunda
[flexcoders] Re: Help on sorting an ArrayCollection then adding an item to the top
Perfect, that did the trick... thanks -M --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Yes, that wording does make a difference. You can look into using a sortCompare function. Or, you can hack it by adding the item to the collection, but in addition add an additional property to all of the items in the collection, like sortIndex; that will be used to sort the reset item at the top and then the regular items. Assign 0 to Select All' and 1 to all of the regular items. Then add another sort field to the collecton's sort so it sorts the sortIndex first and then the title: var sort:Sort = new Sort(); sort.fields = []; sort.fields.push(new SortField(sortIndex, true, false, true)); sort.fields.push(new SortField(title,true)); nameCollection.sort = sort; nameCollection.refresh(); // // add new item to the top // var sItem:Object = new Object; sItem = {sortIndex:0, title:Select One}; nameCollection.addItemAt(sItem,0); // you'll have to change the other objects in the collection to have the sortIndex property and set them all to 1. -TH --- In flexcoders@yahoogroups.com, Mark markp.shopping_id@ wrote: Thanks, but as soon as you make a choice from the comboBox you can't select it again as a default. And maybe Select One is the wrong wording for what I'm doing here... Select All would be a better choice of words. --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: mx:ComboBox prompt=Select One/ -TH --- In flexcoders@yahoogroups.com, Mark markp.shopping_id@ wrote: Thanks for the quick reply Ralf, but I have no idea how to do either of what you suggested. Would you know of any examples you can point me to? Thanks, Mark --- In flexcoders@yahoogroups.com, Ralf Bokelberg ralf.bokelberg@ wrote: You can provide your own sort function, which sorts your special entry at the top. Alternatively you can use the prompt propertyof the combobox. It is shown if the selectedIndex is set to -1 Cheers, Ralf. On Sat, Nov 8, 2008 at 3:07 PM, Mark markp.shopping_id@ wrote: I'm trying to sort an arrayCollection that is the dataProvider for a comboBox. But I also need to add an item to the top of the list Select One. Everything I've tried always sorts that object as well. Is there a way to exclude something from a sort or am I just doing this completly wrong? Here's what I have? var sort:Sort = new Sort(); sort.fields = []; sort.fields.push(new SortField(title,true)); nameCollection.sort = sort; nameCollection.refresh(); // // add new item to the top // var sItem:Object = new Object; sItem = {title:Select One}; nameCollection.addItemAt(sItem,0); //nameCollection.refresh(); Thank You, Mark
Re: [flexcoders] Re: Debugging: general advice
ah, I did not grok that trace() would work with all classes, d'oh, I'll have to get trace working. I used my own before, but of course it doesn't work outside the main mxml code. thanks Amy wrote: - I use trace() when it _is_ in the browser,
Re: [flexcoders] udefined property error without function
stick an init method or something like that... The script tag translates to class scope you can see that from the import statements and so on... on the component you want add a creationComplete=initme and then in initme put the code that you want On Tue, Nov 11, 2008 at 8:24 PM, john fisher [EMAIL PROTECTED] wrote: I am calling addChild inside the mx script section of a mxml file. If it has to be called inside a method, then I need some instruction. JF Fotis Chatzinikos wrote: public var myDemoClass:Zdemos ; public var myDataFilePath:String = http://.realdata2.xml; ; myDemoClass = new Zdemos(myCanvas,myDataFilePath); myCanvas.addChild(myDemoClass.getUIComponent()); Are you trying to call addChild in the class itself? In your first example (that is working) addchild is called inside a method In the second example (not working) the code is in no method... -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
[flexcoders] Skins and filters
I want to apply a filter to the labels on all my buttons. I have a custom programmatic skin setup for my button, is there a way I can access to label attached to the button component in order to apply a skin to it. -- View this message in context: http://www.nabble.com/Skins-and-filters-tp20440540p20440540.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] Re: Flex Book wish :)
- Original Message - From: Cato Paus [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, November 11, 2008 11:18 AM Subject: [flexcoders] Re: Flex Book wish :) Hi I have two action script books and thay are great, but to apply it to the flex framework is a another case :) Flex frameworks are just combinations of common patterns brought together to form a framework. Advanced Flex 3 discusses various flex frameworks and the author proposes his own. There's already quite a lot out there about the various frameworks, so I'm not quite sure what it is you're exactly asking for. Essentially most Flex frameworks are variants on the MVC pattern and include other design patterns such as the observer, singleton, factory.. All of this stuff takes some getting used to - it just takes time (and mistakes). One thing is sure - there is no one 'right way' to do things and there sure are a lot more 'wrong ways' to do things! Paul --- In flexcoders@yahoogroups.com, Paul Andrews [EMAIL PROTECTED] wrote: Not exactly what you want, but worth a look: http://www.friendsofed.com/book.html?isbn=9781430210276 Actionscript design patterns: http://www.amazon.com/Advanced-ActionScript-3-Design-Patterns/dp/0321426568 , http://www.amazon.com/ActionScript-3-0-Design-Patterns-Programming/dp/0596528469 Paul - Original Message - From: Cato Paus [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, November 11, 2008 10:14 AM Subject: [flexcoders] Flex Book wish :) a wish book, which addresses the disign pattern and flex framework, that I had purchased on spot. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: AMFPHP and Value Objects
--- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, valdhor stevedepp@ wrote: Does Charles (Or another HTTP Proxy) show typed objects being returned? Also, I don't know if there is a rule against extending other classes - I just have never tried it. These are meant to be value objects - ie. just values being passed around. Extending another class creates a completely new type of object that probably doesn't match what's being returned. Hm, IMO an object that can't do any work or dispatch events is not useful. If necessary, I can loop through and copy the properties of the objects I'm getting back to my typed objects, but that kind of defeats the point, doesn't it? It's really frustrating how poorly documented this functionality is. Yes, it does take a while to figure it out. One day, I am going to have to write a tutorial ;-} A value object (Or Data Transfer Object) is just that. Flex and the server side code serialize the data and send it in a binary format. As each platform is different it would not make sense to serialize methods. The best idea I have found is to create a class that has a VO as one of it's members. Then you have all of the methods in this class.
[flexcoders] Re: Debugging: general advice
--- In flexcoders@yahoogroups.com, john fisher [EMAIL PROTECTED] wrote: I read a thread from a few weeks ago, and Amy was using Alert to debug in the browser. So am I, and its moderately successful, but I wonder if there is a better way? I: linux, eclipse, flex builder Actually, I was using Alert because I was NOT in the browser--it was in the Flash Player ActiveX control inside an application. The problem was that some interaction between the styles I was using and a Text control was hosing the display list (and I never got to the bottom of it--I just switched to TextArea), so Alert was failing to come up. I use trace() when it _is_ in the browser, but in this case it wasn't possible. I think debugging Flex is an art form--you learn how to place your break points so as to avoid the horrible trap in UIComponent where step over and step out stop working. HTH; Amy
Re: [flexcoders] Re: AMFPHP and Value Objects
you can have additional methods on an object you are mapping, the methods don't get serialized, only the public properties. On Tue, Nov 11, 2008 at 8:47 AM, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Amy [EMAIL PROTECTED] wrote: Hi, all; I have some VO's that I've created to work with AMFPHP. When I call the service, I'm getting an array of untyped objects. Another developer on the project believes that the reason for the problem is that the objects extend EventDispatcher and because they have additional methods on them to work with the data. Is there a rule against either of these things with AMFPHP? Just for the record, this is now working, with the additional methods in place. I rechecked the alias and changed it to not extend EventDispatcher, and one or both of these worked. So, yes, you can have additional methods on typed objects that need to originate with a RemoteObject. The jury is still out on EventDispatcher. Thanks to all who contributed to my understanding of what was going on here!!!
[flexcoders] Re: AMFPHP and Value Objects
--- In flexcoders@yahoogroups.com, valdhor [EMAIL PROTECTED] wrote: SabreAMF is a completely different beast to AMFPHP. I have not tried SabreAMF (http://osflash.org/sabreamf). If it was WebORB, AMFPHP or Zend_AMF then I'd be your man ;-} Well my husband's name IS Steve LOL ;-).
Re: [flexcoders] Flex form components
On Tue, Nov 11, 2008 at 2:12 AM, brucewhealton [EMAIL PROTECTED]wrote: First question, if I wanted to let the user select more than one item, what control would I use instead of the ComboBox that allows selection of only one item? I'd use a list instead of a comboBox. Next, taking the ComboBox as an example, I could use help figuring out how to pass the item selected by the user to the Object named obj so that it can be passed to the php form processor. How do I access what the user selected? Similarly, if I used a control that allowed for selection of more than one item in a list, how would I access the items selected by the user? What you want to do is create an event handler for the change event on the list. This will fire whenever someone clicks an item in the list. In the event handler you want to look at the selected* properties (selectedItem, selectedItems, selectedIndex, selectedIndices). These will tell you what the user has selected in the list. At that point you can send them immediately to your PHP script or set a local variable with their value until someone hits a submit type button, or whatever happens before you send the values. -- Howard Fore, [EMAIL PROTECTED] The universe tends toward maximum irony. Don't push it. - Jeff Atwood
Re: [flexcoders] invalidateList or itemUpdated?
Hi, Did this solution work? I have done something similar for changing the border colors of the nodes of a graph but it does not work. I had an array as a globally scoped variable, and in the item renderer, if the item is in the array, then the border should be of one color, otherwise another. I made a local variable in the item bound to the array. However, when I change the array using the methods, it does not seem to trigger a refresh in the item renderers. I also tried to register for the PropertyChange event but it does not seem that it is ever raised. Thank you for the help. Haykel BEN JEMIA wrote: Binding showButton to Application.application.foo in the item renderer should do the trick. On Tue, Sep 23, 2008 at 2:21 AM, david.marr [EMAIL PROTECTED] wrote: Hi, I have an item renderer which checks an application scoped variable to determine whether to show a display object. When that variable changes, I need to make sure all the item renderers for the listbase object (datagrid) i am using are refreshed. What is the best way to do this? the pseudocode for my item renderer would be something like: if (Application.application.foo) { showButton = true; } else { showButton = false; } then in the Application, I need to somehow update the renderers: foo.val = true; what do i do here to get the item renderers to update? thanks! dave -- Haykel Ben Jemia Allmas Web RIA Development http://www.allmas-tn.com -- View this message in context: http://www.nabble.com/invalidateList-or-itemUpdated--tp19619359p20434414.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Calling executeBindings makes ADG appears as if there are no selected items
I assigned a bindable hierarchical data to ADG's data provider. Somewhere else in the application, I modified the contents of ADG by updating part of the data in the hierarchical data. For example, a few children nodes are moved under another parent node. The contents of ADG did not get updated correctly. The nodes that were supposed to be moved also appear under the original parent node. This problem was fixed by calling executeBindings method that came with ADG class. However, this introduced a minor problem. The selected item in ADG now appears to be unselected. I know that the item is actually selected, but the selection is not visible, because I can still programmatically make the selected item expand its children. Has anyone experience this, and know a workaround? Thank you in advance.
[flexcoders] Re: AMFPHP and Value Objects
Amy Are you using AMFPHP 1.9 or the new version included with Zend Framework 1.7? --- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: Hi, all; I have some VO's that I've created to work with AMFPHP. When I call the service, I'm getting an array of untyped objects. Another developer on the project believes that the reason for the problem is that the objects extend EventDispatcher and because they have additional methods on them to work with the data. Is there a rule against either of these things with AMFPHP? Thanks; Amy
[flexcoders] Re: AdvancedDataGrid grouping name gets cut off if the first column is thin
Yes, I do mean spanning multiple columns. And I am using column renderers and renderer providers. But I'd like to be able to span multiple columns in the row that is the group folder, not just the individual item rows. --- In flexcoders@yahoogroups.com, valdhor [EMAIL PROTECTED] wrote: Do you mean column spanning? If so, according to the docs at http://livedocs.adobe.com/flex/3/html/help.html? content=advdatagrid_10.html you can Span multiple columns with a renderer --- In flexcoders@yahoogroups.com, blc187 blc187@ wrote: Does anyone have any experience using AdvancedDataGrids? I would like the row that displays the folder and the grouping name to span the entire datagrid. For example, I have a data set that creates 3 groups titled Group 1, Group 2, Group 3. Each of these nodes has items underneath of it. I've noticed that the columns apply to the row with the folder and the group name, not just the items below each, so that if my group's name is long it gets ellipsed (...) if the first column is short. Is there any way I can extend this across the entire row. Does that make sense? I realize it's a bit of a tricky situation to explain...
Re: [flexcoders] Re: bar names on bar chart?
Perfect. Thank you, Amy. -Original Message- From: Amy [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: bar names on bar chart? Date: Tue, 11 Nov 2008 14:15:08 - --- In flexcoders@yahoogroups.com, Maciek Sakrejda [EMAIL PROTECTED] wrote: Is there a way to get labels on the actual horizontal bars in a bar chart? E.g., something like | ---| | Category 1 | || | | | Category 2 | |-| | | | Category 3 | |-| |-- | 0 10 20 30 (I'm sure the ascii art will get mangled, but I hope you still get the idea) Look under customization http://demo.quietlyscheming.com/ChartSampler/app.html
Re: [flexcoders] Debugging: general advice
Thanks Josh, xray seems to be not at Flex3 yet, and the last news was 2007. Though it seems to be just what I need. The debugger in Linux Flex Builder Eclipse debugger works fine AFAIK. I guess I'll make a copy of my code that exercises the bad line of execution automatically. Josh McDonald wrote: I use a lot of logging (with a simple framework that allows me to do some better things than mx.ILogger), the occasional trace() and Alert, and a lot of single-stepping and breakpoints. But I don't know how good the debugging support is on Linux, so that might not be an option. You could also look into X-Ray. -Josh On Tue, Nov 11, 2008 at 11:30 AM, john fisher [EMAIL PROTECTED] wrote:
[flexcoders] Flex3/AIR book recommendation?
Flex3/AIR book recommendation? I searched on amazon but I don't know which one's good. Thanks.
[flexcoders] Re: sailorsea21 - How can I modify the value in my ColumnSeries datatip.
Thanks everyone! Works great :) -David --- In flexcoders@yahoogroups.com, EddieBerman [EMAIL PROTECTED] wrote: Here you go... private function myDataTipFunction( e:HitData ):String { var obj:Object = e.chartItem; if (e.chartItem is ColumnSeriesItem) { ...your columnSeries code here } else { ...your lineSeries code here } -Eddie --- In flexcoders@yahoogroups.com, Amy amyblankenship@ wrote: --- In flexcoders@yahoogroups.com, sailorsea21 sailorsea21@ wrote: Hi Amy, My graph is a multiple series (Column and Line). I successfully modified the column series datatip but my line series data tip is now giving me an error: Type Coercion failed: cannot convert mx.charts.series::[EMAIL PROTECTED] to mx.charts.series.ColumnSeries. How can I have another function for my LineSeries data tip? This is my script: public function myDataTipFunction(e:HitData):String { var columnValue:String; var value:String; var yF:String = ColumnSeries(e.element).yField; if (yF == importations) { columnValue = ColumnSeries(e.element).displayName + \n + e.item.period + \n + numberFormatter.format (e.item.importations); value = columnValue; } else if (yF == finalises) { columnValue = ColumnSeries(e.element).displayName + \n + e.item.period + \n + numberFormatter.format(e.item.finalises); value = columnValue; } return value; } There should be a more generic type that both series types inherit from that you could use. If not, try casting it both ways and having alternate paths for each. HTH; Amy
Re: [flexcoders] RemoteObject with synchronous call
you can not do synchronous rpc calls... search the list for AsyncToken and fault / result events quickly: 1) make a remote call and asign an asynctoken to it 2) on the response handler, the token var contains the associated asynctoken, so using this you know which call resulted to this result... On Tue, Nov 11, 2008 at 6:15 PM, Suresh [EMAIL PROTECTED] wrote: Hi friends, I want to make a synchronous call to remote server from ActionAcript using RemoteObject RPC call. Pls help me. Thanks in advance. -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
Re: [flexcoders] Debugging: general advice
I'm curious about this framework, Josh--care to tell us more? I recently moved us from scattered trace statements to more formal mx.ILogger-based stuff, but I'm not thrilled with it. I know about Thunderbolt AS, but that seems a little heavy for us right now. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Josh McDonald [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Debugging: general advice Date: Tue, 11 Nov 2008 13:03:32 +1000 I use a lot of logging (with a simple framework that allows me to do some better things than mx.ILogger), the occasional trace() and Alert, and a lot of single-stepping and breakpoints. But I don't know how good the debugging support is on Linux, so that might not be an option. You could also look into X-Ray. -Josh On Tue, Nov 11, 2008 at 11:30 AM, john fisher [EMAIL PROTECTED] wrote: I read a thread from a few weeks ago, and Amy was using Alert to debug in the browser. So am I, and its moderately successful, but I wonder if there is a better way? I: linux, eclipse, flex builder For instance I'd like to step through on classes that aren't invoked until the user clicks. Is there any way to do this other than re-writing the code to call the bad section automatically? yes the damn debugging flash crashes FireFox all the time. sigh. fortunately I can type kill and Firefox remembers where I was tips and dope-slaps welcome. John -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/ :: http://twitter.com/sophistifunk
Re: [flexcoders] How to mask scrolling errorTips
hm, are tooltips added on the rawchildren of the object instead of the normal children? Does anybody know? If so, they are layered on top of your component, maybe it would be better to implement the errors using a label? On Tue, Nov 11, 2008 at 7:01 PM, j_lentzz [EMAIL PROTECTED] wrote: Hi, I have a screen where I use the ToolTip manager to create error tips that stay on the screen. However, when the screen is scrolled, the error tips scroll on out of the viewing area, while the text input they are next to is masked by something. My question is how can I apply a mask (if that is the right thing), so that the tool tips will be hidden in a smooth way, like the text inputs. I've tried assigning a displayObject to the mask property of the tooltip, but it isn't masking properly. It hides everything on the screen but the tooltip. So, for example, if I have a VBox that contains 10 TextInput fields, if the first one has a manual error tip next to it, when I scroll the text input field goes away, but the error tip just slide up over other things. Thanks, John -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
[flexcoders] Re: Flex Book wish :)
Hi I have two action script books and thay are great, but to apply it to the flex framework is a another case :) --- In flexcoders@yahoogroups.com, Paul Andrews [EMAIL PROTECTED] wrote: Not exactly what you want, but worth a look: http://www.friendsofed.com/book.html?isbn=9781430210276 Actionscript design patterns: http://www.amazon.com/Advanced-ActionScript-3-Design-Patterns/dp/0321426568 , http://www.amazon.com/ActionScript-3-0-Design-Patterns-Programming/dp/0596528469 Paul - Original Message - From: Cato Paus [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, November 11, 2008 10:14 AM Subject: [flexcoders] Flex Book wish :) a wish book, which addresses the disign pattern and flex framework, that I had purchased on spot. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: Problem with Flex form
It works for me although it does display the alert twice - once for the eventListener you add in sendMyData and once for the result handler in the HTTPService tag. In your result handler you should be checking the response you get back from the server and display an alert accordingly. One thing that will probably help you out a lot is to get an HTTP debugging proxy like Charles (http://www.charlesproxy.com/). I use it every day. --- In flexcoders@yahoogroups.com, brucewhealton [EMAIL PROTECTED] wrote: Hello all, I have been unable to figure out why something simple is not happening in a form of mine. I have a form that does successfully take the user input and email it to us. However, for some reason, the Alert button that should give the user feedback is not working. It just hangs there when the user clicks on the submit button. I will need to share the code to get help with this. It is very basic and it does send the email message. I'll trim off extraneous appearance code that is not related to the actual logic of the form. So, we have the main application that has a Panel that calls the ContactFormComp (for ContactFormComponent)(leaving off the Application tag, of course: mx:Panel title=Contact Future Wave Designs forms:ContactFormComp id=MyContactForm/ /mx:Panel So, now we have the form component - this will be a bit longer, though still rather simple, but I don't know why it doesn't call the Alert function: ?xml version=1.0 encoding=utf-8? mx:Form xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ import mx.controls.Alert; import mx.rpc.events.FaultEvent; import mx.rpc.events.ResultEvent; private function sendMyData():void { var obj:Object = new Object(); obj.Name = Name.text; obj.email = email.text; obj.phone = phone.text; obj.message = message.text; myContactService.send(obj); myContactService.resultFormat = text; myContactService.addEventListener(ResultEvent.RESULT, resultHandler); myContactService.addEventListener(FaultEvent.FAULT, fault_handler); } private function resetForm(event:MouseEvent):void { Name.text = ; email.text = ; phone.text = ; message.text = ; } private function resultHandler(event:ResultEvent):void { Alert.show(Thank you! Your message has been emailed, Thank you!); } private function fault_handler():void { Alert.show(There was a problem., Problem Encountered); } ]] /mx:Script mx:HTTPService id=myContactService url=mail_sender.php method=POST result=resultHandler(event) resultFormat=text/ mx:Label text=Your Contact Information/ mx:FormItem label=Name: mx:TextInput id=Name width=200 / /mx:FormItem mx:FormItem label=Email: mx:TextInput id=email width=200/ /mx:FormItem mx:FormItem label=Phone Number: mx:TextInput id=phone width=200/ /mx:FormItem mx:FormItem label=Message: mx:TextArea id=message width=200/ /mx:FormItem mx:FormItem mx:Button label=Submit fontSize=16 click=sendMyData()/ /mx:FormItem mx:FormItem mx:Button label=Reset Form fontSize=16 click=resetForm(event)/ /mx:FormItem /mx:Form I don't know if there is a problem with my php code but it does email the form. In order to share that, I have the php code in a text file here: http://futurewavedesigns.com/ContactUs/mail_sender.php.txt You'll see it is basic. Please let me know if you see any error explaining why it doesn't get to the Alert message. thanks, and Here's an additional issue... If anyone knows php how would I send a message from the php form saying Ok or Fault. That is in the code but I am not sure how to send it back to Flex. Thanks Bruce
[flexcoders] Re: Flex3/AIR book recommendation?
Anything Cookbook - I've got all 3 cookbooks and they're really good/helpful. If you're just starting out - Flex 3 Training from the Source (which someone already recommended) --- In flexcoders@yahoogroups.com, henryhokinhang [EMAIL PROTECTED] wrote: Flex3/AIR book recommendation? I searched on amazon but I don't know which one's good. Thanks.
[flexcoders] E4X normalize() + CDATA = invalid XML, data loss
I'm getting some very strange results from E4X and normalize() when working with CDATA text nodes, especially when those text nodes may contain strings that, unescaped, represent CDATA end tags. Consider the following code: var x:XML = test /; x.appendChild('![CDATA[ test1 '); x.appendChild('![CDATA[ test2 ]]'); trace ('--- before normalize (string value) ---'); trace (x.toString()); trace ('--- before normalize (full xml) ---'); trace (x.toXMLString()); trace (\n); x.normalize(); trace ('--- after normalize (string value) ---'); trace (x.toString()); trace ('--- after normalize (full xml) ---'); trace (x.toXMLString()); trace (\n); var xAsString:String = x.toXMLString(); x = XML(xAsString); trace ('--- after reparse (string value) ---'); trace (x.toString()); trace ('--- after reparse (full xml) ---'); trace (x.toXMLString()); trace (\n); Here's the output when using Flash Player 10.0.12.36 Debug on Linux: --- before normalize (string value) --- test1 ]] test2 --- before normalize (full xml) --- test ![CDATA[ test1 ![CDATA[ test2 ]] /test --- after normalize (string value) --- test1 ]] test2 --- after normalize (full xml) --- test![CDATA[ test1 ]] test2 ]]/test --- after reparse (string value) --- test1 test2 ]] --- after reparse (full xml) --- test ![CDATA[ test1 ]] test2 ]]gt; /test Note how the call to .normalize() causes the text of test to be concatenated to one incorrectly formatted CDATA node, containing an unescaped ]] end-of-CDATA marker. The resulting XML is invalid and will not parse with other XML parsers, such as libxml2's xmllint: badxml.xml:1: parser error : Sequence ']]' not allowed in content test![CDATA[ test1 ]] test2 ]]/test Using Flash's E4X to re-parse this XML does not throw an error, but the resulting XML does not represent the original XML in any way. It appears that the XML parser switches out of CDATA-mode when reaching the first end-of-CDATA-marker (between 'test1' and 'test2'), and then enters some sort of lenient parser mode where it helpfully converts the bare '' after test2 into gt;. Of course, the resulting string value for test's text node is very much different from its original contents. (compare 'after normalize (string value)' to 'after reparse (string value)') On the other hand, not calling .normalize() causes the resulting XML to contain a newline \n character between the two original CDATA text nodes, which when parsed by other xml readers usually results in ]]\n, or worse ]]\n . Anyone have any experience with how to properly embed strings containing xml-ish content with E4X?
Re: [flexcoders] Getting started with flex
- Original Message - From: Valerio Bruno To: flexcoders@yahoogroups.com Sent: Monday, November 10, 2008 10:47 PM Subject: [flexcoders] Getting started with flex Hi everybody ! I and my friends decided to develop a little web based card game and Flex seems to be the best technology at the moment to do that. But there's a little problem: no one of us knows ActionScript nor used Flex Builder. So the subject of this message: which is the best way to get started with flex development ? http://www.adobe.com/devnet/flex/videotraining/ And some more technical questions: Can a flex application receive TCP or HTTP connections ? (for example to create p2p applications) Http, yes, but not sure what you mean by TCP.. Is there a way to sign a flex application to certify it's not modified with reverse engineering ? Not that I'm aware of. But Flex apps are fetched in a browser on demand so I'm not sure how it applies to reverse engineering.. Is really possible to develop a flex application using OpenSource SDK ? Yes, certainly. Is really possible to develop code not related with user interface, using only the SDK ? Yes, but it depends what you really mean. The SDK doesn;'t include server side tools except for communications between flex and the server. Paul THANKS, any suggestion will be appreciated! Valerio Bruno
[flexcoders] Re: Sorting XMLListCollection based on node value
You have to apply the sort to the ListCollection: var s:Sort = new Sort(); s.fields = [new SortField(DisplayName)]; myXMLListCollection.sort = s; myXMLListCollection.refresh(); --- In flexcoders@yahoogroups.com, flexcoder2008 [EMAIL PROTECTED] wrote: I have an XMLListCollection that I want to sort based on a particular node value. All of the examples I have seen show sorting by XML attribute. My xml is in the following format: Employee FirstNameWilliam/FirstName LastNameJackson/LastName DisplayNameBob Jackson/DisplayName /Employee I want to sort items by the DisplayName node, which will show up in a List control. Here's the code I've attempted (not working) var s:Sort = new Sort(); s.fields = [new SortField(DisplayName)]; myXMLListCollection.refresh(); How do I sort based on a particular XML node?
Re: [flexcoders] Http Service Issue -Urgent
hi, Sometimes files developed in flex builder do not work outside the flex builder. so in the compiler arguments add a command: -use-network=false click on project-properties-Flex compiler-additional compiler argument you may find already a command. just put a comma and write -use-network=false i hope this would work. Please reply me if it works. --- On Tue, 11/11/08, harsha_galla [EMAIL PROTECTED] wrote: From: harsha_galla [EMAIL PROTECTED] Subject: [flexcoders] Http Service Issue -Urgent To: flexcoders@yahoogroups.com Date: Tuesday, 11 November, 2008, 8:22 PM Hi, Iam new Flex user. I have come across a peculiar problem.. I wanted a flex UI for an already existing java project. So I went about creating the UI in Adobe flex builder and i have servlet deployed on a server to which the front end has http service calls. When i run the mxml file from IDE itself it works just fine i.e http calls work and data from servlet retreieved properly..but when i go to the project forlder and just run the html file created there the http service call fails. Can anybody tell me the solution or may be what Iam doing was wrong. Also help regarding what all files need to be uploaded to my java project is welcome. Thanks in advance... Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/
RE: [flexcoders] Accessing webservice with flex
I can see the xml but I am not sure what needs to be updated there in order to avoid this error. Tracy Spratt wrote: crossdomain.xml file which is in the same folder as my project. It should be at the root of the web server, so that you can do, http://www.mydomain.com/crossdomain.xml, and see the xml. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of moj2joj Sent: Friday, November 07, 2008 4:38 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Accessing webservice with flex I have a flex app (on Flex 3) hosted on our server which is trying to access data through a webservice call. I recently upgraded my flash player from version 9 to version 10. When I am trying to access my webservice it gives me the Channel.Security.Error . I tried to look for a solution to this problem and found that it had to do with the crossdomain.xml file which is in the same folder as my project on the server. This is how our file looks ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd cross-domain-policy site-control permitted-cross-domain-policies=all/ allow-access-from domain=* to-ports=* secure=true / allow-http-request-headers-from domain=* headers=* secure=true / /cross-domain-policy Could anyone please help me with this error. Its getting really frustrating. -- View this message in context: http://www.nabble.com/Accessing-webservice-with-flex-tp20389372p20389372 .html http://www.nabble.com/Accessing-webservice-with-flex-tp20389372p2038937 2.html Sent from the FlexCoders mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/Accessing-webservice-with-flex-tp20389372p20445599.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Re: bar names on bar chart?
--- In flexcoders@yahoogroups.com, Maciek Sakrejda [EMAIL PROTECTED] wrote: Is there a way to get labels on the actual horizontal bars in a bar chart? E.g., something like | ---| | Category 1 | || | | | Category 2 | |-| | | | Category 3 | |-| |--- | 0 102030 (I'm sure the ascii art will get mangled, but I hope you still get the idea) Look under customization http://demo.quietlyscheming.com/ChartSampler/app.html
[flexcoders] Setting cursor to particular text box on the application load
Hi Is it possible to set the cursor to the text input while your app loads. I am using setFocus to particular text input but it is just setting the focus to my text box but not the cursor. Is it possible to set the cursor to the text box on the app load. Thanks Anuj
Re: [flexcoders] udefined property error without function
No you nailed it. I didn't understand about having to use a function. I'm sure I moved my eyes over the very document, but it just didn't stick. Thanks. John Paul Andrews wrote: I have a feeling this error may not be to do with these particular snippets. Paul
[flexcoders] Flex Book wish :)
a wish book, which addresses the disign pattern and flex framework, that I had purchased on spot.
[flexcoders] Getting started with flex
Hi everybody ! I and my friends decided to develop a little web based card game and Flex seems to be the best technology at the moment to do that. But there's a little problem: no one of us knows ActionScript nor used Flex Builder. So the subject of this message: *which is the best way to get started with flex development ? * And some more technical questions: Can a flex application *receive* TCP or HTTP connections ? (for example to create p2p applications) Is there a way to sign a flex application to certify it's not modified with reverse engineering ? Is really possible to develop a flex application using OpenSource SDK ? Is really possible to develop code not related with user interface, using only the SDK ? THANKS, any suggestion will be appreciated! *Valerio Bruno*
[flexcoders] Graphical skins and subclasses of UIComponent
I'll try to keep this as simple of an example as possible. Here's the scenario: I have a Button class that extends UIComponent. If I specify a Button declaration in an external CSS file, and specify the overSkin, upSkin and downSkin for it, the Button will accept that and apply the style. No problem. However, if I create another ui element, PlayPauseButton that extends Button, and attach that to my app, this subclassed component PlayPauseButton does not pick up the style. Also, adding an explicit declaration in the stylesheet for PlayPauseButton does not work. Note that these components do not have any MXML associated with them. They are attached to the base application with actionscript. These classes also have some drawing api stuff in them (but do not extend programmaticskin), and I'd like to make them be able to take graphics as the assets. Any thoughts? I've searched high and low on the web for something useful on this, but all I can find are tutorials that show how to do with with the built-in UI components. Not helpful. Thanks, Josh
Re: [flexcoders] Http Service Issue -Urgent
- Original Message - From: harsha_galla [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, November 11, 2008 2:52 PM Subject: [flexcoders] Http Service Issue -Urgent Hi, Iam new Flex user. I have come across a peculiar problem.. I wanted a flex UI for an already existing java project. So I went about creating the UI in Adobe flex builder and i have servlet deployed on a server to which the front end has http service calls. When i run the mxml file from IDE itself it works just fine i.e http calls work and data from servlet retreieved properly..but when i go to the project forlder and just run the html file created there the http service call fails. Can anybody tell me the solution or may be what Iam doing was wrong. Also help regarding what all files need to be uploaded to my java project is welcome. Because your html and flash files are on a different machine to the server, the flash security sandbox is preventing you from reading information from a different server to where the html/flash originates. You must either transfer your html/flash to the server your servlet is on, or add a crossdomain security file to that server. http://livedocs.adobe.com/flex/3/html/help.html?content=security2_01.html Paul Thanks in advance...
[flexcoders] Re: Please help me! I want to Display Thumbnails in 3D wall
--- In flexcoders@yahoogroups.com, Tanzeem Bhatti [EMAIL PROTECTED] wrote: Dear All, I have a project that take videos from Youtube using Youtube feeds,I have completed that but I want to make thumbnail display in 3D wall using Flex.. Any one who have experience in making 3D wall using Flex,please help me I am sending my running project... All of you can run it on your local machines and please send me solution. FlashLoaded.com has a 3DWall component that I've successfully wrapped as a Flex component. http://www.flashloaded.com/flashcomponents/3dwall/. HTH; Amy
Re: [flexcoders] Debugging: general advice
I probably overstated its capabilities :) Basically it's a few helper functions and an extension to ILogger. The util class is here: http://pastie.textmate.org/private/xau2g2k5dcz3tmbfazyua And the AdvancedLogger class is here: http://pastie.textmate.org/private/oxukdvqy6pcotqbpuu5ca You use beginOperation and endOperation on AdvancedLogger to indent the messages. Very handy to help debug recursive stuff. -Josh On Wed, Nov 12, 2008 at 3:48 AM, Maciek Sakrejda [EMAIL PROTECTED]wrote: I'm curious about this framework, Josh--care to tell us more? I recently moved us from scattered trace statements to more formal mx.ILogger-based stuff, but I'm not thrilled with it. I know about Thunderbolt AS, but that seems a little heavy for us right now. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Josh McDonald [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Debugging: general advice Date: Tue, 11 Nov 2008 13:03:32 +1000 I use a lot of logging (with a simple framework that allows me to do some better things than mx.ILogger), the occasional trace() and Alert, and a lot of single-stepping and breakpoints. But I don't know how good the debugging support is on Linux, so that might not be an option. You could also look into X-Ray. -Josh On Tue, Nov 11, 2008 at 11:30 AM, john fisher [EMAIL PROTECTED] wrote: I read a thread from a few weeks ago, and Amy was using Alert to debug in the browser. So am I, and its moderately successful, but I wonder if there is a better way? I: linux, eclipse, flex builder For instance I'd like to step through on classes that aren't invoked until the user clicks. Is there any way to do this other than re-writing the code to call the bad section automatically? yes the damn debugging flash crashes FireFox all the time. sigh. fortunately I can type kill and Firefox remembers where I was tips and dope-slaps welcome. John -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/ :: http://twitter.com/sophistifunk -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/ :: http://twitter.com/sophistifunk
RE: [flexcoders] Re: Accessing properties of Embedded Flash SWFs from Flex 3
An embedded SWF is wrapped in a MovieClipLoader. There should be some old threads about how to dig into that to get to the actual SWF From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Todd Sent: Tuesday, November 11, 2008 11:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Accessing properties of Embedded Flash SWFs from Flex 3 From my readings around the web, the Flex compiler strips all timeline information from the SWF when embedding. I now have found a suggested workaround over at Grant Skinner's Blog, however, it's dependent upon all the code written on the timeline being put into a Class (this is how I interpreted the workaround). I'm going to look into probably using the Flash Component Tooklkit for Flex and seeing if the dev can wrap up the Flash stuff into a component and seeing where to go from there. --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Fotis Chatzinikos [EMAIL PROTECTED] wrote: hm, it seems that when embeded the compiler does not have enough info to see if your variable is there or not (you mention that loading the swf dynamically works)... I remember reading somewhere in this forum that there is a compiler flag that makes things less strict and your error would get away, but... never used it myself cannot remember the setting search the forum or google for it On Tue, Nov 11, 2008 at 8:10 PM, Todd [EMAIL PROTECTED] wrote: The symbol that I'm trying to get out of Flash is a global Array defenition, so I'm not sure it's working. I did try embedding the name of the public global array as a seperate embed. I'm not too interested in the Flex Component Kit for Flash, as this component is already written. My main goal is just accessesing the global flash variable from within Flex. --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com, Amy amyblankenship@ wrote: --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com, Todd tprekaski@ wrote: OK, a little more research tells me that the Flex compiler strips out all timeline code from the embedded Flash timeline. So, now my question becomes: How do I expose a property from FLASH that is accessible from Flex? I know you've already gotten an answer about the Component Kit, but I think if you're not doing anything complex, you can just embed the symbol from the library. I believe that does respect the timeline code. http://livedocs.adobe.com/flex/3/html/embed_4.html -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
Re: [flexcoders] Re: Help on sorting an ArrayCollection then adding an item to the top
I'm fairly certain Alex has blogged a custom Collection that does exactly what you want (lets you view other collections together as one, so you simply sort the individual collections)... -Josh On Tue, Nov 11, 2008 at 11:36 PM, Mark [EMAIL PROTECTED] wrote: Perfect, that did the trick... thanks -M --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Yes, that wording does make a difference. You can look into using a sortCompare function. Or, you can hack it by adding the item to the collection, but in addition add an additional property to all of the items in the collection, like sortIndex; that will be used to sort the reset item at the top and then the regular items. Assign 0 to Select All' and 1 to all of the regular items. Then add another sort field to the collecton's sort so it sorts the sortIndex first and then the title: var sort:Sort = new Sort(); sort.fields = []; sort.fields.push(new SortField(sortIndex, true, false, true)); sort.fields.push(new SortField(title,true)); nameCollection.sort = sort; nameCollection.refresh(); // // add new item to the top // var sItem:Object = new Object; sItem = {sortIndex:0, title:Select One}; nameCollection.addItemAt(sItem,0); // you'll have to change the other objects in the collection to have the sortIndex property and set them all to 1. -TH --- In flexcoders@yahoogroups.com, Mark markp.shopping_id@ wrote: Thanks, but as soon as you make a choice from the comboBox you can't select it again as a default. And maybe Select One is the wrong wording for what I'm doing here... Select All would be a better choice of words. --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: mx:ComboBox prompt=Select One/ -TH --- In flexcoders@yahoogroups.com, Mark markp.shopping_id@ wrote: Thanks for the quick reply Ralf, but I have no idea how to do either of what you suggested. Would you know of any examples you can point me to? Thanks, Mark --- In flexcoders@yahoogroups.com, Ralf Bokelberg ralf.bokelberg@ wrote: You can provide your own sort function, which sorts your special entry at the top. Alternatively you can use the prompt propertyof the combobox. It is shown if the selectedIndex is set to -1 Cheers, Ralf. On Sat, Nov 8, 2008 at 3:07 PM, Mark markp.shopping_id@ wrote: I'm trying to sort an arrayCollection that is the dataProvider for a comboBox. But I also need to add an item to the top of the list Select One. Everything I've tried always sorts that object as well. Is there a way to exclude something from a sort or am I just doing this completly wrong? Here's what I have? var sort:Sort = new Sort(); sort.fields = []; sort.fields.push(new SortField(title,true)); nameCollection.sort = sort; nameCollection.refresh(); // // add new item to the top // var sItem:Object = new Object; sItem = {title:Select One}; nameCollection.addItemAt(sItem,0); //nameCollection.refresh(); Thank You, Mark -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/ :: http://twitter.com/sophistifunk
RE: [flexcoders] TreeItemRenderer setting an icon to an embedded image
If you replace the icon in a subclass, you'll have to remove the old one from the display list and add your new one (removeChild/addChild). Tree has APIs for getting the renderer to choose different icons depending on the data. See Tree styles like defaultLeafIcon, and APIs like iconField You may not need a custom renderer if all you want to change is the icon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dfrank76 Sent: Tuesday, November 11, 2008 11:32 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] TreeItemRenderer setting an icon to an embedded image What is the proper way to set the icon from a TreeItemRenderer when using an embeded graphic file? I don't want to accidentally create hundreds of instances of it in memory. TreeItemRenderer.icon is an instance of IFlexDisplayObject which is implemented by BitmapDataAsset (the embedded graphic class). When I do the following: public class MyTreeItemRenderer extends TreeItemRenderer { [Embed(source=../../assets/test.jpg)] public var testIcon:Class; public function MyTrereItemRenderer() { super(); } // Override the updateDisplayList() method // to set the text for each tree node. override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); this.icon = new studentIcon(); } } I get this RTE: ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller. at flash.display::DisplayObjectContainer/removeChild() at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$remo veChild() at mx.core::UIComponent/removeChild() at mx.controls.treeClasses::TreeItemRenderer/commitProperties() at mx.core::UIComponent/validateProperties() at mx.managers::LayoutManager/validateClient() at mx.controls::List/makeRowsAndColumns() at mx.controls.listClasses::ListBase/makeRowsAndColumnsWithExtraRows() at mx.controls.listClasses::ListBase/updateDisplayList() at mx.controls::List/updateDisplayList() I can't seem to find a good example of a TreeItemRenderer on the web that uses the icon field to control the icon. Dave
RE: [flexcoders] bug or feature (or am i doing something wrong)?
Not sure what categoriesTree is or what CategoryTree is. ObjectUtil.copy doesn't work on DisplayObjects. You may also need to use registerClassAlias. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of fotis.chatzinikos Sent: Tuesday, November 11, 2008 11:14 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] bug or feature (or am i doing something wrong)? Hi, I am using ObjectUtil.copy to deep copy an object. The following code works: (note the call to new) var catTreeLocalToFiltered:CategoryTree = new CategoryTree() ; catTreeLocalToFiltered = ObjectUtil.copy(categoriesTree) as CategoryTree ; The problem is that the following code DOES NOT WORK:(note the absense of new) var catTreeLocalToFiltered:CategoryTree = ObjectUtil.copy(categoriesTree) as CategoryTree ; Actually it semi works. The first time catTreeLocalToFiltered is the same as categoriesTree. The second time catTreeLocalToFiltered does not become equal to categoriesTree but becomes equal to itself as it was after the first call. Are bytes cached for local variables if new is not explicitly used? Anybody from Adobe? PS: All this was checked/found out in the debugger stepping throught the code line by line... Thanks, Fotis
Re: [flexcoders] udefined property error without function
Glad you sorted it out John. Hope your project goes well. Paul - Original Message - From: john fisher [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, November 11, 2008 10:40 PM Subject: Re: [flexcoders] udefined property error without function No you nailed it. I didn't understand about having to use a function. I'm sure I moved my eyes over the very document, but it just didn't stick. Thanks. John Paul Andrews wrote: I have a feeling this error may not be to do with these particular snippets. Paul -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: Problem with Flex form
Did you try the form itself? I guess I didn't show the link. It is here: http://futurewavedesigns.com/ContactUs/ContactForm.html When I enter information into the form, I get no response after I hit Submit. Can you try that page and see what happens for you? Unless you tried it already but I didn't list the page. I think it is fixed. It seems to work fine now. I just need to add some validation. I have this in my php form mailer: $OK = mail ($mail_to, $subject, $message, $headers); if ($OK) { echo 'sent=OK'; } else { echo 'sent=ERROR'; } I don't know how to make it not send the message and set an error. If that does happen, my Flex code checks for event.result=ERROR which I don't think is going to work with the php code I just listed. I hope someone here reading this knows some about php so that I can figure out what to do to change the code so that it gives the user a message if the email was not sent. I tried something that wasn't working which is this: else { die(failed); } That failed to cause any response at all from the form. Bruce --- In flexcoders@yahoogroups.com, valdhor [EMAIL PROTECTED] wrote: It works for me although it does display the alert twice - once for the eventListener you add in sendMyData and once for the result handler in the HTTPService tag. In your result handler you should be checking the response you get back from the server and display an alert accordingly. One thing that will probably help you out a lot is to get an HTTP debugging proxy like Charles (http://www.charlesproxy.com/). I use it every day. --- In flexcoders@yahoogroups.com, brucewhealton bruce@ wrote: Hello all, I have been unable to figure out why something simple is not happening in a form of mine. I have a form that does successfully take the user input and email it to us. However, for some reason, the Alert button that should give the user feedback is not working. It just hangs there when the user clicks on the submit button. I will need to share the code to get help with this. It is very basic and it does send the email message. I'll trim off extraneous appearance code that is not related to the actual logic of the form. So, we have the main application that has a Panel that calls the ContactFormComp (for ContactFormComponent)(leaving off the Application tag, of course: mx:Panel title=Contact Future Wave Designs forms:ContactFormComp id=MyContactForm/ /mx:Panel So, now we have the form component - this will be a bit longer, though still rather simple, but I don't know why it doesn't call the Alert function: ?xml version=1.0 encoding=utf-8? mx:Form xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ import mx.controls.Alert; import mx.rpc.events.FaultEvent; import mx.rpc.events.ResultEvent; private function sendMyData():void { var obj:Object = new Object(); obj.Name = Name.text; obj.email = email.text; obj.phone = phone.text; obj.message = message.text; myContactService.send(obj); myContactService.resultFormat = text; myContactService.addEventListener(ResultEvent.RESULT, resultHandler); myContactService.addEventListener(FaultEvent.FAULT, fault_handler); } private function resetForm(event:MouseEvent):void { Name.text = ; email.text = ; phone.text = ; message.text = ; } private function resultHandler(event:ResultEvent):void { Alert.show(Thank you! Your message has been emailed, Thank you!); } private function fault_handler():void { Alert.show(There was a problem., Problem Encountered); } ]] /mx:Script mx:HTTPService id=myContactService url=mail_sender.php method=POST result=resultHandler(event) resultFormat=text/ mx:Label text=Your Contact Information/ mx:FormItem label=Name: mx:TextInput id=Name width=200 / /mx:FormItem mx:FormItem label=Email: mx:TextInput id=email width=200/ /mx:FormItem mx:FormItem label=Phone Number: mx:TextInput id=phone width=200/ /mx:FormItem mx:FormItem label=Message: mx:TextArea id=message width=200/ /mx:FormItem mx:FormItem mx:Button label=Submit fontSize=16 click=sendMyData()/ /mx:FormItem mx:FormItem mx:Button label=Reset Form fontSize=16 click=resetForm(event)/ /mx:FormItem /mx:Form I don't know if there is a problem with my php code but it does email the form. In order to share that, I have the php code in a text file here:
[flexcoders] saveCache() - Couldn't acquire lock error.
I'm getting an error when trying to save fill results to the local cache. Here's the error spew: onSaveCacheFault(): ERROR: (mx.messaging.messages::ErrorMessage)#0 body = (Object)#1 clientId = (null) correlationId = destination = extendedData = (null) faultCode = Client.Save.Failed faultDetail = Couldn't acquire lock. Operation failed. faultString = Could not save local cache: Error: Couldn't acquire lock. Operation failed. at LSODBStore/acquireLock()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data \LSODatabase.as:659] at LSODBStore/begin()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\LSODa tabase.as:422] at mx.data::LSODatabase/begin()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\ data\LSODatabase.as:142] at mx.data::DataStore/http://www.adobe.com/2006/flex/mx/internal::saveCache()[C:\depot\flex\branches\enterp rise_corfu_rc\frameworks\projects\data\src\mx\data\DataStore.as:2636] at anonymous()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\ConcreteDa taService.as:1771] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.rpc::AsyncDispatcher/timerEventHandler() at flash.utils::Timer/_timerDispatch() at flash.utils::Timer/tick() headers = (Object)#2 messageId = 9F56BAD2-667A-6A94-F8A7-8DF33BE3B59E rootCause = (null) timestamp = 0 timeToLive = 0 The command I use to save to cache is: __ds.saveCache(); This is quite perplexing as it was working fine until I loaded a new workspace for some other work. Ever since I've come back to the Flex workspace, it's failed to save to the local cache. Any ideas would be appreciated. ~Geoff
RE: [flexcoders] Binding problems after update to 3.1
It turns out many of my projects won't function under 3.1. Is there some documentation as to whatever the fundamental changes were in this update that are breaking my apps so as to avoid it in future? Thanks, Mike From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Pearce Sent: Tuesday, November 11, 2008 3:43 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Binding problems after update to 3.0.1 After setting up FB to use the 3.0 SDK everything is fine again. Would be interested to hear if anyone else has experienced this issue with the 3.1 SDK. Cheers, Mike -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Mike Pearce Sent: Tuesday, November 11, 2008 2:52 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Binding problems after update to 3.0.1 Hi all, Anyone else run into issues after installing the 3.0.1 update? Some simple bindings are no longer working in one of my projects. If I compile on another machine that has not been updated, the project works fine. Anyone got any info on this? Or know how to uninstall the update? Please don't tell me I have to completely uninstall flex and reinstall it. Not happy. Many thanks, Mike No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database: 270.9.0/1779 - Release Date: 11/10/2008 7:53 AM No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database: 270.9.0/1779 - Release Date: 11/10/2008 7:53 AM
[flexcoders] AIR 1.5 and Flash Player 10
I'm trying to figure out how to compile an AIR app with the Flex 3.2 SDK (stable build 3.2.0.3794), deployed with Flash Player 10 capability. Using the example below, you'd think it would work. ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=initApp() mx:Script ![CDATA[ import flash.system.Capabilities; import flash.display.ColorCorrectionSupport; private function initApp():void { version.text = Flash Player version: + Capabilities.version; stat.text = Color Correction Support = +this.stage.colorCorrectionSupport; } ]] /mx:Script mx:Label id=version width=250 / mx:Label id=stat width=250 / /mx:WindowedApplication The compiler recognizes the FP10 classes, as does the code assist, but when I run it I get a null exception error on stage.colorCorrectionSupport -- which tells me that the FP10 classes are not actually being compiled into the SWF. When I add -target-player=10 to the compiler settings, I get an error configuration variable 'target-player' must only be set once, which tells me that this is already being set somewhere. So why won't my AIR app compile for Flash 10 classes? I crack open the aiglobal.swc file, examine the catalog.xml file, and it indicates swc xmlns=http://www.adobe.com/flash/swccatalog/9; ... flex version=4.0.0 build=0 / So I backed up the old airglobal.swc file, and created a new one with the 9 in the swc tag changed to a 10. But that didn't seem to change anything. Thing is, the catalog.xml file indicates that the Flash 10 classes are indeed in the airglobal.swc file. So does this mean that AIR 1.5 is being compiled to Flash 9? Do I need to change the Flex BUilder config settings to change this? And why on earth is AIR 1.5 included in the latest stable build (3.2.0.3794) of the Flex 3 SDK, and touted as being Flash 10-enabled, when it seems like you need Flex 4 to take advantage of these capabilities? Maybe I'm just reading this wrong, because that just makes no sense whatsoever. If it's true, when are we going to be able to compile to Flash 10 in AIR? When Flex 4 finally comes out? Has anyone figured out how to create an AIR app with the Flex 3.2 SDK, for FP10? Thanks. -- ___ Joseph Balderson, Flex Flash Platform Developer | joeflash.ca Author, Professional Flex 3 | http://tinyurl.com/5qbqlk
[flexcoders] Communicating with Component
How do I access functions and properties of a custom component in my main app?
[flexcoders] External Interface is not working in IE
Hi all, I need to get the url of the current page. So i used External Interface.call(window.location.href.toString). Its working fine in Firefox but not in IE. how can i solve this problem. Awaiting for the replies.. Thanks in advance, Poornima
RE: [flexcoders] Question on how to find out what something is.
mx:Form id=One My question is what is One, what kind of component or object is it. It is an instance of the class mx.containers.Form, as specified by the following entry in the file frameworks/mxml-manifest.xml component id=Form class=mx.containers.Form/ Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of timgerr Sent: Monday, November 10, 2008 3:02 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Question on how to find out what something is. So I have this form mx:Form id=One mx:FormItem label=First mx:TextInput id=first/ /mx:FormItem /mx:Form so I have this function init():void { trace(One.getChildren().length) } My question is what is One, what kind of component or object is it. This is what I mean; I take the same form and add a creationcomplete to it: mx:Form id=One creationcomplete=init(somthing) mx:FormItem label=First mx:TextInput id=first/ /mx:FormItem /mx:Form In the above example I pass something into init (init(something), what is that something? I am not sure how to declare it? init(this:NotSureWhatItIs) { trace ??? } If I do an object I do not have access to getChildren(). What do I do? Thanks for the help timgerr
Re: [flexcoders] External Interface is not working in IE
I just recently had a problem with fullscreen in IE (but not Firefox) - where I was using SWFObject and embedding the SWF that way. If you get any of the parameters typed incorrectly it can seriously mess the whole thing up and turn things off like script access or fullscreen. If you're using SWFObject, remove that from the equation to see if your actual SWF is working for you correctly - if it's not.then I got nothing. But it just really sounds like a problem I just solved ben kotha poornima wrote: Hi all, I need to get the url of the current page. So i used External Interface.call(window.location.href.toString). Its working fine in Firefox but not in IE. how can i solve this problem. Awaiting for the replies.. Thanks in advance, Poornima
RE: [flexcoders] Binding problems after update to 3.1
Can you create a small example of the problem and post it? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Pearce Sent: Tuesday, November 11, 2008 4:33 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Binding problems after update to 3.1 It turns out many of my projects won't function under 3.1. Is there some documentation as to whatever the fundamental changes were in this update that are breaking my apps so as to avoid it in future? Thanks, Mike From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Pearce Sent: Tuesday, November 11, 2008 3:43 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Binding problems after update to 3.0.1 After setting up FB to use the 3.0 SDK everything is fine again. Would be interested to hear if anyone else has experienced this issue with the 3.1 SDK. Cheers, Mike -Original Message- From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of Mike Pearce Sent: Tuesday, November 11, 2008 2:52 PM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Binding problems after update to 3.0.1 Hi all, Anyone else run into issues after installing the 3.0.1 update? Some simple bindings are no longer working in one of my projects. If I compile on another machine that has not been updated, the project works fine. Anyone got any info on this? Or know how to uninstall the update? Please don't tell me I have to completely uninstall flex and reinstall it. Not happy. Many thanks, Mike No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database: 270.9.0/1779 - Release Date: 11/10/2008 7:53 AM No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database: 270.9.0/1779 - Release Date: 11/10/2008 7:53 AM
[flexcoders] How to adjust the height of VBox dynamically
Hi, could anyone give me a solution to adjust the height of the VBox so that it will fit the content according to the content's size. This VBOx contains two HBoxes which in turn contain label, text, textinput and date field, and when this page that conatin the VBox is called one HBox at one time will be visible. Thanks and Regards Sony Connect with friends all over the world. Get Yahoo! India Messenger at http://in.messenger.yahoo.com/?wm=n/
RE: [flexcoders] How to adjust the height of VBox dynamically
That's what a VBox does by default when you don't specify its height... it makes itself high enough to show all of its children. If you don't want one of its children to contribute to its height, set includeInLayout to false on that child. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sony antony Sent: Tuesday, November 11, 2008 9:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to adjust the height of VBox dynamically Hi, could anyone give me a solution to adjust the height of the VBox so that it will fit the content according to the content's size. This VBOx contains two HBoxes which in turn contain label, text, textinput and date field, and when this page that conatin the VBox is called one HBox at one time will be visible. Thanks and Regards Sony Connect with friends all over the world. Get Yahoo! India Messenger at http://in.messenger.yahoo.com/?wm=n/
[flexcoders] Flash 10 Crashes Browser -repost
Can't find my previous post for some reason. Matt Chotin, the radius deprecated turned out to not be the reason for the crash. I spoke too soon with wishful thinking. I was trying to comment out code to see if any Flex code could be causing it. I cannot isolate or define a way to re-produce, since the crashes appear to be random. Flex 3 apps are crashing when user upgrades from Flash Player 9 to Flash Player 10. There are many unresolved bug reports at bugs.adobe.com related to flash 10 crashing browser, so I didn't add yet another one. I've had to instruct my users to back up to Flash Player 9 until a workaround or fix is available from Adobe. In the meantime, If anyone has any suggestions on how to troubleshoot browser crashes...I'm all ears. Thanks, Don Kerr
Re: [flexcoders] Flash 10 Crashes Browser -repost
Make sure you have the url for your own crash in the bugs that are field though. On 11/11/08 9:40 PM, Don Kerr [EMAIL PROTECTED] wrote: Can't find my previous post for some reason. Matt Chotin, the radius deprecated turned out to not be the reason for the crash. I spoke too soon with wishful thinking. I was trying to comment out code to see if any Flex code could be causing it. I cannot isolate or define a way to re-produce, since the crashes appear to be random. Flex 3 apps are crashing when user upgrades from Flash Player 9 to Flash Player 10. There are many unresolved bug reports at bugs.adobe.com related to flash 10 crashing browser, so I didn't add yet another one. I've had to instruct my users to back up to Flash Player 9 until a workaround or fix is available from Adobe. In the meantime, If anyone has any suggestions on how to troubleshoot browser crashes...I'm all ears. Thanks, Don Kerr
[flexcoders] How to share VO with multiple components/views - Nested Binding?
I have some data (e.g. currently selected employee summary data) that appears (Read Only) on several views/components. I am retrieving the selected data and saving in a VO object, but I'd like to share this VO data with several forms/views - I thought I could do this via binding, but some of the views are nested within other components so I'm not sure how to set this kind of (indirect/nested) binding syntax or if this is possible. There must be a better way - anyone suggest an alternative appproach or provide an example of sharing a VO with multiple forms/views? TIA, Patrick
Re: [flexcoders] How to share VO with multiple components/views - Nested Binding?
I usually use a combination of dependency injection and binding, with things being injected into an outer component and passing through only what nested components need with bindings. I know it's not the fastest way, but I guess I'm lucky that I'm not doing anything where this sort of latency becomes visible to users. -Josh On Wed, Nov 12, 2008 at 4:49 PM, pbrendanc [EMAIL PROTECTED] wrote: I have some data (e.g. currently selected employee summary data) that appears (Read Only) on several views/components. I am retrieving the selected data and saving in a VO object, but I'd like to share this VO data with several forms/views - I thought I could do this via binding, but some of the views are nested within other components so I'm not sure how to set this kind of (indirect/nested) binding syntax or if this is possible. There must be a better way - anyone suggest an alternative appproach or provide an example of sharing a VO with multiple forms/views? TIA, Patrick -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/ :: http://twitter.com/sophistifunk