Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

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
>
>



Messages by Day
June 30th 2003
June 29th 2003
June 28th 2003
June 27th 2003
June 26th 2003
June 25th 2003
June 24th 2003
June 23rd 2003
June 22nd 2003
June 21st 2003
June 20th 2003
June 19th 2003
June 18th 2003
June 17th 2003
June 16th 2003
June 15th 2003
June 14th 2003
June 13th 2003
June 12th 2003
June 11th 2003
June 10th 2003
June 9th 2003
June 8th 2003
June 7th 2003
June 6th 2003
June 5th 2003
June 4th 2003
June 3rd 2003
June 2nd 2003
June 1st 2003


Messages by Month
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
March 2003
January 2003


Messages by Year
2008
2007
2006
2005
2004
2003
2002
2001
2000