Have you try to open the examples that comes with SWFObject?. There's nothing strange in that html/js that you can handle. You can see the full size example (100% width and height) to see an full sized SWF.
I'll post here a full example, but I think there's no real difference with the one's provided by Geoff.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- saved from url="" -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Flex 2 SWF Test</title>
<!-- SWFObject embed by Geoff Stearns [EMAIL PROTECTED] http://blog.deconcept.com/swfobject/ -->
<script type="text/_javascript_" src=""
<style type="text/css">
/* hide from ie on mac \*/
html {
height: 100%;
overflow: hidden;
}
#flashcontent {
height: 100%;
}
/* end hide */
body {
height: 100%;
margin: 0;
padding: 0;
background-color: #f60;
}
</style>
</head>
<body>
<div id="flashcontent">
<strong>You need to upgrade your Flash Player to version 9.</strong>
This is replaced by the Flash content.
Place your alternate content here and users without the Flash plugin or with
_javascript_ turned off will see this. Content here allows you to leave out <code>noscript</code>
tags. Include a link to <a href="" the detection</a> if you wish.
</div>
<script type="text/_javascript_">
// <![CDATA[
var so = new SWFObject("your_flex2.swf", "flex2_swf", "100%", "100%", "9", "#FFFFFF", true);
// this line is optional, but this example uses the variable and displays this text inside the flash movie
//so.addVariable("flashVarText", "this is passed in via FlashVars");
so.write("flashcontent");
// ]]>
</script>
</body>
</html>
btw, I don't integrate at that moment the historymanager :(
Hope that helps.
C.
On 7/25/06, hank williams <[EMAIL PROTECTED]> wrote:
On 7/25/06, Carlos Rovira < [EMAIL PROTECTED]> wrote:Hi Hank,On 7/25/06, hank williams < [EMAIL PROTECTED]> wrote:I am a total _javascript_/html idiot.
But now I must put my flex app in an html container and I have some questions.
1. Does flex user swfObject? if not, why not?
Flex 2 does not use swfObject. Adobe use its own script. Why? it seems that they prefer their method ¿?2. Also, if not, has anybody done any work to integrate.
I test it in beta 3 and work without problem for a project with the Flex SDK only.
Now the Flex 2 SDK comes with all the scripts ready to work, but you can use SWFObject as well without too much work3. Has anyone done an html container that would handle resizing the flash stage when the browser window is resized.
See the SWFOBject examples and you'll find one that does exactly that, you can use that example with your flex 2 swf
Ok, so here is the question. How! Remember, I am very weak on html and _javascript_. I am wondering how to integrate a swfObject that will do the cool resizing stuff with the html template that comes with flex. Any additional hints would be greatly appreciated. For example, I am thinking I wouldnt just want to replace the adobe html container because it seems to help with history for example. So I am thinking there is some necessary integration between the two. Is this right? What needs to be done.
Regards
HankHank
--
::| Carlos Rovira
::| http://www.carlosrovira.com
--
::| Carlos Rovira
::| http://www.carlosrovira.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
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___
Reply via email to

