Help with inserting SWF file into .html page
I created a photo gallery in Flash CS5.5, using the advanced photo gallery template. It works fine as a standalone SWF file but it's not displaying properly when I try and insert it into the Gallery page of my website.
The thumbnails are showing as blank white boxes and the main image holder isn't showing at all, though the controls beneath it are showing. The SWF file and all the images are stored in site/images/gallery/ and my Gallery page is in the root. What's going on here? Can anyone help please?
Thanks
If you are storing any of your Flash assets in sub-folders and having problems... it's most likely because of pathing problems. For review:
Pathing issues
Almost always when it works on the local machine and not the server, it's a pathing problem.
You can put your Flash related files in whatever folders you want, they do NOT have to be in the root, they do NOT all have to be in the same folder. But if you have a problem and if sticking them all in the root folder works, then you know that the issue was a pathing problem.
Just remember that paths used in the .swf become relative to the Web page on which the .swf is placed, NOT it’s physical location. So for example, if your .swf is in the flash/data folder and you use that .swf on a Web page in the root folder, you are in effect, removing that .swf from flash/data and putting it in root. So if the .swf is loading any related files (xml, images, video, etc), the path used inside the .swf to load the .xml file has to be relative to it's new location in root and then back down into flash/data. This is true even though when testing the .swf by itself, it can be inside flash/data and work just fine, since relative to it's location, the path is just fine, they are in the same folder. But if that same path is used when the .swf is placed on a page two folder levels up, the relative path has changed, the old "same folder" path will not work.
In fact if you are placing the .swf on a web page in a different folder than the .swf is stored in, and that .swf calls external assets, then direct clicking and opening of the .swf in it’s folder should NOT work! That’s because the paths to the external assets should be relative to the Web page and not the physical location of the .swf.
So just be sure that you use addresses relative to the final Web page locations (not physical file locations) and you can put the Flash related files in what ever folders you want.
Best wishes,
Eye for Video
www.cidigitalmedia.com
What it boils down to is that you need to path the Flash assets from the Web page that you place the main .swf on... NOT the physical location of the .swf
Best wishes,
Adninjastrator
Similar Messages
-
.swf file in html page with WebLogic Server in Netscape
I am not able to embed .swf (flash) files in html page when accessed thru' Weblogic server in Netscape Ver. 5 and below but supported in Netscape6.0 and IE. When run as html page without WebLogic server, it is working well. Please suggest a solution for this problem to my mail id.
I've had a quick trawl round the web, but can't find an answer to this specific problem - will let you know if i discovr anything.
Lots of people seem to have problems because the relative url address has to be in relation to the html page, not the loading swf. All my files are in the same folder, so it;s not that. Also, the problem occurs whether running from my hard drive or web server. -
Inserting swf file into dw vs. creating full site in flash
I'm updating a website, and am pretty familiar w/html and DreamWeaver, but would like to add some elements of Flash into the site. I am using Flash CS4.
What is the advantage and/disadvantage of inserting various swf files into my DW site versus just creating the entire site in Flash; what's the difference in either approach?
If I do the latter, do I eventually bring it into DW anyways so that it is an html file?
Thanks for your help!There can be potential issues with Flash content in a web site since the evolution of iStuff led to disallowing Flash content to be displayed. If you are looking to attract a mobile user base, then going with Flash can be a gamble, especially as you go further on into the future where there will no longer be Flash Player development to parallel the mobile market.
I have heard that Flash content does not support handicapable design elements that html/css provide for.
You can always have the web page code check for the availability of the Flash Player, and if not found have alternative content presented instead.
An issue with having a full Flash site is that it can be less SEO friendly than going with straight html-based designed, although since the Flash content would still reside in an html page there are some measures that can be taken to support SEO concerns.
For a full Flash site design you would probably not need DW since Flash can generate an html page of its own.
I recommend you post your questions in the Dreamweaver forum as well. The reaction there to using Flash content is likely to be harsh, so don't take it personally, but some helpful information might still be gleamed from trying. -
Help with publishing .swf files in iweb...
Hi,
I am trying to publish .swf files into my website. I have uploaded the files in my idisk in the 'Web' 'Sites' folder where the rest of my website files are held. I have used Roddy's html snippet...
<iframe width="420" height="420" frameborder="0" src="http://idisk.mac.com/username//Web/Sites/flashfiles/filename.swf"
</iframe
When I publish and visit my site I get asked for my username and password for idisk(?) I have not set this (I've checked). Can anyone shed any light on why this is happening. Have I uploaded my .swf files to the wrong place maybe?
Thanks in advanceALWAYS define URLs from --the-- your visitor's browser point of view.
http://idisk.mac.com/username//Web/Sites/flashfiles/filename.swf
should be
http://web.me.com/username/flashfiles/filename.swf
Message was edited by: Wyodor -
Embedding .swf file into web pages
What's the best way of embedding a flash file into web pages?
After Microsoft introduce something about the active object (need
to click on the Flash file first on IE to activate it) it seems
like the best way is to use 'FlashObject'. Is there any other
better way? Thanks a lot.SWFObject, which
used to be FlashObject. -
Need your Help with Swapping SWF File Problem
Hello,
I have two separate Flash SWF files which I would like upload
into the same HTML file. But I would like to load only one of them
at the time and would like to have a Button on each SWF Flash file
which causes the other SWF to be loaded.
hmmm.. I am not sure if I managed to make sense. :o) Let me
try it one more time. :o) I would like to swap one SWF file for
another SWF file by clicking on the buttons which are placed on the
SWF files! :o)
I was wondering if that is possible or I should think of
another way to get around this problem of mine.
Thank you very much for your help and have a great day.
Cheers,
BabakKhoramdin wrote:
> Hello,
>
> I have two separate Flash SWF files which I would like
upload into the same
> HTML file. But I would like to load only one of them at
the time and would
> like to have a Button on each SWF Flash file which
causes the other SWF to be
> loaded.
>
> hmmm.. I am not sure if I managed to make sense. :o) Let
me try it one more
> time. :o) I would like to swap one SWF file for another
SWF file by clicking
> on the buttons which are placed on the SWF files! :o)
make one swf as a holder. call it main.fla main.swf file.
Embed that file in your html document. In that file place
button with the
following action :
on (release) {
loadMovieNum("second.swf", 1);
in that file have a button with action to load the 3rd file :
on (release) {
loadMovieNum("3rd.swf", 1);
by loading them in same level (1) they will replace each
other.
Pretty simple..uh ?
Regards
Urami
Happy New Year guys - all the best there is in the 2006 :)
<urami>
http://www.Flashfugitive.com
</urami>
<web junk free>
http://www.firefox.com
</web junk free> -
Need Your Help with Swapping SWF files
Hello,
I am need to swap Two SWF files. I am acheving this by make
one swf as a holder. call it main.fla main.swf file. Embed that
file into my html document. In that file I placed one button with
the
following action :
on (release) {
loadMovieNum("second.swf", 1);
in that file have a button with action to load the 3rd file :
on (release) {
loadMovieNum("3rd.swf", 1);
by loading them in same level (1) they will replace each
other. My problem is that my SWF files obtain some information
using combination of PHP and XML file. I have noticed when I place
the SWF with it’s required PHP and XML in separate folders
the SWF file is uploaded (swapped) but since the PHP files are NOT
run by the server my dynamically generated XML files are empty and
therefore the uploaded SWF file has not information expect the SWF
file. Is there any way to get round this problem?
Thank you in advance for your help and hope you have a great
day.
Cheers,
BabakKhoramdin wrote:
> Hello,
>
> I have two separate Flash SWF files which I would like
upload into the same
> HTML file. But I would like to load only one of them at
the time and would
> like to have a Button on each SWF Flash file which
causes the other SWF to be
> loaded.
>
> hmmm.. I am not sure if I managed to make sense. :o) Let
me try it one more
> time. :o) I would like to swap one SWF file for another
SWF file by clicking
> on the buttons which are placed on the SWF files! :o)
make one swf as a holder. call it main.fla main.swf file.
Embed that file in your html document. In that file place
button with the
following action :
on (release) {
loadMovieNum("second.swf", 1);
in that file have a button with action to load the 3rd file :
on (release) {
loadMovieNum("3rd.swf", 1);
by loading them in same level (1) they will replace each
other.
Pretty simple..uh ?
Regards
Urami
Happy New Year guys - all the best there is in the 2006 :)
<urami>
http://www.Flashfugitive.com
</urami>
<web junk free>
http://www.firefox.com
</web junk free> -
[Need help with a swf file]
Hello,
I need help with a flash demo that I am creating. I have a
main swf file that contains links to other sub swfs that I have
created. What I really want this to do is... when I click on one of
the link on the browser, the other swf have to load in the window.
I tried to code it with .loadMovie,.... but for some weird reason,
it is not showing up.
Can anyone help me on this?
Thanksyou might have a security violation and you do have a
load-target issue. remove that "_parent": there's no 2nd parameter
in the loadMovie() method.
if you want to replace the main swf with that url, loading
into _root is fine. otherwise, you want to use a different
target. -
Best way to publish Edge files into html page?
Ok,
So im looking for the best way to add my edge files into my html page.
I want to make it easy to integrate edge with dreamweaver html files, e.g if I change anything in my edge project and publish it I dont need to transfer the html over to my page again.
I thought the best way to do this was put all the edge files into there own folder within my sites_files folder and then use iframe. However when I did this, I can not figure out how to use CSS to style the iframe.
this is what I have tried
<iframe id="test" src="mackbyte1_files/animation/power-out-setup/power-out-preview.html" frameborder="0" height="400px" width="940px" scrolling="no" >Your browser does not support this animation. Get a real browses made for the 21st century! We recommend Chrome or Firefox...</iframe>
I have tried using a ID for the iframe which didnt work.
Without the iframe my animation is centred in the screen from the CSS with edge html e.g
.edgeLoad-power-out-preview {
visibility:hidden;
#Stage {
height: 400px;
width: 940px;
margin-left: auto;
margin-right: auto;
border-radius: 7px;
background-color: #CCC;
I have given up and just manully copy/paste the html into the page I want it in. this works fine however, as stated if i make changes to my animation i have to amend the html which is a little annyoying.
Is there a fix?
Thanks in advancedjoel_pau wrote:
Hi,
Can you copy and paste your html code from "mackbyte1_files/animation/power-out-setup/power-out-preview.html" ?
hey mate,
this is it
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=IE8"/>
<title>p-o-preview</title>
<!--Adobe Edge Runtime-->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script>
<script type="text/javascript" charset="utf-8" src="power-out-setup_edgePreload.js"></script>
<style>
.edgeLoad-power-out-preview { visibility:hidden; }
#Stage {
height: 400px;
width: 940px;
margin-left: auto;
margin-right: auto;
border-radius: 7px;
margin-top: 20px;
</style>
<!--Adobe Edge Runtime End-->
</head>
<body style="margin:0;padding:0;">
<div id="Stage" class="power-out-preview">
<div id="Stage_pw-point" class="edgeLoad-power-out-preview"></div>
<div id="Stage_usb-hub-pluged2" class="edgeLoad-power-out-preview"></div>
<div id="Stage_usb-hub-unpluged2" class="edgeLoad-power-out-preview"></div>
<div id="Stage_usb-for-hub" class="edgeLoad-power-out-preview"></div>
<div id="Stage_usb-hub-pluged-unlit" class="edgeLoad-power-out-preview"></div>
<div id="Stage_usb-cable" class="edgeLoad-power-out-preview"></div>
<div id="Stage_imac" class="edgeLoad-power-out-preview"></div>
<div id="Stage_usb_icon-power-out" class="edgeLoad-power-out-preview"></div>
<div id="Stage_Lightning" class="edgeLoad-power-out-preview"></div>
<div id="Stage_imac-off" class="edgeLoad-power-out-preview"></div>
<div id="Stage_shutdown-page" class="edgeLoad-power-out-preview"></div>
<div id="Stage_shutdown-page-30" style="display:none;"></div>
<div id="Stage_imac-black-off" style="display:none;"></div>
<div id="Stage_RoundRect" style="display:none;"></div>
<div id="Stage_play-btn" style="display:none;"></div>
</div>
</body>
</html> -
Help with setting up a new html page
Following the tutorial and it tells me to select 'structure' on the insert tab when setting up a new html page. I do not have the 'structure' option. Help please.
If you don't have the Structure option, you probably don't have Dreamweaver CC. The tutorial is designed for CC. It won't work with earlier versions of Dreamweaver.
If you're using Dreamweaver CS6, you might be interested in this six-part written tutorial series: http://www.adobe.com/devnet/dreamweaver/articles/first_website_pt1_cs6.edu.html. -
How to embed jnlp file into html page using object tag
hi everyone,
i have written one jnlp file like this.
<?xml version="1.0" encoding="utf-8" ?>
<!-- JNLP file for Demo applicaion -->
<jnlp spec="1.0+" codebase="http://localhost:9080/base/" href="SampleExample.jnlp">
<information>
<title>Demo Application</title>
<vendor> </vendor>
<description>Sample Demo Application</description>
<offline-allowed/>
</information>
<security/>
<resources>
<j2se version="1.3+" />
<jar href="common.jar" main="true" download="eager" />
<jar href="classes12.jar" download="eager" />
<jar href="toplink.jar" download="eager"/>
<package name="com.applet.*" part="applet" recursive="true"/>
</resources>
<applet-desc name="grid" main-class="com.applet.PriceGrid" width="1000" height="300"/>
</jnlp>
i am trying embed that jnlp file using object tag like
<OBJECT
classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH="1000" HEIGHT="300" NAME="grid">
<PARAM NAME="jnlp" VALUE="http://localhost:9080/base/SampleExample.jnlp">
</OBJECT>
but i am not able to load the applet using Web Start.
Can anyone please help me. This is very Urgent for me.
Thanks & Regards,
Shiva.thanks.
i am giving my problem clearly. i have one applet. Previously i am loading the applet in my html page using object tag like this...
<OBJECT
classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH="1000" HEIGHT="300" NAME="grid">
<PARAM NAME="CODE" VALUE="com.adp.base.applet.PriceGrid.class" >
<PARAM NAME="ARCHIVE" VALUE="common.jar,classes12.jar,toplink.jar" >
<PARAM NAME="NAME" VALUE="grid" >
<PARAM NAME="type" VALUE="application/x-java-applet">
<PARAM NAME= "cache_option" VALUE ="no">
</OBJECT>
now what i need to do is
i need load the applet only first time using web start and when ever the applet code changes in the server i need to reload the applet.
for that i kept all the applet resources in .jnlp file.i want to cache all the resources which are in .jnlp file and applet must be displayed within a web page within a browser.
Webstart always open a new application windows.
I need to run an Applet embedded within a web page within a browser.
Is there a way to still use Webstart? -
Need help with combining swf files together
Hi Everyone
I have problem with my project.
I created several SWF files, now i want them to interact with each other
So there is main SWF file lets call it:
main.swf
then within that file(main.swf) i would like to create buttons which will be calling other swf files for instance by pressing one button one.swf will be open by pressing other button two.swf will be open and so on.
Then I would like to create buttons within one.swf and two.swf which will allowed to go back to main.swf
If someone could help me how to do it I will be grateful.
AS2.0 i am working with
many thanksthanks for quick respond
So the first of all my main.swf would load, within it i would have a button. If i click on button will take me to frame 40 ( just example ) where i will have this.loadMovie("first.swf"), when this file will be loaded i want to have other button with in the first.swf which will take me back to main.swf and now you are suggesting to use this.removeMovie("first.swf")?
I am not sure if i got you answer right
Thanks again for help i am quite new to ActionScript as you can tell. -
How to insert .swf video into html & mute onclick
I have a .swf file - a 20 sec vid with no player controls, just the video - made by someone else, so this is the only file type I have and can't seem to edit it.
Any way to insert the .swf, and be able to mute the video? It's being used as a banner-type-thing and if people don't want to hear it, they should be able to mute it. I don't need play/pause/stop/etc. - just mute. So however it can be done, either on-click or as a button, would be great...
so confused! this should be easy, no?
thanks
-jonboyHi
Unfortunately as you do not have the fla file that was used to create the swf, this cannot be done without turning of the sound on the users computer, which would probably annoy your user.
The only other way is to purchase an swf de-compiler, and then recreate the fla with the mute button, this would naturally require you to use flash pro.
PZ -
Help with importing r3d files into premiere pro cs6
When I try to import these files into the media browser, a notification pops up saying the file is either damaged or unsupported. The file is not damaged however, and I need to be able to import these files into my project.
do you know the 'flavor' of .r3d?
red epic: imports fine
red dragon: can't import into cs6
if it's dragon, you will have to flip to a format cs6 likes
by using the free redcine-x
http://www.red.com/products/redcine-x
hahahahahahahahahaha!!! -
Need help with Java script calling an html page
Hello -
I have a bunch of web pages, that call a java script called "header.js". The "header.js" puts a header on the top of each web page. In the Java script, I have a gif (picture) that displays a logo and if you click on it, it will send to you a different website.
I'd like to replace this gif with an actual web page. So, the "header" would actually be a web page and not some gif.
Below is a snippet of the code and I'd like to replace the highlighted section with a web page called "header.html". I don't even know if this is possible.
Can anyone tell me what I need to do? I know pretty much nothing about Javascripting so please be as detailed as you can. Thanks!
/* Common header across all pages... */
document.write(' <div id="header" class="clearfix">');
document.write(' <div id="left" class="float_left">');
document.write(' <div id="logo"><a href="http://www.xyz.com/" onclick="window.open(this.href);return false;" onkeypress="window.open(this.href);return false;" target=_blank><img src="/images/xyz.gif" width="105" height="75" alt="" border="0" /></a></div>');
document.write(' <div id="mainNav" class="clearfix"> ');
document.write(' <ul>');
//document.write(' <li id="nav_controls"><a href="controls.html">Controls</a></li>');
document.write(' <li id="nav_motion"><a href="motion.html">Motion</a></li>');
document.write(' <li id="nav_sensor"><a href="sensor.html">Sensor</a></li>');
document.write(' <li id="nav_encoder"><a href="encoder.html">Encoder</a></li>');
document.write(' <li id="nav_system"><a href="system.html">System</a></li>');
//document.write('<!-- <li id="nav_logs"><a href="#">Logs</a></li> -->');
document.write(' </ul>');
document.write(' </div>');
document.write(' </div>');
document.write(' <div id="right" class="float_left">');
document.write(' <div id="controls">');Well, the problem with this is that I'm not an expert on SSI and I really know nothing about javascripting...so I'm afraid of breaking the whole web site and also having to modify all the web pages that call this header.
I'll have to read up on server side include...cause I don't know much about it.
If I could do what I want with this "header.js", it would be a lot easier.
Maybe you are looking for
-
has anyone ran into this problem? I made a phone call and talked for a very short time, but as i went to hang up the call my screen was still black, i couldnt get the phone to responed, i pressed every button and touched the screen, it wouldnt respon
-
SAP Login Details for audit.
Hi All, I have one requirement in which I need to get login details of particular user or all. I have timestamp (from & to) username (KIRAN123 or ALL), keeping this I need to pick up the login details. To say the history of login done for that userna
-
i can not sync my contacts because i can not check the box or open the "configure" button on the organizer menue. this has been a problem for months, i just downloaded the new desktop software hoping the fix would be in there but no such luck ,what t
-
Best graphics card for Mac Pro Early 2008?
I have a Mac Pro Early 2008 with the default graphics card (ATI Radeon HD 2600), and would like to make an upgrade to a better graphics card that will run games smoothly. I'm not an expert with computers at all, but all I know is I would like to buy
-
Anybody got any experience with upgrading Spamassassin to version 3.1.2
Spamassassin 3.1.2 seems to have much improved (expanded) rules (over 3.0.1 supplied with 10.4). It would seem to be a good idea to upgrade. Are there any gotchas? How would one go about it? Also, if I want to kill an email address, ie: reject all em