Re: [flexcoders] Re: FABridge Problem - Please help!
Alex, I thank you for your patience. However, in one of my earlier posts on this thread I did give quite a lot of details about my particular situation (which is almost certainly different, but at the same time, related to, the other posters issue). In my case, I'm using an IFrame component (from http://code.google.com/p/flex-iframe/) to display a credit card data collection processing application (for PCI reasons, we do not wish to have the CC data collected via our main application) What I wish to happen, is for the 'hosted' app to be able to tell the 'hosting' flex app that it has completed its job, so that the flex app can change the ui, to present the main dashboard again, or perhaps a new order builder screen, or whatever. The problem is that my hosted html app (via javascript) is unable to communicate with its host flex app. There is an example of exactly this sort of behavior here ( http://ccgi.arutherford.plus.com/website/flex/iframe/IFrameBridgeTest/ ). FYI, I know for sure that this doesn't work (on Windows) with Chrome of Safari, but it does work with IE, FF, and Opera. What I've done, is to take the flex3 project here( http://code.google.com/p/flex-iframe/source/browse/trunk/examples/IFrameCommTest/ ), and just do a simple conversion of the code to flex4. I've exported my version of the project to facilitate help ( http://www.mediafire.com/file/172448jkkgva4ki/iframeCommTest.fxp ) The issue I'm trying to resolve, is why the code works fine in flex3, but not in flex4, and my best guess as to what is wrong is that its got something to do with swfobject being used in the flex4 version causing a change to the location of the FABridge object in the hosted html pages DOM. Hopefully that clears up some of the confusion. Thanks -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- On Wed, Sep 1, 2010 at 11:36 AM, Alex Harui aha...@adobe.com wrote: So from my perspective, you aren’t being specific enough. You are saying that parent.FABridge doesn’t exist, the OP said something else. There are two DOMs, the JS DOM and the AS DOM. You are now saying you can’t find the object, but you aren’t saying which object. If parent.FABridge is null, then it sounds like a JS setup issue. Either FABridge.js isn’t being loaded or isn’t loaded in the right place. You might try your own test js file to see if you can find objects from your test file. On 9/1/10 6:27 AM, Brian J. Ackermann brian.ackerm...@gmail.com wrote: Yes, I've tried debugging on the JS side of things, exactly as you mentioned (See my email in this thread from Thu, Aug 26, 2010 at 12:45 PM). Nothing. I simply can't find the object. I used a javascript object dump function, to 'scan' the objects I could think of, looking for an occurrence of this object that we need for FABridge to work, but its tucked away somewhere, in a place which is non-trivial to locate. -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- On Wed, Sep 1, 2010 at 8:22 AM, Brian J. Ackermann brian.ackerm...@gmail.com wrote: Alex, I think thats (the swfobject) probably getting pretty close to the right line of thinking, and its something that I'd considered briefly myself, but I am not savvy enough yet to make heads or tails of the issue. -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- On Mon, Aug 30, 2010 at 11:44 PM, Alex Harui aha...@adobe.com wrote: I don’t have time to try it right now. In Flex 4, the tag goes inside the fx:Declarations tag. I took a quick look at the AS code and it uses ExternalInterface so it shouldn’t be sensitive to changes between Flex 3 and 4. Have you tried debugging from both sides? Use a JS debugger or stick a bunch of alerts in the JS code and see what sub-expressions are null (parent, parent.FABridge, parent.FABridge.foo, etc). Then put breakpoints on the AS side like FABridge.as.getRoot(). Are you using a new Flex 4 template that now uses SWFObject instead of AC_OETags.js? It shouldn’t make a difference unless you’re simply not including the right JS in the template. On 8/30/10 2:36 PM, gmbroth gmbr...@hotmail.com http://gmbr...@hotmail.com wrote: Hi, Was this problem resolved? I have Flex 3 MXML that defines: mx:Application ... utils:FABridge bridgeName=foo/ ... /mx:Application In Flex 4, must this statement now appear inside an fx:Declarations element? Even if there's no other fx namespace elements being used in the MXML? On the JavaScript side, I've been referencing the bridge as: FABridge.foo.root() which works fine in Flex 3 but doesn't resolve the bridge in Flex 4. How is the bridge referenced? Thanks, Garry --- In flexcoders@yahoogroups.com http://flexcoders
Re: [flexcoders] Re: FABridge Problem - Please help!
Alex, I think thats (the swfobject) probably getting pretty close to the right line of thinking, and its something that I'd considered briefly myself, but I am not savvy enough yet to make heads or tails of the issue. -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- On Mon, Aug 30, 2010 at 11:44 PM, Alex Harui aha...@adobe.com wrote: I don’t have time to try it right now. In Flex 4, the tag goes inside the fx:Declarations tag. I took a quick look at the AS code and it uses ExternalInterface so it shouldn’t be sensitive to changes between Flex 3 and 4. Have you tried debugging from both sides? Use a JS debugger or stick a bunch of alerts in the JS code and see what sub-expressions are null (parent, parent.FABridge, parent.FABridge.foo, etc). Then put breakpoints on the AS side like FABridge.as.getRoot(). Are you using a new Flex 4 template that now uses SWFObject instead of AC_OETags.js? It shouldn’t make a difference unless you’re simply not including the right JS in the template. On 8/30/10 2:36 PM, gmbroth gmbr...@hotmail.com wrote: Hi, Was this problem resolved? I have Flex 3 MXML that defines: mx:Application ... utils:FABridge bridgeName=foo/ ... /mx:Application In Flex 4, must this statement now appear inside an fx:Declarations element? Even if there's no other fx namespace elements being used in the MXML? On the JavaScript side, I've been referencing the bridge as: FABridge.foo.root() which works fine in Flex 3 but doesn't resolve the bridge in Flex 4. How is the bridge referenced? Thanks, Garry --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com , Brian J. Ackermann brian.ackerm...@... wrote: http://code.google.com/p/flex-iframe/source/browse/trunk/examples/IFrameCommTest/src/com/google/code/flexiframe/examples/IFrameCommTest.mxml lines 80 81 in the original example, there was no ID Thanks -- Brian J. Ackermann brian.ackerm...@... 952.373.1626 -- On Thu, Aug 26, 2010 at 3:27 PM, Alex Harui aha...@... wrote: I just noticed you didn't specify an id=FABridge in your fx:Declarations What was the equivalent statement in Flex 3? On 8/26/10 10:45 AM, Brian J. Ackermann brian.ackerm...@... wrote: From my testing, I believe the problem is on the JS side of thing, and that the FABridge doesn't 'live' in the same location in the DOM in flex4, as compared with flex3. But we're both reasonably novice flex developers, so we could be mis-interpreting what we're seeing. In another version of the project, I have added some debugging to a text area on screen, and this.parent.FABridge and parent.FABridge and FABridge all return 'undefined'. Since that used to work just fine in flex3, it seems like maybe I just need to find the new 'path' in the DOM for example: this.parent.foo.bar.blah.FABridge Thanks, Brian -- Brian J. Ackermann brian.ackerm...@... 952.373.1626 -- On Thu, Aug 26, 2010 at 12:38 PM, Alex Harui aha...@... wrote: I don't have time right now to look and I don't deal much with FABridge, but are you now saying that parent.FABridge is now the issue? The OP said it was FABridge.flex. Is this on the JS side or AS side? In Flex 4, a child component's parent is not the main app, they get shoveled down into the skin. It think the document or parentDocument properties or FlexGlobals.topLevelApplication can access the main app. On 8/26/10 9:10 AM, Brian J. Ackermann brian.ackerm...@... http://brian.ackerm...@... wrote: I'm trying to get the IFrameCommTest example (from http://code.google.com/p/flex-iframe/) to work in Flex 4, and, while the IFrame itself works, the communication does not. In particular, I need to get the included HTML page to call functions from the flex app (I already have a way to get the Flex app to talk to the HTML). I've exported the project to facilitate your help. http://www.mediafire.com/file/172448jkkgva4ki/iframeCommTest.fxp The problem, is that the parent.FABridge doesn't exist. My guess is that something in flex4 changed with regard to how things are located in the DOM. (This post is directly related to the original. I just thought this would be a clearer example of the problem. ) Thanks, -- Brian J. Ackermann brian.ackerm...@... http://brian.ackerm...@... 952.373.1626 -- -- Alex Harui Flex SDK Team Adobe System, Inc. http
Re: [flexcoders] Re: FABridge Problem - Please help!
Yes, I've tried debugging on the JS side of things, exactly as you mentioned (See my email in this thread from Thu, Aug 26, 2010 at 12:45 PM). Nothing. I simply can't find the object. I used a javascript object dump function, to 'scan' the objects I could think of, looking for an occurrence of this object that we need for FABridge to work, but its tucked away somewhere, in a place which is non-trivial to locate. -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- On Wed, Sep 1, 2010 at 8:22 AM, Brian J. Ackermann brian.ackerm...@gmail.com wrote: Alex, I think thats (the swfobject) probably getting pretty close to the right line of thinking, and its something that I'd considered briefly myself, but I am not savvy enough yet to make heads or tails of the issue. -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- On Mon, Aug 30, 2010 at 11:44 PM, Alex Harui aha...@adobe.com wrote: I don’t have time to try it right now. In Flex 4, the tag goes inside the fx:Declarations tag. I took a quick look at the AS code and it uses ExternalInterface so it shouldn’t be sensitive to changes between Flex 3 and 4. Have you tried debugging from both sides? Use a JS debugger or stick a bunch of alerts in the JS code and see what sub-expressions are null (parent, parent.FABridge, parent.FABridge.foo, etc). Then put breakpoints on the AS side like FABridge.as.getRoot(). Are you using a new Flex 4 template that now uses SWFObject instead of AC_OETags.js? It shouldn’t make a difference unless you’re simply not including the right JS in the template. On 8/30/10 2:36 PM, gmbroth gmbr...@hotmail.com wrote: Hi, Was this problem resolved? I have Flex 3 MXML that defines: mx:Application ... utils:FABridge bridgeName=foo/ ... /mx:Application In Flex 4, must this statement now appear inside an fx:Declarations element? Even if there's no other fx namespace elements being used in the MXML? On the JavaScript side, I've been referencing the bridge as: FABridge.foo.root() which works fine in Flex 3 but doesn't resolve the bridge in Flex 4. How is the bridge referenced? Thanks, Garry --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com , Brian J. Ackermann brian.ackerm...@... wrote: http://code.google.com/p/flex-iframe/source/browse/trunk/examples/IFrameCommTest/src/com/google/code/flexiframe/examples/IFrameCommTest.mxml lines 80 81 in the original example, there was no ID Thanks -- Brian J. Ackermann brian.ackerm...@... 952.373.1626 -- On Thu, Aug 26, 2010 at 3:27 PM, Alex Harui aha...@... wrote: I just noticed you didn't specify an id=FABridge in your fx:Declarations What was the equivalent statement in Flex 3? On 8/26/10 10:45 AM, Brian J. Ackermann brian.ackerm...@... wrote: From my testing, I believe the problem is on the JS side of thing, and that the FABridge doesn't 'live' in the same location in the DOM in flex4, as compared with flex3. But we're both reasonably novice flex developers, so we could be mis-interpreting what we're seeing. In another version of the project, I have added some debugging to a text area on screen, and this.parent.FABridge and parent.FABridge and FABridge all return 'undefined'. Since that used to work just fine in flex3, it seems like maybe I just need to find the new 'path' in the DOM for example: this.parent.foo.bar.blah.FABridge Thanks, Brian -- Brian J. Ackermann brian.ackerm...@... 952.373.1626 -- On Thu, Aug 26, 2010 at 12:38 PM, Alex Harui aha...@... wrote: I don't have time right now to look and I don't deal much with FABridge, but are you now saying that parent.FABridge is now the issue? The OP said it was FABridge.flex. Is this on the JS side or AS side? In Flex 4, a child component's parent is not the main app, they get shoveled down into the skin. It think the document or parentDocument properties or FlexGlobals.topLevelApplication can access the main app. On 8/26/10 9:10 AM, Brian J. Ackermann brian.ackerm...@... http://brian.ackerm...@... wrote: I'm trying to get the IFrameCommTest example (from http://code.google.com/p/flex-iframe/) to work in Flex 4, and, while the IFrame itself works, the communication does not. In particular, I need to get the included HTML page to call functions from the flex app (I already have a way to get the Flex app to talk to the HTML). I've exported the project to facilitate your
Re: [flexcoders] FABridge Problem - Please help!
http://code.google.com/p/flex-iframe/source/browse/trunk/examples/IFrameCommTest/src/com/google/code/flexiframe/examples/IFrameCommTest.mxml lines 80 81 in the original example, there was no ID Thanks -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- On Thu, Aug 26, 2010 at 3:27 PM, Alex Harui aha...@adobe.com wrote: I just noticed you didn’t specify an id=”FABridge” in your fx:Declarations What was the equivalent statement in Flex 3? On 8/26/10 10:45 AM, Brian J. Ackermann brian.ackerm...@gmail.com wrote: From my testing, I believe the problem is on the JS side of thing, and that the FABridge doesn't 'live' in the same location in the DOM in flex4, as compared with flex3. But we're both reasonably novice flex developers, so we could be mis-interpreting what we're seeing. In another version of the project, I have added some debugging to a text area on screen, and this.parent.FABridge and parent.FABridge and FABridge all return 'undefined'. Since that used to work just fine in flex3, it seems like maybe I just need to find the new 'path' in the DOM for example: this.parent.foo.bar.blah.FABridge Thanks, Brian -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- On Thu, Aug 26, 2010 at 12:38 PM, Alex Harui aha...@adobe.com wrote: I don’t have time right now to look and I don’t deal much with FABridge, but are you now saying that parent.FABridge is now the issue? The OP said it was FABridge.flex. Is this on the JS side or AS side? In Flex 4, a child component’s parent is not the main app, they get shoveled down into the skin. It think the document or parentDocument properties or FlexGlobals.topLevelApplication can access the main app. On 8/26/10 9:10 AM, Brian J. Ackermann brian.ackerm...@gmail.com http://brian.ackerm...@gmail.com wrote: I'm trying to get the IFrameCommTest example (from http://code.google.com/p/flex-iframe/) to work in Flex 4, and, while the IFrame itself works, the communication does not. In particular, I need to get the included HTML page to call functions from the flex app (I already have a way to get the Flex app to talk to the HTML). I've exported the project to facilitate your help. http://www.mediafire.com/file/172448jkkgva4ki/iframeCommTest.fxp The problem, is that the parent.FABridge doesn't exist. My guess is that something in flex4 changed with regard to how things are located in the DOM. (This post is directly related to the original. I just thought this would be a clearer example of the problem. ) Thanks, -- Brian J. Ackermann brian.ackerm...@gmail.com http://brian.ackerm...@gmail.com 952.373.1626 -- -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] FABridge Problem - Please help!
I'm trying to get the IFrameCommTest example (from http://code.google.com/p/flex-iframe/) to work in Flex 4, and, while the IFrame itself works, the communication does not. In particular, I need to get the included HTML page to call functions from the flex app (I already have a way to get the Flex app to talk to the HTML). I've exported the project to facilitate your help. http://www.mediafire.com/file/172448jkkgva4ki/iframeCommTest.fxp The problem, is that the parent.FABridge doesn't exist. My guess is that something in flex4 changed with regard to how things are located in the DOM. (This post is directly related to the original. I just thought this would be a clearer example of the problem. ) Thanks, -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 --
Re: [flexcoders] FABridge Problem - Please help!
From my testing, I believe the problem is on the JS side of thing, and that the FABridge doesn't 'live' in the same location in the DOM in flex4, as compared with flex3. But we're both reasonably novice flex developers, so we could be mis-interpreting what we're seeing. In another version of the project, I have added some debugging to a text area on screen, and this.parent.FABridge and parent.FABridge and FABridge all return 'undefined'. Since that used to work just fine in flex3, it seems like maybe I just need to find the new 'path' in the DOM for example: this.parent.foo.bar.blah.FABridge Thanks, Brian -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- On Thu, Aug 26, 2010 at 12:38 PM, Alex Harui aha...@adobe.com wrote: I don’t have time right now to look and I don’t deal much with FABridge, but are you now saying that parent.FABridge is now the issue? The OP said it was FABridge.flex. Is this on the JS side or AS side? In Flex 4, a child component’s parent is not the main app, they get shoveled down into the skin. It think the document or parentDocument properties or FlexGlobals.topLevelApplication can access the main app. On 8/26/10 9:10 AM, Brian J. Ackermann brian.ackerm...@gmail.com wrote: I'm trying to get the IFrameCommTest example (from http://code.google.com/p/flex-iframe/) to work in Flex 4, and, while the IFrame itself works, the communication does not. In particular, I need to get the included HTML page to call functions from the flex app (I already have a way to get the Flex app to talk to the HTML). I've exported the project to facilitate your help. http://www.mediafire.com/file/172448jkkgva4ki/iframeCommTest.fxp The problem, is that the parent.FABridge doesn't exist. My guess is that something in flex4 changed with regard to how things are located in the DOM. (This post is directly related to the original. I just thought this would be a clearer example of the problem. ) Thanks, -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Error #2063: Error attempting to execute IME command.
I've never even heard of it until I started getting this message... As an update...I've since replaced all the Alert's with traces, and while they work fine now, the problem isn't limited to Alerts in the apps creationComplete(), but its affecting all Alert dialogs, regardless of position. -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- On Fri, Aug 20, 2010 at 1:10 AM, Alex Harui aha...@adobe.com wrote: Do you have IME installed on your system? On 8/19/10 1:37 PM, Brian J. Ackermann brian.ackerm...@gmail.com wrote: Hi, I'm getting the following error message, from a simple 'Alert.show(foo)' call, in my mx:Application's creationComplete handler. I see other examples of this working on the web Error: Error #2063: Error attempting to execute IME command. at flash.system::IME$/set enabled() at mx.managers::FocusManager/focusInHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\FocusManager.as:642] at flash.display::Stage/set focus() at mx.core::UIComponent/setFocus()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9544] at mx.controls.alertClasses::AlertForm/commitProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\alertClasses\AlertForm.as:265] at mx.core::UIComponent/validateProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7933] at mx.managers::LayoutManager/validateClient()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:863] at mx.managers::PopUpManagerImpl/addPopUp()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\PopUpManagerImpl.as:384] at mx.managers::PopUpManager$/addPopUp()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\PopUpManager.as:193] at mx.controls::Alert$/show()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\Alert.as:618] at adminTrak::AdminTrak/init()[C:\SVN\webstore\trunk\tmpFlex_RenameMe\Flex\AdminTrak\src\adminTrak\AdminTrak.mxml:60] at adminTrak::AdminTrak/___AdminTrak_Application1_creationComplete()[C:\SVN\webstore\trunk\tmpFlex_RenameMe\Flex\AdminTrak\src\adminTrak\AdminTrak.mxml:11] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:12528] at mx.core::UIComponent/set initialized()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1627] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:759] at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072] in fact, this works: ?xml version=1.0 encoding=utf-8? s:Application xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark http://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx http://ns.adobe.com/flex/mx minWidth=955 minHeight=600 creationComplete=init() fx:Declarations !-- Place non-visual elements (e.g., services, value objects) here -- /fx:Declarations fx:Script ![CDATA[ import mx.controls.Alert; private function init():void { Alert.show(Starting the program); } ]] /fx:Script /s:Application I read up on IME, and I don't see anything in there that I'm the least bit familiar with. Certainly nothing that I've added to my code. Any ideas? -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Error #2063: Error attempting to execute IME command.
I don't recall updating my flash player yesterday.hmm.. Additionally. I've searched my entire project for the string IME, and nothing is foundI'm not using this little beastie at all. -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- On Fri, Aug 20, 2010 at 8:38 AM, Karim Beyrouti ka...@kurst.co.uk wrote: Had the same problem a while ago - and seem to remember it's got something to do with FP 10.1... On 20 Aug 2010, at 13:25, Brian J. Ackermann wrote: I've never even heard of it until I started getting this message... As an update...I've since replaced all the Alert's with traces, and while they work fine now, the problem isn't limited to Alerts in the apps creationComplete(), but its affecting all Alert dialogs, regardless of position. -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- On Fri, Aug 20, 2010 at 1:10 AM, Alex Harui aha...@adobe.com wrote: Do you have IME installed on your system? On 8/19/10 1:37 PM, Brian J. Ackermann brian.ackerm...@gmail.com wrote: Hi, I'm getting the following error message, from a simple 'Alert.show(foo)' call, in my mx:Application's creationComplete handler. I see other examples of this working on the web Error: Error #2063: Error attempting to execute IME command. at flash.system::IME$/set enabled() at mx.managers::FocusManager/focusInHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\FocusManager.as:642] at flash.display::Stage/set focus() at mx.core::UIComponent/setFocus()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9544] at mx.controls.alertClasses::AlertForm/commitProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\alertClasses\AlertForm.as:265] at mx.core::UIComponent/validateProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7933] at mx.managers::LayoutManager/validateClient()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:863] at mx.managers::PopUpManagerImpl/addPopUp()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\PopUpManagerImpl.as:384] at mx.managers::PopUpManager$/addPopUp()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\PopUpManager.as:193] at mx.controls::Alert$/show()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\Alert.as:618] at adminTrak::AdminTrak/init()[C:\SVN\webstore\trunk\tmpFlex_RenameMe\Flex\AdminTrak\src\adminTrak\AdminTrak.mxml:60] at adminTrak::AdminTrak/___AdminTrak_Application1_creationComplete()[C:\SVN\webstore\trunk\tmpFlex_RenameMe\Flex\AdminTrak\src\adminTrak\AdminTrak.mxml:11] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:12528] at mx.core::UIComponent/set initialized()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1627] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:759] at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072] in fact, this works: ?xml version=1.0 encoding=utf-8? s:Application xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark http://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx http://ns.adobe.com/flex/mx minWidth=955 minHeight=600 creationComplete=init() fx:Declarations !-- Place non-visual elements (e.g., services, value objects) here -- /fx:Declarations fx:Script ![CDATA[ import mx.controls.Alert; private function init():void { Alert.show(Starting the program); } ]] /fx:Script /s:Application I read up on IME, and I don't see anything in there that I'm the least bit familiar with. Certainly nothing that I've added to my code. Any ideas? -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Error #2063: Error attempting to execute IME command.
Hmm...peculiar. I ran the app in IE, FF, and GC. IE and FF are both 10.0 installs, and GC is on 10.1 somehow. IE doesn't work, throws all sorts of IME errors. FF seems to work perfectly. GC, doesn't throw errors, but also isn't working perfectly. I'm going to update my all my flashplayers, see what happens. time passes IE now works, but now FF(mis) behaves the same way as GC. Well, at least its some kind of progress, thanks! -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- On Fri, Aug 20, 2010 at 8:51 AM, Brian J. Ackermann brian.ackerm...@gmail.com wrote: I don't recall updating my flash player yesterday.hmm.. Additionally. I've searched my entire project for the string IME, and nothing is foundI'm not using this little beastie at all. -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- On Fri, Aug 20, 2010 at 8:38 AM, Karim Beyrouti ka...@kurst.co.uk wrote: Had the same problem a while ago - and seem to remember it's got something to do with FP 10.1... On 20 Aug 2010, at 13:25, Brian J. Ackermann wrote: I've never even heard of it until I started getting this message... As an update...I've since replaced all the Alert's with traces, and while they work fine now, the problem isn't limited to Alerts in the apps creationComplete(), but its affecting all Alert dialogs, regardless of position. -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- On Fri, Aug 20, 2010 at 1:10 AM, Alex Harui aha...@adobe.com wrote: Do you have IME installed on your system? On 8/19/10 1:37 PM, Brian J. Ackermann brian.ackerm...@gmail.com wrote: Hi, I'm getting the following error message, from a simple 'Alert.show(foo)' call, in my mx:Application's creationComplete handler. I see other examples of this working on the web Error: Error #2063: Error attempting to execute IME command. at flash.system::IME$/set enabled() at mx.managers::FocusManager/focusInHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\FocusManager.as:642] at flash.display::Stage/set focus() at mx.core::UIComponent/setFocus()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9544] at mx.controls.alertClasses::AlertForm/commitProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\alertClasses\AlertForm.as:265] at mx.core::UIComponent/validateProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7933] at mx.managers::LayoutManager/validateClient()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:863] at mx.managers::PopUpManagerImpl/addPopUp()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\PopUpManagerImpl.as:384] at mx.managers::PopUpManager$/addPopUp()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\PopUpManager.as:193] at mx.controls::Alert$/show()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\Alert.as:618] at adminTrak::AdminTrak/init()[C:\SVN\webstore\trunk\tmpFlex_RenameMe\Flex\AdminTrak\src\adminTrak\AdminTrak.mxml:60] at adminTrak::AdminTrak/___AdminTrak_Application1_creationComplete()[C:\SVN\webstore\trunk\tmpFlex_RenameMe\Flex\AdminTrak\src\adminTrak\AdminTrak.mxml:11] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:12528] at mx.core::UIComponent/set initialized()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1627] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:759] at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072] in fact, this works: ?xml version=1.0 encoding=utf-8? s:Application xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark http://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx http://ns.adobe.com/flex/mx minWidth=955 minHeight=600 creationComplete=init() fx:Declarations !-- Place non-visual elements (e.g., services, value objects) here -- /fx:Declarations fx:Script ![CDATA[ import mx.controls.Alert; private function init():void { Alert.show(Starting the program); } ]] /fx:Script /s:Application I read up on IME, and I don't see anything in there that I'm the least bit familiar with. Certainly nothing that I've added to my code. Any ideas? -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- -- Alex Harui Flex SDK Team Adobe System, Inc. http
Re: [flexcoders] Error #2063: Error attempting to execute IME command.
Hi Karim, All is well now. I updated the flash debugger to the latest, and after fixing another (unrelated) bug, all three browsers now behave themselves. Updating the flash player to the most recent solved it. I haven't a clue why it suddenly went belly up yesterday, but, at least I'm able to proceed again. -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- On Fri, Aug 20, 2010 at 12:09 PM, Karim Beyrouti ka...@kurst.co.uk wrote: I think it will depend what version of FP you are exporting to... sorry for being so vague - it's been a while since i have had this error... and i cant quite remember how i fixed it... also - some details of Flex / Flash Builder version or are you using FDT?... On 20 Aug 2010, at 16:34, Brian J. Ackermann wrote: Hmm...peculiar. I ran the app in IE, FF, and GC. IE and FF are both 10.0 installs, and GC is on 10.1 somehow. IE doesn't work, throws all sorts of IME errors. FF seems to work perfectly. GC, doesn't throw errors, but also isn't working perfectly. I'm going to update my all my flashplayers, see what happens. time passes IE now works, but now FF(mis) behaves the same way as GC. Well, at least its some kind of progress, thanks! -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- On Fri, Aug 20, 2010 at 8:51 AM, Brian J. Ackermann brian.ackerm...@gmail.com wrote: I don't recall updating my flash player yesterday.hmm.. Additionally. I've searched my entire project for the string IME, and nothing is foundI'm not using this little beastie at all. -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- On Fri, Aug 20, 2010 at 8:38 AM, Karim Beyrouti ka...@kurst.co.ukwrote: Had the same problem a while ago - and seem to remember it's got something to do with FP 10.1... On 20 Aug 2010, at 13:25, Brian J. Ackermann wrote: I've never even heard of it until I started getting this message... As an update...I've since replaced all the Alert's with traces, and while they work fine now, the problem isn't limited to Alerts in the apps creationComplete(), but its affecting all Alert dialogs, regardless of position. -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- On Fri, Aug 20, 2010 at 1:10 AM, Alex Harui aha...@adobe.com wrote: Do you have IME installed on your system? On 8/19/10 1:37 PM, Brian J. Ackermann brian.ackerm...@gmail.com wrote: Hi, I'm getting the following error message, from a simple 'Alert.show(foo)' call, in my mx:Application's creationComplete handler. I see other examples of this working on the web Error: Error #2063: Error attempting to execute IME command. at flash.system::IME$/set enabled() at mx.managers::FocusManager/focusInHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\FocusManager.as:642] at flash.display::Stage/set focus() at mx.core::UIComponent/setFocus()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9544] at mx.controls.alertClasses::AlertForm/commitProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\alertClasses\AlertForm.as:265] at mx.core::UIComponent/validateProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7933] at mx.managers::LayoutManager/validateClient()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:863] at mx.managers::PopUpManagerImpl/addPopUp()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\PopUpManagerImpl.as:384] at mx.managers::PopUpManager$/addPopUp()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\PopUpManager.as:193] at mx.controls::Alert$/show()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\Alert.as:618] at adminTrak::AdminTrak/init()[C:\SVN\webstore\trunk\tmpFlex_RenameMe\Flex\AdminTrak\src\adminTrak\AdminTrak.mxml:60] at adminTrak::AdminTrak/___AdminTrak_Application1_creationComplete()[C:\SVN\webstore\trunk\tmpFlex_RenameMe\Flex\AdminTrak\src\adminTrak\AdminTrak.mxml:11] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:12528] at mx.core::UIComponent/set initialized()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1627] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:759] at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072] in fact, this works: ?xml version=1.0 encoding=utf-8? s:Application
[flexcoders] Error #2063: Error attempting to execute IME command.
Hi, I'm getting the following error message, from a simple 'Alert.show(foo)' call, in my mx:Application's creationComplete handler. I see other examples of this working on the web Error: Error #2063: Error attempting to execute IME command. at flash.system::IME$/set enabled() at mx.managers::FocusManager/focusInHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\FocusManager.as:642] at flash.display::Stage/set focus() at mx.core::UIComponent/setFocus()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9544] at mx.controls.alertClasses::AlertForm/commitProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\alertClasses\AlertForm.as:265] at mx.core::UIComponent/validateProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7933] at mx.managers::LayoutManager/validateClient()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:863] at mx.managers::PopUpManagerImpl/addPopUp()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\PopUpManagerImpl.as:384] at mx.managers::PopUpManager$/addPopUp()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\PopUpManager.as:193] at mx.controls::Alert$/show()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\Alert.as:618] at adminTrak::AdminTrak/init()[C:\SVN\webstore\trunk\tmpFlex_RenameMe\Flex\AdminTrak\src\adminTrak\AdminTrak.mxml:60] at adminTrak::AdminTrak/___AdminTrak_Application1_creationComplete()[C:\SVN\webstore\trunk\tmpFlex_RenameMe\Flex\AdminTrak\src\adminTrak\AdminTrak.mxml:11] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:12528] at mx.core::UIComponent/set initialized()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1627] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:759] at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072] in fact, this works: ?xml version=1.0 encoding=utf-8? s:Application xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx minWidth=955 minHeight=600 creationComplete=init() fx:Declarations !-- Place non-visual elements (e.g., services, value objects) here -- /fx:Declarations fx:Script ![CDATA[ import mx.controls.Alert; private function init():void { Alert.show(Starting the program); } ]] /fx:Script /s:Application I read up on IME, and I don't see anything in there that I'm the least bit familiar with. Certainly nothing that I've added to my code. Any ideas? -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 --
Re: [flexcoders] Re: Could not resolve * to a component implementation.
So, its a class, even thought it doesn't declare a class inside the text? -- Brian J. Ackermann brian.ackerm...@gmail.com 952.373.1626 -- On Thu, Jul 1, 2010 at 10:21 PM, turbo_vb timh...@aol.com wrote: Glad that you were able to resolve the problem. The AS file IS a class, and if it lives in the same package as the mxml component, the compiler will balk; because it doesn't know which one to import elsewhere. Adobe best practice would have you use Uppercase for the first letter of all classes. Renaming the script class to something like FooScript.as or FooModel.as might be a better way to go. Cheers, -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Brian J. Ackermann brian.ackerm...@... wrote: Here's what the problem was. I had originally had a file called Foo.mxml which contained a lot of ActionScript Code. I decided to create a new ActionScript FILE to contain that script code. I named the file Foo.as, to indicate the correlation with the mxml file. Renaming this new as file to foo.as (lowercase f), resolves the issue. I'm not at all sure why this would have caused a conflict with the compiler, since it wasn't a classbut at least I've resolved the issue. On Thu, Jul 1, 2010 at 7:57 AM, valdhor valdhorli...@... wrote: One other thing to check. Make sure you are not using a reserved name for your component. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, turbo_vb TimHoff@ wrote: A couple things that you can check that might help: • Make sure that you have an import statement for the component in the parent class. • If your component is an AS class, make sure that the package, at the top of the class, is correct. • If your component is an AS component make sure that the class name, within the component, is correct. If you are using a constructor check that too. -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, Brian J. Ackermann brian.ackermann@ wrote: Hi, I'm a wee bit stuck on this, and was hoping you might have some input to help me. I'm getting the Could not resolve * to a component implementation. error message. However, everything I've read about this via Google hasn't helped my case in the slightest. I presume I'm just missing something obvious, but maybe its something more serious. So, to solve this problem, I've tried two things, and both work, as far as they take me. First, I added a new component, of the exact same variety, and then copied the contents of the erroring component into it. I replace the viewstack 'page' with the new component (which as near as I can tell is IDENTICAL, but with a different name), and the compiler error goes away. I can also solve this by simply renaming the original component letting FB4 refactor for me. The error goes away again. But if I then re-rename back to the original name, I get the compiler error again. I've tried to clean the project several times, and that doesn't help. I'd really like to understand what I've done wrong here. What am I missing? Thanks much!
Re: [flexcoders] Re: Could not resolve * to a component implementation.
Here's what the problem was. I had originally had a file called Foo.mxml which contained a lot of ActionScript Code. I decided to create a new ActionScript FILE to contain that script code. I named the file Foo.as, to indicate the correlation with the mxml file. Renaming this new as file to foo.as (lowercase f), resolves the issue. I'm not at all sure why this would have caused a conflict with the compiler, since it wasn't a classbut at least I've resolved the issue. On Thu, Jul 1, 2010 at 7:57 AM, valdhor valdhorli...@embarqmail.com wrote: One other thing to check. Make sure you are not using a reserved name for your component. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, turbo_vb timh...@... wrote: A couple things that you can check that might help: • Make sure that you have an import statement for the component in the parent class. • If your component is an AS class, make sure that the package, at the top of the class, is correct. • If your component is an AS component make sure that the class name, within the component, is correct. If you are using a constructor check that too. -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Brian J. Ackermann brian.ackermann@ wrote: Hi, I'm a wee bit stuck on this, and was hoping you might have some input to help me. I'm getting the Could not resolve * to a component implementation. error message. However, everything I've read about this via Google hasn't helped my case in the slightest. I presume I'm just missing something obvious, but maybe its something more serious. So, to solve this problem, I've tried two things, and both work, as far as they take me. First, I added a new component, of the exact same variety, and then copied the contents of the erroring component into it. I replace the viewstack 'page' with the new component (which as near as I can tell is IDENTICAL, but with a different name), and the compiler error goes away. I can also solve this by simply renaming the original component letting FB4 refactor for me. The error goes away again. But if I then re-rename back to the original name, I get the compiler error again. I've tried to clean the project several times, and that doesn't help. I'd really like to understand what I've done wrong here. What am I missing? Thanks much!
[flexcoders] Could not resolve * to a component implementation.
Hi, I'm a wee bit stuck on this, and was hoping you might have some input to help me. I'm getting the Could not resolve * to a component implementation. error message. However, everything I've read about this via Google hasn't helped my case in the slightest. I presume I'm just missing something obvious, but maybe its something more serious. So, to solve this problem, I've tried two things, and both work, as far as they take me. First, I added a new component, of the exact same variety, and then copied the contents of the erroring component into it. I replace the viewstack 'page' with the new component (which as near as I can tell is IDENTICAL, but with a different name), and the compiler error goes away. I can also solve this by simply renaming the original component letting FB4 refactor for me. The error goes away again. But if I then re-rename back to the original name, I get the compiler error again. I've tried to clean the project several times, and that doesn't help. I'd really like to understand what I've done wrong here. What am I missing? Thanks much!
Re: [flexcoders] Re: Capturing and Saving an image in Flex (BitmapData)
You'll need some server-side code to accept the image upload and save it to disk. It's pretty simple in PHP. On the Flex side, you'll just need to use something like URLLoader or HTTPService to POST the image to your upload form on the server. -Brian On Fri, Mar 5, 2010 at 10:50 AM, Wally Kolcz wko...@isavepets.com wrote: I have this so far. Where I have the ?? is where I would like to know a way to either transfer the newly created image to a folder on the server...or I am at the point I could just let them download it/save it and then reupload it (dont prefer that). public function saveImage():void { var bitmapData:BitmapData = new BitmapData(canvas.width, canvas.height); var rightNow:Date = new Date(); bitmapData.draw(canvas,new Matrix()); var bitmap : Bitmap = new Bitmap(bitmapData); var jpg:JPEGEncoder = new JPEGEncoder(); var ba:ByteArray = jpg.encode(bitmapData); ??(UserDataModel.getInstance().person.username + '-' + rightNow + '.jpg'); Alert.show(Your image has been saved and is in your photo gallery, Image Saved); } On 3/5/2010 10:21 AM, Michael wrote: In order to save the image file to disk, you need to use the AIR File API, which is available only to AIR applications. You can capture the image, encode it as PNG or JPEG using mx.graphics.codec.JPEGEncoder or mx.graphics.codec.PNGEncoder, then upload the resulting byte to a server. Then your server application can save the file to disk on the server. I found these two links helpful: http://stackoverflow.com/questions/780018/in-flex-how-do-i-create-populate-and-display-a-bitmap http://blog.everythingflex.com/2008/02/25/create-images-with-air-and-jpegencoder/ Hope this helps, Michael Portuesi --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Wally Kolcz wko...@... wko...@... wrote: Can someone point me to an example of using the BitmapData.draw() to capture an image of a container on the screen and save it to the harddisk of the server. I see some that show me how to capture and process the image, but the saving it to the server is a mystery. I want my kids to be able to save their drawings/colorings to the web site art gallery. Thanks!
Re: [flexcoders] VideoDisplay - video is playing, but without audio
One of our projects has suffered from a similar issue. We're streaming audio from Flash Media Server, and sometimes the audio will cut out - we still get cue points embedded in the audio, the NetStream object doesn't register any errors, and the rest of the app acts like the audio ends at the right time. We also have a recording aspect to our project, and when the audio cuts out, sometimes it will cut back in after we record something. We've really only noticed this problem when running the app on Windows 7 -- and it's more prevalent when the computer is connected via wireless. Have you noticed any similar patterns in your app? -Brian On Wed, Mar 3, 2010 at 10:30 PM, joyh2002 joyh2...@yahoo.com wrote: I use VideoDisplay to play videos in my Flex app. The videos are hosted in our local web server. The size of the video is around 10MB to 30MB. I need to play 60 to 80 videos throughout the app. The videos are playing fine, but the audio is missing after playing some videos - not reproducible all the time, but if that happens, all audio stops playing till the end of the app. What could be the issue? any idea? Thanks, Joy
Re: [flexcoders] help - code assist stopped working
Are you using FB as an Eclipse plugin? If so, you should be able to get the error log by going to Window-Show View-Other, then picking Error Log from the list. -Brian On Thu, Mar 4, 2010 at 11:55 AM, Chris Sheffield cmsheffi...@gmail.comwrote: I apologize. This is probably more of an Adobe Support issue, but since I'm using beta 2 of FB4, I wasn't sure what kind of support is currently available. Anyway, I was working on a project yesterday and all of a sudden my code assist stopped working in .as files. Still seems to work fine in .mxml files, so not sure what's going on. Has anyone run into this? Is there anything I can do? The error I receive is: Content Assist did not complete normally. Please see the log for more information. java.lang.NullPointerException I haven't checked the log because I have no idea where it can be found. Running on a Mac, btw. I suppose my next step is to simply reinstall the product if I can't find another fix. Thanks, Chris -- Chris Sheffield Read Naturally, Inc. www.readnaturally.com
[flexcoders] Flex Canvas horizontalCenter=0 Scrolling Bug
Reference from 2007 http://www.sephiroth.it/weblog/archives/2007/11/flex_canvas_bug_when_it_is_zoomed_in.php Just wondering if there is a work around for this. I am running into it now in my application development. It seems if the canvas is set not to clip content and the contents of the canvas grows the scrollbars should keep up with it. But is not what happens -- the edges of the contents get clipped. Bad news ... it is gonna be hard explaining this on to the client. LOL. It just doesn't make sense. If anyone knows of a work around let me know. Brian
[flexcoders] 3.3 API confusion
I'm confused. The livedocs show a new addAll() method in ListCollectionView: http://livedocs.adobe.com/flex/3/langref/mx/collections/ListCollectionView.html#addAll() However, even after installing SDK 3.3 from http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex3sdk , I was unable to to use it. Also, the source in the 3.3 SDK does not show it. So I decided to download the latest documentation from the Complete Flex 3 documentation section on http://www.adobe.com/support/documentation/en/flex/ to compare. The language reference in the download does NOT have the addAll() method, and in addition, it is marked as version 3.2! Is there some place to find the documentation corresponding to the last stable release, which is 3.3? Or am I missing something? Thanks, Brian PS: To add to my list of problems, the Yahoo Group search is only showing results up through mid-March.
[flexcoders] Nested DataGrid!
After wasting a ton of time trying to get nested array data from my JSON decode I found Nate Ross' DataGrid extension, NestedDataGrid... Works great, no labelFunction crap or any other cryptic work around, it just sets up like a regular DG or ADG with the great exception of dataField understands object.object.object.array(index] Check it out here: http://natescodevault.com/?p=61 Thanks, Nate, wherever you are!
[flexcoders] JSON decoded multidimensional array Datagrid labelFunction... help
Found this older thread below which looks like it could solve my problem if someone could just clarify a couple things for me: I've got a result handler that decodes a json response which is a mutlidimensional array. Right now I pass the event result toString and then set the string to a new array collection like so: private function httpsvcRH(event:ResultEvent):void { var data:Object = JSON.decode(event.result.toString()); myArray1 = new ArrayCollection(data.fruit); } I need fruit.name as well as grower.name, grower.id, and grower.address in the DG columns. I'm not clear, and haven't found an decent example of how to get the result data to the labelFunction functions or how I need to handle the result string differently to feed the DG. tia/ Tim Stewart-3 wrote: Hi, I too was frustratetd by this. I think it ought to work in the way you've coded it. You can get it to work with labelFunction as follows, but its more long-winded. mx:DataGridColumn labelFunction=practiceName headerText=Practice / private function labelFunction (case : Object, column : DataGridColumn) : String { return case.practice.name; } Cheers, Tim From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of michaelisraelcaplan Sent: Monday, 18 February 2008 6:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Accessing Multi Dimensional Array Collection Data in a DataGrid Hi there, Probably a rather straightforward solution that I am just overlooking. I have an array collection that is acting as the data provider for a datagrid. I have mapped out all the columns between the array collection and the data grid with the DataGridColumn element. However, my array collection is multi dimensional, and I can't figure out how to map deeper content to the data field. The each collection row contains a nested array called practice that has values. How do I map my datagrid column to the name property of the nested array practice? mx:DataGrid id=myCases dataProvider={cases} mx:columns mx:DataGridColumn dataField=practice.name headerText=Practice / mx:DataGridColumn dataField=acknowledged headerText=Ack / mx:DataGridColumn dataField=id headerText=Case / mx:DataGridColumn dataField=arrival_date headerText=Arrival / /mx:columns /mx:DataGrid Thanks, Mike
[flexcoders] Re: Flash Player 10: FileReference.save Security User event
I went around this by showing a progress animation while the PDF was being generated. When the return result fires, I replace the progress animation with a Download Now button. Lame, but more clean then an Are You sure? alert. --- In flexcoders@yahoogroups.com, Battershall, Jeff [EMAIL PROTECTED] wrote: Jason, I'm with you on this - I just posted on this minutes before you did. In my case, I'm generating a PDF on the server side and listening for the return event of that process and then initiating FileReference.download(). Requiring that the save() or download() call occur at the top level of the event handler is, in my opinion, just too restrictive. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jason Ervin Sent: Wednesday, November 12, 2008 11:32 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flash Player 10: FileReference.save Security User event Does anyone know if there is a way around the security feature of FileReference that requires a user event in order to execute FileReference.save? I have method that is called via a buttons click event, but this original eventhandler function calls three more functions via callLater (passing in the original event as an argument to callLater), but I still get the error telling me that when calling FileReference.save it has to be called because of a user event (gesture). I am I wrong to think that passing the initial click event along with callLater should be enough to pass the security requirement? Thanks, Jason -- 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] domainMemory in FP10?
Does anybody know what domainMemory does in Flash Player 10? I was just looking through the new APIs, and I came across this: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/system/ApplicationDomain.html#domainMemory The description is more than a little cryptic: Gets and sets the object on which domain-global memory operations will operate within this ApplicationDomain I haven't been able to find any more information on this, and I'm just curious on what it does. -Brian
Re: [flexcoders] domainMemory in FP10?
That was cruel, Matt, very cruel, as now I'm even more interested in how it works. :) On Tue, Oct 28, 2008 at 12:57 PM, Matt Chotin [EMAIL PROTECTED] wrote: Used for this stuff: http://www.peterelst.com/blog/2008/10/04/what-is-flacc-all-about/ On 10/28/08 9:55 AM, Brian Deitte [EMAIL PROTECTED] wrote: Does anybody know what domainMemory does in Flash Player 10? I was just looking through the new APIs, and I came across this: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/system/ApplicationDomain.html#domainMemory The description is more than a little cryptic: Gets and sets the object on which domain-global memory operations will operate within this ApplicationDomain I haven't been able to find any more information on this, and I'm just curious on what it does. -Brian
Re: [flexcoders] domainMemory in FP10?
Ah, of course, I get it now. It's for pointers in ActionScript. On Tue, Oct 28, 2008 at 1:00 PM, Brian Deitte [EMAIL PROTECTED] wrote: That was cruel, Matt, very cruel, as now I'm even more interested in how it works. :) On Tue, Oct 28, 2008 at 12:57 PM, Matt Chotin [EMAIL PROTECTED] wrote: Used for this stuff: http://www.peterelst.com/blog/2008/10/04/what-is-flacc-all-about/ On 10/28/08 9:55 AM, Brian Deitte [EMAIL PROTECTED] wrote: Does anybody know what domainMemory does in Flash Player 10? I was just looking through the new APIs, and I came across this: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/system/ApplicationDomain.html#domainMemory The description is more than a little cryptic: Gets and sets the object on which domain-global memory operations will operate within this ApplicationDomain I haven't been able to find any more information on this, and I'm just curious on what it does. -Brian
[flexcoders] Re: rsl error after new deployment - help needed!
Did you figure out a solution to this? I just deployed a brand new app to the web and a user has reported this exact same issue.
[flexcoders] Re: Create Help System in Flex - how to display html in a canvas or component?
I agree with Jeff. I have been building an app that includes an rss reader and found that html formatted RSS entries work pretty well -- it even properly displays links and images. The one problem (ironically) was that it can't display inline flash--like YouTube videos. So I tried the iframe approach but decided in the end to parse out any unsupported html tags and just display it in Flex. Much cleaner that way. In your case its even easier since you'll have control of the html you use in your help files. As far as Robohelp, they were acquired by Macromedia and so now Adobe has that too: http://www.adobe.com/products/robohelp/ --- In flexcoders@yahoogroups.com, Battershall, Jeff [EMAIL PROTECTED] wrote: If your HTML rendering needs are rudimentary, you can use HTTPService to retrieve HTML files and use them for the htmlText property of the Text control. It supports (but not that well) such things as unordered lists, paragraphs and such. I've used this in combination with a vew stack and button bar to display multiple pages of help text. It's crude, but it works. Conceivably you could incorporate a Tree component and use that as a menuing system to retreive content via HTTP and display it in your content area. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Friday, October 10, 2008 2:25 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Create Help System in Flex - how to display html in a canvas or component? Displaying full html in Flex (Flash Player) is not yet possible. What are your requirements? The simplest solution is to use a separate browser to display the html help pages. The Flex side needs to know where in the app the user is, and be able to determine the url to display. Using ExternalInterface you can exercise quite a bit of control over that window's behavior. Doing it all in Flex will be more difficult, primarily on the editing side. Dynamic display based on xml content is easy, but building a dynamic layout that looks like a help system might be a bit tricky. Directly editing xml files is not advised for non-developers, so you would need some king of wysiwyg editor... I would really like to see a Flex integration of something like RoboHelp. Who owns RoboHelp anyway? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of scottyale2008 Sent: Thursday, October 09, 2008 6:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Create Help System in Flex - how to display html in a canvas or component? I've built a flex gui that I want to display html files (or least that was my original thought). I tried doing some of the IFrame techniques but it doesn't seem to work on a mac. Anyway, the end-goal is for creating a help system. When certain links are clicked, I just want to display text in panel or component. The html files (or text files) would be separate so they can be easily edited and/or changed without a recompile of the swf. Should I try doing the external files in html, txt, or xml files? If XML, would I just fill up the node with pages of the text that represent the text? Sure I could do this with an html editor without flex, but I want this in a flex app!
[flexcoders] itemEditBeginning not being called
Hi, I'm hoping that I'm missing something trivial, but I can not figure out why itemEditBeginning or itemEditBegin is not being called in the following DataGrid example. I have put a simple alert in after the actual code I wanted to execute did not run. Do I need to set a particular property of the datagrid to make this work? All renderers are working correctly, but I'm not getting the hook pre- renderer. All renderers/editors are working as expected. Any advice will be greatly appreciated. Thanks, bri mx:DataGrid id=dgProgressGrid dataProvider={arrColReports} itemEditBegin=allowForEdit(event) itemEditBeginning=Alert.show('IN ITEM BEG') variableRowHeight=true height=500 mx:columns mx:DataGridColumn id=dgcProgressFN headerText=Finding Number dataField=FindingNumber visible=false / mx:DataGridColumn id=dgcProgressStatus headerText=Current Status width=150 dataField=FindingStatus itemRenderer=components.DGProgressStatusRenderer editable=false / mx:DataGridColumn id=dgcProgressSubmitDate headerText=Submitted Date dataField=SubmittedDate labelFunction=doFormatDate editable=false / mx:DataGridColumn id=dgcProgressComments rendererIsEditor=true headerText=Comments dataField=Comments width=200 wordWrap=true itemRenderer=components.DGTextRenderer editable=false / mx:DataGridColumn id=dgcProgressSubmitterFullName headerText=Submitted By dataField=SubmittedUserFullName editable=false/ /mx:columns /mx:DataGrid
[flexcoders] Flex 3 SWCs within CS3, again
Can you use framework-less Flex 3 SWCs within CS3? I assumed that you could do this if the compatibility-version flag was used and you didn't use any of the Flex framework. I haven't been able to get this to work, however. I asked about this about a month ago and the all-knowing Matt Chotin said it should work, so I'm hoping there's something I'm missing. A colleague of mine, Crystal West, created this example to show the issue: http://deitte.com/swc_test.zip The example has two SWCs within it, one created using Flash Authoring and one created using Flex 3. Try compiling swc_test.fla with just flash_bc_ads.swc in the same directory (that is, remove flex_bc_ads.swc). The fla should compile fine. Then try with just flex_bc_ads.swc. You should get compile errors related to AdTranslator class, etc. She tried a lot of variations on compiling with flex_bc_ads.swc, and nothing worked. flex_bc_ads.swc was built using the compatibility flag and doesn't use any of the Flex framework. She also tried compiling the Flex SWC using compute-digest=false (as recommended by Tim Walling http://timwalling.com/2007/10/22/compiling-flash-cs3-compatible-swcs-with-flex). That didn't work either, and, according to some of the comments on this blog post, didn't work for others. Any suggestions?
Re: [flexcoders] Compiler Extension point
Yeah, the only way you can add a new compiler extension is through the code. Although it doesn't seem too hard to add a non-code extension mechanism, a way to read in classes to instantiate and use from an XML file somewhere. -Brian On Wed, Aug 13, 2008 at 8:01 AM, Marvin Froeder [EMAIL PROTECTED] wrote: Hi folks, I was looking at flex SDK sources. Looking at ImplementationCompiler, there one As3Compiler is instanced and some extensions are added (addCompilerExtension) to As3Compiler. At present time I can only add extensions by change compiler code, right? Exists any extension point that I can call to add 3rdparty extensions to compiler? Or the only way is changing code? VELO
Re: [flexcoders] Re: Data caching dto's
This message is probably too late, but I'll answer anyways. If you're just trying to compare ten objects at a time, I'd just use the Array technique that you described. Assuming you need to do a deep equality check, just use ObjectUtil.equals() (or something like that, it's in the Flex framework). Comparing 10 (or 100) objects, assuming you're only comparing each object to one other object, shouldn't be very intensive. -Brian On Thu, Aug 7, 2008 at 11:45 AM, flexaustin [EMAIL PROTECTED] wrote: Actually obtaining the data isn't the issue. I more interested how do I go about comparing the old data to the new data? Array, some sort of custom hash, or xml. Which is faster or better? I would think array would be best by comparing old data array to new data array and then creating a third data array that holds all those that haven't changed? Yes all 500 objects are shown at once. The issue isn't getting the data its how slow and processor intensive it is to create the objects all over again if the data has changed. --- In flexcoders@yahoogroups.com, Brian Deitte [EMAIL PROTECTED] wrote: Caching of data across browser sessions, I assume? This is usually done with SharedObject. But I wonder if there's a way to rearchitect your application so this isn't needed? I assume that all 500 objects aren't shown at once and that you could implement some kind of paging mechanism. -Brian On Wed, Aug 6, 2008 at 3:17 PM, flexaustin [EMAIL PROTECTED] wrote: I was wondering if anyone has done any caching of data in Flex? And if so how did you do this? I have an application that pulls in up to 500 items and converts them to DTO's. The app then runs a routine, which generates objects based on those dto's. The generation of objects is very memory intensive so I need to reduce this to increase usability as right now the user has to wait until all 500 objects are created. I would like to be able to generate say the first 10 objects based off the old data, if the data hasn't changed since the last time the data was grab (via httpservice) then run the routine to create the other 490 objects. So sorting by saying N changed?...yes through out, N + 1 changed?no keep create object, N + 2 changed? yes through out.N+10 stop. Run...routine recreate the other 490 and stick them back in the correct order. Make sense?
Re: [flexcoders] Testing Internet Connection in Flex
If it's not AIR, just add event listeners for this, usually an IOErrorEvent. If you can listen for SecurityErrorEvent, make sure to do this as well, since depending on what you're loading, this could show up as the event for a connection being down. -Brian On Wed, Aug 6, 2008 at 4:06 PM, nagaofthesea [EMAIL PROTECTED] wrote: Howdy- Does anyone know of a way (AS3 or mx:CustomComponent) that tests if the user's internet connection is live? I have an application with error processing that needs to know if an RPC failed because the user's connection is down... Thanks! Naga
Re: [flexcoders] Data caching dto's
Caching of data across browser sessions, I assume? This is usually done with SharedObject. But I wonder if there's a way to rearchitect your application so this isn't needed? I assume that all 500 objects aren't shown at once and that you could implement some kind of paging mechanism. -Brian On Wed, Aug 6, 2008 at 3:17 PM, flexaustin [EMAIL PROTECTED] wrote: I was wondering if anyone has done any caching of data in Flex? And if so how did you do this? I have an application that pulls in up to 500 items and converts them to DTO's. The app then runs a routine, which generates objects based on those dto's. The generation of objects is very memory intensive so I need to reduce this to increase usability as right now the user has to wait until all 500 objects are created. I would like to be able to generate say the first 10 objects based off the old data, if the data hasn't changed since the last time the data was grab (via httpservice) then run the routine to create the other 490 objects. So sorting by saying N changed?...yes through out, N + 1 changed?no keep create object, N + 2 changed? yes through out.N+10 stop. Run...routine recreate the other 490 and stick them back in the correct order. Make sense?
[flexcoders] Flex 3 SWCs within CS3
Can you use framework-less Flex 3 SWCs within CS3? I'm having a hard time googling about information on this. I assumed that you could do this if the compatibility-version flag was used and you didn't use any of the Flex framework. The SWFs I'm creating in Authoring, however, are 1k and don't seem to actually use the classes in the SWC. I haven't tried decompiling the SWF yet to see what's actually happening in it. But is this expected to work? -Brian
Re: [flexcoders] Changing Parents
I did this recently, and it didn't cause havoc. What are seeing that goes wrong? I had two issues that I did needed to fix. One is that you have to remember to remove the child from the stage before adding it back to the application. The second is that the bindings were reexecuted when added back to the application, which I worked around by checking for the same value in the places I was observing bindings. -Brian On Thu, Aug 7, 2008 at 11:53 AM, wwwpl [EMAIL PROTECTED] wrote: I have an image viewer that I would like to go full screen. I now have my app taking up the full screen, but I need the image viewer window to become the size of the app window. The image viewer is a child of a child of a child of the Application. I am calling application.addChild (imageViewer) to get this to go full screen, but when I want to go back to the normal view, I do a application.removeChild(imageViewer) and I want to add it back to the parent it had before. But that doesn't work. How can I change parents of a component without causing havoc?
Re: [flexcoders] Re: parallel coordinates component with Flex3
Thanks for the pic Krist, excellent work! I am looking at network logs (IDS, email, antivirus, etc...) which can be very large, but for my purpose I will use a subset so the size will vary. Does your implementation have any interactions (brushing, sorting, coordinate adding, subtracting, reordering)? Any clustering or filtering algorithms? These are all features I would like to develop into a PC vis. Like I mentioned... the development I have done thus far is very meek compared to your accomplishment. Do you have any interest opening up your implementation so that other devs like myself could contribute and expand upon what you have done thus far? On Wed, Jul 23, 2008 at 2:08 PM, Krist Wongsuphasawat [EMAIL PROTECTED] wrote: Hi Brian, I am working on a custom parallel coordinate component in Flex 3, which I have attached the pictures within this email. By the way, how big is your dataset that you want to visualize? Regards, Krist W.
[flexcoders] Re: Right Mouse click
This might help: http://blog.flexexamples.com/2007/08/20/using-a-custom-context-menu-with-the-flex-datagrid-control/ B. --- In flexcoders@yahoogroups.com, Ben [EMAIL PROTECTED] wrote: I am in need of something like this as well. --- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2000@ wrote: In my program when user clicks on a DG's cell I am changing cell's color to show which cell was clicked. Now, they want to implement a ContextMenu on the grids. Can I highlight a cell in the same manner but from the right mouse click, just before the ContextMenu popups? Thanks
[flexcoders] Re: Flex Application will not refresh properly
Ah! That is a good idea, thank you. Brian --- In flexcoders@yahoogroups.com, Joseph Balderson [EMAIL PROTECTED] wrote: Load a proxy SWF which checks/sets a LocalSharedObject for a cookie/timestamp. If timestamp reached, lead main app swf with getTime() string on the filename; if not then load just the SWF filename, so the browser takes the SWF from the cache. You can set the timestamp artificially short for debugging so that it always takes it form the server. I've seen this done for login proxies which autofill the user/pass fields, then refresh them with blank ones after a certain time, or which query the server for whether an update to the app has been issued, which resets the timestamp/cookie. ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Brian Raymes wrote: Ah! That's a better approach, if you want a new swf loaded every time. Though, there should be a way to only load the swf if it has been updated. Obviously, we don't want the user to download the swf to determine whether or not a time stamp has changed, but how about some other server-side check, lets say, through the html file? Is it possible? --- In flexcoders@yahoogroups.com, Joseph Balderson news@ wrote: if you use SWFObject in your index.template.html or in your final HTML, and append the following js, the browser will never get the swf from the browser cache: ... mySwf.swf?+(new Date()).getTime() ... This will append a unique number at the end of the swf filename, making the browser think it's always a new file. or you could just clear the cache before every in-browser test. ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Brian Raymes wrote: I have had similar problems when using I.E. 7/8. Firefox has been more consistent, but Safari (my least favorite browser) seems to be working the best. It appears to me that swfs are cached inconsistently. If I update a swf, I expect my browser to load the new version. I have had to delete my browser cache way too often to remedy this. If you are using ColdFusion as a mediator, add this to the top of your index.cfm (or whatever name yours) to help force a re-load the swfs every time. You might be able to accomplish this without ColdFusion in the basic html template as well. cfheader name=Cache-control value=no-cache, no-store, must-revalidate, max-age=-1 cfheader name=Pragma value=no-cache, no-store cfheader name=Expires value=-1 I would rather my browser detect new versions of swfs... I don't like having to re-download every page visit. The software I am working on must be loaded consistently if a change is made on my end. It is important for my customers to see everything up-to-date. Let me know if you find a better solution. Brian --- In flexcoders@yahoogroups.com, Ryan Schlig ryan.schlig@ wrote: I am having problems viewing the changes in my application on refresh. I have to actually close my browser and open up a new session before my changes will be seen. This is not only a local problem, it also happens when I push out new versions of my application to our servers. It seems as though IIS is not detecting a change in the html or swf. Anyone else ran into this and found a solution? Ryan Schlig -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 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 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: Flex Application will not refresh properly
Ah! That's a better approach, if you want a new swf loaded every time. Though, there should be a way to only load the swf if it has been updated. Obviously, we don't want the user to download the swf to determine whether or not a time stamp has changed, but how about some other server-side check, lets say, through the html file? Is it possible? --- In flexcoders@yahoogroups.com, Joseph Balderson [EMAIL PROTECTED] wrote: if you use SWFObject in your index.template.html or in your final HTML, and append the following js, the browser will never get the swf from the browser cache: ... mySwf.swf?+(new Date()).getTime() ... This will append a unique number at the end of the swf filename, making the browser think it's always a new file. or you could just clear the cache before every in-browser test. ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Brian Raymes wrote: I have had similar problems when using I.E. 7/8. Firefox has been more consistent, but Safari (my least favorite browser) seems to be working the best. It appears to me that swfs are cached inconsistently. If I update a swf, I expect my browser to load the new version. I have had to delete my browser cache way too often to remedy this. If you are using ColdFusion as a mediator, add this to the top of your index.cfm (or whatever name yours) to help force a re-load the swfs every time. You might be able to accomplish this without ColdFusion in the basic html template as well. cfheader name=Cache-control value=no-cache, no-store, must-revalidate, max-age=-1 cfheader name=Pragma value=no-cache, no-store cfheader name=Expires value=-1 I would rather my browser detect new versions of swfs... I don't like having to re-download every page visit. The software I am working on must be loaded consistently if a change is made on my end. It is important for my customers to see everything up-to-date. Let me know if you find a better solution. Brian --- In flexcoders@yahoogroups.com, Ryan Schlig ryan.schlig@ wrote: I am having problems viewing the changes in my application on refresh. I have to actually close my browser and open up a new session before my changes will be seen. This is not only a local problem, it also happens when I push out new versions of my application to our servers. It seems as though IIS is not detecting a change in the html or swf. Anyone else ran into this and found a solution? Ryan Schlig -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: Flex Application will not refresh properly
I have had similar problems when using I.E. 7/8. Firefox has been more consistent, but Safari (my least favorite browser) seems to be working the best. It appears to me that swfs are cached inconsistently. If I update a swf, I expect my browser to load the new version. I have had to delete my browser cache way too often to remedy this. If you are using ColdFusion as a mediator, add this to the top of your index.cfm (or whatever name yours) to help force a re-load the swfs every time. You might be able to accomplish this without ColdFusion in the basic html template as well. cfheader name=Cache-control value=no-cache, no-store, must-revalidate, max-age=-1 cfheader name=Pragma value=no-cache, no-store cfheader name=Expires value=-1 I would rather my browser detect new versions of swfs... I don't like having to re-download every page visit. The software I am working on must be loaded consistently if a change is made on my end. It is important for my customers to see everything up-to-date. Let me know if you find a better solution. Brian --- In flexcoders@yahoogroups.com, Ryan Schlig [EMAIL PROTECTED] wrote: I am having problems viewing the changes in my application on refresh. I have to actually close my browser and open up a new session before my changes will be seen. This is not only a local problem, it also happens when I push out new versions of my application to our servers. It seems as though IIS is not detecting a change in the html or swf. Anyone else ran into this and found a solution? Ryan Schlig
[flexcoders] Documentation for FB Source Code for Eclipse
I'm trying to reuse some of Adobe plugin objects for FB (to create my own plugins), so I downloaded the source for FB (http://kb.adobe.com/selfservice/viewContent.do?externalId=4b243413sliceId=1), but it doesn't all seem to be there...when I look @ the plugins directory of my Eclipse install for FB, I do see all the jars required to run FB, but I can't see the source b/c it's not exported with the plugins...so where is it? If we want to extend FB by creating additonal plugins for Eclipse and leverage what Adobe's already created like: com.adobe.flexbuilder.editors.actionscript.ui.wizards.NewActionScriptClassWizard where can we get the original source so we can reuse objects like this? Or can we at least get some documentation if we can't see the src? (If it's already out there, then please show me the way.) tx -riley Brian Riley | RIA Architect Riley Internet Associates, Inc. cell: 617.480.0432 fax: 617.507.5947 email: [EMAIL PROTECTED] blog: Got RIA? LinkedIn: http://www.linkedin.com/in/brianmriley
[flexcoders] Re: How to avoid Image refresh?
You can always try Ely's SuperImage: http://www.quietlyscheming.com/blog/2007/01/23/some-thoughts-on-doubt-on-flex-as-the-best-option-orhow-i-made-my-flex-images-stop-dancing/ --- In flexcoders@yahoogroups.com, Robert Csiki [EMAIL PROTECTED] wrote: I have a datagrid with objects. The item renderer contains an Image object that grabs the content via URL from a remote server. Whenever I scroll up and down, there are server calls to get the image content again. It slows down the application. How can I control the Image object to avoid this unnecessary server call for the image refresh? Thanks, Robert.
[flexcoders] Re: pause not working in sequence of Iris effects?
Hi, thanks for your reply. What is the importance of ending the effect? I tried creating a canvas outside the main canvas, and putting the iris effects on that canvas. It didn't appear to make a difference. I put the loop in to _simulate_ the work that my app is doing in the middle of the sequence, which I thought was the cause of the delay in the 2nd effect. I'm using the startDelay property. When I use the startDelay property, it almost works. However, during the pause between the effects, the canvas is drawn onto the screen when the updates are done, and then the 2nd effect runs. I thought that setting autoLayout = false was supposed to prevent this. How can I update that canvas and not have it drawn on the screen? --- In flexcoders@yahoogroups.com, Varun Shetty [EMAIL PROTECTED] wrote: heya ... well couple of things i did.. cleaned ur code.. 'cause i dont like it with warnings on my flex .. :D (u dont have to do it) created a canvas outside the map.. since u are doing too many things on the map canvas . i would recommend keeping it separate from the iris effect.. also you need to end your effects effectively. i would never recommend putting a for loop to simulate a delay. there is startDelay property to make a delay. check the script below .. mebbe it solves ur problem. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=initApp() mx:Script ![CDATA[ import mx.events.EffectEvent; import mx.controls.Button; private function initApp():void { irisHideCanvas.addEventListener(EffectEvent.EFFECT_END, handleIrisEnd); irisShowCanvas.addEventListener(EffectEvent.EFFECT_START, handleIrisStart); irisShowCanvas.addEventListener(EffectEvent.EFFECT_END, resetAll); } private function addImages():void { for(var i:int = 0; i50; i++) { var button:Button = new Button(); button.label = Button + i; button.x = getIntBetween(0, map.width); button.y = getIntBetween(0, map.height); map.addChild(button); } } private function resetAll(event:EffectEvent):void { irisHideCanvas.end(); irisShowCanvas.end(); } private function clearAndNew():void { irisHideCanvas.end(); irisShowCanvas.end(); irisHideCanvas.play(); } private function handleIrisStart(event:EffectEvent):void { map.visible = true; } // try to clear all the map's children AFTER the irisHideCanvas //effect is done private function handleIrisEnd(event:EffectEvent):void { map.removeAllChildren(); map.visible = false; addImages(); irisShowCanvas.play(); } // returns an int 0 = result top private function nextInt(top:int):int { var temp:int = Math.round(Math.random()*1000); return temp % top; } private function getIntBetween(bottom:int, top:int):int { if(bottom = top) { return bottom; } else { return bottom + nextInt(1) % (1+top-bottom); } } ]] /mx:Script mx:Iris id=irisHideCanvas duration=1000 showTarget=false target={outerCanvas} / mx:Iris id=irisShowCanvas startDelay=500 duration=1000 showTarget=true target={outerCanvas}/ mx:Canvas id=outerCanvas mx:Canvas id=map x=10 y=10 width=360 height=201 backgroundColor=#00 visible={cb1.selected} /mx:Canvas /mx:Canvas mx:Button x=58 y=219 label=Add Images click=addImages()/ mx:Button x=160 y=219 label=Clear Images click=clearAndNew()/ mx:CheckBox id=cb1 x=266 y=221 label=visible selected=true/ /mx:Application On Mon, Mar 3, 2008 at 12:36 PM, Brian [EMAIL PROTECTED] wrote: I posted this last Friday. I'm bumping to try to get you smart people to take another look at this, earlier in the week; hope that's ok. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Brian briforge@ wrote: I'm trying to get a sequence of Iris effects working. I think I'm this '' close but just have one bug I can't squash. I made the following example to post here to show what I'm doing, but unfortunately it's not reproducing the error. What I've got is a Canvas full of objects. At a certain point, I want to wipe (not the effect) the canvas clean, and then re-populate it with a few new objects. I'm doing a sequence of Iris effects to hide the canvas, then do the processing of removing objects and adding new ones, then use the iris effect to re-show the canvas. The bug is, there is a delay on the iris effect when showing the canvas. It often re-appears about halfway done, instead of the smooth hide-and-show in this example. I thought the event handling of the handleIrisHideEnd with the pause and resume would have taken care of this, but it acts
[flexcoders] Re: pause not working in sequence of Iris effects?
I posted this last Friday. I'm bumping to try to get you smart people to take another look at this, earlier in the week; hope that's ok. --- In flexcoders@yahoogroups.com, Brian [EMAIL PROTECTED] wrote: I'm trying to get a sequence of Iris effects working. I think I'm this '' close but just have one bug I can't squash. I made the following example to post here to show what I'm doing, but unfortunately it's not reproducing the error. What I've got is a Canvas full of objects. At a certain point, I want to wipe (not the effect) the canvas clean, and then re-populate it with a few new objects. I'm doing a sequence of Iris effects to hide the canvas, then do the processing of removing objects and adding new ones, then use the iris effect to re-show the canvas. The bug is, there is a delay on the iris effect when showing the canvas. It often re-appears about halfway done, instead of the smooth hide-and-show in this example. I thought the event handling of the handleIrisHideEnd with the pause and resume would have taken care of this, but it acts as if there is no pause, and the removing-and-adding of canvas objects is happening at the same as the 2nd iris effect. Any ideas? Thanks ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=initApp() mx:Script ![CDATA[ import mx.events.EffectEvent; import mx.controls.Button; function initApp() { irisHideCanvas.addEventListener(EffectEvent.EFFECT_END, handleIrisEnd); } function addImages() { for(var i:int = 0; i5; i++) { var button:Button = new Button(); button.label = Button + i; button.x = getIntBetween(0, map.width); button.y = getIntBetween(0, map.height); map.addChild(button); } } function clearAndNew() { irisSequence.play(); } // try to clear all the map's children AFTER the irisHideCanvas effect is done function handleIrisEnd(event:EffectEvent) { irisSequence.pause(); map.removeAllChildren(); for(var i:int = 0; i 10; i++) { // trying to simulate long processing } addImages(); irisSequence.resume(); } // returns an int 0 = result top function nextInt(top:int):int { var temp:int = Math.round(Math.random()*1000); return temp % top; } function getIntBetween(bottom:int, top:int):int { if(bottom = top) { return bottom; } else { return bottom + nextInt(1) % (1+top-bottom); } } ]] /mx:Script mx:Sequence id=irisSequence mx:Iris id=irisHideCanvas duration=1000 showTarget=false target={map}/ mx:Iris id=irisShowCanvas duration=1000 showTarget=true target={map}/ /mx:Sequence mx:Canvas id=map x=10 y=10 width=360 height=201 backgroundColor=#00 visible={cb1.selected} showEffect={irisShowCanvas} hideEffect={irisHideCanvas} /mx:Canvas mx:Button x=58 y=219 label=Add Images click=addImages()/ mx:Button x=160 y=219 label=Clear Images click=clearAndNew()/ mx:CheckBox id=cb1 x=266 y=221 label=visible selected=true/ /mx:Application
[flexcoders] Re: How can I add Sprite / MovieClip to stage without error of not IUIComponent?
I tried that - same problem. In Container.addChild(DisplayObject), the first thing it does is check to see if the object passed in is an IUIComponent. I just realized I'm still using Flex2. Did this change in Flex 3? Is that the problem? --- In flexcoders@yahoogroups.com, Sherif Abdou [EMAIL PROTECTED] wrote: try adding it to a FlexSprite then to a UIComponenet or any of those FlexDisplayObject classes - Original Message From: Brian [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, March 1, 2008 5:32:13 PM Subject: [flexcoders] Re: How can I add Sprite / MovieClip to stage without error of not UIComponent I'm echoing the request for an example here because I'm having the exact same problem. How would you 'add everything meaningfull stuff as child of that UIComponent' , when UIComponent. addChild( ) has the same restrictions as the original component I tried adding the MovieClip to? I also tried adding a MovieClip to a TitleWindow for a popUp instead of the stage and had the same error. --- In [EMAIL PROTECTED] ups.com, helihobby helihobby@ .. wrote: Can you post an example please ? --- In [EMAIL PROTECTED] ups.com, Jonathan Lee jlee_lee740304@ wrote: What I did is just add a UIComponent under the container as a child. The add everything meaningful stuff as child of that UIComponent. helihobby helihobby@ wrote: This is the exact error I get: Main Thread (Suspended: TypeError: Error #1034: Type Coercion failed: cannot convert flash.display: :MovieClip@ 479b1f1 to mx.core.IUIComponen t.) mx.core::Container/http://www.adobe. com/2006/ flex/mx/internal ::addingChild mx.core::Container/ addChildAt mx.core::Container/ addChild TestAS12344/ setFire TestAS12344/ onClick TestAS12344/ __bb_click --- In [EMAIL PROTECTED] ups.com, helihobby helihobby@ wrote: How can I add Sprite / MovieClip to stage without error of not UIComponent ? Everytine I add a Sprite or MC I get the error ... even if I try to cast to a DisplayObject ... Any help is greatly appreciated ... Sean. - - --- Looking for last minute shopping deals? Find them fast with Yahoo! Search. Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
[flexcoders] Re: How can I add Sprite / MovieClip to stage without error of not UIComponent
I'm echoing the request for an example here because I'm having the exact same problem. How would you 'add everything meaningfull stuff as child of that UIComponent', when UIComponent.addChild() has the same restrictions as the original component I tried adding the MovieClip to? I also tried adding a MovieClip to a TitleWindow for a popUp instead of the stage and had the same error. --- In flexcoders@yahoogroups.com, helihobby [EMAIL PROTECTED] wrote: Can you post an example please ? --- In flexcoders@yahoogroups.com, Jonathan Lee jlee_lee740304@ wrote: What I did is just add a UIComponent under the container as a child. The add everything meaningful stuff as child of that UIComponent. helihobby helihobby@ wrote: This is the exact error I get: Main Thread (Suspended: TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::[EMAIL PROTECTED] to mx.core.IUIComponent.) mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::addingChild mx.core::Container/addChildAt mx.core::Container/addChild TestAS12344/setFire TestAS12344/onClick TestAS12344/__bb_click --- In flexcoders@yahoogroups.com, helihobby helihobby@ wrote: How can I add Sprite / MovieClip to stage without error of not UIComponent ? Everytine I add a Sprite or MC I get the error ... even if I try to cast to a DisplayObject ... Any help is greatly appreciated ... Sean. - Looking for last minute shopping deals? Find them fast with Yahoo! Search.
[flexcoders] pause not working in sequence of Iris effects?
I'm trying to get a sequence of Iris effects working. I think I'm this '' close but just have one bug I can't squash. I made the following example to post here to show what I'm doing, but unfortunately it's not reproducing the error. What I've got is a Canvas full of objects. At a certain point, I want to wipe (not the effect) the canvas clean, and then re-populate it with a few new objects. I'm doing a sequence of Iris effects to hide the canvas, then do the processing of removing objects and adding new ones, then use the iris effect to re-show the canvas. The bug is, there is a delay on the iris effect when showing the canvas. It often re-appears about halfway done, instead of the smooth hide-and-show in this example. I thought the event handling of the handleIrisHideEnd with the pause and resume would have taken care of this, but it acts as if there is no pause, and the removing-and-adding of canvas objects is happening at the same as the 2nd iris effect. Any ideas? Thanks ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=initApp() mx:Script ![CDATA[ import mx.events.EffectEvent; import mx.controls.Button; function initApp() { irisHideCanvas.addEventListener(EffectEvent.EFFECT_END, handleIrisEnd); } function addImages() { for(var i:int = 0; i5; i++) { var button:Button = new Button(); button.label = Button + i; button.x = getIntBetween(0, map.width); button.y = getIntBetween(0, map.height); map.addChild(button); } } function clearAndNew() { irisSequence.play(); } // try to clear all the map's children AFTER the irisHideCanvas effect is done function handleIrisEnd(event:EffectEvent) { irisSequence.pause(); map.removeAllChildren(); for(var i:int = 0; i 10; i++) { // trying to simulate long processing } addImages(); irisSequence.resume(); } // returns an int 0 = result top function nextInt(top:int):int { var temp:int = Math.round(Math.random()*1000); return temp % top; } function getIntBetween(bottom:int, top:int):int { if(bottom = top) { return bottom; } else { return bottom + nextInt(1) % (1+top-bottom); } } ]] /mx:Script mx:Sequence id=irisSequence mx:Iris id=irisHideCanvas duration=1000 showTarget=false target={map}/ mx:Iris id=irisShowCanvas duration=1000 showTarget=true target={map}/ /mx:Sequence mx:Canvas id=map x=10 y=10 width=360 height=201 backgroundColor=#00 visible={cb1.selected} showEffect={irisShowCanvas} hideEffect={irisHideCanvas} /mx:Canvas mx:Button x=58 y=219 label=Add Images click=addImages()/ mx:Button x=160 y=219 label=Clear Images click=clearAndNew()/ mx:CheckBox id=cb1 x=266 y=221 label=visible selected=true/ /mx:Application
[flexcoders] how to start with a dynamic actionscript class instead of mx:Application?
I've created a game with Flex, and now I'm trying to integrate MochiAds with it. They give you a preloader to use, but most of their documentation is actionscript-centric and oriented toward Flash developers and the Flash IDE. I tried using the preloader attribute of the mx:Application tag, but they told me that the 'main class' of the application has to be a dynamic class, which they said is impossible with MXML. Any idea how to do this? Seems like most of the Flex docs assume you're starting with an mx:Application tag as your entry point. I've asked on their developer forums as well but haven't gotten many details. Thanks
[flexcoders] Re: how to start with a dynamic actionscript class instead of mx:Application?
Well, here's one of the classes from their API doc. I think it's an example, but I tried calling this in my preloader attribute in mx:Application and it errored with a null error on the loaderInfo.addEventListener line. I tried to put my main mxml file in the MAIN_CLASS. The properties look to be the 'id' and 'res', although there is an additional one for AS3, called 'clip' and from the examples it looks like it's supposed to be a MovieClip class. From their docs, the important line appears to be the MochiAd.showPreGameAd(opts); near the end. They generate code for this based on your game and resolution, and tell you to put that in your 'main class' as they call it. Their generated code looks something like MochiAd.showPreGameAd(clip: root, id: someHexString, res: 800x600); Here's their example Preloader: package { import flash.display.DisplayObject; import flash.display.MovieClip; import flash.events.IOErrorEvent; import flash.utils.getDefinitionByName; // Must be dynamic! public dynamic class Preloader extends MovieClip { // Keep track to see if an ad loaded or not private var did_load:Boolean; // Change this class name to your main class public static var MAIN_CLASS:String = Test; // Substitute these for what's in the MochiAd code public static var GAME_OPTIONS:Object = {id: test, res:550x400}; public function Preloader() { super(); var f:Function = function(ev:IOErrorEvent):void { // Ignore event to prevent unhandled error exception } loaderInfo.addEventListener(IOErrorEvent.IO_ERROR, f); var opts:Object = {}; for (var k:String in GAME_OPTIONS) { opts[k] = GAME_OPTIONS[k]; } opts.ad_started = function ():void { did_load = true; } opts.ad_finished = function ():void { // don't directly reference the class, otherwise it will be // loaded before the preloader can begin var mainClass:Class = Class(getDefinitionByName(MAIN_CLASS)); var app:Object = new mainClass(); parent.addChild(app as DisplayObject); if (app.init) { app.init(did_load); } } opts.clip = this; MochiAd.showPreGameAd(opts); } } } --- In flexcoders@yahoogroups.com, Johannes Nel [EMAIL PROTECTED] wrote: try and find out what properties they are adding dynamically and implement that interface On Thu, Feb 14, 2008 at 9:48 AM, Brian [EMAIL PROTECTED] wrote: I've created a game with Flex, and now I'm trying to integrate MochiAds with it. They give you a preloader to use, but most of their documentation is actionscript-centric and oriented toward Flash developers and the Flash IDE. I tried using the preloader attribute of the mx:Application tag, but they told me that the 'main class' of the application has to be a dynamic class, which they said is impossible with MXML. Any idea how to do this? Seems like most of the Flex docs assume you're starting with an mx:Application tag as your entry point. I've asked on their developer forums as well but haven't gotten many details. Thanks -- j:pn \\no comment
[flexcoders] Re: Text component drag bug
And to think I was the only one annoyed by this... I'm looking for a way to fix it as well. If I find a way, I will post it! --- In flexcoders@yahoogroups.com, philarmon [EMAIL PROTECTED] wrote: Hi ! Have someone managed to fix the dragging bug in the Text component ? If you click in the text and drag it down, the text scrolls although no scrolling is needed. The first line becomes invisible - very annoying ! I found this bug in the flex bug database but it is marked as resolved and closed there but it is not ... Just try the code snippet there and try to drag the text on the _left_ side of the textfield: https://bugs.adobe.com/jira/browse/SDK-484 Any ideas ? Thank you !
RE: [flexcoders] Changing defaultButton programatically
sheriff: my answer overlooked the obvious simple answer you mentioned below: the defaultbutton is available for the application control without having to reference an id as would be needed in other containers. it's still early here in California! regards. Brian From: [EMAIL PROTECTED] hoo.com [mailto:[EMAIL PROTECTED] roups.yahoo.com] On Behalf Of Sherif Abdou Sent: Saturday, February 09, 2008 9:38 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Changing defaultButton programatically you mean like this or am i misunderstanding something private function swapFunc():void { defaultButton=button2; } - Original Message From: Carl Vorster [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, February 9, 2008 11:26:56 AM Subject: RE: [flexcoders] Changing defaultButton programatically Hi, Maybe I'm not explaining properly... Here's some code; I've got three buttons in the code. With creation the default button is set to button1; so when I press enter, button1's function is being called. What I want to do is press the swap button and then change the default button from button1 to button2 so when I press enter, button2's function is being called. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe. com/2006/ mxml layout=absolute defaultButton={button1} creationComplete=initApp() mx:Script ![CDATA[ import mx.controls. Alert; private function initApp():void { focusManager. setFocus( field1); } private function func1():void { Alert.show(Button 1); } private function func2():void { Alert.show(Button 2); } private function swapFunc():void { Alert.show(Default button swapped); } ]] /mx:Script mx:TextInput x=25 y=36 text=Text width=207 id=field1/ mx:Button x=25 y=89 label=One id=button1 click=func1()/ mx:Button x=109 y=89 label=Two id=button2 click=func2()/ mx:Button x=176 y=89 label=Swap id=swap click=swapFunc()/ /mx:Application Thanks Car From: [EMAIL PROTECTED] ups.com http://ups.com/ [mailto: [EMAIL PROTECTED] ups.com http://ups.com/ ] On Behalf Of Sherif Abdou Sent: Saturday, February 09, 2008 6:49 PM To: [EMAIL PROTECTED] ups.com http://ups.com/ Subject: Re: [flexcoders] Changing defaultButton programatically you can make that button invisible and the other visibile, have diffrent skins. - Original Message From: Carl Vorster carl.vorster@ gmail.com http://gmail.com/ To: [EMAIL PROTECTED] ups.com http://ups.com/ Sent: Saturday, February 9, 2008 9:26:24 AM Subject: [flexcoders] Changing defaultButton programatically Hi, I've got a Panel with a default button, but would like to change the default button to another button when a certain event occurs. Can someone point me in the right direction to do this? Thanks in advance Carl Never miss a thing. Make Yahoo your homepage. http://us.rd.yahoo.com/evt=51438/*http:/www.yahoo.com/r/hs Never miss a thing. Make Yahoo your homepage. http://us.rd.yahoo.com/evt=51438/*http:/www.yahoo.com/r/hs
RE: [flexcoders] Re: RSS feed update
Hi; here is an example of implementing a poll in a flex app which I found searching around the net. I also will be implementing something like this soon so I thought I would give look. I hope this helps. regards. Brian From: [EMAIL PROTECTED] hoo.com [mailto:[EMAIL PROTECTED] roups.yahoo.com] On Behalf Of caffeinewabbit Sent: Monday, February 04, 2008 11:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: RSS feed update If it's traditional RSS content, then you'll have to add some sort of polling to the system that checks for changes in the feed over a certain interval. RSS is not push technology, so your client has no way of being notified when or if the feed updates. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , hworke [EMAIL PROTECTED] wrote: Hello, I am populating a datagrid from a RSS link. My grid is updated only if I manually (with a button click event) resend the httpservice request. How can I update the datagrid as the RSS content changes without sending the HttpService manually? Thanks
RE: [flexcoders] Re: RSS feed update -with URL this time
oh forgot the url http://www.cflex.net/showFileDetails.cfm?ObjectID=560 From: Dealy, Brian Sent: Monday, February 04, 2008 7:21 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: RSS feed update Hi; here is an example of implementing a poll in a flex app which I found searching around the net. I also will be implementing something like this soon so I thought I would give look. I hope this helps. regards. Brian From: [EMAIL PROTECTED] hoo.com [mailto:[EMAIL PROTECTED] roups.yahoo.com] On Behalf Of caffeinewabbit Sent: Monday, February 04, 2008 11:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: RSS feed update If it's traditional RSS content, then you'll have to add some sort of polling to the system that checks for changes in the feed over a certain interval. RSS is not push technology, so your client has no way of being notified when or if the feed updates. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , hworke [EMAIL PROTECTED] wrote: Hello, I am populating a datagrid from a RSS link. My grid is updated only if I manually (with a button click event) resend the httpservice request. How can I update the datagrid as the RSS content changes without sending the HttpService manually? Thanks
RE: [flexcoders] Re: Datechooser
http://www.holaflex.com/?p=46 tell us that the two buttons are declared internally as mx:internal which prevents us from accessing them directly but the site (in spanish) gives this example of a subclass that implements the overridden updateDisplayList method to set those buttons invisible. maybe change the package to fit your needs. I hope this helps you out. regards, Brian //DateChooserNoMonthButtons.as bajo fólder skins package skins { import mx.controls.DateChooser;import mx.core.mx_internal; // Paso 1: Usar decirle a ActionScript que use el namespace mx_internal use namespace mx_internal; public class DateChooserNoMonthButtons extends DateChooser { override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void{ super.updateDisplayList(unscaledWidth, unscaledHeight); // Usar la sintaxis this.mx_internal:: para hacer referencia a propiedades bajo el namespace mx_internal // translation: Use the syntax this.mx_internal:: to reference properties in the namespace mx_internal this.mx_internal::fwdMonthButton.visible=false; this.mx_internal::backMonthButton.visible=false; } } } and gives the use example: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:calendario=skins.* calendario:DateChooserNoMonthButtons / /mx:Application From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of vivek Sent: Monday, February 04, 2008 7:25 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Datechooser Sorry can you be more clear. Probably with an example. Thanks, Vivek --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Sherif Abdou [EMAIL PROTECTED] wrote: u can set the skins to mx.skins.ProgrammtingSkin which just leaves u with needing to stop the click of the buttons from happening. - Original Message From: vivek [EMAIL PROTECTED] To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Monday, February 4, 2008 8:59:52 PM Subject: [flexcoders] Datechooser Hi, First of all thanks for looking into my message. Does anyone know how to remove forward and back arrow button ( which is used to navigate month) from the header of the datechooser. Thanks Vivek __ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
RE: [flexcoders] Re: Object is Null? How can it be if it's a component in main.mxml. No access
Viewstack's children index is zero based, so you need to start at zero and go to two if(indexHit == 0){ Application.application.com1.getData(); }else if(indexHit==1){ Application.application.com2.getData(); }else if(indexHit==2){ //THIS FAILS Application.application.com3.getData(); }else{ //nothing } I hope this helps! regards, brian Brian Dealy Vice President - Technology SAIC Technical Fellow Science Application International Corp. San Diego, CA From: [EMAIL PROTECTED] hoo.com [mailto:[EMAIL PROTECTED] roups.yahoo.com] On Behalf Of Damien Legros Sent: Sunday, February 03, 2008 3:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Object is Null? How can it be if it's a component in main.mxml. No access Check the viewstack creationPolicy property :) --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , phipzkillah [EMAIL PROTECTED] wrote: I have a toggle bar that's data provider is a viewstack. When I click on the toggle bar an event is dispatched that my controller is listening for. My controller can access com1, com2, but always gives me a null pointer exception on com3. All components are identical. I just wrote this off the top of my head. So syntax might be off a bit and I only included the core functionality stripped down to demonstrate my issue. Any thoughts? Main.mxml //script import CustomClass(); protected var controller:CustomClass; private function init():void{ controller = new CustomClass(); } //body togglebar click=controller.doSomething(event) dataprovider=vs1/ viewstack id=vs1 com1: id=com1/ com2: id=com2/ com3: id=com3/ /viewstack CustomClass.as //Controller public function doSomething(event:ItemClickEvent):void{ var indexHit:int = event.index; if(indexHit == 1){ Application.application.com1.getData(); }else if(indexHit==2){ Application.application.com2.getData(); }else if(indexHit==3){ //THIS FAILS Application.application.com3.getData(); }else{ //nothing } }
[flexcoders] Resource Bundle in SWC Issue
I created a SWC with a properties file to hold my error msgs for my reusable piece of code (exactly like Cairngorm does it), and it compiles and the property file makes it in (I unzipped the SWC and saw it), but when I try to use the SWC the project complains that it can't find the resource bundle...thoughts? Flex Builder 3 Beta 3 Thanks! -riley Brian Riley | RIA Architect Riley Internet Associates, LLC cell:617.480.0432email:[EMAIL PROTECTED]:[EMAIL PROTECTED]:Got RIA?LinkedIn:http://www.linkedin.com/in/brianmriley
RE: [flexcoders] Imports being lost
Patrick this may be obvious to most, but sometimes I don't realize that flexbuilder collapses the imports and represents that by putting a plus next to the first one indicating it can be expanded by clicking on plus sign next to the first import... sometimes the little things can elude us. Brian From: [EMAIL PROTECTED] oo.com [mailto:[EMAIL PROTECTED] oups.yahoo.com] On Behalf Of djhatrick Sent: Saturday, January 12, 2008 12:15 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Imports being lost I have noticed several times throughout my AS3 project in Flexbuilder, with linked libraries, that sometimes a few of imports at the top of the files, all of a sudden go missing? It's a weird bug. Anybody notice this? Thanks, Patrick
[flexcoders] Re: why are these KeyboardEvent handlers not being called?
Thanks for your response Alex. I added the key listeners to the stage, after having an issue with a null stage reference when trying to get the stage off the Canvas during creationComplete. I changed it to applicationComplete and it worked. I still have to click on the App to get focus there. Unfortunately, I still can't reproduce the original problem, which involves using a timer to manage the many events generated when holding down a key. It works for awhile, meaning you hold down a key and the image continues to move across the screen. But then after awhile it stops working, the image stops moving while still holding the key down. Once the continued movement stops while holding down the key, it moves once when you press and hold the key down, and once again on KeyUp. I tried adding debug statements and here's where it gets even weirder. I've placed a text area below the Canvas where I write my debug statements so I can see them in real-time instead of having to go look at the trace output afterward. I added this to this smaller app below as well. I added a 'logFlag' because I don't want to log all these messages until it stops working. So I'll move around a bit until it stops working, then go into the debugger and set the logFlag to true, and continue to try to move around. At this point the error stops, when I have the logFlag turned on. That's what's even more baffling. I'm purely speculating, but it's almost like it's losing track of some of the timerComplete events and not calling the timerCompleteHandler method, unless there's another 'hook' in that timerCompleteHandler method, the 'hook' being the method call to the log TextArea. I know it doesn't make much sense, but that's the behavior I've been seeing. Should I repost this under another subject about timing events and/or a keyboard buffer, since we're beyond KeyboardEvents now? The mxml from the 'smaller' app is below again. It's bigger because I've included various bits from a few classes in my real app, in an attempt to include all the pieces that may have an impact on the problem. But again, this smaller app still doesn't reproduce the original problem. At one time I wondered if it had to do with memory management, since I'm adding lots of small 'tile images' as I move around, so I added a bit like that here as well. But I still can't reproduce the problem mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute width=800 height=600 applicationComplete=initApp() !--creationComplete=initApp() -- mx:Script ![CDATA[ import mx.controls.Image; import mx.managers.SystemManager; import flash.events.KeyboardEvent; import flash.utils.Timer; [Embed(source=../images/tiles13x13/man.gif)] public static var MAN:Class; [Embed(source=../images/tiles13x13/floor.gif)] public static var FLOOR:Class; const KEY_DOWN:String = 2; const KEY_UP:String = 8; const KEY_RIGHT:String = 6; const KEY_LEFT:String = 4; const DIR_LEFT:int = 0; const DIR_RIGHT:int = 1; const DIR_UP:int = 2; const DIR_DOWN:int = 3; var tileSize:int = 13; var curX:int; var curY:int; var keyEventReady:Boolean = true; var moveEventLogging:Boolean = false; var timer:Timer; var numLines:int; var moveEventNum:int=0; function initApp():void { log(into initApp); //map.setFocus(); map.stage.addEventListener(KeyboardEvent.KEY_UP, keyUpEventHandler); map.stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownEventHandler); image.source = MAN; curX = 10; curY = 15; image.x = curX * tileSize; image.y = curY * tileSize; timer = new Timer(40, 1); timer.addEventListener(TimerEvent.TIMER_COMPLETE, timerCompleteHandler); } public function keyDownEventHandler(e:KeyboardEvent):void { if(keyEventReady) {
RE: [flexcoders] Polymorphism help
Change your implementation method to something like. public override function execute(event:Event):void { if( event is LoginEvent ) { var loginEvent : LoginEvent = event as LoginEvent; // do some stuff here } } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nathan Arizona Sent: Wednesday, January 09, 2008 3:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Polymorphism help I am passing in a custom event that extends Event into a class that implements an interface. I get an incorrect signature and I am wondering why? Why do I not get the benefit of polymorphism? I have an interface as follows: package myCom.controller { import flash.events.Event; public interface ICommand { function execute(event:Event):void } } I have a pseudo abstract class as follows: package myCom.controller { import flash.events.Event; import myCom.view.events.LoginEvent; public class Command implements ICommand { public function execute(event:Event):void { } } } Here is a LoginCommand that extends the Command Class package myCom.controller { import flash.events.Event; import myCom.view.events.LoginEvent; import myCom.model.DashboardModel; import mx.rpc.remoting.RemoteObject; import mx.rpc.events.ResultEvent; import mx.rpc.events.FaultEvent; import myCom.model.User; import com.adobe.crypto.MD5; public class LoginCommand extends Command { public function LoginCommand() { } public override function execute(event:LoginEvent):void { } public function myResult(event:ResultEvent):void { var temp:User; temp = User(event.result); trace(myEvent is done); } public function resultFault(event:FaultEvent):void { trace(myeventFault + event.message.toString()); } } } I get an error saying that I have an incompatible signature because my execute function is expecting a LoginEvent. The LoginEvent extends Event. Commands execute signature expects an Event. Why do I not get the advantage of polymorphism here? Thanks for your insight. Arizona *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. ***
[flexcoders] why are these KeyboardEvent handlers not being called?
I'm trying to mock up an example of a problem I'm having in a larger app. I'm hoping to reproduce the problem in a smaller app that I can post here. I'm just trying to move the image around in response to the user pressing certain keys. But I'm having an even more fundamental problem with the mockup. The KeyboardEvent handlers are never being called for this Canvas. Any ideas why? Here's the mxml. You should be able to almost cutpaste this and have it work, except you'll need your own little image. FYI, the original problem has to do with handling the user holding down a movement key. Originally, that created events too fast for the image to render, and the image skipped around. So I added a timer so that it wouldn't accept the next event until the timer was done, like 40 ms later. That works for awhile, and then it mysteriously stops working and the image stops moving. That's the 'root' problem I'm trying to solve. I've included the code I'm using for that in the app below as well in case anyone is intrigued by that. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=initApp() width=800 height=600 mx:Script ![CDATA[ import mx.controls.Image; import flash.events.KeyboardEvent; import flash.utils.Timer; [Embed(source=../images/tiles13x13/man.gif)] public static var MAN:Class; const KEY_DOWN:String = 2; const KEY_UP:String = 8; const KEY_RIGHT:String = 6; const KEY_LEFT:String = 4; var tileSize:int = 13; var curX:int; var curY:int; var keyEventReady:Boolean = true; var timer:Timer; function initApp():void { trace(into initApp); map.addEventListener(KeyboardEvent.KEY_UP, keyUpEventHandler); map.addEventListener(KeyboardEvent.KEY_DOWN, keyDownEventHandler); image.source = MAN; curX = 10; curY = 15; image.x = curX * tileSize; image.y = curY * tileSize; timer = new Timer(40, 1); timer.addEventListener(TimerEvent.TIMER_COMPLETE, timerHandler); } public function keyDownEventHandler(e:KeyboardEvent):void { trace(got into KeyDownEventHandler); if(keyEventReady) { keyEventReady = false; var char:String = numToChar(e.charCode); if(char == KEY_DOWN) { curY++; } else if(char == KEY_UP) { curY--; } else if(char == KEY_LEFT) { curX--; } else if(char == KEY_RIGHT) { curX++; } image.x = curX * tileSize; image.y = curY * tileSize; timer.reset(); timer.start(); } } public function keyUpEventHandler(e:KeyboardEvent):void { trace(into KeyUpEventHandler); timer.stop(); keyEventReady = true; } public function timerHandler(e:TimerEvent):void { keyEventReady = true; } function numToChar(num:int):String { if (num 47 num 58) { var strNums:String = 0123456789; return strNums.charAt(num - 48); } else if (num 64 num 91) { var strCaps:String = ABCDEFGHIJKLMNOPQRSTUVWXYZ; return strCaps.charAt(num - 65);
[flexcoders] Re: The 'right' way to do custom styles
Good suggestion, Tom. I voted for #FB-11589. - Brian Morearty Intuit --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Friday 04 Jan 2008, Andrew Strader wrote: If you like re-usability, you would also want to consider whether making a property out of something that is very style-like may be very counterintuitive to a later developer. I do, yes, hmm. Vote for #FB-11589 :-) -- Tom Chiverton Helping to apprehensively deliver intuitive deliverables on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Re: adding backgroundColor to Canvas retains images after removeAllChildren()?
I may file a bug tonight. I registered with my gmail address, which is blocked at work so I can't complete the registration. I'd love to share code that highlights the problem, but am not sure what to share. It is literally as simple as removeAllChildren(); drawMap(); This is within my component which extends Canvas. The drawMap() function draws the new images, as determined by the data model. Those 2 lines of code are executed from 3 different events. It was working for 2 of them, and sporadically for the 3rd. Now it appears to be working more consistently on the one it wasn't working before. I have no idea what changed. If I uncover more information, I'll post it. Thanks for your reply Brian --- In flexcoders@yahoogroups.com, Deepa Subramaniam [EMAIL PROTECTED] wrote: I can't reproduce this but I just tried a simple case. Can you share some code highlighting the problem (and/or file a bug at bugs.adobe.com)? Thanks, deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian Sent: Monday, December 17, 2007 8:25 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] adding backgroundColor to Canvas retains images after removeAllChildren()? I've run into a strange behavior with a Canvas component. I'm using a Canvas to do some basic GoogleMap-like functionality: I add images to the canvas, it's got scrollbars because the added images sometimes extend the size of the canvas beyond it's container size, and it's draggable. There are times when I need to load a new set of images. In those cases, I simple call removeAllChildren() and then start adding my new images. It worked fine until I set the backgroundColor. Prior to this I had not set the bgColor so I was just using the default. The strange effect that has created is when I want to 'refresh' the canvas with a new set of images (and call removeAllChildren()), it leaves behind the images that are in the viewable portion of the canvas. If I drag the canvas around so that the old images get clipped, then they get 'painted' over with the background color (which is simply black). I've tried calling validateNow() in between the removeAllChildren() and drawing my new set of images, but that didn't clear up the old images either. I have no other properties or styles set on the canvas component except for left/right/bottom/top. Any ideas what's causing this? Thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
[flexcoders] Inspectable metadata tag
Is there a way to specify arrays as part of the Inspectable metadata tag. I'd like to specify that the developer can either use and a 1,0 array or a Y,N array. What I'm trying to do is something akin to: [Inspectable(enumeration=[1,0],[Y,N])] public var values : Array = [1,0]; Ok course, this blows up. If this isn't possible, what are some other options? Brian. *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. ***
[flexcoders] adding backgroundColor to Canvas retains images after removeAllChildren()?
I've run into a strange behavior with a Canvas component. I'm using a Canvas to do some basic GoogleMap-like functionality: I add images to the canvas, it's got scrollbars because the added images sometimes extend the size of the canvas beyond it's container size, and it's draggable. There are times when I need to load a new set of images. In those cases, I simple call removeAllChildren() and then start adding my new images. It worked fine until I set the backgroundColor. Prior to this I had not set the bgColor so I was just using the default. The strange effect that has created is when I want to 'refresh' the canvas with a new set of images (and call removeAllChildren()), it leaves behind the images that are in the viewable portion of the canvas. If I drag the canvas around so that the old images get clipped, then they get 'painted' over with the background color (which is simply black). I've tried calling validateNow() in between the removeAllChildren() and drawing my new set of images, but that didn't clear up the old images either. I have no other properties or styles set on the canvas component except for left/right/bottom/top. Any ideas what's causing this? Thanks
RE: [flexcoders] How to change the data access option in an existing Flex project
You can edit the .flexProperties file directly. Set up a flex project with the new Data Access Option and then compare the .flexProperties file and you should be able to make a few changes. Brian. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of weichungwang Sent: Thursday, December 13, 2007 9:40 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to change the data access option in an existing Flex project Does anyone know how an existing Flex project's data access option can be changed from Basic to ColdFusion Flash Remoting? The project was initially developed using the basic data access option. But now it needs to access data via Coldfusion Flash Remoting. Thanks Weichung *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. ***
[flexcoders] Re: Request for feedback on decimal math
Hi Gordon, I'm really happy to hear you're working on a decimal type. This will help us a lot. My company needs a decimal type for financial calculations, as we make financial software. I will send you some requirements that I think will help you a lot. But before I take the time to do that, let me respond by seconding Ralf's request for the ability to communicate with a back-end without losing precision. In answer to your follow-up question asking for clarification: 1. We would like seamless conversion between Flex decimal on the client and Java BigDecimal on the server over LCDS, maintaining precision. 2. We would like seamless conversion to and from String, maintaining precision. This would be useful for REST. - Brian Morearty Intuit --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: Do you just need to be able to roundtrip between 'decimal' and String without losing precision? Or have it mapped automatically to some Java type on the back end without losing precision? Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ralf Bokelberg Sent: Wednesday, December 12, 2007 11:28 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Request for feedback on decimal math One important usecase is the possibility to communicate with a backend without loosing precision. Cheers Ralf. On Dec 13, 2007 6:07 AM, Gordon Smith [EMAIL PROTECTED] mailto:gosmith%40adobe.com wrote: The next version of ECMAScript will probably have a 'decimal' datatype for doing decimal math. Using this datatype, 0.3 + 0.7 would be exactly 1.0, not something like 0.9997 as you currently get due to conversion from decimal to binary fractions. This datatype would probably support additional precision as well. Number only gives you 15 or 16 signficant digits. But if you had, say, 34, you could represent up to $99,999,999,999,999,999,999,999,999,999,999.99 exactly, and that's pretty large! The Player team is thinking about how to introduce a type like this even before the ECMAScript spec is complete, hopefully in a way that will be compatible with the spec. They'd like to gather some input on developers' requirements for decimal math. Some questions to think about are... What is your use case? Financial calculations? Scientific calculations? Are you mainly interested in calculating with decimal rather than binary fractions, or in having more significant digits, or are both important? Do you need support for an arbitrary number of significant digits (i.e., infinite precision)? If not, how many significant digits are sufficient? Do you need programmatic control over how much precision is used in calculations (e.g., rounding to 5 decimal places in every intermediate operation)? Do you need programmatic control over how rounding works? (Round down, round up, round to nearest, what happens with 1.5, etc.) Do you care about whether a new type like 'decimal' gets automatically coerced to other types like Number, int, and uint? - Gordon
RE: [flexcoders] How do I turn off the funky occurrence highlighting in FB3 Beta 3?
Uncheck the Mark Occurances button on the toolbar. Brian.. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Thursday, December 13, 2007 11:16 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How do I turn off the funky occurrence highlighting in FB3 Beta 3? So in Beta 3 it seems to highlight all occurrences of whatever type/method/var your cursor is in. How do I turn that off? Its quite distracting. Thanks, Ben *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. ***
RE: [flexcoders] Re: How do I turn off the funky occurrence highlighting in FB3 Beta 3?
Literally, about 5 minutes smarter than you :-) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Thursday, December 13, 2007 11:55 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How do I turn off the funky occurrence highlighting in FB3 Beta 3? You think you're s smart, don't you? :) --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Brian Holmes [EMAIL PROTECTED] wrote: Uncheck the Mark Occurances button on the toolbar. Brian.. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of ben.clinkinbeard Sent: Thursday, December 13, 2007 11:16 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] How do I turn off the funky occurrence highlighting in FB3 Beta 3? So in Beta 3 it seems to highlight all occurrences of whatever type/method/var your cursor is in. How do I turn that off? Its quite distracting. Thanks, Ben *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. *** *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. ***
[flexcoders] help with 'deep' data binding
I'm reposting this from late Friday afternoon, hope that's OK. I found a thread where something similar, and having to do with Cairngorm, was described as 'deep' data binding. I'd appreciate any help --- In flexcoders@yahoogroups.com, Brian [EMAIL PROTECTED] wrote: I'm trying to bind a Text control to a function to get the description of an item, when a property of a class inside that item changes. Is this at all possible? I've tried different variations of binding functions, Binding tags, etc. and still can't get it to work. Here are code snippets that will hopefully explain what I'm trying to do. package src { [Bindable] public class Toy { public getDescription():String { // will be overridden in subclasses return ; } } } package src { [Bindable] public class ToyTruck extends Toy { public var color:String; public override function getDescription():String { return color + truck; } } } package cart { import src.*; [Bindable] public class CartItem { public var quantity:int public var toy:Toy; public function getDescription():String { return quantity + + toy.getDescription(); } } } MXML component mx:VBox mx:Script ![CDATA[ import cart.CartItem; import src.*; [Bindable] public var _cartItem; public function getText(toy:Toy):String { return _packItem.getDescription(); } ]] /mx:Script mx:Text id=itemDesc text={getText(_cartItem.toy)}/ /mx:Vbox What I'd like to have happen is have the Text control update when the ToyTruck.color is changed by other events. Is this possible? The above code snippets is what I'm currently trying but the Tex is not updating. Even though the toy is not used directly in the getText() function, I thought having it as a parameter was how the function was triggered. The docs say that when a bindable property as an argument of the function changes, the function executes. In reality, there are different properties for different subclasses of Toy, which could be modified by several different events. This is why I'm trying to get the binding to work, so I don't have to manually update the Text control all over the place. I thought that was the whole point of Binding, but maybe I'm missing something. Or do I have to use a Binding tab for each of those different properties of the subclasses? I haven't tried that yet but I don't think that would work because the source has to be a string, right? Thanks
[flexcoders] Re: help with 'deep' data binding
Thanks for your reply Sam. I've tried this but it's still not working. I assume by 'broadcast the event' you meant use dispatchEvent(), which is what I did in the setter for the color of ToyTruck (with an event named itemChanged). Then I changed the binding of the Text component to be {_cartItem.getDescription()}, and I put the Binding metatag on the getDescription() method of CartItem to be [Bindable(itemChanged)] public function getDescription():String { ... } Are the minor differences I did from what you suggested a reason why it's not working? I mean is there a difference between having the Text component's binding being {_cartItem.toy.getDescription()} and {_cartItem.getDescription()} ? I guess I still don't understand how the above binding with a function as the source gets called when you don't have an bindable argument of the function. I keep rereading the Binding Data section of the Flex DevGuide and the Binding sections of 'Creating And Extending Flex 2 Components' to try to understand how it's all wired together, but it's not coming together for me. --- In flexcoders@yahoogroups.com, Samuel R. Neff [EMAIL PROTECTED] wrote: change your binding to be {_cartItem.toy.getDescription()} directly (which is implied to work from your definition of Toy, but not the same as your original binding). Then change getDescription() to define a specific bindable event: [Bindable(getDescriptionChanged)] public function getDescription():String { ... } And then you need to broadcast the event getDescriptionChanged anywhere that results in a change in value (i.e., never in the Toy base class, but in the color setter for ToyTruck). HTH, Sam --- We're Hiring! Seeking a passionate developer to join our team building Flex based products. Position is in the Washington D.C. metro area. If interested contact [EMAIL PROTECTED] -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian Sent: Monday, December 10, 2007 11:01 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] help with 'deep' data binding I'm reposting this from late Friday afternoon, hope that's OK. I found a thread where something similar, and having to do with Cairngorm, was described as 'deep' data binding. I'd appreciate any help --- In flexcoders@yahoogroups.com, Brian briforge@ wrote: I'm trying to bind a Text control to a function to get the description of an item, when a property of a class inside that item changes. Is this at all possible? I've tried different variations of binding functions, Binding tags, etc. and still can't get it to work. Here are code snippets that will hopefully explain what I'm trying to do. package src { [Bindable] public class Toy { public getDescription():String { // will be overridden in subclasses return ; } } } package src { [Bindable] public class ToyTruck extends Toy { public var color:String; public override function getDescription():String { return color + truck; } } } package cart { import src.*; [Bindable] public class CartItem { public var quantity:int public var toy:Toy; public function getDescription():String { return quantity + + toy.getDescription(); } } } MXML component mx:VBox mx:Script ![CDATA[ import cart.CartItem; import src.*; [Bindable] public var _cartItem; public function getText(toy:Toy):String { return _packItem.getDescription(); } ]] /mx:Script mx:Text id=itemDesc text={getText(_cartItem.toy)}/ /mx:Vbox What I'd like to have happen is have the Text control update when the ToyTruck.color is changed by other events. Is this possible? The above code snippets is what I'm currently trying but the Tex is not updating. Even though the toy is not used directly in the getText() function, I thought having it as a parameter was how the function was triggered. The docs say that when a bindable property as an argument of the function changes, the function executes. In reality, there are different properties for different subclasses of Toy, which could be modified by several different events. This is why I'm trying to get the binding to work, so I don't have to manually update the Text control all over the place. I thought that was the whole point of Binding, but maybe I'm missing something. Or do I have to use a Binding tab for each of those different properties of the subclasses? I haven't tried that yet but I don't think that would work because the source has to be a string, right? Thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders
[flexcoders] Re: help with 'deep' data binding - solved
This still wasn't working. I noticed while debugging that the method that was supposed to be listening to the 'descriptionChanged' was still never being called. I wondered if it had something to do with extending EventDispatcher, so I modified Toy to extend EventDispatcher and the listening method was still not being called. So I dug into EventDispatcher a bit and found another thread here that was exactly what I was looking for, titled 'Events and Non-Display Objects' : http://tech.groups.yahoo.com/group/flexcoders/message/95122 The Singleton 'SystemEventManager' is much simpler and I used that to get it working. In fact I already had a similar class in my app for a different event. It seems like the Binding model quickly gets far too complicated when not dealing with top-level classes. Thanks again for your help Sam. Brian --- In flexcoders@yahoogroups.com, Samuel R. Neff [EMAIL PROTECTED] wrote: You'll need to add the Bindable metadata to both getDescription on Toy() as well as CartItem() and within your CartItem class you need to listen for the changed event within Toy and rebroadcast a new changed event from CartItem when the contained Toy change it's description. HTH, Sam public class Toy extends EventDispatcher { [Bindable(descriptionChanged)] public function getDescription():String { return ; // assume is overridden in child class, which also broadcasts descriptionChanged } } public class CartItem extends EventDispatcher { private var _quantity:uint; [Bindable(quantityChanged)] public function get quantity():uint { return _quantity; } public function set quantity(value:uint):void { _quantity = value; dispatchEvent(new Event(quantityChanged)); dispatchEvent(new Event(descriptionChanged)); } private var _toy:Toy; [Bindable(toyChanged)] public function get toy():Toy { return _toy; } public function set toy(value:Toy):void { if (_toy) { _toy.removeEventListener(descriptionChanged, rebroadcastDescriptionChanged); } _toy = value; if (value) { value.addEventListener(descriptionChanged, rebroadcastDescriptionChanged); } dispatchEvent(new Event(toyChanged)); } private function rebroadcastDescriptionChanged(event:Event):void { dispatchEvent(new Event(descriptionChanged)); } [Bindable(descriptionChanged)] private function getDescription():String { return quantity + + toy.getDescription(); } } --- We're Hiring! Seeking a passionate developer to join our team building Flex based products. Position is in the Washington D.C. metro area. If interested contact [EMAIL PROTECTED]
[flexcoders] question on accordion usage with scrollable children and MouseOut
Reposting from a couple days ago, trying to ask the question better, hope that's ok... I've got an accordion component with VBoxes as the children. The VBoxes contain several custom components each, enough that I've got scroll bars on the accordion children VBoxes. The custom components have states that are supposed to be triggered on MouseOver and MouseOut. I use getBounds on these components to see if they contain the MouseOut event's point. If it doesn't, then I revert back to the original state. The MouseOver state adds a couple buttons at the bottom of the component. Everything is working fine, except for when the lowest visible component in one VBox is clipped by the header of the next accordion's child. When I move the mouse from inside the component, down out the bottom and over the next accordion header, the coordinates of the MouseOut event still fall within the local and content coordinate system of the component, even though it is clipped on the bottom by the header. I've read through the coordinate system docs and tried various permutations of local, global, and content positioning. I would've thought that the local coordinate system would reflect what is visible, but it isn't acting like that is the case. Any ideas on how I can detect MouseOut on that component that is clipped by the next accordion header? I may have to try different layouts, like a ViewStack with a TabBar
[flexcoders] help binding a property of a class inside a class to a Label
I'm trying to bind a Text control to a function to get the description of an item, when a property of a class inside that item changes. Is this at all possible? I've tried different variations of binding functions, Binding tags, etc. and still can't get it to work. Here are code snippets that will hopefully explain what I'm trying to do. package src { [Bindable] public class Toy { public getDescription():String { // will be overridden in subclasses return ; } } } package src { [Bindable] public class ToyTruck extends Toy { public var color:String; public override function getDescription():String { return color + truck; } } } package cart { import src.*; [Bindable] public class CartItem { public var quantity:int public var toy:Toy; public function getDescription():String { return quantity + + toy.getDescription(); } } } MXML component mx:VBox mx:Script ![CDATA[ import cart.CartItem; import src.*; [Bindable] public var _cartItem; public function getText(toy:Toy):String { return _packItem.getDescription(); } ]] /mx:Script mx:Text id=itemDesc text={getText(_cartItem.toy)}/ /mx:Vbox What I'd like to have happen is have the Text control update when the ToyTruck.color is changed by other events. Is this possible? The above code snippets is what I'm currently trying but the Tex is not updating. Even though the toy is not used directly in the getText() function, I thought having it as a parameter was how the function was triggered. The docs say that when a bindable property as an argument of the function changes, the function executes. In reality, there are different properties for different subclasses of Toy, which could be modified by several different events. This is why I'm trying to get the binding to work, so I don't have to manually update the Text control all over the place. I thought that was the whole point of Binding, but maybe I'm missing something. Or do I have to use a Binding tab for each of those different properties of the subclasses? I haven't tried that yet but I don't think that would work because the source has to be a string, right? Thanks
[flexcoders] Re: question on accordion usage with scrollable children and MouseOut - solved
Just wanted to update this with a solution in case anyone else in the future is going down the wrong road like I was. I found out about RollOut/RollOver events shortly after I posted this. Found an example of that in the FlexStore sample application on Adobe's site. So I switched to RollOut/RollOver. This fixed the issue with the accordion header, but created strange flickering where the events were firing as I moved around my container. The solution was here http://tech.groups.yahoo.com/group/flexcoders/message/88339 I think this is very un-intuitive and should be documented somewhere in the docs, the part about a container not having a background and that's what was triggering the RollOut/Over events. --- In flexcoders@yahoogroups.com, Brian [EMAIL PROTECTED] wrote: Reposting from a couple days ago, trying to ask the question better, hope that's ok... I've got an accordion component with VBoxes as the children. The VBoxes contain several custom components each, enough that I've got scroll bars on the accordion children VBoxes. The custom components have states that are supposed to be triggered on MouseOver and MouseOut. I use getBounds on these components to see if they contain the MouseOut event's point. If it doesn't, then I revert back to the original state. The MouseOver state adds a couple buttons at the bottom of the component. Everything is working fine, except for when the lowest visible component in one VBox is clipped by the header of the next accordion's child. When I move the mouse from inside the component, down out the bottom and over the next accordion header, the coordinates of the MouseOut event still fall within the local and content coordinate system of the component, even though it is clipped on the bottom by the header. I've read through the coordinate system docs and tried various permutations of local, global, and content positioning. I would've thought that the local coordinate system would reflect what is visible, but it isn't acting like that is the case. Any ideas on how I can detect MouseOut on that component that is clipped by the next accordion header? I may have to try different layouts, like a ViewStack with a TabBar
[flexcoders] getVisibleBounds()? clipped component with scrollbars in accordion
I've got a problem where I'm trying to detect a MouseOut on a component so that I can revert it back to its original state. The scenario is I've got an accordion component with VBoxes as the children. The VBoxes contain several custom components each, enough that I've got scroll bars on the accordion children VBoxes. The custom components have states that are supposed to be triggered on MouseOver and MouseOut. I use getBounds on these components to see if they contain the MouseOut event's point. If it doesn't, then I revert back to the original state. Everything is working fine, except for when the lowest visible component in one VBox is clipped by the header of the next accordion's child. When I move the mouse from inside the component, down out the bottom and over the next accordion header, the coordinates of the MouseOut event still fall within the local and content coordinate system of the component, even though it is clipped on the bottom by the header. I've read through the coordinate system docs and tried various permutations of local, global, and content positioning. I would've thought that the local coordinate system would reflect what is visible, but it isn't acting like that is the case. I've looked for a method like 'getVisibleBounds' but haven't found anything like it. Any ideas on how I'd do this? What am I missing?
[flexcoders] Re: Flex Builder 2 as eclipse plugin; installed, but no run configuration
Has anyone else had this problem? Is there a way to manually set up the run configuration, or a Flex application launcher? --- In flexcoders@yahoogroups.com, Brian [EMAIL PROTECTED] wrote: I'm trying to get a Flex development environment up on a new WinXP machine. I've got Eclipse 3.2 installed and it looks like the Flex Builder 2 installed as a plugin successfully. I imported the Flex project I've been working and it recognized it as a Flex project. The only problem is it looks like it's missing the Flex run/debug configuration. On my other machines where I have Flex setup as an eclipse plugin, I have the option to 'Run as...Flex application', but that option isn't there on the new machine. Any ideas?
[flexcoders] Flex Builder 2 as eclipse plugin; installed, but no run configuration
I'm trying to get a Flex development environment up on a new WinXP machine. I've got Eclipse 3.2 installed and it looks like the Flex Builder 2 installed as a plugin successfully. I imported the Flex project I've been working and it recognized it as a Flex project. The only problem is it looks like it's missing the Flex run/debug configuration. On my other machines where I have Flex setup as an eclipse plugin, I have the option to 'Run as...Flex application', but that option isn't there on the new machine. Any ideas?
[flexcoders] Re: error 1006: value not a function; on effect.play()
Thanks for the help Jason, adding the curly braces got it working. --- In flexcoders@yahoogroups.com, Jason Szeto [EMAIL PROTECTED] wrote: Brian, Usually it is more helpful if you can post a stack trace with line numbers. mx:Glow id=qtyGlow target=qtyDisplay color=0x99FF66/ Should be: mx:Glow id=qtyGlow target={qtyDisplay} color=0x99FF66/ You need to assign an effect target to an instance, not to the string qtyDisplay. Jason From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian Sent: Monday, November 26, 2007 1:00 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] error 1006: value not a function; on effect.play() I'm getting this error while trying to call play() on a glow effect I've created. I'm trying to call play() from within a function that is called as a result of a bindable value being changed. Basically I have a data model with bindable data and a Label which displays the data. When the data changes, I'm trying to play the glow effect on the label to highlight the change. What am I doing wrong? All these objects are defined in the same .mxml file. Relevant snippets are : myNS:Order id=order ... (inside script tag) public function getQtyDisplay(currentQty:int, maxQty:int):String { var result:String = currentQty+(+maxQty+); qtyGlow.play(); } ... mx:Glow id=qtyGlow target=qtyDisplay color=0x99FF66/ ... mx:Label id=qtyDisplay text={getQtyDisplay(order.currentQty, order.maxQty)}/ The getQtyDisplay() function works fine w/out the play() call. After I added it I started getting this error, so I wrapped the play() call in a try/catch block.
[flexcoders] error 1006: value not a function; on effect.play()
I'm getting this error while trying to call play() on a glow effect I've created. I'm trying to call play() from within a function that is called as a result of a bindable value being changed. Basically I have a data model with bindable data and a Label which displays the data. When the data changes, I'm trying to play the glow effect on the label to highlight the change. What am I doing wrong? All these objects are defined in the same .mxml file. Relevant snippets are : myNS:Order id=order ... (inside script tag) public function getQtyDisplay(currentQty:int, maxQty:int):String { var result:String = currentQty+(+maxQty+); qtyGlow.play(); } ... mx:Glow id=qtyGlow target=qtyDisplay color=0x99FF66/ ... mx:Label id=qtyDisplay text={getQtyDisplay(order.currentQty, order.maxQty)}/ The getQtyDisplay() function works fine w/out the play() call. After I added it I started getting this error, so I wrapped the play() call in a try/catch block.
[flexcoders] When are scrollbars added? question on timing of initial rendering
I have a Canvas object that I am dynamically adding images to in a method that is called via Application.creationComplete(). Sometimes the addition of these images results in clipping and the creation of scrollbars, so I'm checking the position of a certain image to see if it's in the viewable area. However, it seems like the scrollbars have not yet been added to the canvas at the time I am checking for them, which is immediately after I've added the images. I'm assuming it's some kind of rendering timing issue, like I'm still within the method stack so it doesn't render the canvas with the new objects yet. Is there a way to force the scrollbars to be added?
[flexcoders] Re: When are scrollbars added? question on timing of initial rendering
So it sounds like updateComplete event is fired anyway, is that correct? Would the scrollbars be added during that event, or during the validateNow()? I'm often adding a bunch of small images at one time, I don't see any slowdown. Unless the updateComplete/validation isn't done until my method stack completes. Is that the case? --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: There's a whole validation sequence after you call addChild. Theres an updateComplete event when done, and you can force it by calling validatenow(), but that can be expensive. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian Sent: Tuesday, November 20, 2007 12:25 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] When are scrollbars added? question on timing of initial rendering I have a Canvas object that I am dynamically adding images to in a method that is called via Application.creationComplete(). Sometimes the addition of these images results in clipping and the creation of scrollbars, so I'm checking the position of a certain image to see if it's in the viewable area. However, it seems like the scrollbars have not yet been added to the canvas at the time I am checking for them, which is immediately after I've added the images. I'm assuming it's some kind of rendering timing issue, like I'm still within the method stack so it doesn't render the canvas with the new objects yet. Is there a way to force the scrollbars to be added?
[flexcoders] Re: DataGrid not populating from XMLListCollection - namespace issue?
Thanks! I've tried it and am still having problems. Sorry for the newbie questions. You mentioned in the comments on your blog that you like to leave the resultFormat defaulted to Object. So then how do you construct your dataProvider? I'm confused because on one hand we're talking about handling XML/namespace data, but then you talk about leaving it as an Object. Do you still use a result Handler to parse your Object data into a different model? --- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: This might help, hope it does. http://www.returnundefined.com/2006/07/datagrid-labelfunction-and-namespaces/ --- In flexcoders@yahoogroups.com, Brian briforge@ wrote: I've been trying to get a DataGrid populated from a WebService and having much trouble. I'm wondering if the issue might be namespace issues, but I'm confused by the usage and syntax of namespace from the posts I've found here on that. There is no data in the DataGrid, but it does appear to flicker and slightly resize it self when I call the service so it looks like _something_ is going on. I've bound the service response to an XMLListCollection so I can trace() it and I can see the XML tree that should be displayed in the DataGrid. Any ideas why it's not working? Would appreciate any help, been banging my head on this for days now. Thanks. Here is the mxml : ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.collections.XMLListCollection; import mx.controls.Alert; import mx.rpc.events.ResultEvent; private namespace ovServices = http://services.company.com;; use namespace ovServices; [Bindable] public var ordMedList:XMLListCollection; public var ordMedXMLList:XMLList; public function handleOrdMedSearch(event:ResultEvent):void { trace(handling OrdMedSearchResult); var resultXML:XML = XML(event.result); ordMedXMLList = resultXML.child(OrdMedList); //trace(ordMedList : + ordMedList); ordMedList = new XMLListCollection(ordMedXMLList); } ]] /mx:Script mx:WebService id=ordMedSearchWS wsdl=http://localhost:8080/OrderViewWeb/services/OrderableMed?wsdl; showBusyCursor=true mx:operation name=searchStartsWith resultFormat=e4x result=handleOrdMedSearch(event) mx:request searchText{ordMedSearchText.text}/searchText /mx:request /mx:operation /mx:WebService mx:HBox x=10 y=70 mx:Label text=Orderable Med Search / mx:TextInput id=ordMedSearchText width=100/ mx:Button label=Search click=ordMedSearchWS.searchStartsWith.send()/ mx:Label / /mx:HBox mx:DataGrid x=10 y=100 id=ordMeds width=400 dataProvider={ordMedList} mx:columns mx:DataGridColumn headerText=Id dataField=id width=100/ mx:DataGridColumn headerText=Desc dataField=desc / /mx:columns /mx:DataGrid /mx:Application Here is the xml from the trace : OrdMedList xmlns:ns1=http://services.company.com/; xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; ns2:OrdMed xmlns:ns2=http://services.company.com; ns2:desc xmlns=http://services.company.com;tylenol/ns2:desc ns2:id xmlns=http://services.company.com;7607/ns2:id /ns2:OrdMed ns2:OrdMed xmlns:ns2=http://services.company.com; ns2:desc xmlns=http://services.company.com;aspirin/ns2:desc ns2:id xmlns=http://services.company.com;7608/ns2:id /ns2:OrdMed ns2:OrdMed xmlns:ns2=http://services.company.com; ns2:desc xmlns=http://services.company.com;ibuprofen/ns2:desc ns2:id xmlns=http://services.company.com;7609/ns2:id /ns2:OrdMed /OrdMedList
[flexcoders] Re: DataGrid not populating from WebService, error: Unknown Property
I started a new thread to continue this issue because I had gotten past the 'Unknown Property' error with the handlers. I wanted the new thread to be more specific to the problem, which has evolved into DataGrid not populating from XMLListCollection and namespace issues. Here's the new thread: http://tech.groups.yahoo.com/group/flexcoders/message/93492 The 'OrdMedList' node is there in the original post. But a quick answer to your question, here's what the structure looks like, w/out the namespaces: OrdMedList OrdMed id5/id desctylenol/desc /OrdMed OrdMed id97/id descadvil/desc /OrdMed ... /OrdMedList This is the output of the trace() on my XMLListCollection. I also implemented a labelFunction to try to deal with the namespace issue, and found a weird result: there are 10 OrdMed nodes in my list, but the length of OrdMedList is 1 and the labelFunction is invoked 4 times, 2 each for id and desc. --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: What does an OrdMedList node look like? Are id and desc first generation child nodes? Or attributes? Also in the hanlder, to check your dataprovider expression, do: trace(ordMedList.length) Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian Sent: Monday, November 12, 2007 11:25 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: DataGrid not populating from WebService, error: Unknown Property OK I've changed the resultFormat to e4x and added a result handler. With trace I'm able to see the result coming back. I tried using a namespace variable also after further searching here, but I'm still confused about how that works. The error is gone, but I'm still not getting any results in the datagrid. I'm assuming I'm missing something with the dataProvider expression and/or handling of the XMLList and Collection. Here's my current mxml: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute mx:Script ![CDATA[ import mx.collections.XMLListCollection; import mx.controls.Alert; import mx.rpc.events.ResultEvent; private namespace ovServices = http://services.project.company.com http://services.project.company.com ; use namespace ovServices; [Bindable] public var ordMedList:XMLListCollection; public var ordMedXMLList:XMLList; public function handleOrdMedSearch(event:ResultEvent):void { trace(handling OrdMedSearchResult); var resultXML:XML = XML(event.result); ordMedXMLList = resultXML.child(OrdMedList); //trace(ordMedList : + ordMedList); ordMedList = new XMLListCollection(); ordMedList.source = ordMedXMLList; } ]] /mx:Script mx:WebService id=ordMedSearchWS wsdl=http://localhost:8080/OrderViewWeb/services/OrderableMed?wsdl http://localhost:8080/OrderViewWeb/services/OrderableMed?wsdl showBusyCursor=true mx:operation name=searchStartsWith resultFormat=e4x result=handleOrdMedSearch(event) mx:request searchText{ordMedSearchText.text}/searchText /mx:request /mx:operation /mx:WebService mx:HBox x=10 y=70 mx:Label text=Orderable Med Search / mx:TextInput id=ordMedSearchText width=100/ mx:Button label=Search click=ordMedSearchWS.searchStartsWith.send()/ mx:Label / /mx:HBox mx:DataGrid x=10 y=100 id=ordMeds width=400 dataProvider={ordMedList} mx:columns mx:DataGridColumn headerText=Id dataField=id width=100/ mx:DataGridColumn headerText=Desc dataField=desc / /mx:columns /mx:DataGrid /mx:Application --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt tspratt@ wrote: Use trace() to display the xml content you are getting back from the WebService, so you can see exactly how to build the dataProvider expression... oops, you can't, because you are binding to lastResult. Consider using a result handler instead.. Also, specify resultFormat=e4x. The default converts your xml to a nested object structure of some sort. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Brian Sent: Friday, November 09, 2007 3:40 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] DataGrid not populating from WebService, error: Unknown Property OK I'm back with my next WebService question. I got one working when there was only one object coming back. Now I'm trying to populate a DataGrid with the lastResult from a WebService and I'm getting an Unknown Property error. I've searched for this here and am wondering if I either need a [] somewhere in the dataProvider or I need to put the result into an ArrayCollection first and then set the dataProvider to that. Or could
[flexcoders] Re: DataGrid not populating from WebService, error: Unknown Property
OK I've changed the resultFormat to e4x and added a result handler. With trace I'm able to see the result coming back. I tried using a namespace variable also after further searching here, but I'm still confused about how that works. The error is gone, but I'm still not getting any results in the datagrid. I'm assuming I'm missing something with the dataProvider expression and/or handling of the XMLList and Collection. Here's my current mxml: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.collections.XMLListCollection; import mx.controls.Alert; import mx.rpc.events.ResultEvent; private namespace ovServices = http://services.project.company.com;; use namespace ovServices; [Bindable] public var ordMedList:XMLListCollection; public var ordMedXMLList:XMLList; public function handleOrdMedSearch(event:ResultEvent):void { trace(handling OrdMedSearchResult); var resultXML:XML = XML(event.result); ordMedXMLList = resultXML.child(OrdMedList); //trace(ordMedList : + ordMedList); ordMedList = new XMLListCollection(); ordMedList.source = ordMedXMLList; } ]] /mx:Script mx:WebService id=ordMedSearchWS wsdl=http://localhost:8080/OrderViewWeb/services/OrderableMed?wsdl; showBusyCursor=true mx:operation name=searchStartsWith resultFormat=e4x result=handleOrdMedSearch(event) mx:request searchText{ordMedSearchText.text}/searchText /mx:request /mx:operation /mx:WebService mx:HBox x=10 y=70 mx:Label text=Orderable Med Search / mx:TextInput id=ordMedSearchText width=100/ mx:Button label=Search click=ordMedSearchWS.searchStartsWith.send()/ mx:Label / /mx:HBox mx:DataGrid x=10 y=100 id=ordMeds width=400 dataProvider={ordMedList} mx:columns mx:DataGridColumn headerText=Id dataField=id width=100/ mx:DataGridColumn headerText=Desc dataField=desc / /mx:columns /mx:DataGrid /mx:Application --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Use trace() to display the xml content you are getting back from the WebService, so you can see exactly how to build the dataProvider expression... oops, you can't, because you are binding to lastResult. Consider using a result handler instead.. Also, specify resultFormat=e4x. The default converts your xml to a nested object structure of some sort. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian Sent: Friday, November 09, 2007 3:40 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] DataGrid not populating from WebService, error: Unknown Property OK I'm back with my next WebService question. I got one working when there was only one object coming back. Now I'm trying to populate a DataGrid with the lastResult from a WebService and I'm getting an Unknown Property error. I've searched for this here and am wondering if I either need a [] somewhere in the dataProvider or I need to put the result into an ArrayCollection first and then set the dataProvider to that. Or could it be that the OrdMedList element doesn't have a namespace like all the other elements? That's due to a weird issue with CXF and JAX-WS. Here's the error: Error: Unknown Property: 'OrdMedList'. at mx.collections::ListCollectionView/http://www.adobe.com/2006/actionscrip t/flash/proxy::getProperty http://www.adobe.com/2006/actionscript/flash/proxy::getProperty () Here's my mxml: mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute mx:WebService id=ordMedSearchWS wsdl=http://localhost:8080/OrderWeb/services/OrdMed?wsdl http://localhost:8080/OrderWeb/services/OrdMed?wsdl showBusyCursor=true mx:operation name=searchStartsWith mx:request searchText{ordMedSearchText.text}/searchText /mx:request /mx:operation /mx:WebService mx:HBox x=10 y=70 mx:Label text=OrdMed Search / mx:TextInput id=ordMedSearchText width=100 / mx:Button label=Search click
[flexcoders] DataGrid not populating from XMLListCollection - namespace issue?
I've been trying to get a DataGrid populated from a WebService and having much trouble. I'm wondering if the issue might be namespace issues, but I'm confused by the usage and syntax of namespace from the posts I've found here on that. There is no data in the DataGrid, but it does appear to flicker and slightly resize it self when I call the service so it looks like _something_ is going on. I've bound the service response to an XMLListCollection so I can trace() it and I can see the XML tree that should be displayed in the DataGrid. Any ideas why it's not working? Would appreciate any help, been banging my head on this for days now. Thanks. Here is the mxml : ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.collections.XMLListCollection; import mx.controls.Alert; import mx.rpc.events.ResultEvent; private namespace ovServices = http://services.company.com;; use namespace ovServices; [Bindable] public var ordMedList:XMLListCollection; public var ordMedXMLList:XMLList; public function handleOrdMedSearch(event:ResultEvent):void { trace(handling OrdMedSearchResult); var resultXML:XML = XML(event.result); ordMedXMLList = resultXML.child(OrdMedList); //trace(ordMedList : + ordMedList); ordMedList = new XMLListCollection(ordMedXMLList); } ]] /mx:Script mx:WebService id=ordMedSearchWS wsdl=http://localhost:8080/OrderViewWeb/services/OrderableMed?wsdl; showBusyCursor=true mx:operation name=searchStartsWith resultFormat=e4x result=handleOrdMedSearch(event) mx:request searchText{ordMedSearchText.text}/searchText /mx:request /mx:operation /mx:WebService mx:HBox x=10 y=70 mx:Label text=Orderable Med Search / mx:TextInput id=ordMedSearchText width=100/ mx:Button label=Search click=ordMedSearchWS.searchStartsWith.send()/ mx:Label / /mx:HBox mx:DataGrid x=10 y=100 id=ordMeds width=400 dataProvider={ordMedList} mx:columns mx:DataGridColumn headerText=Id dataField=id width=100/ mx:DataGridColumn headerText=Desc dataField=desc / /mx:columns /mx:DataGrid /mx:Application Here is the xml from the trace : OrdMedList xmlns:ns1=http://services.company.com/; xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; ns2:OrdMed xmlns:ns2=http://services.company.com; ns2:desc xmlns=http://services.company.com;tylenol/ns2:desc ns2:id xmlns=http://services.company.com;7607/ns2:id /ns2:OrdMed ns2:OrdMed xmlns:ns2=http://services.company.com; ns2:desc xmlns=http://services.company.com;aspirin/ns2:desc ns2:id xmlns=http://services.company.com;7608/ns2:id /ns2:OrdMed ns2:OrdMed xmlns:ns2=http://services.company.com; ns2:desc xmlns=http://services.company.com;ibuprofen/ns2:desc ns2:id xmlns=http://services.company.com;7609/ns2:id /ns2:OrdMed /OrdMedList
[flexcoders] first try with RPC: Error calling JAX-WS service (CXF) from Flex
I'm new to both Flex and the CXF/XFire API I'm using for simple web services. I've gotten a basic interface working with Flex, and a simple service working with CXF and deployed to Tomcat locally, so now I'm trying to connect the two. I was able to connect to the webservice with a simple client from the CXF tutorials so I know that's working. One of the errors in the tomcat log was an IllegalArgumentException. I searched the CXF user forums for similar issues, and found one poster who mentioned that Flex uses RPC and CXF defaults to document/literal, could that be a problem? The error on the Flex side doesn't help much : [RPC Fault faultString=HTTP request error faultCode=Server.Error.Request faultDetail=Error: [IOErrorEvent type=ioError bubbles=false cancelable=false eventPhase=2 text=Error #2032: Stream Error. URL: http://localhost:8080/OrderViewWeb/services/FullOrder;]. URL: http://localhost:8080/OrderViewWeb/services/FullOrder;] at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler() at mx.rpc::Responder/fault() at mx.rpc::AsyncRequest/fault() at ::DirectHTTPMessageResponder/errorHandler() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/flash.net:URLLoader::redirectEvent() Here's the wsdl, hope that's not too much : ?xml version=1.0 encoding=utf-8? !-- Created with Liquid XML Studio 1.0.4.0 (http://www.liquid-technologies.com) -- wsdl:definitions xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:tns=http://services.project.company.com/; xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; name=FullOrderServiceImplService targetNamespace=http://services.project.company.com/; wsdl:types xs:schema xmlns=http://services.project.company.com/; xmlns:xs=http://www.w3.org/2001/XMLSchema; attributeFormDefault=unqualified elementFormDefault=unqualified targetNamespace=http://services.project.company.com/; xs:complexType name=fullOrder xs:sequence xs:element minOccurs=0 name=desc type=xs:string / xs:element name=id type=xs:int / /xs:sequence /xs:complexType xs:element name=getFullOrder type=getFullOrder / xs:complexType name=getFullOrder xs:sequence xs:element name=fullOrderId type=xs:int / /xs:sequence /xs:complexType xs:element name=getFullOrderResponse type=getFullOrderResponse / xs:complexType name=getFullOrderResponse xs:sequence xs:element minOccurs=0 name=return type=fullOrder / /xs:sequence /xs:complexType /xs:schema /wsdl:types wsdl:message name=getFullOrderResponse wsdl:part element=tns:getFullOrderResponse name=result /wsdl:part /wsdl:message wsdl:message name=getFullOrder wsdl:part element=tns:getFullOrder name=parameters /wsdl:part /wsdl:message wsdl:portType name=FullOrderService wsdl:operation name=getFullOrder wsdl:input message=tns:getFullOrder name=getFullOrder /wsdl:input wsdl:output message=tns:getFullOrderResponse name=getFullOrderResponse /wsdl:output /wsdl:operation /wsdl:portType wsdl:binding name=FullOrderServiceImplServiceSoapBinding type=tns:FullOrderService soap:binding style=document transport=http://schemas.xmlsoap.org/soap/http; / wsdl:operation name=getFullOrder soap:operation soapAction= style=document / wsdl:input name=getFullOrder soap:body use=literal / /wsdl:input wsdl:output name=getFullOrderResponse soap:body use=literal / /wsdl:output /wsdl:operation /wsdl:binding wsdl:service name=FullOrderServiceImplService wsdl:port binding=tns:FullOrderServiceImplServiceSoapBinding name=FullOrderServiceImplPort soap:address location=http://localhost:8080/testWebApp/services/FullOrder; / /wsdl:port /wsdl:service /wsdl:definitions
[flexcoders] Re: first try with RPC: Error calling JAX-WS service (CXF) from Flex
Fixed! With some help on the CXF side I was able to log the entire SOAP message and see that I wasn't sending the right value. I was using the wrong brackets [] in the mxml file instead of {}, so I was sending 'fullOrderId.text' instead of the value of that field, and it was expecting an int. Actually, I could argue that the 'root cause' of this error was my working from the PDF docs. My trial of Flex Builder 2 ran out earlier this week so I had to download the docs, instead of using the help files that Flex Builder opens up (I don't know what format those are in, but they're easier to read). The code snippets in the PDF docs are harder to read, very hard to distinguish between [] and {}. --- In flexcoders@yahoogroups.com, Brian [EMAIL PROTECTED] wrote: I'm new to both Flex and the CXF/XFire API I'm using for simple web services. I've gotten a basic interface working with Flex, and a simple service working with CXF and deployed to Tomcat locally, so now I'm trying to connect the two. I was able to connect to the webservice with a simple client from the CXF tutorials so I know that's working. One of the errors in the tomcat log was an IllegalArgumentException. I searched the CXF user forums for similar issues, and found one poster who mentioned that Flex uses RPC and CXF defaults to document/literal, could that be a problem? The error on the Flex side doesn't help much : [RPC Fault faultString=HTTP request error faultCode=Server.Error.Request faultDetail=Error: [IOErrorEvent type=ioError bubbles=false cancelable=false eventPhase=2 text=Error #2032: Stream Error. URL: http://localhost:8080/OrderViewWeb/services/FullOrder;]. URL: http://localhost:8080/OrderViewWeb/services/FullOrder;] at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler() at mx.rpc::Responder/fault() at mx.rpc::AsyncRequest/fault() at ::DirectHTTPMessageResponder/errorHandler() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/flash.net:URLLoader::redirectEvent() Here's the wsdl, hope that's not too much : ?xml version=1.0 encoding=utf-8? !-- Created with Liquid XML Studio 1.0.4.0 (http://www.liquid-technologies.com) -- wsdl:definitions xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:tns=http://services.project.company.com/; xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; name=FullOrderServiceImplService targetNamespace=http://services.project.company.com/; wsdl:types xs:schema xmlns=http://services.project.company.com/; xmlns:xs=http://www.w3.org/2001/XMLSchema; attributeFormDefault=unqualified elementFormDefault=unqualified targetNamespace=http://services.project.company.com/; xs:complexType name=fullOrder xs:sequence xs:element minOccurs=0 name=desc type=xs:string / xs:element name=id type=xs:int / /xs:sequence /xs:complexType xs:element name=getFullOrder type=getFullOrder / xs:complexType name=getFullOrder xs:sequence xs:element name=fullOrderId type=xs:int / /xs:sequence /xs:complexType xs:element name=getFullOrderResponse type=getFullOrderResponse / xs:complexType name=getFullOrderResponse xs:sequence xs:element minOccurs=0 name=return type=fullOrder / /xs:sequence /xs:complexType /xs:schema /wsdl:types wsdl:message name=getFullOrderResponse wsdl:part element=tns:getFullOrderResponse name=result /wsdl:part /wsdl:message wsdl:message name=getFullOrder wsdl:part element=tns:getFullOrder name=parameters /wsdl:part /wsdl:message wsdl:portType name=FullOrderService wsdl:operation name=getFullOrder wsdl:input message=tns:getFullOrder name=getFullOrder /wsdl:input wsdl:output message=tns:getFullOrderResponse name=getFullOrderResponse /wsdl:output /wsdl:operation /wsdl:portType wsdl:binding name=FullOrderServiceImplServiceSoapBinding type=tns:FullOrderService soap:binding style=document transport=http://schemas.xmlsoap.org/soap/http; / wsdl:operation name=getFullOrder soap:operation soapAction= style=document
[flexcoders] DataGrid not populating from WebService, error: Unknown Property
OK I'm back with my next WebService question. I got one working when there was only one object coming back. Now I'm trying to populate a DataGrid with the lastResult from a WebService and I'm getting an Unknown Property error. I've searched for this here and am wondering if I either need a [] somewhere in the dataProvider or I need to put the result into an ArrayCollection first and then set the dataProvider to that. Or could it be that the OrdMedList element doesn't have a namespace like all the other elements? That's due to a weird issue with CXF and JAX-WS. Here's the error: Error: Unknown Property: 'OrdMedList'. at mx.collections::ListCollectionView/http://www.adobe.com/2006/actionscript/flash/proxy::getProperty() Here's my mxml: mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:WebService id=ordMedSearchWS wsdl=http://localhost:8080/OrderWeb/services/OrdMed?wsdl; showBusyCursor=true mx:operation name=searchStartsWith mx:request searchText{ordMedSearchText.text}/searchText /mx:request /mx:operation /mx:WebService mx:HBox x=10 y=70 mx:Label text=OrdMed Search / mx:TextInput id=ordMedSearchText width=100 / mx:Button label=Search click=ordMedSearchWS.searchStartsWith.send() / mx:Label / /mx:HBox mx:DataGrid x=10 y=100 id=ordMeds width=400 dataProvider={ordMedSearchWS.searchStartsWith.lastResult.OrdMedList.OrdMed} mx:columns mx:DataGridColumn headerText=Id dataField=id / mx:DataGridColumn headerText=Desc dataField=desc width=150 / /mx:columns /mx:DataGrid /mx:Application Here's my WebService response: soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; soap:Body ns1:searchStartsWithResponse xmlns:ns1=http://services.project.company.com/; OrdMedList ns2:OrdMed xmlns:ns2=http://services.project.company.com; desc xmlns=http://services.project.company.com;Tylenol/desc id xmlns=http://services.project.company.com;7611/id /ns2:OrdMed ns2:OrdMed xmlns:ns2=http://services.project.company.com; desc xmlns=http://services.project.company.com;Acetaminophen/desc id xmlns=http://services.project.company.com;7612/id /ns2:OrdMed ns2:OrdMed xmlns:ns2=http://services.project.company.com; desc xmlns=http://services.project.company.com;Advil/desc id xmlns=http://services.project.company.com;7613/id /ns2:OrdMed /OrdMedList /ns1:searchStartsWithResponse /soap:Body /soap:Envelope
[flexcoders] defaults.css in a flex library isn't picking up the style changes
Dear FlexCoders, I have a flex library project with custom components and have defined a defaults.css in it to create default styles for my components. However, the styles are NOT getting picked up when I use the swc in a flex project both as a project reference to my library and also as a swc reference to the actual swc. Has anybody encountered something along these lines? It seems like the swc is getting used because I've defined some default border class references and they are getting picked up but everything else that has to style has no affect whatsoever. Perphlexed, Brian *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. ***
[flexcoders] question on mouse events in nested containers
I'm working with view states for the first time. BTW, so far this looks like a great tool for developers, really cool functionality built in. I'm trying to do something similar to the examples: I have a custom component which is basically a VBox containing an Image on top and then a label below the image. I've created a view state which adds an HBox below the label which contains 2 more buttons. On the parent component, I've got listeners for mouse events which are onMouseOver, switch to the view state with the additional buttons, onMouseOut, switch back to basic state. The MouseOver works as expected, the new buttons appear. But the problem is when I move the mouse down to the new buttons, this triggers a MouseOut on the Vbox, which causes the buttons to disappear. I thought the new buttons are still contained in the VBox, and so the MouseOut shouldn't be triggered until I move outside of those buttons. Do I have to add mouselisteners on the buttons that are added in the new state in order to keep them visible? That seems kind of circular or counter-intuitive. Suggestions? Thanks
[flexcoders] classes in packages
Dear FlexCoders, Is there a way to get all the classes that may exist in a package? Thanks for any help, Brian.. *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. ***
[flexcoders] how to determine if a component is offscreen in a Canvas?
I'm using a Canvas where I'm adding components dynamically at absolute positions, which may increase the size of the canvas beyond it's parent container. When this happens, scrollbars are created, as expected and desired. I'm trying to figure out if the component I just added are offscreen, in the clipped area. If that's the case, I want to be able to make that newly-added component visible by manually adjusting the scrollbars. I've done this before in another development environment so I know the logic to do, but I'm new to Flex and struggling to find which properties to use, amongst all the different properties and methods, i.e. height, maxHeight, measuredHeight, scrollPosition, etc. Thanks
[flexcoders] how to refer to Flex components in ActionScript?
There is a section of the Flex 2 Developer's Guide (- Using Flex Programming Language - Using ActionScript - Working with Flex components - Referring to Flex components ) that talks about referring to flex components via the id of that component. The example given uses inline script, but it states : The IDs for all tags in an MXML component, no matter how deeply nested they are, generate public variables of the component being defined. As a result, all id properties must be unique within a document. This also means that if you specified an ID for a component instance, you can access that component from anywhere in the application: from functions, external class files, imported ActionScript files, or inline scripts. I cannot get this to work with an external AS file/class. I have created external ActionScript files which define classes which I import in my main application .mxml script section. For example, I have a TextArea component in my .mxml file with an id='messageLog'. I have a business object defined in an external AS file, which is imported in the inline SCRIPT section of the same .mxml file. Yes, the AS files are in the source path and resolve fine. Based on the Developer's Guide, within that object I should be able to do something like 'messageLog.text = my message;'. I've even tried having a TextArea var within the business object, and trying to set that reference with Application.appliction.getChildByName(messageLog), but that returns null as well. What am I missing? Is it a scope or namespace issue? The way I'm getting around it now is using set methods in the SCRIPT section to pass the Flex components into the AS classes (many of which are singletons, but that's another issue), but that seems like a hack, or at least not any kind of best practice. Thanks
[flexcoders] Re: Flex Builder cannot locate the required debug version of the Flash Player
I'm having the same problem. I've installed Flex Builder 2.0.1. I also had installed the SDK first, so I have the %%FlexSDKInstall%%\player\debug\Install Flash Player 9.exe, which I have also installed. I still get the same message: C:\Program Files\Mozilla Firefox\plugins\NPSWF32.dll Flex Builder cannot locate the required version of the Flash Player. You may need to install Flash Player 9.0 or reinstall Flex Builder. Do you want to try to run your application with the current version? Any ideas? Thanks --- In flexcoders@yahoogroups.com, seemaherein [EMAIL PROTECTED] wrote: Thanks to all for response. The thing is that we can't install anything from any external site. My Flex builder version is 2.0.1 and flash player version is - 9.0.47.0 I'm not sure what to do? --- In flexcoders@yahoogroups.com, Mike Morearty mike.morearty@ wrote: You can also find the installer for the Flash player in the Player subdirectory of your Flex Builder installation. In fact, if you are running the Flex Builder 3 beta, then you should install the player from the Player directory, not the one from the official adobe.com download page. The reason for that is that the one in the Player directory is the beta of a newer Flash player, with enhancements that are needed by the Flex Builder 3 debugger. The adobe.com download page has the latest publicly released player, not the beta player. (By the time Flex Builder ships, the new player will of course be posted to the public download site.) - Mike Morearty, Adobe Flex Builder team --- In flexcoders@yahoogroups.com, seemaherein seemaherein@ wrote: Hi, when i try to run my application in debug mode - I am getting the following error: C:\WINDOWS\system32\Macromed\Flash\Flash9d.ocx Flex Builder cannot locate the required debug version of the Flash Player. You may need to install the debug version of Flash Player 9.0 or reinstall Flex Builder. Do you want to try to debug with the current version? any thoughts
Re: [flexcoders] FlexBuilder feature rich? Not as a development tool.
In flex builder 3 beta 2 alot of your concerns have been resolved. -Brian On 10/5/07, Matt Chotin [EMAIL PROTECTED] wrote: Beta 2 essentially exposes the features that we have planned for the Flex 3 release. But one thing that we talked about at MAX is how excited developers should be for Thermo, because it means that we're going to be able to allow Flex Builder to become even more developer focused while Thermo can solve more problems for designers. This means more engineering effort behind the coding features like you mention. So please file and vote for bugs (can't stress the voting enough) at http://bugs.adobe.com/flex, it's really the best way for us to gauge what developer features we need to focus on since you should assume we are not all-powerful and can't get everything done in a single release. Matt *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *dbronk *Sent:* Friday, October 05, 2007 6:34 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] FlexBuilder feature rich? Not as a development tool. I have seen a sneak peak a month or 2 ago of FlexBuilder 3. I've tried to load Flex 3 Beta 1 on my box with no luck. It simply erred out on the install. Have not tried beta 2 yet. But it is beta so that is fine. But, from the sneak peak I saw, there were only a few IDE features added that still leaves it behind almost every other IDE out there. I know that Flex 3 will add some basic refactoring features and some people said wow, that's cool!. But I said, wow, it's about time! My question... How much effort is Adobe putting into the FlexBuilder IDE (which we pay for) as it is very behind the times as far as expected developer productivity features (found in almost all FREE progamming language IDE's). I've been waiting for some extemely basic ones such as: - Code formatter to reformat code of sloppy developers not caring about the format of their code. - Import organization, which organizes, add/deletes imports as needed. - Smarter indentation. Cut a section of code from one place in my file to another, it should re-indent as necessary for the destination. - Renaming or moving a class should go through the entire project and refactor for me. These are just some of the most basic things and the list goes on. What, if any, should we expect to see in Flex 3? Don't get me wrong, I think Flex absolutely rocks! But, I do find that I lose productivity with these very basic and completely expected features that I'm use to having. Dale
RE: [flexcoders] Flex always returns true, how is this possible?
Boolean(event.result) Did you try (event.result as Boolean) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of George Georgiou Sent: Thursday, October 04, 2007 3:24 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex always returns true, how is this possible? Hi guys, I have this very strange problem: here's my code for those that are willing to help: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute mx:Script ![CDATA[ import mx.rpc.events.ResultEvent; import mx.controls.Alert; private function submitForm():void { var params:Object = new Object(); params.firstName = firstName.text; params.lastName = lastName.text; myService.insertArtist(params); } private function myResultHandler(event:ResultEvent):void { if (Boolean(event.result) == true) { Alert.show(New Artist added!!); } else { Alert.show(Error); } } ]] /mx:Script mx:RemoteObject id=myService destination=ColdFusion source= RemoteObject.cfc.queries result=myResultHandler(event) showBusyCursor=true / mx:Form mx:FormItem mx:Label text=First Name / mx:TextInput id=firstName / /mx:FormItem mx:FormItem mx:Label text=Last Name / mx:TextInput id=lastName / /mx:FormItem mx:FormItem mx:Button label=Submit click=submitForm(); / /mx:FormItem /mx:Form /mx:Application and my simple CFC contains cffunction name=insertArtist access=remote returntype=boolean cfargument name=firstName type=string cfargument name=lastName type=string cfset success = true cftry cfquery name=qInsertArtist datasource=flexdata insert into tbl_test (firstName,lastName) values ('#arguments.firstName#','#arguments.lastName#') /cfquery cfcatch type=database cfset success = false /cfcatch /cftry cfreturn success /cffunction Notice that even if I enter to the end of my cffunction the cfreturn false, my myResultHandler always returns a New Artist Added (meaning that it always report true). The tbl_test table does not even exist!!! How is it possible to get a 'True' message from Flex? is that kind of a bug? Or am I doing something wrong? I used to have a similar problem when using an HTTPService. Thanks for your help, really helpful :) George *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. ***
[flexcoders] Yahoo Search Error 2032 but no error on Yahoo API Image Search
When I run an image search there is no problem.. I've isolated it's not a firewall, cross domain, API key and typographical issue. Got any ideas guys? Code is below,,, ERROR yahooapis.com/WebSearchService/V1/webSearch?appid=myID]. URL: http://search.yahooapis.com/WebSearchService/V1/webSearch;] at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::f aultHandler() at mx.rpc::Responder/fault() at mx.rpc::AsyncRequest/fault() at ::DirectHTTPMessageResponder/errorHandler() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE ventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/flash.net:URLLoader::redirectEvent() CODE ySrv.send({appid: 'mykey', query: tl.selectedItems.name}); currentState = 'details'; mx:HTTPService id=ySrv url=http://search.yahooapis.com/WebSearchService/V1/webSearch/
[flexcoders] jamjar windows
Anyone know of any code available to create context/tooltip windows like being used in jamjar? Brian.. *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. ***
RE: [flexcoders] jamjar windows
In JamJar http://labs.adobe.com/technologies/jamjar/ When you click on the icons contextual windows pointing back to the icon appear. I'd like to do something similar. Brian.. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: Thursday, September 27, 2007 9:59 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] jamjar windows On Thursday 27 Sep 2007, [EMAIL PROTECTED] wrote: being used in jamjar? In what ? -- Tom Chiverton Helping to synergistically administrate high-yield systems on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. ***
RE: [flexcoders] New Project using ColdFusion Flash Remoting Service
George, Pretty sure server side compile only works with Cold Fusion 8. You might want to check the Cold Fusion docs. Brian.. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of George Georgiou Sent: Tuesday, September 25, 2007 2:42 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] New Project using ColdFusion Flash Remoting Service Hi all, A quick and newbie question - i m sure this is easy for most of you. I want to test the flash remoting service of ColdFusion and flex. I have a book on Flex explains perfectly some examples but it has very poor help in setting up the whole thing. This is my scenario: I have coldfusion 7.0.2 running on a different machine on my local network on win2k3 server. I have opened a new website on my IIS which can be accessed at http://myexample.flex http://myexample.flex . Placing .cfm files there works perfectly! Now, I create in FlexBuilder 2 a new project using the option ColdFusion Flash Remoting Service. I am asked to enter the following: Root Folder : I have created a mapping that points directly to the coldfusion root folder: this is o:\cfusionmx7\wwwroot (even if I try to add something different there it fails to validate). Root URL : I have entered my http://myexample.flex http://myexample.flex there that's it, i hit Next, i try to wrinte some MXML (anything really) but it fails to compile, it keeps running and running with no result. Could you please help me on this? Thanks a lot, George *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. ***