swf. question
- Started
- Last post
- 26 Responses
- BANKattack
I've previewed in browser, uploaded everything correctly, but my swf. isn't showing up. Do I have to upload some "active script" or javascript thing to my ftp to get this to work? Never had this issue when I used livemotion.
Thanks!
- flashbender0
link?
Look into swfObject perhaps:
http://blog.deconcept.com/swfobj…
- amullins0
what browser are you using?
- rson0
do you have this direct
Scripts/AC_RunActiveContent.js
- amullins0
http://www.sam-bank.com/Scripts/… " 404 - not found"
- storypixel0
http://www.sam-bank.com/swfobjec… also not found
- flashbender0
you are calling 2 different things:
This works:
http://www.sam-bank.com/index.sw…This is not found:
<script type="text/javascript">
var so = new SWFObject("movie.swf", "mymovie", "400", "200", "8", "#336699");
so.write("flashcontent");
</script>What happens if you change "movie.swf" to "index.swf" there?
- flashbender0
you are calling 2 different things:
This works:
http://www.sam-bank.com/index.sw…This is not found:
<script type="text/javascript">
var so = new SWFObject("movie.swf", "mymovie", "400", "200", "8", "#336699");
so.write("flashcontent");
</script>What happens if you change "movie.swf" to "index.swf" there?
- oops, weird, got a server error.flashbender
- oh, unless you are passing "movie.swf" into "index.swf". I would say it is the scripts being 404 in that case.flashbender
- rson0
so it looks like you need this file AC_RunActiveContent.js
- BANKattack0
I have AC_Run... in my html. I don't have a scripts folder ? Does it need to be in there?
- storypixel0
You don't need AC_RunActiveContent.js... you only the need the code for swfobject if that is what you are going to use (which I recommend).
1. Put the swfobject code back inside the body (between the <body> and the </body>) currently it's outside of the entire html document
2. Upload swfobject.js to your main directly
3. done
- storypixel0
You would need AC_run blah if you weren't using swfobject. You don't need AC_blahblah for swfobject, just swfobject.js ... upload to sam-bank.com/swfobject.js
- amullins0
if you don't want to use swfobject (for some odd reason).
when you published your swf from the flash ide, it should have created the runactivecontent js file. upload that into a Scripts directory on your server.
delete the swfobject script(s) from you page
- BANKattack0
got it to work but now it's tiny and fukt - how'd that happen? It should look ideally like http://www.sam-bank.com/index.sw…
- storypixel0
var so = new SWFObject("movie.swf", "mymovie", "400", "200", "8", "#336699");
here the 400 is width and the 200 is height... adjust these values
- storypixel0
"movie.swf", (swf name)
"mymovie", (the object id)
"400", (width)
"200", (height)
"8", (lowest required flash version number)
"#336699" (background/stage color, maybe change this to #ffffff)
- BANKattack0
you guys are awesome
thanks a lot
- storypixel0
U r welcome
- rson0
You know... what i am awesome! Maybe not for this thread.
- I think you are awesomestorypixel
- Thank you I really needed that!rson