| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Senior Member
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:
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:
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. |
|
|
|
|
|
#2 (permalink) |
|
Iris Folder
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 ? |
|
![]() |