Hi, I have a flash with xml that I want to put on my front page. I've put the call to flash in and it's pulling up the flash when I look at the site, but it's not taking the xml data to get the specific images (it's a slide show). I've been reading but I can't tell if something special has to be done when it's xml. I have a data.xml file that is in the same directory as my images and my flash that calls the images. So I think everything is fine on that end. But is there a something in the drupal end of things I need to do?

Thanks,
Lisa

Comments

Chill35’s picture

I've put the call to flash in and it's pulling up the flash when I look at the site.

Hello Lisa. What do you mean by "putting the call to Flash in" and "it's pulling up the Flash" ?

How did you embed the Flash object ?

When you do Source View of the web page, do you see anything unusual about the way your Flash object is "embedded" on the page ? Is it part of a story, page or part of a block (on the front page) ?

Are you using LoadVar in your SWF file ?

Caroline

lisar’s picture

This is what I've put in the content of the front_page.

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="485" height="332" title="flash">
        <param name="movie" value="files/flash/slide2.swf" />
        <param name="quality" value="high" />
        <embed src="files/flash/slide2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="485" height="332"></embed>

      </object>

The file loads correctly if I go to to the flash file url directly rather than through the main front page. As to the loadVAR in the swf file, I'm not sure. I had someone do the flash for me. But as I said, it works if I look at the .swf file directly on the server, just not through the front page. I'm not sure if that makes a lot of sense. I only know enough to make myself dangerous, learning as I go;)

Thanks,
Lisa

alexmc’s picture

How is the xml specified - I cant see it in the object code above.

What is the URL it fetches?

Chill35’s picture

Please try the following, instead :

*** all that I have done is adding a parameter that is "allowscriptaccess" and set it to "always" ****
in both embed and object

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="485" height="332" title="flash">
<param name="movie" value="files/flash/slide2.swf" />
<param name="quality" value="high" />
<param name="allowscriptaccess" value="always" />
<embed src="files/flash/slide2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="485" height="332" allowscriptaccess="always"></embed>
</object>
alexmc’s picture

Can you break down the problem? Can you fetch the xml file with a browser? what does your error log say? access log?

Chill35’s picture

This is what I've put in the content of the front_page.

When you do a View Source of the front page in the browser and look at the HTML do you see that markup you just posted ?

Caroline

lisar’s picture

I actually just copied and pasted it into here for it.

lisar’s picture

I don't really understand all that stuff to be honest. But I'll try and break it down. I can't post the url because it's in a password protected area, so I'll just use generic ones.

If I go to www.mydomain.com/files/flash/slider2.swf
the flash looks as it should, it loads the images from data.xml and it works correctly, slide show, etc.

the data.xml file is this;

<?xml version="1.0" encoding="iso-8859-1"?>
<Slider duration="5">
<item image="files/flash/slide1.jpg" ><![CDATA[http://www.mydomain.com/join/]]></item>
<item image="files/flash/slide-show2.jpg" ><![CDATA[http://www.mydomain.com/connect/]]></item>
<item image="files/flash/track-slide-3.jpg" ><![CDATA[http://www.mydomain.com/track/]]></item>
</Slider>

if I go to www.mydomain.com the flash is in the content of the front page, ie. in the admin/settings/front_page, I put the html code as you saw above that embedded the flash. This loads up the slider2.swf but it's "empty" in that it shows my slider buttons and transition item,but not the images, that the data.xml file refers to. The flash and other text copy is inside a table. I just put all that code in the front_page section in admin.

No error in any of the logs is showing. Hopefully that helps. I really appreciate all the responses:)

Chill35’s picture

Look above for a suggestion I have made. Please try that.

The problem comes from the Flash object being embedded.

lisar’s picture

here's the source code to verify that I put in the right thing:

 <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="485" height="332" title="flash">

<param name="movie" value="files/flash/slide2.swf" />
<param name="quality" value="high" />
<param name="allowscriptaccess" value="always" />
<embed src="files/flash/slide2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="485" height="332" allowscriptaccess="always"></embed>
</object>

still the same. Is there another way to put in the flash without embedding?

Chill35’s picture

Your friend is probably using code like this in the Flash file :

var xmlVal:XML = new XML();
xmlVal.load(“data.xml”);
Chill35’s picture

Try reducing the size parameters :

width="485" height="332"

I have had no Flash showing when the html block in which it was inserted was too small. I know you're getting the Flash but no pictures loaded by it.

[edit] sorry, asking a question already answered

Caroline

lisar’s picture

I just copied and pasted the html in the body area in the front_page module, at admin/settings/front_page. You don't create a separate page, it's just all done in there with that module.

Chill35’s picture

I just copied and pasted the html in the body area in the front_page module, at admin/settings/front_page. You don't create a separate page, it's just all done in there with that module.

Ho boy. You are using a contributed module called front_page ? I don't have that installed.

Chill35’s picture

I don't unserstand how you can put Flash on an admin page

There is no such page for me, by the way :

http://localhost/drupal-4.7.4/?q=admin/settings/front-page

lisar’s picture

you have to have the front page module installed to see that option.

lisar’s picture

where would I look for that? I've done some flash so I know my way around in there a bit. And if I do find it is like that,what should it be?

Thanks,
Lisa

lisar’s picture

the code you mentioned above in the .fla file;

var xmlVal:XML = new XML();
xmlVal.load(“data.xml”);
Chill35’s picture

Sorry Lisa, there's most probably nothing wrong with the code in the FLA file.

There's something about the way it's embedded...

Have you tried viewing the same page in Firefox ?

In IE... now, a Flash swf movie will not play unless we click on it. Unless it's embedded through JavaScript or something crazy like that.

Try viewing the page in Firefox.

Chill35’s picture

Then...

Have you tried embedding your Flash on an html page (not Drupal) on the remote server, with all files (pictures, xml file, swf) in the same directory, using the code above, to see if it works.

Flash embedded -vs- Flash not embedded is a different story.

For example, when you play the .swf file directly :

http://my.web.site/files/flash/flash.swf

... the browser will use the latest Flash plug-in for it. Whereas when you embed you specify which Flash player to use...

In your code, you ask for a Flash Player #version=7,0,19,0....

lisar’s picture

I installed it in a non drupal area and it worked. So it's definitely related to being embedded in drupal. I tried changing the version, etc.too and that made no difference. It's got to be something with the embedding.

So I guess what that comes down to. Is there another way to get flash in my page that uses xml?

L

zroger’s picture

use the swfobject.module. it uses swfobject.js to embed your swf using javascript, which gets around the IE object activation stuff. We use it every time we embed flash, and the majority of these make some kind of xml call.

Chill35’s picture

rz

Do you think there's a way though to use both front-page and SWFObject modules at the same time ?

Lisa, if you use SWFObject, you will need to download a file from an external web site (other than this one) and unzip it and copy a javascript file in your Drupal folder, in the /sites/default/modules/swfobject/js/ folder.

Then you can "place" that block which will contain your Flash object in the "content" area, and give it a light "weight" so that it stays on top (the block).

Then you can control on which page that block will be shown. You can select <front> for Front (or Home) page.

As far as I know, with SWFObject you can only put SWFObject in a block, which is great actually, then place that block anywhere on the page.

lisar’s picture

I can embed regular .swf file no problem. It's the xml part that is not working within drupal. So I installed this module and it's doing the same thing. The flash slide show without the xml called images shows. And with this method as a block, I can't see how to put it in context with the rest of my copy on my front page. Although I'm sure there's a way to call the block within the page content. But still overall, it didn't solve my problem.

I put the javascript up on the server, installed the swfobject module.
I put code in my page for the front_page;


<script type="text/javascript" src="modules/swfobject/js/swfobject.js"></script>
		
<div id="files/flash/slide2.swf">
 </div>

<script type="text/javascript">
   var so = new SWFObject("/files/flash/slide2.swf", "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000", "485", "332", "7", "#ffffff");
   so.addVariable("files/flash/data.xml");
   so.write("flashcontent");
</script>

which brought up nothing, not even the space for the flash, like nothing was even put there.

Then I tried it by creating a block and the same thing happened as what was happening originally, the .swf file shows without the images from the xml file.

At my wit's end and I need to complete this, maybe I'll have to post on the drupal developer's needed page. Unless someone who reads this says, "oh I know why that's happening":(

Thanks for everyone's help today:)

lisar’s picture

if I look at the block it created;

<div class="block block-swfobject" id="block-swfobject-1">
<div class="block-title"></div>
<div class="block-content"><div id='swfobject-container-1'><a href="http://www.macromedia.com/go/getflashplayer">Get Flash Player</a></div>
<script type='text/javascript'>
var swfobject1 = new SWFObject("files/flash/slide2.swf","clsid:D27CDB6E-AE6D-11cf-96B8-444553540000","485","332","7","#FFFFFF");
swfobject1.write('swfobject-container-1');
</script>

is there a way to have it call the xml file or is the swf supposed to do that automatically?

Chill35’s picture

Automatically, it seems. Since when you embed it on non-Drupal pages, it works.

Lisa check at the beginning of the source file (View Source)...

Is the html linking correctly to the swfobject.js file ?

Chill35’s picture

You need to send a variable to Flash in order for it to know which xml file to load ?

so.addVariable("files/flash/data.xml");

When there's a Javascript error, the script usually halts. Check your Javascript console in the browser.

Why chose "7" for the Flash Player ? Shouldn't it be "8" ?

I don't understand how your HTML needs to send the info about the xml file while the way you embed your Flash object on other non-Drupal pages, or run it on its own, you don't give Flash that "info" and it all works...??!!

Follow me ? :)

Chill35’s picture

Lisa, when you run the Flash SWF file on its own, i.e.

http://............long path ....../hello.swf

It works RIGHT ?

----

Now here are 2 things to try :

FIRST, use this code as example (Satay method)

change width, height, path... and forget swfObject for now.

<object type="application/x-shockwave-flash" data="..../..../movie.swf" width="550" height="400">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="..../..../movie.swf" />
</object>

NO EMBED TAG!!

The way the html page is parsed may cause problems with embed.

lisar’s picture

I really appreciate all the help you've been Chill, I wish it had worked:(

Yes, the file works on it's own with the long path. ie. http://www.mydomain.com/files/flash/slide2.swf

I tried the above code and it's the same thing, it doesn't show the xml images, just the "empty" swf file.

Chill35’s picture

Lisa, I believe you should report this as a bug. If it turns out it's not a bug with Drupal, than that bug can be closed.

It might be difficult to reproduce that bug... maybe using a lighter version than your own slideshow ?

I'd be happy to be able to reproduce the bug on my end.

I just tested the Flash ExternalInterface class using Drupal's swfObject module. That worked, but it's another ball game, it's about the Flash movie talking to the HTML page, calling Javascript functions defined on the web page, or built-in-core Javascript functions. That part works really well.

I wish I could help you more. And maybe I will be able to.

Caroline

Chill35’s picture

I tried the above code and it's the same thing, it doesn't show the xml images, just the "empty" swf file.

Is it possible that your browser and modem just did not have the time to upload the pictures OR the child swf movie, if one is the container of another.... ? Nahhh, forget it. You're probably saying : I waited 5 minutes or more... LOL...

Caroline

lisar’s picture

Hi Caroline,
I sent you an email through your contact link. Hopefully it's a valid email:)

Thanks,
Lisa

texas-bronius’s picture

Shot in the dark: my xml load woes have been solved in the past by including a file "crossdomain.xml" in the same dir as the swf (or is it site root?..) containing something like:

  <?xml version="1.0" ?> 
  <!DOCTYPE cross-domain-policy (View Source for full doctype...)> 
  <cross-domain-policy>
  <allow-access-from domain="*" secure="true" /> 
  </cross-domain-policy>

You'd want to read up on it on macrodobe's site of course..
--
..happiness is point and click..

--
http://drupaltees.com
80s themed Drupal T-Shirts

duntuk’s picture

yup that solved my problem...

read about it here:
http://www.jeroenwijering.com/?item=Embedding_Flash

dman’s picture

I've encountered the same problem once before.
Solved it pretty quickly once I saw the 404 it was creating.

It seems that some flash/slideshow/XML files go looking for their XML source RELATIVE to where the swf was (they don't use absolute URLs - which is basically correct)

However, if the flash is embedded in a page THAT IS NOT IN THE SAME DIRECTORY PATH as the swf, the relative calculations are made relative to the browser page URL, and not to the swf source.

So.
SWF file /files/flash/slideshow.swf viewed on its own invokes ./file.xml and retrieves the neighbouring /files/flash/file.xml
OK

BUT
Page /node/17 embeds /files/flash/slideshow.swf which invokes ./file.xml and therefore tries to retrieve /node/file.xml - relative to the current URL, not the Flash URL.

You'll see the failed request for /node/file.xml in your logs.

I worked around it with mod_rewrite, as I didn't have access to the fla.

Up to you to figure how you want to fix it. Either make the XML path more absolute, or place your xml files where they get looked for, or catch all requests for the xml file and rewrite them to the real path.

It's not directly Drupal, it's a side-effect of using virtual URL resolution rather than static pages. Also should be able to be fixed within Flash (a directive resolve links relative to the swf, not the wrapper page) but I dunno how that's done.

.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/

Chill35’s picture

Sooo... we're faced with the same tedious challenge when inserting Flash objects in nodes or pages as we are when inserting inline images by hand, more or less... As you say, it is a "it's a side-effect of using virtual URL resolution rather than static pages".

You'll see the failed request for /node/file.xml in your logs.

So the problem arises when clean URLs is enabled. We get paths as if we are accessing different pages in different directories. Of course, there is no such thing as a /node subfolder in your Drupal folder : the url query has been changed to deliver the user with a "clean" URL. So...Something like http://www.mySite.com/index.php?q=node/6 is changed to
http://www.mySite.com/node/6 in the browser's address bar.

I worked around it with mod_rewrite, as I didn't have access to the fla.

What rewrite rule did you use exactly ?
It would be very useful of you to share !! There's a a similar problem with images : when inserting them "by hand" we can't use relative paths to index.php when clean URL is turned on : the path the browser is using to access the image file then turns into http://www.mySite.com/node/6/files/myImage.jpg... and the browser can't find the file so the link is broken.

Either make the XML path more absolute, or place your xml files where they get looked for, or catch all requests for the xml file and rewrite them to the real path.

Placing the xml files where they get looked for probably won't work... unless creating directories just for that purpose, such as : node/6

How do you catch all requests for a specific sub-directory, say "files", and rewrite these requests in .htaccess ?

Please share!!!!

dman’s picture

There's always a pull between absolute and relative links. I like relative (more portable) but root-absolute just works better for most situations.

This problem became more pronounced in Drupal when between 4.6 and 4.7 we dropped the HTML BASE. A good thing, but requires double-think in some cases.

I work around it when I can by rewriting (in the code) to up-and-over (albeit long) URLs when I can.

The mod_rewrite was an unpleasant special case hack. Sorry I don't have access to the actual rule this week. It was actually to support flash that dynamically loaded other flash files, and a legacy setup where all flash was in /flash so I just caught all (*.swf) and returned /flash/$1 (IIRC)

Yes, you can't use relative paths when clean URLs and aliases are happening. Even node/edit/n paths give different results than node/n , creating broken images in one or the other case. The work-around is to begin the URLs with a /
Still not optimal for me, but it can be made to work,

I'd like to paste the rule, but I'm on holiday at the moment...

.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/

Chill35’s picture

Even node/edit/n paths give different results than node/n , creating broken images in one or the other case.

You've got that right.

The thing is I have used paths starting with /, but I test locally and remotely, and move my web sites around, and occasionally have installations in subdirectories, I certainly don't want to have to change the absolute paths in my node content, one by one. I am the only one, as admin now, that inserts images "by hand" — without using a contributed module to do so, that's what I mean — hence I use "php code" as my Input "filter". I use drupal's function base_path() to construct my web site root-relative path.

The reasons why I don't want to use a contributed module myself, or a WYSIWYG interface, are many : the WYSIWYG interfaces are buggy (tinyMCE is, anyway, in MSIE), and I know my HTML and CSS and want to have absolute control as to where and how to place my Flash content and images in my nodes...

The work-around is to begin the URLs with a /. Still not optimal for me, but it can be made to work.

For the reason I mention above, that does not work for me...

The mod_rewrite was an unpleasant special case hack.

I don't mind so much that it can be ugly. I am concerned however that it may add a little "delay" (minimal, mind you, but they all add up) in rewriting requests... and also I am having a hard time understanding regular expressions. I think though that for someone who knows a bit, it might not be so hard to figure out a rewrite rule. That's why I am asking.

Basically the rewrite rule must do the following :

  1. Check for the string "files" in the path
  2. Chop whatever comes before it
  3. Keep the rest

Something like that. Instead of catching all files ending with .swf...

Hence whatever is in /files (actual, real directory) and subfolders of /files will be accessible with a relative path, say <img src="files/pictures/IloveDrupal.gif" alt="Drupal rocks anyways" />.

Take your time! I'll remind you in a couple of weeks :)

Have great hollidays, i.e. the rest of them...

Happy new year!

Caroline

treepour’s picture

Having exactly the same problem. Any updates on how mod_rewrite hack (or any other advice/suggestions)?

sbarsky’s picture

I'm also having the same problem and very interested in the mod_rewrite solution.

jantoine’s picture

I am having the same issue. I am currently trying to use the free dfGallery on dezinerfolio.com to show a slideshow in my first node. The flash slideshow filename is gallery.swf and it calls gallery.xml which has two paths in the xml file, one for thumbnails and one for full size images.

My first problem was it couldn't find the xml file. I reviewed the logs and found that it was trying to find the xml file at /node/gallery.xml. I therefore wrote the following rewrite rule to catch all calls to /node/gallery.xml and rewrite the request as /gallery.xml. Please see rewrite rule below.

rewriteRule ^/node/gallery.xml$ /gallery.xml

This worked. It allowed the swf file to find the xml file but, the images still aren't loading. The problem is now I am seeing two instances in my access file of /node/undefined. I believe these are the references in the xml file to the thumbnail and full size image folders.

I don't have access to the fla file so I'm not sure this can be fixed but if anyone has any clue as to how I can correct this issue, please let me know. One clue might be that it was working fine until I turned on the CleanURLs module. This seems to be screwing things up.

Thanks in advance,

Jon Antoine
Owner
Antoine Solutions

Cheers,

Jon Antoine

jantoine’s picture

I assumed the provided xml file was trying to pull images from a folder rather than a url like yahoo, photobucket, etc. After reading through the documentation and xml file thoroughly, i found this wasn't the case.

Jon Antoine
Owner
Antoine Solutions

Cheers,

Jon Antoine

plutado’s picture

I'm going to try and write a mod_rewrite solution as well. For now, I've managed to get swf + xml working by using the flashnode module. I simply dropped the xml files that my swf file was attempting to reference into the drupal root directory. This means that my swf file was uploaded (by default) into the ./files folder - but the xml files are located on the same folder "level" as the files.

Having said that, I don't think it's true that drupal is looking for xml files @ node/file.xml. Rather, it's looking for your xml folder in your drupal root [the top] directory.

Hope this helps.

dman’s picture

With clean URLs off, you will indeed see it looking in the root.
Or if the Flash encoded blob pointed to the resource with a leading slash.
But if the link was rel, and clean URLs are on, You'll see where it was requested from in your access logs

.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/

alexpeterson’s picture

i had the same problem and spent 4 hours trying to solve it in various ways. The solution is simple. I moved the XML file to the root. That's all. Didn't edit any paths. And it worked. Hope this helps.

ChristianP’s picture

THIS! Thank you, it worked after a couple of hours of frustration! Thank you duuude.

Btw for you people who don't understand. Root by this case means the actual root of Drupal, not sites/all/themes/[themename], but where for example your Install.php is. :)

But! This didn't work for me if you have sublinks... :( Maybe it's because I'm using Drupal as a subdomain like www.example.com/drupalsite

It works on this link www.example.com/drupalsite/page/[have the flash block here]

But it doesn't work on: www.example.com/drupalsite/page/page2/[have the flash block here]

What to do? :(

The Base-param below fixed my problem!! :)

brf123’s picture

tracking

geraldito’s picture

I detected the same problem described here. Using Firefox's LiveHTTPHeaders showed an 404 error for XML files that were not found at /node/test.xml (with clean URLs on). The easiest solution for me was to use the Flash BASE parameter with one of the following options:
- in the object tag: <param name="base" value="/drupal6/sites/default/files/flashexample/" />
- in the embed tag: base="/drupal6/sites/default/files/flashexample/"
- with SWFObject: so.addParam("base", "/drupal6/sites/default/files/flashexample/");
- using Flashnode: set base parameter in "Advanced flash node options"

dman’s picture

It's nice to know that Flash now supports a BASE concept - to make up for the confusion in between versions.
Good solution.

Chill35’s picture

Cool!

Caroline
11 heavens.com

pjabode’s picture

I had the same issue in embedding a flash slide show that uses xml to load the images. It worked from a directory outside of the drupal, but from the drupal page it did not load the images.

Defining a base directory for the param and embed tags worked !!!!!

so many hours lost though....

Thanks so much!

kris69’s picture

Hi Im also facing same problem can u say clearly mention base path for param tag.Swf file loads but images associated with xml was not working.If u can help i will b very thankful to u.

mm167’s picture

this is a very old and length thread...

i have no time to read the whole thread at this moment...

if u have a related question, ask in a new thread. Remember to describe your case clear in the new thread.

OR..u have to wait until I (or others) have time to read the whole thread then I (or others) may give u the answer.

blanesworld’s picture

Same problem over here. Does anybody have a solution? I cannot find the solution in the thread.

joshfromdallas’s picture

I was having the same issue and spent three days on it!

Finallyt got it working.

I have three componets:

Flash file - slideshow.swf
XML File - contents.xml
Photos Folder - assets

The whole project started from a tutorial located here:
http://flash.tutsplus.com/tutorials/xml/build-a-dynamic-flash-and-xml-sl...

I created a folder in the root called Flash. I copied the contents.xml to the root. I put the Assests folder with my photos in the flash folder as well.

I then edited the contents xml and made sure the path to the photos was :

<?xml version='1.0' encoding='UTF-8'?>





Then in my page.tpl.php, I inserted the flash with the code below:

I hardcoded mine and haven't tested it as a embed on a page or with any modules.

Thanks for all the posts here, they led me in the right direction!

joshfromdallas’s picture

I still had an issue, The flash played great on the frontpage but on the node pages it did not work. The reason was the paths. So I needed to figure out a way to code it so the paths make sense the drupal. The path to the hompeage is:

http://www.mycompany.com

and the frontpage with the code mentioned above works.

the node is

http://www.mycompany.com/node/1

And it does not work.

So I tried putting http://www.mycompany.com/flash/slideshow.swf in and that will show the flash on those pages but the images, or xml does not load. So I opened my flash and change the contents.xml path to include http://www.mycompany.com/contents.xml and that seemed to fix it.

hope this helps

rpath’s picture

Geraldito - thanks for your helpful post! I've spent the last several hours trying to get an image scroller acquired from FlashXML.net to work on Drupal 6 (using the SWF Tools module), and defining the correct path for the BASE parameter finally made the bugger work properly.

aklievvel’s picture

:)

Well to be honest I don't know where it will cause some problems, but so far things are fine.

I created a directory under the root named "node" and put all the files there; all, swf, xml and the sub directories.

Now everything works smoothly :)

dman’s picture

As long as you don't want to use URL aliases, Views, Taxonomy pages, the /node URL, front page promotions, RSS or stuff like that, then you may be OK...

oskarblue’s picture

Why not just use an iFrame? I hate adding too many scripts or customizations to my respective themes.

1. Upload contents of your flash file (including all referenced xml docs) to a folder on your site (or any site for that matter, since you will be using an iFrame)

2. Create a simple HTML document in the folder you just created to test the .swf file displays properly (not necesseray, but a good check).

3. With "full HTML" input type, enter the following:

...where "YOURURL.com" is your site's URL and "YOURFILE.swf" is the name of your flash file

pareen’s picture

The base method is awesome. After hours of trial and error, I finally got it.

Thanks.

But if you see this http://imarketingservices.co.in/divine/catalog in IE, there is a strange border that crops up around the iframe.

Is this a problem from my side? or u get the same thing?

zimbarak’s picture

hello all ,

i was wondering if anyone have a solution for this problem
Actualy ive made a flash website that inlcude 6 swf pages,All pages will load automaticaly at the start by a preloader ,
ive include a standalone xml photo gallery to my portfolio page the website wil run and evthing is ok but once
i click to the portfolio page the xml gallery will load but with no functionality it will only show the first picture
as for the gallery it includes 4 files , (4.swf 4.html photos.xml )
please i realy appreciate any solution that might help

jmcerda’s picture

Its easier when u have complex flash files with crazy XML and file structures to host the content on a separate server or somewhere outside of your drupal installation entirely and then write your code and use that base parameter both in the object and embed tags. Nightmare over.

Roze-1’s picture

Subscribe !

Sucheta’s picture

Hello,

I am using ubuntu and drupal 7.
I have folder structure as /var/www/mysite.
As i have set vi as prefix for the language as default on my site i used multilingual module and used the url detection method for prefix. Now my homepage appears as localhost/mysite/vi (previously it was localhost/mysite).
I have created a flashpub folder from where my flash files get loaded on the home page using the controller. When Vi was set as prefix, the flashpub was checking the localhost/mysite/vi path for loading the flash. So I have created a folder now /var/www/mysite/vi with full permissions and uploaded flash there. I had specified the path for loading this flash by using tpl files respective for the flash files and links.

Here comes the major problem: Now i can see the flash which appears in the url localhost/mysite/vi/flash2, but my home page flash which has to appear on localhost/mysite/vi doesn't load and I get error as below:
"Forbidden
You don't have permission to access /mysite/vi/ on this server.
Apache/2.2.17 (Ubuntu) Server at localhost Port 80"

I have checked the .htaccess for the RewriteEngine on option. all things are proper but my front page is not loading. If i remove the vi folder from /var/www/mysite/vi path then again i am able to see my home page but with the path localhost/mysite/vi.

Please suggest what can be done if i am using the language prefix for multilingual site.

Thank you,
Sucheta.

ajiths1ster’s picture

Actually i had faced the same problem,and I have found out that issue.

The solution is

1 Please put the xml and images folder into sites/default/files

2 create a page named flash.html paste the flash code

<html> 
 <body style="margin:0;padding:0">
 <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="836" height="246">
        <param name="movie" value="domain_name/pa/sites/default/files/as_4.swf" />
        <param name="quality" value="high" />
        <embed src="domain_name/pa/sites/default/files/as_4.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="836" height="246"></embed>
      </object>
	</body>  
	  
	  </html>

3 Then copy paste the below code into ur page (page.tpl.php)

<iframe src="domain_name/pa/sites/default/files/flash.html"  width="839" height="246" frameborder="0" scrolling="no"  style="margin:0;padding:0">
  
</iframe>