Old 23-03-2004, 06:05   #1 (permalink)
mid-ori
Senior Member
 
mid-ori's Avatar
 
Join Date: Oct 2003
Posts: 162
Loadmovie using php variables

Hi,

Not sure how to explain this one. however let me try.

My file structure is as follows:

video/bromford/header_video.flv
video/showreel/header_video.flv
video/sydney/header_video.flv

and in my index page i have the following php code

PHP Code:
<?php 
$folder 
showreel;
?>

and in flash the following AS

[AS]
myVideo_nc = new NetConnection();
myVideo_nc.connect(null);
newStream_ns = new NetStream(myVideo_nc);
videoHolder.attachVideo(newStream_ns);
newStream_ns.play(loadMovieNum("video/"+folder+"/header_video.flv",0));
[/AS]

this way i thought i would be able to load a different flv into the same swf by just changing the variable on the index page, for example

PHP Code:
<?php 
$folder 
sydney;
?>

would load in this file "video/sydney/header_video.flv"

but its not working anybody have any ideas?

Last edited by mid-ori : 23-03-2004 at 07:00.
  Reply With Quote
Old 24-03-2004, 03:38   #2 (permalink)
dan
Iris Folder
 
dan's Avatar
 
Join Date: Apr 2003
Location: smokey
Posts: 2,676
I don't have a massive amount of experience using ActiopScript and php together, but do you not have to load that variable into flash in some way? Flash is self contained and that php is gonna run on the server so how is flash going to pick up that variable if you do not specifically pass it? could you us a getURL and then return the value?

I'm not 100% sure, but it's an idea ?
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8