This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > April 2004 > PHP website with a flash movie inserted





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author PHP website with a flash movie inserted
DieDieMyDarlingX

2004-04-12, 4:42 am

I currently have admin on a mates website, and i've been trying to design a few
things for it.

The site is done in pure PHP. And we opened a new 'box' to add on the main
page. In this window we embedded the flash movie, which is an mp3 player. It
works fine on the harddrive, and even works fine on webspace, but for some
reason it won't access the .text file it needs to access, whilst on the php
website.

The mp3 player works by reading defined arrays in a text file. Artist - song
name. And the actual filename. So that my mate can change the mp3's just by
adding his mp3's to the folder, and editing the arrays in the text file.

Any ideas why it won't work as part of his site, but works fine any other way?
Does PHP block accessing external files in flash?

Peter Blumenthal

2004-04-12, 4:42 am

could be a cross domain security issue - where is the text file stored in
relation to the PHP and the swf?

--
---------------------------------------
http://www.phageinteractive.com
PhageInteractive Ltd.
remove mm_ to mail
---------------------------------------
'If I come across as a grumpy and twisted old man, it's just because I'm a
grumpy, twisted, old man." - me
---------------------------------------

..


DieDieMyDarlingX

2004-04-12, 4:42 am

The files are all in the same directory. .mp3 files, the .txt file that
contains the arrays, and the .swf file. It all works fine from a single
directory locally on the HD, and also from webspace if you type the address of
the file into IE.
The flash movie is inserted into the PHP webpage using dreamweaver, and all
looks right. So i'm thinking there's something not allowing the .swf file use
external files, when part of that site. Would the PHP codes interfere? I have
no idea about PHP myself.

Ed Massey

2004-04-12, 4:42 am

Its a long-shot but have you tried to use:

System.security.allowDomain("http://myDomain.com");

this gets round some sandbox errors, but that might not be the problem....!

hth,
Ed Massey


cVarz

2004-04-21, 3:15 pm

[Q]The files are all in the same directory. .mp3 files, the .txt file that
contains the arrays, and the .swf file. It all works fine from a single
directory locally on the HD, and also from webspace if you type the address of
the file into IE. [/Q]

I am somewhat familiar with PHP although not a genius at it (yet). Anyway,
php files are unlike html files, as PHP is really server side code. This
server side code can produce html and react with it, which makes it a very nice
langauge to learn. In any event, if I understood you correctly, the .swf is
pulling strings/info whatever from a text file. It may be needed to CHMOD the
php file that the .swf file is on. I know its just using the information in
the text file and not writing to the PHP file but, PHP may look at it
differently. PHP is very secure, with this in mind I would check the CHMOD and
the above post advice as well. As I am new to flash and action scripting, I
can not be of much help there.


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews