PDA

View Full Version : write variable to LoadMovie URL?


ziggy
03-08-2003, 07:46 PM
Howdy! =)

I'm passing a variable thru the movie value & using FlashVars for F6 support. see code below...
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0"
id="player" width="250" height="150">
<param name="movie" value="player.swf?foo=bar.swf">
<param name=FlashVars VALUE="foo=bar.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#FF6600">
<embed name="vcr" src="player.swf?foo=bar.swf" FlashVars="foo=bar.swf"
quality="high" bgcolor="#FF6600" swLiveConnect="true"
width="250" height="150"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
</object>

I don't know the syntax to write it into my LoadMovie URL though? This is what I have below, that doesn't work LOL
Any ideas? Thanx a bunch!

on (press) {
loadMovieNum("http://mysite.com/swf/$foo",1);
}

Immulsifier
03-08-2003, 10:25 PM
Hi Ziggy Welcome :)

Change your code to this when trying to load the movie.

on (press) {
loadMovieNum("http://mysite.com/swf/"+_level0.foo, 1);
}

That will add whatever is stored in foo (bar.swf) onto the end of the URL so it will come out as http://mysite.com/swf/bar.swf and load the correct movie :)

ziggy
03-09-2003, 12:21 AM
Thanx a bunch ;) Should have asked about the 50th failed try LOL

Cheers...ziggy