PDA

View Full Version : Movie Madness


scat_happens
12-03-2001, 10:00 AM
this is probablyu amazingly simple but as they say...only if you know how.

ne way here is the problem...i am making a flash site to be pout onto a cd to be sent out to people and i would like to add an avi to it...the avi is on the cd and in the same directory as the flash page. i want to set it up so that clicking on a button will play the movie.
i have tried doing it with a get url command but it only seems to work if i give it a full path. this is not practicle however as the path may change depending on the letter of the cd rom drive in other computers

any help greatly appreciated

Jesse
12-04-2001, 03:30 AM
You can get around the problem of the drive label changing by doing this in your flash file:
basePath = _url;
that will give you the full system path to the current SWF, so with substring you can lop off the swf name and throw in the avi name and you should be away!

Billy T
12-04-2001, 08:35 AM
how do you play avi's in flash anyway? through a browser? The flash player (whether an swf or a projector) cannot play quicktimes can it?

cheers