Ask a Question related to Macromedia Director Basics, Design and Development.
-
DigitalPimp #1
External files problem...
My company wants me to make a patch for an old set of cdroms. The projector on
the old cdroms weren't centered and create navigation problems at lower
resolutions due to the interface being off the edge of the screen. So my dilema
is accessing the files on the cdrom. I have already created the new projector
and now need to figure out how to find and link to the media on the cdrom. I'm
using the trial version of BudyAPI (allows two functions to be used and I'm
only using one: baFindDrive) to locate and set the path to the cdrom. I have my
variable set correctly, I think, but I just don't know how to go about telling
the video/flash sprites and music cast member where to look. I assume I would
put it into a behavior script attached to the sprite and use the on beginSprite
call, but I'm not sure. The code I have in place already is this:
--------------------------------------------------------------------------------
--------
global myDrive, myDriveSep, myPath, vidPath, swfPath, mp3Path
on prepareMovie me
myDrive = baFindDrive("c", "myapp.exe")
myDriveSep = ":\"
the itemDelimiter = "\"
myPath = myDrive&myDriveSep
vidPath = myPath&("video")& the itemDelimiter
swfPath = myPath&("swf")& the itemDelimiter
mp3Path = myPath&("music")& the itemDelimiter
end
-----------------------------------------------------------------------
This leaves me with two questions:
1 - Where do I put the script that tells the music cast members and
flash/video sprites where to find the files?
2 - How do I set it? (seems that it's already set but needs to be applied
somewhere?)
Thanks in advance for any help anyone can give.
DigitalPimp Guest
-
external .js files
Hi all, I see there is a way to setup external app to edit source files, but is there a way to use an external app (notepad.exe) to edit .js... -
flashplayer problem in 2000 loading external .xml files
Hi all , Am getting pretty frazzled on this one at the moment - not sure exactly what is going on - and hoping someone else might have some... -
External .as files
I have a movie with ScrollPane component When exporting the size report is like this... Frame # Frame Bytes Total Bytes Scene -------... -
Slideshow with external files
Hi, Flash comes with a nice slideshow movie, but I would like it that when the "next" button is pressed, it would load external photos. The movie... -
external exe files
Hi Michael, No. You cannot effect your user's computer in any way from a web application. This isn't a Shockwave thing, it's a web security... -
-
DigitalPimp #3
Re: External files problem...
I did that right after posting. I used the variables as stated in my previous post and it still prompts me for video locations when the video starts.
Any other ideas?
DigitalPimp Guest
-
Toolman21 #4
Re: External files problem...
I am using something similar, but not importing old director files (mostly
flash movies, text, and pictures), but I can assume it would work the same. I
import the files with the "Link to External File" selected. Then something
similar to this:
on enterFrame me
member("flash_movie").filename = "@/Flash/flash_movie.swf"
end
The @ symbol will tell the movie to start searching where the movie file is
located and then you can either put the filename or the path and filename to
the movie or whatever you are importing. Additionally you can use one cast
member and call it differently as long as the movies are the same size,
otherwise it resizes things wierd, such as:
on mouseUp me
member("flash_movie").filename = "@/Flash/flash_movie1.swf"
end
Just change the filename to whatever file you want opened as the appropriate
button is clicked, or frame is entered with enterFrame. I haven't used the
BuddyAPI, I hear it is great...but I haven't had a problem doing what I need
without it so far. Hope it helps
Toolman21 Guest



Reply With Quote

