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: [email protected] on behalf of Matias Nicolas Sommi
Sent: Fri 2/23/2007 10:25 AM
To: [email protected]
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: [email protected] <http://ups.com/>  on behalf of Matias 
Nicolas Sommi
        Sent: Fri 2/23/2007 8:35 AM 
        To: [email protected] <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

        

        

        

        

        

        

        

 

Reply via email to