SWFObject
I use FlashObject.js (now > SWFObject.js <) for displaying Fash content on my > site <.
I've got two questions:
1) If the user doesn't have the Flash version that's needed, he ISN'T redirected to plugin site automatically as it is when using classic <OBJECT>/<EMBED> tags!
Instead - nothing happens; the Flash on the top of the page simply doesn't load.
What am I doing wrong?
Does anyone have an example of configuring the parameter for automatic Flash plugin install?
I tried to play with attributes like this, but doesn't help:
Quote:
fo.setAttribute("codebase", "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0");
2) I use the > SWFObject Publish Profile Extension < for a Flash.
It works OK, but I'd like to have a <noscript> version of Flash inside the <div> tag (so if the javascript is disabled, it still displays the OBJECT/EMBED version of Flash).
So if anybody developes the version with <noscript>.. it would be of a great help!
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 06-11-2006, 09:14 AM
View Complete Forum Thread with Replies
Sponsored Links:
Help With The SWFObject
Hi there,
Please, can someone help me, how to use the SWFObject for my HTML page that contains 2 flash objects and one media player object .wmv. The standard procedure below work just fine for one flash object, but when i try to use it for multiple objects in one web page, it doesn't work! May be i am missing something or it is just a more complicated code! Please, help! Thanks in advance!
<script type="text/javascript" src="swfobject.js"></script> /in the head of the html page/ and:
<div id="flashcontent">
This text is replaced by the Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("movie.swf", "mymovie", "500", "100", "6", "#003399");
so.addVariable("variable", "varvalue");
so.write("flashcontent");
</script>
View Replies !
View Related
Swfobject
I am using the swfobject with actionscript to automatically update users who have old versions of flash. The problem is, when the user's flash player has been updated to flash 9, the page closes and opens in a new window. Does any one know how i can make it refresh the existing window?
View Replies !
View Related
SWFobject Help
Okay, I downloaded the SWFobject but I have no idea how to use it lol. I tried to look for help in any readme's as well as the URL listed in the sticky, but came to no conclusion.
Now that I have the files, how do I use it so my site's visitors don't see the stupid box around my flash movies?
Thanks!
View Replies !
View Related
SWFObject
Hey Guys,
I'm no expert at all when it comes to swfobject. I've noticed there's a bug (which many others have experienced) when updating the Flash player and using IE7. I updated the Flash Player yesterday, then went to my site (where I host a lot of swfs), and all the flash files didn't show, prompting me to install flash, but I already have it. Anyway, I'm aware that it's a bug that only occurs in IE7 from what I've read.
So I've been trying to get a workaround for this. I went to numerous sites after the update and noticed many big sites prompted me to install flash. However, one thing I discovered, is I went to youtube and their video player showed up perfectly! I checked out their swfobject code and saw the following:
<script type="text/javascript">
// <![CDATA[
writeMoviePlayer("playerDiv");
var to = new SWFObject("/version-check.swf", "checker", "0", "0", "0", "#FFFFFF");
to.write("checkerDiv");
// ]]>
</script>
Notice the "0" for flash version detection? So it looks like they don't even bother detecting people Flash versions?
Anyway, I tried that code for the flash files on my site, and it worked perfectly. All the flash files showed up in IE7 even after that buggy flash player update.
So I guess my question is, is it safe to do it the way youtube does, to where it doesn't bother checking people's flash version? Or would my flash files look all weird to someone who has an old version of flash player?
I'm working on a very large site that will be launching soon, so I want to make sure I'm implementing the best possible code for users.
Thanks for any advice!!
Sean
View Replies !
View Related
SWFObject
Hi,
I'm trying to use the expressinstall feature from SWFObject but without success.
Basically under any browser, when the flash player plug-in is not installed it displays a puzzle pieceallowing you to download the flash player plug-in.
as i use SWFObject, the expressinstall should allow to do it, but there is not so much help about it and i'm not able to make it work.
so how can i setup it to allow web users to download flash player if the browser does not have it (as plug in) ?
thanks a lot,
A.
View Replies !
View Related
Help With SWFobject
Hello, I'm somewhat new with flash. I'm using SWFobject to insert my flash movie, but I can't figure out how to get it to read dynamic text from:
so.addVariable("customtext", "Lets get this party started!");
I tried inserting a symbol, but it would not let me add a variable name to it. A little help please? Describing what to do step by step would be real helpful.
View Replies !
View Related
SWFObject Help
Hello,
I am more of a designer than a programmer so be nice. I am trying like everyone else to get rid of the dreaded grey box that comes up around a flash animation in internet explorer , and have found how to use the swfobject.js and link it to my html page that contains the flash animation.
I design the animation in flash and then put it into dreamweaver. The problem I am having is that when you specify the parameters in the javascript used to embed the flash file before you delete the flash file code, you can usually get all the movie name, width, height id bgcolor etc, but my original flash file code is missing the id, the version of flash and the bgcolor.
Below is my original flash file code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
View Replies !
View Related
SWFobject
I tried using the SWFobject and it works fine except one problem, my music player which automatically plays on startup plays two songs at once, and when I stop the music player the other song continues to play in the background.
The player Dynamically loads the music from and xml file
Any advice?
View Replies !
View Related
SWFobject
Yet another problem with detection (expressinstall):
http://www.rccm.org/smallgroupreport/
Notice the flash ad on the right hand side,
then click on "episode 1"
A movie is suppose to play below where it says "Small Group Report" (I have detection set to "10"), instead the moviw plays in space where the banner is supposed to be and the banner is gone.
I think the error only shows in Safari.
The banner ad is a Server Side include that also has detection
Thanks
Steven
View Replies !
View Related
AS3 And Swfobject.js 1.5
Hi, I'm having problems getting my AS3 swf to run using swfobject.js 1.5. Using a different version of swfobject.js is not an option. When I navigate to my page in Firefox 3.0 or IE7, swfobject writes its code to my div tag, and an instance of flash player loads into that space with the expected dimensions. However, my swf doesn't play. There is a warning message written to Firefox's error console: "Expected ':' but found 'undefined'. Declaration dropped." Some Googling revealed that this warning is related to a style issue, which didn't affect the playability of swf's for those users who reported it. I learned that some version(s) of the Flash authoring environment include(s) "SWFObject" as an option in publishing settings, but I don't see this option in CS3. Are there any known incompatibilities between AS3 and swfobject.js 1.5? Is there some pubilshing setting that would resolve my problem?
View Replies !
View Related
Help With The SWFObject
Hi there,
Please, can someone help me, how to use the SWFObject for my HTML page that contains 2 flash objects and one media player object .wmv. The standard procedure below work just fine for one flash object, but when i try to use it for multiple objects in one web page, it doesn't work! May be i am missing something or it is just a more complicated code! Please, help! Thanks in advance!
<script type="text/javascript" src="swfobject.js"></script> /in the head of the html page/ and:
<div id="flashcontent">
This text is replaced by the Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("movie.swf", "mymovie", "500", "100", "6", "#003399");
so.addVariable("variable", "varvalue");
so.write("flashcontent");
</script>
View Replies !
View Related
FP9 With Swfobject 1.5
Is this known to be incompatible? I did some AS3 stuff over the weekend, copied in one of my SWFOb1.5 HTML pages, and nothing, changed the player number to 9 etc, it acts as if the movie is loaded but nothing happens, just a blank background, you right click and the flash has loaded, just not working.
Very strange.
View Replies !
View Related
Swfobject 2.0 Help
i have tried for a while now to understand how to accurately use the swfobject 2.0 but i'm just not getting it.
i have a swf file that i'm trying to run full-browser style, but it's just not working out.
i'm just don't understand the swfobject 2.0 site's instructions.
i saw step by step instructions for swfobject 1.5 on here somewhere.
could someone do the same thing for the 2.0 version. i'm sorry if this makes me look stupid, but i've tried and tried and can't figure out how to make it work.
thanks
View Replies !
View Related
SWFObject
I posted this is javascript forum but I thought I would post in flash since it relates to a swf.
I am trying to use the SWFObject: Javascript Flash Player detection and embed script : http://blog.deconcept.com/swfobject/
and it looks like a great script... I would like to offer up alternative content to the viewer if they do not have flash8. I have 2 versions of the flash file and one will work with less than flash 8 and and I have a flash 8version which has is a little different. Instead of having the viewer downloading the v8 I want to serve them the other flash version. I know you can do it but I am not sure... it is something with the redirectURL.
Any help on how to do this?
View Replies !
View Related
Swfobject
does anyone have much experience playing flash using the swfobject, in particular the expressinstall feature?
I have made use of the expressinstall feature, which worked perfect on my pc when I installed an earlier version of flash (pc / firefox) - however noticed on a mac running firefox that it did not use the expressinstall even though the mac had a earlier verison of flash (i am using flash 9).
On the mac, instead of running the expressinstall.swf it displayed the alternate content. Just wondering if the express install feature is not meant to work on all browsers / platforms?
Thanks.
View Replies !
View Related
SwfObject Again
Ok I need to use the swfObject method twice on this page but only 1 is working. The one that is working is the nav.swf
Anyone know why?
Code:
<div id="holder">
<!---<div id="skipnav"><a href="#content" tabindex="1">Skip to main content</a></div>--->
<div id="header">
<!---<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="720" height="153">
<param name="movie" value="swf/banner.swf" />
<param name="quality" value="high" />
<embed src="swf/banner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="720" height="153"></embed>
</object>--->
<!---<script type="text/javascript" src="swfobject.js"></script>--->
<script type="text/javascript" src="swfobject.js"></script>
<div id="flashbanner">
<script type="text/javascript">
var so = new SWFObject("swf/banner.swf", "banner", "720", "153", "7", "#7B95BA");
so.write("flashcontent");
</script>
</div>
</div>
<div id="sidebar">
<h2>Navigation</h2>
<script type="text/javascript" src="swfobject.js"></script>
<div id="flashcontent">
<script type="text/javascript">
var so = new SWFObject("swf/nav.swf", "nav", "190", "148", "7", "#7B95BA");
so.write("flashcontent");
</script>
</div>
View Replies !
View Related
Why SWFObject?
I've been struggling with SWFObject in a CMS Made Simple temlate for the past 4 days. Finally, the guys on CMSMS gave me 2 alternate ways of solving my problem. So, forget SWFObject.
I read elsewhere that 15% of browsers don't work with SWFObject, so what is the advantage, really?
It's supposed to be simple and clean cross-browser solution, but it's ridiculously complicated, imo for the most useless step of a design process, which is simply getting the damn SWF in the html. What is the benefit? Does the auto-generated Dreamweaver content (for example) NOT work in more than 15% of browsers?
I've never had a problem with the standard non-SWF way my entire life. I only began using SWFObject because it seemed the CMSMS templating structure required it. But, it doesn't.
View Replies !
View Related
Anybody Knows How To Use SWFOBJECT ?
Hi, I tried the following steps:
- Downloaded SWFOBJECT 2.0
- Downloaded swfobject_2_0_generator_1_1_html
- Generated my html code and pasted it to the Dreamweaver CS3 (HTML)
- Saved my HTML file on the same folder of my SWF and the swfobject.js
Result: swf on the left and top of my browser, and without background color.
My target: I just want to publish my swf on the center (vertical horizontal) of the HTML, to put a background color and to don't have "click here to activate and use this control" around my swf (dynamic publishing)
Best Regards,
MCT
View Replies !
View Related
Error In Swfobject?
My client keeps getting an error. "Out of memory line 14" I believe it must have something to do with the swfobject.js file. Has anyone else been seeing this error? Any solutions?
Here is a page that she says its happening on http://www.kimberlywillisholt.com/home.html
she says once everything loads and she puts her mouse over a link the cursor freezes for about 15 seconds then a box pops up with that message, she says once she clicks in the box everything goes back to normal. She also mentioned that some of the weird boxes with the click to activate messages have returned on some of the pages within the site even though I did use the swfobject.js to embed them, and even though, a few weeks ago it was working just fine for her that way.
any help is appreciated.
danielle
View Replies !
View Related
SwfObject Problems...
Alright, I've read through this article and can't figure out what my problem is.
I've resolved the issue of no longer needing the extra click to activate my flash movie, but when testing the html page in firefox my flash content never displays. It works fine in internet explorer but not in firefox and i haven't tried it in other browsers.
I have only made modifications to the html. I didn't modify any other files provided in the article above.
this is the code for my html:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Website Title</title>
<script type="text/javascript" src="swfobject.js"></script>
<style type="text/css">
body {background-image: url(bg.gif); background-repeat: repeat; background-color: #000000; color: #ffffff; font-family: verdana; font-size: 10pt; margin: 0px 0px 0px 0px;}
#flashcontent {width: 1000px; height: 600px; }
.info {margin: 20px 20px; width: 400px; font-family: verdana; font-size: 8pt; }
a:active, a:link, a:visited {color: #aaffff; text-decoration: none;}
a:hover {color: #aaffff; text-decoration: underline; }
</style>
</head>
<body>
<div id="flashcontent">
<div class="info">
<strong>Welcome!</strong><br /><br />
If you are seeing this message, it means you do not have the correct version of Flash Player installed on your computer. It is free and simple to upgrade and will allow you to have a better online experience. Please upgrade your Flash Player by following this link...<br /><br /><a href="http://www.macromedia.com/go/getflashplayer" target="_blank">Upgrade Flash Player Now!</a><br /><br />
</div>
</div>
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("x5.swf", "x5", "1000", "600", "8", "#000000");
so.addParam("quality","high");
so.write("flashcontent");
// ]]>
</script>
</body>
</html>
If you have any suggestions as to why it's not working, please let me know. I'm stumbling here. Been away from flash for a little while, came back and found a ton of changes. Now I'm trying to readjust to the differences.
Thanks in advance,
Hailer
View Replies !
View Related
SWFObject Issue
I've been having problems with this.
I followed all the steps however when I preview my file in IE6 I still need to press on the swf to activate it.
Could anyone have a look at the example files and let me know what am I doing wrong or if something is missing?
Cheers
D.
View Replies !
View Related
My Music With SWFObject
I heard a lot about this SWFObject. Well rocbattle.com and premiumbeats.com and other sites use it. Well Im trying to make a mini flash player with like just play, stop, vol, and pause. Im using beats just to help you out. I have a voice over tag to protect the beats. I want to do is when a user clicks a link it loads that song into the flash player playing and also the voice over tag. Right now Im using just a basic player, but using xml. If you guys have any ideas to make it more user friendly I would be very thankful. I would repay the favor if you ask.
Matta
View Replies !
View Related
SWFObject AddVariable
I am trying to pass a string that is in japanese to the addVariable of the SWFObject. If I use English it works but if I try to do a trace on the variable on the root level using japanese it will not work. Has anyone else had this problem.
Thanks
View Replies !
View Related
JS To AS2 - Control SWFobject
Hi everyone, this is my first post and I'm pretty new to Flash... I'm not quite sure where this question should be posted. Sorry if it's in the wrong place.
I've got a XHTML site with Flash navigation. The flash movie is embedded using SWFobject (http://blog.deconcept.com/swfobject/).
When the page loads the navigator appears with a short animation and stops.
I know javascript and actionsript can be friends, and what I want is to put a little script at the beginning of each HTML page that tells the navigator .swf what frame to be on. This can let me skip the intro animation on subsequent (deeper) pages, so it doesn't get annoying. It could also give me the option to highlight different buttons depending on where the user is located, without making separate flash movies.
I found some info on how to do this here:
http://www.moock.org/webdesign/flash/fscommand/
but it the solutions described pertain to the <object> embedding method, which I am not using.
Can anyone give me a hint as to how to adapt this for the SWFObject method?
Here's the page I'm working on:
http://www.neithercorp.us/
And here's how I am embedding my Flash:
Code:
<div id="pedestrian" style="margin-right:99px">
<a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">
<img src="http://www.neithercorp.us/noflash/pedestrian.gif" alt="[flash content]" width="246" height="246" border="0" /></a>
</div>
<script type="text/javascript">
var so = new SWFObject("pedestrian.swf", "pedestrian", "246", "246", "7", "transparent");
so.addParam("wmode", "transparent");
so.write("pedestrian");
</script>
Thanks in advance for any suggestions!
View Replies !
View Related
Swfobject Not Working For IE 7.0
Here's my web page: http://www.garrisonsolutions.com/home7.php
The code in the <Head> tag is:
Code:
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
swfobject.registerObject("scroller", "9.0.0");
</script>
The code to call that Flash movie is:
Code:
<div>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="765" height="160" id="scroller" name="scroller" class="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" align="middle">
<param name="movie" value="bottomScroller2.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#FFFFFF" />
<param name="allowscriptaccess" value="always" />
<param name="base" value="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="765" height="160" id="bottomScroller2" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="bottomScroller2.swf" width="765" height="160" class="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" align="middle">
<param name="quality" value="high" />
<param name="bgcolor" value="#FFFFFF" />
<param name="allowscriptaccess" value="always" />
<param name="base" value="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="765" height="160" id="bottomScroller2" />
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflashplayer">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
But, in IE, I get nothing - no flash movie. Any suggestions?
View Replies !
View Related
Some AS Not Happening With Swfobject
Hi,
I am having a problem - that I am wondering if it is caused because I am using swfobject to embed the swf...
If I look at the actual swf file on the server all of the actions/buttons/frame events work great - but when I go to the .html page it isn't working - only the main buttons that change the frames within nested clips - but doesn't trigger any of the actions elsewhere
would it be the swfobject that is stopping the script?
View Replies !
View Related
SwfObject Problems
Hi,
I'm using swfObject to place my flash site in the html, like most people do. But I'm running into problems.
First, since I recently formatted my computer, thus not having the flash plug-ins installed in the browsers, I noticed that none of my flash websites ask if I would download the plug-in. In the past, it allways gave you a messagebox to download and install the plug-in. But now it doesn't, how come? What changed?
The next problem I just noticed, but is also recently. I just downloaded Firefox 3.0 and wanted to go to my websites, only to notice that it doesn't display anything. Only the text I put in the html.
Is swfObject still the way to implent your flash site? Or are there newer version that I'm not aware of?
Here some of my full flash sites with this problem:
http://www.eyeemotion.be/
http://www.vortexgroup.be/
http://crossdress.eyeemotion.be/
Thanks in advance...
View Replies !
View Related
Swfobject And Firefox
I have 99% finished updating a site. I am using swf object with express install. It all works fine on my puter using Explorer. However, I have been told by client that using firefox the flash movie doesn't appear, just the text that is supposed to be replaced by movie.
I don't have firefox, so could someone please take a look, and if you have the same problem, give me some ideas on how to fix it. Thanks a lot.
Site might offend some, it's for a callout massage. Click enter to see if if movie loads. Thanks.
[EDIT/CyanBlue]
Link has been removed... Please contact Unrestraint if you need the link to the site...
[/EDIT]
View Replies !
View Related
Using SWFObject On A JSP Page
I, like many others, use the SWFObject (FlashObject) for putting my Flash files onto sites. However, I now want to place my Flash file on a JSP Page, and I cannot get the thing to show up... I know it has something to do with JavaScript / JSP conflicting with each other, but does anyone know how I could get this working.
I apologize if this is the wrong area for this post, and if it has to be moved, so be it.
View Replies !
View Related
Swfobject + 100% Problem :(
Hi,
i am using swfobject for the first time, and i'm having some problems to let my swf shrink to 100% if the browserwindow is smaller then the original swf size. The swf doesn't shrink at all.....
I even copied and pasted the complete 'fullpage.html' example, that comes with the swfobject kit, and still it doesn't work...
Even more stupid : yesterday it did work , but i must have overwritten some code accidentally and now i just can't get it to work anymore.....
please help, anybody!!
This is how i tried it first :
HTML Code:
<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>mysite</title>
<script type="text/javascript" src="javascript/swfobject.js"></script>
</head>
<body bgcolor="#000000">
<style type="text/css"> html, body { height: 100%; margin: 0; padding: 0; } </style>
<div id="flashcontent">
This text is replaced by the Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("mysite.swf", "mysite", "100%", "100%", "8", "#000000");
so.write("flashcontent");
</script>
</body>
</html>
this is the complete exmple, as i copied it from the tutorial (just changed the swf name), and still no luck...
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- saved from url=(0014)about:internet -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>SWFObject embed by Geoff Stearns (full page) @ deconcept</title>
<!-- SWFObject embed by Geoff Stearns geoff@deconcept.com http://blog.deconcept.com/ -->
<script type="text/javascript" src="javascript/swfobject.js"></script>
<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</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="fullpage.html?detectflash=false">bypass the detection</a> if you wish.
</div>
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("mysite.swf", "sotester", "100%", "100%", "8", "#FF6600");
so.addVariable("flashVarText", "this is passed in via FlashVars for example only");
so.addParam("scale", "noscale");
so.write("flashcontent");
// ]]>
</script>
</body>
</html>
View Replies !
View Related
SWFObject Not Working In IE
Hey
I've set up SWFObject on my site, but when I test it in IE it doesn't work properly: it won't let me in to the site, even though I'm running Flash Player 9.
It works fine in Firefox (v2).
Unfortunately I can't tell if the problem is a local setting or an error somewhere in the code... is it working on anyone else's machine?
Here's the link:
http://www.strangeplace.org/croydon/
Cheers
View Replies !
View Related
LocalConnection With SwfObject
hello,
I have a page with two different flashmovies booth loaded with swfObject.
These two movies are supposed to communicate with eachother with localConnection. This works fine in Firefox but not at all in IE 6.
I have googled it and it seems that there is a conflict between swfObject and localConnection...there is also a earlier post about this here on the forum but no answers...:/
Would be very good if this could be solved without having to go back and use the old embed-tag.
Thanks.
EDIT: The problem was that I cant use it when an instance of the webbpage is running in another browser.
It works in booth IE and Firefox but not when the booth are opened at the same time...
Not a big problem but would be nice to solve it anyway.
View Replies !
View Related
SWFObject And AS3 Question
Hello,
I'm trying to pass in a variable using the SWFObject so.addVariable("variable3", "value3"); and in the documentation it says:
"Just access them as you would any variable on the _root timeline."
So for my dumb question - how do you access a variable on the _root timeline with AS3 from within a function of a class?
I'm feeling stupid.
Tommy
View Replies !
View Related
SWFObject AddVariable
I am trying to pass a string that is in japanese to the addVariable of the SWFObject. If I use English it works but if I try to do a trace on the variable on the root level using japanese it will not work. It traces out as ???? for each character in Japanese. Has anyone else had this problem or have a solution.
Thanks
View Replies !
View Related
SWFObject 2.0 Flashvars
I'm trying to pass a random string to multipe swf files using SWFObject 2.0
I'm able to pass the string to one file, but it wont pass to any other object (even if i remove the object that it works on, the string wont pass to the others )
here's the HTML / JS / AS
It only seems to work on mainStage....
ActionScript Code:
package {
import flash.display.*;
import flash.events.*;
import flash.media.Video;
import flash.net.*;
import flash.system.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.utils.*;
public class LeftScroll extends MovieClip {
var outgoing_lc:LocalConnection = new LocalConnection();
var myText:TextField = new TextField();
public function LeftScroll() {
if (root.loaderInfo.parameters.rs == null) {
myText.text = "Loader is Null";
myText.textColor = 0xFFFFFF;
addChild( myText );
} else {
myText.text = root.loaderInfo.parameters.rs;
myText.textColor = 0xFFFFFF;
addChild( myText );
}
}
}
}
HTML Code:
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var ranString = Math.random().toString();
ranString = ranString.substr(ranString.length -10, 10);
var flashvars = {};
flashvars.rs = ranString;
var params = {};
params.play = "true";
params.loop = "true";
params.menu = "true";
params.quality = "high";
params.scale = "exactfit";
params.wmode = "window";
params.bgcolor = "#000000";
params.devicefont = "false";
params.swliveconnect = "true";
params.allowfullscreen = "true";
params.allowscriptaccess = "sameDomain";
var attributes = {};
attributes.name = "mainStage";
attributes.align = "middle";
swfobject.embedSWF("leftScroll.swf", "slideLeft", "45", "100", "9.0.0", flashvars, params, attributes);
swfobject.embedSWF("mainStage.swf", "mainStage", "785", "486", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
swfobject.embedSWF("rightScroll.swf", "slideRight", "45", "100", "9.0.0", flashvars, params, attributes);
swfobject.embedSWF("myHeader.swf", "my", "785", "29", "9.0.0", flashvars, params, attributes);
swfobject.embedSWF("footer.swf", "footer", "785", "30", "9.0.0", flashvars, params, attributes);
</script>
View Replies !
View Related
Swfobject And Div Layer
I have a flash movie main.swf which plays an flv file. This will be fullscreen..however initially when you come to the html page containing it...it should only show a portion of the flash file..I am using div layers to accomplish this...however the flash movie dimensions seem to be set to 100% height and width of the div tag instead of the browser width and height..how can I make the swf 100% ehight/width of the browser and not the div tag it is within? The code is as follows:
PHP Code:
<script type="text/javascript" src="swfobject.js"></script><style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
#flashcontent {
position:absolute;
overflow:hidden;
left:190px;
top:328px;
width:267px;
height:164px;
}
-->
</style>
<div id="flashcontent">
This text is replaced by the Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("main.swf", "mymovie", "100%", "100%", "8", "#336699");
so.write("flashcontent");
</script>
Any help is much appreciated...cheers
View Replies !
View Related
Flashvars/SWFObject Help
Hoping I can get help here, I've been to about 3 different forums and not really bein helped to well on this subject.
I'm trying to create a flash file that will work with the description below..I've never done this before though. This is what I was told about how it works.
Quote:
We created /flash/h1.swf; this is
the generic flash for creating a header. It is called using the standard
flash object SWFObject. The parameters are txtName (the text of the header)
and link (a hyperlink to whatever you want). The div that comes before the
script is a fallback for when Flash is not installed. The
so.write('section_name') should refer to the id of the preceding div which
uses the predefined h4 style to write the header instead.
The final stuff inside "whiteBoxSplit" is vanilla CSS which includes
background images for the custom borders around the top and the bottom of
the header."
And I was given this example
Code:
<div id="newsItems"><embed type="application/x-shockwave-flash" src="/flash/h1.swf" style="" id="Us" name="Us" quality="high" flashvars="txtName=news&link=/news" height="29" width="400"></div>
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("/flash/h1.swf", "Us", "400", "29", "8");
so.addVariable("txtName", "news");
so.addVariable('link', '/news');
so.write("newsItems");
// ]]>
</script>
From what I understand there is more than one way to implement flash vars on a site so I need something that will work with what I have above. I just don't know how. Can anyone please help?
View Replies !
View Related
Questions About SwfObject
Since i have the Flash version visitor problem on my site i want to include the swfObject.
I have optimized my site for Flash 8 becuse some of the forms require that.
However i cant understand what to include into the fla file itself and what to include into the html doc.
I got the code for the "express install" which is looking like this:
#include "expressinstall.as"
// initialize the ExpressInstall object
var ExpressInstall = new ExpressInstall();
// if the user needs to upgrade, show the 'start upgrade' button
if (ExpressInstall.needsUpdate) {
// this is optional, you could also automatically start the
// upgrade by calling ExpressInstall.init() here instead of the following lines
// attach the custom upgrade message and center it
var upgradeMsg = attachMovie("upgradeMsg_src", "upgradeMsg", 1);
upgradeMsg._x = Stage.width / 2;
upgradeMsg._y = Stage.height / 2;
// attach the button actions that will start the ExpresInstall updater
upgradeMsg.upgradeBtn.onRelease = function() {
// the ExpressInstall.init() method is what kicks off the actual update
ExpressInstall.init();
}
// if expressinstall is invoked, stop the timeline.
stop();
}
Is this all i have to put in? Do i need to add more than this in either html doc or the Flash doc?
Another problem is to test all this. There is no possibility to install older versions of flash player anymore :(
Can someone please help me with this.
View Replies !
View Related
SWFObject Question
Hi -
I just learned about the SWFObject2 and because I am a perennial Flash newb I have a question that might seem obvious to anyone else. If I implement the swfobject.js as explained here, does this mean I don't have to use AC_RunActiveContent.js anymore?
TIA for setting me straight,
JL
View Replies !
View Related
Problem Using Swfobject.js
I am adding Flash applets to a website, and my nav bar was causing the prompt to press space or enter to use the interface. I downloaded swfobject.js and am using the javascript included with the js file to display both applets (there's one for navigation and one for looks). The navigation applet is at the top of the page. It displays fine, but the other swf displays immediatly beneath the first one. I have put the second swf in a table further down the page, I've even wrapped it in a DIV tag with absolute positioning to try to force the applet to appear where I want it, but nothing affects the positioning.
Here's the javascript they recommend:
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("Banner-1.swf", "bannerNav", "995", "173", "8", "#80B6F1");
so.addVariable("flashVarText", "this is passed in via FlashVars for example only"); // this line is optional, but this example uses the variable and displays this text inside the flash movie
so.write("flashcontent");
// ]]>
</script>
and here's what I used for the second applet:
<script type="text/javascript">
// <![CDATA[
var so2 = new SWFObject("texas-4.swf", "texas", "224", "217", "8", "#80B6F1");
so2.addVariable("flashVarText", "this is passed in via FlashVars for example only"); // this line is optional, but this example uses the variable and displays this text inside the flash movie
so2.write("flashcontent2");
// ]]>
</script>
I also have DIVs with IDs of "flashcontent" and "flashcontent2"
How do I re-position the second applet?
joe
View Replies !
View Related
Using FlashVars And SWFObject
Hello, I'm somewhat new with flash. I have no experience using flashVars but I would like to try out using SWFobject to insert my flash movie, and then display custom text inside the movie. But I can't figure out how to get the flash movie to display the text from my variable!
so.addVariable("customtext", "Lets get this party started!");
For those who haven't heard of SWFobject, more info is here: http://blog.deconcept.com/swfobject/
View Replies !
View Related
Embeding SWFObject Help
All of a sudden I upgraded my IE and bam, now I have to click on the damn SWF movie before I can interact with the site. So how does one fix this. I read a lot about the SWFobject, but not sure how to apply it.
I tried and tried before posting.
Please help thanks.
View Replies !
View Related
SWFObject Array
I'm using SWFObject and i'm wondering if it's possible to give the swf an array from the html page?
the way to give it a variable is:
so.addVariable("var1", "data1");
So logically the way to make an array would be:
so.addVariable("data_array[0]", "data1");
But this doesn't work. Is it possible, and how?
View Replies !
View Related
Swfobject Dilemma
I was testing the swfobject to see how it works and see whether I should use it or not. I notice there's one downside: for an example the plug-in enable is off while the javascript enable is on in the browser settings which means the swfobject will proceed its' function to replace whatever content in the targeted div with the swf which in result will show the content being empty due to the content being replaced by swf and plug-in enable is off. The viewers basically will be clueless that there's static (inform them they need to upgrade/enable javascript) or swf content is there. So the question is how do you approach the issue with a solution, just ignore this issue and use swfobject anyway or what?
Happy Holidays!
friggin' mick
View Replies !
View Related
AS3: Any Luck Using SWFObject And As3.swf
Curious to know if anybody has had luck with the SWFObject version detection and a FP9/AS3 built swf?
I am getting it to successfully detect the version and DISPLAY the right stuff, but I am hoping that I can get the "behind the scenes flash player update" to work.
BTW, there is not much documentation on AS3 and SWFObject or any kind of AS3-built swf auto update.
I tried taking the swf detection/auto update in a Flex2 project and copy it over. That didn't succeed very well.
View Replies !
View Related
ExternalInterface + SwfObject
I'm trying to load images into flash using js. The movie loads fine, but it doesn't load the images. Anyone help would be super. So far I have
Code:
<script type="text/javascript">
// <![CDATA[
var flashMovie;
function init() {
if (document.getElementById) {
flashMovie = document.getElementById("gallery");
}
}
window.onload = init;
var images:Array = ("1.jpg", "2.jpg");
if (flashMovie) {
for (i = 0; i<images.length; i++) {
gallery.loadItem(images[i]);
}
}
}
// ]]>
</script>
in the html I have
Code:
<div id="flashThumbs">
<script type="text/javascript">
// <![CDATA[
var fm = new SWFObject("flash/gallery.swf", "gallery", "490", "337", "8.0.15", "#ffffff", true);
fm.addParam("wmode", "transparent");
fm.addParam("allowScriptAccess", "always");
fm.write("flashThumbs");
// ]]>
</script>
and finally in the as i have
ActionScript Code:
function loadItem(images):Void
{
container.loadMovie(images);
}
var EI = flash.external.ExternalInterface.addCallback("loadItem", null, loadItem);
stop ();
View Replies !
View Related
Need One More Option With Thw Swfobject
hello all, this is my first time using these forums, but i have been reading a lot of stuff over the last years in the tutorials of this site
i have recently implemented the swfobject on a website (http://www.kirupa.com/developer/flash8/flash_fix.htm, http://blog.deconcept.com/swfobject/) to fix the embed issue.
i am creating a top nav in swf. i would like the tab onto which we land becomes highlighted (so we know what page were on, ie: home | registration | ABOUT US | contact) but i cannot write a flashvar on each page since my flash has to be in a header block, that is loaded via coldfusion.
i know i can pull variables from the url, but is it possible with swfobject to also add variables to the url?
for example, when someone clicks on registration, i would like this to happen:
http:/www.url.com/registration?selectedMenu=Registration
or something like this (i am not a cf programmer, so im not sure i added that vars properly in the url)
then with the getQueryParamValue from the swfobject, i would be able to pull that once the user has landed on the page and then highlight the proper tab in the top nav.
please lemme know if i am unclear, thx for helping!
edit: sorry for the typo in the title
View Replies !
View Related
SWFobject And Ajax Div?
Hi all,
I am using an ajax makerequest function, which updates a particular div (id=contentText). But the div does not display the flash inside, SWFObject does not seem to be executed when the page loads.
Now when I look at the generated browser source code, i can see the named div(id=contentText) which I use with ajax. But not the innerhtml with a div (id=flashContent).
flashContent is used by swfobject (so.write("flashContent"))
Any ideas how to use swfobject and ajax?
View Replies !
View Related
Doctype + SwfObject
Hey all,
Finally get to do another flash site!
Anyways, I'm using the swfobject as I always do - but I also want the site to validate - meaning I need the doctype.
However, in Firefox, using Doctype and the SwfOjbect = swf being like super small in firefox (using embed tags works fine though).
Is there any way to use both the swfobject and doctype for 100% flash sites?
Thanks
View Replies !
View Related
SWFObject: Using ExpressInstall
Hello:
As I understand it, I would use the ExpressInstall parameter in SWFObject:
so.useExpressInstall('expressinstall.swf');
if Flash IS installed on the user's browser and their version < my version.
Can I also use the redirectUrl attribute:
so.addAttribute("redirectUrl", "http://www.example.com/altcontent.htm");
to display alt content if Flash is not installed/disabled in browser?
Or will it always go to the alt content?
Thanks.
View Replies !
View Related
|