« Return to Thread: LoadMovie

Re: LoadMovie

by Luke Schreur-3 :: Rate this Message:

Reply to Author | View in Thread

 
Leandro,
 
You want to store a reference to the MovieClip object that you just created in a reference variable. That way you can actually work with the MovieClip you just created:
 
var mc : MovieClip = _root.createEmptyMovieClip("topo", 1);
 
Now you can target that newly created MovieClip and load an image into it:
 
mc.loadMovie("topo.jpg");
 
For more information on the loadMovie method have a look at the Adobe Flash documentation:
 
http://livedocs.adobe.com/flash/9.0/main/00001934.html


>>> Leandro Dias <lwdias@...> 11/06/2009 5:56 am >>>
Sorry for the question...


If i use

_root.createEmptyMovieClip("topo", 1);
_root.loadMovie("topo.jpg", "topo");

The loadMovie dont load the image in the movieclip created. The image is loaded, but the image dont is loaded in the mc.
Sorry if my question is too much newbye, but if someone can help me

--
Leandro Weige Dias

This e-mail is intended only for the named person or entity to which 
it is addressed and contains valuable business information that is 
privileged, confidential and/or otherwise protected from disclosure.  
Dissemination, distribution or copying of this e-mail or the 
information herein by anyone other than the intended recipient, or 
an employee or agent responsible for delivering the message to the 
intended recipient, is strictly prohibited.  All contents are the 
copyright property of TBWA Worldwide, its agencies or a client of 
such agencies. If you are not the intended recipient, you are 
nevertheless bound to respect the worldwide legal rights of TBWA 
Worldwide, its agencies and its clients. We require that unintended 
recipients delete the e-mail and destroy all electronic copies in 
their system, retaining no copies in any media.If you have received 
this e-mail in error, please immediately notify us via e-mail to 
disclaimer@....  We appreciate your cooperation.

We make no warranties as to the accuracy or completeness of this 
e-mail and accept no liability for its content or use.  Any opinions
expressed in this e-mail are those of the author and do not 
necessarily reflect the opinions of TBWA Worldwide or any of its 
agencies or affiliates. 


--
MTASC : no more coffee break while compiling

 « Return to Thread: LoadMovie