Odd Flash Embedding Problem

This is a discussion on Odd Flash Embedding Problem within the Macromedia Flash forums in Adobe Tools category; I am using Flash with SlideShowPro (component) installed, no actionscript. My XML file and my images are in a sub folder. The Flash is not working. I copied the swf into the subfolder the XML is in. When I open the root level page which has the flash embedded on it, it pulls up the flash SWF, but does not recognize the xml file that's in the sub directory. It tries to get an XML file from the root level, instead. If I run a page from the subdirectory, it works correctly, which tells me that the XML file is ...

Go Back   Application Development Forum > Adobe Tools > Macromedia Flash

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-25-2008, 01:37 PM
dglickler
Guest
 
Default Odd Flash Embedding Problem

I am using Flash with SlideShowPro (component) installed, no actionscript.

My XML file and my images are in a sub folder. The Flash is not working. I
copied the swf into the subfolder the XML is in. When I open the root level
page which has the flash embedded on it, it pulls up the flash SWF, but does
not recognize the xml file that's in the sub directory. It tries to get an XML
file from the root level, instead.

If I run a page from the subdirectory, it works correctly, which tells me that
the XML file is properly configured when sitting in that directory.

What do I have to do with the embed statements (or anything else) to make sure
it takes the XML file that is in the same subdirectory as the swf file, rather
than trying to find an xml file on the root level?

I don't think I can have the swf on the root level, because it asks for an XML
file and there are many different subfolders for which this has to work. If
there is a way, I'd be glad to hear of it.

The subfolders are all dynamically created, so I can't preconfigure with
separate names for the swf or xml files. At time of dynamic subfolder creation,
I copy in the SWF file and the XML file is created into that folder.

I appreciate your help.

Reply With Quote
  #2  
Old 08-27-2008, 12:51 PM
dglickler
Guest
 
Default Re: Odd Flash Embedding Problem

Problem still an issue. Please help.
Reply With Quote
  #3  
Old 08-27-2008, 09:23 PM
urami_
Guest
 
Default Re: Odd Flash Embedding Problem

dglickler wrote:
> I am using Flash with SlideShowPro (component) installed, no actionscript.
>
> My XML file and my images are in a sub folder. The Flash is not working. I
> copied the swf into the subfolder the XML is in. When I open the root level
> page which has the flash embedded on it, it pulls up the flash SWF, but does
> not recognize the xml file that's in the sub directory. It tries to get an XML
> file from the root level, instead.
>
> If I run a page from the subdirectory, it works correctly, which tells me that
> the XML file is properly configured when sitting in that directory.
>
> What do I have to do with the embed statements (or anything else) to make sure
> it takes the XML file that is in the same subdirectory as the swf file, rather
> than trying to find an xml file on the root level?
>
> I don't think I can have the swf on the root level, because it asks for an XML
> file and there are many different subfolders for which this has to work. If
> there is a way, I'd be glad to hear of it.
>


Basically it works like that:
(explanation on example only)
Index.html is on the server's root. This index file loads SWF files from SOME
directory. This SWF file is now assuming position of its hosting file, which
is the index.html on the root. And from this directory it seeks any other file
it loads, whether it's a video player skin, xml etc... SWF has no memory of its
location on the server and will always seek files from perspective of the host
html files that it runs within. So all your paths must be adjusted accordingly.

Now, if the SWF assumes html location on server, the xml loaded will no longer be
able to find its files because it runs within the SWF which now has different
locations. You need to set your paths with this in mind from very beginning of
designing of the movie.

Does it make sense ?


--
Best Regards

Urami


--
"Never play Leap-Frog with a Unicorn."


<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami>
Reply With Quote
  #4  
Old 08-29-2008, 04:37 PM
dglickler
Guest
 
Default Re: Odd Flash Embedding Problem

I've tried using the "dynamic XML" method, and it doesn't work.


http://components.earthscienceagency...s/dynamic_xml/

If I have the xml page on the same level as the calling page, it works, but if
I try to call to an XML page that's further in, it won't work.

It reads as thus on the page the Flash is embedded on:

<object height="270" width="250"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
rsion=9,0,28,0" classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000">
<param value="slide_frame.swf" name="movie"/>
<param value="playlist=images/pictures/22/slideshow.xml" name="FlashVars"/>
<param value="high" name="quality"/>
<embed height="270" width="250" type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Versio
n=ShockwaveFlash" quality="high"
flashvars="playlist=images/pictures/22/slideshow.xml" src="slide_frame.swf"/>
</object>

Help?

Reply With Quote
  #5  
Old 09-01-2008, 10:55 AM
dglickler
Guest
 
Default Re: Odd Flash Embedding Problem

I'm really desperate for help here.

My problem lies that I'm trying to use a dynamic situation and PHP.

The PHP creates a folder in images/pictures, copies the swf file into it, and
creates an XML file in it...so, we'll use the example of 10.

So now we have the houseInfo.php page on the root level with the swf on it,
and the images, actual swf file, and xml sheet are in images/pictures/10

(remember, it's dynamic. So the number could be 14 or 24...depending on which
houseID is in the database)

I can't use a php statement in flash, so I can't make the flash dynamically
grab the correct xml sheet from images/pictures/10...

So I tried using this method:


http://components.earthscienceagency...s/dynamic_xml/

By this method, the SlideShowPro doesn't have an xml file path declared in the
component, but rather I have this in the actionscript:

mySlideshow.loadXML(playlist);

and the component is ID'd as mySlideshow

The embedding on the page uses a php id and it seems to read it right...this
is what a view source will show:

<object height="270" width="250"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
rsion=9,0,28,0" classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000">
<param value="slide_frame.swf" name="movie"/>
<param value="playlist=images/pictures/10/slideshow.xml" name="FlashVars"/>
<param value="high" name="quality"/>
<embed height="270" width="250" type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Versio
n=ShockwaveFlash" quality="high"
flashvars="playlist=images/pictures/10/slideshow.xml" src="slide_frame.swf"/>
</object>

You will notice in the flash the playlist is showing the correct path to where
the XML sheet would reside.

But it still doesn't work.

Please, help?

Thanks,
Denise

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 02:19 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.