Questions

Answer

How to specify the correct path in the embedding code of the SWFs

 

Generally, you must know that the path of the assets the SWF uses (the path of the images or videos specified in the XML file and the path of the XML files themselves) must be relative to the path of the HTML file which embeds the SWF file (and not relative to the SWF file - a common confusion).

If the folder path of the HTML differs from the product’s folder path (the folder in which the XML files and images or videos are located) then you must specify that path as value for the base attribute.

This is an example for 3D Banner FX (replace the product's name if you're using a different one):

- the index.html file is located at this address on your domain: http://www.yourdomain.com/index.html

- the swfobject.js file is located at this address: http://www.yourdomain.com/Banner/swfobject.js

- the product's files (XMLs, assets and images) are located in the Banner folder: http://www.yourdomain.com/Banner/

- the 3DBannerFX.swf file is located in the product's folder: http://www.yourdomain.com/Banner/3DBannerFX.swf

This is the embedding code you have to use:

<div id="Div3DBannerFX"></div>
<script type="text/javascript" src="Banner/swfobject.js"></script> //specify the folder's name here
<script type="text/javascript">
 var flashvars = {};
 var params = {};
 params.base = "Banner/"; //specify the folder's name here
 params.scale = "noscale";
 params.salign = "tl";
 params.wmode = "transparent";
 params.allowFullScreen = "true";
 params.allowScriptAccess = "always";
 swfobject.embedSWF("Banner/3DBannerFX.swf", "Div3DBannerFX", "600", "374", "9.0.0", false, flashvars, params); //specify the folder's name here
</script>

You can also use absolute paths like in this example:

params.base = "http://www.yourdomain.com/Banner/";

In case you used a different folder name don't forget to replace in all locations the Banner name with the name of your folder.

Note: there are three different locations in the embedding code where you have to specify the product's folder name so make sure you update all of them.

Comments

sandeep

Posted 8 years ago

Thank you so much…it works fine..

sandeep

Posted 8 years ago

Hi,
can i use this with asp.net website?If yes then pls help me how can i use this dock galley in my asp.net website…??Pls reply soon..i need it urgently
Thanks…

FlashXML Support

Hi,

You have to follow the install instructions from Dock Gallery’s page.

wsey

Posted 8 years ago

hi

I have a menu for flach xml as a blog on blogger

this menu has only two swf files and xml

FlashXML Support

Hi,

About what component of ours are you talking about? What exactly is it’s name?

wsey

Posted 8 years ago

hi

I have a flash menu it has three files in the fla file, xml file and swf file.

how do I get for it on a website or blog.

good where my site is hosted ospedar not have as one of the two men.

how do I run it on a website or blog.

I’ve stayed both files the xml file and swf file on another server,
need for this menu on my site. how to do it on my site and aparese fumsionar.

I’ve been searching I found some codes that did not work but it appears the effects are and nothing appears.

I can help I will be grateful!?

FlashXML Support

Hi,

What Flash component are you referring to?

Chris

Posted 8 years ago

Thank you for the reply to my earlier folderPath question. Unfortunately, your recommendation did not help. From what I can see, your suggestion works great if index.html is on a web server. However, it does not work when the html file is accessed by the browser from a local PC drive. This seems to be unique to the video player component as the other components I have tried do not have this problem.

To replicate my environment, create directories named c:\base\video and c:\base\myskin on your PC. Extract the entire contents of video-player.zip into BOTH directories. Delete (or rename) settings.xml in c:\test\video and change the copy of index.html in c:\test\video to include your recommended flashvars setting:

var flashvars = {}; flashvars.folderPath = “../myskin/”; var params = {};

Once this change is in place, double click on the custom index.html file. On my system, I just see a blank white box where the videos should be playing.

If those same steps are done within a web hosted directory and index.html is served by the web server, it works just fine. Is there something different that needs to be done for local hosting?

FlashXML Support

Hi,

Send to support[at]flashxml.net the package with your folder structure and files so we can check it.

Do you have a question?

you will get an answer in 24 hours, tops.

(required) Only alphanumeric characters allowed
(required) (will not be published)
Please type a message! Your message is too long! Either try to keep within 1500 characters, or contact our support team via email at support [at] flashxml.net.
(will not be published)
You mistyped the two words!
Can't read? Change the image
Format your comments using Textile: *bold*, _italic_, "link text":address, @code@
Connect to us on Facebook Follow us on Twitter Subscribe to our RSS feed
Copyright © FlashXML.net 2009 - 2019