[thelist] FlashMX Load Movie Question

Christopher Joseph christopher at ideadesigners.com
Thu Dec 4 09:26:38 CST 2003


The method MovieClip.LoadMovie(); is used to load an external swf's or 
JPGs and is an alternative to the global function LoadMovie(). It loads 
a swf or a jpg INTO the movieclip it is called from.

The global loadMovie() function is also used to load an external swf or 
Jpg but you can specify the target which is either a MC or level.

...I am not sure whether either of these can be used to load a movieclip 
symbol already in your movie  - let the list know what you find out.

Alternatively I think MX syntax could also be used like:

var depth = 10; // depth in current clip NOT level for this

buttonY.onRelease = function () {
	attachMovieClip("Symbol_linkage_name", "New_Instance_Name", depth)
}

buttonX.onRelease = function () {
	New_Instance_Name.removeMovieClip();
}

Liam Delahunty wrote:

> Rob Smith Sent: 04 December 2003 14:29
> 
> 
>>I hate to ask this question as it is so simple, but I'm not a flash guru. I
>>have a button and a movie clip. When I click the button, I want the movie
>>clip to load. How do I do this?
> 
> 
> on (release) {
> 	loadMovie("movie_clip_name_mc",10);
> }
> 
> the ten is the level (layer) into which you're loading the movie.
> 
> 
>>My next question is that I have another button "x" in the movie clip that
> 
> is
> 
>>supposed to close the movie clip. How do I do that?
> 
> 
> on (release) {
> 	unloadMovie("movie_clip_name");
> }
> 
> 
> Thee both off the top of my head, so forgive me if the syntax is not exactly
> correct. Also in flash there are several ways of loading unloading movies,
> for instance, I actually tend to use paths, and multiple swf files, so I'd
> have something like:
> 
> on (release) {
> 	_root.content_mc.loadMovie("en_contact.swf",10);
> }
> 
> on (release) {
> 	unloadMovie("_root.content_mc");
> }


-- 
Christopher Joseph

-------------------
[Internet]
http://www.ideadesigners.com  [iseries & web technologies]
mailto: christopher at ideadesigners.com

[Telephone]
mobile:   +44 7966 003860
Office:   +44 1494 731814 ext. 832
Direct:	  +44 1494 731832

[Instant Message]
ICQ: 78019724
YIM = Josephc_98
MSN = christopher at ideadesigners.com



More information about the thelist mailing list