all groups > flash actionscript > may 2005 >
You're in the

flash actionscript

group:

External SWF btn to play movie inside root


External SWF btn to play movie inside root Simon Darby
5/28/2005 12:00:00 AM
flash actionscript:
I have an external SWF named "packages" with a goto button in it. This movie is
loaded inside a movie clip named "hotel" that is with the root movie named
"site-v2". Within the movie clip "hotel" is a frame named "rooms". Basically I
want to got to "rooms" from "packages".

Here is my questions:

This is the script I had on the external SWF button, but it doesn't seems to
work...

on (release) {
_root.hotel.gotoAndStop("rooms");
}

Thanks. :confused;
Re: External SWF btn to play movie inside root kglad
5/28/2005 12:00:00 AM
that doesn't make sense. if hotel is target of a loadMovie("packages.swf")
statement, it doesn't have a frame labelled "rooms" unless the packages.swf has
a frame labelled "rooms".

also, what do you mean by "...with the root movie named "site_v2"?
Re: External SWF btn to play movie inside root Simon Darby
5/28/2005 12:00:00 AM
Sorry, this might explain it better. I am building a site all in Flash named
"site-v2". Within this site I have a menu button that plays a movie clip named
"hotel" Within the movie clip "hotel" is a frame with a component to load an
external SWF named "packages" (packages.swf). Within "packages" is a menu
button that I want to goto the frame named "rooms" within the movie clip
"hotel".

Re: External SWF btn to play movie inside root kglad
5/28/2005 12:00:00 AM
if packages.swf is loaded into a _level other than zero, you should use:

on (release) {
_level0.hotel.gotoAndStop("rooms");
Re: External SWF btn to play movie inside root Simon Darby
5/28/2005 12:00:00 AM
Re: External SWF btn to play movie inside root kglad
5/29/2005 12:00:00 AM
i didn't think it would because it didn't seem likely that you were using
loadMovieNum() to load packages.swf into another _level.

the use of components is always problematic when you hit a problem, because
not many people know the code used in creating the component. debugging a
problem that involves a component is therefore difficult.

try loading packages without using a component. if the problem still exists
then your setup is not as you described. there may be a movieclip that has a
misspelled instance name, for example. or there may be a failure to assign an
instance name and think that a library name is good enough to target a
movieclip.
Re: External SWF btn to play movie inside root kglad
5/29/2005 12:00:00 AM
AddThis Social Bookmark Button