I want to unload a movie that I loaded externally with the loadMovie() command.
It loads fine, but the loaded movie is playing inside an empty container that is inside a nested movie. How can I use the unloadMovie() command to unload the movie?
Here's the code that loaded the movie:
on...
Not sure what I'm doing wrong, but it's probably pretty simple or maybe I'm coming up short on one of the concepts used.
I'm trying to load a movie into a empty container. I need to put the movie between two layers so my navigation is still functional. If it's above, the navigation, which drops...
I've got two .swf files. One index.swf that imports navigation.swf using loadMovieNum("navigation.swf",10);
the .swf files work perfectly in Flash player and in a browser, but when I link from an HTML document, the index.swf fails to import the navigation.swf
thanks in advance
I'm using a piece of code that allows me to call to a level a .swf file and make it land on a given frame within the .swf file. It's a great piece of code, but for me it only works once. After one clicks the button, goes to the movie, the button and all others with the new code seem dead.
The...
I've stumbled across this on the net:
on (press) {
loadMovieNum("filename.swf",1);
}
on (release) {
with (_level1) {
gotoAndPlay ("labelname");
}
}
Have not tried it yet, but I'll post the result when I do.
I'm using, unsuccessfully, these two lines of code to load an external .swf file called bag.swf and have it start on the frame "trunk":
on (release) {
loadMovieNum("/site/flash/bag.swf", 5);
_level5.gotoAndStop("trunk");
}
Any suggestions are appreciated.
It would open on "saddles" or five other categories, so yes, only in some specific cases.
The movie is a subnavigation that plays in five different .swf files. So when the "saddles" button is click the sub navigation is (would be) loaded into the container and played on the "saddles" frame. If...
I'm pretty new to flash.
Right now I'm using an empty container to import my navigation into and it works fine: loader_mc.loadMovie("flash/navigation.swf");
Is there anyway to get the movie to start on a given frame once it's been imported? Say, I wanted the navigation to open on the "saddles"...
Okay, disregard and thanks for your input. It helped me think this through. Turns out I was over thinking the problem.
This bit of script accomplished what I was looking for:
loader_mc.loadMovie("flash/navigation.swf");
Thanks again
It sounds like disposing of the clip (movieclip.remove()) is the best way to go.
Would it look like this:
movieclip.removeClip(); //unloads the movie in the container?
onLoad = function () {
_root.createEmptyMovieClip("container", 100);
loadMovie("flash/navigation.swf", "container")...
REF: Well, by now you know what I'm trying to get at!
//
on (release) {
_parent.createEmptyMovieClip("main", 0);
loadMovie("/site/flash/bagsOther.swf", _parent.main);
}
//
---
Here's the link: http://origin-8.com/site/index.htm
In the navigation, go to BAGS and at the bottom, click...
REF: pixl8r (Programmer)
"29 Mar 06 22:00
You are creating different instance names for the "container" clip right? (container1, container2, etc...)"
No. I'm a novice at Flash and I think I see what you're getting at, but I'm not realy sure.
I'm trying to set up my navigation so it's easily scalable.
Right now I have the navigation as a movie clip saved as a .swf file and then I use the _root.createEmptyMovieClip() to bring it into a a container on each page. The idea is, if any changes are made to navigation, I won't have to go...
Nevermind
Just figured it out:
onLoad = function () {
_root.createEmptyMovieClip("container", 100);
loadMovie("loaded.swf", "container");
container._x = 0 ;
container._y = 0 ;
}
The above seems to work
okay, change of direction:
I've decided to load a the navigation into a container. I found some code, but I can't make it run onLoad
but.onPress = function () {
_root.createEmptyMovieClip("container", 100);
loadMovie("loaded.swf", "container");
container._x = 0 ;
container._y = 0 ;
}
What...
I'm fairly new to Flash, less than a year in addition to my other responsibilities as a designer.
The site I'm working on is pretty expansive. There's more than 150 pages (swf files) and there's the likelihood that the navigation will need to change at several points during the year as new...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.