Notifications
Clear all

[Closed] Flash in floater

I have a flash movie in a floater that loads fine if I use an absolute reference to the swf like this:

on rFlash open do
(
axFlash.movie = “c:\3dsmax7\scripts\flash\Movie1.swf”
)

I want to use a relative reference, something like:

on rFlash open do
(
swfpath = “$scripts/flash/Movie1.swf”
axFlash.movie = swfpath
)

But that doesn’t work. Does anyone know how to do this?

2 Replies

Try this:

on rFlash open do
 (
 swfpath = (scriptsPath + "flash/Movie1.swf")
 axFlash.movie = swfpath
 )

I’m not sure where you got the $scripts bit from, maya? but to get the scripts directory in max just use ‘scriptsPath’

Thanks for the help! I use $scripts when I include a script like: Include “$scripts/myscript.ms”, but I guess that doesn’t work in this situation.