PDA

View Full Version : Flash in floater


Pongoloid!
07-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?

Impus
07-03-2005, 01:31 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'

Pongoloid!
07-03-2005, 04:19 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.

CGTalk Moderation
07-03-2005, 04:19 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.