all groups > flash (macromedia) > november 2005 >
You're in the

flash (macromedia)

group:

path problem testing movie.


path problem testing movie. macteach
11/2/2005 8:26:17 PM
flash (macromedia):
at times when I test movies flash seems to lose track of files that have not
moved. I get the error in the output window that says...

Error opening URL
"file:///Macintosh%20HD/Users/lwtc/Desktop/movieclipcontrol/undefined"

currently I am trying to load an external swf into a empty mc.

code is

moveText_mc.onRollOver = function() {
_root.moveText_mc.gotoAndPlay(2);
};
moveText_mc.onRelease = function() {
loadMovie(simpleshape.swf, emptyClip_mc);
_root.moveText_mc.gotoAndStop("hold");
}

stop();

Is this a mac or flash problem?
Has anyone encountered tis mac or pc?
does anyone know a fix?

specs
os 10.4.2
flash pro 7.2

Thanks in advance
:-D
Re: path problem testing movie. macteach
11/2/2005 9:00:24 PM
:o
fixed it
forgot quotes around
simpleshape.swf

duhhh.....

Re: path problem testing movie. brian...
11/2/2005 9:03:49 PM
Macteach,

You just need to encase the SWF that you are calling in " ":

loadMovie("simpleshape.swf", emptyClip_mc);

Also, on your handler functions, you don't necessarily have to go to the root
to talk to your MovieClip since it is already in scope. Just use "this" to
reference moveText_mc:

moveText_mc.onRollOver = function() {
this.gotoAndPlay(2);
};
moveText_mc.onRelease = function() {
loadMovie("simpleshape.swf", emptyClip_mc);
this.gotoAndStop("hold");
}

Brian...
AddThis Social Bookmark Button