Re: [flexcoders] FABridge Problem - Please help!

2010-08-27 Thread Brian J. Ackermann
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!

2010-08-26 Thread Brian J. Ackermann
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!

2010-08-26 Thread Alex Harui
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!

2010-08-26 Thread Brian J. Ackermann
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!

2010-08-26 Thread Alex Harui
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 aclarations...

2007-02-23 Thread Karl Johnson
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...

2007-02-23 Thread Matias Nicolas Sommi

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...

2007-02-23 Thread Karl Johnson
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...

2007-02-23 Thread Matias Nicolas Sommi

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

 



RE: [flexcoders] FABridge

2007-01-09 Thread David Mendels
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