|
|
 |
Re: FN-FORUM: Flash filepath conundrum.
date posted 29th June 2003 16:27
Hi Tony,
The Flash Player will, unless given an explicit path, try to load files from
the same location at the HTML file (or PHP/ASP script or whatever) rather
than the location of the .swf file.
What we do is to have a general area for Flash movie support files, say
"/flash/[moviename]/conf/", and then use explicit paths when trying to load
this in from Flash. If you can't get your contractor to do this, you'll have
to move the configuration files to the same directory as the containing HTML
page!
Regards,
Steve
----- Original Message -----
From: "Tony Crockford" [EMAIL REMOVED]
To: [EMAIL REMOVED]
Sent: Sunday, June 29, 2003 4:31 PM
Subject: FN-FORUM: Flash filepath conundrum.
> Hi
>
> I'm integrating some flash games into a CMS.
>
> The CMS likes to do the same thing for every "type" of file e.g based on
> a template it creates a container page for the content.
>
> where the content is a swf file it does the same page for every swf -
> obviously filenames changed accordingly.
>
> Now my problem is that the flash games are being provided by another
> contractor and some of them have highscore tables (.txt files) and a
> reference file to provide a flexible path to the CGI script for the
> highscore updates.
>
> Everything works as long as I use the (non validating) html file the
> contractor has supplied and the swf is called from the html in the same
> folder as the .txt files.
>
> as soon as I call the swf from another html file the swf loses the .txt
> files and can't do high scores.
>
> is there a clever way round this?
>
> either something I should be asking for in the swf or something that I
> can add to the new html file that will maintain the links?
>
> I'm using the validating flash satay method of embedding the file
> http://www.alistapart.com/stories/flashsatay/
>
> which may be compounding the problem, trouble is I'm a real Flash newbie
> and don't understand exactly what I've done apart from thinking that
> there ought to be a way of keeping swf and associated files in a folder
> and even if called from somewhere else the associated files should still
> be found...
>
> Help anyone?
>
> FWIW a game that does work is here:
> http://www.torbytes.co.uk/op/tm3/lv1/item1345-def.htm
>
> and one that does, apart from the high scores is here:
> http://www.torbytes.co.uk/op/tm3/lv1/item1359-def.htm
>
>
> TIA
>
> Tony
>
>
> ==========
> Graduate & Professional Financial Services - Specialists in MORTGAGES for
> FREELANCERS. House purchase, re-mortgage (including debt consolidation and
> capital raising), Buy to Let, flexible offset and current account
mortgages.
> Visit our website at http://www.gradprof.co.uk?fnet
>
> To advertise here: http://www.freelancers.net/advertising.html
>
> |
 |
|