Notifications
Clear all
[Closed] Flash in floater
Jul 03, 2005 12:14 am
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
Jul 03, 2005 12:14 am
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’
Jul 03, 2005 12:14 am
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.