This content has been marked as final. Show 5 replies
Something went wrong when I tried your link.
Is your movie inside your flash program or is it an external movie?
If you have named your button something like myBtn, then you can put in some actionscript to load an external movie such as:
myBtn.onRelease = function():Void
where movieHolder is the name of an empty movie clip that you place on the stage to hold external movies.
Alternately, you can add the code to the button itself. In this case you don't need to give the button an instance name:
If your movie is already part of your Flash program, instead of an external file, then you will need to go into the linkage properties of the movie and check: "Export for ActionScript". You do this by right clicking on the movie in the library. You must give the movie a name when you do this. You can still call it "Content". Next you use one of the formats listed above except change loadMovie to attachMovie. (Actually they might both still work, but I have been in the habit of using loadMovie for external content and attachMovie for internal content. Don't ask me why, I just try things and when they work, I tend to repeat that method of doing things.)
For attachMovie, you will need to give your clip a level number. You can hard code in a number if you want any movie you attach to replace the prior movie or you can use: movieHolder.getNextHighestDepth() if you want your movie to be placed on top of anything else that you already have in the movie holder without replacing it.
You can type loadMovie or attachMovie in the search bar of the built in help menu to see more examples. If you have further questions such as how to make the movie holder, be sure to ask a follow up question.
Well I am trying to play a certain portion of the movie. That is why I have labeled them etc... The link should work now for download.
Here is the code I am using
YES I GOT IT!!! AAAAHAHA ITS ALIVE!!!!!!!!!!
Oh, okay, it looks like from the code you have written that you didn't want to attach a movie at all, but instead you wanted to go to a different scene of your main movie. Anyhow, glad you were able to fix your problem.