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!
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] 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] FABridge Problem - Please help!
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
[flexcoders] FABridge Problem - Please help!
I'm working with a team to put together a repeatable checkout process. We are using a Flex shopping cart and then opening up an IFrame using flexiframe to capitalize on our ASP.net secure checkout server. This works like a charm until we click on a simple button in ASP.net that does one thing - and one thing only. It's supposed to trigger a process, using FABridge, to get us back to the first `page' in the Flex application so as to run another transaction.A few things I have done, and please let me know if you need more data, code, or whatever. I put FABridge.js in the Flex project's html-template folder. I put FABridge.as in the a `bridge' package in the Flex project. I put FABridge.js in the ASP.net project. I declare this file on the aspx page like so: script type=text/javascript src=../Scripts/FABridge.js/script Then, I declared the ASP.net button like so: asp:Button runat=server ID=btnNewOrder Text=Place New Order OnClientClick=newOrder();/ The newOrder function is written like so: script type=text/javascript function newOrder() { var flexApp = FABridge('AdminTrak', 'flex'); flexApp.setPage(0); } /script The setPage function in Flex looks like so: public function setPage(pageNum:int):void { model.pageSetter(pageNum, 2) } Now, I added a namespace on the view where this function resides like so: xmlns:bridge=bridge.* as well as the following declaration: fx:Declarations !-- Place non-visual elements (e.g., services, value objects) here -- bridge:FABridge bridgeName=flex / /fx:Declarations Also, I added the following line in my index.template.html file: flashvars.bridgeName = flex; So, I run a transaction and then click on the button to place a new order. All I get is an error that tells me that FABridge.flex is not defined. Please help.
[flexcoders] FABridge Debugging
Hi, I'm trying to find a tool which will let me debug apps that are largely written in JavaScript but use FABridge to control my Flex Application. Ideally something that will allow debugging of both sides of the app at the same time, or as part of the same process. Any suggestions most welcome. Kevin _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Simon Bailey Sent: 24 November 2008 08:44 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] DataGrid itemRenderer Woes Just a checkbox inside of it in answer to your first question. The reason I am using a column to ascertain visibility of the check box is due to using a vo to populate the header renderer and I need to make a comparison between the grid renderer current item and it corresponding column header vo. Cheers, Si On 24 Nov 2008, at 06:33, Alex Harui wrote: Are you changing the visibility of the entire renderer or just a checkbox inside it? Renderers on the recycle list get visible=false and set back to true when used again. If you completely hide a renderer, I'm not sure what would happen. Other than that, I would find a way to introspect the renderers and see if they did compute visible correctly for their data. It seems odd that your lookup of data.val is based on a column. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Simon Bailey Sent: Sunday, November 23, 2008 11:24 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] DataGrid itemRenderer Woes Ok I have stopped all the errors and essentially integrated your (Alex's) logic into my application after some serious hair pulling. The responsibility lies now with the method below for showing or hiding the check box: override protected function commitProperties():void { super.commitProperties(); var row:int = listData.rowIndex+1; visible = false; for( var i:int = 0; i data.ff.length; i++ ) { if( data.val[listData.columnIndex-1] != undefined data.val[listData.columnIndex-1].option[i] == row ) { visible = true; } } if (owner is ListBase) selected = ListBase(owner).isItemSelected(data); } And dammit if its still doing exactly the same as before?!? On 23 Nov 2008, at 04:48, Alex Harui wrote: Read the item renderers section on my blog (blogs.adobe.com/aharui). Start with the oldest posting. From: /spanflexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Simon Bailey Sent: Saturday, November 22, 2008 2:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] DataGrid itemRenderer Woes Hi, I have seen through google that this has been an issue but implementing various solutions still l! eaves my existing problem. Essentially I have a DataGrid with a custom itemRenderer displaying CheckBoxes. Within the renderer I am running a comparison on a value within the renderers data i.e. data.my_val and the current grid row and column values. Depending on whether the data value equals a specific row I show or hide the check box. I achieve this by running the comparison logic with the overridden updateDisplayList method below which works fine until scrolled. override protected function updateDisplayList( unscaledWidth:Number, unscaledHeight:Number ):void { super.updateDisplayList( unscaledWidth, unscaledHeight ); var row:int = listData.rowIndex+1; for( var! i:int = 0; i data.ff.length; i++ ) { if( data.val[listData.columnIndex-1] != undefined data.val[listData.columnIndex-1].option[i] == row ) { btn.visible = true; } } } The issue is on scroll all of the check boxes are displayed/hidden incorrectly and the whole grid messes right up! Any ideas pls would be appreciated. Si
[flexcoders] FABridge and Safari
I'm taking baby steps with FABridge, and I'm not a JavaScript developer, so bear with me please. The following works in Firefox, but not in Safari (I don't see the second alert) alert(hello); var flexApp = FABridge.flash.root(); var appWidth = flexApp.getWidth(); alert(hello again + appWidth); Any ideas or comments about the viability of the bridge?
[flexcoders] FABridge aclarations...
Hello, I'm working in one app and I want to call a method of javascript from actionscript and viceversa. When I download the fabridge from adobe labs, I read the doc, and I don't understand one thing, what are the first steps (in configuration), I say, I need to create a new HTML, and embed into it the swf compiled? Or I can use the html generated by the flex builder? I try to copy as the example but I don't get it works. Thanks a lot. Regards. -- Matías Nicolás Sommi
RE: [flexcoders] FABridge aclarations...
What part are you asking if it needs to be embedded? The javascript side that lives in the HTML definitely does not get embedded. You can launch your app that is using the FABrdige from your next HTML file or you can modify the HTML template file in FB to use the JS code from the FABridge html examples. Does that make sense? You still need the ActionScript side of things embedded in the swf to act as your component or proxy that links your AS methods throughout your app to your JS methods in the parent html file that is hosting the swf. Karl Cynergy From: flexcoders@yahoogroups.com on behalf of Matias Nicolas Sommi Sent: Fri 2/23/2007 8:35 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] FABridge aclarations... Hello, I'm working in one app and I want to call a method of javascript from actionscript and viceversa. When I download the fabridge from adobe labs, I read the doc, and I don't understand one thing, what are the first steps (in configuration), I say, I need to create a new HTML, and embed into it the swf compiled? Or I can use the html generated by the flex builder? I try to copy as the example but I don't get it works. Thanks a lot. Regards. -- Matías Nicolás Sommi
Re: [flexcoders] FABridge aclarations...
Thanks Karl, but i think that I don't explain me very good. Flex generate an MXML app, and, only in the bin folder, autogenerate the swf file. The Javascript code is included in a HTML page. Flex generate an HTML page only in the bin folder containing the javascript methods for history and other thinks like the get plugin. The think that I want to know is if I need touch these HTML generated by flex, or generate one myself, but in this last case, I need the swf file... I must use the bin/swf file? This comment is because in the fabridge example, the html embedd the swf file from a src, and in the html generated by flex, the swf is embbeded on the fly or something like this. If you have a very simple example (the most simple as possible) of one flex project using fabridge I appreciate it very much. Thanks again. -- Matías Nicolás Sommi 2007/2/23, Karl Johnson [EMAIL PROTECTED]: What part are you asking if it needs to be embedded? The javascript side that lives in the HTML definitely does not get embedded. You can launch your app that is using the FABrdige from your next HTML file or you can modify the HTML template file in FB to use the JS code from the FABridge html examples. Does that make sense? You still need the ActionScript side of things embedded in the swf to act as your component or proxy that links your AS methods throughout your app to your JS methods in the parent html file that is hosting the swf. Karl Cynergy -- *From:* flexcoders@yahoogroups.com on behalf of Matias Nicolas Sommi *Sent:* Fri 2/23/2007 8:35 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] FABridge aclarations... Hello, I'm working in one app and I want to call a method of javascript from actionscript and viceversa. When I download the fabridge from adobe labs, I read the doc, and I don't understand one thing, what are the first steps (in configuration), I say, I need to create a new HTML, and embed into it the swf compiled? Or I can use the html generated by the flex builder? I try to copy as the example but I don't get it works. Thanks a lot. Regards. -- Matías Nicolás Sommi
RE: [flexcoders] FABridge aclarations...
At compile time, FlexBuilder generates your hosting HTML file based on the HTML template in html-template/index.template.html The easiest option right now is to take your generated html file and add in the javascript methods that you need, and save it off as a different html file. Then after you compile, just hit your new html file instead of the generated file (if you want, you can set FB to open to a specific HTML file so it always uses your other file). Does that make sense? The SWF will get regenerated with each compile and if you have added the FABridge component, it will always be in there - regardless of what HTML file hosts that swf. Karl Cynergy From: flexcoders@yahoogroups.com on behalf of Matias Nicolas Sommi Sent: Fri 2/23/2007 10:25 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] FABridge aclarations... Thanks Karl, but i think that I don't explain me very good. Flex generate an MXML app, and, only in the bin folder, autogenerate the swf file. The Javascript code is included in a HTML page. Flex generate an HTML page only in the bin folder containing the javascript methods for history and other thinks like the get plugin. The think that I want to know is if I need touch these HTML generated by flex, or generate one myself, but in this last case, I need the swf file... I must use the bin/swf file? This comment is because in the fabridge example, the html embedd the swf file from a src, and in the html generated by flex, the swf is embbeded on the fly or something like this. If you have a very simple example (the most simple as possible) of one flex project using fabridge I appreciate it very much. Thanks again. -- Matías Nicolás Sommi 2007/2/23, Karl Johnson [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] : What part are you asking if it needs to be embedded? The javascript side that lives in the HTML definitely does not get embedded. You can launch your app that is using the FABrdige from your next HTML file or you can modify the HTML template file in FB to use the JS code from the FABridge html examples. Does that make sense? You still need the ActionScript side of things embedded in the swf to act as your component or proxy that links your AS methods throughout your app to your JS methods in the parent html file that is hosting the swf. Karl Cynergy From: flexcoders@yahoogroups.com http://ups.com/ on behalf of Matias Nicolas Sommi Sent: Fri 2/23/2007 8:35 AM To: flexcoders@yahoogroups.com http://ups.com/ Subject: [flexcoders] FABridge aclarations... Hello, I'm working in one app and I want to call a method of javascript from actionscript and viceversa. When I download the fabridge from adobe labs, I read the doc, and I don't understand one thing, what are the first steps (in configuration), I say, I need to create a new HTML, and embed into it the swf compiled? Or I can use the html generated by the flex builder? I try to copy as the example but I don't get it works. Thanks a lot. Regards. -- Matías Nicolás Sommi
Re: [flexcoders] FABridge aclarations...
Thanks for the explanation of the html template Karl, I will try it as you say. -- Matías Nicolás Sommi 2007/2/23, Karl Johnson [EMAIL PROTECTED]: At compile time, FlexBuilder generates your hosting HTML file based on the HTML template in html-template/index.template.html The easiest option right now is to take your generated html file and add in the javascript methods that you need, and save it off as a different html file. Then after you compile, just hit your new html file instead of the generated file (if you want, you can set FB to open to a specific HTML file so it always uses your other file). Does that make sense? The SWF will get regenerated with each compile and if you have added the FABridge component, it will always be in there - regardless of what HTML file hosts that swf. Karl Cynergy -- *From:* flexcoders@yahoogroups.com on behalf of Matias Nicolas Sommi *Sent:* Fri 2/23/2007 10:25 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] FABridge aclarations... Thanks Karl, but i think that I don't explain me very good. Flex generate an MXML app, and, only in the bin folder, autogenerate the swf file. The Javascript code is included in a HTML page. Flex generate an HTML page only in the bin folder containing the javascript methods for history and other thinks like the get plugin. The think that I want to know is if I need touch these HTML generated by flex, or generate one myself, but in this last case, I need the swf file... I must use the bin/swf file? This comment is because in the fabridge example, the html embedd the swf file from a src, and in the html generated by flex, the swf is embbeded on the fly or something like this. If you have a very simple example (the most simple as possible) of one flex project using fabridge I appreciate it very much. Thanks again. -- Matías Nicolás Sommi 2007/2/23, Karl Johnson [EMAIL PROTECTED]: What part are you asking if it needs to be embedded? The javascript side that lives in the HTML definitely does not get embedded. You can launch your app that is using the FABrdige from your next HTML file or you can modify the HTML template file in FB to use the JS code from the FABridge html examples. Does that make sense? You still need the ActionScript side of things embedded in the swf to act as your component or proxy that links your AS methods throughout your app to your JS methods in the parent html file that is hosting the swf. Karl Cynergy -- *From:* flexcoders@yahoogroups.com on behalf of Matias Nicolas Sommi *Sent:* Fri 2/23/2007 8:35 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] FABridge aclarations... Hello, I'm working in one app and I want to call a method of javascript from actionscript and viceversa. When I download the fabridge from adobe labs, I read the doc, and I don't understand one thing, what are the first steps (in configuration), I say, I need to create a new HTML, and embed into it the swf compiled? Or I can use the html generated by the flex builder? I try to copy as the example but I don't get it works. Thanks a lot. Regards. -- Matías Nicolás Sommi
[flexcoders] FABridge
Is anyone else out there using FABridge? I'm testing it out on Safari and getting js errors, has anyone else ran into this and possible solutions? The exception I get is: Value undefined (result of expression this.target.getRoot) is not object. FABridge.js, line 191 If I could get any help at all with this I would really apprechiate it. -John
RE: [flexcoders] FABridge
Hi, expect a new build on labs very soon (within a week it is expected, but not guaranteed.) -David From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of john_69_11 Sent: Tuesday, January 09, 2007 11:38 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] FABridge Is anyone else out there using FABridge? I'm testing it out on Safari and getting js errors, has anyone else ran into this and possible solutions? The exception I get is: Value undefined (result of expression this.target.getRoot) is not object. FABridge.js, line 191 If I could get any help at all with this I would really apprechiate it. -John