Re: Subject: PHP vs. Flash

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yes, it should work fine but please understand

(1) Your flash movie must know how to process a query string passed to it and
(2) IE does not support the EMBED syntax, you need to wrap the flash OBJECT tag around the EMBED just as you see on flashkit for it to work (that is for IE to pass the flash player the relevant value)


Have you used 'View Source' for the HTML you are producting ? That usually gives some clue what is not right. Also I assume you are just passing the filename of the MP3 rather than the full path. Unless your flash movie has the server path and directory hard coded within the movie, it cannot know the full path to your file and may be referencing it to the directory the movie is in, the directory the HTML page is in, or the document root path of your website !

HTH
Neil.


At 16:23 16/04/2004 +0000, you wrote:
Mime-Version: 1.0 (Apple Message framework v613)
Content-Transfer-Encoding: 7bit
Message-Id: <D413C98C-8F91-11D8-975D-000A95913540@xxxxxxxxxxx>
Content-Type: text/plain; charset=US-ASCII; format=flowed
To: php-db@xxxxxxxxxxxxx
From: Mikael Grön <emgee@xxxxxxxxxxx>
Date: Fri, 16 Apr 2004 11:35:49 +0100
Subject: PHP vs. Flash

I'm not sure this post really belongs in this list, but I'll give it a try anyway..

Anyone who's ever worked with PHP (or any other serverside scripting language) vs. Flash has probably had his/her share of problems with passing variables back and forth between the two. Most of the time that can easily be solved by doing a loadvars() thingie in flash loading a PHP script that grabs stuff from for instance a database and pushes it back to the Flash file.
In this case, on the other hand, that would not work.


I'm working on a music gallery and I'm trying to get variables to a flash file which will be loaded several times on the same page, displaying small MP3-players... One for each file in a directory.

What I need is a way to pass the filenames to the flash file. I've done a readdir loop for getting the filenames.

Can you do something like <embed src="mp3player.swf?filename=<?php echo $file ?>"> ?? I haven't been able to get that working though..

Any other ideas?
I can't get the flash file to intuitively know what file to load on each load.

If you don't understand what I mean, take a look at this page: http://www.flashkit.com/soundfx/Ambience/Space/
Focus on the so called "Preview console". It's a small white box displayed once per file.
I refuse to think that this site is not built via dynamic stuff... Thus, there is a solution to my problem somewhere out there.. ;)


I'm soo sorry if this post gets disliked by the honorable members of this list.

Regards, Mike


========================================================
CaptionKit http://www.captionkit.com : Production tools
for accessible subtitled internet media, transcripts
and searchable video. Supports Real Player, Quicktime
and Windows Media Player.

VideoChat with friends online, get Freshly Toasted every
day at http://www.fresh-toast.net : NetMeeting solutions
for a connected world.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux